inttypes: Move some configure check to module 'imaxabs'.
[gnulib.git] / ChangeLog
1 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2
3         inttypes: Move some configure check to module 'imaxabs'.
4         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
5         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
6         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
7
8 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9
10         inttypes: Remove configure tests that are not needed since 2009-12-31.
11         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
12         gl_cv_header_working_inttypes_h.
13
14 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
15
16         * modules/strnlen (Depends-on): Remove memchr.
17         The strnlen implementation doesn't need the memchr module's fixes; see
18         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
19
20         strtol: remove dependency on wchar
21         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
22         * modules/strtol (Depends-on): Remove wchar.
23
24 2011-04-21  Eric Blake  <eblake@redhat.com>
25
26         passfd: fix test regression on Linux
27         * modules/passfd-tests (configure.ac): Correct socketpair check.
28
29         passfd: speed up configure and drop unused code
30         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
31         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
32         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
33         Instead of probing at configure for unix_scm_rights_bsd44_way,
34         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
35         check to a struct member probe.
36         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
37         (sendfd, recvfd): Update preprocessor checks.
38         * modules/passfd (Files): Reflect rename, and drop unused file.
39         (Depends-on): Drop unused dependency.
40
41         passfd: allow compilation on mingw
42         * modules/sys_socket (Depends-on): Add sys_uio.
43         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
44         iovec and a minimal struct msghdr.
45         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
46         * tests/test-sys_socket.c (main): Enhance test.
47         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
48         guaranteed to provide what we need.
49         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
50         * modules/passfd-tests (Depends-on): Add sys_wait.
51         * tests/test-passfd.c (main): Skip test on mingw, for now.
52         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
53         partial 'struct msghdr' implementation.
54
55         sys_uio: new module
56         * modules/sys_uio: New module.
57         * modules/sys_uio-tests: Likewise.
58         * lib/sys_uio.in.h: New file.
59         * m4/sys_uio_h.m4: Likewise.
60         * tests/test-sys_uio.c: Likewise.
61         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
62         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
63
64 2011-04-20  Jim Meyering  <meyering@redhat.com>
65
66         useless-if-before-free: avoid false-positive
67         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
68         disjunct so that it too requires a terminating ";".  Without that,
69         this script would identify as useless one statement from gcc that
70         was not:
71           if (aligned_ptr)
72             free (((void **) aligned_ptr) [-1]);
73
74 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
75
76         doc: update users.txt.
77         * users.txt: Add barcode.
78
79 2011-04-19  Bruno Haible  <bruno@clisp.org>
80
81         ioctl: Remove link dependency on native Windows.
82         * lib/fd-hook.h: Renamed from lib/close-hook.h.
83         (gl_close_fn, gl_ioctl_fn): New types.
84         (struct fd_hook): Renamed from struct close_hook. Change type of
85         private_close_fn field. Add private_ioctl_fn field.
86         (close_hook_fn): Add parameter for primary close method.
87         (execute_close_hooks, execute_all_close_hooks): Likewise.
88         (ioctl_hook_fn): New type.
89         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
90         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
91         argument.
92         (unregister_fd_hook): Renamed from unregister_close_hook.
93         * lib/fd-hook.c: Renamed from lib/close-hook.c.
94         Don't include <unistd.h>.
95         (close): Remove undef.
96         (anchor): Update.
97         (execute_close_hooks): Add argument for primary close method.
98         (execute_all_close_hooks): Likewise.
99         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
100         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
101         argument. Allow each argument to be NULL.
102         (unregister_fd_hook): Renamed from unregister_close_hook.
103         * lib/close.c (rpl_close): Pass 'close' function pointer to
104         execute_all_close_hooks.
105         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
106         (primary_ioctl): New function.
107         (ioctl): Don't call ioctlsocket here. Instead, call
108         execute_all_ioctl_hooks.
109         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
110         close method.
111         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
112         (fd_sockets_hook): Renamed from close_sockets_hook.
113         (gl_sockets_startup, gl_sockets_cleanup): Update.
114         * modules/fd-hook: Renamed from modules/close-hook. Update.
115         * modules/close (Depends-on): Add fd-hook, remove close-hook.
116         * modules/sockets (Depends-on): Likewise.
117         * modules/ioctl (Depends-on): Add fd-hook.
118         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
119         GNULIB_SOCKET.
120
121 2011-04-19  Bruno Haible  <bruno@clisp.org>
122
123         Move the support of O_NONBLOCK in open() to the 'open' module.
124         * modules/nonblocking (Depends-on): Remove 'open'.
125         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
126         gl_cv_have_open_O_NONBLOCK.
127         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
128         O_NONBLOCK support.
129         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
130
131 2011-04-17  Bruno Haible  <bruno@clisp.org>
132
133         pipe2: Simplify code.
134         * lib/pipe2.c (pipe2): Reduce code duplication.
135
136 2011-04-17  Bruno Haible  <bruno@clisp.org>
137
138         nonblocking: Add comment.
139         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
140
141 2011-04-17  Bruno Haible  <bruno@clisp.org>
142
143         nonblocking: Add tests for sockets.
144         * tests/test-nonblocking-socket.sh: New file.
145         * tests/test-nonblocking-socket-main.c: New file.
146         * tests/test-nonblocking-socket-child.c: New file.
147         * tests/test-nonblocking-socket.h: New file.
148         * tests/socket-server.h: New file.
149         * tests/socket-client.h: New file.
150         * modules/nonblocking-socket-tests: New file.
151         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
152
153 2011-04-17  Bruno Haible  <bruno@clisp.org>
154
155         nonblocking: Add tests for pipes.
156         * tests/test-nonblocking-pipe.sh: New file.
157         * tests/test-nonblocking-pipe-main.c: New file.
158         * tests/test-nonblocking-pipe-child.c: New file.
159         * tests/test-nonblocking-pipe.h: New file.
160         * tests/test-nonblocking-writer.h: New file.
161         * tests/test-nonblocking-reader.h: New file.
162         * tests/test-nonblocking-misc.h: New file.
163         * modules/nonblocking-pipe-tests: New file.
164         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
165
166 2011-04-16  Bruno Haible  <bruno@clisp.org>
167
168         gettext: Clarify the needed programmer actions.
169         * modules/gettext (Notice): New field.
170         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
171
172 2011-04-16  Bruno Haible  <bruno@clisp.org>
173
174         strchrnul: Tweak last commit.
175         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
176         bug.
177         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
178         as in _GL_FUNCDECL_SYS.
179         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
180         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
181
182 2011-04-15  Eric Blake  <eblake@redhat.com>
183
184         strchrnul: work around cygwin bug
185         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
186         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
187         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
188         * modules/string (Makefile.am): Substitute it.
189         * lib/string.in.h (strchrnul): Use it.
190
191 2011-04-15  Bruno Haible  <bruno@clisp.org>
192
193         Don't require lib/stdio-write.c when only module 'stdio' is used.
194         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
195         invocation.
196         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
197
198 2011-04-14  Bruno Haible  <bruno@clisp.org>
199
200         Support non-blocking pipe I/O in read() on native Windows.
201         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
202         (read): New declaration.
203         * lib/read.c: New file.
204         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
205         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
206         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
207         vscanf): New declarations.
208         * lib/stdio-read.c: New file.
209         * m4/read.m4: New file.
210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
211         REPLACE_READ.
212         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
213         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
214         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
215         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
216         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
217         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
218         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
219         * modules/read: New file.
220         * modules/nonblocking (Files): Add lib/stdio-read.c.
221         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
222         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
223         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
224         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
225         * modules/pread (Depends-on): Add read.
226         * modules/safe-read (Depends-on): Likewise.
227         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
228         gets, scanf, vfscanf, vscanf): Verify signatures.
229         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
230         problem with non-blocking pipes.
231         * doc/posix-functions/fgetc.texi: Likewise.
232         * doc/posix-functions/fgets.texi: Likewise.
233         * doc/posix-functions/fread.texi: Likewise.
234         * doc/posix-functions/fscanf.texi: Likewise.
235         * doc/posix-functions/getc.texi: Likewise.
236         * doc/posix-functions/getchar.texi: Likewise.
237         * doc/posix-functions/gets.texi: Likewise.
238         * doc/posix-functions/scanf.texi: Likewise.
239         * doc/posix-functions/vfscanf.texi: Likewise.
240         * doc/posix-functions/vscanf.texi: Likewise.
241
242 2011-04-14  Bruno Haible  <bruno@clisp.org>
243
244         Support non-blocking pipe I/O in write() on native Windows.
245         * lib/write.c (rpl_write): Split a write request that failed merely
246         because the byte count was larger than the pipe buffer's size.
247         * doc/posix-functions/write.texi: Mention the problem with large byte
248         counts.
249
250 2011-04-14  Bruno Haible  <bruno@clisp.org>
251
252         wchar: Ensure that wchar_t gets defined on uClibc.
253         * lib/wchar.in.h: On uClibc, include <stddef.h>.
254         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
255
256 2011-04-13  Bruno Haible  <bruno@clisp.org>
257
258         safe-write, full-read: Avoid unnecessary compilation units.
259         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
260         (Depends-on): Remove safe-read. Add ssize_t.
261         * modules/full-read (Files): Add lib/full-write.c.
262         (Depends-on): Add full-write.
263
264 2011-04-13  Bruno Haible  <bruno@clisp.org>
265
266         Support non-blocking pipe I/O and SIGPIPE in pwrite().
267         * modules/pwrite (Depends-on): Add 'write'.
268
269 2011-04-13  Bruno Haible  <bruno@clisp.org>
270
271         Support non-blocking pipe I/O in write() on native Windows.
272         * lib/unistd.in.h (write): Enable replacement also if
273         GNULIB_UNISTD_H_NONBLOCKING is 1.
274         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
275         (rpl_write): When failing to write on a non-blocking pipe, change
276         errno from ENOSPC to EAGAIN.
277         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
278         putchar, puts, vfprintf, vprintf): Enable replacement also if
279         GNULIB_STDIO_H_NONBLOCKING is 1.
280         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
281         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
282         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
283         CALL_WITH_SIGPIPE_EMULATION.
284         (CALL_WITH_SIGPIPE_EMULATION): Use them.
285         * m4/nonblocking.m4: New file.
286         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
287         for non-blocking I/O support.
288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
289         GNULIB_UNISTD_H_NONBLOCKING.
290         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
291         required for non-blocking I/O support.
292         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
293         * modules/nonblocking (Files): Add m4/nonblocking.m4,
294         lib/stdio-write.c, m4/asm-underscore.m4.
295         (Depends-on): Add stdio, unistd.
296         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
297         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
298         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
299         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
300         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
301         problem with non-blocking pipes.
302         * doc/posix-functions/fputc.texi: Likewise.
303         * doc/posix-functions/fputs.texi: Likewise.
304         * doc/posix-functions/fwrite.texi: Likewise.
305         * doc/posix-functions/printf.texi: Likewise.
306         * doc/posix-functions/putc.texi: Likewise.
307         * doc/posix-functions/putchar.texi: Likewise.
308         * doc/posix-functions/puts.texi: Likewise.
309         * doc/posix-functions/vfprintf.texi: Likewise.
310         * doc/posix-functions/vprintf.texi: Likewise.
311         * doc/posix-functions/write.texi: Likewise.
312
313 2011-04-10  Jim Meyering  <meyering@redhat.com>
314
315         maint.mk: prohibit doubled words
316         Detect them also when they're separated by a newline.
317         There are 3 ways to customize it:
318           - disable the test on a per file basis, as usual with rules using
319             $(VC_LIST_EXCEPT)
320           - replace the default doubled-word-selecting regexp (affects all files)
321           - ignore a particular file-vs-doubled-word match
322         I nearly used that last one to ignore the "is is" match in
323         coreutils' NEWS file, since the text was "ls -is is ..."
324         To do that, I would have added this line to cfg.mk:
325           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
326         but it would have ignored any "is is" match in NEWS.
327         Low probability, but still...
328         Instead, I changed the text, slightly:
329           -  ls -is is now consistent with ls -lis in ignoring values returned
330           +  "ls -is" is now consistent with ls -lis in ignoring values returned
331         * top/maint.mk (prohibit_double_word_RE_): Provide default.
332         (prohibit_doubled_word_): Define.
333         (sc_prohibit_doubled_word): New rule.
334         (sc_prohibit_the_the): Remove.  Subsumed by the above.
335
336 2011-04-10  Jim Meyering  <meyering@redhat.com>
337
338         maint: fix doubled-word typo in comment
339         * m4/gethostname.m4: s/is is/it is/
340         * m4/getdomainname.m4: Likewise.
341
342 2011-04-10  Jim Meyering  <meyering@redhat.com>
343
344         maint: remove doubled word: s/it it/it/
345         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
346
347 2011-04-10  Jim Meyering  <meyering@redhat.com>
348
349         maint.mk: remove useless semicolon and backslash
350         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
351         semicolon and backslash.
352
353 2011-04-10  Bruno Haible  <bruno@clisp.org>
354
355         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
356         * modules/stdint-tests (Depends-on): Add wchar.
357
358 2011-04-10  Jim Meyering  <meyering@redhat.com>
359
360         maint: remove doubled words in comments, e.g., s/a a/a/
361         * lib/strptime.c (day_of_the_week): s/the the/the/
362         * tests/test-chown.h (test_chown): s/a a/a/
363
364         test-chown.h: correct a cast
365         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
366         when the destination is a stat.st_gid.
367
368 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
369
370         getaddrinfo: Fix test for sa_len member.
371         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
372         include <sys/types.h> before <sys/socket.h>.
373
374 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
375
376         maint: change "can not" to "cannot"
377         * doc/posix-functions/iconv.texi (iconv): This one crossed line
378         boundaries.
379
380 2011-04-09  Jim Meyering  <meyering@redhat.com>
381
382         maint: change "a a" to "a"
383         * tests/test-lchown.h (test_lchown): s/a a/a/
384
385         maint.mk: prohibit \<the the\>
386         * top/maint.mk (sc_prohibit_the_the): New rule.
387
388         maint: fix "the the" in comment
389         * lib/count-one-bits.h: s/the the/the/
390
391         maint: change "can not" to "cannot"
392         But do not change the occurrences in maintain.texi or in
393         build-aux/po/Makefile.in.in, which I presume comes from gettext.
394         * doc/gnulib-tool.texi: s/can not/cannot/
395         * doc/posix-functions/accept.texi (accept): Likewise.
396         * doc/posix-functions/socket.texi (socket): Likewise.
397         * lib/mbrtowc.c: Likewise.
398
399         maint.mk: prohibit use of "can not"
400         * top/maint.mk (sc_prohibit_can_not): New rule.
401         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
402
403 2011-04-09  Bruno Haible  <bruno@clisp.org>
404
405         careadlinkat: Guard against misuse of careadlinkatcwd.
406         * lib/careadlinkat.c: Include <stdlib.h>.
407         (careadlinkatcwd): Check that the fd argument is as expected.
408
409 2011-04-09  Bruno Haible  <bruno@clisp.org>
410
411         careadlinkat: Use common coding style.
412         * lib/careadlinkat.c: Move gnulib includes after system includes.
413
414 2011-04-09  Bruno Haible  <bruno@clisp.org>
415
416         careadlinkat: Clarify specification.
417         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
418         (careadlinkatcwd): Add comment.
419         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
420
421 2011-04-09  Bruno Haible  <bruno@clisp.org>
422
423         areadlinkat: Avoid link error on many platforms.
424         * modules/areadlinkat (Depends-on): Add areadlink.
425
426 2011-04-09  Bruno Haible  <bruno@clisp.org>
427
428         allocator, careadlinkat: Fix double-inclusion guard.
429         * lib/allocator.h: Fix double-inclusion guard.
430         * lib/careadlinkat.h: Likewise.
431
432 2011-04-09  Bruno Haible  <bruno@clisp.org>
433
434         relocatable-prog-wrapper: Update after module 'areadlink' changed.
435         * lib/relocwrapper.c: Update dependencies hierarchy.
436         * build-aux/install-reloc: Update list of files to be compiled.
437         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
438         lib/allocator.[hc].
439
440 2011-04-08  Eric Blake  <eblake@redhat.com>
441
442         strftime: silence gnulib-tool warning
443         * modules/strftime-tests (Depends-on): Drop automatic dependency.
444
445 2011-04-08  Bruno Haible  <bruno@clisp.org>
446
447         verify: Fix syntax error with GCC 4.6 in C++ mode.
448         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
449         (HAVE_STATIC_ASSERT): New macro.
450         (verify_true, verify): Use 'static_assert' if it is supported and
451         '_Static_assert' is not supported.
452
453 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
454
455         allocator: New module.
456         * modules/allocator, lib/allocator.c: New files.
457         * lib/allocator.h (stdlib_allocator): New decl.
458         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
459         Remove.  Do not include <stdlib.h>.
460         (careadlinkat): Use stdlib_allocator instead of rolling our own.
461         * modules/careadlinkat (Files): Remove lib/allocator.h.
462         (Depends-on): Add allocator.
463
464         stdlib: let modules use system malloc, realloc
465         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
466         if !_GL_USE_STDLIB_ALLOC.
467         (malloc, realloc): Limit this change to a smaller scope.
468
469         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
470         (malloc, realloc): Don't #undef; no longer needed.
471         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
472         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
473         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
474         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
475         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
476         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
477         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
478         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
479
480         careadlinkat: rename members to avoid problem
481         * lib/allocator.h (struct allocator): Rename members from
482         malloc/realloc to allocate/reallocate, to avoid problems if malloc
483         and realloc are #define'd.  Reported by Eric Blake in
484         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
485         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
486
487 2011-04-08  Eric Blake  <eblake@redhat.com>
488
489         nonblocking: reduce dependency
490         * tests/test-nonblocking.c: Only test sockets when in use.
491         * modules/nonblocking-tests (Depends-on): Drop socket.
492         (Makefile.am): Link even if sockets are not present.
493         * modules/pipe2-tests (Makefile.am): Likewise.
494         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
495
496         pipe2: fix O_NONBLOCK support on mingw
497         * modules/pipe2 (Depends-on): Add nonblocking.
498         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
499         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
500         * tests/test-nonblocking.c (main): Likewise.
501         * modules/pipe2-tests (Makefile.am): Avoid link failure.
502
503         fcntl-h: fix O_ACCMODE on cygwin
504         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
505         * lib/fcntl.in.h (O_ACCMODE): Fix it.
506
507         pipe-filter: drop O_NONBLOCK workarounds
508         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
509         * modules/pipe-filter-ii (Depends-on): Likewise.
510         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
511
512         nonblocking: provide O_NONBLOCK for mingw
513         * modules/nonblocking (Depends-on): Add open.
514         (configure.ac): Set new witness macro.
515         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
516         * modules/fcntl-h (Makefile.am): Substitute it.
517         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
518         nonblocking module is in use.
519         * lib/nonblocking.c: Adjust portability test.
520         * lib/open.c (open): Don't let native open see gnulib flag.
521         * tests/test-fcntl-h.c (main): Enhance test.
522         * tests/test-open.h (test_open): Likewise.
523         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
524
525         careadlinkat: fix compilation error on mingw
526         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
527         within struct allocator.
528
529 2011-04-06  Eric Blake  <eblake@redhat.com>
530
531         binary-io: relicense under LGPLv2+
532         * modules/binary-io (License): Relax to LGPLv2+.
533         Requested for libvirt, and required by pipe2.
534
535 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
536
537         verify: use _Static_assert if available
538         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
539         (verify_true, verify): Use it if available.  This generates better
540         diagnostics with GCC 4.6.0 and later.
541
542 2011-04-05  Bruno Haible  <bruno@clisp.org>
543
544         Remove leftover generated .h files after config.status changed.
545
546         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
547         GL_GENERATE_ALLOCA_H.
548         * modules/alloca-opt (Makefile.am): Remove alloca.h if
549         GL_GENERATE_ALLOCA_H evaluates to false.
550
551         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
552         GL_GENERATE_ARGZ_H.
553         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
554         evaluates to false.
555
556         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
557         GL_GENERATE_BYTESWAP_H.
558         * modules/byteswap (Makefile.am): Remove byteswap.h if
559         GL_GENERATE_BYTESWAP_H evaluates to false.
560
561         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
562         GL_GENERATE_ERRNO_H.
563         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
564         evaluates to false.
565
566         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
567         GL_GENERATE_FLOAT_H.
568         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
569         evaluates to false.
570
571         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
572         GL_GENERATE_FNMATCH_H.
573         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
574         GL_GENERATE_FNMATCH_H evaluates to false.
575
576         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
577         GL_GENERATE_GLOB_H.
578         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
579         evaluates to false.
580
581         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
582         automake conditional GL_GENERATE_ICONV_H.
583         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
584         evaluates to false.
585
586         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
587         GL_GENERATE_NETINET_IN_H.
588         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
589         GL_GENERATE_NETINET_IN_H evaluates to false.
590
591         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
592         conditional GL_GENERATE_PTHREAD_H.
593         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
594         * modules/pthread (Makefile.am): Remove pthread.h if
595         GL_GENERATE_PTHREAD_H evaluates to false.
596
597         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
598         GL_GENERATE_SCHED_H.
599         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
600         evaluates to false.
601
602         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
603         conditional GL_GENERATE_SELINUX_CONTEXT_H.
604         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
605         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
606
607         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
608         GL_GENERATE_STDARG_H.
609         * modules/stdarg (Makefile.am): Remove stdarg.h if
610         GL_GENERATE_STDARG_H evaluates to false.
611
612         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
613         GL_GENERATE_STDBOOL_H.
614         * modules/stdbool (Makefile.am): Remove stdbool.h if
615         GL_GENERATE_STDBOOL_H evaluates to false.
616
617         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
618         conditional GL_GENERATE_STDDEF_H.
619         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
620         * modules/stddef (Makefile.am): Remove stddef.h if
621         GL_GENERATE_STDDEF_H evaluates to false.
622
623         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
624         GL_GENERATE_STDINT_H.
625         * modules/stdint (Makefile.am): Remove stdint.h if
626         GL_GENERATE_STDINT_H evaluates to false.
627
628         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
629         GL_GENERATE_SYSEXITS_H.
630         * modules/sysexits (Makefile.am): Remove sysexits.h if
631         GL_GENERATE_SYSEXITS_H evaluates to false.
632
633         Reported by Karl Berry and Ralf Wildenhues.
634
635 2011-04-05  Bruno Haible  <bruno@clisp.org>
636
637         Ensure to rebuild generated .h files when config.status has changed.
638         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
639         config.status.
640         * modules/ctype (Makefile.am): Likewise.
641         * modules/dirent (Makefile.am): Likewise.
642         * modules/errno (Makefile.am): Likewise.
643         * modules/fcntl-h (Makefile.am): Likewise.
644         * modules/float (Makefile.am): Likewise.
645         * modules/getopt-posix (Makefile.am): Likewise.
646         * modules/glob (Makefile.am): Likewise.
647         * modules/iconv-h (Makefile.am): Likewise.
648         * modules/inttypes (Makefile.am): Likewise.
649         * modules/langinfo (Makefile.am): Likewise.
650         * modules/locale (Makefile.am): Likewise.
651         * modules/math (Makefile.am): Likewise.
652         * modules/netdb (Makefile.am): Likewise.
653         * modules/netinet_in (Makefile.am): Likewise.
654         * modules/poll-h (Makefile.am): Likewise.
655         * modules/pthread (Makefile.am): Likewise.
656         * modules/pty (Makefile.am): Likewise.
657         * modules/sched (Makefile.am): Likewise.
658         * modules/search (Makefile.am): Likewise.
659         * modules/selinux-h (Makefile.am): Likewise.
660         * modules/signal (Makefile.am): Likewise.
661         * modules/spawn (Makefile.am): Likewise.
662         * modules/stdarg (Makefile.am): Likewise.
663         * modules/stdbool (Makefile.am): Likewise.
664         * modules/stddef (Makefile.am): Likewise.
665         * modules/stdint (Makefile.am): Likewise.
666         * modules/stdio (Makefile.am): Likewise.
667         * modules/stdlib (Makefile.am): Likewise.
668         * modules/string (Makefile.am): Likewise.
669         * modules/strings (Makefile.am): Likewise.
670         * modules/sys_file (Makefile.am): Likewise.
671         * modules/sys_ioctl (Makefile.am): Likewise.
672         * modules/sys_select (Makefile.am): Likewise.
673         * modules/sys_socket (Makefile.am): Likewise.
674         * modules/sys_stat (Makefile.am): Likewise.
675         * modules/sys_time (Makefile.am): Likewise.
676         * modules/sys_times (Makefile.am): Likewise.
677         * modules/sys_utsname (Makefile.am): Likewise.
678         * modules/sys_wait (Makefile.am): Likewise.
679         * modules/sysexits (Makefile.am): Likewise.
680         * modules/termios (Makefile.am): Likewise.
681         * modules/time (Makefile.am): Likewise.
682         * modules/unistd (Makefile.am): Likewise.
683         * modules/wchar (Makefile.am): Likewise.
684         * modules/wctype-h (Makefile.am): Likewise.
685         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
686
687 2011-04-05  Bruno Haible  <bruno@clisp.org>
688
689         pipe2: Relicense under LGPLv2+.
690         * modules/pipe2 (License): Change to LGPLv2+.
691         Requested by Eric Blake, for libvirt.
692
693 2011-04-05  Bruce Korb  <bkorb@gnu.org>
694
695         bootstrap: compute gnulib_extra_files after updating build_aux
696         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
697         change build_aux or also supply gnulib_extra_files.  Handle correctly.
698
699 2011-04-05  Eric Blake  <eblake@redhat.com>
700
701         bootstrap: preserve git whitelist item sorting
702         * build-aux/bootstrap (sort_patterns): New function.
703         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
704
705 2011-04-05  Simon Josefsson  <simon@josefsson.org>
706
707         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
708         sc_space_tab check.
709
710 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
711
712         areadlink, areadlinkat: rewrite in terms of careadlinkat
713         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
714         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
715         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
716         (malloc, realloc): Remove #undefs.
717         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
718         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
719         readlink, ssize_t, stdint, unistd.
720         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
721         areadlink, stdint.
722
723         careadlinkat: new module
724         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
725         * modules/careadlinkat: New files, written by me with
726         a review and feedback from Ben Pfaff in
727         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
728
729 2011-04-01  Bruno Haible  <bruno@clisp.org>
730
731         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
732         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
733         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
734         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
735         Reported by Bruce Korb <bruce.korb@gmail.com>.
736
737 2011-04-01  Bruno Haible  <bruno@clisp.org>
738
739         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
740         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
741         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
742         * modules/wcpcpy (Depends-on): Add extensions.
743         * modules/wcpncpy (Depends-on): Likewise.
744         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
745         systems.
746         * doc/posix-functions/wcpncpy.texi: Likewise.
747         * doc/posix-functions/wcwidth.texi: Likewise.
748
749 2011-03-31  Eric Blake  <eblake@redhat.com>
750
751         nonblocking: fix mingw test failures
752         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
753         non-blocking flag on regular file.
754         (get_nonblocking_flag): Set errno on invalid fd.
755         * tests/test-nonblocking.c (main): Avoid test failure on
756         directories if fchdir is not active.
757         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
758
759 2011-03-31  Bruno Haible  <bruno@clisp.org>
760
761         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
762         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
763         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
764         Reported by Simon Josefsson <simon@josefsson.org>.
765
766 2011-03-31  Bruno Haible  <bruno@clisp.org>
767         and Eric Blake  <eblake@redhat.com>
768
769         nonblocking: new module
770         * modules/nonblocking: New module.
771         * modules/nonblocking-tests: Likewise.
772         * lib/nonblocking.h: New file.
773         * lib/nonblocking.c: Likewise.
774         * tests/test-nonblocking.c: New test.
775         * lib/ioctl.c (ioctl) [mingw]: Update comment.
776
777 2011-03-30  Bruno Haible  <bruno@clisp.org>
778
779         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
780         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
781         instead of 'printf' format for GCC >= 4.4.
782         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
783         (fprintf, printf, vfprintf, vprintf): Declare with
784         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
785         the system's vfprintf() function.
786         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
787
788 2011-03-30  Eric Blake  <eblake@redhat.com>
789
790         passfd: fix scoping bug
791         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
792         before sendmsg/recvmsg.
793
794         passfd: standardize coding conventions
795         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
796         can be learned at compile time.
797         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
798         ifdefs.
799         (sendfd, recvfd): Follow gnulib code conventions.
800
801         passfd: fix incorrect sendmsg arguments
802         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
803         incorrect msg_controllen value.
804         * modules/passfd-tests (Depends-on): Check for alarm.
805         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
806         Reported by Bastien ROUCARIES.
807
808 2011-03-30  Bruno Haible  <bruno@clisp.org>
809
810         c-strcasestr: Relicense under LGPLv2+.
811         * modules/c-strcasestr (License): Change to LGPLv2+.
812         Requested by Eric Blake, for libvirt.
813
814 2011-03-30  Simon Josefsson  <simon@josefsson.org>
815
816         * users.txt: Add libidn2.  Fix libtasn1 link.
817
818 2011-03-30  Jim Meyering  <meyering@redhat.com>
819
820         tests: readlink* ("",... fails with EINVAL on newer kernels
821         readlink and readlinkat have typically failed with ENOENT for
822         the invalid, empty file name,  "".  However, with the advent
823         of linux-2.6.39, they fail with EINVAL.
824         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
825         when operating on the empty file name.
826         * tests/test-readlink.h (test_readlink): Likewise.
827
828 2011-03-29  Bruno Haible  <bruno@clisp.org>
829
830         Relicense some modules under LGPLv2+, for libidn2.
831         * modules/array-mergesort (License): Change to LGPLv2+.
832         * modules/c-strcaseeq (License): Likewise.
833         * modules/striconveh (License): Likewise.
834         * modules/striconveha (License): Likewise.
835         * modules/uniconv/base (License): Likewise.
836         * modules/uniconv/u8-conv-from-enc (License): Likewise.
837         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
838         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
839         * modules/unictype/base (License): Likewise.
840         * modules/unictype/bidiclass-of (License): Likewise.
841         * modules/unictype/category-M (License): Likewise.
842         * modules/unictype/category-none (License): Likewise.
843         * modules/unictype/category-of (License): Likewise.
844         * modules/unictype/category-test (License): Likewise.
845         * modules/unictype/category-test-withtable (License): Likewise.
846         * modules/unictype/combining-class (License): Likewise.
847         * modules/unictype/joiningtype-of (License): Likewise.
848         * modules/unictype/scripts (License): Likewise.
849         * modules/uninorm/base (License): Likewise.
850         * modules/uninorm/canonical-decomposition (License): Likewise.
851         * modules/uninorm/composition (License): Likewise.
852         * modules/uninorm/decompose-internal (License): Likewise.
853         * modules/uninorm/decomposition-table (License): Likewise.
854         * modules/uninorm/nfc (License): Likewise.
855         * modules/uninorm/nfd (License): Likewise.
856         * modules/uninorm/u32-normalize (License): Likewise.
857         * modules/unistr/base (License): Likewise.
858         * modules/unistr/u32-cpy (License): Likewise.
859         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
860         * modules/unistr/u32-to-u8 (License): Likewise.
861         * modules/unistr/u32-uctomb (License): Likewise.
862         * modules/unistr/u8-check (License): Likewise.
863         * modules/unistr/u8-mblen (License): Likewise.
864         * modules/unistr/u8-mbtouc (License): Likewise.
865         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
866         * modules/unistr/u8-mbtoucr (License): Likewise.
867         * modules/unistr/u8-prev (License): Likewise.
868         * modules/unistr/u8-strlen (License): Likewise.
869         * modules/unistr/u8-to-u32 (License): Likewise.
870         * modules/unistr/u8-uctomb (License): Likewise.
871         * modules/unitypes (License): Likewise.
872         Requested by Simon Josefsson.
873
874 2011-03-29  Simon Josefsson  <simon@josefsson.org>
875
876         lib-symbol-visibility: Add a notice.
877         * modules/lib-symbol-visibility (Notice): New field.
878
879 2011-03-29  Bruno Haible  <bruno@clisp.org>
880
881         getaddrinfo: Doc fix.
882         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
883         section "fixed in Gnulib".
884
885 2011-03-28  Simon Josefsson  <simon@josefsson.org>
886
887         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
888         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
889
890 2011-03-26  Bruno Haible  <bruno@clisp.org>
891
892         unictype/property-byname: Reduce the number of load-time relocations.
893         * lib/unictype/pr_byname.c: Include <stdlib.h>.
894         (UC_PROPERTY_INDEX_*): New enumeration values.
895         (uc_property_byname): Convert an index from the lookup table to an
896         uc_property_t.
897         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
898         values.
899
900 2011-03-26  Bruno Haible  <bruno@clisp.org>
901
902         unictype/property-byname: Allow omitted word separators and aliases.
903         * lib/unictype/pr_byname.gperf: Add property names without word
904         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
905         for 'space'.
906
907 2011-03-26  Bruno Haible  <bruno@clisp.org>
908
909         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
910         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
911         also hyphens to space.
912         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
913         without spaces.
914         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
915
916 2011-03-26  Bruno Haible  <bruno@clisp.org>
917
918         unictype/joiningtype-byname: Recognize long names as well.
919         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
920         a long name.
921         * lib/unictype/joiningtype_byname.c: Include <string.h>,
922         unictype/joiningtype_byname.h.
923         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
924         * lib/unictype/joiningtype_byname.gperf: New file.
925         * modules/unictype/joiningtype-byname (Files): Add
926         lib/unictype/joiningtype_byname.gperf.
927         (Depends-on): Add gperf.
928         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
929         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
930         long names.
931
932         Tests for module 'unictype/joiningtype-longname'.
933         * modules/unictype/joiningtype-longname-tests: New file.
934         * tests/unictype/test-joiningtype_longname.c: New file.
935
936         New module 'unictype/joiningtype-longname'.
937         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
938         * lib/unictype/joiningtype_longname.c: New file.
939         * modules/unictype/joiningtype-longname: New file.
940         * modules/unictype/joiningtype-all (Depends-on): Add
941         unictype/joiningtype-longname.
942
943 2011-03-26  Bruno Haible  <bruno@clisp.org>
944
945         unictype/bidiclass-byname: Recognize long names as well.
946         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
947         name.
948         * lib/unictype/bidi_byname.c: Include <string.h>,
949         unictype/bidi_byname.h.
950         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
951         * lib/unictype/bidi_byname.gperf: New file.
952         * modules/unictype/bidiclass-byname (Files): Add
953         lib/unictype/bidi_byname.gperf.
954         (Depends-on): Add gperf.
955         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
956         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
957         long names.
958
959         Tests for module 'unictype/bidiclass-longname'.
960         * modules/unictype/bidiclass-longname-tests: New file.
961         * tests/unictype/test-bidi_longname.c: New file.
962
963         New module 'unictype/bidiclass-longname'.
964         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
965         * lib/unictype/bidi_longname.c: New file.
966         * modules/unictype/bidiclass-longname: New file.
967         * modules/unictype/bidiclass-all (Depends-on): Add
968         unictype/bidiclass-longname.
969
970 2011-03-26  Bruno Haible  <bruno@clisp.org>
971
972         unictype/bidi*: Rename modules.
973         * modules/unictype/bidiclass-all: Renamed from
974         modules/unictype/bidicategory-all.
975         * modules/unictype/bidiclass-name: Renamed from
976         modules/unictype/bidiclass-name.
977         (Description): Update.
978         * modules/unictype/bidiclass-name-tests: Renamed from
979         modules/unictype/bidicategory-name-tests.
980         * modules/unictype/bidiclass-byname: Renamed from
981         modules/unictype/bidicategory-byname.
982         (Description): Update.
983         * modules/unictype/bidiclass-byname-tests: Renamed from
984         modules/unictype/bidicategory-byname-tests.
985         * modules/unictype/bidiclass-of: Renamed from
986         modules/unictype/bidicategory-of.
987         (Description): Update.
988         * modules/unictype/bidiclass-of-tests: Renamed from
989         modules/unictype/bidicategory-of-tests.
990         * modules/unictype/bidiclass-test: Renamed from
991         modules/unictype/bidicategory-test.
992         (Description): Update.
993         * modules/unictype/bidiclass-test-tests: Renamed from
994         modules/unictype/bidicategory-test-tests.
995         * modules/unictype/bidicategory-all: New file, a simple redirection.
996         * modules/unictype/bidicategory-name: Likewise.
997         * modules/unictype/bidicategory-byname: Likewise.
998         * modules/unictype/bidicategory-of: Likewise.
999         * modules/unictype/bidicategory-test: Likewise.
1000         * modules/unictype/property-bidi-* (Dependencies): Update.
1001         * lib/unictype/bidi_*.c: Update comment.
1002
1003 2011-03-26  Bruno Haible  <bruno@clisp.org>
1004
1005         unictype/bidi*: Rename functions, part 2.
1006         * modules/unictype/bidicategory-name (configure.ac): Update required
1007         libunistring version.
1008         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
1009
1010 2011-03-25  Bruno Haible  <bruno@clisp.org>
1011
1012         New module 'unictype/combining-class-all'.
1013         * modules/unictype/combining-class-all: New file.
1014
1015         Tests for module 'unictype/combining-class-byname'.
1016         * modules/unictype/combining-class-byname-tests: New file.
1017         * tests/unictype/test-combiningclass_byname.c: New file.
1018
1019         New module 'unictype/combining-class-byname'.
1020         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
1021         * lib/unictype/combiningclass_byname.c: New file.
1022         * lib/unictype/combiningclass_byname.gperf: New file.
1023         * modules/unictype/combining-class-byname: New file.
1024
1025         Tests for module 'unictype/combining-class-longname'.
1026         * modules/unictype/combining-class-longname-tests: New file.
1027         * tests/unictype/test-combiningclass_longname.c: New file.
1028
1029         New module 'unictype/combining-class-longname'.
1030         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
1031         * lib/unictype/combiningclass_longname.c: New file.
1032         * modules/unictype/combining-class-longname: New file.
1033
1034         Tests for module 'unictype/combining-class-name'.
1035         * modules/unictype/combining-class-name-tests: New file.
1036         * tests/unictype/test-combiningclass_name.c: New file.
1037
1038         New module 'unictype/combining-class-name'.
1039         * lib/unictype.in.h (uc_combining_class_name): New declaration.
1040         * lib/unictype/combiningclass_name.c: New file.
1041         * modules/unictype/combining-class-name: New file.
1042
1043 2011-03-25  Bruno Haible  <bruno@clisp.org>
1044
1045         unictype/combining-class: Rename source files.
1046         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
1047         of unictype/combining.h.
1048         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
1049         Update.
1050         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
1051         * modules/unictype/combining-class (Description): Fix.
1052         (Files, Makefile.am): Update.
1053         * tests/unictype/test-combiningclass.c: Renamed from
1054         tests/unictype/test-combining.c.
1055         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
1056
1057 2011-03-25  Bruno Haible  <bruno@clisp.org>
1058
1059         unictype: Update list of canonical combining classes.
1060         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
1061
1062 2011-03-25  Bruno Haible  <bruno@clisp.org>
1063
1064         unictype/category-byname: Recognize long names as well.
1065         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
1066         a long name.
1067         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
1068         unictype/categ_byname.h.
1069         (UC_CATEGORY_INDEX_*): New enumeration values.
1070         (uc_general_category_byname): Use uc_general_category_lookup and
1071         convert from index to value.
1072         * lib/unictype/categ_byname.gperf: New file.
1073         * modules/unictype/category-byname (Files): Add
1074         lib/unictype/categ_byname.gperf.
1075         (Depends-on): Add gperf.
1076         (Makefile.am): Add rule for generating unictype/categ_byname.h.
1077         * tests/unictype/test-categ_byname.c (main): Test the recognition of
1078         long names.
1079
1080         Tests for module 'unictype/category-longname'.
1081         * modules/unictype/category-longname-tests: New file.
1082         * tests/unictype/test-categ_longname.c: New file.
1083
1084         New module 'unictype/category-longname'.
1085         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
1086         * lib/unictype/categ_longname.c: New file.
1087         * modules/unictype/category-longname: New file.
1088         * modules/unictype/category-all (Depends-on): Add it.
1089
1090 2011-03-25  Bruno Haible  <bruno@clisp.org>
1091
1092         Tests for module 'unictype/category-LC'.
1093         * modules/unictype/category-LC-tests: New file.
1094         * tests/unictype/test-categ_LC.c: New file, automatically generated.
1095
1096         New module 'unictype/category-LC'.
1097         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
1098         (UC_CATEGORY_LC): New declaration.
1099         (UC_CASED_LETTER): New macro.
1100         * lib/gen-uni-tables.c (is_category_LC): New function.
1101         (output_categories): Also handle category LC.
1102         (UC_CATEGORY_MASK_LC): New enumeration value.
1103         (general_category_byname): Also handle category LC.
1104         * lib/unictype/categ_LC.c: New file.
1105         * lib/unictype/categ_LC.h: New file, automatically generated.
1106         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
1107         category LC.
1108         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
1109         * modules/unictype/category-LC: New file.
1110         * modules/unictype/category-byname (Depends-on): Add
1111         unictype/category-LC.
1112         * modules/unictype/category-all (Depends-on): Likewise.
1113
1114 2011-03-25  Eric Blake  <eblake@redhat.com>
1115
1116         xmalloc: revert yesterday's regression
1117         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
1118         realloc's underlying behavior (allowing allocation of zero-size
1119         objects, especially if malloc-gnu is also in use).
1120
1121 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
1122
1123         maint.mk: add missing version to VC-tag
1124         * top/maint.mk: git tag was missing actual tag name; add it.
1125
1126         valgrind: do leak checking, and exit with code 1 on error (not 0)
1127         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
1128         to VALGRIND.
1129
1130 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
1131
1132         posix-modules: say what it does.
1133         * posix-modules: Add a line to the --help output saying what it does.
1134
1135 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
1136
1137         xmalloc: Do not leak if underlying realloc is C99 compatible.
1138         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
1139         This avoids a leak on C99-based systems.  See
1140         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
1141
1142 2011-03-24  Eric Blake  <eblake@redhat.com>
1143
1144         realloc: document portability problem
1145         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
1146         passing 0 size to realloc.
1147
1148 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
1149
1150         doc: update users.txt
1151         * users.txt: Add cvsps, tmpwatch
1152
1153 2011-03-23  Matt Rice  <ratmice@gmail.com>
1154
1155         doc: update users.txt
1156         * users.txt: Add gdb.
1157
1158 2011-03-23  Jim Meyering  <meyering@redhat.com>
1159
1160         doc: update users.txt
1161         Looking through matches up to the following URL (there are still
1162         several more pages), I found several projects that use gnulib:
1163         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
1164         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
1165         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
1166
1167 2011-03-22  Bruno Haible  <bruno@clisp.org>
1168
1169         unictype/bidi*: Rename functions.
1170         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
1171         uc_bidi_class, uc_is_bidi_class): New declarations.
1172         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
1173         uc_bidi_category_byname.
1174         (uc_bidi_category_byname): New function.
1175         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
1176         u_bidi_category_name.
1177         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
1178         (uc_bidi_category_name): New function.
1179         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
1180         uc_bidi_category.
1181         (uc_bidi_category): New function.
1182         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
1183         uc_is_bidi_category. Invoke uc_bidi_class.
1184         (uc_is_bidi_category): New function.
1185         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
1186         instead of uc_bidi_category_byname.
1187         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
1188         instead of uc_bidi_category_name.
1189         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
1190         uc_bidi_category.
1191         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
1192         instead of uc_is_bidi_category.
1193
1194 2011-03-21  Bruno Haible  <bruno@clisp.org>
1195
1196         New module 'unictype/joininggroup-all'.
1197         * modules/unictype/joininggroup-all: New file.
1198
1199         Tests for module 'unictype/joininggroup-of'.
1200         * modules/unictype/joininggroup-of-tests: New file.
1201         * tests/unictype/test-joininggroup_of.c: New file.
1202         * tests/unictype/test-joininggroup_of.h: New file, automatically
1203         generated by gen-uni-tables.
1204
1205         New module 'unictype/joininggroup-of'.
1206         * modules/unictype/joininggroup-of: New file.
1207         * lib/unictype/joininggroup_of.c: New file.
1208         * lib/unictype/joininggroup_of.h: New file, automatically generated by
1209         gen-uni-tables.
1210
1211         Tests for module 'unictype/joininggroup-byname'.
1212         * modules/unictype/joininggroup-byname-tests: New file.
1213         * tests/unictype/test-joininggroup_byname.c: New file.
1214
1215         New module 'unictype/joininggroup-byname'.
1216         * modules/unictype/joininggroup-byname: New file.
1217         * lib/unictype/joininggroup_byname.c: New file.
1218         * lib/unictype/joininggroup_byname.gperf: New file.
1219
1220         Tests for module 'unictype/joininggroup-name'.
1221         * modules/unictype/joininggroup-name-tests: New file.
1222         * tests/unictype/test-joininggroup_name.c: New file.
1223
1224         New module 'unictype/joininggroup-name'.
1225         * modules/unictype/joininggroup-name: New file.
1226         * lib/unictype/joininggroup_name.c: New file.
1227         * lib/unictype/joininggroup_name.h: New file.
1228
1229         New module 'unictype/joiningtype-all'.
1230         * modules/unictype/joiningtype-all: New file.
1231
1232         Tests for module 'unictype/joiningtype-of'.
1233         * modules/unictype/joiningtype-of-tests: New file.
1234         * tests/unictype/test-joiningtype_of.c: New file.
1235         * tests/unictype/test-joiningtype_of.h: New file, automatically
1236         generated by gen-uni-tables.
1237
1238         New module 'unictype/joiningtype-of'.
1239         * modules/unictype/joiningtype-of: New file.
1240         * lib/unictype/joiningtype_of.c: New file.
1241         * lib/unictype/joiningtype_of.h: New file, automatically generated by
1242         gen-uni-tables.
1243
1244         Tests for module 'unictype/joiningtype-byname'.
1245         * modules/unictype/joiningtype-byname-tests: New file.
1246         * tests/unictype/test-joiningtype_byname.c: New file.
1247
1248         New module 'unictype/joiningtype-byname'.
1249         * modules/unictype/joiningtype-byname: New file.
1250         * lib/unictype/joiningtype_byname.c: New file.
1251
1252         Tests for module 'unictype/joiningtype-name'.
1253         * modules/unictype/joiningtype-name-tests: New file.
1254         * tests/unictype/test-joiningtype_name.c: New file.
1255
1256         New module 'unictype/joiningtype-name'.
1257         * modules/unictype/joiningtype-name: New file.
1258         * lib/unictype/joiningtype_name.c: New file.
1259
1260         unictype: Add support for Arabic shaping properties.
1261         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
1262         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
1263         declarations.
1264         (UC_JOINING_GROUP_*): New enumeration values.
1265         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
1266         declarations.
1267         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
1268         (unicode_joining_type): New variable.
1269         (UC_JOINING_GROUP_*): New enumeration values.
1270         (unicode_joining_group): New variable.
1271         (fill_arabicshaping, joining_type_as_c_identifier,
1272         output_joining_type_test, output_joining_type,
1273         joining_group_as_c_identifier, output_joining_group_test,
1274         output_joining_group): New functions.
1275         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
1276         fill_arabicshaping and output_joining_type_test, output_joining_type,
1277         output_joining_group_test, output_joining_group.
1278         Reported by Simon Josefsson.
1279
1280 2011-03-21  Jim Meyering  <meyering@redhat.com>
1281
1282         strftime: fix a bug in yesterday's change
1283         * lib/strftime.c (add): Accommodate width's initial value of -1.
1284         Otherwise, nstrftime would copy uninitialized data into
1285         the result buffer.
1286
1287 2011-03-21  Jim Meyering  <meyering@redhat.com>
1288
1289         tests: add strftime-tests module
1290         * tests/test-strftime.c: New file.
1291         * modules/strftime-tests: New module.
1292
1293 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
1294
1295         strftime: don't assume a byte count fits in 'int'
1296         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
1297         found this problem by static analysis, using gcc -Wstrict-overflow
1298         (GCC 4.5.2, x86-64).  This reported an optimization that depended
1299         on an integer overflow having undefined behavior, but it turns out
1300         that the argument is a size, which might not fit in 'int' anyway,
1301
1302 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
1303
1304         stdio: don't require ignore_value around fwrite
1305
1306         This patch works around libc bug 11959
1307         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
1308         Without this patch, applications must often write
1309         ignore_value (fwrite (...)) even though the ignore_value is
1310         not helpful here.  It's common to write many objects, using
1311         fwrite/printf/etc., and then use ferror to detect output error.
1312
1313         I considered making this patch optional, but decided against it,
1314         because libc is obviously being inconsistent here: there is no
1315         reason libc should insist that user code must inspect fwrite
1316         return's value without also insisting that it inspect printf's,
1317         putchar's, etc.  If user code wants to have a strict style where
1318         all these functions' values are checked (so that ferror need not
1319         be checked), we could add support for that style in a new gnulib
1320         module, but in the meantime it's better to be consistent and to
1321         support common usage.
1322
1323         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
1324         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
1325         that we are compiling in checking mode, and if not C++, and
1326         if not already wrapping fwrite for some other reason.
1327         (fwrite): #define to rpl_fwrite if the latter is defined.
1328
1329 2011-03-20  Bruno Haible  <bruno@clisp.org>
1330
1331         verror: Fix compilation error introduced on 2011-02-13.
1332         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
1333         instead of __attribute__.
1334         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1335
1336 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
1337             Bruno Haible  <bruno@clisp.org>
1338
1339         socklen: do not depend on sys_socket
1340         While trying to modify Emacs to use gnulib's socklen module,
1341         I discovered a circular dependency: socklen depends on sys_socket
1342         and vice versa.  Emacs can use socklen, but it does not need
1343         sys_socket because it has its own substitute for sys/socket.h.
1344         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
1345         gl_TYPE_SOCKLEN_T.
1346         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
1347         gl_PREREQ_SYS_H_SOCKET.
1348         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
1349         gl_PREREQ_SYS_H_SOCKET.
1350         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
1351         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
1352         * modules/socklen (Depends-on): Do not depend on sys_socket.
1353         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
1354
1355 2011-03-20  Jim Meyering  <meyering@redhat.com>
1356
1357         maint.mk: sort file names *after* new transformation
1358         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
1359         prefix would have led to an unwarranted failure in GNU parted.
1360         Sort after that transformation.
1361
1362 2011-03-19  Jim Meyering  <meyering@redhat.com>
1363
1364         maint.mk: fix po-file syntax-check rule
1365         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
1366         Patch by Bruno Haible.
1367
1368 2011-03-19  Bruno Haible  <bruno@clisp.org>
1369
1370         socklen: Update comment.
1371         * m4/socklen.m4: Update comment about platforms.
1372
1373 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1374             Bruno Haible  <bruno@clisp.org>
1375
1376         inet_ntop, inet_pton: Simplify.
1377         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
1378         documented to provide socklen_t and we already depend on sys_socket.
1379         * modules/inet_pton (Depends-on): Likewise.
1380         * lib/arpa_inet.in.h: Adjust comment.
1381
1382 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1383             Bruno Haible  <bruno@clisp.org>
1384
1385         netdb: Simplify.
1386         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
1387         documented to provide socklen_t and we already depend on sys_socket.
1388         * lib/netdb.in.h: Adjust comment.
1389
1390 2011-03-19  Bruno Haible  <bruno@clisp.org>
1391
1392         sys_socket, netdb: Document problem with socklen_t.
1393         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
1394         platforms.
1395         * doc/posix-headers/netdb.texi: Likewise.
1396
1397 2011-03-18  Eric Blake  <eblake@redhat.com>
1398
1399         maint.mk: let po check work in VPATH build
1400         * top/maint.mk (po_file): Allow cfg.mk override.
1401         (sc_po_check): Allow VPATH use.
1402         Reported by Jiri Denemark.
1403
1404 2011-03-16  Jim Meyering  <meyering@redhat.com>
1405
1406         maint.mk: allow fine-grained syntax-check exclusion via Make variables
1407         Before, you would have had to create one .x-sc_ file per rule in order
1408         to exempt offending files.  Now, you may instead use a Make variable --
1409         usually defined in cfg.mk -- whose name identifies the affected rule.
1410         * top/maint.mk (_sc_excl): Define.
1411         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
1412         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
1413
1414 2011-03-13  Bruno Haible  <bruno@clisp.org>
1415
1416         ignore-value tests: Avoid warnings.
1417         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
1418         empty for gcc < 3.4.
1419
1420 2011-03-13  Bruno Haible  <bruno@clisp.org>
1421
1422         passfd: Fix link error on Solaris.
1423         * modules/passfd (Description): Correct.
1424         (Depends-on): Add socketlib.
1425         (Link): New section.
1426         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
1427
1428 2011-03-13  Bruno Haible  <bruno@clisp.org>
1429
1430         passfd: Fix link error on AIX 5.2.
1431         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
1432
1433 2011-03-13  Bruno Haible  <bruno@clisp.org>
1434
1435         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
1436         * lib/sys_socket.in.h: Include <stddef.h>.
1437         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
1438         CMSG_FIRSTHDR. Remove unused variable.
1439
1440 2011-03-13  Bruno Haible  <bruno@clisp.org>
1441
1442         passfd: Fix compilation error on OpenBSD.
1443         * lib/passfd.c: Include <sys/uio.h>.
1444
1445 2011-03-13  Bruno Haible  <bruno@clisp.org>
1446
1447         passfd test: Fix warnings.
1448         * tests/test-passfd.c: Include <sys/wait.h>.
1449         (main): Fix typo.
1450
1451 2011-03-13  Bruno Haible  <bruno@clisp.org>
1452
1453         passfd module, part 4, tweaks.
1454         * tests/test-passfd.c: Reorder includes.
1455         (main): Fix perror and printf calls.
1456
1457 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
1458
1459         passfd module, part 4.
1460         * modules/passfd-tests: New file.
1461         * tests/test-passfd.c: New file.
1462
1463 2011-03-13  Jim Meyering  <meyering@redhat.com>
1464
1465         Makefile: rely on GNU make; derive syntax-check rule names
1466         Rather than requiring that each sc_ rule be listed as a dependent
1467         of "check", use features of GNU make to derive the list.
1468         * Makefile (syntax-check-rules): Define.
1469         (check): Depend on the new variable, not the hard-coded list.
1470
1471 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
1472             Bruno Haible  <bruno@clisp.org>
1473
1474         passfd module, part 3.
1475         * lib/passfd.h (recvfd): Add a flags argument.
1476         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
1477         (recvfd): Add a flags argument.
1478         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
1479         exists.
1480         * modules/passfd (Depends-on): Add cloexec.
1481         Suggested by Eric Blake.
1482
1483 2011-03-13  Bruno Haible  <bruno@clisp.org>
1484
1485         passfd module, part 2, tweaks.
1486         * modules/passfd (Files): Reorder.
1487         (Depends-on): Remove errno.
1488         (Include): Remove <sys/socket.h>, <sys/un.h>.
1489         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
1490         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
1491         specification header. Include <sys/socket.h> always. Don't include
1492         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
1493         (sendfd): Clarify that it sets errno when it fails.
1494         (recvfd): Fix specification.
1495
1496 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
1497
1498         passfd module, part 2.
1499         * modules/passfd: New file.
1500         * lib/passfd.h: New file.
1501         * lib/passfd.c: New file.
1502
1503 2011-03-12  Bruno Haible  <bruno@clisp.org>
1504
1505         wcswidth, mbswidth: Avoid integer overflow.
1506         * lib/wcswidth.c: Include <limits.h>.
1507         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
1508         * lib/mbswidth.c: Include <limits.h>.
1509         (mbsnwidth): Avoid 'int' overflow.
1510         Reported by Jim Meyering.
1511
1512 2011-03-12  Bruno Haible  <bruno@clisp.org>
1513
1514         futimens, utimensat: Avoid endless recursion on Solaris 10.
1515         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
1516         Solaris.
1517         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
1518         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
1519
1520 2011-03-11  Jim Meyering  <meyering@redhat.com>
1521
1522         maint.mk: relax a regexp to accommodate other formatting styles
1523         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
1524         between "ngettext" and the following "(".
1525
1526 2011-03-11  Pádraig Brady <P@draigBrady.com>
1527
1528         maint.mk: suppress a false positive warning
1529         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
1530         diagnostics are marked with ngettext.
1531
1532 2011-03-10  Eric Blake  <eblake@redhat.com>
1533
1534         wchar: add explicit dependencies, for Tru64
1535         * modules/mbmemcasecoll (Depends-on): Add wchar.
1536         * modules/mbtowc (Depends-on): Likewise.
1537         * modules/vasnprintf (Depends-on): Likewise.
1538         * modules/unistdio/u-printf-args (Depends-on): Likewise.
1539         * modules/wctomb (Depends-on): Likewise.
1540         Reported by Peter O'Gorman.
1541
1542 2011-03-08  Bruno Haible  <bruno@clisp.org>
1543
1544         passfd module, part 1, tweaks.
1545         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
1546         Improve indentation. Improve AC_MSG_CHECKING messages.
1547         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
1548         gl_SOCKET_FAMILIES.
1549
1550 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
1551
1552         passfd module, part 1.
1553         * m4/afunix.m4: New file.
1554         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
1555         sockets.
1556
1557 2011-03-08  Bruno Haible  <bruno@clisp.org>
1558
1559         regex-quote: New API.
1560         * lib/regex-quote.h: Include <stdbool.h>.
1561         (struct regex_quote_spec): New type.
1562         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
1563         New declarations.
1564         (regex_quote_length, regex_quote_copy, regex_quote): Take a
1565         'const struct regex_quote_spec *' argument.
1566         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
1567         (pcre_special): New constant.
1568         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
1569         New functions.
1570         (regex_quote_length, regex_quote_copy, regex_quote): Take a
1571         'const struct regex_quote_spec *' argument.
1572         * modules/regex-quote (Depends-on): Add stdbool.
1573         * tests/test-regex-quote.c (check): Update for new API. Add test for
1574         anchored results.
1575         * NEWS: Mention the API change.
1576         Reported by Reuben Thomas and Eric Blake.
1577
1578 2011-03-06  Bruno Haible  <bruno@clisp.org>
1579
1580         regex-quote: Fix creation of POSIX extended regular expressions.
1581         * lib/regex-quote.c (ere_special): Add grouping and alternation
1582         operators.
1583
1584 2011-03-05  Bruno Haible  <bruno@clisp.org>
1585
1586         doc: Improve doc regarding autopoint vs. gnulib.
1587         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
1588         disable autopoint while running autoreconf.
1589         Suggested by Ralf Wildenhues.
1590
1591 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1592
1593         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
1594         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
1595
1596 2011-03-03  Bruce Korb  <bkorb@gnu.org>
1597
1598         parse-duration: remove xalloc.h dependency
1599         * lib/parse-duration.c (parse_period): handle NULL return from
1600         strdup instead of calling xstrdup().
1601         * modules/parse-duration: remove "xalloc" dependency
1602
1603 2011-03-03  Matthew Booth  <mbooth@redhat.com>
1604
1605         bootstrap: honor m4_base when running aclocal
1606         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
1607
1608 2011-03-02  Jim Meyering  <meyering@redhat.com>
1609
1610         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
1611         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
1612         on request from Matt Booth.
1613
1614 2011-03-01  Eric Blake  <eblake@redhat.com>
1615
1616         test-link: work on Hurd
1617         * tests/test-link.h (test_link): Hurd rejects linking directories
1618         with EISDIR instead of the POSIX-mandated EPERM.
1619
1620 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
1621
1622         stdio: simplify by moving files to printf-posix, sigpipe
1623         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
1624         since this symbol is needed only if printf is replaced.
1625         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
1626         Require gl_ASM_SYMBOL_PREFIX.
1627         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
1628         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
1629         (Depends-on): Add 'raise'.
1630         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
1631         * modules/stdio (Files): Remove lib/stdio-write.c,
1632         m4/asm-underscore.m4.
1633         (Depends-on): Remove 'raise'.
1634
1635         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
1636         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
1637         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
1638         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
1639
1640 2011-02-28  Bruno Haible  <bruno@clisp.org>
1641
1642         localcharset: Assume ANSI C behaviour of free().
1643         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
1644         calling free().
1645         Suggested by Simon Josefsson <simon@josefsson.org>.
1646
1647 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
1648             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
1649             Bruno Haible  <bruno@clisp.org>  (tiny change)
1650
1651         On Cygwin, use /proc file system instead of win32 API.
1652         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
1653         Win32 file names.
1654         (DllMain): Simplify by removing Cygwin specific code.
1655         (find_shared_library_fullname): Use Linux specific implementation also
1656         for Cygwin.
1657         (get_shared_library_fullname): Update accordingly.
1658         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
1659         Win32 file names.
1660         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
1661         Cygwin specific code.
1662
1663 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
1664             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
1665
1666         Fix OpenMP flag detection for various Fortran compilers.
1667         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
1668         OpenMP-conditional compilation construct, to force compile
1669         failure with missing OpenMP flag.
1670         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
1671
1672 2011-02-25  Eric Blake  <eblake@redhat.com>
1673
1674         strstr: expand test coverage
1675         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
1676         compilation.
1677         * tests/test-memmem.c (main): Duplicate tests.
1678         * tests/test-strcasestr.c (main): Likewise.
1679         * tests/test-c-strcasestr.c (main): Likewise.
1680
1681 2011-02-25  Jim Meyering  <meyering@redhat.com>
1682
1683         maint.mk: detect missing-NL-at-EOF, too
1684         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
1685         it also detects when a file lacks a newline at EOF.
1686         (require_exactly_one_NL_at_EOF_): Renamed from
1687         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
1688         since people may well have .x-sc_... file names tied to the
1689         existing name.  Suggested by Eric Blake.
1690
1691 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
1692
1693         dirname: move m4/dos.m4 functionality into lib/dosname.h
1694
1695         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
1696         extracts symbols from it, puts them into config.h; but it's much
1697         easier to use the symbols directly.  filename.h already does this,
1698         but it disagrees with dos.m4 in some respects.  This patch
1699         introduces a different include file dosname.h that packages up
1700         dos.m4, and then later we can work on merging filename.h and
1701         dosname.h.  Applications that need only the easy-to-configure
1702         symbols should consider including dosname.h rather than dirname.h.
1703         * NEWS: Mention incompatible changes.
1704         * m4/dos.m4: Remove.
1705         * lib/dosname.h, modules/dosname: New files.
1706         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
1707         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
1708         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
1709         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
1710         Include dosname.h, not dirname.h.
1711         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
1712         Include dosname.h, for definitions of symbols like ISSLASH
1713         that used to be in config.h.
1714         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
1715         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
1716         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
1717         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
1718         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
1719         * modules/rmdir (Files): Likewise.
1720         * modules/stat (Files): Likewise.
1721         * modules/unlink (Files): Likewise.
1722         * modules/dirname-lgpl (Depends-on): Add dosname.
1723         * modules/lstat (Depends-on): Likewise.
1724         * modules/openat (Depends-on): Likewise.
1725         * modules/rmdir (Depends-on): Likewise.
1726         * modules/savewd (Depends-on): Likewise.
1727         * modules/stat (Depends-on): Likewise.
1728         * modules/unlink (Depends-on): Likewise.
1729         * modules/openat (Depends-on): Remove dirname-lgpl.
1730         * modules/savewd (Depends-on): Likewise.
1731         * tests/test-dirname.c: Do not use removed symbols like
1732         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
1733         the remaining symbols, e.g., ISSLASH ('\\').
1734
1735 2011-02-25  Eric Blake  <eblake@redhat.com>
1736
1737         strstr: revert patches that introduced bug and pessimization
1738         * lib/str-two-way.h: Add another reference.
1739         (two_way_short_needle, two_way_long_needle): Revert changes from
1740         2011-02-24; they pessimize search speed.
1741         (critical_factorization): Partially revert changes from
1742         2010-06-22; they violate the requirement that the left half of the
1743         needle be smaller than the period of the needle.
1744
1745 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
1746
1747         filenamecat: remove unnecessary dependency on dirname-lgpl
1748         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
1749         is no direct dependency, just an indirect one via filenamecat-lgpl.
1750
1751         remove: remove unnecessary use of m4/dos.m4
1752         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
1753         * modules/remove (FILES): Remove m4/dos.m4.
1754
1755         * lib/openat-proc.c: Don't include dirname.h; not needed.
1756
1757         backupfile: remove unnecessary use of m4/dos.m4
1758         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
1759         of its symbols are used by the backupfile code.  backupfile.c does
1760         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
1761         for the rare case of programs that want all their backup file
1762         names to live within 8+3 limits, and dos.m4 doesn't address that.
1763         * modules/backupfile (Files): Remove m4/dos.m4.
1764
1765 2011-02-24  Jim Meyering  <meyering@redhat.com>
1766
1767         strstr: fix a bug whereby strstr would mistakenly return NULL
1768         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
1769         in period calculation.
1770         (two_way_long_needle): Likewise.
1771         The original problem was reported by Mike Stump in
1772         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
1773         Ralf Wildenhues provided the short needle and haystack.
1774         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
1775         Add a more involved test to trigger the bug in two_way_long_needle.
1776
1777 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
1778
1779         gnulib-tool: remove use of bold display in help screen
1780         * gnulib-tool (func_usage): Do not use bold display anymore in the
1781         help screen.  That was just meant to be a temporary emphasis for a
1782         backward-incompatible change.
1783
1784 2011-02-23  Bruno Haible  <bruno@clisp.org>
1785
1786         Fix misindentation of preprocessor directives.
1787         * lib/argp-namefrob.h: Reindent preprocessor directives.
1788         * lib/getopt_int.h (struct _getopt_data): Likewise.
1789         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
1790         * lib/vasnprintf.c (decode_long_double): Likewise.
1791         * tests/test-argmatch.c: Insert blank lines, for clarity.
1792         * tests/test-exclude.c: Likewise.
1793
1794 2011-02-22  Bruno Haible  <bruno@clisp.org>
1795
1796         ioctl: Fix for MacOS X in 64-bit mode.
1797         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
1798         value.
1799         Suggested by Eric Blake.
1800         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
1801
1802 2011-02-22  Jim Meyering  <meyering@redhat.com>
1803
1804         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
1805         * Makefile (sc_cpp_indent_check): Don't limit the check to files
1806         in lib/.
1807
1808 2011-02-22  Eric Blake  <eblake@redhat.com>
1809
1810         maint: avoid any CDPATH issue
1811         * Makefile (sc_cpp_indent_check): Anchor cd argument.
1812
1813         maint: adjust cpp indentation for my modules, as well
1814         * Makefile (sc_cpp_indent_check): Add my name.
1815         * lib/fbufmode.c: Filter through cppi.
1816         * lib/fpurge.c: Likewise.
1817         * lib/freadable.c: Likewise.
1818         * lib/freading.c: Likewise.
1819         * lib/fwritable.c: Likewise.
1820         * lib/fwriting.c: Likewise.
1821         * lib/sigaction.c: Likewise.
1822
1823 2011-02-22  Jim Meyering  <meyering@redhat.com>
1824
1825         maint: adjust cpp indentation to reflect nesting depth
1826         I.e., in a block of code that begins with an unnested "#if",
1827         put one space between the "#" in column 1 and following token.
1828         For example,
1829         -#include <sys/vfs.h>
1830         +# include <sys/vfs.h>
1831         Do this only in .c files that are part of a module I maintain.
1832         * lib/linkat.c: Filter through cppi.
1833         * lib/nanosleep.c: Likewise.
1834         * lib/openat.c: Likewise.
1835         * lib/openat-die.c: Likewise.
1836         * lib/dup3.c: Likewise.
1837         * lib/fchownat.c: Likewise.
1838         * lib/flock.c: Likewise.
1839         * lib/fsync.c: Likewise.
1840         * lib/fts.c: Likewise.
1841         * lib/getpass.c: Likewise.
1842         * lib/gettimeofday.c: Likewise.
1843         * lib/userspec.c: Likewise.
1844         * Makefile (sc_cpp_indent_check): New rule, to check this.
1845
1846 2011-02-22  Bruno Haible  <bruno@clisp.org>
1847
1848         New module 'wctomb'.
1849         * lib/stdlib.in.h (wctomb): New declaration.
1850         * lib/wctomb.c: New file.
1851         * lib/wctomb-impl.h: New file.
1852         * m4/wctomb.m4: New file.
1853         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
1854         REPLACE_WCTOMB.
1855         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
1856         REPLACE_WCTOMB.
1857         * modules/wctomb: New file.
1858         * tests/test-stdlib-c++.cc: Test signature of wctomb.
1859         * doc/posix-functions/wctomb.texi: Mention the new module.
1860         * modules/wctob (Depends-on): Add wctomb.
1861
1862 2011-02-22  Bruno Haible  <bruno@clisp.org>
1863
1864         New module 'mbtowc'.
1865         * lib/stdlib.in.h (mbtowc): New declaration.
1866         * lib/mbtowc.c: New file.
1867         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
1868         * m4/mbtowc.m4: New file.
1869         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
1870         REPLACE_MBTOWC.
1871         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
1872         REPLACE_MBTOWC.
1873         * modules/mbtowc: New file.
1874         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
1875         * doc/posix-functions/mbtowc.texi: Mention the new module.
1876         * modules/btowc (Depends-on): Add mbtowc.
1877
1878 2011-02-22  Bruno Haible  <bruno@clisp.org>
1879
1880         wcrtomb: Add more tests for native Windows platforms.
1881         * tests/test-wcrtomb-w32-1.sh: New file.
1882         * tests/test-wcrtomb-w32-2.sh: New file.
1883         * tests/test-wcrtomb-w32-3.sh: New file.
1884         * tests/test-wcrtomb-w32-4.sh: New file.
1885         * tests/test-wcrtomb-w32-5.sh: New file.
1886         * tests/test-wcrtomb-w32.c: New file.
1887         * modules/wcrtomb-tests (Files): Add them.
1888         (Makefile.am): Arrange to run these tests.
1889         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
1890         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
1891
1892 2011-02-20  Bruno Haible  <bruno@clisp.org>
1893
1894         wcrtomb: Enhance test.
1895         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
1896
1897 2011-02-20  Bruno Haible  <bruno@clisp.org>
1898
1899         mbrtowc: Tiny optimization.
1900         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
1901
1902 2011-02-20  Jim Meyering  <meyering@redhat.com>
1903
1904         test-exclude.c: remove unmatched #endif
1905         * tests/test-exclude.c: Remove stray #endif, left over from
1906         the change of a week ago.
1907
1908 2011-02-19  Jim Meyering  <meyering@redhat.com>
1909
1910         git-version-gen: skip "-dirty" check when appropriate
1911         * build-aux/git-version-gen: Don't run any git commands when the
1912         version string comes from .tarball-version.  Prior to this, we
1913         would run git update-index --refresh even from a just-unpacked
1914         tarball directory, and that could affect a .git/ directory in a
1915         parent of the build directory.  Reported by Mike Frysinger.
1916
1917 2011-02-19  Bruno Haible  <bruno@clisp.org>
1918
1919         unictype/property-byname: Reduce the size of the 'data' segment.
1920         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
1921
1922 2011-02-19  Bruno Haible  <bruno@clisp.org>
1923
1924         unictype/scripts: Reduce the size of the 'data' segment.
1925         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
1926         '%pic'.
1927         * lib/unictype/scripts_byname.gperf: Regenerated.
1928
1929 2011-02-19  Bruno Haible  <bruno@clisp.org>
1930
1931         stdint: Update documentation.
1932         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
1933
1934 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
1935
1936         stdint: omit redundant check for wchar.h
1937         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
1938         always tests whether wchar.h exists, so remove the now-redundant test.
1939
1940 2011-02-18  Bruno Haible  <bruno@clisp.org>
1941
1942         stdint: Cut dependency to module 'wchar'.
1943         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
1944         include the necessary prerequisites.
1945         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
1946         * modules/stdint (Depends-on): Remove wchar.
1947         (Makefile.am): Substitute HAVE_WCHAR_H.
1948         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
1949
1950 2011-02-18  Eric Blake  <eblake@redhat.com>
1951
1952         longlong: skip, rather than fail, on cross-compilation
1953         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
1954         when cross-compiling; regression from 2011-02-16.
1955
1956 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
1957
1958         * NEWS: Mention 2011-02-08 change to stdlib.
1959
1960 2011-02-17  Bruno Haible  <bruno@clisp.org>
1961
1962         getloadavg: Add comments about platforms.
1963         * m4/getloadavg.m4: Add comment.
1964         * lib/getloadavg.c: Likewise.
1965
1966 2011-02-17  Bruno Haible  <bruno@clisp.org>
1967
1968         getloadavg: Fix link error on Solaris 2.6.
1969         * modules/getloadavg (Link): New section.
1970         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
1971         linking test-getloadavg.
1972         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
1973         getloadavg.
1974
1975 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
1976
1977         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
1978         It was 'int', but this doesn't match the IRIX 6.5 manual.
1979         Suggested by Bruno Haible in
1980         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
1981
1982 2011-02-17  Bruno Haible  <bruno@clisp.org>
1983
1984         havelib: Fix comments.
1985         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
1986         change.
1987
1988 2011-02-17  Bruno Haible  <bruno@clisp.org>
1989
1990         havelib: Update config.rpath.
1991         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
1992
1993 2011-02-17  Bruno Haible  <bruno@clisp.org>
1994
1995         getloadavg test: Add some plausibility checks.
1996         * tests/test-getloadavg.c (check_avg): Print a warning when the value
1997         is improbable.
1998
1999 2011-02-16  Eric Blake  <eblake@redhat.com>
2000
2001         maintainer-makefile: make syntax-check a no-op from tarballs
2002         * top/maint.mk (no-vc-detected): New rule.
2003         (local-checks-available): Use it to avoid hanging if someone tries
2004         'make syntax-check' from a tarball.  Also append to any non-syntax
2005         checks already defined in cfg.mk.
2006
2007 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
2008
2009         longlong: tune, particularly for common case of c99
2010
2011         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
2012         or running anything if c99, or if unsigned long long int does not
2013         work.  In either case, we know the answer without further tests.
2014         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
2015         it at most once, and use its results for both long long int and
2016         unsigned long long int.  This is more likely to be efficient in
2017         the common case where the program wants to check for both long
2018         long int and unsigned long long int.
2019         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
2020         since the answer is already known.
2021
2022 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
2023
2024         getloadavg: set errno
2025         * lib/getloadavg.c: Set errno when returning -1.  If no other
2026         error number looks appropriate, set it to ENOSYS if the getloadavg
2027         looks like it can't possibly ever work, ENOTSUP otherwise.
2028         Suggested by Bruno Haible in
2029         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
2030
2031         getloadavg: trim unused parts and speed up 'configure'
2032         * NEWS: Document this.
2033         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
2034         always compiled if getloadavg is absent.
2035         Move test code to ...
2036         * tests/test-getloadavg.c: New file, containing previous
2037         contents of test from lib/getloadavg.c.  It also contains
2038         suggestions by Bruno Haible in
2039         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
2040         * modules/getloadavg-tests: New file.
2041         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
2042         Do tests in the same order as they're needed for getloadavg.c.
2043         Omit setgid-related tests that generate symbols KMEM_GROUP,
2044         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
2045         Do only the tests that are needed to see whether the system has
2046         getloadavg, moving the other tests into ...
2047         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
2048         NLIST_NAME_UNION; nobody should be using it.  Do not define
2049         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
2050         relevant, as the user of this module shouldn't care how getloadavg
2051         is implemented.
2052
2053         getloadavg: omit unused var
2054         * lib/getloadavg.c (getloadavg): Omit unused local variable.
2055
2056 2011-02-15  Jim Meyering  <meyering@redhat.com>
2057
2058         doc: update users.txt
2059         * users.txt: Update iwhd's URL.
2060
2061 2011-02-13  Bruno Haible  <bruno@clisp.org>
2062
2063         Consistent macro naming for macros that use GCC __attribute__.
2064         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
2065         _ATTRIBUTE_NONNULL_.
2066         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
2067         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
2068         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
2069         ATTRIBUTE_DEPRECATED.
2070         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
2071         ATTRIBUTE_NORETURN.
2072         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2073         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2074         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2075         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2076         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
2077         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
2078         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
2079         ATTRIBUTE_SENTINEL.
2080         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
2081         ATTRIBUTE_RETURN_CHECK.
2082         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
2083         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
2084         ATTRIBUTE_NORETURN.
2085         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
2086         Reported by Paul Eggert.
2087
2088 2011-02-13  Bruno Haible  <bruno@clisp.org>
2089
2090         Don't interfere with a program's definition of __attribute__.
2091         * lib/argp.h (__attribute__): Remove definition.
2092         (_GL_ATTRIBUTE_FORMAT): New macro.
2093         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
2094         * lib/argp-fmtstream.h (__attribute__): Remove definition.
2095         (_GL_ATTRIBUTE_FORMAT): New macro.
2096         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
2097         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
2098         GCC 3 or newer.
2099         * lib/error.h (__attribute__): Remove definition.
2100         (_GL_ATTRIBUTE_FORMAT): New macro.
2101         (error, error_at_line): Use it.
2102         * lib/hash.h (__attribute__): Remove definition.
2103         (ATTRIBUTE_WUR): Update definition. Define always.
2104         * lib/openat.h (__attribute__): Remove definition.
2105         (ATTRIBUTE_NORETURN): Update definition. Define always.
2106         * lib/sigpipe-die.h (__attribute__): Remove definition.
2107         (ATTRIBUTE_NORETURN): Update definition. Define always.
2108         * lib/vasnprintf.h (__attribute__): Remove definition.
2109         (_GL_ATTRIBUTE_FORMAT): New macro.
2110         (asnprintf, vasnprintf): Use it.
2111         * lib/xalloc.h (__attribute__): Remove definition.
2112         (ATTRIBUTE_NORETURN): Update definition. Define always.
2113         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
2114         * lib/xmemdup0.h (__attribute__): Remove definition.
2115         (ATTRIBUTE_NORETURN): Update definition. Define always.
2116         * lib/xprintf.h (__attribute__): Remove definition.
2117         (_GL_ATTRIBUTE_FORMAT): New macro.
2118         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
2119         * lib/xstrtol.h (__attribute__): Remove definition.
2120         (ATTRIBUTE_NORETURN): Update definition. Define always.
2121         * lib/xvasprintf.h (__attribute__): Remove definition.
2122         (_GL_ATTRIBUTE_FORMAT): New macro.
2123         (xasprintf, xvasprintf): Use it.
2124         * tests/test-argmatch.c (__attribute__): Remove definition.
2125         (ATTRIBUTE_NORETURN): Update definition. Define always.
2126         * tests/test-exclude.c (__attribute__): Remove definition.
2127         (ATTRIBUTE_NORETURN): Update definition. Define always.
2128         Reported by Paul Eggert.
2129
2130 2011-02-13  Bruno Haible  <bruno@clisp.org>
2131
2132         mbrtowc: Add more tests for native Windows platforms.
2133         * tests/test-mbrtowc-w32-1.sh: New file.
2134         * tests/test-mbrtowc-w32-2.sh: New file.
2135         * tests/test-mbrtowc-w32-3.sh: New file.
2136         * tests/test-mbrtowc-w32-4.sh: New file.
2137         * tests/test-mbrtowc-w32-5.sh: New file.
2138         * tests/test-mbrtowc-w32.c: New file.
2139         * modules/mbrtowc-tests (Files): Add them.
2140         (Makefile.am): Arrange to run these tests.
2141         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
2142         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
2143
2144 2011-02-13  Bruno Haible  <bruno@clisp.org>
2145
2146         mbrtowc: Work around native Windows bug.
2147         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
2148         guess when no suitable locale for testing was found.
2149         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
2150
2151 2011-02-13  Bruno Haible  <bruno@clisp.org>
2152
2153         mbsinit: Work around mingw bug.
2154         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
2155         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
2156         Windows.
2157         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
2158
2159 2011-02-13  Bruno Haible  <bruno@clisp.org>
2160
2161         mbsinit: Don't crash for a NULL argument.
2162         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
2163         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
2164
2165 2011-02-13  Bruno Haible  <bruno@clisp.org>
2166
2167         Don't interfere with a program's definition of __attribute__.
2168         * lib/stdio.in.h (__attribute__): Remove definition.
2169         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
2170         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
2171         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
2172         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
2173         * lib/string.in.h (__attribute__): Remove definition.
2174         Reported by Paul Eggert.
2175
2176 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
2177
2178         stdlib: don't get in the way of non-GCC __attribute__
2179         See thread starting at
2180         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
2181         Revert previous stdlib change, installing the following instead:
2182         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
2183         to get in the way of a non-GCC compiler that supports __attribute__.
2184         (_GL_ATTRIBUTE_RETURN): New macro.
2185         (_Exit): Use it instead of __attribute__.
2186
2187 2011-02-12  Bruno Haible  <bruno@clisp.org>
2188
2189         quotearg test: Avoid test failure on mingw.
2190         * tests/test-quotearg.sh: Convert the locale identifier from native
2191         Windows syntax to Unix syntax.
2192
2193 2011-02-12  Bruno Haible  <bruno@clisp.org>
2194
2195         setlocale: Prefer gnulib's override over libintl's override.
2196         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
2197         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
2198         GNULIB_defined_setlocale is set.
2199
2200 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
2201
2202         stdlib: support non-GCC __attribute__
2203
2204         Fix a serious and tricky problem encountered when attempting to
2205         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
2206         5.5, but it crashed due to memory corruption on Solaris 10 with
2207         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
2208         bits that are otherwise zero.  This tagging is optional inside
2209         Emacs but is preferred and is used when __attribute__ ((__aligned
2210         (8))) works, as it does with both recent-enough GCC and with Sun C
2211         5.11.  However, Sun C 5.11 is not GCC and does not #define
2212         __GNUC__ and __GNUC_MINOR__.
2213
2214         When I added the getloadavg module to Emacs, it brought in
2215         stdlib.in.h, which contained this fragment:
2216
2217            #ifndef __attribute__
2218            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
2219            #  define __attribute__(Spec)   /* empty */
2220            # endif
2221            #endif
2222
2223         When files that include <stdlib.h> were compiled with Sun C 5.11,
2224         the above code disabled __attribute__ ((__aligned (8))), which
2225         caused variables to not be properly aligned, which eventually led
2226         to the pointer corruption mentioned above.  (This was a bit hard
2227         to diagnose, unfortunately.)
2228
2229         Several "#define __attribute__(X) /* empty */" code snippets need
2230         to be eradicated from Gnulib to work with non-GCC compilers that
2231         support __attribute__.  The Autoconf way to do this is to test for
2232         each kind of attribute that we want support for, and selectively
2233         enable that in source code.
2234
2235         Fix this problem just for stdlib.h, by adding a test for the
2236         __noreturn__ attribute, and change stdlib.in.h to use that test
2237         when needed.  This technique can be easily generalized to the
2238         other *.in.h files and attributes, and a similar technique can be
2239         used for *.h and *.c files.  This patch is enough to solve the
2240         problem for Emacs + getloadavg, and I thought I'd publish it for
2241         feedback before undertaking further, similar fixes in other
2242         modules.
2243
2244         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
2245         because it's not needed for stdlib.h.  It merely substitutes the
2246         value directly into stdlib.h.  We may well need to #define it, or
2247         similar symbols, for other modules, but it's nice to also have an
2248         option to not #define it for applications like Emacs that do not
2249         need it.
2250
2251         * lib/stdlib.in.h (__attribute__): Do not #define.
2252         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
2253         be defined only if the _Exit module is also used.
2254         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
2255         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
2256         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
2257         platforms.
2258         * modules/_Exit (Files): Add m4/attribute.m4.
2259         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
2260         * m4/attribute.m4: New file.
2261
2262 2011-02-12  Bruno Haible  <bruno@clisp.org>
2263
2264         wcsrtombs: Work around bug on native Windows.
2265         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
2266         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
2267         instead of len.
2268         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
2269
2270 2011-02-12  Bruno Haible  <bruno@clisp.org>
2271
2272         mbsrtowcs: Work around bug on native Windows.
2273         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
2274         against mingw bug.
2275         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
2276
2277 2011-02-12  Bruno Haible  <bruno@clisp.org>
2278
2279         Avoid setlocale bugs in tests.
2280         * modules/btowc (Dependencies): Add setlocale.
2281         * modules/c-strcase (Dependencies): Likewise.
2282         * modules/mbmemcasecmp (Dependencies): Likewise.
2283         * modules/mbmemcasecoll (Dependencies): Likewise.
2284         * modules/mbrtowc (Dependencies): Likewise.
2285         * modules/mbscasecmp (Dependencies): Likewise.
2286         * modules/mbscasestr (Dependencies): Likewise.
2287         * modules/mbschr (Dependencies): Likewise.
2288         * modules/mbscspn (Dependencies): Likewise.
2289         * modules/mbsinit (Dependencies): Likewise.
2290         * modules/mbsncasecmp (Dependencies): Likewise.
2291         * modules/mbsnrtowcs (Dependencies): Likewise.
2292         * modules/mbspbrk (Dependencies): Likewise.
2293         * modules/mbspcasecmp (Dependencies): Likewise.
2294         * modules/mbsrchr (Dependencies): Likewise.
2295         * modules/mbsrtowcs (Dependencies): Likewise.
2296         * modules/mbsspn (Dependencies): Likewise.
2297         * modules/mbsstr (Dependencies): Likewise.
2298         * modules/nl_langinfo (Dependencies): Likewise.
2299         * modules/quotearg (Dependencies): Likewise.
2300         * modules/unicase/locale-language (Dependencies): Likewise.
2301         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
2302         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
2303         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
2304         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
2305         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
2306         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
2307         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
2308         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
2309         * modules/vasnprintf-posix (Dependencies): Likewise.
2310         * modules/wcrtomb (Dependencies): Likewise.
2311         * modules/wcsnrtombs (Dependencies): Likewise.
2312         * modules/wcsrtombs (Dependencies): Likewise.
2313
2314 2011-02-12  Bruno Haible  <bruno@clisp.org>
2315
2316         setlocale: Workaround native Windows bug.
2317         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
2318         succeeds but sets LC_CTYPE to "C", report a failure.
2319         * tests/test-setlocale2.sh: New file.
2320         * tests/test-setlocale2.c: New file.
2321         * modules/setlocale-tests (Files): Add the new files.
2322         (Makefile.am): Enable test-setlocale2.sh test.
2323         * doc/posix-functions/setlocale.texi: Mention workaround.
2324
2325 2011-02-11  Bruno Haible  <bruno@clisp.org>
2326
2327         Tests for module 'setlocale'.
2328         * modules/setlocale-tests: New file.
2329         * tests/test-setlocale1.sh: New file.
2330         * tests/test-setlocale1.c: New file.
2331
2332         New module 'setlocale'.
2333         * lib/locale.in.h (setlocale): New declaration.
2334         * lib/setlocale.c: New file, based on
2335         gettext/gettext-runtime/intl/setlocale.c.
2336         * m4/setlocale.m4: New file.
2337         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
2338         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
2339         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
2340         REPLACE_SETLOCALE.
2341         * modules/setlocale: New file.
2342         * tests/test-locale-c++.cc: Test the declaration of setlocale.
2343         * doc/posix-functions/setlocale.texi: Mention the new module.
2344
2345 2011-02-11  Bruno Haible  <bruno@clisp.org>
2346
2347         Prepare for locale dependent tests on mingw.
2348         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
2349         because it has the wrong locale encoding.
2350         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
2351         French_France.1252 instead of "fr".
2352         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
2353         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
2354         because it has the wrong locale encoding.
2355         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
2356         native Windows, try Turkish_Turkey.65001.
2357         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
2358         Chinese_China.54936.
2359
2360         Prepare for locale dependent tests on mingw.
2361         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
2362         differently.
2363         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
2364         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
2365         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
2366         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
2367
2368 2011-02-11  Eric Blake  <eblake@redhat.com>
2369
2370         strptime: avoid compiler warnings
2371         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
2372         compiler warnings about dead code.
2373         Reported by Daniel P. Berrange.
2374
2375 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
2376
2377         doc: update users.txt
2378         * users.txt: Add rcs.
2379
2380 2011-02-10  John W. Eaton  <jwe@gnu.org>
2381
2382         doc: update users.txt
2383         * users.txt: Add octave.
2384
2385 2011-02-10  Jim Meyering  <meyering@redhat.com>
2386
2387         doc: update users.txt
2388         * users.txt: Add iwhd.
2389
2390 2011-02-09  Bruno Haible  <bruno@clisp.org>
2391
2392         gnulib-tool: Make copyright notice adjustment more robust.
2393         * gnulib-tool (func_import): In sed_transform_main_lib_file,
2394         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
2395         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
2396         License".
2397         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
2398
2399 2011-02-06  Bruno Haible  <bruno@clisp.org>
2400
2401         New module 'towctrans'.
2402         * modules/towctrans: New file.
2403         * lib/wctype.in.h (towctrans): New declaration.
2404         * lib/towctrans.c: New file.
2405         * lib/towctrans-impl.h: New file.
2406         * m4/towctrans.m4: New file.
2407         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
2408         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
2409         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
2410         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
2411         * doc/posix-functions/towctrans.texi: Mention the new module.
2412
2413 2011-02-06  Bruno Haible  <bruno@clisp.org>
2414
2415         New module 'wctrans'.
2416         * modules/wctrans: New file.
2417         * lib/wctype.in.h (wctrans): New declaration.
2418         * lib/wctrans.c: New file.
2419         * lib/wctrans-impl.h: New file.
2420         * m4/wctrans.m4: New file.
2421         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
2422         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
2423         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
2424         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
2425         * doc/posix-functions/wctrans.texi: Mention the new module.
2426
2427 2011-02-06  Bruno Haible  <bruno@clisp.org>
2428
2429         New module 'iswctype'.
2430         * modules/iswctype: New file.
2431         * lib/wctype.in.h (iswctype): New declaration.
2432         * lib/iswctype.c: New file.
2433         * lib/iswctype-impl.h: New file.
2434         * m4/iswctype.m4: New file.
2435         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
2436         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
2437         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
2438         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
2439         * doc/posix-functions/iswctype.texi: Mention the new module and the
2440         HP-UX 11.00 problem.
2441
2442 2011-02-06  Bruno Haible  <bruno@clisp.org>
2443
2444         New module 'wctype'.
2445         * modules/wctype: Change to represent the wctype() substitute.
2446         * lib/wctype.in.h (wctype): New declaration.
2447         * lib/wctype.c: New file.
2448         * lib/wctype-impl.h: New file.
2449         * m4/wctype.m4: New file.
2450         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
2451         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
2452         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
2453         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
2454         * doc/posix-functions/wctype.texi: Mention the new module and the
2455         HP-UX 11.00 problem.
2456
2457 2011-02-06  Bruno Haible  <bruno@clisp.org>
2458
2459         wctype-h: Ensure wctype_t and wctrans_t are defined.
2460         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
2461         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
2462         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
2463         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
2464         HAVE_WCTRANS_T.
2465         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
2466
2467 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
2468
2469         flock: fix license typo
2470
2471         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
2472         omitted.
2473
2474 2011-02-08  Bruno Haible  <bruno@clisp.org>
2475
2476         Split large sed scripts, for HP-UX sed.
2477         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
2478         to avoid HP-UX limit of 99 commands, in the near future.
2479         * modules/stdlib (Makefile.am): Likewise.
2480         * modules/unistd (Makefile.am): Likewise.
2481         * modules/wchar (Makefile.am): Likewise.
2482         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2483         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
2484         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
2485
2486 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
2487             Bruno Haible  <bruno@clisp.org>
2488
2489         stdlib: improve random_r modularization
2490         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
2491         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
2492         you also need the random_r module to get this material right.
2493         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
2494         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
2495         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
2496
2497 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
2498
2499         stdlib: don't depend on stdint
2500         * lib/stdlib.in.h: Don't include <stdint.h> merely because
2501         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
2502         be independent of whether stdint.h is needed.
2503         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
2504         here, instead of ...
2505         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
2506         struct random_data should be using the random_r module, not just
2507         the stdlib module (which wouldn't make sense: what package needs
2508         just struct random_data without also needing random_r?).
2509         * modules/stdlib (Depends-on): Remove stdint.
2510
2511         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
2512         See the thread rooted at
2513         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
2514         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
2515         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
2516         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
2517         __VMS)); previously it was always included (via fcntl--.h).
2518         (getloadavg): Do not use c_strtod.  Instead, approximate it by
2519         hand; this is good enough for load averages.  Also, do not use
2520         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
2521         flags directly if available and don't bother otherwise.  (Packages
2522         that need the extra reliability should use the modules that define
2523         these flags on older platforms that lack them.)
2524         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
2525         fcntl-safer.
2526
2527 2011-02-08  Jim Meyering  <meyering@redhat.com>
2528
2529         di-set.h, ino-map.h: add multiple-inclusion guard
2530         Technically, the guard is required only for ino-map.h, due to its
2531         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
2532         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
2533         * lib/ino-map.h: Likewise.
2534
2535 2011-02-06  Bruno Haible  <bruno@clisp.org>
2536
2537         iswblank: Ensure declaration on glibc systems.
2538         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
2539         * modules/iswblank (Dependencies): Add 'extensions'.
2540         * doc/posix-functions/iswblank.texi: Document the glibc problem.
2541
2542 2011-02-06  Bruno Haible  <bruno@clisp.org>
2543
2544         New module 'iswblank'.
2545         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
2546         * modules/iswblank: New file.
2547         * modules/wctype-h (Files): Remove lib/iswblank.c.
2548         (Makefile.am): Substitute GNULIB_ISWBLANK.
2549         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
2550         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
2551         (gl_WCTYPE_H_DEFAULTS): New macro.
2552         (gl_WCTYPE_H): Require it. Remove iswblank related code.
2553         * modules/iswblank-tests: New file.
2554         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
2555         * tests/test-wctype-h.c (main): Remove iswblank tests.
2556         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
2557         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
2558         of 'wctype-h'.
2559         * NEWS: Mention the change.
2560         * modules/mbchar (Depends-on): Add iswblank.
2561
2562 2011-02-08  Bruno Haible  <bruno@clisp.org>
2563
2564         di-set tests: Refactor.
2565         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
2566         unnecessary includes.
2567         (ASSERT): Remove macro.
2568         (main): Make C90 compliant by avoiding variable declaration after
2569         statement.
2570         * modules/di-set-tests (Files): Add tests/macros.h.
2571
2572 2011-02-08  Bruno Haible  <bruno@clisp.org>
2573
2574         ino-map tests: Refactor.
2575         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
2576         unnecessary includes.
2577         (ASSERT): Remove macro.
2578         (main): Make C90 compliant by avoiding variable declaration after
2579         statement.
2580         * modules/ino-map-tests (Files): Add tests/macros.h.
2581
2582 2011-02-08  Jim Meyering  <meyering@redhat.com>
2583
2584         di-set: add "const" to a cast
2585         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
2586         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
2587
2588 2011-02-06  Bruno Haible  <bruno@clisp.org>
2589
2590         Rename module 'wctype' to 'wctype-h'.
2591         * modules/wctype-h: Renamed from modules/wctype.
2592         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
2593         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
2594         (Files, Depends-on, Makefile.am): Update.
2595         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
2596         (Files, Makefile.am): Update.
2597         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
2598         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
2599         * doc/posix-headers/wctype.texi: Update.
2600         * doc/posix-functions/iswalnum.texi: Update.
2601         * doc/posix-functions/iswalpha.texi: Update.
2602         * doc/posix-functions/iswblank.texi: Update.
2603         * doc/posix-functions/iswcntrl.texi: Update.
2604         * doc/posix-functions/iswdigit.texi: Update.
2605         * doc/posix-functions/iswgraph.texi: Update.
2606         * doc/posix-functions/iswlower.texi: Update.
2607         * doc/posix-functions/iswprint.texi: Update.
2608         * doc/posix-functions/iswpunct.texi: Update.
2609         * doc/posix-functions/iswspace.texi: Update.
2610         * doc/posix-functions/iswupper.texi: Update.
2611         * doc/posix-functions/iswxdigit.texi: Update.
2612         * doc/posix-functions/towlower.texi: Update.
2613         * doc/posix-functions/towupper.texi: Update.
2614         * NEWS: Mention the change.
2615         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
2616         * modules/mbchar (Dependencies): Likewise.
2617         * modules/mbswidth (Dependencies): Likewise.
2618         * modules/quotearg (Dependencies): Likewise.
2619         * modules/regex (Dependencies): Likewise.
2620         * modules/wcscasecmp (Dependencies): Likewise.
2621         * modules/wcsncasecmp (Dependencies): Likewise.
2622         * modules/wcwidth (Dependencies): Likewise.
2623
2624 2011-02-06  Bruno Haible  <bruno@clisp.org>
2625
2626         New module 'wcswidth'.
2627         * modules/wcswidth: New file.
2628         * lib/wchar.in.h (wcswidth): New declaration.
2629         * lib/wcswidth.c: New file.
2630         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
2631         * m4/wcswidth.m4: New file.
2632         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
2633         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
2634         REPLACE_WCSWIDTH.
2635         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
2636         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
2637         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
2638         * doc/posix-functions/wcswidth.texi: Mention the new module.
2639
2640 2011-02-06  Bruno Haible  <bruno@clisp.org>
2641
2642         New module 'wcstok'.
2643         * modules/wcstok: New file.
2644         * lib/wchar.in.h (wcstok): New declaration.
2645         * lib/wcstok.c: New file.
2646         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
2647         * m4/wcstok.m4: New file.
2648         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
2649         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
2650         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
2651         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
2652         * doc/posix-functions/wcstok.texi: Mention the new module.
2653
2654 2011-02-06  Bruno Haible  <bruno@clisp.org>
2655
2656         New module 'wcsstr'.
2657         * modules/wcsstr: New file.
2658         * lib/wchar.in.h (wcsstr): New declaration.
2659         * lib/wcsstr.c: New file.
2660         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
2661         * m4/wcsstr.m4: New file.
2662         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
2663         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
2664         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
2665         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
2666         * doc/posix-functions/wcsstr.texi: Mention the new module.
2667
2668 2011-02-06  Bruno Haible  <bruno@clisp.org>
2669
2670         New module 'wcspbrk'.
2671         * modules/wcspbrk: New file.
2672         * lib/wchar.in.h (wcspbrk): New declaration.
2673         * lib/wcspbrk.c: New file.
2674         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
2675         * m4/wcspbrk.m4: New file.
2676         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
2677         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
2678         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
2679         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
2680         * doc/posix-functions/wcspbrk.texi: Mention the new module.
2681
2682 2011-02-06  Bruno Haible  <bruno@clisp.org>
2683
2684         New module 'wcsspn'.
2685         * modules/wcsspn: New file.
2686         * lib/wchar.in.h (wcsspn): New declaration.
2687         * lib/wcsspn.c: New file.
2688         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
2689         * m4/wcsspn.m4: New file.
2690         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
2691         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
2692         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
2693         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
2694         * doc/posix-functions/wcsspn.texi: Mention the new module.
2695
2696 2011-02-06  Bruno Haible  <bruno@clisp.org>
2697
2698         New module 'wcscspn'.
2699         * modules/wcscspn: New file.
2700         * lib/wchar.in.h (wcscspn): New declaration.
2701         * lib/wcscspn.c: New file.
2702         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
2703         * m4/wcscspn.m4: New file.
2704         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
2705         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
2706         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
2707         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
2708         * doc/posix-functions/wcscspn.texi: Mention the new module.
2709
2710 2011-02-06  Bruno Haible  <bruno@clisp.org>
2711
2712         New module 'wcsrchr'.
2713         * modules/wcsrchr: New file.
2714         * lib/wchar.in.h (wcsrchr): New declaration.
2715         * lib/wcsrchr.c: New file.
2716         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
2717         * m4/wcsrchr.m4: New file.
2718         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
2719         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
2720         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
2721         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
2722         * doc/posix-functions/wcsrchr.texi: Mention the new module.
2723
2724 2011-02-06  Bruno Haible  <bruno@clisp.org>
2725
2726         New module 'wcschr'.
2727         * modules/wcschr: New file.
2728         * lib/wchar.in.h (wcschr): New declaration.
2729         * lib/wcschr.c: New file.
2730         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
2731         * m4/wcschr.m4: New file.
2732         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
2733         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
2734         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
2735         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
2736         * doc/posix-functions/wcschr.texi: Mention the new module.
2737
2738 2011-02-06  Bruno Haible  <bruno@clisp.org>
2739
2740         New module 'wcsdup'.
2741         * modules/wcsdup: New file.
2742         * lib/wchar.in.h (wcsdup): New declaration.
2743         * lib/wcsdup.c: New file.
2744         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
2745         * m4/wcsdup.m4: New file.
2746         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
2747         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
2748         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
2749         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
2750         * doc/posix-functions/wcsdup.texi: Mention the new module.
2751
2752 2011-02-06  Bruno Haible  <bruno@clisp.org>
2753
2754         New module 'wcsxfrm'.
2755         * modules/wcsxfrm: New file.
2756         * lib/wchar.in.h (wcsxfrm): New declaration.
2757         * lib/wcsxfrm.c: New file.
2758         * lib/wcsxfrm-impl.h: New file.
2759         * m4/wcsxfrm.m4: New file.
2760         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
2761         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
2762         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
2763         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
2764         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
2765
2766 2011-02-06  Bruno Haible  <bruno@clisp.org>
2767
2768         New module 'wcscoll'.
2769         * modules/wcscoll: New file.
2770         * lib/wchar.in.h (wcscoll): New declaration.
2771         * lib/wcscoll.c: New file.
2772         * lib/wcscoll-impl.h: New file.
2773         * m4/wcscoll.m4: New file.
2774         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
2775         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
2776         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
2777         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
2778         * doc/posix-functions/wcscoll.texi: Mention the new module.
2779
2780 2011-02-06  Bruno Haible  <bruno@clisp.org>
2781
2782         New module 'wcsncasecmp'.
2783         * modules/wcsncasecmp: New file.
2784         * lib/wchar.in.h (wcsncasecmp): New declaration.
2785         * lib/wcsncasecmp.c: New file.
2786         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
2787         * m4/wcsncasecmp.m4: New file.
2788         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
2789         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
2790         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
2791         HAVE_WCSNCASECMP.
2792         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
2793         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
2794
2795 2011-02-06  Bruno Haible  <bruno@clisp.org>
2796
2797         New module 'wcscasecmp'.
2798         * modules/wcscasecmp: New file.
2799         * lib/wchar.in.h (wcscasecmp): New declaration.
2800         * lib/wcscasecmp.c: New file.
2801         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
2802         * m4/wcscasecmp.m4: New file.
2803         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
2804         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
2805         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
2806         HAVE_WCSCASECMP.
2807         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
2808         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
2809
2810 2011-02-05  Bruno Haible  <bruno@clisp.org>
2811
2812         New module 'wcsncmp'.
2813         * modules/wcsncmp: New file.
2814         * lib/wchar.in.h (wcsncmp): New declaration.
2815         * lib/wcsncmp.c: New file.
2816         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
2817         * m4/wcsncmp.m4: New file.
2818         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
2819         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
2820         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
2821         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
2822         * doc/posix-functions/wcsncmp.texi: Mention the new module.
2823
2824 2011-02-05  Bruno Haible  <bruno@clisp.org>
2825
2826         New module 'wcscmp'.
2827         * modules/wcscmp: New file.
2828         * lib/wchar.in.h (wcscmp): New declaration.
2829         * lib/wcscmp.c: New file.
2830         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
2831         * m4/wcscmp.m4: New file.
2832         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
2833         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
2834         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
2835         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
2836         * doc/posix-functions/wcscmp.texi: Mention the new module.
2837
2838 2011-02-05  Bruno Haible  <bruno@clisp.org>
2839
2840         New module 'wcsncat'.
2841         * modules/wcsncat: New file.
2842         * lib/wchar.in.h (wcsncat): New declaration.
2843         * lib/wcsncat.c: New file.
2844         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
2845         * m4/wcsncat.m4: New file.
2846         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
2847         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
2848         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
2849         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
2850         * doc/posix-functions/wcsncat.texi: Mention the new module.
2851
2852 2011-02-05  Bruno Haible  <bruno@clisp.org>
2853
2854         New module 'wcscat'.
2855         * modules/wcscat: New file.
2856         * lib/wchar.in.h (wcscat): New declaration.
2857         * lib/wcscat.c: New file.
2858         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
2859         * m4/wcscat.m4: New file.
2860         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
2861         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
2862         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
2863         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
2864         * doc/posix-functions/wcscat.texi: Mention the new module.
2865
2866 2011-02-05  Bruno Haible  <bruno@clisp.org>
2867
2868         New module 'wcpncpy'.
2869         * modules/wcpncpy: New file.
2870         * lib/wchar.in.h (wcpncpy): New declaration.
2871         * lib/wcpncpy.c: New file.
2872         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
2873         * m4/wcpncpy.m4: New file.
2874         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
2875         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
2876         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
2877         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
2878         * doc/posix-functions/wcpncpy.texi: Mention the new module.
2879
2880 2011-02-05  Bruno Haible  <bruno@clisp.org>
2881
2882         New module 'wcsncpy'.
2883         * modules/wcsncpy: New file.
2884         * lib/wchar.in.h (wcsncpy): New declaration.
2885         * lib/wcsncpy.c: New file.
2886         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
2887         * m4/wcsncpy.m4: New file.
2888         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
2889         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
2890         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
2891         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
2892         * doc/posix-functions/wcsncpy.texi: Mention the new module.
2893
2894 2011-02-05  Bruno Haible  <bruno@clisp.org>
2895
2896         New module 'wcpcpy'.
2897         * modules/wcpcpy: New file.
2898         * lib/wchar.in.h (wcpcpy): New declaration.
2899         * lib/wcpcpy.c: New file.
2900         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
2901         * m4/wcpcpy.m4: New file.
2902         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
2903         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
2904         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
2905         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
2906         * doc/posix-functions/wcpcpy.texi: Mention the new module.
2907
2908 2011-02-05  Bruno Haible  <bruno@clisp.org>
2909
2910         New module 'wcscpy'.
2911         * modules/wcscpy: New file.
2912         * lib/wchar.in.h (wcscpy): New declaration.
2913         * lib/wcscpy.c: New file.
2914         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
2915         * m4/wcscpy.m4: New file.
2916         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
2917         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
2918         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
2919         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
2920         * doc/posix-functions/wcscpy.texi: Mention the new module.
2921
2922 2011-02-05  Bruno Haible  <bruno@clisp.org>
2923
2924         New module 'wcsnlen'.
2925         * modules/wcsnlen: New file.
2926         * lib/wchar.in.h (wcsnlen): New declaration.
2927         * lib/wcsnlen.c: New file.
2928         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
2929         * m4/wcsnlen.m4: New file.
2930         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
2931         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
2932         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
2933         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
2934         * doc/posix-functions/wcsnlen.texi: Mention the new module.
2935
2936 2011-02-05  Bruno Haible  <bruno@clisp.org>
2937
2938         New module 'wcslen'.
2939         * modules/wcslen: New file.
2940         * lib/wchar.in.h (wcslen): New declaration.
2941         * lib/wcslen.c: New file.
2942         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
2943         * m4/wcslen.m4: New file.
2944         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
2945         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
2946         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
2947         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
2948         * doc/posix-functions/wcslen.texi: Mention the new module.
2949
2950 2011-02-05  Bruno Haible  <bruno@clisp.org>
2951
2952         New module 'wmemset'.
2953         * modules/wmemset: New file.
2954         * lib/wchar.in.h (wmemset): New declaration.
2955         * lib/wmemset.c: New file.
2956         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
2957         * m4/wmemset.m4: New file.
2958         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
2959         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
2960         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
2961         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
2962         * doc/posix-functions/wmemset.texi: Mention the new module.
2963
2964 2011-02-05  Bruno Haible  <bruno@clisp.org>
2965
2966         New module 'wmemmove'.
2967         * modules/wmemmove: New file.
2968         * lib/wchar.in.h (wmemmove): New declaration.
2969         * lib/wmemmove.c: New file.
2970         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
2971         * m4/wmemmove.m4: New file.
2972         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
2973         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
2974         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
2975         HAVE_WMEMMOVE.
2976         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
2977         * doc/posix-functions/wmemmove.texi: Mention the new module.
2978
2979 2011-02-05  Bruno Haible  <bruno@clisp.org>
2980
2981         New module 'wmemcpy'.
2982         * modules/wmemcpy: New file.
2983         * lib/wchar.in.h (wmemcpy): New declaration.
2984         * lib/wmemcpy.c: New file.
2985         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
2986         * m4/wmemcpy.m4: New file.
2987         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
2988         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
2989         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
2990         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
2991         * doc/posix-functions/wmemcpy.texi: Mention the new module.
2992
2993 2011-02-05  Bruno Haible  <bruno@clisp.org>
2994
2995         New module 'wmemcmp'.
2996         * modules/wmemcmp: New file.
2997         * lib/wchar.in.h (wmemcmp): New declaration.
2998         * lib/wmemcmp.c: New file.
2999         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
3000         * m4/wmemcmp.m4: New file.
3001         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
3002         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
3003         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
3004         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
3005         * doc/posix-functions/wmemcmp.texi: Mention the new module.
3006
3007 2011-02-07  Jim Meyering  <meyering@redhat.com>
3008
3009         di-set, ino-map: new modules, from coreutils
3010         * lib/di-set.c: New file.
3011         * lib/di-set.h: Likewise.
3012         * lib/ino-map.c: Likewise.
3013         * lib/ino-map.h: Likewise.
3014         * modules/di-set: Likewise.
3015         * modules/di-set-tests: Likewise.
3016         * modules/ino-map: Likewise.
3017         * modules/ino-map-tests: Likewise.
3018         * tests/test-di-set.c: Likewise.
3019         * tests/test-ino-map.c: Likewise.
3020
3021 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
3022
3023         getloadavg: merge minor changes from Emacs
3024
3025         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
3026         (getloadavg): Use memset, not bzero.
3027
3028         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
3029         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
3030         clash (bug#86).
3031
3032 2010-11-14  Bruno Haible  <bruno@clisp.org>
3033
3034         Allow multiple gnulib generated replacements to coexist.
3035         * lib/getopt.in.h (struct option): Avoid identical redefinition.
3036         * lib/inttypes.in.h (imaxdiv_t): Likewise.
3037         * lib/langinfo.in.h (nl_item): Likewise.
3038         * lib/math.in.h (_NaN, NAN): Likewise.
3039         * lib/netdb.in.h (struct addrinfo): Likewise.
3040         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
3041         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
3042         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
3043         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
3044         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
3045         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
3046         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
3047         pthread_mutexattr_init, pthread_mutexattr_settype,
3048         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
3049         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
3050         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
3051         pthread_spin_trylock, pthread_spin_unlock): Likewise.
3052         * lib/sched.in.h (struct sched_param): Likewise.
3053         * lib/se-selinux.in.h (security_class_t, security_context_t,
3054         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
3055         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
3056         lsetfilecon, fsetfilecon, security_check_context,
3057         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
3058         Likewise.
3059         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
3060         Likewise.
3061         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
3062         _gl_function_taking_int_returning_void_t, union sigval,
3063         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
3064         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
3065         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
3066         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
3067         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
3068         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
3069         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
3070         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
3071         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
3072         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
3073         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
3074         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
3075         socklen_t, rpl_fd_isset): Likewise.
3076         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
3077         * lib/sys_time.in.h (struct timeval): Likewise.
3078         * lib/sys_times.in.h (struct tms): Likewise.
3079         * lib/sys_utsname.in.h (struct utsname):
3080         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
3081         * lib/unistd.in.h (getpagesize): Likewise.
3082         * lib/wchar.in.h (mbstate_t): Likewise.
3083         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
3084         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
3085         towlower, towupper): Likewise.
3086         Reported by Sam Steingold <sds@gnu.org>.
3087
3088 2011-02-05  Eric Blake  <eblake@redhat.com>
3089
3090         unsetenv: work around Haiku issues
3091         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
3092         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
3093
3094 2010-12-30  Bruce Korb  <bkorb@gnu.org>
3095
3096         libposix: avoid calling error() within libposix
3097         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
3098         is defined.
3099
3100 2011-02-05  Eric Blake  <eblake@redhat.com>
3101
3102         strerror_r-posix: port to cygwin
3103         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
3104         implementation.
3105         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
3106         * tests/test-strerror_r.c (main): Fix test.
3107         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
3108         issue.
3109
3110 2011-02-05  Bruno Haible  <bruno@clisp.org>
3111
3112         New module 'wmemchr'.
3113         * modules/wmemchr: New file.
3114         * lib/wchar.in.h (wmemchr): New declaration.
3115         * lib/wmemchr.c: New file.
3116         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
3117         * m4/wmemchr.m4: New file.
3118         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
3119         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
3120         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
3121         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
3122         * doc/posix-functions/wmemchr.texi: Mention the new module.
3123
3124 2011-02-04  Eric Blake  <eblake@redhat.com>
3125
3126         fdopendir: detect FreeBSD bug
3127         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
3128         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
3129
3130 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
3131
3132         stdbool: do not define HAVE_STDBOOL_H
3133         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
3134         AC_HEADER_STDBOOL.  All uses changed.  Do not define
3135         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
3136         imported from the latest Autoconf git.  It was motivated by Emacs,
3137         which uses gnulib but does not need HAVE_STDBOOL_H.
3138
3139 2011-02-04  Bruno Haible  <bruno@clisp.org>
3140
3141         wcsnrtombs: Prepare for new module wwcsnrtombs.
3142         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
3143         * lib/wcsnrtombs.c: Include it.
3144         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
3145
3146         wcsrtombs: Prepare for new module wwcsrtombs.
3147         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
3148         * lib/wcsrtombs.c: Include it.
3149         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
3150
3151         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
3152         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
3153         * lib/mbsnrtowcs.c: Include it.
3154         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
3155
3156         mbsrtowcs: Prepare for new module mbsrtowwcs.
3157         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
3158         * lib/mbsrtowcs.c: Include it.
3159         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
3160
3161 2011-02-04  Bruno Haible  <bruno@clisp.org>
3162
3163         vasnprintf: Reduce use of malloc for small format strings.
3164         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
3165         (arguments): Add room for the first 7 arguments.
3166         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
3167         (char_directives, u8_directives, u16_directives, u32_directives): Add
3168         room for the first 7 directives.
3169         * lib/printf-parse.c: Include <string.h>.
3170         (PRINTF_PARSE): Change memory handling code so that it uses the first
3171         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
3172         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
3173         Reported by Pádraig Brady <P@draigbrady.com>.
3174
3175 2011-01-31  Eric Blake  <eblake@redhat.com>
3176
3177         dup2: work around Haiku bug
3178         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
3179         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
3180         * doc/posix-functions/dup2.texi (dup2): Document the bug.
3181         * tests/test-dup2.c (main): Enhance test.
3182
3183 2011-01-31  Simon Josefsson  <simon@josefsson.org>
3184
3185         doc: off_t is not available in eglibc 2.11.2 stdio.h.
3186         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
3187         declared by eglibc 2.11.2.
3188         * lib/stdio.in.h: Likewise.
3189
3190 2011-01-31  Eric Blake  <eblake@redhat.com>
3191
3192         ignore-value: add missing test dependency
3193         * tests/test-ignore-value.c: Revert previous change; stdio.h
3194         provides off_t.
3195         * modules/ignore-value-tests (Depends-on): Add missing dependency.
3196
3197 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
3198
3199         mktime: clarify long_int width checking
3200         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
3201         the top level, to make it clearer that the assumption about
3202         long_int width is being checked.  See
3203         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
3204
3205 2011-01-30  Simon Josefsson  <simon@josefsson.org>
3206
3207         ignore-value: Fix self-test.
3208         * tests/test-ignore-value.c: Include sys/types.h for off_t.
3209
3210 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
3211
3212         TYPE_MAXIMUM: avoid theoretically undefined behavior
3213         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
3214         negative number, which the C Standard says has undefined behavior.
3215         In practice this is not a problem, but might as well do it by the book.
3216         Reported by Rich Felker and Eric Blake; see
3217         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
3218         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
3219         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
3220         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
3221         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
3222         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3223         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
3224
3225         mktime: #undef mktime before #defining it
3226         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
3227
3228         mktime: systematically normalize tm_isdst comparisons
3229         * lib/mktime.c (isdst_differ): New function.
3230         (__mktime_internal): Use it systematically for all isdst comparisons.
3231         This completes the fix for libc BZ #6723, and removes the need for
3232         normalizing tm_isdst.  See
3233         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
3234         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
3235
3236         mktime: fix some integer overflow issues and sidestep the rest
3237
3238         This was prompted by a bug report by Benjamin Lindner for MinGW
3239         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
3240         His bug is due to signed integer overflow (0 - INT_MIN), and I
3241         I scanned through mktime.c looking for other integer overflow
3242         problems, fixing all the bugs I found.
3243
3244         Although the C Standard says the resulting code is still not safe
3245         in the presence of integer overflow, in practice it should be good
3246         enough for all real-world two's-complement implementations, except
3247         for debugging environments that deliberately trap on integer
3248         overflow (e.g., gcc -ftrapv).
3249
3250         * lib/mktime.c (WRAPV): New macro.
3251         (SHR): Also check that long_int and time_t shift right in the
3252         usual way, before using the fast-but-unportable method.
3253         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
3254         used.  The code already assumed two's complement, so there's
3255         no need to test for alternatives.  All uses removed.
3256         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
3257         the C standard.  Problem reported by Rich Felker in
3258         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
3259         (twos_complement_arithmetic): Also check long_int and time_t.
3260         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
3261         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
3262         (__mktime_internal): Avoid integer overflow with unary subtraction
3263         in two instances where -1 - X is an adequate replacement for -X,
3264         since the calculations are approximate.
3265
3266 2011-01-29  Eric Blake  <eblake@redhat.com>
3267
3268         mktime: avoid infinite loop
3269         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
3270         type; behavior is still undefined but portable to all known targets.
3271         Reported by Rich Felker.
3272
3273 2011-01-29  Simon Josefsson  <simon@josefsson.org>
3274
3275         rename, unlink, same-inode: Relicense.
3276         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
3277         * modules/unlink (License): Likewise.
3278         * modules/same-inode (License): Likewise.
3279
3280 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3281
3282         mktime: avoid problems on NetBSD 5 / i386
3283         * lib/mktime.c (long_int): New type.  This works around a problem
3284         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
3285         but time_t is 64 bits, and where I expect the existing code is
3286         wrong in some cases.
3287         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
3288         (ydhms_diff): Bring back the compile-time check for wide-enough
3289         year and yday.
3290
3291         mktime: fix misspelling in comment
3292         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
3293         This merges all recent glibc changes of importance.
3294
3295 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3296
3297         move-if-change: cope with concurrent mv of identical file.
3298         * build-aux/move-if-change (CMPPROG): Accept environment
3299         variable as an override for `cmp'.
3300         (usage): Document CMPPROG.
3301         Adjust comparison to drop stdout.  Cope with failure of mv if
3302         the target file exists and is identical to the source, for
3303         parallel builds.
3304         Report from H.J. Lu against binutils in PR binutils/12283.
3305
3306 2011-01-28  Bruce Korb  <bkorb@gnu.org>
3307
3308         * users.txt: Mention sharutils.
3309
3310 2011-01-28  Simon Josefsson  <simon@josefsson.org>
3311
3312         * users.txt: Mention OATH Toolkit.
3313
3314 2011-01-27  Bruno Haible  <bruno@clisp.org>
3315
3316         Prepare for supporting FreeBSD 10.
3317         * build-aux/config.libpath: Remove handling of freebsd1*.
3318
3319 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
3320
3321         Prepare for supporting FreeBSD 10.
3322         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
3323         match FreeBSD 10.0.
3324
3325 2011-01-27  Bruno Haible  <bruno@clisp.org>
3326
3327         vma-iter, get-rusage-as: Add OpenBSD support.
3328         * modules/vma-iter (configure.ac): Test for mquery.
3329         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
3330         * lib/vma-iter.c: Include <sys/mman.h>.
3331         (vma_iterate): Add an implementation based on mquery().
3332         * lib/resource-ext.h (get_rusage_as): Update comments.
3333         * lib/get-rusage-as.c: Likewise.
3334         * lib/get-rusage-data.c: Likewise.
3335
3336 2011-01-26  Karl Berry  <karl@gnu.org>
3337
3338         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
3339         variables to make it easier to override the makeinfo program used.
3340
3341 2011-01-26  Eric Blake  <eblake@redhat.com>
3342
3343         fcntl: work around Haiku F_DUPFD bugs
3344         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
3345         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
3346         cloexec bit on duplication.
3347         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
3348
3349 2011-01-26  Bruno Haible  <bruno@clisp.org>
3350
3351         Enable memory leak tests on AIX.
3352         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
3353         * tests/test-fprintf-posix3.c (main): Likewise.
3354
3355 2011-01-26  Bruno Haible  <bruno@clisp.org>
3356
3357         Tests for module 'get-rusage-data'.
3358         * modules/get-rusage-data-tests: New file.
3359         * tests/test-get-rusage-data.c: New file.
3360
3361         New module 'get-rusage-data'.
3362         * lib/resource-ext.h (get_rusage_data): New declaration.
3363         * lib/get-rusage-data.c: New file.
3364         * modules/get-rusage-data: New file.
3365
3366 2011-01-25  Bruno Haible  <bruno@clisp.org>
3367
3368         get-rusage-as: Allow for easier testing.
3369         * lib/resource-ext.h (get_rusage_as): Add comment.
3370         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
3371         (main): New function for interactive testing.
3372
3373 2011-01-25  Bruno Haible  <bruno@clisp.org>
3374
3375         vma-iter: Treat Haiku like BeOS.
3376         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
3377         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
3378
3379 2011-01-25  Eric Blake  <eblake@redhat.com>
3380
3381         c-stack: fix regression on cygwin when libsigsegv is present
3382         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
3383
3384 2011-01-24  Bruno Haible  <bruno@clisp.org>
3385
3386         vma-iter: Avoid empty intervals.
3387         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
3388         on an empty interval.
3389
3390 2011-01-24  Jim Meyering  <meyering@redhat.com>
3391
3392         u64: remove unnecessary #include
3393         * lib/u64.h: Don't include <stddef.h>.  It was not used.
3394
3395 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3396
3397         Allow the user to avoid the HAVE_RAW_DECL_* macros.
3398         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
3399
3400 2011-01-23  Bruno Haible  <bruno@clisp.org>
3401
3402         New module 'vma-iter'.
3403         * lib/vma-iter.h: New file.
3404         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
3405         * modules/vma-iter: New file.
3406         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
3407         for get_rusage_as_via_iterator.
3408         (vma_iterate_callback): New function.
3409         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
3410         * modules/get-rusage-as (Depends-on): Add vma-iter.
3411
3412 2011-01-23  Bruno Haible  <bruno@clisp.org>
3413
3414         uninorm: Tweak includes.
3415         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
3416         Reported by Jim Meyering.
3417
3418 2011-01-23  Bruno Haible  <bruno@clisp.org>
3419
3420         get-rusage-as: Improve on NetBSD.
3421         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
3422         /proc, like on FreeBSD.
3423
3424 2011-01-23  Jim Meyering  <meyering@redhat.com>
3425
3426         xreadlink.h: remove unnecessary #include
3427         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
3428
3429         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
3430         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
3431
3432 2011-01-23  Bruno Haible  <bruno@clisp.org>
3433
3434         get-rusage-as: Fix bug.
3435         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
3436         original limit when aborting the first loop.
3437
3438 2011-01-23  Bruno Haible  <bruno@clisp.org>
3439
3440         wctype: Ensure valid C syntax.
3441         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
3442         unconditionally, instead of gl_NEXT_HEADERS conditionally.
3443
3444 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
3445
3446         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
3447         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
3448         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
3449         as they are needed only for configure's test case.
3450         This removes two unnecessary symbols from config.h.
3451
3452         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
3453         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
3454         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
3455         AC_CHECK_HEADERS_ONCE on a header that we also invoke
3456         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
3457         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
3458         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
3459         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
3460         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3461         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3462         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
3463         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3464         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3465         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3466         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
3467         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3468         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
3469         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
3470
3471 2011-01-21  Eric Blake  <eblake@redhat.com>
3472
3473         maintainer-makefile: work with older git for submodule check
3474         * top/maint.mk (public-submodule-commit): Rewrite to avoid
3475         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
3476         Reported by Matthias Bolte.
3477
3478         bootstrap: minor portability fixes
3479         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
3480         (usage): Omit leading capital and trailing . on help phrases, per
3481         GNU Coding Standards.
3482         (check_versions, top level): Prefix messages with script name.
3483
3484 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
3485
3486         bootstrap: support --no-git option
3487         * build-aux/bootstrap: Add --no-git option, to be used when
3488         --gnulib-srcdir points to the exact desired checkout.
3489
3490 2011-01-21  Eric Blake  <eblake@redhat.com>
3491
3492         strerror_r-posix: work with glibc 2.13
3493         * lib/strerror_r.c (strerror_r): Fix return type.
3494
3495 2011-01-21  Pádraig Brady  <P@draigBrady.com>
3496             Bruno Haible  <bruno@clisp.org>
3497
3498         uN_strstr: New unit tests.
3499         * modules/unistr/u8-strstr-tests: New file.
3500         * modules/unistr/u16-strstr-tests: New file.
3501         * modules/unistr/u32-strstr-tests: New file.
3502         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
3503         * tests/unistr/test-u8-strstr.c: New file.
3504         * tests/unistr/test-u16-strstr.c: New file.
3505         * tests/unistr/test-u32-strstr.c: New file.
3506
3507 2011-01-21  Pádraig Brady  <P@draigBrady.com>
3508             Bruno Haible  <bruno@clisp.org>
3509
3510         Make uN_strstr functions O(n) worst-case.
3511         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
3512         16-bit and 32-bit unit cases, use the unibyte algorithm from
3513         lib/mbsstr.c.
3514         * lib/unistr/u8-strstr.c: Include <string.h>.
3515         (UNIT_IS_UINT8_T): New macro.
3516         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
3517         (U_STRLEN, U_STRNLEN): New macros.
3518         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
3519         (U_STRLEN, U_STRNLEN): New macros.
3520         * modules/unistr/u8-strstr (Depends-on): Add strstr.
3521         (configure.ac): Update required libunistring version.
3522         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
3523         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
3524         malloca.
3525         (configure.ac): Update required libunistring version.
3526         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
3527         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
3528         malloca.
3529         (configure.ac): Update required libunistring version.
3530
3531 2011-01-21  Pádraig Brady  <P@draigBrady.com>
3532             Bruno Haible  <bruno@clisp.org>
3533
3534         Prepare for faster uN_strstr functions.
3535         * lib/str-kmp.h: Support definable UNITs.
3536         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
3537         needle_len argument.
3538         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
3539         * lib/mbscasestr.c (mbscasestr): Likewise.
3540
3541 2011-01-21  Pádraig Brady <P@draigBrady.com>
3542
3543         malloca-tests: make faster by unsetting MALLOC_PERTURB_
3544         * tests/test-malloca.c (main): Unset the environment variable
3545         to greatly speed up the test.
3546         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
3547         * modules/malloca-tests: Depend on unsetenv.
3548
3549 2011-01-21  Pádraig Brady <P@draigBrady.com>
3550
3551         ignore-value: remove stdint dependency
3552         * lib/ignore-value.h: Remove <stdint.h>
3553         * modules/ignore-value: Remove stdint dependency.
3554
3555 2011-01-21  Jim Meyering  <meyering@redhat.com>
3556
3557         maint.mk: adjust variable name to be consistent with other gl_ vars
3558         * top/maint.mk (gl_public_submodule_commit): Rename the variable
3559         to be lower case.
3560
3561 2011-01-20  Jim Meyering  <meyering@redhat.com>
3562
3563         maint.mk: make "check" depend on public-submodule-commit by default
3564         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
3565
3566 2011-01-20  Bruno Haible  <bruno@clisp.org>
3567
3568         mbfile, mbiter: Complete change from 2008-12-21.
3569         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
3570         * m4/mbiter.m4 (gl_MBITER): Likewise.
3571
3572 2011-01-20  Jim Meyering  <meyering@redhat.com>
3573
3574         init.sh: insert space between each function name and "()"
3575         * tests/init.sh: Make it a little easier to see that a function's
3576         name is "warn_", and not "warn" when looking at the first part of
3577         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
3578
3579 2011-01-20  Jim Meyering  <meyering@redhat.com>
3580
3581         mountlist: clean up code formatting
3582         * lib/mountlist.c (read_file_system_list): Split a long line,
3583         correct bracing style, use NULL in place of "(struct statfs *)0",
3584         don't parenthesize return value, add spaces around "=" and after
3585         ";-in-for-stmt".
3586
3587 2011-01-14  Markus Duft <mduft@gentoo.org>
3588
3589         mountlist: add support for Interix
3590         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
3591         Apply statvfs to all entries of /dev/fs.
3592         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
3593         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
3594
3595 2011-01-20  Jim Meyering  <meyering@redhat.com>
3596
3597         maint.mk: improve the public-submodule-commit rule
3598         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
3599         to suppress printing of its commands... unless V=1.
3600         Add git submodule's --quiet option to suppress printing of e.g.,
3601         "Entering gnulib" output.
3602         "cd" into $(srcdir) before running git submodule.
3603
3604 2011-01-20  Bruno Haible  <bruno@clisp.org>
3605
3606         include_next: Fix bug introduced on 2011-01-18.
3607         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
3608         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
3609         ac_cv_header_... variable if the second argument is not 'check'.
3610         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
3611         gl_NEXT_HEADERS_INTERNAL.
3612
3613 2011-01-20  Bruno Haible  <bruno@clisp.org>
3614
3615         Allow the user to avoid the GNULIB_TEST_* macros.
3616         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
3617         Suggested by Paul Eggert.
3618
3619 2011-01-14  Jim Meyering  <meyering@redhat.com>
3620
3621         bootstrap: avoid failure when there is no .gitmodules file
3622         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
3623         has been assigned to, even when its value is the empty string.
3624         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
3625         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
3626         Reported by John W. Eaton <jwe@gnu.org>.
3627
3628 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
3629
3630         assume <ctype.h>, ..., <time.h> exist
3631         For years gnulib has been assuming the existence of the headers
3632         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
3633         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
3634         them, since they don't appear to be needed.
3635         * README (Portability guidelines): Document this.
3636         * lib/flock.c: Assume <fcntl.h> exists.
3637         * lib/regex_internal.h: Assume <locale.h> exists.
3638         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
3639         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
3640         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
3641         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
3642         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
3643         * m4/regex.m4 (gl_REGEX): Likewise.
3644         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
3645         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
3646         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
3647         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
3648         * tests/test-argp.c: Likewise.
3649         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
3650
3651         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
3652         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
3653         AA_APPLE_UNIVERSAL_BUILD.  See
3654         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
3655         * NEWS: Document this.
3656
3657 2011-01-19  Eric Blake  <eblake@redhat.com>
3658
3659         c-stack: assume stack overflow if SA_SIGINFO unsupported
3660         * lib/c-stack.c (SIGACTION_WORKS): Rename...
3661         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
3662         sigaction will work.
3663         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
3664         behavior match Linux.
3665         * tests/test-c-stack.c (main): Prefer NULL for pointers.
3666
3667         stdbool-tests: accomodate Haiku
3668         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
3669
3670         binary-io: fix O_TEXT on Haiku
3671         * modules/binary-io (Depends-on): Add fcntl-h.
3672         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
3673         than blindly undefining O_TEXT.
3674         Reported by Scott McCreary.
3675
3676 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
3677
3678         include_next: do not check for standard headers like stddef.h
3679
3680         I found this problem when modifying Emacs to use gnulib.
3681         I noticed that it added HAVE_STDDEF_H to config.h, even though
3682         gnulib always assumes <stddef.h> exists as per README and this
3683         symbol is unnecessary.
3684         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
3685         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
3686         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
3687         faster for headers like stddef.h that are known to exist.
3688         (gl_CHECK_NEXT_HEADERS): Use it.
3689         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
3690         rather than gl_CHECK_NEXT_HEADERS.
3691         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
3692         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
3693
3694 2011-01-18  Eric Blake  <eblake@redhat.com>
3695
3696         ansi-c++-opt: skip C++ dependency style if C++ is unused
3697         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
3698         tests when we know C++ compilation is not desired.
3699         Reported by Scott McCreary.
3700
3701 2011-01-18  Bruno Haible  <bruno@clisp.org>
3702
3703         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
3704         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
3705         (main): Perform test also when getrlimit and setrlimit don't exist or
3706         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
3707         limiting the address space size using setrlimit, compare the address
3708         space size before and after the the test.
3709         * tests/test-dprintf-posix2.c: Likewise.
3710         * tests/test-fprintf-posix3.sh: Update skip messages.
3711         * tests/test-dprintf-posix2.sh: Likewise.
3712         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
3713         * modules/dprintf-posix-tests (Depends-on): Likewise.
3714         Reported by Bruce Korb <bkorb@gnu.org> and
3715         Gary V. Vaughan <gary@gnu.org>.
3716
3717 2011-01-18  Bruno Haible  <bruno@clisp.org>
3718
3719         get-rusage-as: Improvement for Cygwin.
3720         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
3721         areas that are merely reserved.
3722
3723 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
3724
3725         strftime: remove dependencies on multibyte modules
3726
3727         strftime depended on mbrlen, mbsinit, and wchar, but these modules
3728         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
3729         only if __osf__ is defined, and I suspect OSF doesn't need these
3730         other modules.  If my guess is wrong, we'll need to come up with a
3731         variant of strftime that doesn't need the multibyte modules.
3732
3733         I discovered this problem when attempting modify Emacs to use the
3734         strftime module.  With the previous gnulib, this caused Emacs to
3735         need 31 new files, ranging from lib/config.charset to
3736         m4/wint_t.m4.  This was overkill and I expect would be offputting
3737         to the Emacs maintainers.  After this change, only 6 new files are
3738         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
3739         stdbool.m4, and tm_gmtoff.m4.
3740
3741         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
3742         Suggested by Bruno Haible in
3743         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
3744         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
3745         and do not check for wchar.h.
3746         * modules/strftime (Files): Remove m4/mbstate_t.m4.
3747         (Depends-on): Remove mbrlen, mbsinit, wchar.
3748
3749 2011-01-18  Bruno Haible  <bruno@clisp.org>
3750
3751         Tests for module 'get-rusage-as'.
3752         * modules/get-rusage-as-tests: New file.
3753         * tests/test-get-rusage-as.c: New file.
3754
3755         New module 'get-rusage-as'.
3756         * modules/get-rusage-as: New file.
3757         * lib/resource-ext.h: New file.
3758         * lib/get-rusage-as.c: New file.
3759
3760 2011-01-17  Eric Blake  <eblake@redhat.com>
3761
3762         sigaction: relax license from LGPLv3+ to LGPLv2+
3763         * modules/sigaction (License): Relax to LGPLv2+.
3764
3765 2011-01-14  Bruno Haible  <bruno@clisp.org>
3766
3767         filemode: Make function declarations usable in C++ mode.
3768         * lib/filemode.h: Enclose function declarations in extern "C" block.
3769         Reported by John W. Eaton <jwe@gnu.org>.
3770
3771 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
3772
3773         save-cwd: no longer include "xgetcwd.h"
3774         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
3775         This avoids a compilation failure in projects that use save-cwd
3776         without also using the xgetcwd module.
3777
3778 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
3779
3780         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
3781         This is so that a program like Emacs, which needs only dtoastr,
3782         does not have to bother with distributing and compiling ftoastr
3783         and ldtoastr.
3784         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
3785         * modules/dtoastr, modules/ldtoastr: New files.
3786         * modules/ftoastr: Now works just for 'float'.
3787         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
3788         (Makefile.am): Remove ftoastr.h (not needed and no effect),
3789         dtoastr.c, ldtoastr.c.
3790
3791 2011-01-11  Jim Meyering  <meyering@redhat.com>
3792
3793         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
3794         There is no need to work around the lack of the fchdir function,
3795         since gnulib can now provide a replacement when required.
3796         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
3797         * modules/save-cwd (Depends-on): Add fchdir.
3798
3799 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
3800
3801         openat, save-cwd: avoid xmalloc
3802
3803         This removes a direct (but undocumented) dependency of openat on
3804         xalloc, along with an indirect dependency via save-cwd.  It also
3805         removes a dependency of save-cwd on xgetcwd, and thereby
3806         indirectly on xalloc.  This change causes the openat substitute
3807         to fall back on save_cwd when memory is tight, and for save_cwd to
3808         fail instead of dying when memory is tight, but that's good enough.
3809         Problem and initial idea for fix reported by Bastien Roucaries in
3810         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
3811
3812         * lib/openat-proc.c: Include stdlib.h (for malloc), not
3813         xalloc.h (for xmalloc).
3814         (openat_proc_name): Use malloc, not xmalloc.
3815         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
3816         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
3817
3818         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
3819         This avoids heap allocation for file names whose lengths are in
3820         the range 512..1023, with the upper bound increasing to at most
3821         4031 depending on the platform's PATH_MAX.  (We do not want
3822         pathmax.h here as it might supply a non-constant PATH_MAX.)
3823         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
3824         Perhaps they should be moved to malloca.h?
3825         (OPENAT_BUFFER_SIZE): Use them.
3826
3827 2011-01-10  Bruno Haible  <bruno@clisp.org>
3828
3829         doc: Update users.txt.
3830         * users.txt: Add recutils.
3831
3832 2011-01-09  Karl Berry  <karl@gnu.org>
3833
3834         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
3835
3836         * doc/configmake.texi: New file.
3837         * doc/gnulib.texi: Include it.
3838         * modules/configmake: Move documentation from here.
3839
3840 2011-01-09  Bruno Haible  <bruno@clisp.org>
3841
3842         Update to Unicode 6.0.0.
3843         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
3844         (get_lbp): Update for Unicode 6.0.0.
3845         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
3846         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
3847         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
3848         U+11001, U+11038..U+11046. Remove U+06DE.
3849         (uc_width): Fix bounds of planes.
3850         * tests/uniwidth/test-uc_width2.sh: Same updates as in
3851         lib/uniwidth/width.c.
3852         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
3853         trailing whitespace removed.
3854         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
3855         without comments, but with the original copyright notice.
3856         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
3857         * lib/unicase/ignorable.h: Likewise.
3858         * lib/unicase/tocasefold.h: Likewise.
3859         * lib/unicase/tolower.h: Likewise.
3860         * lib/unicase/totitle.h: Likewise.
3861         * lib/unicase/toupper.h: Likewise.
3862         * lib/unictype/bidi_of.h: Likewise.
3863         * lib/unictype/blocks.h: Likewise.
3864         * lib/unictype/categ_C.h: Likewise.
3865         * lib/unictype/categ_Cn.h: Likewise.
3866         * lib/unictype/categ_L.h: Likewise.
3867         * lib/unictype/categ_Ll.h: Likewise.
3868         * lib/unictype/categ_Lm.h: Likewise.
3869         * lib/unictype/categ_Lo.h: Likewise.
3870         * lib/unictype/categ_Lu.h: Likewise.
3871         * lib/unictype/categ_M.h: Likewise.
3872         * lib/unictype/categ_Mc.h: Likewise.
3873         * lib/unictype/categ_Me.h: Likewise.
3874         * lib/unictype/categ_Mn.h: Likewise.
3875         * lib/unictype/categ_N.h: Likewise.
3876         * lib/unictype/categ_Nd.h: Likewise.
3877         * lib/unictype/categ_No.h: Likewise.
3878         * lib/unictype/categ_P.h: Likewise.
3879         * lib/unictype/categ_Po.h: Likewise.
3880         * lib/unictype/categ_S.h: Likewise.
3881         * lib/unictype/categ_Sc.h: Likewise.
3882         * lib/unictype/categ_Sk.h: Likewise.
3883         * lib/unictype/categ_Sm.h: Likewise.
3884         * lib/unictype/categ_So.h: Likewise.
3885         * lib/unictype/categ_of.h: Likewise.
3886         * lib/unictype/combining.h: Likewise.
3887         * lib/unictype/ctype_alnum.h: Likewise.
3888         * lib/unictype/ctype_alpha.h: Likewise.
3889         * lib/unictype/ctype_graph.h: Likewise.
3890         * lib/unictype/ctype_lower.h: Likewise.
3891         * lib/unictype/ctype_print.h: Likewise.
3892         * lib/unictype/ctype_punct.h: Likewise.
3893         * lib/unictype/ctype_upper.h: Likewise.
3894         * lib/unictype/decdigit.h: Likewise.
3895         * lib/unictype/digit.h: Likewise.
3896         * lib/unictype/numeric.h: Likewise.
3897         * lib/unictype/pr_alphabetic.h: Likewise.
3898         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
3899         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
3900         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
3901         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
3902         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
3903         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
3904         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
3905         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
3906         * lib/unictype/pr_case_ignorable.h: Likewise.
3907         * lib/unictype/pr_cased.h: Likewise.
3908         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
3909         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
3910         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
3911         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
3912         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
3913         * lib/unictype/pr_combining.h: Likewise.
3914         * lib/unictype/pr_composite.h: Likewise.
3915         * lib/unictype/pr_currency_symbol.h: Likewise.
3916         * lib/unictype/pr_decimal_digit.h: Likewise.
3917         * lib/unictype/pr_deprecated.h: Likewise.
3918         * lib/unictype/pr_format_control.h: Likewise.
3919         * lib/unictype/pr_grapheme_base.h: Likewise.
3920         * lib/unictype/pr_grapheme_extend.h: Likewise.
3921         * lib/unictype/pr_grapheme_link.h: Likewise.
3922         * lib/unictype/pr_id_continue.h: Likewise.
3923         * lib/unictype/pr_id_start.h: Likewise.
3924         * lib/unictype/pr_ideographic.h: Likewise.
3925         * lib/unictype/pr_lowercase.h: Likewise.
3926         * lib/unictype/pr_math.h: Likewise.
3927         * lib/unictype/pr_numeric.h: Likewise.
3928         * lib/unictype/pr_other_alphabetic.h: Likewise.
3929         * lib/unictype/pr_other_id_continue.h: Likewise.
3930         * lib/unictype/pr_other_math.h: Likewise.
3931         * lib/unictype/pr_punctuation.h: Likewise.
3932         * lib/unictype/pr_sentence_terminal.h: Likewise.
3933         * lib/unictype/pr_terminal_punctuation.h: Likewise.
3934         * lib/unictype/pr_unassigned_code_value.h: Likewise.
3935         * lib/unictype/pr_unified_ideograph.h: Likewise.
3936         * lib/unictype/pr_uppercase.h: Likewise.
3937         * lib/unictype/pr_xid_continue.h: Likewise.
3938         * lib/unictype/pr_xid_start.h: Likewise.
3939         * lib/unictype/scripts.h: Likewise.
3940         * lib/unictype/scripts_byname.gperf: Likewise.
3941         * lib/unictype/sy_java_ident.h: Likewise.
3942         * lib/unigbrk/gbrkprop.h: Likewise.
3943         * lib/unilbrk/lbrkprop1.h: Likewise.
3944         * lib/unilbrk/lbrkprop2.h: Likewise.
3945         * lib/uninorm/decomposition-table2.h: Likewise.
3946         * lib/uniwbrk/wbrkprop.h: Likewise.
3947         * tests/unicase/test-cased.c: Likewise.
3948         * tests/unicase/test-ignorable.c: Likewise.
3949         * tests/unicase/test-uc_tolower.c: Likewise.
3950         * tests/unicase/test-uc_totitle.c: Likewise.
3951         * tests/unicase/test-uc_toupper.c: Likewise.
3952         * tests/unictype/test-categ_C.c: Likewise.
3953         * tests/unictype/test-categ_Cn.c: Likewise.
3954         * tests/unictype/test-categ_L.c: Likewise.
3955         * tests/unictype/test-categ_Ll.c: Likewise.
3956         * tests/unictype/test-categ_Lm.c: Likewise.
3957         * tests/unictype/test-categ_Lo.c: Likewise.
3958         * tests/unictype/test-categ_Lu.c: Likewise.
3959         * tests/unictype/test-categ_M.c: Likewise.
3960         * tests/unictype/test-categ_Mc.c: Likewise.
3961         * tests/unictype/test-categ_Me.c: Likewise.
3962         * tests/unictype/test-categ_Mn.c: Likewise.
3963         * tests/unictype/test-categ_N.c: Likewise.
3964         * tests/unictype/test-categ_Nd.c: Likewise.
3965         * tests/unictype/test-categ_No.c: Likewise.
3966         * tests/unictype/test-categ_P.c: Likewise.
3967         * tests/unictype/test-categ_Po.c: Likewise.
3968         * tests/unictype/test-categ_S.c: Likewise.
3969         * tests/unictype/test-categ_Sc.c: Likewise.
3970         * tests/unictype/test-categ_Sk.c: Likewise.
3971         * tests/unictype/test-categ_Sm.c: Likewise.
3972         * tests/unictype/test-categ_So.c: Likewise.
3973         * tests/unictype/test-ctype_alnum.c: Likewise.
3974         * tests/unictype/test-ctype_alpha.c: Likewise.
3975         * tests/unictype/test-ctype_graph.c: Likewise.
3976         * tests/unictype/test-ctype_lower.c: Likewise.
3977         * tests/unictype/test-ctype_print.c: Likewise.
3978         * tests/unictype/test-ctype_punct.c: Likewise.
3979         * tests/unictype/test-ctype_upper.c: Likewise.
3980         * tests/unictype/test-decdigit.h: Likewise.
3981         * tests/unictype/test-digit.h: Likewise.
3982         * tests/unictype/test-numeric.h: Likewise.
3983         * tests/unictype/test-pr_alphabetic.c: Likewise.
3984         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
3985         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
3986         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
3987         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
3988         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
3989         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
3990         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
3991         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
3992         * tests/unictype/test-pr_case_ignorable.c: Likewise.
3993         * tests/unictype/test-pr_cased.c: Likewise.
3994         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
3995         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
3996         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
3997         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
3998         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
3999         * tests/unictype/test-pr_combining.c: Likewise.
4000         * tests/unictype/test-pr_composite.c: Likewise.
4001         * tests/unictype/test-pr_currency_symbol.c: Likewise.
4002         * tests/unictype/test-pr_decimal_digit.c: Likewise.
4003         * tests/unictype/test-pr_deprecated.c: Likewise.
4004         * tests/unictype/test-pr_format_control.c: Likewise.
4005         * tests/unictype/test-pr_grapheme_base.c: Likewise.
4006         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
4007         * tests/unictype/test-pr_grapheme_link.c: Likewise.
4008         * tests/unictype/test-pr_id_continue.c: Likewise.
4009         * tests/unictype/test-pr_id_start.c: Likewise.
4010         * tests/unictype/test-pr_ideographic.c: Likewise.
4011         * tests/unictype/test-pr_lowercase.c: Likewise.
4012         * tests/unictype/test-pr_math.c: Likewise.
4013         * tests/unictype/test-pr_numeric.c: Likewise.
4014         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
4015         * tests/unictype/test-pr_other_id_continue.c: Likewise.
4016         * tests/unictype/test-pr_other_math.c: Likewise.
4017         * tests/unictype/test-pr_punctuation.c: Likewise.
4018         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
4019         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
4020         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
4021         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
4022         * tests/unictype/test-pr_uppercase.c: Likewise.
4023         * tests/unictype/test-pr_xid_continue.c: Likewise.
4024         * tests/unictype/test-pr_xid_start.c: Likewise.
4025         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
4026         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
4027         changes.
4028         * lib/unictype/categ_Cc.h: Likewise.
4029         * lib/unictype/categ_Cf.h: Likewise.
4030         * lib/unictype/categ_Co.h: Likewise.
4031         * lib/unictype/categ_Cs.h: Likewise.
4032         * lib/unictype/categ_Lt.h: Likewise.
4033         * lib/unictype/categ_Nl.h: Likewise.
4034         * lib/unictype/categ_Pc.h: Likewise.
4035         * lib/unictype/categ_Pd.h: Likewise.
4036         * lib/unictype/categ_Pe.h: Likewise.
4037         * lib/unictype/categ_Pf.h: Likewise.
4038         * lib/unictype/categ_Pi.h: Likewise.
4039         * lib/unictype/categ_Ps.h: Likewise.
4040         * lib/unictype/categ_Z.h: Likewise.
4041         * lib/unictype/categ_Zl.h: Likewise.
4042         * lib/unictype/categ_Zp.h: Likewise.
4043         * lib/unictype/categ_Zs.h: Likewise.
4044         * lib/unictype/ctype_blank.h: Likewise.
4045         * lib/unictype/ctype_cntrl.h: Likewise.
4046         * lib/unictype/ctype_digit.h: Likewise.
4047         * lib/unictype/ctype_space.h: Likewise.
4048         * lib/unictype/ctype_xdigit.h: Likewise.
4049         * lib/unictype/mirror.h: Likewise.
4050         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
4051         * lib/unictype/pr_bidi_block_separator.h: Likewise.
4052         * lib/unictype/pr_bidi_common_separator.h: Likewise.
4053         * lib/unictype/pr_bidi_control.h: Likewise.
4054         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
4055         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
4056         * lib/unictype/pr_bidi_european_digit.h: Likewise.
4057         * lib/unictype/pr_bidi_pdf.h: Likewise.
4058         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
4059         * lib/unictype/pr_bidi_whitespace.h: Likewise.
4060         * lib/unictype/pr_dash.h: Likewise.
4061         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
4062         * lib/unictype/pr_diacritic.h: Likewise.
4063         * lib/unictype/pr_extender.h: Likewise.
4064         * lib/unictype/pr_hex_digit.h: Likewise.
4065         * lib/unictype/pr_hyphen.h: Likewise.
4066         * lib/unictype/pr_ids_binary_operator.h: Likewise.
4067         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
4068         * lib/unictype/pr_ignorable_control.h: Likewise.
4069         * lib/unictype/pr_iso_control.h: Likewise.
4070         * lib/unictype/pr_join_control.h: Likewise.
4071         * lib/unictype/pr_left_of_pair.h: Likewise.
4072         * lib/unictype/pr_line_separator.h: Likewise.
4073         * lib/unictype/pr_logical_order_exception.h: Likewise.
4074         * lib/unictype/pr_non_break.h: Likewise.
4075         * lib/unictype/pr_not_a_character.h: Likewise.
4076         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
4077         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
4078         * lib/unictype/pr_other_id_start.h: Likewise.
4079         * lib/unictype/pr_other_lowercase.h: Likewise.
4080         * lib/unictype/pr_other_uppercase.h: Likewise.
4081         * lib/unictype/pr_paired_punctuation.h: Likewise.
4082         * lib/unictype/pr_paragraph_separator.h: Likewise.
4083         * lib/unictype/pr_pattern_syntax.h: Likewise.
4084         * lib/unictype/pr_pattern_white_space.h: Likewise.
4085         * lib/unictype/pr_private_use.h: Likewise.
4086         * lib/unictype/pr_quotation_mark.h: Likewise.
4087         * lib/unictype/pr_radical.h: Likewise.
4088         * lib/unictype/pr_soft_dotted.h: Likewise.
4089         * lib/unictype/pr_space.h: Likewise.
4090         * lib/unictype/pr_titlecase.h: Likewise.
4091         * lib/unictype/pr_variation_selector.h: Likewise.
4092         * lib/unictype/pr_white_space.h: Likewise.
4093         * lib/unictype/pr_zero_width.h: Likewise.
4094         * lib/unictype/sy_c_ident.h: Likewise.
4095         * lib/unictype/sy_c_whitespace.h: Likewise.
4096         * lib/unictype/sy_java_whitespace.h: Likewise.
4097         * lib/uninorm/composition-table.gperf: Likewise.
4098         * lib/uninorm/decomposition-table1.h: Likewise.
4099         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
4100         LB8.
4101         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
4102         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
4103         * modules/unictype/*: Bump version number of expected libunistring
4104         version.
4105
4106 2011-01-09  Bruno Haible  <bruno@clisp.org>
4107
4108         Update to Unicode 5.2.0.
4109         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
4110         trailing whitespace removed.
4111
4112 2011-01-09  Bruno Haible  <bruno@clisp.org>
4113
4114         New Unicode character properties, from Unicode 5.2.0.
4115         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
4116         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
4117         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
4118         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
4119         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
4120         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
4121         uc_is_property_cased, uc_is_property_case_ignorable,
4122         uc_is_property_changes_when_lowercased,
4123         uc_is_property_changes_when_uppercased,
4124         uc_is_property_changes_when_titlecased,
4125         uc_is_property_changes_when_casefolded,
4126         uc_is_property_changes_when_casemapped): New declarations.
4127         * lib/unictype/pr_byname.gperf: Add the new properties.
4128         * modules/unictype/property-byname (Depends-on): Depend on the new
4129         properties modules.
4130         * modules/unictype/property-all (Depends-on): Likewise.
4131         * MODULES.html.sh (Unicode string functions): Add
4132         unictype/property-case-ignorable, unictype/property-cased,
4133         unictype/property-changes-when-casefolded,
4134         unictype/property-changes-when-casemapped,
4135         unictype/property-changes-when-lowercased,
4136         unictype/property-changes-when-titlecased,
4137         unictype/property-changes-when-uppercased.
4138
4139         New module 'unictype/property-changes-when-casemapped'.
4140         * modules/unictype/property-changes-when-casemapped: New file.
4141         * lib/unictype/pr_changes_when_casemapped.c: New file.
4142         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
4143         generated by gen-uni-tables.
4144         * modules/unictype/property-changes-when-casemapped-tests: New file.
4145         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
4146         automatically generated by gen-uni-tables.
4147
4148         New module 'unictype/property-changes-when-casefolded'.
4149         * modules/unictype/property-changes-when-casefolded: New file.
4150         * lib/unictype/pr_changes_when_casefolded.c: New file.
4151         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
4152         generated by gen-uni-tables.
4153         * modules/unictype/property-changes-when-casefolded-tests: New file.
4154         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
4155         automatically generated by gen-uni-tables.
4156
4157         New module 'unictype/property-changes-when-titlecased'.
4158         * modules/unictype/property-changes-when-titlecased: New file.
4159         * lib/unictype/pr_changes_when_titlecased.c: New file.
4160         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
4161         generated by gen-uni-tables.
4162         * modules/unictype/property-changes-when-titlecased-tests: New file.
4163         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
4164         automatically generated by gen-uni-tables.
4165
4166         New module 'unictype/property-changes-when-uppercased'.
4167         * modules/unictype/property-changes-when-uppercased: New file.
4168         * lib/unictype/pr_changes_when_uppercased.c: New file.
4169         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
4170         generated by gen-uni-tables.
4171         * modules/unictype/property-changes-when-uppercased-tests: New file.
4172         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
4173         automatically generated by gen-uni-tables.
4174
4175         New module 'unictype/property-changes-when-lowercased'.
4176         * modules/unictype/property-changes-when-lowercased: New file.
4177         * lib/unictype/pr_changes_when_lowercased.c: New file.
4178         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
4179         generated by gen-uni-tables.
4180         * modules/unictype/property-changes-when-lowercased-tests: New file.
4181         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
4182         automatically generated by gen-uni-tables.
4183
4184         New module 'unictype/property-case-ignorable'.
4185         * modules/unictype/property-case-ignorable: New file.
4186         * lib/unictype/pr_case_ignorable.c: New file.
4187         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
4188         by gen-uni-tables.
4189         * modules/unictype/property-case-ignorable-tests: New file.
4190         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
4191         generated by gen-uni-tables.
4192
4193         New module 'unictype/property-cased'.
4194         * modules/unictype/property-cased: New file.
4195         * lib/unictype/pr_cased.c: New file.
4196         * lib/unictype/pr_cased.h: New file, automatically generated by
4197         gen-uni-tables.
4198         * modules/unictype/property-cased-tests: New file.
4199         * tests/unictype/test-pr_cased.c: New file, automatically generated by
4200         gen-uni-tables.
4201
4202 2011-01-09  Bruno Haible  <bruno@clisp.org>
4203
4204         Update to Unicode 5.2.0.
4205         * lib/gen-uni-tables.c (output_predicate, output_category,
4206         output_combclass, output_bidi_category, output_decimal_digit_test,
4207         output_decimal_digit, output_digit_test, output_digit,
4208         output_numeric_test, output_numeric, output_mirror, output_scripts,
4209         output_scripts_byname, output_blocks, output_ident_category): Fix
4210         comment header.
4211         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
4212         get_wbp.
4213         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
4214         items.
4215         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
4216         Changes_When_Lowercased, Changes_When_Uppercased,
4217         Changes_When_Titlecased, Changes_When_Casefolded,
4218         Changes_When_Casemapped.
4219         (is_property_alphabetic, is_property_default_ignorable_code_point):
4220         Update for Unicode 5.2.0.
4221         (is_property_cased, is_property_case_ignorable,
4222         is_property_changes_when_lowercased,
4223         is_property_changes_when_uppercased,
4224         is_property_changes_when_titlecased,
4225         is_property_changes_when_casefolded,
4226         is_property_changes_when_casemapped): New functions.
4227         (output_properties): Output also the properties cased, case_ignorable,
4228         changes_when_lowercased, changes_when_uppercased,
4229         changes_when_titlecased, changes_when_casefolded,
4230         changes_when_casemapped.
4231         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
4232         Unicode TR#11 revision 17 -> 19.
4233         (LBP_CP): New enumeration value.
4234         (LBP_*): Adjust values accordingly.
4235         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
4236         TR#14 revision 22 -> 24.
4237         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
4238         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
4239         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
4240         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
4241         is_WBP_MIDLETTER.
4242         (output_composition_tables): Allow for 24 bits instead of 16 bits in
4243         the code1 and code2 of each composition rule.
4244         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
4245         * lib/unicase/ignorable.h: Likewise.
4246         * lib/unicase/tocasefold.h: Likewise.
4247         * lib/unicase/tolower.h: Likewise.
4248         * lib/unicase/totitle.h: Likewise.
4249         * lib/unicase/toupper.h: Likewise.
4250         * lib/unictype/bidi_of.h: Likewise.
4251         * lib/unictype/blocks.h: Likewise.
4252         * lib/unictype/categ_C.h: Likewise.
4253         * lib/unictype/categ_Cf.h: Likewise.
4254         * lib/unictype/categ_Cn.h: Likewise.
4255         * lib/unictype/categ_L.h: Likewise.
4256         * lib/unictype/categ_Ll.h: Likewise.
4257         * lib/unictype/categ_Lm.h: Likewise.
4258         * lib/unictype/categ_Lo.h: Likewise.
4259         * lib/unictype/categ_Lu.h: Likewise.
4260         * lib/unictype/categ_M.h: Likewise.
4261         * lib/unictype/categ_Mc.h: Likewise.
4262         * lib/unictype/categ_Mn.h: Likewise.
4263         * lib/unictype/categ_N.h: Likewise.
4264         * lib/unictype/categ_Nd.h: Likewise.
4265         * lib/unictype/categ_Nl.h: Likewise.
4266         * lib/unictype/categ_No.h: Likewise.
4267         * lib/unictype/categ_P.h: Likewise.
4268         * lib/unictype/categ_Pd.h: Likewise.
4269         * lib/unictype/categ_Po.h: Likewise.
4270         * lib/unictype/categ_S.h: Likewise.
4271         * lib/unictype/categ_Sc.h: Likewise.
4272         * lib/unictype/categ_So.h: Likewise.
4273         * lib/unictype/categ_of.h: Likewise.
4274         * lib/unictype/combining.h: Likewise.
4275         * lib/unictype/ctype_alnum.h: Likewise.
4276         * lib/unictype/ctype_alpha.h: Likewise.
4277         * lib/unictype/ctype_graph.h: Likewise.
4278         * lib/unictype/ctype_lower.h: Likewise.
4279         * lib/unictype/ctype_print.h: Likewise.
4280         * lib/unictype/ctype_punct.h: Likewise.
4281         * lib/unictype/ctype_upper.h: Likewise.
4282         * lib/unictype/decdigit.h: Likewise.
4283         * lib/unictype/digit.h: Likewise.
4284         * lib/unictype/numeric.h: Likewise.
4285         * lib/unictype/pr_alphabetic.h: Likewise.
4286         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
4287         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
4288         * lib/unictype/pr_bidi_european_digit.h: Likewise.
4289         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
4290         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
4291         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
4292         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
4293         * lib/unictype/pr_combining.h: Likewise.
4294         * lib/unictype/pr_composite.h: Likewise.
4295         * lib/unictype/pr_currency_symbol.h: Likewise.
4296         * lib/unictype/pr_dash.h: Likewise.
4297         * lib/unictype/pr_decimal_digit.h: Likewise.
4298         * lib/unictype/pr_deprecated.h: Likewise.
4299         * lib/unictype/pr_diacritic.h: Likewise.
4300         * lib/unictype/pr_extender.h: Likewise.
4301         * lib/unictype/pr_grapheme_base.h: Likewise.
4302         * lib/unictype/pr_grapheme_extend.h: Likewise.
4303         * lib/unictype/pr_grapheme_link.h: Likewise.
4304         * lib/unictype/pr_id_continue.h: Likewise.
4305         * lib/unictype/pr_id_start.h: Likewise.
4306         * lib/unictype/pr_ideographic.h: Likewise.
4307         * lib/unictype/pr_ignorable_control.h: Likewise.
4308         * lib/unictype/pr_logical_order_exception.h: Likewise.
4309         * lib/unictype/pr_lowercase.h: Likewise.
4310         * lib/unictype/pr_numeric.h: Likewise.
4311         * lib/unictype/pr_other_alphabetic.h: Likewise.
4312         * lib/unictype/pr_punctuation.h: Likewise.
4313         * lib/unictype/pr_sentence_terminal.h: Likewise.
4314         * lib/unictype/pr_terminal_punctuation.h: Likewise.
4315         * lib/unictype/pr_unassigned_code_value.h: Likewise.
4316         * lib/unictype/pr_unified_ideograph.h: Likewise.
4317         * lib/unictype/pr_uppercase.h: Likewise.
4318         * lib/unictype/pr_xid_continue.h: Likewise.
4319         * lib/unictype/pr_xid_start.h: Likewise.
4320         * lib/unictype/pr_zero_width.h: Likewise.
4321         * lib/unictype/scripts.h: Likewise.
4322         * lib/unictype/scripts_byname.gperf: Likewise.
4323         * lib/unictype/sy_java_ident.h: Likewise.
4324         * lib/unigbrk/gbrkprop.h: Likewise.
4325         * lib/unilbrk/lbrkprop1.h: Likewise.
4326         * lib/unilbrk/lbrkprop2.h: Likewise.
4327         * lib/unilbrk/lbrktables.h: Likewise.
4328         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
4329         LBP_CP. Implement rule LB30.
4330         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
4331         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
4332         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
4333         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
4334         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
4335         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
4336         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
4337         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
4338         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
4339         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
4340         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
4341         bits instead of 16 bits in the code1 and code2 of each composition
4342         rule.
4343         (uc_composition): Update for Unicode 5.2.0.
4344         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
4345         * lib/uninorm/decomposition-table2.h: Likewise.
4346         * lib/uniwbrk/wbrkprop.h: Likewise.
4347         * tests/unicase/test-cased.c: Likewise.
4348         * tests/unicase/test-ignorable.c: Likewise.
4349         * tests/unicase/test-uc_tolower.c: Likewise.
4350         * tests/unicase/test-uc_totitle.c: Likewise.
4351         * tests/unicase/test-uc_toupper.c: Likewise.
4352         * tests/unictype/test-categ_C.c: Likewise.
4353         * tests/unictype/test-categ_Cf.c: Likewise.
4354         * tests/unictype/test-categ_Cn.c: Likewise.
4355         * tests/unictype/test-categ_L.c: Likewise.
4356         * tests/unictype/test-categ_Ll.c: Likewise.
4357         * tests/unictype/test-categ_Lm.c: Likewise.
4358         * tests/unictype/test-categ_Lo.c: Likewise.
4359         * tests/unictype/test-categ_Lu.c: Likewise.
4360         * tests/unictype/test-categ_M.c: Likewise.
4361         * tests/unictype/test-categ_Mc.c: Likewise.
4362         * tests/unictype/test-categ_Mn.c: Likewise.
4363         * tests/unictype/test-categ_N.c: Likewise.
4364         * tests/unictype/test-categ_Nd.c: Likewise.
4365         * tests/unictype/test-categ_Nl.c: Likewise.
4366         * tests/unictype/test-categ_No.c: Likewise.
4367         * tests/unictype/test-categ_P.c: Likewise.
4368         * tests/unictype/test-categ_Pd.c: Likewise.
4369         * tests/unictype/test-categ_Po.c: Likewise.
4370         * tests/unictype/test-categ_S.c: Likewise.
4371         * tests/unictype/test-categ_Sc.c: Likewise.
4372         * tests/unictype/test-categ_So.c: Likewise.
4373         * tests/unictype/test-ctype_alnum.c: Likewise.
4374         * tests/unictype/test-ctype_alpha.c: Likewise.
4375         * tests/unictype/test-ctype_graph.c: Likewise.
4376         * tests/unictype/test-ctype_lower.c: Likewise.
4377         * tests/unictype/test-ctype_print.c: Likewise.
4378         * tests/unictype/test-ctype_punct.c: Likewise.
4379         * tests/unictype/test-ctype_upper.c: Likewise.
4380         * tests/unictype/test-decdigit.h: Likewise.
4381         * tests/unictype/test-digit.h: Likewise.
4382         * tests/unictype/test-numeric.h: Likewise.
4383         * tests/unictype/test-pr_alphabetic.c: Likewise.
4384         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
4385         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
4386         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
4387         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
4388         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
4389         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
4390         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
4391         * tests/unictype/test-pr_combining.c: Likewise.
4392         * tests/unictype/test-pr_composite.c: Likewise.
4393         * tests/unictype/test-pr_currency_symbol.c: Likewise.
4394         * tests/unictype/test-pr_dash.c: Likewise.
4395         * tests/unictype/test-pr_decimal_digit.c: Likewise.
4396         * tests/unictype/test-pr_deprecated.c: Likewise.
4397         * tests/unictype/test-pr_diacritic.c: Likewise.
4398         * tests/unictype/test-pr_extender.c: Likewise.
4399         * tests/unictype/test-pr_grapheme_base.c: Likewise.
4400         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
4401         * tests/unictype/test-pr_grapheme_link.c: Likewise.
4402         * tests/unictype/test-pr_id_continue.c: Likewise.
4403         * tests/unictype/test-pr_id_start.c: Likewise.
4404         * tests/unictype/test-pr_ideographic.c: Likewise.
4405         * tests/unictype/test-pr_ignorable_control.c: Likewise.
4406         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
4407         * tests/unictype/test-pr_lowercase.c: Likewise.
4408         * tests/unictype/test-pr_numeric.c: Likewise.
4409         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
4410         * tests/unictype/test-pr_punctuation.c: Likewise.
4411         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
4412         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
4413         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
4414         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
4415         * tests/unictype/test-pr_uppercase.c: Likewise.
4416         * tests/unictype/test-pr_xid_continue.c: Likewise.
4417         * tests/unictype/test-pr_xid_start.c: Likewise.
4418         * tests/unictype/test-pr_zero_width.c: Likewise.
4419         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
4420         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
4421         changed behaviour: line breaking is now disallowed between a letter
4422         or '=' and '('.
4423         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
4424         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
4425         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
4426         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
4427         * tests/uniwidth/test-uc_width2.sh: Same updates as in
4428         lib/uniwidth/width.c.
4429         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
4430         without comments, but with the original copyright notice.
4431         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
4432         changes.
4433         * lib/unictype/categ_Cc.h: Likewise.
4434         * lib/unictype/categ_Co.h: Likewise.
4435         * lib/unictype/categ_Cs.h: Likewise.
4436         * lib/unictype/categ_Lt.h: Likewise.
4437         * lib/unictype/categ_Me.h: Likewise.
4438         * lib/unictype/categ_Pc.h: Likewise.
4439         * lib/unictype/categ_Pe.h: Likewise.
4440         * lib/unictype/categ_Pf.h: Likewise.
4441         * lib/unictype/categ_Pi.h: Likewise.
4442         * lib/unictype/categ_Ps.h: Likewise.
4443         * lib/unictype/categ_Sk.h: Likewise.
4444         * lib/unictype/categ_Sm.h: Likewise.
4445         * lib/unictype/categ_Z.h: Likewise.
4446         * lib/unictype/categ_Zl.h: Likewise.
4447         * lib/unictype/categ_Zp.h: Likewise.
4448         * lib/unictype/categ_Zs.h: Likewise.
4449         * lib/unictype/ctype_blank.h: Likewise.
4450         * lib/unictype/ctype_cntrl.h: Likewise.
4451         * lib/unictype/ctype_digit.h: Likewise.
4452         * lib/unictype/ctype_space.h: Likewise.
4453         * lib/unictype/ctype_xdigit.h: Likewise.
4454         * lib/unictype/mirror.h: Likewise.
4455         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
4456         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
4457         * lib/unictype/pr_bidi_block_separator.h: Likewise.
4458         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
4459         * lib/unictype/pr_bidi_common_separator.h: Likewise.
4460         * lib/unictype/pr_bidi_control.h: Likewise.
4461         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
4462         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
4463         * lib/unictype/pr_bidi_pdf.h: Likewise.
4464         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
4465         * lib/unictype/pr_bidi_whitespace.h: Likewise.
4466         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
4467         * lib/unictype/pr_format_control.h: Likewise.
4468         * lib/unictype/pr_hex_digit.h: Likewise.
4469         * lib/unictype/pr_hyphen.h: Likewise.
4470         * lib/unictype/pr_ids_binary_operator.h: Likewise.
4471         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
4472         * lib/unictype/pr_iso_control.h: Likewise.
4473         * lib/unictype/pr_join_control.h: Likewise.
4474         * lib/unictype/pr_left_of_pair.h: Likewise.
4475         * lib/unictype/pr_line_separator.h: Likewise.
4476         * lib/unictype/pr_math.h: Likewise.
4477         * lib/unictype/pr_non_break.h: Likewise.
4478         * lib/unictype/pr_not_a_character.h: Likewise.
4479         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
4480         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
4481         * lib/unictype/pr_other_id_continue.h: Likewise.
4482         * lib/unictype/pr_other_id_start.h: Likewise.
4483         * lib/unictype/pr_other_lowercase.h: Likewise.
4484         * lib/unictype/pr_other_math.h: Likewise.
4485         * lib/unictype/pr_other_uppercase.h: Likewise.
4486         * lib/unictype/pr_paired_punctuation.h: Likewise.
4487         * lib/unictype/pr_paragraph_separator.h: Likewise.
4488         * lib/unictype/pr_pattern_syntax.h: Likewise.
4489         * lib/unictype/pr_pattern_white_space.h: Likewise.
4490         * lib/unictype/pr_private_use.h: Likewise.
4491         * lib/unictype/pr_quotation_mark.h: Likewise.
4492         * lib/unictype/pr_radical.h: Likewise.
4493         * lib/unictype/pr_soft_dotted.h: Likewise.
4494         * lib/unictype/pr_space.h: Likewise.
4495         * lib/unictype/pr_titlecase.h: Likewise.
4496         * lib/unictype/pr_variation_selector.h: Likewise.
4497         * lib/unictype/pr_white_space.h: Likewise.
4498         * lib/unictype/sy_c_ident.h: Likewise.
4499         * lib/unictype/sy_c_whitespace.h: Likewise.
4500         * lib/unictype/sy_java_whitespace.h: Likewise.
4501         * modules/uni*/*: Bump version number of expected libunistring version.
4502         Reported by Simon Josefsson.
4503
4504 2011-01-09  Karl Heuer  <kwzh@gnu.org>
4505
4506         useless-if-before-free: fix typo in --help and make the internal,
4507         automatic version date update process work once again.
4508         --help output contained a NUL character instead of the
4509         backslash-zero that was intended.  Also, the "must lie within
4510         the first 8 lines" line is on line 9, and hence not getting
4511         automatically updated.
4512         * build-aux/useless-if-before-free: Fix the former by adding a
4513         backslash, and the latter by condensing the three lines of what-it-does
4514         to a single line, leaving one line of slack for the future.
4515
4516 2011-01-09  Bruno Haible  <bruno@clisp.org>
4517
4518         uniwidth/width: Fix width of U+1D173..U+1D17A.
4519         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
4520         symbolic_width, output_width_property_test): New functions.
4521         (main): Invoke output_nonspacing_property, output_width_property_test.
4522         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
4523         U+1D173..U+1D17A.
4524         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
4525         1.
4526         * modules/uniwidth/*: Bump version number of expected libunistring
4527         version.
4528         * modules/unilbrk/*: Likewise.
4529
4530 2011-01-08  Bruno Haible  <bruno@clisp.org>
4531
4532         uninorm tests: Preserve copyright of Unicode data file.
4533         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
4534         Mention modifications.
4535
4536 2011-01-08  Bruno Haible  <bruno@clisp.org>
4537
4538         gen-uni-tables: Prepare for Unicode 5.2.0.
4539         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
4540         (debug_output_lbp, output_lbp): Update.
4541
4542 2011-01-08  Bruno Haible  <bruno@clisp.org>
4543
4544         unilbrk: Clarify gen-uni-tables.c code.
4545         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
4546         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
4547         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
4548
4549 2011-01-07  Bruno Haible  <bruno@clisp.org>
4550
4551         strtod: Restore errno when successfully parsing Infinity or NaN.
4552         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
4553         restore the original errno.
4554
4555 2011-01-07  Bruno Haible  <bruno@clisp.org>
4556
4557         remove test: Avoid failure on HP-UX 11.
4558         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
4559
4560 2011-01-07  Bruno Haible  <bruno@clisp.org>
4561
4562         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
4563         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
4564         error code.
4565
4566 2011-01-07  Pádraig Brady <P@draigBrady.com>
4567
4568         ignore-value: fixup comments, and add Eric Blake
4569         as an author since he rewrote the macros.
4570         * lib/ignore-value.h (ignore_value):  State that
4571         we now support aggregates.  Also specify exactly
4572         when the GCC warn_unused_result feature was added.
4573
4574 2011-01-06  Eric Blake  <eblake@redhat.com>
4575
4576         ignore-value: support aggregate types
4577         * lib/ignore-value.h (ignore_value): Provide separate gcc
4578         definition.
4579         * modules/ignore-value-tests: New test module.
4580         * tests/test-ignore-value.c: New test.
4581
4582         maint.mk: improve sc_prohibit_strcmp regex
4583         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
4584         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
4585         definition of STRNEQ.
4586
4587         signal: work around Haiku issue with SIGBUS
4588         * lib/siglist.h: Add comment.
4589         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
4590         strsignal's favoring of SIGSEGV.
4591         * tests/test-signal.c (main): Avoid test failure.
4592         * doc/posix-headers/signal.texi (signal.h): Document the issue.
4593         Reported by Scott McCreary.
4594
4595         maint.mk: add pre-release check to ensure submodule commits are public
4596         * top/maint.mk (public-submodule-commit): New rule.
4597         (submodule-checks): New variable.
4598         (alpha beta stable): Depend on the variable.
4599
4600 2011-01-05  Pádraig Brady <P@draigBrady.com>
4601         and Jim Meyering  <meyering@redhat.com>
4602
4603         ignore-value: make ignore_value more generic; deprecate ignore_ptr
4604         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
4605         (ATTRIBUTE_DEPRECATED): Define.
4606         (_ignore_case): New function.
4607         (ignore_value): New macro, to replace the old function.
4608         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
4609         * modules/ignore-value (Depends-on): Add stdint.
4610
4611 2011-01-04  Eric Blake  <eblake@redhat.com>
4612
4613         doc: regenerate INSTALL
4614         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
4615         @firstparagraphindent support, now that autoconf dropped it.
4616         (INSTALL_PRELUDE): Reinstate old macro.
4617         * doc/install.texi: Resync from autoconf.
4618         * doc/INSTALL: Reflect recent autoconf update.
4619         * doc/INSTALL.ISO: Likewise.
4620         * doc/INSTALL.UTF-8: Likewise.
4621         Reported by Karl Berry.
4622
4623 2011-01-04  Bruce Korb  <address@hidden>
4624
4625         git-version-gen: avoid a sub-shell
4626         * build-aux/git-version-gen: Redirect stderr in `...` via
4627         "exec 2>...", rather than via an added sub-shell.
4628
4629 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
4630
4631         git-version-gen: use (...) rather than sh -c '...'
4632         * build-aux/git-version-gen: Rather than hard-coding a shell's name
4633         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
4634
4635 2011-01-03  Jim Meyering  <meyering@redhat.com>
4636
4637         git-version-gen: convert leading TABs to spaces
4638         * build-aux/git-version-gen: Expand leading TABs.
4639
4640         git-version-gen: handle failed "git rev-list"
4641         * build-aux/git-version-gen: Rather than leaking a "fatal" error
4642         from git and proceeding as if it had succeeded but printed no SHA1
4643         checksums, suppress the diagnostic and handle the failure.
4644         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
4645
4646         git-version-gen: include command name in one more diagnostic
4647         * build-aux/git-version-gen: When the required .tarball-version file
4648         was missing or unreadable, you might see the diagnostic from "cat",
4649         but no trace of the name of the invoking script.  Now, you still see
4650         the diagnostic from cat, but also get one from "git-version-gen: ".
4651         Inspired by a patch from Bruce Korb.
4652
4653         update-copyright: adjust test to match changed code
4654         * tests/test-update-copyright.sh: Change test's expected output
4655         to match new actual output.
4656
4657 2011-01-02  Bruno Haible  <bruno@clisp.org>
4658
4659         getlogin_r: Avoid test failure on HP-UX 11.
4660         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
4661         ERANGE when the second argument is zero.
4662         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
4663         portability problem.
4664
4665 2011-01-02  Bruce Korb  <bkorb@gnu.org>
4666
4667         * build-aux/update-copyright: doc Simon's changes
4668
4669 2011-01-02  Simon Josefsson  <simon@josefsson.org>
4670
4671         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
4672         environment variable.
4673
4674 2011-01-02  Bruno Haible  <bruno@clisp.org>
4675
4676         unigbrk: Avoid gcc warnings.
4677         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
4678         unused variable.
4679         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
4680         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
4681         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
4682         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
4683         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
4684         Change type of first argument to 'const char *'.
4685         (main): Remove unused variable.
4686         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
4687         type of first argument to 'const char *'.
4688         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
4689         Likewise.
4690         (main): Change type of variable 's'.
4691         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
4692         to 'int'.
4693
4694 2011-01-02  Bruno Haible  <bruno@clisp.org>
4695
4696         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
4697         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
4698         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
4699         bug.
4700         * lib/pwrite.c: Undo 2010-12-31 patch.
4701         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
4702
4703 2011-01-02  Bruno Haible  <bruno@clisp.org>
4704
4705         pread: Fix test whether it works.
4706         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
4707
4708 2011-01-02  Bruno Haible  <bruno@clisp.org>
4709
4710         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
4711         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
4712         ends in "6". Don't require a specific month name. Try also the locale
4713         names found on HP-UX 11 and Solaris 7.
4714
4715 2011-01-02  Bruno Haible  <bruno@clisp.org>
4716
4717         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
4718         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
4719         C linkage.
4720         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
4721
4722 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
4723
4724         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
4725         for consistency, since the "cluster" term is not used elsewhere.
4726         * lib/unigbrk.in.h: Update name.
4727         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
4728         * lib/unigbrk/u16-grapheme-next.c: Update name.
4729         * lib/unigbrk/u16-grapheme-prev.c: Update name.
4730         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
4731         * lib/unigbrk/u32-grapheme-next.c: Update name.
4732         * lib/unigbrk/u32-grapheme-prev.c: Update name.
4733         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
4734         * lib/unigbrk/u8-grapheme-next.c: Update name.
4735         * lib/unigbrk/u8-grapheme-prev.c: Update name.
4736         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
4737         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
4738         Suggested by Bruno Haible.
4739
4740 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
4741
4742         Remove module 'u8-grapheme-len' as too redundant with
4743         'u8-grapheme-next'.
4744         * modules/unigbrk/u8-grapheme-len: Delete file.
4745         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
4746         * lib/unigbrk.in.h: Remove prototype for deleted function.
4747         * lib/unigbrk/u8-grapheme-len.c: Delete file.
4748         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
4749
4750         Remove module 'u16-grapheme-len' as too redundant with
4751         'u16-grapheme-next'.
4752         * modules/unigbrk/u16-grapheme-len: Delete file.
4753         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
4754         * lib/unigbrk.in.h: Remove prototype for deleted function.
4755         * lib/unigbrk/u16-grapheme-len.c: Delete file.
4756         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
4757
4758         Remove module 'u32-grapheme-len' as too redundant with
4759         'u32-grapheme-next'.
4760         * modules/unigbrk/u32-grapheme-len: Delete file.
4761         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
4762         * lib/unigbrk.in.h: Remove prototype for deleted function.
4763         * lib/unigbrk/u32-grapheme-len.c: Delete file.
4764         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
4765
4766         Suggested by Bruno Haible.
4767
4768 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
4769
4770         * unigbrk.in.h: Fix typo: "ben" => "been".
4771         Reported by Bruno Haible.
4772
4773 2011-01-01  Jim Meyering  <meyering@redhat.com>
4774
4775         maint: update almost all copyright ranges to include 2011
4776         Run the new "make update-copyright" rule.
4777
4778 2011-01-01  Jim Meyering  <meyering@redhat.com>
4779
4780         maint: update-copyright: exempt doc/INSTALL*
4781         * Makefile (update-copyright): Also exclude doc/INSTALL*,
4782         since they are generated.  Suggested by Bruno Haible.
4783
4784 2011-01-01  Jim Meyering  <meyering@redhat.com>
4785
4786         maint: refine the update-copyright rule
4787         * Makefile (update-copyright): Also exclude any file that includes
4788         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
4789         code that merely generates the comment.
4790
4791 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
4792
4793         New module 'u8-grapheme-len'.
4794         * modules/unigbrk/u8-grapheme-len: New file.
4795         * modules/unigbrk/u8-grapheme-len-tests: New file.
4796         * lib/unigbrk.in.h: Add prototype for new function.
4797         * lib/unigbrk/u8-grapheme-len.c: New file.
4798         * tests/unigbrk/test-u8-grapheme-len.c: New file.
4799
4800         New module 'u16-grapheme-len'.
4801         * modules/unigbrk/u16-grapheme-len: New file.
4802         * modules/unigbrk/u16-grapheme-len-tests: New file.
4803         * lib/unigbrk.in.h: Add prototype for new function.
4804         * lib/unigbrk/u16-grapheme-len.c: New file.
4805         * tests/unigbrk/test-u16-grapheme-len.c: New file.
4806
4807         New module 'u32-grapheme-len'.
4808         * modules/unigbrk/u32-grapheme-len: New file.
4809         * modules/unigbrk/u32-grapheme-len-tests: New file.
4810         * lib/unigbrk.in.h: Add prototype for new function.
4811         * lib/unigbrk/u32-grapheme-len.c: New file.
4812         * tests/unigbrk/test-u32-grapheme-len.c: New file.
4813
4814         New module 'u8-grapheme-next'.
4815         * modules/unigbrk/u8-grapheme-next: New file.
4816         * modules/unigbrk/u8-grapheme-next-tests: New file.
4817         * lib/unigbrk.in.h: Add prototype for new function.
4818         * lib/unigbrk/u8-grapheme-next.c: New file.
4819         * tests/unigbrk/test-u8-grapheme-next.c: New file.
4820
4821         New module 'u16-grapheme-next'.
4822         * modules/unigbrk/u16-grapheme-next: New file.
4823         * modules/unigbrk/u16-grapheme-next-tests: New file.
4824         * lib/unigbrk.in.h: Add prototype for new function.
4825         * lib/unigbrk/u16-grapheme-next.c: New file.
4826         * tests/unigbrk/test-u16-grapheme-next.c: New file.
4827
4828         New module 'u32-grapheme-next'.
4829         * modules/unigbrk/u32-grapheme-next: New file.
4830         * modules/unigbrk/u32-grapheme-next-tests: New file.
4831         * lib/unigbrk.in.h: Add prototype for new function.
4832         * lib/unigbrk/u32-grapheme-next.c: New file.
4833         * tests/unigbrk/test-u32-grapheme-next.c: New file.
4834
4835         New module 'u8-grapheme-prev'.
4836         * modules/unigbrk/u8-grapheme-prev: New file.
4837         * modules/unigbrk/u8-grapheme-prev-tests: New file.
4838         * lib/unigbrk.in.h: Add prototype for new function.
4839         * lib/unigbrk/u8-grapheme-prev.c: New file.
4840         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
4841
4842         New module 'u16-grapheme-prev'.
4843         * modules/unigbrk/u16-grapheme-prev: New file.
4844         * modules/unigbrk/u16-grapheme-prev-tests: New file.
4845         * lib/unigbrk.in.h: Add prototype for new function.
4846         * lib/unigbrk/u16-grapheme-prev.c: New file.
4847         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
4848
4849         New module 'u32-grapheme-prev'.
4850         * modules/unigbrk/u32-grapheme-prev: New file.
4851         * modules/unigbrk/u32-grapheme-prev-tests: New file.
4852         * lib/unigbrk.in.h: Add prototype for new function.
4853         * lib/unigbrk/u32-grapheme-prev.c: New file.
4854         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
4855
4856         New module 'u8-grapheme-breaks'.
4857         * modules/unigbrk/u8-grapheme-breaks: New file.
4858         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
4859         * lib/unigbrk.in.h: Add prototype for new function.
4860         * lib/unigbrk/u8-grapheme-breaks.c: New file.
4861         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
4862
4863         New module 'u16-grapheme-breaks'.
4864         * modules/unigbrk/u16-grapheme-breaks: New file.
4865         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
4866         * lib/unigbrk.in.h: Add prototype for new function.
4867         * lib/unigbrk/u16-grapheme-breaks.c: New file.
4868         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
4869
4870         New module 'u32-grapheme-breaks'.
4871         * modules/unigbrk/u32-grapheme-breaks: New file.
4872         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
4873         * lib/unigbrk.in.h: Add prototype for new function.
4874         * lib/unigbrk/u32-grapheme-breaks.c: New file.
4875         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
4876
4877         New module 'ulc-grapheme-breaks'.
4878         * modules/unigbrk/ulc-grapheme-breaks: New file.
4879         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
4880         * m4/locale-ar.m4: New file.
4881         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
4882         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
4883         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
4884
4885 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
4886
4887         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
4888         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
4889         modified how this file was generated before I initially submitted
4890         the module, but failed to regenerate it.  This meant that several
4891         of the level2 entries were wrong.
4892         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
4893         Remove the division-by-2 that is folded into the table now that
4894         gbrkprop.h has been regenerated properly.  Now -1 entries are
4895         handled correctly.
4896
4897         New module 'unigbrk/uc-gbrk-prop-tests'.
4898         * modules/unigbrk/uc-gbrk-prop-tests: New file.
4899         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
4900         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
4901         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
4902
4903 2011-01-01  Bruno Haible  <bruno@clisp.org>
4904
4905         Avoid use of hexadecimal escapes.
4906         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
4907         instead of hexadecimal escapes.
4908
4909 2011-01-01  Jim Meyering  <meyering@redhat.com>
4910
4911         maint: new rule to update copyright year ranges
4912         * Makefile (update-copyright): New rule.
4913
4914         maint: indent with TABs in Makefile
4915         * Makefile: Expand leading sequences of spaces to TABs
4916
4917         version-etc: update the copyright year it reports
4918         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
4919
4920 2010-12-31  Bruno Haible  <bruno@clisp.org>
4921
4922         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
4923         * lib/isfinite.c (zerof, zerod, zerol): New variables.
4924         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
4925         zero.
4926
4927 2010-12-31  Bruno Haible  <bruno@clisp.org>
4928
4929         pwrite: Work around HP-UX 11.11 bug.
4930         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
4931         works and set REPLACE_PWRITE if not.
4932         * lib/pwrite.c (pwrite): Add an implementation that uses the system
4933         function.
4934         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
4935
4936 2010-12-31  Bruno Haible  <bruno@clisp.org>
4937
4938         pread: Work around HP-UX 11 bugs.
4939         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
4940         and set REPLACE_PREAD if not.
4941         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
4942
4943 2010-12-31  Eric Blake  <eblake@redhat.com>
4944
4945         nl_langinfo: fix YESEXPR on Irix 6.5
4946         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
4947         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
4948         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
4949         it.
4950
4951 2010-12-31  Bruno Haible  <bruno@clisp.org>
4952
4953         iconv: Document HP-UX 11 bug.
4954         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
4955
4956 2010-12-31  Bruno Haible  <bruno@clisp.org>
4957
4958         ldexpl: Fix link error on HP-UX 11.
4959         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
4960         LDEXPL_LIBM, using $ISNANL_LIBM.
4961
4962 2010-12-31  Eric Blake  <eblake@redhat.com>
4963
4964         ftello: avoid compilation failure with SunStudio c89
4965         * lib/ftello.c (ftello): Use lseek, not llseek.
4966
4967         tests: avoid failing coreutils tests on cygwin
4968         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
4969         (create_exe_shims_): Return 0 when skipping.
4970
4971 2010-12-31  Bruno Haible  <bruno@clisp.org>
4972
4973         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
4974         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
4975
4976 2010-12-31  Bruno Haible  <bruno@clisp.org>
4977
4978         waitpid: Fix link error in C++ mode.
4979         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
4980
4981 2010-12-31  Bruno Haible  <bruno@clisp.org>
4982
4983         isnan: Use GCC built-ins when possible.
4984         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
4985         __builtin_isnan.
4986         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
4987         (isnan): Define using GCC built-ins for GCC >= 4.0.
4988
4989 2010-12-31  Bruno Haible  <bruno@clisp.org>
4990
4991         isnand: Fix mistake.
4992         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
4993         __builtin_isnand.
4994
4995 2010-12-31  Bruno Haible  <bruno@clisp.org>
4996
4997         open: Avoid C++ error on HP-UX 11.
4998         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
4999
5000 2010-12-31  Bruno Haible  <bruno@clisp.org>
5001
5002         time_r: Add missing declarations on HP-UX 11.
5003         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
5004         instead of HAVE_LOCALTIME_R.
5005         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
5006         HAVE_LOCALTIME_R always.
5007         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
5008         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
5009         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
5010         HAVE_LOCALTIME_R.
5011         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
5012         * doc/posix-functions/localtime_r.texi: Likewise.
5013
5014 2010-12-29  Eric Blake  <eblake@redhat.com>
5015
5016         mountlist: tweak previous commit
5017         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
5018         Reported by Paul Eggert.
5019
5020         mountlist: fix local drive detection on cygwin
5021         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
5022         that works for cygwin.
5023
5024 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5025
5026         ftoastr, snprintf: ftoastr + snprintf module
5027         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
5028         since the snprintf module now should be good enough here.
5029         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
5030         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
5031         and gl_MODULE_INDICATOR([snprintf]), but the former enables
5032         GNULIB_SNPRINTF only for the test directory, and the latter
5033         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
5034         seems to suffice by itself.
5035
5036 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
5037
5038         alloca: one step towards thread-safety
5039         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
5040         need for a static variable.  All callers changed.  This does not
5041         make the alloca replacement thread-safe, but it's one step.
5042
5043         tests: minor indenting change
5044         * tests/init.sh: Sync from coreutils housekeeping patch
5045         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
5046         to keep lines within 80 columns.
5047
5048 2010-12-28  Jim Meyering  <meyering@redhat.com>
5049
5050         regex: don't infloop on persistent failing calloc
5051         * lib/regexec.c (build_trtable): Return failure indication upon
5052         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
5053         In glibc, this was fixed for version 2.13:
5054         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
5055
5056 2010-12-28  Bruno Haible  <bruno@clisp.org>
5057             Paul Eggert <eggert@cs.ucla.edu>
5058
5059         linkat: Make implementation robust against system behaviour variations.
5060         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
5061         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
5062         way, and to -2 if it needs a generic runtime test.
5063         * lib/linkat.c (solaris_optimized_link_immediate,
5064         solaris_optimized_link_follow): New functions.
5065         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
5066         (check_same_link): Use it.
5067
5068 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
5069
5070         New module 'unigbrk/base'.
5071         * modules/unigbrk/base: New file.
5072         * lib/unigbrk.in.h: New file.
5073
5074         New module 'unigbrk/uc-gbrk-prop'.
5075         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
5076         * modules/unigbrk/uc-gbrk-prop: New file.
5077         * lib/unigbrk/gbrkprop.h: New file.
5078         * lib/unigbrk/uc-gbrk-prop.c: New file.
5079
5080         New module 'unigbrk/uc-is-grapheme-break'.
5081         * modules/unigbrk/uc-is-grapheme-break: New file.
5082         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
5083         * lib/unigbrk/uc-is-grapheme-break.c: New file.
5084         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
5085         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
5086         * tests/unigbrk/GraphemeBreakTest.txt: New file.
5087
5088         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
5089
5090 2010-12-27  Bruno Haible  <bruno@clisp.org>
5091
5092         linkat test: Avoid failure on Solaris 11 2010-11.
5093         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
5094
5095 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
5096
5097         utimens: work around glibc rounding bug on more platforms
5098         * lib/utimens.c (fdutimens): Work around rounding bug even if
5099         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
5100         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
5101
5102 2010-12-27  Bruno Haible  <bruno@clisp.org>
5103
5104         select tests: Improve comments.
5105         * tests/test-select.c (do_select): Add comments.
5106
5107 2010-12-27  Bruno Haible  <bruno@clisp.org>
5108
5109         select tests: Safer way of handling timeout.
5110         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
5111         at every invocation.
5112
5113 2010-12-27  Bruno Haible  <bruno@clisp.org>
5114
5115         select tests: Use 'bool' where appropriate.
5116         * tests/test-select.c (connect_to_socket): Change argument type to
5117         'bool'.
5118
5119 2010-12-27  Bruno Haible  <bruno@clisp.org>
5120
5121         select tests: Use existing modules.
5122         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
5123         (configure.ac): Don't test for unistd.h.
5124         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
5125         declared in <unistd.h>.
5126
5127 2010-12-27  Bruno Haible  <bruno@clisp.org>
5128
5129         mbrtowc: Work around a Solaris 7 bug.
5130         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
5131         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
5132         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
5133         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
5134         MBRTOWC_NULL_ARG1_BUG.
5135         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
5136         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
5137         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
5138         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
5139
5140 2010-12-27  Jim Meyering  <meyering@redhat.com>
5141
5142         read-file.c: tweak syntax
5143         * lib/read-file.c (fread_file): Remove space after "*" in function
5144         definitions.
5145
5146 2010-12-27  Bruno Haible  <bruno@clisp.org>
5147
5148         times test: Avoid gcc warnings on OSF/1.
5149         * tests/test-times.c (main): Cast printf arguments from clock_t to
5150         'long int'.
5151
5152 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
5153
5154         utimens: work around glibc rounding bug on older Linux kernels
5155         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
5156         on Linux with a glibc whose utimes might not work, then work
5157         around a longstanding glibc bug involving rounding rather than
5158         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
5159         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
5160
5161 2010-12-26  Bruno Haible  <bruno@clisp.org>
5162
5163         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
5164         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
5165         _GL_CXXALIAS_SYS.
5166         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5167
5168 2010-12-26  Bruno Haible  <bruno@clisp.org>
5169
5170         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
5171         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
5172         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
5173         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
5174         looking for the declaration.
5175         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
5176         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
5177         problem.
5178         * doc/posix-functions/inet_pton.texi: Likewise.
5179
5180 2010-12-26  Bruno Haible  <bruno@clisp.org>
5181
5182         arpa_inet: Use the common idioms with C++ support.
5183         * lib/arpa_inet.in.h: Include c++defs.h.
5184         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
5185         support.
5186         * modules/arpa_inet (Depends-on): Add c++defs.
5187         (Makefile.am): Substitute the contents of c++defs.h.
5188         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
5189         * modules/arpa_inet-c++-tests: New file.
5190         * tests/test-arpa_inet-c++.cc: New file.
5191
5192 2010-12-25  Bruno Haible  <bruno@clisp.org>
5193
5194         Fix more C++ link errors on Solaris 8.
5195         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
5196         $(LIB_EACCESS).
5197         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
5198         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
5199         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
5200         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
5201         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
5202
5203 2010-12-25  Bruno Haible  <bruno@clisp.org>
5204
5205         printf-posix: Fix link error when a non-GCC compiler is used.
5206         * lib/stdio.in.h (printf): When not using GCC, override printf
5207         correctly.
5208         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5209
5210 2010-12-25  Bruno Haible  <bruno@clisp.org>
5211
5212         strerror_r-posix: Update doc.
5213         * doc/posix-functions/strerror_r.texi: Update doc about the return
5214         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
5215
5216 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5217
5218         utimens: simplify the logic of the previous change
5219         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
5220         This should not affect whether the test succeeds or fails.
5221
5222         utimens: configure better on hosts with NFS clock skew
5223         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
5224         uses the clock of the local host.  It might use the clock of the
5225         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
5226         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
5227
5228 2010-12-25  Bruno Haible  <bruno@clisp.org>
5229
5230         ptsname test: Avoid failure on Solaris.
5231         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
5232         open a pseudo-terminal; don't use BSD-style ptys.
5233         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
5234
5235 2010-12-25  Bruno Haible  <bruno@clisp.org>
5236
5237         ptsname: Avoid ERANGE failure on some systems.
5238         * lib/ptsname.c (buffer): Increase size.
5239
5240 2010-12-25  Bruno Haible  <bruno@clisp.org>
5241
5242         rename, renameat: Avoid test failures at NFS mounted locations.
5243         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
5244         so that subsequent mkdir calls succeed.
5245
5246 2010-12-25  Bruno Haible  <bruno@clisp.org>
5247
5248         iswblank: Fix C++ link error on Solaris 8.
5249         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
5250         _GL_FUNCDECL_SYS.
5251
5252 2010-12-25  Bruno Haible  <bruno@clisp.org>
5253
5254         unistd: Fix C++ link error on Solaris 8.
5255         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
5256
5257 2010-12-25  Bruno Haible  <bruno@clisp.org>
5258
5259         readlink doc: Mention an old glibc bug.
5260         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
5261
5262 2010-12-25  Bruno Haible  <bruno@clisp.org>
5263
5264         fcntl-h: Fix for use of C++ on glibc systems.
5265         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
5266         also on glibc systems in C++ mode.
5267         Reported by Gary V. Vaughan <gary@gnu.org>.
5268
5269 2010-12-25  Bruno Haible  <bruno@clisp.org>
5270
5271         roundl-ieee: Make it work on OSF/1 5.1 with cc.
5272         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
5273
5274 2010-12-25  Bruno Haible  <bruno@clisp.org>
5275
5276         truncl-ieee: Make it work on OSF/1 5.1 with cc.
5277         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
5278         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
5279         test whether truncl works according to ISO C 99 with IEC 60559.
5280         * m4/truncl-ieee.m4: New file.
5281         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
5282         m4/signbit.m4.
5283         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
5284
5285 2010-12-25  Bruno Haible  <bruno@clisp.org>
5286
5287         ceill-ieee: Make it work on OSF/1 5.1 with cc.
5288         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
5289         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
5290         test whether ceill works according to ISO C 99 with IEC 60559.
5291         * m4/ceill-ieee.m4: New file.
5292         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
5293         m4/signbit.m4.
5294         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
5295
5296 2010-12-25  Bruno Haible  <bruno@clisp.org>
5297
5298         Ensure all prerequisites of <wchar.h> are included.
5299         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
5300         before <wchar.h>.
5301         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
5302         gl_MBRLEN_NUL_RETVAL): Likewise.
5303         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
5304         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
5305         AC_FUNC_MBRTOWC): Likewise.
5306         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
5307         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
5308         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
5309         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
5310         Likewise.
5311         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5312         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
5313         (gl_WCHAR_H): Improve comments.
5314         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
5315
5316 2010-12-25  Bruno Haible  <bruno@clisp.org>
5317
5318         strtok_r: Fix C syntax error in autoconf macro.
5319         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
5320         characters in test program.
5321
5322 2010-12-24  Bruno Haible  <bruno@clisp.org>
5323
5324         ceil, trunc, round: Fix gcc warnings.
5325         * lib/ceil.c (MIN): Undefine before redefining.
5326         * lib/trunc.c (MIN): Likewise.
5327         * lib/round.c (MIN): Likewise.
5328         Include <math.h> first.
5329
5330 2010-12-24  Bruno Haible  <bruno@clisp.org>
5331
5332         select tests: Avoid failures on OSF/1 5.1.
5333         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
5334         failure of closing the last socket; it may fail with ECONNRESET.
5335
5336 2010-12-24  Eric Blake  <eblake@redhat.com>
5337
5338         stdint: avoid HP-UX 10.20 preprocessor bug
5339         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
5340         than #if.
5341         * tests/test-floor2.c (main): Likewise.
5342         Reported by Peter O'Gorman.
5343
5344         pipe: make obsoletion transition easier
5345         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
5346         * modules/pipe (Files): Include revived file.
5347         (Include): Drop reference, to mirror getdate's behavior.
5348
5349 2010-12-24  Bruno Haible  <bruno@clisp.org>
5350
5351         sys_socket: Hide mismatch of declarations on NonStop Kernel.
5352         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
5353         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
5354         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5355
5356 2010-12-24  Bruno Haible  <bruno@clisp.org>
5357
5358         gethostname: Ensure declaration on NonStop Kernel.
5359         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
5360         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5361
5362 2010-12-24  Bruno Haible  <bruno@clisp.org>
5363
5364         sys_select: Ensure all necessary types on NonStop Kernel.
5365         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
5366         include <sys/time.h>.
5367         * doc/posix-headers/sys_select.texi: Mention that it's missing on
5368         NonStop Kernel.
5369         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5370
5371 2010-12-24  Bruno Haible  <bruno@clisp.org>
5372
5373         sys_select: Remove unneeded include.
5374         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
5375         have <sys/select.h>.
5376
5377 2010-12-24  Bruno Haible  <bruno@clisp.org>
5378
5379         gethostname: Provide a fallback for HOST_NAME_MAX.
5380         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
5381         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
5382         instead.
5383         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5384
5385 2010-12-24  Bruno Haible  <bruno@clisp.org>
5386
5387         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
5388         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
5389         (SA_RESTART): Likewise.
5390         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5391
5392 2010-12-24  Bruno Haible  <bruno@clisp.org>
5393
5394         signal: Define NSIG.
5395         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
5396         * tests/test-signal.c (nsig): New variable.
5397         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5398
5399 2010-12-24  Bruno Haible  <bruno@clisp.org>
5400
5401         rename, renameat: Avoid test failures on OSF/1 5.1.
5402         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
5403         alternative error codes.
5404         * tests/test-renameat.c (main): Likewise.
5405
5406 2010-12-24  Bruno Haible  <bruno@clisp.org>
5407
5408         *printf: Detect large precisions bug on Solaris 10/SPARC.
5409         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
5410         by Paul Eggert.
5411         * tests/test-snprintf-posix.h (test_function): Add this test code here
5412         too.
5413         * tests/test-sprintf-posix.h (test_function): Likewise.
5414         * tests/test-vasnprintf-posix.c (test_function): Likewise.
5415         * tests/test-vasprintf-posix.c (test_function): Likewise.
5416         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
5417         around by gnulib.
5418         * doc/posix-functions/printf.texi: Likewise.
5419         * doc/posix-functions/snprintf.texi: Likewise.
5420         * doc/posix-functions/sprintf.texi: Likewise.
5421         * doc/posix-functions/vfprintf.texi: Likewise.
5422         * doc/posix-functions/vprintf.texi: Likewise.
5423         * doc/posix-functions/vsnprintf.texi: Likewise.
5424         * doc/posix-functions/vsprintf.texi: Likewise.
5425         * doc/posix-functions/dprintf.texi: Undo last commit.
5426         * doc/posix-functions/vdprintf.texi: Likewise.
5427
5428 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
5429
5430         tests: port test-fdutimensat.c to Solaris 8
5431         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
5432         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
5433         On Solaris 8, it fails with errno == ENOSYS, because there is no
5434         futimens (so it can't use the fd), and there is no lutimens (so it
5435         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
5436
5437         vsnprintf: make more consistent with snprintf; doc fixes
5438
5439         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
5440         the byte count return problem was promoted from the snprintf-posix
5441         to the snprintf module.
5442         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
5443         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
5444         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
5445         * tests/test-snprintf.c (main): Check the byte count returned.
5446         * tests/test-vsnprintf.c (main): Likewise.
5447
5448 2010-12-23  Eric Blake  <eblake@redhat.com>
5449
5450         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
5451         * modules/sigpipe (License): Relax license.
5452
5453 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5454
5455         doc: document Solaris printf bug with large float precisions
5456         * doc/posix-functions/dprintf.texi (dprintf):
5457         * doc/posix-functions/fprintf.texi (fprintf):
5458         * doc/posix-functions/printf.texi (printf):
5459         * doc/posix-functions/snprintf.texi (snprintf):
5460         * doc/posix-functions/sprintf.texi (sprintf):
5461         * doc/posix-functions/vdprintf.texi (vdprintf):
5462         * doc/posix-functions/vfprintf.texi (vfprintf):
5463         * doc/posix-functions/vprintf.texi (vprintf):
5464         * doc/posix-functions/vsnprintf.texi (vsnprintf):
5465         * doc/posix-functions/vsprintf.texi (vsprintf):
5466         Mention that these functions mishandle large floating point
5467         precisions on Solaris 10.  The same bug is also present in Solaris
5468         8, and I assume earlier.  This causes "cd gnulib-tests; make
5469         check" to fail on Solaris 8 (and I assume, later) when building
5470         the latest coreutils, in test-vasprintf-posix's call to
5471         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
5472         the wide flavors (e.g., wprintf) so this patch just updates the
5473         documentation for the narrow ones.
5474
5475         test-posixtm.c: add two tests
5476         * tests/test-posixtm.c: Add two tests, to highlight the
5477         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
5478         around this bug; this is merely to document it.
5479
5480 2010-12-22  Bruno Haible  <bruno@clisp.org>
5481
5482         getlogin_r: Work around portability problem on OSF/1.
5483         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
5484         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
5485         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
5486         test for a truncated result.
5487         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
5488         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
5489         * modules/getlogin_r (Depends-on): Add memchr.
5490         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
5491
5492 2010-12-22  Bruno Haible  <bruno@clisp.org>
5493
5494         ptsname: Avoid test failure on OSF/1 5.1.
5495         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
5496         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
5497         (same_slave): New function.
5498         (main): Use it to compare ptsname's result with the expected file name.
5499
5500 2010-12-22  Bruno Haible  <bruno@clisp.org>
5501
5502         Port extended stdio modules to HP NonStop Kernel.
5503         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
5504         macros.
5505         * lib/fbufmode.c: Update comments.
5506         * lib/fflush.c: Likewise.
5507         * lib/fpurge.c: Likewise.
5508         * lib/freadable.c: Likewise.
5509         * lib/freadahead.c: Likewise.
5510         * lib/freading.c: Likewise.
5511         * lib/freadptr.c: Likewise.
5512         * lib/freadseek.c: Likewise.
5513         * lib/fseeko.c: Likewise.
5514         * lib/fseterr.c: Likewise.
5515         * lib/fwritable.c: Likewise.
5516         * lib/fwriting.c: Likewise.
5517         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5518
5519 2010-12-22  Bruno Haible  <bruno@clisp.org>
5520
5521         ttyname_r: Work around bug on OSF/1 5.1.
5522         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
5523         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
5524         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
5525         present.
5526         * lib/ttyname_r.c (ttyname_r): Update comments.
5527
5528 2010-12-22  Bruno Haible  <bruno@clisp.org>
5529
5530         round: Implement result sign according to IEEE 754.
5531         * lib/round.c (MIN, MINUS_ZERO): New macros.
5532         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
5533         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
5534         * tests/test-round-ieee.c (main): Likewise.
5535         * tests/test-roundl-ieee.c (main): Likewise.
5536
5537         trunc: Implement result sign according to IEEE 754.
5538         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
5539         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
5540         * tests/test-trunc2.c: Include minus-zero.h.
5541         (MINUS_ZERO): New macro.
5542         (trunc_reference): Keep in sync with lib/trunc.c.
5543         * tests/test-truncf2.c: Include minus-zero.h.
5544         (MINUS_ZERO): New macro.
5545         (truncf_reference): Keep in sync with lib/trunc.c.
5546         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
5547         * tests/test-trunc-ieee.c (main): Likewise.
5548         * tests/test-truncl-ieee.c (main): Likewise.
5549
5550         ceil: Implement result sign according to IEEE 754.
5551         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
5552         (FUNC): Return -0.0 for -1 < x < 0.
5553         * tests/test-ceil2.c: Include minus-zero.h.
5554         (MINUS_ZERO): New macro.
5555         (ceil_reference): Keep in sync with lib/ceil.c.
5556         * tests/test-ceilf2.c: Include minus-zero.h.
5557         (MINUS_ZERO): New macro.
5558         (ceilf_reference): Keep in sync with lib/ceil.c.
5559         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
5560         * tests/test-ceil-ieee.c (main): Likewise.
5561         * tests/test-ceill-ieee.c (main): Likewise.
5562
5563         floor: Implement result sign according to IEEE 754.
5564         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
5565         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
5566         * tests/test-floorf2.c (floorf_reference): Likewise.
5567         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
5568         * tests/test-floor-ieee.c (main): Likewise.
5569         * tests/test-floorl-ieee.c (main): Likewise.
5570
5571 2010-12-22  Bruno Haible  <bruno@clisp.org>
5572
5573         getaddrinfo: Update doc.
5574         * doc/posix-functions/gai_strerror.texi: Return type is also different
5575         on AIX and HP-UX.
5576
5577 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5578
5579         getaddrinfo, inet_ntop: Update doc for Solaris.
5580         * doc/posix-functions/gai_strerror.texi: Return type is also an
5581         issue on Solaris 9 and earlier.
5582         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
5583         on Solaris 10 and earlier.
5584
5585 2010-12-21  Bruno Haible  <bruno@clisp.org>
5586
5587         New module 'roundl-ieee'.
5588         * modules/roundl-ieee: New file.
5589         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
5590         test whether roundl works according to ISO C 99 with IEC 60559.
5591         * m4/roundl-ieee.m4: New file.
5592         * modules/roundl-ieee-tests: New file.
5593         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
5594         * tests/test-roundl.c (main): Remove signbit tests.
5595         * modules/roundl-tests (Depends-on): Remove signbit.
5596         * doc/posix-functions/roundl.texi: Mention the new module.
5597
5598 2010-12-21  Bruno Haible  <bruno@clisp.org>
5599
5600         New module 'truncl-ieee'.
5601         * modules/truncl-ieee: New file.
5602         * modules/truncl-ieee-tests: New file.
5603         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
5604         * tests/test-truncl.c (main): Remove signbit tests.
5605         * modules/truncl-tests (Depends-on): Remove signbit.
5606         * doc/posix-functions/truncl.texi: Mention the new module.
5607
5608 2010-12-21  Bruno Haible  <bruno@clisp.org>
5609
5610         New module 'ceill-ieee'.
5611         * modules/ceill-ieee: New file.
5612         * modules/ceill-ieee-tests: New file.
5613         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
5614         * tests/test-ceill.c (main): Remove signbit tests.
5615         * modules/ceill-tests (Depends-on): Remove signbit.
5616         * doc/posix-functions/ceill.texi: Mention the new module.
5617
5618 2010-12-21  Bruno Haible  <bruno@clisp.org>
5619
5620         New module 'floorl-ieee'.
5621         * modules/floorl-ieee: New file.
5622         * modules/floorl-ieee-tests: New file.
5623         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
5624         * tests/test-floorl.c (main): Remove signbit tests.
5625         * modules/floorl-tests (Depends-on): Remove signbit.
5626         * doc/posix-functions/floorl.texi: Mention the new module.
5627
5628 2010-12-21  Bruno Haible  <bruno@clisp.org>
5629
5630         New module 'round-ieee'.
5631         * modules/round-ieee: New file.
5632         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
5633         whether round works according to ISO C 99 with IEC 60559.
5634         * m4/round-ieee.m4: New file.
5635         * modules/round-ieee-tests: New file.
5636         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
5637         * tests/test-round1.c (main): Remove signbit tests.
5638         * modules/round-tests (Depends-on): Remove 'signbit'.
5639         * doc/posix-functions/round.texi: Mention the new module.
5640
5641 2010-12-21  Bruno Haible  <bruno@clisp.org>
5642
5643         New module 'trunc-ieee'.
5644         * modules/trunc-ieee: New file.
5645         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
5646         whether trunc works according to ISO C 99 with IEC 60559.
5647         * m4/trunc-ieee.m4: New file.
5648         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
5649         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
5650         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
5651         * modules/trunc-ieee-tests: New file.
5652         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
5653         * tests/test-trunc1.c (main): Remove signbit tests.
5654         * modules/trunc-tests (Depends-on): Remove 'signbit'.
5655         * doc/posix-functions/trunc.texi: Mention the new module.
5656
5657 2010-12-21  Bruno Haible  <bruno@clisp.org>
5658
5659         New module 'ceil-ieee'.
5660         * modules/ceil-ieee: New file.
5661         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
5662         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
5663         ISO C 99 with IEC 60559.
5664         * m4/ceil-ieee.m4: New file.
5665         * modules/ceil (Files): Add lib/ceil.c.
5666         (Depends-on): Add 'float'.
5667         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5668         * lib/math.in.h (ceil): New declaration.
5669         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
5670         REPLACE_CEIL.
5671         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
5672         * modules/ceil-ieee-tests: New file.
5673         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
5674         * tests/test-math-c++.cc: Check the signature of 'ceil'.
5675         * doc/posix-functions/ceil.texi: Mention the new module.
5676
5677 2010-12-21  Bruno Haible  <bruno@clisp.org>
5678
5679         New module 'floor-ieee'.
5680         * modules/floor-ieee: New file.
5681         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
5682         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
5683         ISO C 99 with IEC 60559.
5684         * m4/floor-ieee.m4: New file.
5685         * modules/floor (Files): Add lib/floor.c.
5686         (Depends-on): Add 'float'.
5687         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5688         * lib/math.in.h (floor): New declaration.
5689         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
5690         REPLACE_FLOOR.
5691         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
5692         * modules/floor-ieee-tests: New file.
5693         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
5694         * tests/test-math-c++.cc: Check the signature of 'floor'.
5695         * doc/posix-functions/floor.texi: Mention the new module.
5696
5697 2010-12-21  Bruno Haible  <bruno@clisp.org>
5698
5699         New module 'roundf-ieee'.
5700         * modules/roundf-ieee: New file.
5701         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
5702         test whether roundf works according to ISO C 99 with IEC 60559.
5703         * m4/roundf-ieee.m4: New file.
5704         * modules/roundf-ieee-tests: New file.
5705         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
5706         * tests/test-roundf1.c (main): Remove signbit tests.
5707         * modules/roundf-tests (Depends-on): Remove 'signbit'.
5708         * doc/posix-functions/roundf.texi: Mention the new module.
5709
5710 2010-12-21  Bruno Haible  <bruno@clisp.org>
5711
5712         New module 'truncf-ieee'.
5713         * modules/truncf-ieee: New file.
5714         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
5715         test whether truncf works according to ISO C 99 with IEC 60559.
5716         * m4/truncf-ieee.m4: New file.
5717         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
5718         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
5719         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
5720         * modules/truncf-ieee-tests: New file.
5721         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
5722         * tests/test-truncf1.c (main): Remove signbit tests.
5723         * modules/truncf-tests (Depends-on): Remove 'signbit'.
5724         * doc/posix-functions/truncf.texi: Mention the new module.
5725
5726 2010-12-21  Bruno Haible  <bruno@clisp.org>
5727
5728         New module 'ceilf-ieee'.
5729         * modules/ceilf-ieee: New file.
5730         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
5731         test whether ceilf works according to ISO C 99 with IEC 60559.
5732         * m4/ceilf-ieee.m4: New file.
5733         * modules/ceilf-ieee-tests: New file.
5734         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
5735         * tests/test-ceilf1.c (main): Remove signbit tests.
5736         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
5737         * doc/posix-functions/ceilf.texi: Mention the new module.
5738
5739 2010-12-21  Bruno Haible  <bruno@clisp.org>
5740
5741         New module 'floorf-ieee'.
5742         * modules/floorf-ieee: New file.
5743         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
5744         test whether floorf works according to ISO C 99 with IEC 60559.
5745         * m4/floorf-ieee.m4: New file.
5746         * modules/floorf-ieee-tests: New file.
5747         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
5748         * tests/test-floorf1.c (main): Remove signbit tests.
5749         * modules/floorf-tests (Depends-on): Remove 'signbit'.
5750         * doc/posix-functions/floorf.texi: Mention the new module.
5751
5752 2010-12-21  Bruno Haible  <bruno@clisp.org>
5753
5754         Support for minus zero in autoconf macros.
5755         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
5756         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
5757         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
5758         * tests/minus-zero.h: Update comments.
5759
5760 2010-12-21  Bruno Haible  <bruno@clisp.org>
5761
5762         Tests for module 'ceil'.
5763         * modules/ceil-tests: New file.
5764         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
5765         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
5766
5767 2010-12-21  Bruno Haible  <bruno@clisp.org>
5768
5769         Tests for module 'floor'.
5770         * modules/floor-tests: New file.
5771         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
5772         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
5773
5774 2010-12-21  Bruno Haible  <bruno@clisp.org>
5775
5776         math: Fix indentation.
5777         * lib/math.in.h (floorf): Fix indentation.
5778
5779 2010-12-21  Bruno Haible  <bruno@clisp.org>
5780
5781         Fix cross-compilation guesses on Solaris.
5782         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
5783         not match "solaris2.10".
5784         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
5785         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
5786         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
5787
5788 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
5789
5790         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
5791         This fixes a problem observed with the latest coreutils snapshot
5792         that caused a test to fail on Solaris 8.  src/csplit.c's call
5793         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
5794         earlier, instead of returning the number of bytes that would have
5795         been generated; this causes csplit to incorrectly report memory
5796         exhaustion.
5797         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
5798         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
5799         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
5800         comments to match.
5801         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
5802         Fix typo in matching older versions of Solaris: "solaris2.10"
5803         is matched by the shell pattern "solaris2.[0-9]*".  This matters
5804         only for guessing while cross-compiling.
5805         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
5806
5807 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
5808
5809         ftoastr: fix comment again
5810         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
5811         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
5812         Also, simplify example a bit by using flags = 0.
5813
5814 2010-12-20  Bruno Haible  <bruno@clisp.org>
5815
5816         round*, trunc*: Update documentation regarding glibc.
5817         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
5818         * doc/posix-functions/round.texi: Likewise.
5819         * doc/posix-functions/roundl.texi: Likewise.
5820         * doc/posix-functions/truncf.texi: Likewise.
5821         * doc/posix-functions/trunc.texi: Likewise.
5822         * doc/posix-functions/truncl.texi: Likewise.
5823
5824 2010-12-20  Bruno Haible  <bruno@clisp.org>
5825
5826         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
5827         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
5828         * doc/posix-functions/round.texi: Likewise.
5829         * doc/posix-functions/roundl.texi: Likewise.
5830
5831 2010-12-20  Bruno Haible  <bruno@clisp.org>
5832
5833         ttyname_r: Add missing declaration on HP-UX 11.
5834         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
5835         HAVE_TTYNAME_R.
5836         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
5837         declared. Set HAVE_TTYNAME_R always.
5838         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5839         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
5840         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
5841         HAVE_TTYNAME_R.
5842         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
5843
5844 2010-12-20  Bruno Haible  <bruno@clisp.org>
5845
5846         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
5847         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
5848         * doc/posix-functions/getlogin_r.texi: Likewise.
5849         * tests/test-getlogin.c: Include <errno.h>.
5850         (main): Avoid test failure on HP-UX 11.11.
5851         * tests/test-getlogin_r.c (main): Likewise.
5852
5853 2010-12-20  Bruno Haible  <bruno@clisp.org>
5854
5855         getlogin_r: Add missing declaration on HP-UX 11.
5856         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
5857         declared also when it exists as a function.
5858         * doc/posix-functions/getlogin_r.texi: Document this workaround.
5859
5860 2010-12-20  Bruno Haible  <bruno@clisp.org>
5861
5862         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
5863         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
5864         through wcrtomb.
5865
5866 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
5867
5868         ftoastr: fix comment
5869         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
5870         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
5871
5872 2010-12-19  Bruno Haible  <bruno@clisp.org>
5873
5874         isnan: Ensure it is a macro.
5875         * lib/math.in.h (isnan): Define as a macro if not already a macro.
5876         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
5877         Solaris.
5878
5879 2010-12-19  Bruno Haible  <bruno@clisp.org>
5880
5881         ldexpl test: Fix link error on OSF/1 5.1.
5882         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
5883
5884 2010-12-19  Bruno Haible  <bruno@clisp.org>
5885
5886         wctype: Make it work in C++ mode on OSF/1 5.1.
5887         * lib/wctype.in.h (iswblank): Declare but not define here.
5888         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
5889         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
5890         * modules/wctype (Files): Add lib/iswblank.c.
5891
5892 2010-12-19  Bruno Haible  <bruno@clisp.org>
5893
5894         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
5895         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
5896         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
5897
5898 2010-12-19  Bruno Haible  <bruno@clisp.org>
5899
5900         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
5901         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
5902         _POSIX_PII_SOCKET.
5903         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
5904         * doc/posix-functions/recvfrom.texi: Likewise.
5905         * doc/posix-functions/send.texi: Likewise.
5906         * doc/posix-functions/sendto.texi: Likewise.
5907
5908 2010-12-19  Bruno Haible  <bruno@clisp.org>
5909
5910         tcgetsid: Add missing declaration on OSF/1 5.1.
5911         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
5912         HAVE_TCGETSID.
5913         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
5914         Don't set HAVE_TCGETSID.
5915         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
5916         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
5917         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
5918         HAVE_TCGETSID.
5919         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
5920
5921 2010-12-19  Bruno Haible  <bruno@clisp.org>
5922
5923         stdio: Fix problem with popen() declaration on OSF/1 5.1.
5924         * lib/stdio.in.h: During the include_next statement, let recursive
5925         includes of this file include only the system header file.
5926
5927 2010-12-19  Bruno Haible  <bruno@clisp.org>
5928
5929         iconv_open: Fix regression from 2010-12-04.
5930         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
5931         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
5932
5933 2010-12-19  Bruno Haible  <bruno@clisp.org>
5934
5935         stdbool test: Avoid a gcc warning.
5936         * tests/test-stdbool.c (main): Fail if e1 is false.
5937         Reported by Jim Meyering.
5938
5939 2010-12-19  Jim Meyering  <meyering@redhat.com>
5940
5941         setenv: restore to working order
5942         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
5943         mistakenly removed.
5944         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
5945         HAVE_SETENV.
5946         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
5947         HAVE_SETENV.
5948
5949 2010-12-19  Bruno Haible  <bruno@clisp.org>
5950
5951         Document some different function declarations on OSF/1 5.1.
5952         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
5953         * doc/posix-functions/inet_ntop.texi: Likewise.
5954         * doc/posix-functions/gethostname.texi: Likewise.
5955         * lib/unistd.in.h (gethostname): Update comment.
5956
5957 2010-12-19  Bruno Haible  <bruno@clisp.org>
5958
5959         doc: Mention vasprintf-posix module.
5960         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
5961         the 'vasprintf-posix' module.
5962         * doc/glibc-functions/vasprintf.texi: Likewise.
5963
5964 2010-12-19  Bruno Haible  <bruno@clisp.org>
5965
5966         unsetenv: Add missing declaration on OSF/1 5.1.
5967         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
5968         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
5969         Don't set HAVE_UNSETENV. In the test program, set _BSD.
5970         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
5971         not HAVE_UNSETENV.
5972         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
5973         HAVE_UNSETENV.
5974         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
5975
5976 2010-12-19  Bruno Haible  <bruno@clisp.org>
5977
5978         setenv: Add missing declaration on OSF/1 5.1.
5979         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
5980         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
5981         declared. Don't set HAVE_SETENV.
5982         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
5983         not HAVE_SETENV.
5984         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
5985         HAVE_SETENV.
5986         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
5987
5988 2010-12-19  Bruno Haible  <bruno@clisp.org>
5989
5990         nl_langinfo tests: Avoid gcc warning.
5991         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
5992
5993 2010-12-19  Bruno Haible  <bruno@clisp.org>
5994
5995         mknod: Avoid error in C++ mode on OSF/1 with GCC.
5996         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
5997         _GL_CXXALIAS_SYS.
5998
5999 2010-12-19  Bruno Haible  <bruno@clisp.org>
6000
6001         stdbool: Relax test.
6002         * tests/test-stdbool.c (e): Don't require that casts from a variable's
6003         address to 'bool' work in static initializer, for compilers other than
6004         GCC.
6005
6006 2010-12-19  Bruno Haible  <bruno@clisp.org>
6007
6008         ftello: Add missing declaration on OSF/1 5.1.
6009         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
6010         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
6011         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
6012         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
6013         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
6014
6015 2010-12-19  Bruno Haible  <bruno@clisp.org>
6016
6017         fseeko: Add missing declaration on OSF/1 5.1.
6018         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
6019         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
6020         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
6021         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
6022         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
6023
6024 2010-12-19  Bruno Haible  <bruno@clisp.org>
6025
6026         fchdir: Add missing declaration on OSF/1 5.1.
6027         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
6028         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
6029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
6030         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
6031         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
6032
6033 2010-12-19  Bruno Haible  <bruno@clisp.org>
6034
6035         relocatable-prog-wrapper: Separate from relocatable-prog.
6036         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
6037         uninstall-relocwrapper rule here.
6038         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
6039         Reported by Ian Beckwith <ianb@erislabs.net>.
6040
6041 2010-12-19  Bruno Haible  <bruno@clisp.org>
6042
6043         unistr/u8-mbsnlen: Add missing dependency.
6044         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
6045         Reported by Ian Beckwith <ianb@erislabs.net>.
6046
6047 2010-12-19  Bruno Haible  <bruno@clisp.org>
6048
6049         iconv: Make it possible again to use this module without 'iconv-h'.
6050         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
6051         if it is not defined.
6052         Reported by Ian Beckwith <ianb@erislabs.net>.
6053
6054 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6055
6056         acl: port to Solaris 8 when copying from tmpfs to ufs
6057         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
6058         error number.  Problem observed on Solaris 8 with latest
6059         coreutils, with "mv A B", where A is on a tmpfs file system and B
6060         is on a ufs file system.  This caused coreutils' mv/part-symlink
6061         test to fail.
6062
6063         tests: set fail=0 at start
6064         * tests/init.sh (setup_): Move fail=0 initialization here ...
6065         (mktempd_): ... from here, so that tests can rely on fail being
6066         set to 0 initially.  This fixes a problem in coreutils; see:
6067         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
6068
6069 2010-12-18  Bruno Haible  <bruno@clisp.org>
6070
6071         memmem-simple: Stylistic changes.
6072         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
6073         Fix preprocessor directive indentation.
6074
6075 2010-12-15  Pádraig Brady <P@draigBrady.com>
6076
6077         memmem, memmem-simple: reorganize and expand empty needle check
6078         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
6079         functional checks to memmem-simple so that one has a fully functional
6080         memmem by using just this module.
6081         Restrict the performance only check to the memmem module.
6082         Also expand the empty needle check to ensure the correct
6083         pointer is returned, not just a non NULL pointer.
6084         * doc/glibc-functions/memmem.texi: Rearrange the portability
6085         documentation to correlate with the rearranged checks.
6086         Clarify exactly how the memmem and memmem-simple modules
6087         relate to each other.
6088
6089 2010-12-15  Pádraig Brady <P@draigBrady.com>
6090             Bruno Haible  <bruno@clisp.org>
6091
6092         Improve cross-compilation guesses for uClibc.
6093         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
6094         that uClibc does not have the glibc bug.
6095         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
6096         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
6097
6098 2010-12-14  Eric Blake  <eblake@redhat.com>
6099
6100         configmake: provide fallbacks for oldest supported autotools
6101         * m4/configmake.m4: New file.
6102         * modules/configmake (Files): Ship it.
6103         (configure.ac): Use it to guarantee fallbacks.
6104
6105 2010-12-13  Pádraig Brady <P@draigBrady.com>
6106
6107         read-file: Improve handling of large files
6108         * lib/read-file.c (fread_file): Minimize realloc()s
6109         for regular files, and better manage sizes around SIZE_MAX.
6110
6111 2010-12-13  Eric Blake  <eblake@redhat.com>
6112
6113         cloexec, fcntl: relax license
6114         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
6115         consent from all contributors.
6116         * modules/fcntl (License): Likewise.
6117
6118 2010-12-10  Bruno Haible  <bruno@clisp.org>
6119
6120         Tests for module 'pipe-posix'.
6121         * modules/pipe-posix-tests: New file.
6122         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
6123
6124 2010-12-10  Bruno Haible  <bruno@clisp.org>
6125
6126         pipe-posix: Make it work in C++ mode.
6127         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
6128         (pipe): Use common idiom, not a macro definition.
6129         * lib/pipe.c: New file.
6130         * m4/pipe.m4: New file.
6131         * modules/pipe-posix (Description): Enhance.
6132         (Files): Add lib/pipe.c, m4/pipe.m4.
6133         (configure.ac): Invoke gl_FUNC_PIPE.
6134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
6135         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
6136         * tests/test-unistd-c++.cc: Check the signature of pipe.
6137
6138 2010-12-10  Bruno Haible  <bruno@clisp.org>
6139
6140         Rename module 'pipe' to 'spawn-pipe'.
6141         * modules/spawn-pipe: New file, renamed from modules/pipe.
6142         (Files, configure.ac, Makefile.am): Update.
6143         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
6144         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
6145         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
6146         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
6147         "spawn-pipe.h" instead of "pipe.h".
6148         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
6149         to gl_SPAWN_PIPE.
6150         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
6151         (Files, Makefile.am): Update.
6152         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
6153         Update.
6154         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
6155         Include "spawn-pipe.h" instead of "pipe.h".
6156         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
6157         * lib/javacomp.c: Likewise.
6158         * lib/javaversion.c: Likewise.
6159         * lib/pipe-filter-gi.c: Likewise.
6160         * lib/pipe-filter-ii.c: Likewise.
6161         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
6162         * modules/javacomp (Depends-on): Likewise.
6163         * modules/javaversion (Depends-on): Likewise.
6164         * modules/pipe-filter-gi (Depends-on): Likewise.
6165         * modules/pipe-filter-ii (Depends-on): Likewise.
6166         * MODULES.html.sh (Executing programs): Update.
6167         * NEWS: Mention the change.
6168
6169 2010-12-10  Eric Blake  <eblake@redhat.com>
6170
6171         pipe-posix: new module
6172         * modules/pipe-posix: New file.
6173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
6174         (gl_UNISTD_H): Check for declaration.
6175         * modules/unistd (Makefile.am): Substitute it.
6176         * lib/unistd.in.h (pipe): Provide it for mingw.
6177         * doc/posix-functions/pipe.texi (pipe): Update documentation.
6178         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
6179
6180 2010-12-07  Bruno Haible  <bruno@clisp.org>
6181
6182         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
6183         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
6184         u8_strcmp_gnu.
6185         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
6186
6187 2010-12-06  Bruno Haible  <bruno@clisp.org>
6188
6189         Update internal documentation.
6190         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
6191
6192 2010-12-04  Bruno Haible  <bruno@clisp.org>
6193
6194         Put more information about failed tests into the test return codes.
6195         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
6196         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
6197         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6198         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6199         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
6200         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6201         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6202         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
6203         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
6204         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6205         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
6206         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6207         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6208         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6209         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
6210         returns a bit mask.
6211         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
6212         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
6213         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
6214         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
6215         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6216         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
6217         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
6218         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
6219         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
6220         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
6221         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
6222         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
6223         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6224         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
6225         * m4/link.m4 (gl_FUNC_LINK): Likewise.
6226         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
6227         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
6228         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
6229         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6230         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
6231         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
6232         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
6233         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
6234         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
6235         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
6236         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
6237         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
6238         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
6239         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
6240         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
6241         gl_PRINTF_PRECISION): Likewise.
6242         * m4/regex.m4 (gl_REGEX): Likewise.
6243         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
6244         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6245         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
6246         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
6247         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6248         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6249         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
6250         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
6251         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
6252         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6253         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
6254         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
6255         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
6256         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6257         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6258         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6259         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
6260         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6261         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6262         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
6263         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
6264         enumerated value.
6265         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
6266
6267 2010-12-04  Bruno Haible  <bruno@clisp.org>
6268
6269         Update for Solaris 11 2010-11.
6270         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
6271         Express, released in November 2010.
6272
6273 2010-12-04  Bruno Haible  <bruno@clisp.org>
6274
6275         nproc: Relax license.
6276         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
6277         and Paul Eggert.
6278         Requested by Ludovic Courtès <ludo@gnu.org>.
6279
6280 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
6281
6282         utimecmp: fine-grained src to nearby coarse-grained dest
6283
6284         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
6285         and the source is on a file system with higher-resolution time
6286         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
6287         not work, and the time stamps are close together, the algorithm to
6288         determine the exact resolution from the read-back mtime was buggy:
6289         it had a "!=" where it should have had an "==".  This bug has been
6290         in the code ever since it was introduced to gnulib.
6291         Problem reported by Dan Jacobson in
6292         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
6293
6294 2010-11-30  Bruno Haible  <bruno@clisp.org>
6295
6296         strerror_r-posix: Fix autoconf test.
6297         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
6298
6299 2010-11-28  Bruno Haible  <bruno@clisp.org>
6300             Paul Eggert  <eggert@cs.ucla.edu>
6301
6302         Tests for module 'getdomainname'.
6303         * modules/getdomainname-tests: New file.
6304         * tests/test-getdomainname.c: New file, based on
6305         tests/test-gethostname.c.
6306
6307 2010-11-28  Bruno Haible  <bruno@clisp.org>
6308             Paul Eggert  <eggert@cs.ucla.edu>
6309
6310         getdomainname: Use the system function when possible.
6311         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
6312         (getdomainname): Replace if needed. Provide the declaration if it is
6313         missing. Don't use _GL_CXXALIAS_SYS_CAST.
6314         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
6315         (getdomainname): When the system has getdomainname, call the system
6316         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
6317         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
6318         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
6319         found in libnsl. Look for the declaration also in <netdb.h>. Replace
6320         the function if its second argument is of type 'int' or if it is found
6321         in libnsl.
6322         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
6323         <sys/systeminfo.h> and sysinfo().
6324         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
6325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6326         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
6327         HAVE_GETDOMAINNAME.
6328         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
6329         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
6330         * doc/glibc-functions/getdomainname.texi: Document the problems with
6331         the getdomainname declaration.
6332
6333 2010-11-28  Bruno Haible  <bruno@clisp.org>
6334
6335         sys_socket: Ensure ss_family field on AIX.
6336         * lib/sys_socket.in.h (ss_family): New macro definition.
6337         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
6338         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
6339         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
6340         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
6341         * modules/sys_socket (Makefile.am): Substitute
6342         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
6343         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
6344
6345 2010-11-27  Bruno Haible  <bruno@clisp.org>
6346
6347         readline: Improve configure output.
6348         * m4/readline.m4 (gl_FUNC_READLINE): Make the
6349         "checking for readline..." result understandable.
6350
6351 2010-11-27  Bruno Haible  <bruno@clisp.org>
6352
6353         *printf-posix: Detect a bug on Solaris 10/x86.
6354         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
6355         for floating-point output.
6356         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
6357         directive.
6358         * tests/test-snprintf-posix.h (test_function): Likewise.
6359         * tests/test-sprintf-posix.h (test_function): Likewise.
6360         * tests/test-vasprintf-posix.c (test_function): Likewise.
6361         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
6362         * doc/posix-functions/printf.texi: Likewise.
6363         * doc/posix-functions/snprintf.texi: Likewise.
6364         * doc/posix-functions/sprintf.texi: Likewise.
6365         * doc/posix-functions/vfprintf.texi: Likewise.
6366         * doc/posix-functions/vprintf.texi: Likewise.
6367         * doc/posix-functions/vsnprintf.texi: Likewise.
6368         * doc/posix-functions/vsprintf.texi: Likewise.
6369         * doc/glibc-functions/obstack_printf.texi: Likewise.
6370         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
6371
6372 2010-11-27  Bruno Haible  <bruno@clisp.org>
6373
6374         Fix link error when module libunistring-optional is in use.
6375         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
6376         * modules/striconveha-tests (Makefile.am): Likewise.
6377
6378 2010-11-27  Bruno Haible  <bruno@clisp.org>
6379
6380         regex: Mention link dependencies.
6381         * modules/regex (Link): New section.
6382         * modules/rpmatch (Link): Likewise.
6383         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
6384
6385 2010-11-27  Bruno Haible  <bruno@clisp.org>
6386
6387         ftoastr: Fix compilation error on Solaris.
6388         * lib/ftoastr.c: Include <config.h>.
6389
6390 2010-11-27  Bruno Haible  <bruno@clisp.org>
6391
6392         getloadavg: Update documentation.
6393         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
6394
6395 2010-11-27  Bruno Haible  <bruno@clisp.org>
6396
6397         sys_socket: Fix test whether the functions are declared.
6398         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
6399         not <sys/select.h>.
6400
6401 2010-11-27  Bruno Haible  <bruno@clisp.org>
6402
6403         getpass: Make sure to get system declaration on some platforms.
6404         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
6405         gl_USE_SYSTEM_EXTENSIONS.
6406         * modules/getpass (Depends-on): Add extensions.
6407
6408 2010-11-26  Bruno Haible  <bruno@clisp.org>
6409
6410         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
6411         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
6412         'iconv' module is present.
6413         (ICONV_CONST): New macro.
6414         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
6415         ICONV_CONST.
6416         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
6417         set ICONV_CONST.
6418         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
6419         here.
6420         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
6421         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
6422         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
6423         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
6424         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
6425         present.
6426
6427 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
6428
6429         ftoastr: comment fix
6430         * lib/ftoastr.c: "little" -> "little or no" in comment
6431
6432 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
6433
6434         stdint: port to GCC 4.3 + OSX + Octave
6435         On this platform, stdint.h is buggy and defines int64_t to long
6436         long int.  The replacement defined it to long int, causing
6437         problems with C++ style name mangling.  Instead, trust the system
6438         definition if INT64_MAX is defined, and likewise for the unsigned
6439         variant.   Problem reported by Jarno Rajahalme in
6440         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
6441         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
6442         and don't mess with int64_t and INT64_MAX in this case.
6443         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
6444
6445 2010-11-24  Bruno Haible  <bruno@clisp.org>
6446
6447         doc: Corrections regarding MacOS X 10.4 and 10.5.
6448         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
6449         MacOS X.
6450         Reported by Simon Josefsson.
6451
6452 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
6453
6454         Uninstall ".bin" files installed by relocwrapper.
6455         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
6456         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
6457         unless it is already there.
6458
6459 2010-11-21  Bruno Haible  <bruno@clisp.org>
6460
6461         Update for NetBSD 5.0.
6462         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
6463         NetBSD; the test fails on NetBSD 5.0.
6464         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
6465         about NetBSD.
6466
6467 2010-11-21  Bruno Haible  <bruno@clisp.org>
6468
6469         Update for HP-UX 11.23 and HP-UX 11.31.
6470         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
6471         HP-UX.
6472
6473 2010-11-21  Bruno Haible  <bruno@clisp.org>
6474
6475         Update for MacOS X 10.5.
6476         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
6477         MacOS X; the test fails on MacOS X 10.5.8.
6478         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
6479         about MacOS X.
6480
6481 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
6482
6483         bootstrap: add bootstrap_sync option.
6484         See discussion at
6485         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
6486         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
6487         * build-aux/bootstrap: Accept --bootstrap-sync to update
6488         bootstrap if it is not identical to the local gnulib's
6489         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
6490         enable this by default.  Accept --no-bootstrap-sync to disable
6491         it.
6492
6493 2010-11-20  Bruno Haible  <bruno@clisp.org>
6494
6495         Ensure that <features.h> is included before __GLIBC__ is tested.
6496         * lib/printf-parse.h: Include <features.h>.
6497         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
6498         Reported by Mike Frysinger <vapier@gentoo.org>.
6499
6500         Ensure that <features.h> is included before __GLIBC__ is tested.
6501         * lib/wchar.in.h: Include <features.h>.
6502         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
6503         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
6504         Reported by Mike Frysinger <vapier@gentoo.org>.
6505
6506         Ensure that <features.h> is included before __GLIBC__ is tested.
6507         * lib/arpa_inet.in.h: Include <features.h>.
6508         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
6509         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
6510         Reported by Mike Frysinger <vapier@gentoo.org>.
6511
6512         Ensure that <features.h> is included before __GLIBC__ is tested.
6513         * build-aux/link-warning.h: Include <features.h>.
6514         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
6515         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
6516         Reported by Mike Frysinger <vapier@gentoo.org>.
6517
6518         Ensure that <features.h> is included before __GLIBC__ is tested.
6519         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
6520         Reported by Mike Frysinger <vapier@gentoo.org>.
6521
6522 2010-11-20  Bruno Haible  <bruno@clisp.org>
6523
6524         memmem: Fix autoconf test.
6525         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
6526
6527 2010-11-20  Bruno Haible  <bruno@clisp.org>
6528
6529         Port to uClibc.
6530         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
6531         * lib/fcntl.in.h: Likewise.
6532         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
6533         * lib/mbrtowc.c (mbrtowc): Likewise.
6534         * lib/relocatable.c (find_shared_library_fullname): Likewise.
6535         * lib/strerror_r.c: Likewise.
6536         * lib/unistr/u8-strnlen.c: Likewise.
6537         * lib/vasnprintf.c (decimal_point_char): Likewise.
6538         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
6539         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
6540         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
6541         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
6542         * tests/test-sigaction.c (handler, main): Likewise.
6543         * lib/freading.h: Treat uClibc like a non-glibc platform.
6544         * lib/freading.c: Likewise.
6545         * lib/gettext.h: Likewise.
6546         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
6547         Likewise.
6548         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
6549         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
6550         * lib/propername.c (proper_name_utf8): Likewise.
6551         * lib/spawn.in.h: Likewise.
6552         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
6553         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
6554         mem_cd_iconveh_internal): Likewise.
6555         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
6556         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
6557         strstr, strcasestr): Likewise.
6558         * lib/unicodeio.c (unicode_to_mb): Likewise.
6559         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
6560         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
6561         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
6562         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
6563         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
6564         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
6565         * lib/unistr/u8-stpncpy.c: Likewise.
6566         * lib/vasnprintf.c (VASNPRINTF): Likewise.
6567         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
6568         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6569         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6570         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
6571         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
6572         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
6573         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
6574         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
6575         Likewise.
6576         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
6577         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6578         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
6579         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6580         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6581         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6582         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6583         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
6584         * tests/test-getopt.h (OPTIND_MIN): Likewise.
6585         * tests/test-striconveha.c (main): Likewise.
6586         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6587         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
6588         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
6589         * doc/posix-functions/getline.texi: Likewise.
6590         Reported by Mike Frysinger <vapier@gentoo.org>.
6591
6592 2010-11-20  Bruno Haible  <bruno@clisp.org>
6593
6594         nproc: Fix condition.
6595         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
6596         HAVE_PTHREAD_AFFINITY_NP.
6597
6598 2010-11-20  Bruno Haible  <bruno@clisp.org>
6599
6600         Fix a comment.
6601         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
6602
6603 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
6604
6605         ftoastr: don't assume snprintf
6606         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
6607         Implement a subset of snprintf here, by using sprintf safely.
6608         * modules/ftoastr (Depends-on): Remove snprintf.
6609
6610 2010-11-19  Jim Meyering  <meyering@redhat.com>
6611
6612         test-rename.h: fix compilation failure
6613         * tests/test-rename.h (test_rename): Add omitted "}".
6614
6615 2010-11-17  Jim Meyering  <meyering@redhat.com>
6616
6617         maint.mk: add a URL discussing the no-@acronym policy
6618         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
6619
6620 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
6621
6622         ftoastr: depend on snprintf, improve comments
6623         * lib/ftoastr.c: Also mention Loitsch's draft.
6624         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
6625         needed in the current implementation, but it might simplify
6626         speeding up the code later.
6627         * modules/ftoastr: Depend on snprintf; this improves portability.
6628         Suggested by Bruno Haible in the same email.
6629
6630         ftoastr: port to hosts lacking strtof and strtold
6631         Problem reported by Bruno Haible in
6632         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
6633         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
6634         environment and strtold (and presumably strtof) are not available.
6635         * modules/ftoastr (Files): Add m4/c-strtod.m4.
6636         (configure.ac): Require gl_C99_STRTOLD.
6637
6638 2010-11-18  Bruno Haible  <bruno@clisp.org>
6639
6640         c-strtold: Avoid link error on AIX 7.
6641         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
6642         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
6643         (gl_C_STRTOLD): Test whether strtold_l exists.
6644         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6645
6646 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6647
6648         intprops: new macro INT_BITS_STRLEN_BOUND
6649         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
6650         ftoastr.h.  This exposes an internal of intprops.h that was formerly
6651         not exposed.  Also, it uses a slightly tighter bound than before;
6652         though this makes no practical difference, we might as well be as
6653         tight as we easily can.
6654
6655         ftoastr: new module, for lossless conversion of floats to short strings
6656         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
6657         * modules/ftoastr: New files.
6658
6659 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
6660
6661         bootstrap: port to Solaris sed
6662         * build-aux/bootstrap (get_version): Port to Solaris sed.
6663         See Ralf Wildenhues's note in
6664         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
6665
6666 2010-11-14  Jim Meyering  <meyering@redhat.com>
6667
6668         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
6669         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
6670         and move definition closer to sole use.
6671
6672 2010-11-13  Jim Meyering  <meyering@redhat.com>
6673
6674         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
6675         Now we require at least autoconf-2.59, which means the work-around
6676         is no longer needed.
6677         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
6678         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6679         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
6680         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
6681         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
6682
6683 2010-11-13  Bruno Haible  <bruno@clisp.org>
6684
6685         rename, renameat: Avoid test failures at NFS mounted locations.
6686         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
6687         functions.
6688         (test_rename): Use assert_nonexistent.
6689         * tests/test-rename.c: Include <dirent.h>.
6690         * tests/test-renameat.c: Likewise.
6691         Reported by Gary V. Vaughan <gary@gnu.org>.
6692
6693         rename, renameat: Document Linux bug with NFS
6694         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
6695         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
6696         * doc/posix-functions/renameat.texi: Likewise.
6697         Suggested by Eric Blake.
6698
6699 2010-11-13  Bruno Haible  <bruno@clisp.org>
6700
6701         rename test: Add comments.
6702         * tests/test-rename.h (test_rename): Add structure and comments.
6703
6704 2010-11-13  Eric Blake  <eblake@redhat.com>
6705
6706         maintainer-makefile: cover a few more files
6707         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
6708         scripts generated within C files, for libvirt.
6709
6710 2010-11-13  Bruno Haible  <bruno@clisp.org>
6711
6712         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
6713         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
6714         character, return the number of bytes that belong together, not always
6715         1.
6716         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
6717         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
6718         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
6719         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
6720         number of bytes of an invalid character.
6721         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
6722         (main): Invoke it.
6723         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
6724         results.
6725         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
6726         malformed byte sequences.
6727         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
6728         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
6729         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
6730         Reported by Ben Pfaff and Paolo Bonzini.
6731
6732 2010-11-13  Bruno Haible  <bruno@clisp.org>
6733
6734         openat: Work around glibc bug with fchownat() and empty file names.
6735         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
6736         (gl_FUNC_FCHOWNAT): Invoke it.
6737         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
6738         * doc/posix-functions/fchownat.texi: Document the glibc bug.
6739         Reported by Gary V. Vaughan <gary@gnu.org>.
6740
6741 2010-11-13  Bruno Haible  <bruno@clisp.org>
6742
6743         openat: Ensure autoconf macro ordering.
6744         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
6745         gl_USE_SYSTEM_EXTENSIONS.
6746         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
6747
6748 2010-11-13  Bruno Haible  <bruno@clisp.org>
6749
6750         Update comments.
6751         * lib/unistr/u8-check.c: Update file name in comments.
6752         * lib/unistr/u8-mblen.c: Likewise.
6753         * lib/unistr/u8-prev.c: Likewise.
6754         * lib/unistr/u8-strmblen.c: Likewise.
6755         * lib/unistr/u8-strmbtouc.c: Likewise.
6756
6757 2010-11-13  Jim Meyering  <meyering@redhat.com>
6758
6759         tests: avoid test failure on Solaris 10 due to lack of PATH export
6760         * tests/test-update-copyright.sh: Don't forget to export PATH.
6761
6762         init.sh: ensure that IFS is defined, just in case...
6763         * tests/init.sh (setup_): Ensure that IFS is defined,
6764         so that saving and restoring it works as expected.  This
6765         appears to be useful at least for an old version of dash
6766         from a long time ago (RH 6).  See here for details:
6767         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
6768
6769         maint.mk: tighten "test a == b" check
6770         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
6771         test to files that contain something like #!/bin/sh.
6772         Without this, coreutils would get two false positives in
6773         the comments of C source files.
6774
6775 2010-11-12  Eric Blake  <eblake@redhat.com>
6776
6777         bootstrap: fix typo in previous attempt
6778         * build-aux/bootstrap (buildreq): Correct the grouping.
6779         Reported by Paul Eggert.
6780
6781         maintainer-makefile: prohibit test x == x
6782         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
6783         Based on a report by Matthias Bolte.
6784
6785         bootstrap: allow FreeBSD gzip
6786         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
6787         which has no '.' and goes to stderr.
6788         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
6789         Reported by Matthias Bolte.
6790
6791         maintainer-makefile: check for i18n setup
6792         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
6793         will likely work.
6794
6795 2010-11-12  Bruno Haible  <bruno@clisp.org>
6796
6797         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
6798         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
6799         * lib/nanosleep.c (nanosleep): Likewise.
6800
6801 2010-11-11  Bruno Haible  <bruno@clisp.org>
6802
6803         fcntl-h: Fix for use of C++ on glibc systems.
6804         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
6805         also on glibc systems in C++ mode.
6806         Reported by Gary V. Vaughan <gary@gnu.org>.
6807
6808 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
6809
6810         mknod: avoid false failure with dash
6811         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
6812
6813 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
6814
6815         unlink: Fix "is it should" typo in diagnostic.
6816         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
6817         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
6818
6819 2010-11-11  Bruno Haible  <bruno@clisp.org>
6820
6821         Tests for module 'strerror_r-posix'.
6822         * modules/strerror_r-posix-tests: New file.
6823         * tests/test-strerror_r.c: New file.
6824         * tests/test-string-c++.cc: Check the signature of strerror_r.
6825
6826         New module 'strerror_r-posix'.
6827         * lib/string.in.h (strerror_r): New declaration.
6828         * lib/strerror_r.c: New file.
6829         * m4/strerror_r.m4: New file.
6830         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
6831         of strerror_r.
6832         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
6833         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
6834         * modules/strerror_r-posix: New file.
6835         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
6836         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
6837         * doc/posix-functions/strerror_r.texi: Mention the new module and the
6838         portability problems.
6839
6840 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
6841
6842         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
6843         line is also considered for output. Quoted function name in shell
6844         command, so temporary files for functions like MyClass::operator()
6845         are removed correctly without errors.
6846
6847 2010-11-09  Bruno Haible  <bruno@clisp.org>
6848
6849         * doc/posix-functions/strerror.texi: List more failing platforms.
6850
6851         * doc/posix-functions/strerror.texi: Add a comment.
6852
6853 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
6854
6855         fdopendir: fix bug on MacOS X when low on file descriptors
6856
6857         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
6858         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
6859         All callers changed.
6860         (fdopendir): Invoke save_cwd at the top level, not after using
6861         multiple dup() calls to use up file descriptors.  Then retry
6862         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
6863         less than the maximum number of open file descriptors, because
6864         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
6865         on Mac OS X 10.6.4 for tar 1.24
6866         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
6867         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
6868         and for tar 1.25
6869         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
6870
6871 2010-11-07  Bruno Haible  <bruno@clisp.org>
6872
6873         vasnprintf: Support I flag on glibc systems.
6874         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
6875         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
6876         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
6877         snprintf function.
6878         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
6879         glibc systems.
6880         * tests/test-vasnprintf-posix3.c: New file.
6881         * modules/vasnprintf-posix-tests (Files): Add it.
6882         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
6883
6884 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
6885
6886         [html] Fix copy/paste bug: Use unique name for compiler warnings.
6887         * MODULES.html.sh: For compiler warnings, use name
6888         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
6889
6890 2010-11-05  Eric Blake  <eblake@redhat.com>
6891
6892         ceil, floor: avoid spurious failure with icc
6893         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
6894         [denormals-as-zero] when optimizing without -mieee-fp option.
6895         * tests/test-floorf2.c (floorf_reference): Likewise.
6896         * tests/test-ceilf1.c (dummy): New function.
6897         (main): Use it to outsmart icc's optimization.
6898         * tests/test-floorf1.c (dummy, main): Likewise.
6899
6900         tests: require working signbit
6901         * modules/ceilf-tests (Depends-on): Add signbit.
6902         * modules/ceill-tests (Depends-on): Likewise.
6903         * modules/floorf-tests (Depends-on): Likewise.
6904         * modules/floorl-tests (Depends-on): Likewise.
6905         * modules/round-tests (Depends-on): Likewise.
6906         * modules/roundf-tests (Depends-on): Likewise.
6907         * modules/roundl-tests (Depends-on): Likewise.
6908         * modules/trunc-tests (Depends-on): Likewise.
6909         * modules/truncf-tests (Depends-on): Likewise.
6910         * modules/truncl-tests (Depends-on): Likewise.
6911
6912         strtod: work around icc bug
6913         * lib/strtod.c (minus_zero): Define to working value.
6914         (strtod): Use it to avoid icc bug.
6915
6916         copysign: enhance tests
6917         * modules/copysign-tests (Files): Add minus-zero.h.
6918         * tests/test-copysign.c (main): Also test zeros.
6919
6920 2010-11-04  Eric Blake  <eblake@redhat.com>
6921
6922         ceil, floor, round, trunc: enhance tests of -0
6923         * tests/test-ceilf1.c (main): Ensure correct sign of result.
6924         * tests/test-ceill.c (main): Likewise.
6925         * tests/test-floorf1.c (main): Likewise.
6926         * tests/test-floorl.c (main): Likewise.
6927         * tests/test-round1.c (main): Likewise.
6928         * tests/test-roundf1.c (main): Likewise.
6929         * tests/test-roundl.c (main): Likewise.
6930         * tests/test-trunc1.c (main): Likewise.
6931         * tests/test-truncf1.c (main): Likewise.
6932         * tests/test-truncl.c (main): Likewise.
6933
6934 2010-11-04  Eric Blake  <eblake@redhat.com>
6935
6936         frexp, tests: work around ICC bug with -zero
6937         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
6938         works with more compilers.
6939         * tests/minus-zero.h: New file.
6940         * modules/ceilf-tests (Files): Include it.
6941         * modules/ceill-tests (Files): Likewise.
6942         * modules/floorf-tests (Files): Likewise.
6943         * modules/floorl-tests (Files): Likewise.
6944         * modules/frexp-nolibm-tests (Files): Likewise.
6945         * modules/frexp-tests (Files): Likewise.
6946         * modules/frexpl-nolibm-tests (Files): Likewise.
6947         * modules/frexpl-tests (Files): Likewise.
6948         * modules/isnan-tests (Files): Likewise.
6949         * modules/isnand-nolibm-tests (Files): Likewise.
6950         * modules/isnand-tests (Files): Likewise.
6951         * modules/isnanf-nolibm-tests (Files): Likewise.
6952         * modules/isnanf-tests (Files): Likewise.
6953         * modules/isnanl-nolibm-tests (Files): Likewise.
6954         * modules/isnanl-tests (Files): Likewise.
6955         * modules/round-tests (Files): Likewise.
6956         * modules/roundf-tests (Files): Likewise.
6957         * modules/roundl-tests (Files): Likewise.
6958         * modules/ldexpl-tests (Files): Likewise.
6959         * modules/signbit-tests (Files): Likewise.
6960         * modules/snprintf-posix-tests (Files): Likewise.
6961         * modules/sprintf-posix-tests (Files): Likewise.
6962         * modules/strtod-tests (Files): Likewise.
6963         * modules/trunc-tests (Files): Likewise.
6964         * modules/truncf-tests (Files): Likewise.
6965         * modules/truncl-tests (Files): Likewise.
6966         * modules/vsnprintf-posix-tests (Files): Likewise.
6967         * modules/vsprintf-posix-tests (Files): Likewise.
6968         * modules/vasnprintf-posix-tests (Files): Likewise.
6969         * modules/vasprintf-posix-tests (Files): Likewise.
6970         * tests/test-ceilf1.c (main): Use it.
6971         * tests/test-ceill.c (main): Likewise.
6972         * tests/test-floorf1.c (main): Likewise.
6973         * tests/test-floorl.c (main): Likewise.
6974         * tests/test-frexp.c (main): Likewise.
6975         * tests/test-frexpl.c (main): Likewise.
6976         * tests/test-isnan.c (main): Likewise.
6977         * tests/test-isnand.h (main): Likewise.
6978         * tests/test-isnanf.h (main): Likewise.
6979         * tests/test-isnanl.h (main): Likewise.
6980         * tests/test-ldexpl.c (main): Likewise.
6981         * tests/test-round.c (main): Likewise.
6982         * tests/test-roundf.c (main): Likewise.
6983         * tests/test-roundl.c (main): Likewise.
6984         * tests/test-signbit.c (test_signbitf, test_signbitd)
6985         (test_signbitl): Likewise.
6986         * tests/test-snprintf-posix.h (test_function): Likewise.
6987         * tests/test-sprintf-posix.h (test_function): Likewise.
6988         * tests/test-strtod.c (main): Likewise.
6989         * tests/test-trunc1.c (main): Likewise.
6990         * tests/test-truncf1.c (main): Likewise.
6991         * tests/test-truncl.c (main): Likewise.
6992
6993         isnanl: work around icc bug
6994         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
6995
6996 2010-11-03  Eric Blake  <eblake@redhat.com>
6997
6998         tests: fix compiler warnings
6999         * tests/test-getopt.h (test_getopt): Fix condition.
7000         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7001         * tests/test-pipe2.c (main): Likewise.
7002         * tests/test-quotearg-simple.c (main): Avoid icc warning.
7003
7004         utimens: fix broken m4 test
7005         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
7006
7007 2010-10-28  Bruno Haible  <bruno@clisp.org>
7008
7009         posix_spawn*, getdtablesize: Relax license.
7010         * modules/posix_spawn (License): Change to LGPLv2+.
7011         * modules/posix_spawnp (License): Likewise.
7012         * modules/posix_spawn-internal (License): Likewise.
7013         * modules/posix_spawnattr_init (License): Likewise.
7014         * modules/posix_spawnattr_getflags (License): Likewise.
7015         * modules/posix_spawnattr_setflags (License): Likewise.
7016         * modules/posix_spawnattr_getpgroup (License): Likewise.
7017         * modules/posix_spawnattr_setpgroup (License): Likewise.
7018         * modules/posix_spawnattr_getschedparam (License): Likewise.
7019         * modules/posix_spawnattr_setschedparam (License): Likewise.
7020         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
7021         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
7022         * modules/posix_spawnattr_getsigdefault (License): Likewise.
7023         * modules/posix_spawnattr_setsigdefault (License): Likewise.
7024         * modules/posix_spawnattr_getsigmask (License): Likewise.
7025         * modules/posix_spawnattr_setsigmask (License): Likewise.
7026         * modules/posix_spawnattr_destroy (License): Likewise.
7027         * modules/posix_spawn_file_actions_init (License): Likewise.
7028         * modules/posix_spawn_file_actions_addclose (License): Likewise.
7029         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
7030         * modules/posix_spawn_file_actions_addopen (License): Likewise.
7031         * modules/posix_spawn_file_actions_destroy (License): Likewise.
7032         * modules/getdtablesize (License): Likewise.
7033         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
7034
7035 2010-10-26  Bruno Haible  <bruno@clisp.org>
7036
7037         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
7038         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
7039         Cygwin and mingw.
7040         Suggested by Eric Blake.
7041
7042 2010-10-26  Bruno Haible  <bruno@clisp.org>
7043
7044         stdio: Work around compilation error due to renameat() on Solaris 10.
7045         * lib/stdio.in.h: Include <unistd.h> on Solaris.
7046         * lib/renameat.c: Don't include <unistd.h> here.
7047         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
7048         Reported by Paul Eggert and Eric Blake.
7049
7050 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
7051
7052         renameat: port to Solaris 10, which declares renameat in unistd.h
7053
7054         * lib/renameat.c: Include unistd.h before stdio.h, because
7055         Solaris 10 declares renameat in unistd.h.  Problem encountered
7056         when building GNU tar 1.24 on Solaris 10.
7057
7058 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7059
7060         fdopendir: fix C89 compilation
7061         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
7062         compilers.
7063
7064 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
7065
7066         inttostr: simplify by removing unnecessary redundancy
7067         * lib/anytostr.c: Don't include verify.h.
7068         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
7069         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
7070         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
7071         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
7072         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
7073         Likewise.
7074         * modules/inttostr (Depends-on): Remove 'verify'.
7075
7076 2010-10-23  Bruno Haible  <bruno@clisp.org>
7077
7078         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
7079         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
7080         Reported by Eric Blake.
7081
7082 2010-10-23  Bruno Haible  <bruno@clisp.org>
7083
7084         Tests: Fix LOCALE_JA on MirBSD 10.
7085         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
7086         to an UTF-8 locale.
7087         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
7088         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7089         Reported by Eric Blake.
7090
7091 2010-10-21  Bruno Haible  <bruno@clisp.org>
7092
7093         nl_langinfo test: Avoid test failure on NetBSD 5.
7094         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
7095         Reported by Eric Blake.
7096
7097 2010-10-21  Eric Blake  <eblake@redhat.com>
7098
7099         c-stack: work around libsigsegv 2.8 bug
7100         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
7101         overflow on at least PowerPC64.
7102
7103 2010-10-17  Bruno Haible  <bruno@clisp.org>
7104
7105         userspec: Drop redundant file.
7106         * modules/userspec (Files): Remove lib/inttostr.h.
7107
7108 2010-10-17  Bruno Haible  <bruno@clisp.org>
7109
7110         nl_langinfo tests: Silence some warnings.
7111         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
7112         Reported by Jim Meyering.
7113
7114 2010-10-17  Bruno Haible  <bruno@clisp.org>
7115
7116         Make use of GCC's attribute __alloc_size__.
7117         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
7118         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
7119         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
7120         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
7121         __alloc_size__.
7122         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
7123         Suggested by Jim Meyering.
7124
7125 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
7126
7127         bootstrap: anchor .gitignore entries.
7128         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
7129         with...
7130         (insert_vc_ignore): ... this new function, which prepends `/' to
7131         all .gitignore entries before passing them to
7132         insert_sorted_if_absent.
7133
7134 2010-10-16  Bruno Haible  <bruno@clisp.org>
7135
7136         nextafter: Fix configure check.
7137         * modules/nextafter (configure.ac): Correct expected prototype.
7138
7139 2010-10-16  Bruno Haible  <bruno@clisp.org>
7140
7141         termios: Update documentation.
7142         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
7143
7144 2010-10-16  Bruno Haible  <bruno@clisp.org>
7145
7146         tests: Make them compile with TinyCC.
7147         * tests/test-strstr.c (main): Remove parentheses around array
7148         initializer.
7149
7150 2010-10-15  Eric Blake  <eblake@redhat.com>
7151
7152         ignore-value: make header idempotent
7153         * lib/ignore-value.h: Add double-inclusion guards.
7154         Reported by Stefan Berger.
7155
7156 2010-10-15  Jim Meyering  <meyering@redhat.com>
7157
7158         GNUmakefile: handle "stable" target, not "major"
7159         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
7160         lists in maint.mk and announce-gen.  Without this, "make stable"
7161         would fail to ensure that $(VERSION) is up to date.
7162
7163 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
7164
7165         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
7166         & co.
7167
7168 2010-10-14  Bruno Haible  <bruno@clisp.org>
7169
7170         vasnprintf: Don't set errno to 0.
7171         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
7172         block that sets it to 0.
7173         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
7174
7175 2010-10-14  Bruno Haible  <bruno@clisp.org>
7176
7177         socketlib: Fix.
7178         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
7179         gl_PREREQ_SYS_H_WINSOCK2.
7180         Reported by Ian Beckwith <ianb@erislabs.net>.
7181
7182 2010-10-13  Jim Meyering  <meyering@redhat.com>
7183
7184         test-select-stdin.c: avoid warn_unused_result warnings
7185         * tests/test-select-stdin.c: Include "macros.h".
7186         ASSERT that read and fflush succeed.
7187
7188 2010-10-13  Jim Meyering  <meyering@redhat.com>
7189
7190         git-version-gen: do require git-VC'd files in cwd
7191         * build-aux/git-version-gen: Reject a git version string
7192         if there are no commits associated with the current directory.
7193         This avoids an unlikely false-positive (unrelated dir whose parent
7194         repository also contains a tag matching v*), as pointed out
7195         by Giuseppe Scrivano in
7196         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
7197
7198 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
7199
7200         argv-iter: omit nonconforming declaration
7201         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
7202         enum arg_iter_err declaration, which doesn't conform to C99.
7203         Solaris 10 cc warns about this.
7204
7205 2010-10-13  Eric Blake  <eblake@redhat.com>
7206
7207         termios: fix compilation on mingw
7208         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
7209         (gl_TERMIOS_H): Adjust it on mingw.
7210         * modules/termios (Makefile.am): Substitute new key.
7211         * lib/termios.in.h (includes): Make include_next conditional.
7212         * doc/posix-headers/termios.texi (termios.h): Update
7213         documentation.
7214         Reported by Daniel P. Berrange.
7215
7216 2010-10-13  Jim Meyering  <meyering@redhat.com>
7217
7218         git-version-gen: don't require that .git/ be in the current dir
7219         * build-aux/git-version-gen: Adjust this script so that it works
7220         when run from any working directory beneath the top-level .git/-
7221         containing directory.  Inspired by a patch from Giuseppe Scrivano,
7222         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
7223
7224         test-select: avoid warn_unused_result warnings
7225         * tests/test-select.c: Include "macros.h".
7226         ASSERT that each call to read, write, and pipe succeeds.
7227         While not technically required, also check each "close".
7228         * modules/select-tests (Files): Add tests/macros.h.
7229
7230         test-symlinkat: remove declaration of unused local
7231         * tests/test-symlinkat.c (main): Remove unused local, "buf".
7232
7233         test-inttostr: avoid shadowing warnings
7234         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
7235         and use malloc rather than the stack for the same reason as
7236         mentioned in the comment justifying the other allocation.
7237
7238 2010-10-11  Bruno Haible  <bruno@clisp.org>
7239
7240         stdlib: Allow multiple gnulib generated replacements to coexist.
7241         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
7242         Reported by Sam Steingold <sds@gnu.org>.
7243
7244 2010-10-11  Jim Meyering  <meyering@redhat.com>
7245
7246         fix a documentation typo
7247         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
7248
7249 2010-10-11  Eric Blake  <eblake@redhat.com>
7250
7251         futimens: work around Solaris 11 bug
7252         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
7253         * tests/test-futimens.h (test_futimens): Enhance, rather than
7254         weaken test.
7255         * doc/posix-functions/futimens.texi (futimens): Document the bug.
7256
7257 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
7258
7259         Indentation.
7260         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
7261         higher-level operators more to the left.
7262
7263 2010-10-11  Jim Meyering  <meyering@redhat.com>
7264
7265         test-futimens: avoid unwarranted test failure on Solaris 5.11
7266         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
7267         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
7268         because it tries to dereference the NULL name argument.
7269
7270 2010-10-11  Bruno Haible  <bruno@clisp.org>
7271
7272         Indentation.
7273         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
7274         indentation.
7275
7276 2010-10-11  Jim Meyering  <meyering@redhat.com>
7277
7278         spawn.in.h: make indentation consistent with parentheses
7279         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
7280         Make indentation consistent with parentheses.
7281
7282 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
7283
7284         Fix mismatched parens in previous commit
7285         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
7286         parens.
7287
7288 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
7289
7290         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
7291
7292         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
7293         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
7294         * lib/malloca.c: Include "verify.h".
7295         (verify1): Remove, replacing with a verify call.
7296         * lib/relocwrapper.c (verify1): Likewise.
7297         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
7298         Likewise.
7299         * modules/malloca (Depends-on): Add 'verify'.
7300         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
7301         * modules/vasnprintf (Depends-on): Add 'verify'.
7302         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7303         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7304         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7305         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7306         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7307         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7308         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7309
7310         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
7311
7312         Formerly the style was sometimes 2*X - 1, because the C standard
7313         was wrongly thought to disallow ?: in integral constant expressions.
7314         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
7315         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
7316         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
7317         * lib/stdint.in.h (_verify_intmax_size): Likewise.
7318         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
7319         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
7320         verify that time_t cannot be floating.
7321
7322 2010-10-08  Eric Blake  <eblake@redhat.com>
7323
7324         time: enforce recent POSIX ruling that time_t is integral
7325         * lib/time.in.h (__time_t_must_be_integral): Detect any
7326         problematic systems, allowing the rest of gnulib to assume POSIX.
7327
7328 2010-10-08  Jim Meyering  <meyering@redhat.com>
7329
7330         fdopendir: fix a bug on systems lacking openat and /proc support
7331         OpenBSD 4.7 is one such system.  The most noticeable effect was
7332         failure of any application making nontrivial use of fts: rm, du,
7333         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
7334           ./rm: traversal failed: `a': Bad file descriptor
7335         Debugging that, you see that even though FD 6 was closed just
7336         prior to the opendir call in fd_clone_opendir, its resulting
7337         dir->dd_fd was 8, rather than the expected value of 6:
7338
7339         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
7340         93                close (fd);
7341         (gdb) n
7342         94                dir = fd_clone_opendir (dupfd);
7343         (gdb) n
7344         95                saved_errno = errno;
7345         (gdb) p dir->dd_fd
7346         $11 = 8
7347
7348         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
7349         The problem is that on OpenBSD, fd_clone_opendir has to resort
7350         to using the old-style save/restore CWD mechanism, due to its
7351         lack of openat/proc support, and *that* would steal the FD (6)
7352         that opendir was supposed to use.
7353
7354         The fix is to squirrel away the desired FD so that save_cwd uses a
7355         different one, and then free the dest FD right before calling opendir.
7356         That guarantees opendir will use the required file descriptor.
7357
7358         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
7359
7360 2010-10-08  Bruno Haible  <bruno@clisp.org>
7361
7362         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
7363         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
7364
7365 2010-10-08  Bruno Haible  <bruno@clisp.org>
7366
7367         nanosleep: Make replacement POSIX compliant.
7368         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
7369         is out of range.
7370         Reported by Jim Meyering.
7371
7372 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
7373
7374         bootstrap: add hook for altering gnulib.mk, for Bison
7375         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
7376         the Bison bootstrapping process can rewrite file names and variables
7377         in this file before later parts of 'bootstrap' use the file.
7378         Bison wants to include lib/gnulib.mk from the top-level makefile,
7379         so it needs the file names in this file to be relative to the top
7380         level, not relative to lib; plus it needs variable names to be
7381         rewritten.
7382         (slurp): Use the new function.
7383
7384         bootstrap: reformat for readability
7385         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
7386
7387 2010-10-08  Eric Blake  <eblake@redhat.com>
7388
7389         docs: update cygwin progress
7390         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
7391         1.7.7.
7392         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
7393         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
7394         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
7395         * doc/posix-functions/carg.texi (carg): Likewise.
7396         * doc/posix-functions/cargf.texi (cargf): Likewise.
7397         * doc/posix-functions/casin.texi (casin): Likewise.
7398         * doc/posix-functions/casinf.texi (casinf): Likewise.
7399         * doc/posix-functions/casinh.texi (casinh): Likewise.
7400         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
7401         * doc/posix-functions/catan.texi (catan): Likewise.
7402         * doc/posix-functions/catanf.texi (catanf): Likewise.
7403         * doc/posix-functions/catanh.texi (catanh): Likewise.
7404         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
7405         * doc/posix-functions/ccos.texi (ccos): Likewise.
7406         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
7407         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
7408         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
7409         * doc/posix-functions/cexp.texi (cexp): Likewise.
7410         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
7411         * doc/posix-functions/cimag.texi (cimag): Likewise.
7412         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
7413         * doc/posix-functions/clog.texi (clog): Likewise.
7414         * doc/posix-functions/clogf.texi (clogf): Likewise.
7415         * doc/posix-functions/conj.texi (conj): Likewise.
7416         * doc/posix-functions/conjf.texi (conjf): Likewise.
7417         * doc/posix-functions/cpow.texi (cpow): Likewise.
7418         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
7419         * doc/posix-functions/cproj.texi (cproj): Likewise.
7420         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
7421         * doc/posix-functions/creal.texi (creal): Likewise.
7422         * doc/posix-functions/crealf.texi (crealf): Likewise.
7423         * doc/posix-functions/csin.texi (csin): Likewise.
7424         * doc/posix-functions/csinf.texi (csinf): Likewise.
7425         * doc/posix-functions/csinh.texi (csinh): Likewise.
7426         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
7427         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
7428         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
7429         * doc/posix-functions/ctan.texi (ctan): Likewise.
7430         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
7431         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
7432         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
7433         * doc/posix-headers/complex.texi (complex.h): Likewise.
7434
7435 2010-10-07  Jim Meyering  <meyering@redhat.com>
7436
7437         parse-datetime: avoid compilation failure on OpenBSD 4.7
7438         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
7439         This works around a compilation failure on OpenBSD 4.7:
7440         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
7441
7442 2010-10-07  Eric Blake  <eblake@redhat.com>
7443
7444         docs: update cygwin progress
7445         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
7446         1.7.6.
7447         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
7448         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
7449         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
7450         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
7451         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
7452         Likewise.
7453         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
7454         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
7455         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
7456         Likewise.
7457         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
7458         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
7459         Likewise.
7460         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
7461         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
7462         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
7463         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
7464         Likewise.
7465         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
7466         Likewise.
7467         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
7468
7469         docs: update parse-datetime history
7470         * doc/parse-datetime.texi (Authors of parse_datetime): Better
7471         documentation of this function's history and alternatives.
7472
7473         cygwin: use more robust version check
7474         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
7475         exclude an eventual cygwin 1.9.1.
7476         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
7477         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
7478         (gl_FUNC_STRCASESTR): Likewise.
7479         Reported by Bruno Haible.
7480
7481 2010-10-06  Bruno Haible  <bruno@clisp.org>
7482
7483         string, sys_select: Avoid #including large headers unless necessary.
7484         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
7485         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
7486         OSF/1, BeOS, Haiku.
7487         Reported by Jim Meyering.
7488
7489 2010-10-05  Eric Blake  <eblake@redhat.com>
7490
7491         memmem, strstr, strcasestr: fix bug with long periodic needle
7492         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
7493         periodic needle having false positive.
7494         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
7495         and cygwin 1.7.7.
7496         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
7497         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
7498         (gl_FUNC_STRCASESTR): Likewise.
7499         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
7500         * tests/test-memmem.c (main): Expose the bug.
7501         * tests/test-strcasestr.c (main): Likewise.
7502         * tests/test-strstr.c (main): Likewise.
7503         * tests/test-c-strcasestr.c (main): Likewise.
7504         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
7505         * doc/posix-functions/strstr.texi (strstr): Likewise.
7506         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
7507         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
7508
7509 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7510
7511         parse-datetime: do some more renaming
7512         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
7513         parse_datetime, not get_date.  Mention the renaming.
7514         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
7515         in comments.
7516         * m4/bison.m4: Likewise.
7517
7518 2010-10-05  Eric Blake  <eblake@redhat.com>
7519
7520         parse-datetime: better name than get_date
7521         * NEWS: Reword the deprecation notice.
7522         * modules/get_date: Rename to modules/parse-datetime.
7523         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
7524         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
7525         * lib/get_date.y: Rename to lib/parse-datetime.y.
7526         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
7527         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
7528         * doc/getdate.texi: Provide fallback wrapper.
7529         * lib/getdate.h: Move guts, and wrap...
7530         * lib/parse-datetime.h: ...new file.
7531         * lib/parse-datetime.y (get_date): Rename...
7532         (parse_datetime): ...to this.
7533         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
7534         (gl_PARSE_DATETIME): ...to this.
7535         * doc/posix-functions/getdate.texi (get_date): Provide fallback
7536         documentation.
7537         * modules/getdate (Files): Provide fallback docs and header.
7538         (Notice, Depends-on): Update references.
7539         * tests/test-parse-datetime.c: Likewise.
7540         * DEPENDENCIES: Likewise.
7541         * MODULES.html.sh (Date and time <time.h>): Likewise.
7542         * doc/parse-datetime.texi (Date input formats)
7543         (Authors of parse_datetime): Likewise.
7544         * modules/parse-datetime (Files, configure.ac, Makefile.am)
7545         (Include): Likewise.
7546         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
7547         * gnulib-tool: Likewise.
7548         * m4/bison.m4 (gl_BISON): Likewise.
7549         Suggested by Bruno Haible.
7550
7551 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7552
7553         more ports to Solaris tr, which needs [] around ranges
7554         * gnulib-tool: Solaris tr needs [] around ranges.
7555         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7556         * tests/test-pipe-filter-gi1.c (main): Likewise.
7557         * tests/test-pipe-filter-ii1.c (main): Likewise.
7558
7559 2010-10-05  Eric Blake  <eblake@redhat.com>
7560
7561         bootstrap: fix Solaris regression
7562         * build-aux/bootstrap (check_versions): Solaris tr still needs []
7563         around ranges.
7564         Reported by Pádraig Brady.
7565
7566         bootstrap: work with pkg-config
7567         * build-aux/bootstrap (check_versions): Also transliterate - in
7568         prerequisite name.
7569         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
7570         prerequisites that were already found, to avoid confusion.
7571         Reported by Justin Clift.
7572
7573         faccessat: remove unused wrappers
7574         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
7575         presence of these wrappers dragged in -lgen on Solaris.
7576         Reported by Clemens Brogi; fix suggested by Paul Eggert.
7577
7578 2010-10-05  Jim Meyering  <meyering@redhat.com>
7579
7580         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
7581         * Makefile (sc_pragma_columns): New syntax-check rule.
7582
7583 2010-10-04  Bruno Haible  <bruno@clisp.org>
7584
7585         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
7586         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
7587         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
7588         Reported by Bruce Korb and Eric Blake.
7589
7590 2010-10-04  Bruno Haible  <bruno@clisp.org>
7591
7592         threadlib: Make option --with-libpth-prefix work.
7593         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
7594         use $LIBPTH, not just -lpth.
7595
7596 2010-10-04  Bruno Haible  <bruno@clisp.org>
7597
7598         Avoid line length limitation from HP NonStop system header files.
7599         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
7600         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
7601         * lib/ctype.in.h: Likewise.
7602         * lib/dirent.in.h: Likewise.
7603         * lib/errno.in.h: Likewise.
7604         * lib/fcntl.in.h: Likewise.
7605         * lib/float.in.h: Likewise.
7606         * lib/getopt.in.h: Likewise.
7607         * lib/iconv.in.h: Likewise.
7608         * lib/inttypes.in.h: Likewise.
7609         * lib/langinfo.in.h: Likewise.
7610         * lib/locale.in.h: Likewise.
7611         * lib/math.in.h: Likewise.
7612         * lib/netdb.in.h: Likewise.
7613         * lib/netinet_in.in.h: Likewise.
7614         * lib/poll.in.h: Likewise.
7615         * lib/pthread.in.h: Likewise.
7616         * lib/pty.in.h: Likewise.
7617         * lib/sched.in.h: Likewise.
7618         * lib/se-selinux.in.h: Likewise.
7619         * lib/search.in.h: Likewise.
7620         * lib/signal.in.h: Likewise.
7621         * lib/spawn.in.h: Likewise.
7622         * lib/stdarg.in.h: Likewise.
7623         * lib/stddef.in.h: Likewise.
7624         * lib/stdint.in.h: Likewise.
7625         * lib/stdio.in.h: Likewise.
7626         * lib/stdlib.in.h: Likewise.
7627         * lib/string.in.h: Likewise.
7628         * lib/strings.in.h: Likewise.
7629         * lib/sys_file.in.h: Likewise.
7630         * lib/sys_ioctl.in.h: Likewise.
7631         * lib/sys_select.in.h: Likewise.
7632         * lib/sys_socket.in.h: Likewise.
7633         * lib/sys_stat.in.h: Likewise.
7634         * lib/sys_time.in.h: Likewise.
7635         * lib/sys_times.in.h: Likewise.
7636         * lib/sys_utsname.in.h: Likewise.
7637         * lib/sys_wait.in.h: Likewise.
7638         * lib/sysexits.in.h: Likewise.
7639         * lib/termios.in.h: Likewise.
7640         * lib/time.in.h: Likewise.
7641         * lib/unistd.in.h: Likewise.
7642         * lib/wchar.in.h: Likewise.
7643         * lib/wctype.in.h: Likewise.
7644         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
7645         * modules/ctype (Makefile.am): Likewise.
7646         * modules/dirent (Makefile.am): Likewise.
7647         * modules/errno (Makefile.am): Likewise.
7648         * modules/fcntl-h (Makefile.am): Likewise.
7649         * modules/float (Makefile.am): Likewise.
7650         * modules/getopt-posix (Makefile.am): Likewise.
7651         * modules/iconv-h (Makefile.am): Likewise.
7652         * modules/inttypes (Makefile.am): Likewise.
7653         * modules/langinfo (Makefile.am): Likewise.
7654         * modules/locale (Makefile.am): Likewise.
7655         * modules/math (Makefile.am): Likewise.
7656         * modules/netdb (Makefile.am): Likewise.
7657         * modules/netinet_in (Makefile.am): Likewise.
7658         * modules/poll-h (Makefile.am): Likewise.
7659         * modules/pthread (Makefile.am): Likewise.
7660         * modules/pty (Makefile.am): Likewise.
7661         * modules/sched (Makefile.am): Likewise.
7662         * modules/search (Makefile.am): Likewise.
7663         * modules/selinux-h (Makefile.am): Likewise.
7664         * modules/signal (Makefile.am): Likewise.
7665         * modules/spawn (Makefile.am): Likewise.
7666         * modules/stdarg (Makefile.am): Likewise.
7667         * modules/stddef (Makefile.am): Likewise.
7668         * modules/stdint (Makefile.am): Likewise.
7669         * modules/stdio (Makefile.am): Likewise.
7670         * modules/stdlib (Makefile.am): Likewise.
7671         * modules/string (Makefile.am): Likewise.
7672         * modules/strings (Makefile.am): Likewise.
7673         * modules/sys_file (Makefile.am): Likewise.
7674         * modules/sys_ioctl (Makefile.am): Likewise.
7675         * modules/sys_select (Makefile.am): Likewise.
7676         * modules/sys_socket (Makefile.am): Likewise.
7677         * modules/sys_stat (Makefile.am): Likewise.
7678         * modules/sys_time (Makefile.am): Likewise.
7679         * modules/sys_times (Makefile.am): Likewise.
7680         * modules/sys_utsname (Makefile.am): Likewise.
7681         * modules/sys_wait (Makefile.am): Likewise.
7682         * modules/sysexits (Makefile.am): Likewise.
7683         * modules/termios (Makefile.am): Likewise.
7684         * modules/time (Makefile.am): Likewise.
7685         * modules/unistd (Makefile.am): Likewise.
7686         * modules/wchar (Makefile.am): Likewise.
7687         * modules/wctype (Makefile.am): Likewise.
7688
7689 2010-10-04  Bruno Haible  <bruno@clisp.org>
7690
7691         read-file tests: Avoid a test failure on NonStop Kernel.
7692         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
7693         a regular file.
7694         Reported by Joachim Schmitz <schmitz@hp.com>.
7695
7696 2010-10-03  Bruno Haible  <bruno@clisp.org>
7697
7698         gnulib-tool: Fixes for --create-testdir with --libtool.
7699         * gnulib-tool (func_get_automake_snippet): Don't augment
7700         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
7701         an executable.
7702         (func_create_testdir): Handle module 'alloca' like func_import.
7703         Reported by Bruce Korb <bruce.korb@gmail.com>.
7704
7705 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
7706
7707         Avoid some lines longer than 80 characters.
7708         * lib/stdint.in.h: Break long comment lines.
7709         * lib/math.in.h: Likewise.
7710         (_GL_NUM_UINT_WORDS): New macro, for readability.
7711         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
7712         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
7713         * lib/stdlib.in.h: Likewise.
7714         * lib/spawn.in.h: Likewise.
7715         * lib/sys_socket.in.h: Update an URL.
7716         * lib/sys_stat.in.h: Break long line.
7717
7718 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
7719
7720         Improve pmccabe2html.
7721         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
7722         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
7723         when the sources change. Remove the line in the HTML about "Used
7724         ranges" (which implied that there might be other unused ranges),
7725         rename "Resume" to "Summary" (easier to understand for more users).
7726         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
7727         styles, and some unnecessary blank lines.
7728
7729 2010-10-03  Bruno Haible  <bruno@clisp.org>
7730             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
7731
7732         acl: Add support for ACLs on NonStop Kernel.
7733         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
7734         Check whether the function aclsort() exists.
7735         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
7736         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
7737         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
7738         (acl_nontrivial [HAVE_ACLSORT]: New function.
7739         (file_has_acl): Implement for NonStop Kernel.
7740         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
7741         (qset_acl): Implement for NonStop Kernel.
7742         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
7743         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
7744         (main): Implement for NonStop Kernel.
7745         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
7746         Kernel. Handle this flavor.
7747         * tests/test-set-mode-acl.sh: Likewise.
7748         * tests/test-copy-acl.sh: Likewise.
7749         * tests/test-copy-file.sh: Likewise.
7750
7751 2010-10-03  Bruno Haible  <bruno@clisp.org>
7752
7753         Info about ACLs on NonStop Kernel.
7754         * doc/acl-resources.txt: Add info about NonStop Kernel.
7755         References by Joachim Schmitz <schmitz@hp.com>.
7756
7757 2010-10-02  Bruno Haible  <bruno@clisp.org>
7758
7759         Define missing EDQUOT on NonStop Kernel.
7760         * lib/errno.in.h (EDQUOT): Assign a value if missing.
7761         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
7762         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
7763         missing.
7764         * doc/posix-headers/errno.texi: Mention the NSK bug.
7765         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
7766         Reported by Joachim Schmitz <schmitz@hp.com>.
7767
7768 2010-10-02  Bruno Haible  <bruno@clisp.org>
7769
7770         Update doc for POSIX:2008.
7771         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
7772         Update URL of POSIX specification.
7773
7774 2010-10-02  Bruno Haible  <bruno@clisp.org>
7775
7776         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
7777         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
7778         from gnulib, not from Automake.
7779
7780 2010-10-02  Bruno Haible  <bruno@clisp.org>
7781
7782         New module 'system-posix'.
7783         * modules/system-posix: New file.
7784         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
7785         module is present.
7786         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
7787         GNULIB_SYSTEM_POSIX.
7788         * modules/stdlib (Depends-on): Remove sys_wait.
7789         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
7790         * doc/posix-functions/system.texi: Mention the new module.
7791         * doc/posix-headers/stdlib.texi: Likewise.
7792         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
7793         define test_sys_wait_macros to a no-op.
7794         Reported by Sam Steingold <sds@gnu.org>.
7795
7796 2010-09-30  Bruno Haible  <bruno@clisp.org>
7797
7798         More renaming from 'getdate' to 'get_date'.
7799         * doc/get_date.texi: Renamed from doc/getdate.texi.
7800         * modules/get_date (Files): Update.
7801         * MODULES.html.sh (Date and time <time.h>): Update.
7802         * DEPENDENCIES: Update.
7803         * gnulib-tool: Update comment.
7804         * m4/bison.m4 (gl_BISON): Likewise.
7805         * m4/get_date.m4 (gl_GET_DATE): Likewise.
7806
7807 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
7808
7809         bootstrap: support ACLOCAL_FLAGS during aclocal
7810         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
7811         can add additional -I dir for third-party .m4 files.
7812
7813 2010-09-30  Eric Blake  <eblake@redhat.com>
7814
7815         bootstrap: use glibtoolize on MacOS
7816         * build-aux/bootstrap (check_versions): Convert libtool into
7817         libtoolize.
7818         (tool search): Move libtool check earlier, and look for
7819         glibtoolize for MacOS.
7820         (gnulib_tool_options): Auto-add --libtool when appropriate.
7821         Reported by Justin Clift.
7822
7823         poll: fix typo that broke test on MacOS
7824         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
7825         Reported by Justin Clift.
7826
7827         getdate: rename to get_date
7828         Note: getdate.h is not renamed, to minimize client impact.
7829         * modules/getdate: Mark obsolete.  Move old contents...
7830         * modules/get_date: ...to new module name.
7831         * modules/getdate-tests: Move...
7832         * modules/get_date-tests: ...here.
7833         * m4/getdate.m4: Move...
7834         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
7835         * lib/getdate.y: Move...
7836         * lib/get_date.y: ...here.
7837         * tests/test-getdate.c: Move...
7838         * tests/test-get_date.c: ...here.
7839         * doc/posix-functions/getdate.texi (getdate): Update name.
7840         * NEWS: Mention the change.
7841
7842 2010-09-29  Bruno Haible  <bruno@clisp.org>
7843
7844         Separate the module 'waitpid' from the module 'sys_wait'.
7845         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
7846         present.
7847         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
7848         gl_MODULE_INDICATOR_FOR_TESTS.
7849         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
7850         * modules/sys_wait (Depends-on): Remove waitpid.
7851         (Makefile.am): Substitute GNULIB_WAITPID.
7852         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
7853         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
7854         signature only if the 'waitpid' module is present.
7855         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
7856         * NEWS: Mention the change.
7857         * modules/grantpt (Depends-on): Add waitpid.
7858         * modules/wait-process (Depends-on): Likewise.
7859
7860 2010-09-29  Bruno Haible  <bruno@clisp.org>
7861
7862         More tests for module 'sys_wait'.
7863         * modules/sys_wait-c++-tests: New file.
7864         * tests/test-sys_wait-c++.cc: New file.
7865         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
7866         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7867
7868 2010-09-29  Bruno Haible  <bruno@clisp.org>
7869
7870         New module 'waitpid'.
7871         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
7872         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
7873         Don't include <process.h>.
7874         (waitpid): Declare only, using modern idiom.
7875         * m4/waitpid.m4: New file.
7876         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
7877         * modules/waitpid: New file.
7878         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
7879         (Makefile.am): Update.
7880         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7881
7882 2010-09-28  Bruno Haible  <bruno@clisp.org>
7883
7884         poll: Assume ANSI C.
7885         * lib/poll.c (poll): Use an ANSI C declaration.
7886
7887 2010-09-28  Bruno Haible  <bruno@clisp.org>
7888
7889         poll-h: Create poll.h on all platforms.
7890         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
7891         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
7892         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
7893         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
7894         (gl_REPLACE_POLL_H): Don't set POLL_H.
7895         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
7896         * modules/poll-h (Depends-on): Add include_next.
7897         (Makefile.am): Create poll.h unconditionally. Substitute also
7898         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
7899
7900 2010-09-28  Bruno Haible  <bruno@clisp.org>
7901
7902         Tests for module 'poll-h'.
7903         * modules/poll-h-c++-tests: New file.
7904         * tests/test-poll-h-c++.cc: New file.
7905
7906         Tests for module 'poll-h'.
7907         * modules/poll-h-tests: New file.
7908         * tests/test-poll-h.c: New file.
7909
7910 2010-09-28  Bruno Haible  <bruno@clisp.org>
7911
7912         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
7913         * modules/poll-h (Depends-on): Add 'extensions'.
7914
7915 2010-09-28  Bruno Haible  <bruno@clisp.org>
7916
7917         New module 'poll-h'.
7918         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
7919         (poll): Use modern idiom.
7920         * modules/poll-h: New file.
7921         * modules/poll (Files): Remove lib/poll.in.h.
7922         (Depends-on): Add poll-h.
7923         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
7924         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
7925         * m4/poll_h.m4: New file.
7926         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
7927         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
7928         and invoke gl_REPLACE_POLL_H.
7929         * lib/poll.c: Use common idiom.
7930         * tests/test-poll.c: Likewise.
7931         * doc/posix-headers/poll.texi: Mention the poll-h module.
7932         Suggested by Eric Blake.
7933
7934 2010-09-26  Bruno Haible  <bruno@clisp.org>
7935
7936         sys_wait: Implement WSTOPSIG.
7937         * lib/sys_wait.in.h (WSTOPSIG): New macro.
7938         Reported by Simon Josefsson.
7939
7940 2010-09-26  Simon Josefsson  <simon@josefsson.org>
7941
7942         stdlib, sys_wait: Avoid compilation error on mingw.
7943         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
7944
7945 2010-09-26  Bruno Haible  <bruno@clisp.org>
7946
7947         stdlib tests: Avoid code duplication.
7948         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
7949         * modules/sys_wait-tests (Files): Likewise.
7950         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
7951         * tests/test-stdlib.c: Include test-sys_wait.h.
7952         (main): Invoke test_sys_wait_macros.
7953         * tests/test-sys_wait.c: Include test-sys_wait.h.
7954         (main): Invoke test_sys_wait_macros.
7955
7956 2010-09-25  Simon Josefsson  <simon@josefsson.org>
7957
7958         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
7959         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
7960         sure Windows sockets are working before calling getaddrinfo.
7961         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
7962         * doc/gnulib.texi (Windows sockets): Fix typo.
7963
7964 2010-09-25  Bruno Haible  <bruno@clisp.org>
7965
7966         Tests for module 'regex-quote'.
7967         * modules/regex-quote-tests: New file.
7968         * tests/test-regex-quote.c: New file.
7969
7970         New module 'regex-quote'.
7971         * lib/regex-quote.h: New file.
7972         * lib/regex-quote.c: New file.
7973         * modules/regex-quote: New file.
7974         Suggested by Reuben Thomas <rrt@sc3d.org>.
7975
7976 2010-09-24  Bruno Haible  <bruno@clisp.org>
7977
7978         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
7979         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
7980
7981 2010-09-23  Bruno Haible  <bruno@clisp.org>
7982
7983         setenv: Relax license.
7984         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
7985         Blake.
7986         Requested by Eric Blake.
7987
7988 2010-09-22  Bruno Haible  <bruno@clisp.org>
7989
7990         termios: Relax license.
7991         * modules/termios (License): Change to LGPLv2+.
7992         Requested by Eric Blake.
7993
7994 2010-09-22  Bruno Haible  <bruno@clisp.org>
7995
7996         threadlib: Allow the package to change the default to 'no'.
7997         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
7998         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
7999         Reported by Paul Eggert.
8000
8001 2010-09-22  Pádraig Brady  <P@draigbrady.com>
8002             Bruno Haible  <bruno@clisp.org>
8003
8004         Fix endless loop in mbmemcasecoll.
8005         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
8006         byte.
8007         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
8008
8009 2010-09-22  Bruno Haible  <bruno@clisp.org>
8010
8011         Tests for module 'memcoll'.
8012         * modules/memcoll-tests: New file.
8013         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
8014
8015         memcoll, xmemcoll: Clarify size vs. length.
8016         * modules/memcoll.c (memcoll0): Clarify specification.
8017         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
8018         passed to collate_error.
8019
8020 2010-09-22  Bruno Haible  <bruno@clisp.org>
8021
8022         Tests for module 'memcasecmp'.
8023         * modules/memcasecmp-tests: New file.
8024         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
8025
8026 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8027
8028         * lib/pthread.in.h: Add split double-inclusion guard, and include
8029         system <pthread.h> if there is one.  Use @@-style as in other
8030         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
8031         pthread.h doesn't.
8032         (pthread_mutexattr_destroy, pthread_mutexattr_init):
8033         (pthread_mutexattr_settype, pthread_mutex_trylock):
8034         New static inline functions, if there's no system <pthread.h>.
8035         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
8036         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
8037         Approximate with mutexes if the system lacks spinlocks, as in
8038         MacOS.
8039         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
8040         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
8041         @@-style.  Check for spinlocks separately.
8042         (gl_PTHREAD_DEFAULTS): New macro.
8043         * modules/pthread: Redo to use a more typical style for in.h files.
8044
8045 2010-09-21  Eric Blake  <eblake@redhat.com>
8046
8047         net_if: enhance tests
8048         * tests/test-net_if.c (main): Move signature checks earlier.
8049         Print failures to stderr.
8050         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
8051         Document the bug that we do not yet fix.
8052
8053 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
8054
8055         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
8056         about gnulib, not GSS.
8057
8058 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
8059
8060         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
8061         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
8062         for Emacs.
8063         * build-aux/pmccabe2html: Make Makefile.am example code more
8064         cut-and-paste friendly.
8065
8066 2010-09-21  Simon Josefsson  <simon@josefsson.org>
8067
8068         * tests/test-net_if.c: New file.
8069         * modules/net_if-tests: New file.
8070
8071 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
8072
8073         pthread: add pthread_spin_destroy
8074         * lib/pthread.in.h (pthread_spin_destroy): New function.
8075
8076 2010-09-19  Bruno Haible  <bruno@clisp.org>
8077
8078         gnulib-tool: Fix --help output.
8079         * gnulib-tool (func_usage): Fix help message.
8080         Reported by Reuben Thomas <rrt@sc3d.org>.
8081
8082 2010-09-18  Jim Meyering  <meyering@redhat.com>
8083
8084         maint.mk: avoid unexpanded \n in two diagnostics
8085         * top/maint.mk (sc_prohibit_always_true_header_tests):
8086         Don't use a literal \n in a halt=... assignment.  It would not be
8087         expanded, and the two \n bytes would appear in the diagnostic output
8088         rather than the desired newline.  Use halt=$$(printf ... instead.
8089         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
8090
8091 2010-09-18  Bruno Haible  <bruno@clisp.org>
8092
8093         netinet_in: Doc tweak.
8094         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
8095         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8096
8097 2010-09-18  Jim Meyering  <meyering@redhat.com>
8098
8099         init.sh: correct an outdated comment
8100         * tests/init.sh (create_exe_shims_):  s/function/alias/
8101
8102         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
8103         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
8104         a file named "*.exe" is removed between the glob expansion and the
8105         processing of that oddly named file.
8106
8107 2010-09-17  Eric Blake  <eblake@redhat.com>
8108
8109         mirbsd: add some more support
8110         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
8111         in BSD family.
8112         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
8113         devices as OpenBSD.
8114         * m4/host-os.m4 (mirbsd): Add MirBSD.
8115
8116         tests: fix unportable assumption on sys/wait.h
8117         * tests/test-sys_wait.c (main): Relax test.
8118         * tests/test-stdlib.c (main): Likewise.
8119
8120         init.sh: accomodate directory with no .exes
8121         * tests/init.sh: Accomodate directory containing only scripts.
8122
8123         tests: avoid compiler warning
8124         * tests/test-stdlib.c (main): Use the variable.
8125
8126         fdutimens, fdutimensat: update signature, again
8127         * lib/utimens.h (gl_futimens): Delete, and move signature...
8128         (fdutimens): ...here.
8129         (fdutimensat): Rearrange signature.
8130         (lutimensat): Rename variable for clarity.
8131         * lib/fdutimensat.c (fdutimensat): Update signature.
8132         * lib/utimens.c (fdutimens): Likewise.
8133         (gl_futimens): Delete.
8134         (utimens, lutimens): Update callers.
8135         * lib/futimens.c (futimens): Likewise.
8136         * tests/test-fdutimensat.c: Likewise.
8137         * tests/test-utimens.c: Likewise.
8138         * tests/test-futimens.h: Update comment.
8139         * NEWS: Mention this.
8140         Suggested by Paul Eggert.
8141
8142 2010-09-17  Bruno Haible  <bruno@clisp.org>
8143
8144         Take over the maintenance of some older macros from Autoconf.
8145         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
8146         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
8147         GNU Autoconf.
8148         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
8149         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
8150
8151 2010-09-17  Eric Blake  <eblake@redhat.com>
8152
8153         fdutimensat: drop atflag validation
8154         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
8155         with valid fd, to close a race scenario where futimens is
8156         unsupported and FILE was replaced by a symlink.
8157         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
8158         accordingly.
8159         Suggested by Paul Eggert.
8160
8161 2010-09-16  Bruno Haible  <bruno@clisp.org>
8162
8163         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
8164         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
8165
8166 2010-09-16  Bruno Haible  <bruno@clisp.org>
8167
8168         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
8169         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
8170         login_tty exists.
8171         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8172
8173 2010-09-16  Bruno Haible  <bruno@clisp.org>
8174
8175         login_tty: Make the replacement code work on BSD systems.
8176         * lib/login_tty.c: Include <sys/ioctl.h>.
8177         (login_tty): Use ioctl TIOCSCTTY when available.
8178         * modules/login_tty (Depends-on): Add sys_ioctl.
8179         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8180
8181 2010-09-16  Bruno Haible  <bruno@clisp.org>
8182
8183         login_tty: Stricter unit test.
8184         * modules/login_tty-tests (Depends-on): Add tcgetsid.
8185         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
8186         and tcgetsid() after login_tty.
8187         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8188
8189 2010-09-16  Bruno Haible  <bruno@clisp.org>
8190
8191         New module 'tcgetsid'.
8192         * lib/tcgetsid.c: New file.
8193         * m4/tcgetsid.m4: New file.
8194         * modules/tcgetsid: New file.
8195         * modules/termios (Depends-on): Add c++defs, warn-on-use.
8196         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
8197         GNULIB_TCGETSID, HAVE_TCGETSID.
8198         * lib/termios.in.h: Include <sys/types.h>.
8199         (tcgetsid): New declaration.
8200         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
8201         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
8202         * doc/posix-functions/tcgetsid.texi: Mention the new module.
8203         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
8204
8205 2010-09-16  Bruno Haible  <bruno@clisp.org>
8206
8207         Tests for module 'termios'.
8208         * modules/termios-c++-tests: New file.
8209         * modules/termios-tests: New file.
8210         * tests/test-termios-c++.cc: New file.
8211         * tests/test-termios.c: New file.
8212
8213         New module 'termios'.
8214         * modules/termios: New file.
8215         * lib/termios.in.h: New file.
8216         * m4/termios_h.m4: New file.
8217         * doc/posix-headers/termios.texi: Mention the new module.
8218
8219 2010-09-16  Eric Blake  <eblake@redhat.com>
8220
8221         fdutimensat: add an atflag parameter
8222         * lib/fdutimensat.c (fdutimensat): Add new parameter.
8223         * lib/utimens.h (fdutimensat): Update prototype.
8224         * tests/test-fdutimensat.c: Adjust test to match.
8225         * NEWS: Document the change.
8226         Suggested by Paul Eggert.
8227
8228 2010-09-16  Bruno Haible  <bruno@clisp.org>
8229
8230         Fix typos in comments.
8231         * lib/striconveh.h: Fix typo in comment.
8232         * lib/login_tty.c (login_tty): Likewise.
8233
8234 2010-09-15  Bruno Haible  <bruno@clisp.org>
8235
8236         stdlib: clarify MirBSD WEXITSTATUS bug
8237         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
8238         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
8239
8240 2010-09-15  Eric Blake  <eblake@redhat.com>
8241
8242         stdlib: work around MirBSD WEXITSTATUS bug
8243         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
8244         * modules/stdlib (Depends-on): Add sys_wait.
8245         * tests/test-sys_wait.c (main): Enhance test.
8246         * tests/test-stdlib.c (main): Likewise.
8247         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
8248
8249         docs: mention MacOS issue with WEXITSTATUS(constant)
8250         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
8251         issue.
8252         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
8253
8254         strnlen: add tests
8255         * modules/strnlen-tests: New file.
8256         * tests/test-strnlen.c: Likewise.
8257
8258 2010-09-14  Bruno Haible  <bruno@clisp.org>
8259
8260         unistr/base: Avoid link errors when module 'libunistring' is also used.
8261         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
8262         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
8263         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
8264         Declare also when HAVE_LIBUNISTRING is set.
8265         Reported by Pádraig Brady <P@draigbrady.com>.
8266
8267 2010-09-14  Eric Blake  <eblake@redhat.com>
8268
8269         test-rawmemchr: make more robust
8270         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
8271         (Depends-on, configure.ac): Add needed prerequisites to use it.
8272         * modules/memchr-tests (Files, Depends-on, configure.ac):
8273         Likewise, to avoid implicit reliance on memchr module prereqs.
8274         * tests/test-memchr.c (main): Ensure proper masking.
8275         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
8276         reads.
8277
8278         memchr: detect glibc Alpha bug
8279         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
8280         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
8281         Alpha.
8282         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
8283         * tests/test-memchr.c (main): Enhance test.
8284         Reported by Nelson H. F. Beebe.
8285
8286 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
8287
8288         fts, getcwd, glob: audit for dirfd returning -1
8289         * lib/fts.c (opendir): Remove #define; no longer used.
8290         (opendirat): New arg PDIR_FD.  All callers changed.
8291         (fts_build, _opendir2): Use new opendirat to avoid the need for
8292         dirfd, or for checking whether dirfd returns a negative value.
8293         Don't use opendir; always use openat followed by fdopendir.
8294         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
8295         it.
8296         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
8297         returns -1 here.
8298         * modules/fts (Depends-on): Remove dirfd.
8299         * modules/getcwd (Depends-on): Likewise.
8300
8301 2010-09-13  Eric Blake  <eblake@redhat.com>
8302
8303         float: fix broken MirBSD header
8304         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
8305         * doc/posix-headers/float.texi (float.h): Document it.
8306
8307 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
8308
8309         fts: use O_NOFOLLOW to avoid race condition when opening a directory
8310         * lib/fts.c (opendirat): New arg extra_flags.
8311         (__opendir2): Use it to avoid following symlinks when opening
8312         a directory, if symlinks are not supposed to be followed.  See
8313         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
8314
8315         fdopendir: preserve argument fd before returning
8316         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
8317         (fdopendir_with_dup, fd_clone_opendir): New static functions.
8318         (fdopendir): Use them, arranging for FD to be open to the same
8319         directory that it was when it started.  (It might be temporarily
8320         closed while fdopendir is running, so this not thread- or
8321         signal-safe.)  Be careful to do the right thing even when file
8322         descriptors are scarce and dup fails with errno == EMFILE.  See
8323         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
8324
8325 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
8326
8327         regex: Pass the system regex if its only problem is 32-bit regoff_t.
8328         * NEWS: Document change.
8329         * m4/regex.m4: Disable test for regoff_t size.
8330
8331 2010-09-13  Jim Meyering  <meyering@redhat.com>
8332
8333         fts: don't operate on an invalid file descriptor after failed dup
8334         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
8335         negative file descriptor.
8336
8337 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
8338
8339         savedir: add streamsavedir, deprecate fdsavedir
8340         * NEWS: Mention deprecation of fdsavedir.
8341         * lib/savedir.c (streamsavedir): New extern function, whose name
8342         ends in "savedir" to be consistent with the others.  This differs
8343         from savedirstream in that it doesn't close its argument.  The
8344         next version of GNU tar will use this instead of fdsavedir, to
8345         avoid some race conditions and conserve file descriptors.
8346         (savedirstream): Reimplement as a wrapper around streamsavedir.
8347         (fdsavedir): Add a comment deprecating this function.  As far as
8348         I know, only GNU tar used it, and GNU tar doesn't need it any more.
8349         * lib/savedir.h (streamsavedir): New decl.
8350         (fdsavedir): Add a comment deprecating this.
8351
8352 2010-09-10  Bruno Haible  <bruno@clisp.org>
8353
8354         langinfo: Fix last commit.
8355         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
8356         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
8357         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8358
8359 2010-09-10  Bruno Haible  <bruno@clisp.org>
8360
8361         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
8362         * lib/progreloc.c (O_EXEC): Define fallback.
8363
8364 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
8365
8366         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
8367         * NEWS: Document recent changes to fcntl-h.
8368         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
8369         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
8370         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
8371         Similarly for O_SEARCH; this last was already true, but not documented.
8372         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
8373         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
8374         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
8375         Likewise.
8376         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
8377         is zero, not whether it is defined.
8378         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
8379         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
8380         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
8381
8382 2010-09-10  Bruno Haible  <bruno@clisp.org>
8383
8384         langinfo, nl_langinfo: Fix for IRIX 5.3.
8385         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
8386         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
8387         HAVE_LANGINFO_YESEXPR.
8388         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
8389         HAVE_LANGINFO_YESEXPR.
8390         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
8391         HAVE_LANGINFO_T_FMT_AMPM is 0.
8392         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
8393         HAVE_LANGINFO_YESEXPR is 0.
8394         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
8395         NOEXPR.
8396         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
8397         * doc/posix-functions/nl_langinfo.texi: Likewise.
8398         Reported by Eric Blake.
8399
8400 2010-09-10  Bruno Haible  <bruno@clisp.org>
8401
8402         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
8403         * doc/glibc-functions/login_tty.texi: Mention the include file problem
8404         on FreeBSD 8.0 and OpenBSD 4.6.
8405         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
8406         * m4/pty_h.m4 (gl_PTY_H): Likewise.
8407         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
8408         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
8409         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
8410         ac_includes_default.
8411         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8412
8413 2010-09-09  Eric Blake  <eblake@redhat.com>
8414
8415         strsignal: work around NetBSD bug
8416         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
8417         * lib/string.in.h (includes): Likewise.
8418         * doc/posix-functions/strsignal.texi (strsignal): Document the
8419         bug.
8420         Reported by Nelson H. F. Beebe.
8421
8422         gnulib-tool: work with NetBSD /bin/sh
8423         * gnulib-tool (func_cache_var, func_cache_lookup_module)
8424         (func_get_description, func_get_comment, func_get_status)
8425         (func_get_notice, func_get_applicability, func_get_filelist)
8426         (func_get_dependencies, func_get_autoconf_early_snippet)
8427         (func_get_autoconf_snippet, func_get_automake_snippet)
8428         (func_get_include_directive, func_get_link_directive)
8429         (func_get_license, func_get_maintainer, func_import): Avoid
8430         shell syntax errors from parsing syntax extensions.
8431
8432 2010-09-09  Bruno Haible  <bruno@clisp.org>
8433
8434         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
8435         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
8436         a reliable way to determine whether the 'alias' command works.
8437
8438 2010-09-08  Jim Meyering  <meyering@redhat.com>
8439
8440         init.sh: penalize a set-x-impaired shell; don't disqualify it
8441         * tests/init.sh: Too many shells corrupt application stderr when
8442         you set -x, so we can't afford to disqualify them, since at least
8443         on Irix-6.5, that would disqualify all bourne shells.
8444         Instead, use a two-pass approach.
8445         On the first pass, try to find a shell that meets the stricter
8446         condition that set -x does not corrupt stderr.
8447         If no shell meets the stricter condition, retest each candidate
8448         shell, but without that extra condition.  Finally, when
8449         VERBOSE=yes is requested and set -x might cause trouble, simply
8450         issue a warning and refrain from enabling debug output.
8451
8452 2010-09-08  Eric Blake  <eblake@redhat.com>
8453
8454         unsetenv: fix OpenBSD bug
8455         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
8456         * doc/posix-functions/unsetenv.texi (unsetenv): Update
8457         documentation.
8458         Reported by Jim Meyering.
8459
8460         strtod: work around IRIX 6.5 bug
8461         * lib/strtod.c (strtod): Reparse number on shorter string if
8462         exponent parse was invalid.
8463         * tests/test-strtod.c (main): Add check for "0x1p 2".
8464         Reported by Tom G. Christensen.
8465
8466         getopt: optimize previous patch
8467         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
8468         empty variable.  Speed up awk script.
8469         Reported by Paolo Bonzini.
8470
8471 2010-09-08  Jim Meyering  <meyering@redhat.com>
8472
8473         test.sh: disqualify shells for which set -x corrupts stderr
8474         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
8475         and OpenBSD 4.7.  They make it so with "set -x", environment settings
8476         appear in stderr output.  For example, this command:
8477             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
8478         prints "P=1" on those two systems:
8479
8480 2010-09-08  Bruno Haible  <bruno@clisp.org>
8481
8482         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
8483         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
8484         commands, because some shells ignore redirections when there is an
8485         error in the command lookup.
8486         Reported by Eric Blake.
8487
8488 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
8489
8490         * lib/regex.h: Fix a mention of `regex_compile' (should be
8491         `re_compile_pattern').
8492         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
8493         (re_set_registers): Correct name of parameter in comment.
8494
8495         * doc/regex.texi: Add documentation for missing syntax flags.
8496         Remove commented-out documentation of defunct syntax option
8497         RE_NO_EMPTY_ALTS.
8498         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
8499         Add documentation of re_set_registers.
8500         Document trick to re-use a pattern buffer by setting fastmap manually.
8501         Update documentation of struct re_pattern_buffer per public members.
8502         Uncomment documentation of equivalence class operators and
8503         collating symbol operators, since they are now implemented,
8504         Explain leftmost-longest matching in relation to alternatives.
8505         Tidy documentation of substring matching.
8506         Remove POSIX documentation, which is done better in
8507         glibc, and refer the reader there. Keep BSD API documentation, as
8508         that is not readily available elsewhere.
8509
8510 2010-09-07  Eric Blake  <eblake@redhat.com>
8511
8512         getopt: handle POSIXLY_CORRECT set but not exported
8513         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
8514         export state of POSIXLY_CORRECT, due to bash set -o posix.
8515         Reported by Dustin J. Mitchell.
8516
8517 2010-09-05  Bruno Haible  <bruno@clisp.org>
8518
8519         gnulib-tool: Highlight the changed options.
8520         * gnulib-tool (func_usage): Display the --import, --add-import,
8521         --remove-import explanations in bold font.
8522
8523 2010-09-06  Karl Berry  <karl@gnu.org>
8524
8525         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
8526
8527 2010-09-05  Bruno Haible  <bruno@clisp.org>
8528
8529         uniwidth/width: Update comment.
8530         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
8531         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
8532
8533 2010-09-05  Bruno Haible  <bruno@clisp.org>
8534
8535         isinf, isnan: Relax license.
8536         * modules/isinf (License): Change from GPL to LGPL, with consent from
8537         Ben Pfaff.
8538         * modules/isnan (License): Likewise.
8539         Requested by Ludovic Courtès.
8540
8541 2010-09-04  Bruno Haible  <bruno@clisp.org>
8542
8543         gnulib-tool: Help migration from --import to --add-import or --update.
8544         * gnulib-tool: Emit a verbose error message when --import is used
8545         without any module name.
8546
8547 2010-09-04  Bruno Haible  <bruno@clisp.org>
8548
8549         Update doc about gnulib-tool.
8550         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
8551         'gnulib-tool --update' in more detail.
8552         Reported by Eric Blake.
8553
8554 2010-09-04  Bruno Haible  <bruno@clisp.org>
8555
8556         gnulib-tool: Change --import. New options --add/remove-import.
8557         * gnulib-tool: New options --add-import, --remove-import.
8558         (func_usage): Document them.
8559         (have_associative): Define always.
8560         (func_import): In import mode, don't merge the specified settings with
8561         the cached settings. Implement remove-import mode.
8562         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
8563         Explain when to use them versus --import.
8564         (Simple update): Use --add-import instead of --import.
8565         * NEWS: Mention the change.
8566
8567 2010-09-04  Bruno Haible  <bruno@clisp.org>
8568
8569         * doc/gnulib-tool.texi (Initial import): Update paragraph about
8570         separate gnulib.mk.
8571
8572 2010-09-04  Bruno Haible  <bruno@clisp.org>
8573
8574         gnulib-tool: Don't talk about CVS any more.
8575         * gnulib-tool (func_usage, func_import): Write "version control"
8576         instead of CVS.
8577
8578 2010-09-04  Jim Meyering  <meyering@redhat.com>
8579
8580         maint.mk: avoid obscure sc_copyright_check failure in coreutils
8581         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
8582         false positives (whose names may be ill-chosen) when searching
8583         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
8584         would cause a false-positive.
8585
8586         avoid coreutils "make distcheck" failure
8587         Coreutils tests with an absolute build directory name that contains
8588         a space.  Not quoting this directory name caused a failure.
8589         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
8590         * tests/test-vc-list-files-cvs.sh: Likewise.
8591
8592 2010-09-04  Bruno Haible  <bruno@clisp.org>
8593
8594         gnulib-tool: Avoid error when run in a package without Makefile.am.
8595         * gnulib-tool: When collecting the m4dirs in a package that does not
8596         have a Makefile.am, eliminate those directories that contain no
8597         gnulib-cache.m4. Fix expression that counts these directories.
8598
8599 2010-09-04  Bruno Haible  <bruno@clisp.org>
8600
8601         update-copyright test: Improve output when perl is missing or too old.
8602         * tests/test-update-copyright.sh: Move test of Perl version down after
8603         the test whether Perl exists. Provide an explanation relating Perl's
8604         error message to Automake's SKIP: message.
8605
8606 2010-09-04  Bruno Haible  <bruno@clisp.org>
8607
8608         Don't augment PATH in TESTS_ENVIRONMENT.
8609         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
8610         set abs_aux_dir instead of augmenting PATH.
8611         * modules/vc-list-files-tests (Makefile.am): Likewise.
8612         * tests/test-update-copyright.sh: Augment PATH here.
8613         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
8614         path_prepend_.
8615         * tests/test-vc-list-files-git.sh: Likewise.
8616
8617 2010-09-04  Jim Meyering  <meyering@redhat.com>
8618
8619         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
8620         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
8621
8622 2010-09-04  Bruno Haible  <bruno@clisp.org>
8623
8624         strdup: Fix compilation error in C++ mode.
8625         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
8626         the macro.
8627
8628 2010-09-04  Bruno Haible  <bruno@clisp.org>
8629
8630         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
8631         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
8632         macro into a function.
8633         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8634
8635 2010-09-04  Bruno Haible  <bruno@clisp.org>
8636
8637         Set PATH_SEPARATOR the same way autoconf does.
8638         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
8639         the value of PATH_SEPARATOR the same way autoconf-generated configure
8640         scripts do.
8641         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
8642         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
8643
8644 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
8645
8646         Set PATH_SEPARATOR the same way autoconf does.
8647         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
8648         the same way autoconf-generated configure scripts do.
8649         * posix-modules: Likewise.
8650
8651 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
8652
8653         hash: fix safe_hasher const typo
8654         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
8655         const; otherwise, there is a type error later.
8656
8657 2010-09-02  Jim Meyering  <meyering@redhat.com>
8658
8659         test-update-copyright.sh: require perl 5.8.0
8660         * tests/test-update-copyright.sh: Require 5.8.0,
8661         which Tom G. Christensen has confirmed is adequate,
8662         while 5.6.1 is not.
8663
8664 2010-09-02  Eric Blake  <eblake@redhat.com>
8665
8666         tests: init.sh improvements for re-exec'ing with zsh
8667         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
8668         -vx through shell re-exec.
8669         Reported by Tom G. Christensen.
8670
8671         wctype: fix typo in previous commit
8672         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
8673         Reported by Ludovic Courtès.
8674
8675 2010-09-02  Jim Meyering  <meyering@redhat.com>
8676
8677         test-update-copyright.sh: skip test if Perl is too old
8678         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
8679         Reported by Tom G. Christensen.
8680
8681 2010-09-02  Bruno Haible  <bruno@clisp.org>
8682
8683         wctype: Avoid compilation error on IRIX 6.5.30.
8684         * lib/wctype.in.h (iswblank): Declare with a replacement if
8685         REPLACE_ISWBLANK is set.
8686         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
8687         declared. Set REPLACE_ISWBLANK.
8688         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
8689         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
8690         * doc/posix-headers/wctype.texi: Likewise.
8691         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8692
8693 2010-09-01  Bruno Haible  <bruno@clisp.org>
8694
8695         New module 'socketlib'.
8696         * modules/socketlib: New file.
8697         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
8698         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
8699         * modules/sockets (Depends-on): Add socketlib.
8700         Suggested by Sam Steingold <sds@gnu.org>.
8701
8702 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
8703
8704         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
8705
8706         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
8707         when one needs search access to a directory but not read access.
8708         On systems where it is available, it works in some cases where
8709         O_RDONLY does not, namely on directories that are searchable but
8710         not readable, and which need only to be searchable.  If O_SEARCH
8711         is not available, fall back to the traditional method of using
8712         O_RDONLY.
8713
8714         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
8715         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
8716         when opening a directory that needs only to be searchable.
8717         * lib/chdir-safer.c (chdir_no_follow): Likewise.
8718         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
8719         * lib/openat-proc.c (openat_proc_name): Likewise.
8720         * lib/openat.c (openat_needs_fchdir): Likewise.
8721         * lib/save-cwd.c (save_cwd): Likewise.
8722         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
8723
8724 2010-08-28  Bruno Haible  <bruno@clisp.org>
8725
8726         New module 'host-cpu-c-abi'.
8727         * modules/host-cpu-c-abi: New file.
8728         * m4/host-cpu-c-abi.m4: New file, based on part of
8729         clisp/src/m4/general.m4.
8730         Requested by Sam Steingold <sds@gnu.org>.
8731
8732 2010-08-31  Eric Blake  <eblake@redhat.com>
8733         and Jim Meyering  <meyering@redhat.com>
8734
8735         hash: factor, and guard against misbehaving hasher function
8736         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
8737         of table->hasher's return value.  Also protect against a hash value
8738         so large that adding it to table->bucket results in a NULL pointer.
8739         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
8740         Use it in place of open-coded check-and-abort.
8741
8742 2010-08-30  Bruno Haible  <bruno@clisp.org>
8743
8744         hash: silence spurious clang warning
8745         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
8746         Reported by Eric Blake.
8747
8748 2010-08-30  Eric Blake  <eblake@redhat.com>
8749
8750         strstr, memmem, strcasestr: avoid leaked shell message
8751         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
8752         FreeBSD.
8753         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
8754         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
8755
8756         tests: silence clang warning
8757         * tests/test-malloca.c (do_allocation): Avoid dead store.
8758
8759 2010-08-29  Bruno Haible  <bruno@clisp.org>
8760
8761         gettext: Fix recent mistake.
8762         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
8763
8764 2010-08-29  Bruno Haible  <bruno@clisp.org>
8765
8766         selinux-h: Offer a --without-selinux option.
8767         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
8768         --without-selinux was specified, skip all tests and define
8769         HAVE_SELINUX_SELINUX_H to 0.
8770         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
8771         set LIB_SELINUX to empty.
8772         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
8773         gl_LIBSELINUX. If --without-selinux was specified, replace
8774         selinux/context.h.
8775         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
8776
8777 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8778             Bruno Haible  <bruno@clisp.org>
8779
8780         Make the module 'realloc-gnu' work again on AIX and OSF/1.
8781         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
8782         of HAVE_REALLOC.
8783         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
8784         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
8785         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
8786         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
8787
8788 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8789             Bruno Haible  <bruno@clisp.org>
8790
8791         Make the module 'calloc-gnu' work again on AIX and OSF/1.
8792         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
8793         HAVE_CALLOC.
8794         * lib/xmalloc.c: Update accordingly.
8795         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
8796         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
8797         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
8798
8799 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8800             Bruno Haible  <bruno@clisp.org>
8801
8802         Make the module 'malloc-gnu' work again on AIX and OSF/1.
8803         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
8804         HAVE_MALLOC.
8805         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
8806         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
8807         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
8808
8809 2010-08-29  Bruno Haible  <bruno@clisp.org>
8810
8811         Update modules list.
8812         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
8813         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
8814         (String handling <string.h>): Add astrxfrm.
8815         (File system functions): Add readlinkat.
8816
8817 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8818
8819         Tests for module 'realloc-gnu'.
8820         * modules/realloc-gnu-tests: New file.
8821         * tests/test-realloc-gnu.c: New file.
8822
8823         Tests for module 'calloc-gnu'.
8824         * modules/calloc-gnu-tests: New file.
8825         * tests/test-calloc-gnu.c: New file.
8826
8827         Tests for module 'malloc-gnu'.
8828         * modules/malloc-gnu-tests: New file.
8829         * tests/test-malloc-gnu.c: New file.
8830
8831 2010-08-28  Bruno Haible  <bruno@clisp.org>
8832
8833         Rename module 'realloc' -> 'realloc-gnu'.
8834         * modules/realloc-gnu: New file, copied from modules/realloc.
8835         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
8836         obsolete.
8837         * modules/mgetgroups (Depends-on): Update.
8838         * doc/posix-functions/realloc.texi: Update.
8839         * NEWS: Mention the change.
8840
8841         Rename module 'calloc' -> 'calloc-gnu'.
8842         * modules/calloc-gnu: New file, copied from modules/calloc.
8843         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
8844         obsolete.
8845         * doc/posix-functions/calloc.texi: Update.
8846         * NEWS: Mention the change.
8847
8848         Rename module 'malloc' -> 'malloc-gnu'.
8849         * modules/malloc-gnu: New file, copied from modules/malloc.
8850         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
8851         obsolete.
8852         * modules/argp (Depends-on): Update.
8853         * modules/regex (Depends-on): Update.
8854         * doc/posix-functions/malloc.texi: Update.
8855         * NEWS: Mention the change.
8856
8857 2010-08-28  Eric Blake  <eblake@redhat.com>
8858
8859         pread, pwrite: add missing dependency
8860         * modules/pread (Depends-on): Add extensions.
8861         * modules/pwrite (Depends-on): Likewise.
8862
8863 2010-08-28  Bruno Haible  <bruno@clisp.org>
8864
8865         unistr/u*-strchr: Fix tests dependencies.
8866         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
8867         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
8868         Reported by Ian Beckwith <ianb@erislabs.net>.
8869
8870 2010-08-28  Bruno Haible  <bruno@clisp.org>
8871
8872         read-file: Don't occupy too much unused memory.
8873         * lib/read-file.c (fread_file): Shrink the buffer at the end.
8874
8875 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
8876             Eric Blake  <eblake@redhat.com>
8877             Bruno Haible  <bruno@clisp.org>
8878
8879         read-file: Avoid memory reallocations with regular files.
8880         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
8881         (fread_file): With regular files, use the remaining length as the
8882         initial buffer size.  Check against overflow.
8883         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
8884         sys_stat.
8885
8886 2010-08-28  Bruno Haible  <bruno@clisp.org>
8887
8888         ftello: Relax license.
8889         * modules/ftello (License): Relax to LGPLv2+.
8890         Reported by Eric Blake.
8891
8892 2010-08-28  Bruno Haible  <bruno@clisp.org>
8893
8894         Avoid relocwrapper link errors due to gnulib replacement functions.
8895         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
8896         function.
8897         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8898
8899 2010-08-28  Bruno Haible  <bruno@clisp.org>
8900
8901         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
8902         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
8903         defined.
8904         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
8905         Suggested by Eric Blake.
8906
8907 2010-08-28  Bruno Haible  <bruno@clisp.org>
8908
8909         sys_socket, netdb: Ensure socklen_t gets defined.
8910         * modules/sys_socket (Depends-on): Add socklen.
8911         * modules/netdb (Depends-on): Likewise.
8912         * modules/getaddrinfo (Depends-on): Remove socklen.
8913         * modules/getsockopt (Depends-on): Likewise.
8914         * modules/setsockopt (Depends-on): Likewise.
8915         * tests/test-sys_socket.c: Check that socklen_t is defined.
8916         * tests/test-netdb.c: Likewise.
8917         * m4/socklen.m4: Update comments.
8918         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8919
8920 2010-08-27  Eric Blake  <eblake@redhat.com>
8921
8922         login_tty: add missing dependency
8923         * modules/login_tty (Depends-on): Add pty.
8924
8925 2010-08-26  Eric Blake  <eblake@redhat.com>
8926
8927         lib-symbol-versions: fix m4 quoting
8928         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
8929         format for AC_LINK_IFELSE.
8930
8931         glob: fix compile test
8932         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
8933
8934         btowc: fix missing file
8935         * modules/btowc (Files): Also ship locale-fr.m4.
8936
8937         lseek: fix link test
8938         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
8939         AC_LINK_IFELSE.
8940
8941         include_next: silence autoconf 2.68 warning
8942         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
8943         AC_COMPILE_IFELSE as special.
8944         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
8945         autoconf < 2.68.
8946
8947         acl: fix compilation test
8948         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
8949         AC_COMPILE_IFELSE.
8950
8951 2010-08-26  Bruno Haible  <bruno@clisp.org>
8952
8953         Modernize AC_TRY_RUN invocations.
8954         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
8955         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
8956         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
8957         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
8958         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
8959         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
8960         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
8961         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
8962         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
8963         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
8964         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
8965         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
8966         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
8967         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
8968         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
8969         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
8970         gl_MBRLEN_NUL_RETVAL): Likewise.
8971         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
8972         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
8973         Likewise.
8974         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8975         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8976         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
8977         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
8978         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
8979         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
8980         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
8981         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
8982         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
8983         Likewise.
8984         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
8985         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
8986         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8987         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
8988         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8989         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
8990         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8991         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
8992         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8993         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8994
8995 2010-08-26  Bruno Haible  <bruno@clisp.org>
8996
8997         Modernize AC_TRY_LINK invocations.
8998         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
8999         AC_TRY_LINK.
9000         * m4/argp.m4 (gl_ARGP): Likewise.
9001         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9002         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9003         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
9004         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
9005         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
9006         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
9007         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9008         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9009         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
9010         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
9011         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
9012         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
9013         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
9014         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9015         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
9016         * m4/hostent.m4 (gl_HOSTENT): Likewise.
9017         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9018         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
9019         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
9020         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
9021         Likewise.
9022         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
9023         Likewise.
9024         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
9025         Likewise.
9026         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
9027         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
9028         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
9029         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9030         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9031         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
9032         * m4/servent.m4 (gl_SERVENT): Likewise.
9033         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9034         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9035         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9036         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9037         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
9038         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9039         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9040         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9041         * modules/tsearch-tests (configure.ac): Likewise.
9042
9043 2010-08-26  Bruno Haible  <bruno@clisp.org>
9044
9045         Modernize AC_TRY_COMPILE invocations.
9046         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
9047         AC_TRY_COMPILE.
9048         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
9049         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
9050         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
9051         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
9052         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
9053         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
9054         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9055         * m4/lock.m4 (gl_LOCK): Likewise.
9056         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
9057         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
9058         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
9059         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
9060         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
9061         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
9062         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
9063         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
9064         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
9065         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
9066         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
9067         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
9068         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
9069         extraneous semicolon.
9070
9071 2010-08-26  Jim Meyering  <meyering@redhat.com>
9072
9073         stat-time: relax license LGPL
9074         * modules/stat-time (License): Change from GPL to LGPL,
9075         with consent from all contributors, for use in libguile.
9076         Requested by Ludovic Courtès.
9077
9078 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
9079
9080         poll: return immediately on POLLHUP.
9081         * lib/poll.c (poll): Always set timeout before wait_timeout is
9082         computed.
9083
9084 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9085
9086         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
9087         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
9088         rmdir ("dir/.//"), unlinkat.
9089
9090 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9091
9092         stdbool: avoid spurious failure with modern xlc
9093         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
9094
9095 2010-08-24  Bruno Haible  <bruno@clisp.org>
9096
9097         getloadavg: simplify code
9098         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
9099         gl_have_func. Update comments.
9100
9101 2010-08-24  Eric Blake  <eblake@redhat.com>
9102
9103         getloadavg: don't define SVR4 on cygwin
9104         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
9105         only define SVR4 when -lkvm is required.
9106         Reported by Yaakov Selkowitz.
9107
9108 2010-08-24  Bruno Haible  <bruno@clisp.org>
9109
9110         priv-set: fix comment
9111         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
9112
9113 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
9114
9115         priv-set: fix comments
9116         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
9117         to match code, as suggested by David Bartley in:
9118         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
9119
9120 2010-08-23  Eric Blake  <eblake@redhat.com>
9121
9122         stdbool: avoid rejecting clang
9123         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
9124         * tests/test-stdbool.c: Enable more tests if using the system
9125         <stdbool.h> instead of the gnulib replacement.
9126         (main): Move xlc bug test to a runtime test for all compilers.
9127         Reported by Anders Kaseorg.
9128
9129         argz: fix shell quoting issue
9130         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
9131         Reported by Charles Wilson.
9132
9133 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
9134             Erik Faye-Lund <kusmabite@gmail.com>
9135
9136         poll, select: handle ERROR_BROKEN_PIPE.
9137         * lib/poll.c (win32_compute_revents): Return POLLHUP when
9138         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
9139         * lib/select.c (win32_compute_revents): Do not mark a pipe
9140         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
9141
9142 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
9143
9144         fts: allow compilation with C++
9145         * lib/fts_.h: Specify extern "C" linkage with C++.
9146
9147 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9148
9149         Fix gnulib-tool sed script de-commentation for AIX sed.
9150         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
9151         sed.
9152
9153 2010-08-17  Eric Blake  <eblake@redhat.com>
9154
9155         test-stddef: test for (some) offsetof bugs
9156         * tests/test-stddef.c: Enhance test to ensure correct type of
9157         offsetof.
9158         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
9159         that we are not fixing at this time.
9160
9161 2010-08-15  Bruno Haible  <bruno@clisp.org>
9162
9163         stpncpy: Allow stpncpy to be defined as a macro.
9164         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
9165         if it's already correctly declared.
9166         * lib/string.in.h (stpncpy): Undefine before redefining.
9167         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
9168
9169 2010-08-14  Bruno Haible  <bruno@clisp.org>
9170
9171         Rename module 'memxfrm' to 'amemxfrm'.
9172         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
9173         (amemxfrm): Renamed from memxfrm.
9174         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
9175         (amemxfrm): Renamed from memxfrm.
9176         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
9177         * NEWS: Mention the change.
9178         * MODULES.html.sh (String handling <string.h>): Update.
9179         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
9180         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
9181         * lib/unicase/u16-casexfrm.c: Likewise.
9182         * lib/unicase/u32-casexfrm.c: Likewise.
9183         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
9184         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
9185         * lib/uninorm/u16-normxfrm.c: Likewise.
9186         * lib/uninorm/u32-normxfrm.c: Likewise.
9187         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
9188         memxfrm.
9189         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
9190         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
9191         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
9192         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
9193         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
9194         Suggested by Paul Eggert.
9195
9196 2010-08-14  Bruno Haible  <bruno@clisp.org>
9197
9198         Tests for module 'astrxfrm'.
9199         * modules/astrxfrm-tests: New file.
9200         * tests/test-astrxfrm.c: New file.
9201
9202         New module 'astrxfrm'.
9203         * lib/astrxfrm.h: New file.
9204         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
9205         * modules/astrxfrm: New file.
9206
9207 2010-08-14  Reuben Thomas <rrt@sc3d.org>
9208
9209         regex: Tweak doc.
9210         * doc/regex.texi (Overview): Don't mention regex.c.
9211         (GNU Regular Expression Compiling): Likewise.
9212         (Match-end-of-line Operator): Mention 'not_eol'.
9213
9214 2010-08-14  Brian Gough  <bjg@gnu.org>
9215             Bruno Haible  <bruno@clisp.org>
9216
9217         git-merge-changelog: add doc relating to use with bzr and hg.
9218         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
9219
9220 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
9221
9222         pthread: fix pthread.h creation for srcdir != builddir
9223         * modules/pthread (Makefile.am): Fix the rule to work also in a
9224         non-srcdir build.
9225
9226 2010-08-13  Karl Berry  <karl@gnu.org>
9227
9228         * doc/regex.texi (Predefined Syntaxes): @smallexample.
9229         * doc/posix-*/*: force line break before @url of POSIX
9230         specifications.
9231         Suggested by Werner Lemberg.
9232
9233 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
9234
9235         strtod: fix const diagnostic
9236         * lib/strtod.c (strtod): Don't assign const char * to char *,
9237         as this elicits a warning from GCC when warnings are enabled.
9238
9239 2010-08-10  Pádraig Brady <P@draigbrady.com>
9240         and Eric Blake  <eblake@redhat.com>
9241
9242         copy-acl: ignore ENOTSUP on HP-UX
9243         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
9244         so that it is available for HP-UX.
9245         * lib/copy-acl.c (qcopy_acl): Use it.
9246         Reported by Patrick M. Callahan.
9247
9248 2010-08-10  Eric Blake  <eblake@redhat.com>
9249
9250         open, chown: relax license
9251         * modules/open (License): Change to LGPLv2+, with consent by all
9252         authors, for use in augeas.
9253         * modules/chown (License): Likewise.
9254         * modules/lchown (Likewise): Likewise.
9255         Requested by Adam Stokes.
9256
9257 2010-08-09  Karl Berry  <karl@gnu.org>
9258
9259         * build-aux/ar-lib: new file, import from Automake.
9260         * config/srclist.txt: autocheck for updates.
9261
9262 2010-08-09  Eric Blake  <eblake@redhat.com>
9263
9264         readlinkat: adjust client modules
9265         * modules/areadlinkat (Depends-on): Use readlinkat, not
9266         symlinkat.
9267         * modules/areadlinkat-with-size (Depends-on): Likewise.
9268
9269         mknod: be more vocal about danger of running tests as root
9270         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
9271         root, since that is just asking for problems.
9272         Suggested by Bruno Haible, based on a report by Rainer Tammer.
9273
9274         readlinkat: split into its own module
9275         * modules/symlinkat: Split readlinkat...
9276         * modules/readlinkat: ...into separate module.
9277         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
9278         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
9279         * lib/symlinkat.c (readlinkat): Move...
9280         * lib/readlinkat.c: ...into new file.
9281         * modules/symlinkat-tests: Split readlinkat test...
9282         * modules/readlinkat-tests: ...into separate module.
9283         * tests/test-symlinkat.c: Split...
9284         * tests/test-readlinkat.c: ...into new file.
9285         * NEWS: Document the split.
9286         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9287         * lib/unistd.in.h (readlinkat): Likewise.
9288         Suggested by Bruno Haible.
9289
9290 2010-08-08  Bruno Haible  <bruno@clisp.org>
9291
9292         memxfrm: Speed up.
9293         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
9294         that usually only one call to strxfrm is necessary for each string
9295         part.
9296         Reported by Paul Eggert <eggert@cs.ucla.edu>.
9297
9298 2010-08-07  Karl Berry  <karl@gnu.org>
9299
9300         * doc/posix-headers/limits.texi,
9301         * doc/posix-functions/malloc.texi,
9302         * doc/posix-functions/strsignal.texi: missing @item.
9303         * doc/ld-version-script.texi: spurious leading i.
9304         * doc/regex.texi (Interval Operators): no commas inside @var.
9305
9306 2010-08-01  Bruno Haible  <bruno@clisp.org>
9307
9308         Integrate the regex documentation.
9309         * doc/gnulib.texi: Define 'cn' index.
9310         (Regular expressions): New a chapter that includes regex.texi and
9311         regexprops-generic.texi.
9312         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
9313         syntax.
9314
9315         Whitespace cleanup.
9316         * doc/regex.texi: Remove trailing spaces.
9317
9318         Add regex documentation.
9319         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
9320         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
9321         Written by Kathy A. Hargreaves and Karl Berry.
9322
9323 2010-08-01  Bruno Haible  <bruno@clisp.org>
9324
9325         link: Update documentation.
9326         * doc/posix-functions/link.texi: Update regarding Solaris.
9327
9328 2010-07-31  Bruno Haible  <bruno@clisp.org>
9329
9330         Update modules list.
9331         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
9332         (String handling <string.h>): Add memcmp2, memxfrm.
9333         (Container data structures): Add xlist, xsublist, xoset.
9334         (Core language properties): Add alignof, unused-parameter.
9335         (Process control, Numeric conversion functions <stdlib.h>): Renamed
9336         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
9337         (Unibyte characters <ctype.h>): New section.
9338         (String handling <string.h>): New section.
9339         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
9340         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
9341         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
9342         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
9343         tan, tanh, tanl, y0, y1, yn.
9344         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
9345         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
9346         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
9347         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
9348         unlockpt, vdprintf, vdprintf-posix.
9349         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
9350         (File system functions): Add concat-filename, sys_file, sys_ioctl,
9351         xconcat-filename.
9352         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
9353         getdtablesize, pipe2, pipe2-safer.
9354         (Security): New section.
9355         (Networking functions): Add accept4.
9356         (Signal handling): Add sigpipe.
9357         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
9358         mbmemcasecoll.
9359         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
9360         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
9361         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
9362         pipe-filter-ii.
9363         (Misc): Add argp-version-etc, login_tty, parse-duration.
9364
9365 2010-07-31  Bruno Haible  <bruno@clisp.org>
9366
9367         Improve doc in MODULES.html.
9368         * modules/linkat (Description): Add the word "function".
9369         * modules/mkfifo (Description): Likewise.
9370         * modules/mknod (Description): Likewise.
9371         * modules/remove (Description): Likewise.
9372         * modules/renameat (Description): Likewise.
9373         * modules/stat (Description): Likewise.
9374         * modules/symlink (Description): Likewise.
9375         * modules/unlink (Description): Likewise.
9376
9377 2010-07-31  Bruno Haible  <bruno@clisp.org>
9378
9379         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
9380         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
9381         option --enable/disable-c++ instead of --enable/disable-cxx.
9382         * NEWS: Mention the change.
9383
9384 2010-07-31  Bruno Haible  <bruno@clisp.org>
9385
9386         readlink, areadlink: Relax test a bit.
9387         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
9388         alternative to ENOTDIR.
9389         * tests/test-areadlink.h (test_areadlink): Likewise.
9390         Reported by Rainer Tammer.
9391
9392 2010-07-31  Bruno Haible  <bruno@clisp.org>
9393
9394         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
9395         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
9396         character, perform the search using U_STRCHR.
9397         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
9398         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
9399         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
9400         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
9401         Suggested by Paolo Bonzini.
9402
9403 2010-07-31  Bruno Haible  <bruno@clisp.org>
9404
9405         unistr/u*-strstr: Fix dependencies.
9406         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
9407         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
9408         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
9409
9410 2010-07-31  Bruno Haible  <bruno@clisp.org>
9411
9412         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
9413         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
9414         the beginning of the loop.
9415         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
9416         cases in 'switch' statement.
9417
9418         unistr/u8-strchr: Fix several bugs.
9419         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
9420         the string. When not found, return NULL, not a pointer near the end.
9421
9422         More tests for unistr/u8-strchr.
9423         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
9424         that the function does not read past the first occurrence of the byte
9425         being searched.
9426         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
9427         * tests/unistr/test-u16-strchr.c (main): New function.
9428         * tests/unistr/test-u32-strchr.c (main): New function.
9429
9430 2010-07-31  Bruno Haible  <bruno@clisp.org>
9431
9432         posix-modules: Ignore backup files of documentation files.
9433         * posix-modules: grep only through files named *.texi.
9434
9435 2010-07-31  Bruno Haible  <bruno@clisp.org>
9436
9437         symlinkat: Fix documentation.
9438         * doc/posix-functions/readlinkat.texi: Fix module name.
9439
9440 2010-07-31  Bruno Haible  <bruno@clisp.org>
9441
9442         fchownat: Replace also when chown has the trailing slash bug.
9443         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
9444         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
9445         introduced on 2010-04-10.
9446         Reported by Rainer Tammer.
9447
9448 2010-07-31  Bruno Haible  <bruno@clisp.org>
9449
9450         linkat: Work around AIX 7.1 bug.
9451         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
9452         whether linkat handles trailing slash correctly. If not, replace linkat
9453         and define LINKAT_TRAILING_SLASH_BUG.
9454         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
9455         check whether (fd1,file1) points to a directory if file1 or file2 ends
9456         in a slash. Code taken from lib/link.c.
9457         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
9458         Reported by Rainer Tammer.
9459
9460 2010-07-31  Bruno Haible  <bruno@clisp.org>
9461
9462         Correctly determine whether pow is available in libc on AIX 7 with xlc.
9463         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
9464         This disables an xlc optimization that was causing wrong test results.
9465         Reported by Rainer Tammer.
9466
9467 2010-07-31  Bruno Haible  <bruno@clisp.org>
9468
9469         iconv: Work around AIX 6.1..7.1 bug.
9470         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
9471         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
9472         cross-compiling, guess no on all versions of AIX.
9473         Reported by Rainer Tammer.
9474
9475 2010-07-31  Bruno Haible  <bruno@clisp.org>
9476
9477         readlink: Relax test a bit.
9478         * tests/test-readlink.h (test_readlink): Allow different errno value
9479         when readlink is called with a file name that ends in / and refers to
9480         a file.
9481         Suggested by Eric Blake.
9482         Reported by Rainer Tammer.
9483
9484 2010-07-31  Bruno Haible  <bruno@clisp.org>
9485
9486         copysign: Does not require -lm on glibc systems.
9487         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
9488         gl_COMMON_DOUBLE_MATHFUNC.
9489         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
9490
9491 2010-07-31  Bruno Haible  <bruno@clisp.org>
9492
9493         duplocale: Work around AIX 7.1 bug.
9494         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
9495         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
9496         * lib/duplocale.c (rpl_duplocale): Update comment.
9497         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
9498         Reported by Rainer Tammer.
9499
9500 2010-07-30  Bruno Haible  <bruno@clisp.org>
9501
9502         dirfd: Avoid link error on AIX 7.1.
9503         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
9504         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
9505         exist, set REPLACE_DIRFD.
9506         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
9507         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
9508         * doc/posix-functions/dirfd.texi: Update.
9509         Reported by Rainer Tammer.
9510
9511 2010-07-30  Eric Blake  <eblake@redhat.com>
9512
9513         strtod: next round of AIX fixes
9514         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
9515         exponent.
9516         * tests/test-strtod.c (main): Enhance tests.
9517         * doc/posix-functions/strtod.texi (strtod): Document next bug.
9518         Reported by Rainer Tammer.
9519
9520         futimens: fix configure check
9521         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
9522         Reported by Bruno Haible.
9523
9524 2010-07-30  Bruno Haible  <bruno@clisp.org>
9525
9526         getline: Update regarding AIX.
9527         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
9528         Reported by Rainer Tammer.
9529
9530 2010-07-30  Bruno Haible  <bruno@clisp.org>
9531
9532         wcwidth: Drop replacement on AIX 7.
9533         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
9534         AIX 7.
9535         Reported by Rainer Tammer.
9536
9537 2010-07-30  Bruno Haible  <bruno@clisp.org>
9538
9539         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
9540         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
9541         a 'char *'.
9542         Reported by Rainer Tammer.
9543
9544 2010-07-30  Bruno Haible  <bruno@clisp.org>
9545
9546         unlink: Update regarding AIX.
9547         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
9548         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
9549         Reported by Rainer Tammer.
9550
9551 2010-07-30  Bruno Haible  <bruno@clisp.org>
9552
9553         symlink: Update regarding AIX.
9554         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
9555         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
9556         Reported by Rainer Tammer.
9557
9558 2010-07-30  Bruno Haible  <bruno@clisp.org>
9559
9560         strndup: Update regarding AIX.
9561         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
9562         AIX 7.
9563         Reported by Rainer Tammer.
9564
9565 2010-07-30  Bruno Haible  <bruno@clisp.org>
9566
9567         stat: Update regarding AIX.
9568         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
9569         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
9570         Reported by Rainer Tammer.
9571
9572 2010-07-30  Bruno Haible  <bruno@clisp.org>
9573
9574         truncl: Fix autoconf test.
9575         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
9576         whether truncl works.
9577         Reported by Rainer Tammer.
9578
9579 2010-07-30  Bruno Haible  <bruno@clisp.org>
9580
9581         round: Update regarding AIX.
9582         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
9583         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
9584         Reported by Rainer Tammer.
9585
9586 2010-07-30  Bruno Haible  <bruno@clisp.org>
9587
9588         rename: Update regarding AIX.
9589         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
9590         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
9591         Reported by Rainer Tammer.
9592
9593 2010-07-30  Bruno Haible  <bruno@clisp.org>
9594
9595         printf.m4: Update regarding AIX.
9596         * m4/printf.m4: Update comments regarding AIX.
9597         Reported by Rainer Tammer.
9598
9599 2010-07-30  Bruno Haible  <bruno@clisp.org>
9600
9601         iconv: Update regarding AIX.
9602         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
9603         AIX 7.
9604         Reported by Rainer Tammer.
9605
9606 2010-07-30  Bruno Haible  <bruno@clisp.org>
9607
9608         getopt: Update regarding AIX.
9609         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
9610         no on AIX.
9611         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
9612         Reported by Rainer Tammer.
9613
9614 2010-07-30  Bruno Haible  <bruno@clisp.org>
9615
9616         ldexpl; Update regarding AIX.
9617         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
9618         on AIX 7.
9619         Reported by Rainer Tammer.
9620
9621 2010-07-30  Bruno Haible  <bruno@clisp.org>
9622
9623         frexpl: Update regarding AIX.
9624         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
9625         on AIX 7.
9626         Reported by Rainer Tammer.
9627
9628 2010-07-30  Bruno Haible  <bruno@clisp.org>
9629
9630         open, fopen: Update regarding AIX.
9631         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
9632         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
9633         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
9634         * doc/posix-functions/fopen.texi: Likewise.
9635         Reported by Rainer Tammer.
9636
9637 2010-07-30  Bruno Haible  <bruno@clisp.org>
9638
9639         chown: Update doc regarding AIX.
9640         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
9641         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
9642         Reported by Rainer Tammer.
9643
9644 2010-07-30  Eric Blake  <eblake@redhat.com>
9645
9646         strtod: fix bug in replacement function on AIX
9647         * lib/strtod.c (strtod): Special case broken "0x" parse in
9648         underlying strtod.
9649         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
9650         * doc/posix-functions/strtod.texi (strtod): Likewise.
9651         Reported by Rainer Tammer.
9652
9653 2010-07-30  Bruno Haible  <bruno@clisp.org>
9654
9655         mbrlen: Fix cross-compilation guess for AIX.
9656         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
9657         guess. Leftover from 2008-12-22.
9658
9659 2010-07-30  Bruno Haible  <bruno@clisp.org>
9660
9661         mbrtowc: Fix cross-compilation guess for AIX.
9662         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
9663         guess. Leftover from 2008-12-21.
9664
9665 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
9666
9667         init.sh: work around trap limitation of some shells
9668         * tests/init.sh (setup_): Move exit trap outside of shell function.
9669
9670 2010-07-29  Eric Blake  <eblake@redhat.com>
9671
9672         strtod: aid debugging
9673         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
9674         understanding why strtod is rejected.
9675
9676 2010-07-28  Bruno Haible  <bruno@clisp.org>
9677
9678         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
9679         * lib/unistr/u8-chr.c: Include <string.h>.
9680         * tests/unistr/test-u8-chr.c: Likewise.
9681         * tests/unistr/test-u16-chr.c: Likewise.
9682         * tests/unistr/test-u32-chr.c: Likewise.
9683         * tests/unistr/test-u8-strchr.c: Likewise.
9684         * tests/unistr/test-u16-strchr.c: Likewise.
9685         * tests/unistr/test-u32-strchr.c: Likewise.
9686         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
9687         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
9688         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
9689         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
9690
9691 2010-07-28  Bruno Haible  <bruno@clisp.org>
9692
9693         Use spaces for indentation, not tabs.
9694         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
9695
9696 2010-07-27  Bruno Haible  <bruno@clisp.org>
9697
9698         mbspcasecmp: Fix function specification.
9699         * lib/string.in.h (mbspcasecmp): Fix specification comment.
9700         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
9701         Reported by Eric Blake <eblake@redhat.com>.
9702
9703 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
9704
9705         timespec: use cast and not conditional, as truncation isn't possible
9706         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
9707         instead of a conditional.  Comment about the situation in more detail.
9708         This undoes most of the 2009-10-29 patch.
9709
9710 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
9711
9712         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
9713         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
9714         * lib/unistr/u8-strchr.c: Likewise.
9715         * modules/unistr/u8-chr: Depend on memchr.
9716
9717         unistr/u*-strchr: add tests
9718         * modules/unistr/u8-strchr-tests: New file.
9719         * modules/unistr/u16-strchr-tests: New file.
9720         * modules/unistr/u32-strchr-tests: New file.
9721         * tests/unistr/test-strchr.h: New file.
9722         * tests/unistr/test-u8-strchr.c: New file.
9723         * tests/unistr/test-u16-strchr.c: New file.
9724         * tests/unistr/test-u32-strchr.c: New file.
9725
9726         unistr/u*-chr: test multibyte sequences more
9727         * tests/unistr/test-chr.h: Do complete testing of the characters in the
9728         test vector.
9729         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
9730         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
9731         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
9732
9733         unistr/u*-chr: test multibyte sequences
9734         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
9735
9736         unistr/u*-chr: prepare for multibyte tests
9737         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
9738         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
9739         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
9740         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
9741         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
9742         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
9743
9744 2010-07-18  Bruno Haible  <bruno@clisp.org>
9745
9746         unistr/u8-strchr: Optimize non-ASCII argument case.
9747         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
9748         because the first byte often matches anyway.
9749         Reported by Pádraig Brady <P@draigbrady.com>.
9750
9751 2010-07-15  Karl Berry  <karl@gnu.org>
9752
9753         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
9754
9755 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
9756
9757         getcwd: on Solaris, work better if ancestors are inaccessible
9758         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
9759         buffer and size, try again with a large buffer.  This works better
9760         on Solaris, since its getcwd succeeds even if the path to the root
9761         is inaccessible, and this is helpful in common cases such as .zfs
9762         hidden directories.  Problem reported by J Chapman Flack in
9763         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
9764         Use system getcwd if it's declared, not merely if it's partly
9765         working; use the partly-working test only to avoid needless effort
9766         if the system getcwd fails.
9767         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
9768         comment that was already obsolete and is now even more obsolete.
9769         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
9770         now might call strdup.
9771
9772 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
9773
9774         pthread: Add enough so that coreutils/src/sort.c compiles.
9775         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
9776         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
9777         gnulib. Include <sched.h> and <time.h>, as per POSIX.
9778         Include <sys/types.h>, in case it defines pthread_t.
9779         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
9780         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
9781         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
9782         (pthread_rwlockattr_t, pthread_spinlock_t):
9783         New typedefs, if HAVE_PTHREAD_T is not defined.
9784         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
9785         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
9786         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
9787         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
9788         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
9789         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
9790         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
9791         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
9792         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
9793         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
9794         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
9795         New macros.
9796         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
9797         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
9798         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
9799         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
9800         (pthread_spin_unlock): New dummy functions.
9801         (pthread_create): Return EAGAIN; don't set errno.
9802         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
9803         require AC_C_INLINE.
9804         * modules/pthread (Depends-on): Add sched, time.
9805         (pthread.h): Use AM_V_GEN.
9806
9807 2010-07-13  Bruno Haible  <bruno@clisp.org>
9808
9809         striconveh: Don't malloc memory if the result buffer is sufficient.
9810         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
9811         buffer if its size is sufficient.
9812         Reported by Ludovic Courtès <ludo@gnu.org>.
9813
9814 2010-07-13  Bruno Haible  <bruno@clisp.org>
9815
9816         strtod: Add safety check.
9817         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
9818
9819 2010-07-12  Bruno Haible  <bruno@clisp.org>
9820
9821         Unify tests that set gl_cv_func_ldexpl_no_libm.
9822         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
9823         gl_FUNC_LDEXPL.
9824         (gl_FUNC_LDEXPL): Invoke it.
9825         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9826
9827 2010-07-12  Bruno Haible  <bruno@clisp.org>
9828
9829         Unify tests that set gl_cv_func_ldexp_no_libm.
9830         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
9831         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
9832         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
9833         (configure.ac): Simply invoke gl_FUNC_LDEXP.
9834         * modules/strtod (Files): Add m4/ldexp.m4.
9835
9836 2010-07-12  Bruno Haible  <bruno@clisp.org>
9837
9838         Unify tests that set gl_cv_func_frexpl_no_libm.
9839         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
9840         gl_FUNC_FREXPL_NO_LIBM.
9841         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
9842         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9843
9844 2010-07-12  Bruno Haible  <bruno@clisp.org>
9845
9846         Unify tests that set gl_cv_func_frexp_no_libm.
9847         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
9848         gl_FUNC_FREXP_NO_LIBM.
9849         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
9850         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
9851
9852 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
9853
9854         memcoll: clarify sizes versus lengths, document better, and tweak perf
9855         * lib/memcoll.c (strcoll_loop, memcoll0):
9856         Improve quality of descriptive comments.  Name variables
9857         consistently as to whether they are lengths (which do not include
9858         terminating null) versus sizes (which do).
9859         * lib/xmemcoll.c (xmemcoll0): Likewise.
9860         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
9861         returned when s1size == 0; this is easier to compile and saves
9862         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
9863
9864 2010-07-12  Bruno Haible  <bruno@clisp.org>
9865
9866         Tests for module '_Exit'.
9867         * modules/_Exit-tests: New file.
9868         * tests/test-_Exit.sh: New file.
9869         * tests/test-_Exit.c: New file.
9870
9871         New module '_Exit'.
9872         * lib/stdlib.in.h (__attribute__): New macro.
9873         (_Exit): New declaration.
9874         * lib/_Exit.c: New file.
9875         * m4/_Exit.m4: New file.
9876         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
9877         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
9878         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
9879         * modules/_Exit: New file.
9880         * tests/test-stdlib-c++.cc (_Exit): Check signature.
9881         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
9882
9883 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
9884
9885         strtod: make it more-accurate typically, and don't require libm
9886         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
9887         Include limits.h.  Don't include string.h.
9888         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
9889         (locale_isspace): New function, so that no casts are needed to
9890         check whether *s is a space.
9891         (ldexp): Provide an unused dummy if not available.
9892         (scale_radix_exp, parse_number, underlying_strtod): New functions.
9893         (strtod): Use them.  This implementation prefers to use the
9894         underlying strtod if available, falling back on our own code
9895         only to fix known bugs.  This is more likely to produce an
9896         accurate result.  Also, it avoids the use of libm functions.
9897         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
9898         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
9899         was absent, but it caused a test failure with coreutils.
9900         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
9901         with libm.
9902         * modules/strtod (Makefile.am, Link): libm is no longer needed.
9903         * modules/strtod-tests (Makefile.am): Likewise.
9904
9905 2010-07-11  Pádraig Brady  <P@draigBrady.com>
9906             Bruno Haible  <bruno@clisp.org>
9907
9908         unistr/u8-strchr: Optimize ASCII argument case.
9909         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
9910
9911 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
9912
9913         (x)memcoll: minor tweaks
9914         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
9915         is after the type that it qualifies.
9916         (memcoll0): Likewise.
9917         * lib/memcoll.h (memcoll0): Likewise.
9918         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
9919         * lib/xmemcoll.h (xmemcoll0): Likewise.
9920         * lib/memcoll.c (memcoll0): Correct the comment.  This function
9921         differs from memcoll in that the NUL byte is part of the argument.
9922         Omit the abort-checks, as performance is a real issue here.  Plus,
9923         the checks were wrong anyway (an off-by-one error).  Omit local
9924         variable 'diff', as it's a bit clearer that way.
9925         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
9926         no longer needed.
9927
9928 2010-07-08  Chen Guo <chenguo4@yahoo.com>
9929
9930         (x)memcoll: speedup when input is known to be NUL delimited
9931         * lib/memcoll.c: Include stdlib.
9932         (memcoll0) New function.
9933         (strcoll_loop) New function, refactored for use in both memcoll
9934         and memcoll0.
9935         * lib/memcoll.h: Add prototype for memcoll0.
9936         * lib/xmemcoll.c: (xmemcoll0) New function.
9937         (collate_error) New function, refactored for use in both xmemcoll
9938         and xmemcoll0.
9939         * lib/xmemcoll.h: Add prototype for xmemcoll0.
9940         * m4/memcoll.m4: add inline invocation.
9941
9942 2010-07-06  Pádraig Brady  <P@draigBrady.com>
9943
9944         * build-aux/bootstrap: Remove any local translations
9945         from the translation project synchronization directory,
9946         so that local only translations are not distributed.
9947
9948 2010-07-04  Bruno Haible  <bruno@clisp.org>
9949
9950         fsusage: Clarify which code applies to which platforms.
9951         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
9952         platform.
9953         * lib/fsusage.c (get_fs_usage): Likewise.
9954
9955 2010-07-04  Bruno Haible  <bruno@clisp.org>
9956
9957         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
9958         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
9959         Reported by Martin Lambers <marlam@marlam.de>.
9960
9961 2010-07-04  Jim Meyering  <meyering@redhat.com>
9962
9963         hash: once again explicitly disallow insertion of NULL
9964         * lib/hash.c (hash_insert0): Reinstate just-removed test:
9965         inserting a NULL pointer cannot work with these functions.
9966         Add a comment with details.
9967         This reverts part of the 2010-07-01 commit, 5bef1a35
9968         "hash: extend module to deal with non-pointer keys".
9969
9970 2010-07-01  Bruno Haible  <bruno@clisp.org>
9971
9972         stdbool: Update doc.
9973         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
9974         Info from Christian Weisgerber <naddy@mips.inka.de>.
9975
9976 2010-07-01  Jim Meyering  <meyering@redhat.com>
9977
9978         hash: extend module to deal with non-pointer keys
9979         * lib/hash.c (hash_insert0): New interface, much like hash_insert
9980         but that allows insertion of non-pointer entries.
9981         Do not disallow an ENTRY value of NULL.
9982         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
9983         * lib/hash.h (hash_insert0): Declare.
9984
9985 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9986
9987         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
9988         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
9989         not present (i.e. with autoconf 2.59 and when using gettextize, not
9990         gnulib), require AC_GNU_SOURCE instead.
9991
9992 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
9993
9994         idpriv-drop: Fix tests.
9995         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
9996         not to the test-idpriv-droptemp program.
9997
9998 2010-06-29  Bruno Haible  <bruno@clisp.org>
9999
10000         string: Fix syntax error with g++ 2.96.
10001         * lib/string.in.h (__pure__): Remove definition.
10002         (_GL_ATTRIBUTE_PURE): New macro.
10003         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
10004         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
10005         Reported by Christian Weisgerber <naddy@mips.inka.de>.
10006
10007 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
10008
10009         unitypes: Fix bug introduced on 2010-05-18.
10010         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
10011
10012 2010-06-22  Eric Blake  <eblake@redhat.com>
10013
10014         memmem: slight optimization
10015         * lib/str-two-way.h (critical_factorization): Update comments.
10016         Reduce work during factorization phase.
10017         Reported by Carlos Bueno <carlos@bueno.org>.
10018
10019 2010-06-21  Bruno Haible  <bruno@clisp.org>
10020
10021         Fix HAVE_CALLOC_POSIX misnomer.
10022         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
10023         !HAVE_CALLOC_POSIX.
10024         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
10025         HAVE_CALLOC_POSIX.
10026         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
10027         instead of HAVE_CALLOC_POSIX.
10028         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
10029         HAVE_CALLOC_POSIX.
10030
10031         Use modern idiom for calloc() replacement.
10032         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
10033         AC_FUNC_CALLOC.
10034         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
10035         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
10036         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10037         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
10038         (gl_REPLACE_CALLOC): New macro.
10039
10040 2010-06-21  Bruno Haible  <bruno@clisp.org>
10041
10042         Fix HAVE_REALLOC_POSIX misnomer.
10043         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
10044         !HAVE_REALLOC_POSIX.
10045         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
10046         HAVE_REALLOC_POSIX.
10047         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
10048         instead of HAVE_REALLOC_POSIX.
10049         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
10050         HAVE_REALLOC_POSIX.
10051
10052         Use modern idiom for realloc() replacement.
10053         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
10054         AC_FUNC_REALLOC.
10055         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
10056         Autoconf's AC_FUNC_REALLOC.
10057         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10058         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
10059         (gl_REPLACE_REALLOC): New macro.
10060         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
10061
10062 2010-06-21  Bruno Haible  <bruno@clisp.org>
10063
10064         Fix HAVE_MALLOC_POSIX misnomer.
10065         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
10066         !HAVE_MALLOC_POSIX.
10067         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
10068         HAVE_MALLOC_POSIX.
10069         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
10070         instead of HAVE_MALLOC_POSIX.
10071         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
10072         HAVE_MALLOC_POSIX.
10073
10074         Use modern idiom for malloc() replacement.
10075         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
10076         AC_FUNC_MALLOC.
10077         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
10078         Autoconf's AC_FUNC_MALLOC.
10079         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10080         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
10081         (gl_REPLACE_MALLOC): New macro.
10082         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
10083
10084 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
10085
10086         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
10087         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
10088         This macro takes 3 arguments, not 4.
10089
10090 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
10091
10092         ipv6: fix detection under mingw
10093         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
10094         in6_addr.
10095
10096 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
10097
10098         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
10099         that strtod() works when cross-compiling to a glibc version known
10100         to work.
10101
10102 2010-06-15  Bruno Haible  <bruno@clisp.org>
10103
10104         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
10105
10106 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
10107
10108         select: Correct timeout.
10109         * lib/select.c (rpl_select): Compute wait_timeout correctly.
10110
10111 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
10112
10113         git-version-gen: init shell var to avoid env var influence
10114         * build-aux/git-version-gen (v): Init shell var to empty.
10115
10116 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
10117
10118         priv-set: Don't assume that priv.h exists merely because getppriv does.
10119         See Jan Andersen's bug report about AIX 5L in
10120         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
10121         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
10122         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
10123         * lib/priv-set.h: Likewise.
10124         * tests/test-priv-set.c: Likewise.
10125
10126 2010-06-13  Bruno Haible  <bruno@clisp.org>
10127
10128         relocatable: Make it easier to test whether to install wrappers.
10129         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
10130         RELOCATABLE_VIA_WRAPPER.
10131
10132 2010-06-13  Bruno Haible  <bruno@clisp.org>
10133
10134         gnulib-tool: Display specified modules and dependencies differently.
10135         * gnulib-tool (func_show_module_list): New function.
10136         (func_import, func_create_testdir): Invoke it.
10137         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
10138
10139 2010-06-13  Bruno Haible  <bruno@clisp.org>
10140
10141         gnulib-tool: Align code of func_import and func_create_testdir.
10142         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
10143         specified_modules.
10144
10145 2010-06-12  Jim Meyering  <meyering@redhat.com>
10146
10147         test-inttostr: avoid spurious failure on Solaris 9
10148         * tests/test-inttostr.c (main): Skip the test when snprintf fails
10149         to accept "%ju".  Reported by Bruno Haible.
10150
10151 2010-06-11  Jim Meyering  <meyering@redhat.com>
10152
10153         test-sys_socket: mark variables as used more readably
10154         * tests/test-sys_socket.c (main): Mark otherwise unused variables
10155         as "used" explicitly via (void) statement casts.  This is more
10156         readable than using them in an artificial return expression.
10157         Suggestion from Bruno Haible.
10158
10159 2010-06-11  Bruno Haible  <bruno@clisp.org>
10160
10161         Avoid some more warnings from "gcc -Wwrite-strings".
10162         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
10163         to 'const char *'.
10164         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
10165         * tests/test-c-strcasestr.c (main): Likewise.
10166         * tests/test-mbscasestr1.c (main): Likewise.
10167         * tests/test-mbscasestr2.c (main): Likewise.
10168         * tests/test-memmem.c (main): Likewise.
10169         * tests/test-strstr.c (main): Likewise.
10170         * tests/test-strcasestr.c (main): Likewise.
10171
10172 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10173
10174         init.sh: change framework_failure_ to fail with status 99, not 1
10175         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
10176         automake's parallel-tests rule that this is an unexpected failure,
10177         even if the test is listed in XFAIL_TESTS.
10178
10179 2010-06-11  Jim Meyering  <meyering@redhat.com>
10180
10181         test-inttostr: avoid warnings about 4-6KB literal strings
10182         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
10183         Include "macros.h", for its definition of ASSERT.
10184         (CK): s/assert/ASSERT/
10185         * modules/inttostr-tests (Files): Add macros.h.
10186
10187         init.sh: don't use $ME_ or skip_ before they are defined
10188         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
10189         their first uses.  Also hoist their companions: warn_, fail_,
10190         framework_failure_, $stderr_fileno.  Prompted by a patch from
10191         Stefano Lattarini.
10192
10193         test-sys_socket: avoid set-but-not-used warnings from gcc
10194         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
10195         avoid warning about set-but-not-used variables.
10196
10197         test-xvasprintf: avoid 'const' discard warnings
10198         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
10199         "const" when assigning from literal strings.
10200         (test_xasprintf): Add "void" in function argument list to placate
10201         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
10202
10203         tests: avoid compilation warnings in argmatch and exclude tests...
10204         in packages that define ARGMATCH_DIE_DECL, like coreutils.
10205         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
10206         Since it always exits, declare with the "noreturn" attribute.
10207         * tests/test-argmatch.c: Likewise.
10208
10209         tests: avoid 'const' discard warnings in mbsstr tests
10210         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
10211         * tests/test-mbsstr2.c (main): Likewise.
10212
10213         test-verify: avoid warning from gcc's -Wmissing-declarations
10214         * tests/test-verify.c (function): Declare to be static.
10215
10216         test-inttostr.c: include <string.h> for use of strcmp
10217         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
10218
10219         test-linkat: avoid failed assertion on "other" architectures
10220         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
10221         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
10222         sparc: https://bugs.launchpad.net/bugs/591968
10223
10224 2010-06-11  Jim Meyering  <meyering@redhat.com>
10225
10226         printf.m4: avoid autoconf's "Expanded Before Required" warning
10227         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
10228         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
10229         autoconf warning.
10230
10231 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
10232
10233         Replacement header templates are now named with ".in", not "_".
10234         * doc/gnulib-intro.texi: Correct.
10235
10236 2010-06-10  Jim Meyering  <meyering@redhat.com>
10237
10238         inttostr-tests: depend on snprintf, not snprintf-posix
10239         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
10240         snprintf-posix, to avoid this aclocal failure:
10241           missing file gnulib-tests/vasnprintf.c
10242           configure.ac:45: error: expected source file, required through \
10243           AC_LIBSOURCES, not found
10244
10245 2010-06-10  Jim Meyering  <meyering@redhat.com>
10246
10247         inttostr: add a new function, inttostr, and tests
10248         The namesake function was not available.  The existence of the
10249         template file, inttostr.c makes its addition nontrivial.
10250         * lib/anytostr.c: Rename from inttostr.c.
10251         (anytostr): Rename from inttostr.
10252         * lib/inttostr.c: New file.
10253         * modules/inttostr (Files): Add anytostr.c.
10254         (Makefile.am): Set lib_SOURCES instead of ...
10255         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
10256         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
10257         * lib/offtostr.c: Likewise.
10258         * lib/uinttostr.c: Likewise.
10259         * lib/umaxtostr.c: Likewise.
10260         * modules/inttostr-tests: New file.
10261         * tests/test-inttostr.c: New file.  Test these functions.
10262
10263 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
10264             Bruno Haible  <bruno@clisp.org>
10265
10266         Add "Extending Gnulib" chapter to manual.
10267         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
10268         chapter.
10269         (Extending Gnulib): New chapter.
10270         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
10271         chapter.
10272
10273 2010-06-09  Bruno Haible  <bruno@clisp.org>
10274
10275         Avoid relocwrapper link errors due to gnulib replacement functions.
10276         * lib/areadlink.c: Use the system's malloc, realloc functions.
10277         (areadlink): Set errno to ENOMEM explicitly.
10278         * modules/areadlink (Depends-on): Remove malloc-posix.
10279         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10280
10281 2010-06-09  Bruno Haible  <bruno@clisp.org>
10282
10283         Avoid relocwrapper link errors due to gnulib replacement functions.
10284         * lib/canonicalize-lgpl.c: Use the system's malloc function.
10285         * lib/malloca.c: Likewise.
10286         * lib/relocatable.c: Likewise.
10287         * lib/progreloc.c: Use the system's malloc, sprintf functions.
10288         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
10289         * lib/setenv.c: Use the system's malloc, realloc functions.
10290         * lib/strerror.c: Use the system's sprintf function.
10291         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10292
10293 2010-06-04  Bruno Haible  <bruno@clisp.org>
10294
10295         Prefer documented low-level autoconf macro names.
10296         * m4/lib-link.m4: Use m4_translit instead of translit.
10297         * m4/environ.m4: Likewise.
10298         * m4/mathfunc.m4: Likewise.
10299         * m4/onceonly.m4: Likewise.
10300         * m4/stdint.m4: Likewise.
10301         Suggested by Eric Blake.
10302
10303 2010-06-04  Martin Lambers  <marlam@marlam.de>
10304             Bruno Haible  <bruno@clisp.org>
10305
10306         havelib: Allow library names with '+' characters.
10307         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
10308         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
10309
10310 2010-06-09  Bruno Haible  <bruno@clisp.org>
10311
10312         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
10313         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
10314         realloc failed.
10315
10316 2010-06-08  Peter Simons  <simons@cryp.to>
10317
10318         maint.mk: make the news-check rule more configurable
10319         * top/maint.mk (news-check-lines-spec) New variable.
10320         (news-check): Use "sed -n 1,10p" in place of "head".
10321
10322 2010-06-07  Jim Meyering  <meyering@redhat.com>
10323
10324         do-release-commit-and-tag: fix typo in --help
10325         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
10326
10327         regex: avoid new dead-code warning with gcc-4.6.0
10328         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
10329         if-block containing a while-loop.  It's been unused for at least
10330         5 years.
10331
10332 2010-06-05  Bruno Haible  <bruno@clisp.org>
10333
10334         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
10335         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
10336
10337 2010-06-04  Bruno Haible  <bruno@clisp.org>
10338
10339         Update to GNU gettext 0.18.1.
10340         * modules/gettext (configure.ac): Require gettext infrastructure from
10341         version 0.18.1.
10342
10343 2010-06-03  Bruno Haible  <bruno@clisp.org>
10344
10345         Don't use AC_LIBOBJ with file names in subdirectories.
10346         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
10347         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
10348         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
10349         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
10350         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
10351         gl_LIBUNISTRING_LIBSOURCE.
10352         (Makefile.am): Augment lib_SOURCES here, conditionally.
10353         * NEWS: Drop requirement for Automake option 'subdir-objects'.
10354
10355 2010-06-03  Bruno Haible  <bruno@clisp.org>
10356
10357         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
10358         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
10359         expansion does not end with a newline.
10360         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
10361         unnecessary newline.
10362
10363 2010-06-03  Bruno Haible  <bruno@clisp.org>
10364
10365         Reduce dependencies.
10366         * tests/test-quotearg.h: New file, extracted from
10367         tests/test-quotearg.c.
10368         * tests/test-quotearg-simple.c: New file, extracted from
10369         tests/test-quotearg.c.
10370         * tests/test-quotearg.c: Don't include <ctype.h>.
10371         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
10372         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
10373         use_quote_double_quotes, use_quotearg_colon): Moved to
10374         tests/test-quotearg.h.
10375         (results_g, flag_results, custom_quotes, custom_results): Moved
10376         to tests/test-quotearg-simple.c.
10377         (main): Moved the part that does not depend on gettext to
10378         tests/test-quotearg-simple.c. Return 77 if the test cannot be
10379         performed.
10380         * modules/quotearg-simple: New file.
10381         * modules/quotearg-simple-tests: New file.
10382         * modules/quotearg (Depends-on): Add quotearg-simple.
10383         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
10384         (Files): Add tests/test-quotearg.h.
10385         Reported by Paolo Bonzini.
10386
10387 2010-06-03  Bruno Haible  <bruno@clisp.org>
10388
10389         Reduce dependencies.
10390         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
10391
10392 2010-06-03  Bruno Haible  <bruno@clisp.org>
10393
10394         time: Undefine more broken macros.
10395         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
10396         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
10397         Reported by Eric Blake.
10398
10399 2010-06-03  Bruno Haible  <bruno@clisp.org>
10400
10401         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
10402         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
10403         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
10404         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
10405         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
10406         Reported by Ludovic Courtès <ludo@gnu.org>.
10407
10408 2010-06-02  Eric Blake  <eblake@redhat.com>
10409
10410         time: work with mingw + pthreads-win32 library
10411         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
10412         if timespec is defined only in pthread.h.
10413         * modules/time (Makefile.am): Substitute it.
10414         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
10415         <pthread.h>, when needed.
10416         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
10417         from the library.
10418
10419 2010-05-31  Bruno Haible  <bruno@clisp.org>
10420
10421         Avoid expanding two macros in the wrong order.
10422         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
10423         gl_LIBUNISTRING if it is defined.
10424         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
10425         autoconf >= 2.64.
10426         Reported by Ludovic Courtès <ludo@gnu.org>.
10427
10428 2010-05-27  Jim Meyering  <meyering@redhat.com>
10429
10430         maint.mk: also prohibit "#undef" of always-defined symbols
10431         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
10432         Allow more than one space before the symbol name.
10433         (sc_prohibit_always-defined_macros): Use grep's -E, now that
10434         the regexp uses alternation.
10435
10436 2010-05-26  Eric Blake  <eblake@redhat.com>
10437
10438         maint.mk: avoid echo -e
10439         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
10440         Convert all uses of echo -* to printf.
10441         Reported by Matthias Bolte.
10442
10443 2010-05-25  Bruno Haible  <bruno@clisp.org>
10444
10445         Update to GNU gettext 0.18, part 2.
10446         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
10447         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
10448
10449 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10450
10451         Add missing include in test-pwrite.c.
10452         * tests/test-pwrite.c: Include string.h, for strcmp.
10453
10454 2010-05-24  Bruno Haible  <bruno@clisp.org>
10455
10456         * NEWS: Mention requirement for Automake option 'subdir-objects'.
10457
10458 2010-05-24  Bruno Haible  <bruno@clisp.org>
10459
10460         Don't use conversion with transliteration in u{8,16,32}_strcoll.
10461         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
10462         iconveh_error argument.
10463         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
10464         U_STRCONV_TO_LOCALE.
10465         * lib/unistr/u16-strcoll.c: Likewise.
10466         * lib/unistr/u32-strcoll.c: Likewise.
10467         * modules/unistr/u8-strcoll (Depends-on): Add
10468         uniconv/u8-strconv-to-enc, localcharset. Remove
10469         uniconv/u8-strconv-to-locale.
10470         (configure.ac): Bump version number.
10471         * modules/unistr/u16-strcoll (Depends-on): Add
10472         uniconv/u16-strconv-to-enc, localcharset. Remove
10473         uniconv/u16-strconv-to-locale.
10474         (configure.ac): Bump version number.
10475         * modules/unistr/u32-strcoll (Depends-on): Add
10476         uniconv/u32-strconv-to-enc, localcharset. Remove
10477         uniconv/u32-strconv-to-locale.
10478         (configure.ac): Bump version number.
10479
10480 2010-05-24  Bruno Haible  <bruno@clisp.org>
10481
10482         Avoid a test failure on NetBSD 5.0.
10483         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
10484         an iconv() bug.
10485
10486 2010-05-24  Bruno Haible  <bruno@clisp.org>
10487
10488         Adjust #include directive style.
10489         * modules/regex (Includes): Recommend to write <regex.h>.
10490
10491 2010-05-24  Bruno Haible  <bruno@clisp.org>
10492
10493         regex: Don't require alloca.
10494         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
10495         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
10496         only inside if (0).
10497
10498 2010-05-23  Jim Meyering  <meyering@redhat.com>
10499
10500         test-renameat.c: include <sys/stat.h>
10501         * tests/test-renameat.c: Include <sys/stat.h>; required for
10502         definition of S_IS* macros.
10503
10504 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
10505
10506         Update maintainer documentation for 'relocatable-prog' module.
10507         * doc/relocatable-maint.texi: Update.
10508         Comments by Bruno Haible.
10509
10510 2010-05-23  Bruno Haible  <bruno@clisp.org>
10511
10512         git-merge-changelog: Enable --split-merged-entry by default.
10513         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
10514         (usage): Don't mention this option any more.
10515         Reported by Ralf Wildenhues.
10516
10517 2010-05-23  Jim Meyering  <meyering@redhat.com>
10518
10519         test-pwrite: do not leave behind a test file named "out"
10520         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
10521         The trivial-looking use of init.sh is really necessary.
10522         It ensures that the temporary file, "out", is created in
10523         a temporary directory, and removed upon termination.
10524         * tests/test-pwrite.sh: Re-add file.
10525         * modules/pwrite-tests: Reference it.
10526
10527 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10528
10529         Fix output redirection buglet in init.sh.
10530         * tests/init.sh: Fix redirection of stderr.
10531
10532 2010-05-20  Simon Josefsson  <simon@josefsson.org>
10533
10534         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
10535
10536 2010-05-17  Simon Josefsson  <simon@josefsson.org>
10537
10538         * modules/valgrind-tests: New file.
10539         * m4/valgrind-tests.m4: New file.
10540         * doc/valgrind-tests.texi: New file.
10541         * doc/gnulib.texi (Running self-tests under valgrind): New
10542         section.
10543
10544 2010-05-19  Bruno Haible  <bruno@clisp.org>
10545
10546         Clean up dead code in recent commit.
10547         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
10548         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
10549         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
10550         Suggested by Paolo Bonzini.
10551
10552 2010-05-19  Bruno Haible  <bruno@clisp.org>
10553
10554         Avoid valgrind error reports from libunistring.
10555         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
10556         * modules/libunistring (Files): Add it.
10557         * modules/libunistring-optional (Files): Likewise.
10558
10559 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
10560             Bruno Haible  <bruno@clisp.org>
10561
10562         New module 'libunistring-optional'.
10563         * modules/libunistring-optional: New file.
10564         * m4/libunistring-base.m4: New file.
10565         * m4/libunistring-optional.m4: New file.
10566         * lib/unicase.in.h: Renamed from lib/unicase.h.
10567         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
10568         * lib/unictype.in.h: Renamed from lib/unictype.h.
10569         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
10570         * lib/uniname.in.h: Renamed from lib/uniname.h.
10571         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
10572         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
10573         * lib/unistr.in.h: Renamed from lib/unistr.h.
10574         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
10575         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
10576         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
10577         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
10578         gl_LIBUNISTRING. If the library was found, determine the installed
10579         version and set LIBUNISTRING_VERSION.
10580         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
10581         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
10582         handle a configuration option --with-included-libunistring.
10583         * modules/libunistring (Files): Add m4/absolute-header.m4.
10584         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
10585         Add m4/libunistring-base.m4.
10586         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10587         (Makefile.am): Build unicase.h from unicase.in.h.
10588         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
10589         Add m4/libunistring-base.m4.
10590         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10591         (Makefile.am): Build uniconv.h from uniconv.in.h.
10592         * modules/unictype/base (Files): Use unictype.in.h instead of
10593         unictype.h. Add m4/libunistring-base.m4.
10594         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10595         (Makefile.am): Build unictype.h from unictype.in.h.
10596         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
10597         Add m4/libunistring-base.m4.
10598         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10599         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
10600         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
10601         Add m4/libunistring-base.m4.
10602         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10603         (Makefile.am): Build uniname.h from uniname.in.h.
10604         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
10605         Add m4/libunistring-base.m4.
10606         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10607         (Makefile.am): Build uninorm.h from uninorm.in.h.
10608         * modules/unistdio/base (Files): Use unistdio.in.h instead of
10609         unistdio.h. Add m4/libunistring-base.m4.
10610         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10611         (Makefile.am): Build unistdio.h from unistdio.in.h.
10612         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
10613         Add m4/libunistring-base.m4.
10614         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10615         (Makefile.am): Build unistr.h from unistr.in.h.
10616         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
10617         Add m4/libunistring-base.m4.
10618         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10619         (Makefile.am): Build unitypes.h from unitypes.in.h.
10620         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
10621         Add m4/libunistring-base.m4.
10622         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10623         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
10624         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
10625         uniwidth.h. Add m4/libunistring-base.m4.
10626         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10627         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
10628         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
10629         instead of augmenting lib_SOURCES.
10630         * modules/unicase/empty-suffix-context: Likewise.
10631         * modules/unicase/locale-language: Likewise.
10632         * modules/unicase/tolower: Likewise.
10633         * modules/unicase/totitle: Likewise.
10634         * modules/unicase/toupper: Likewise.
10635         * modules/unicase/u8-casecmp: Likewise.
10636         * modules/unicase/u8-casecoll: Likewise.
10637         * modules/unicase/u8-casefold: Likewise.
10638         * modules/unicase/u8-casexfrm: Likewise.
10639         * modules/unicase/u8-ct-casefold: Likewise.
10640         * modules/unicase/u8-ct-tolower: Likewise.
10641         * modules/unicase/u8-ct-totitle: Likewise.
10642         * modules/unicase/u8-ct-toupper: Likewise.
10643         * modules/unicase/u8-is-cased: Likewise.
10644         * modules/unicase/u8-is-casefolded: Likewise.
10645         * modules/unicase/u8-is-lowercase: Likewise.
10646         * modules/unicase/u8-is-titlecase: Likewise.
10647         * modules/unicase/u8-is-uppercase: Likewise.
10648         * modules/unicase/u8-prefix-context: Likewise.
10649         * modules/unicase/u8-suffix-context: Likewise.
10650         * modules/unicase/u8-tolower: Likewise.
10651         * modules/unicase/u8-totitle: Likewise.
10652         * modules/unicase/u8-toupper: Likewise.
10653         * modules/unicase/u16-casecmp: Likewise.
10654         * modules/unicase/u16-casecoll: Likewise.
10655         * modules/unicase/u16-casefold: Likewise.
10656         * modules/unicase/u16-casexfrm: Likewise.
10657         * modules/unicase/u16-ct-casefold: Likewise.
10658         * modules/unicase/u16-ct-tolower: Likewise.
10659         * modules/unicase/u16-ct-totitle: Likewise.
10660         * modules/unicase/u16-ct-toupper: Likewise.
10661         * modules/unicase/u16-is-cased: Likewise.
10662         * modules/unicase/u16-is-casefolded: Likewise.
10663         * modules/unicase/u16-is-lowercase: Likewise.
10664         * modules/unicase/u16-is-titlecase: Likewise.
10665         * modules/unicase/u16-is-uppercase: Likewise.
10666         * modules/unicase/u16-prefix-context: Likewise.
10667         * modules/unicase/u16-suffix-context: Likewise.
10668         * modules/unicase/u16-tolower: Likewise.
10669         * modules/unicase/u16-totitle: Likewise.
10670         * modules/unicase/u16-toupper: Likewise.
10671         * modules/unicase/u32-casecmp: Likewise.
10672         * modules/unicase/u32-casecoll: Likewise.
10673         * modules/unicase/u32-casefold: Likewise.
10674         * modules/unicase/u32-casexfrm: Likewise.
10675         * modules/unicase/u32-ct-casefold: Likewise.
10676         * modules/unicase/u32-ct-tolower: Likewise.
10677         * modules/unicase/u32-ct-totitle: Likewise.
10678         * modules/unicase/u32-ct-toupper: Likewise.
10679         * modules/unicase/u32-is-cased: Likewise.
10680         * modules/unicase/u32-is-casefolded: Likewise.
10681         * modules/unicase/u32-is-lowercase: Likewise.
10682         * modules/unicase/u32-is-titlecase: Likewise.
10683         * modules/unicase/u32-is-uppercase: Likewise.
10684         * modules/unicase/u32-prefix-context: Likewise.
10685         * modules/unicase/u32-suffix-context: Likewise.
10686         * modules/unicase/u32-tolower: Likewise.
10687         * modules/unicase/u32-totitle: Likewise.
10688         * modules/unicase/u32-toupper: Likewise.
10689         * modules/unicase/ulc-casecmp: Likewise.
10690         * modules/unicase/ulc-casecoll: Likewise.
10691         * modules/unicase/ulc-casexfrm: Likewise.
10692         * modules/uniconv/u8-conv-from-enc: Likewise.
10693         * modules/uniconv/u8-conv-to-enc: Likewise.
10694         * modules/uniconv/u8-strconv-from-enc: Likewise.
10695         * modules/uniconv/u8-strconv-from-locale: Likewise.
10696         * modules/uniconv/u8-strconv-to-enc: Likewise.
10697         * modules/uniconv/u8-strconv-to-locale: Likewise.
10698         * modules/uniconv/u16-conv-from-enc: Likewise.
10699         * modules/uniconv/u16-conv-to-enc: Likewise.
10700         * modules/uniconv/u16-strconv-from-enc: Likewise.
10701         * modules/uniconv/u16-strconv-from-locale: Likewise.
10702         * modules/uniconv/u16-strconv-to-enc: Likewise.
10703         * modules/uniconv/u16-strconv-to-locale: Likewise.
10704         * modules/uniconv/u32-conv-from-enc: Likewise.
10705         * modules/uniconv/u32-conv-to-enc: Likewise.
10706         * modules/uniconv/u32-strconv-from-enc: Likewise.
10707         * modules/uniconv/u32-strconv-from-locale: Likewise.
10708         * modules/uniconv/u32-strconv-to-enc: Likewise.
10709         * modules/uniconv/u32-strconv-to-locale: Likewise.
10710         * modules/unictype/bidicategory-byname: Likewise.
10711         * modules/unictype/bidicategory-name: Likewise.
10712         * modules/unictype/bidicategory-of: Likewise.
10713         * modules/unictype/bidicategory-test: Likewise.
10714         * modules/unictype/block-list: Likewise.
10715         * modules/unictype/block-test: Likewise.
10716         * modules/unictype/category-C: Likewise.
10717         * modules/unictype/category-Cc: Likewise.
10718         * modules/unictype/category-Cf: Likewise.
10719         * modules/unictype/category-Cn: Likewise.
10720         * modules/unictype/category-Co: Likewise.
10721         * modules/unictype/category-Cs: Likewise.
10722         * modules/unictype/category-L: Likewise.
10723         * modules/unictype/category-Ll: Likewise.
10724         * modules/unictype/category-Lm: Likewise.
10725         * modules/unictype/category-Lo: Likewise.
10726         * modules/unictype/category-Lt: Likewise.
10727         * modules/unictype/category-Lu: Likewise.
10728         * modules/unictype/category-M: Likewise.
10729         * modules/unictype/category-Mc: Likewise.
10730         * modules/unictype/category-Me: Likewise.
10731         * modules/unictype/category-Mn: Likewise.
10732         * modules/unictype/category-N: Likewise.
10733         * modules/unictype/category-Nd: Likewise.
10734         * modules/unictype/category-Nl: Likewise.
10735         * modules/unictype/category-No: Likewise.
10736         * modules/unictype/category-P: Likewise.
10737         * modules/unictype/category-Pc: Likewise.
10738         * modules/unictype/category-Pd: Likewise.
10739         * modules/unictype/category-Pe: Likewise.
10740         * modules/unictype/category-Pf: Likewise.
10741         * modules/unictype/category-Pi: Likewise.
10742         * modules/unictype/category-Po: Likewise.
10743         * modules/unictype/category-Ps: Likewise.
10744         * modules/unictype/category-S: Likewise.
10745         * modules/unictype/category-Sc: Likewise.
10746         * modules/unictype/category-Sk: Likewise.
10747         * modules/unictype/category-Sm: Likewise.
10748         * modules/unictype/category-So: Likewise.
10749         * modules/unictype/category-Z: Likewise.
10750         * modules/unictype/category-Zl: Likewise.
10751         * modules/unictype/category-Zp: Likewise.
10752         * modules/unictype/category-Zs: Likewise.
10753         * modules/unictype/category-and: Likewise.
10754         * modules/unictype/category-and-not: Likewise.
10755         * modules/unictype/category-byname: Likewise.
10756         * modules/unictype/category-name: Likewise.
10757         * modules/unictype/category-none: Likewise.
10758         * modules/unictype/category-of: Likewise.
10759         * modules/unictype/category-or: Likewise.
10760         * modules/unictype/category-test: Likewise.
10761         * modules/unictype/combining-class: Likewise.
10762         * modules/unictype/ctype-alnum: Likewise.
10763         * modules/unictype/ctype-alpha: Likewise.
10764         * modules/unictype/ctype-blank: Likewise.
10765         * modules/unictype/ctype-cntrl: Likewise.
10766         * modules/unictype/ctype-digit: Likewise.
10767         * modules/unictype/ctype-graph: Likewise.
10768         * modules/unictype/ctype-lower: Likewise.
10769         * modules/unictype/ctype-print: Likewise.
10770         * modules/unictype/ctype-punct: Likewise.
10771         * modules/unictype/ctype-space: Likewise.
10772         * modules/unictype/ctype-upper: Likewise.
10773         * modules/unictype/ctype-xdigit: Likewise.
10774         * modules/unictype/decimal-digit: Likewise.
10775         * modules/unictype/digit: Likewise.
10776         * modules/unictype/mirror: Likewise.
10777         * modules/unictype/numeric: Likewise.
10778         * modules/unictype/property-alphabetic: Likewise.
10779         * modules/unictype/property-ascii-hex-digit: Likewise.
10780         * modules/unictype/property-bidi-arabic-digit: Likewise.
10781         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
10782         * modules/unictype/property-bidi-block-separator: Likewise.
10783         * modules/unictype/property-bidi-boundary-neutral: Likewise.
10784         * modules/unictype/property-bidi-common-separator: Likewise.
10785         * modules/unictype/property-bidi-control: Likewise.
10786         * modules/unictype/property-bidi-embedding-or-override: Likewise.
10787         * modules/unictype/property-bidi-eur-num-separator: Likewise.
10788         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
10789         * modules/unictype/property-bidi-european-digit: Likewise.
10790         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
10791         * modules/unictype/property-bidi-left-to-right: Likewise.
10792         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
10793         * modules/unictype/property-bidi-other-neutral: Likewise.
10794         * modules/unictype/property-bidi-pdf: Likewise.
10795         * modules/unictype/property-bidi-segment-separator: Likewise.
10796         * modules/unictype/property-bidi-whitespace: Likewise.
10797         * modules/unictype/property-byname: Likewise.
10798         * modules/unictype/property-combining: Likewise.
10799         * modules/unictype/property-composite: Likewise.
10800         * modules/unictype/property-currency-symbol: Likewise.
10801         * modules/unictype/property-dash: Likewise.
10802         * modules/unictype/property-decimal-digit: Likewise.
10803         * modules/unictype/property-default-ignorable-code-point: Likewise.
10804         * modules/unictype/property-deprecated: Likewise.
10805         * modules/unictype/property-diacritic: Likewise.
10806         * modules/unictype/property-extender: Likewise.
10807         * modules/unictype/property-format-control: Likewise.
10808         * modules/unictype/property-grapheme-base: Likewise.
10809         * modules/unictype/property-grapheme-extend: Likewise.
10810         * modules/unictype/property-grapheme-link: Likewise.
10811         * modules/unictype/property-hex-digit: Likewise.
10812         * modules/unictype/property-hyphen: Likewise.
10813         * modules/unictype/property-id-continue: Likewise.
10814         * modules/unictype/property-id-start: Likewise.
10815         * modules/unictype/property-ideographic: Likewise.
10816         * modules/unictype/property-ids-binary-operator: Likewise.
10817         * modules/unictype/property-ids-trinary-operator: Likewise.
10818         * modules/unictype/property-ignorable-control: Likewise.
10819         * modules/unictype/property-iso-control: Likewise.
10820         * modules/unictype/property-join-control: Likewise.
10821         * modules/unictype/property-left-of-pair: Likewise.
10822         * modules/unictype/property-line-separator: Likewise.
10823         * modules/unictype/property-logical-order-exception: Likewise.
10824         * modules/unictype/property-lowercase: Likewise.
10825         * modules/unictype/property-math: Likewise.
10826         * modules/unictype/property-non-break: Likewise.
10827         * modules/unictype/property-not-a-character: Likewise.
10828         * modules/unictype/property-numeric: Likewise.
10829         * modules/unictype/property-other-alphabetic: Likewise.
10830         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
10831         * modules/unictype/property-other-grapheme-extend: Likewise.
10832         * modules/unictype/property-other-id-continue: Likewise.
10833         * modules/unictype/property-other-id-start: Likewise.
10834         * modules/unictype/property-other-lowercase: Likewise.
10835         * modules/unictype/property-other-math: Likewise.
10836         * modules/unictype/property-other-uppercase: Likewise.
10837         * modules/unictype/property-paired-punctuation: Likewise.
10838         * modules/unictype/property-paragraph-separator: Likewise.
10839         * modules/unictype/property-pattern-syntax: Likewise.
10840         * modules/unictype/property-pattern-white-space: Likewise.
10841         * modules/unictype/property-private-use: Likewise.
10842         * modules/unictype/property-punctuation: Likewise.
10843         * modules/unictype/property-quotation-mark: Likewise.
10844         * modules/unictype/property-radical: Likewise.
10845         * modules/unictype/property-sentence-terminal: Likewise.
10846         * modules/unictype/property-soft-dotted: Likewise.
10847         * modules/unictype/property-space: Likewise.
10848         * modules/unictype/property-terminal-punctuation: Likewise.
10849         * modules/unictype/property-test: Likewise.
10850         * modules/unictype/property-titlecase: Likewise.
10851         * modules/unictype/property-unassigned-code-value: Likewise.
10852         * modules/unictype/property-unified-ideograph: Likewise.
10853         * modules/unictype/property-uppercase: Likewise.
10854         * modules/unictype/property-variation-selector: Likewise.
10855         * modules/unictype/property-white-space: Likewise.
10856         * modules/unictype/property-xid-continue: Likewise.
10857         * modules/unictype/property-xid-start: Likewise.
10858         * modules/unictype/property-zero-width: Likewise.
10859         * modules/unictype/scripts: Likewise.
10860         * modules/unictype/syntax-c-ident: Likewise.
10861         * modules/unictype/syntax-c-whitespace: Likewise.
10862         * modules/unictype/syntax-java-ident: Likewise.
10863         * modules/unictype/syntax-java-whitespace: Likewise.
10864         * modules/unilbrk/u8-possible-linebreaks: Likewise.
10865         * modules/unilbrk/u8-width-linebreaks: Likewise.
10866         * modules/unilbrk/u16-possible-linebreaks: Likewise.
10867         * modules/unilbrk/u16-width-linebreaks: Likewise.
10868         * modules/unilbrk/u32-possible-linebreaks: Likewise.
10869         * modules/unilbrk/u32-width-linebreaks: Likewise.
10870         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
10871         * modules/unilbrk/ulc-width-linebreaks: Likewise.
10872         * modules/uniname/uniname: Likewise.
10873         * modules/uninorm/canonical-decomposition: Likewise.
10874         * modules/uninorm/composition: Likewise.
10875         * modules/uninorm/decomposing-form: Likewise.
10876         * modules/uninorm/decomposition: Likewise.
10877         * modules/uninorm/filter: Likewise.
10878         * modules/uninorm/nfc: Likewise.
10879         * modules/uninorm/nfd: Likewise.
10880         * modules/uninorm/nfkc: Likewise.
10881         * modules/uninorm/nfkd: Likewise.
10882         * modules/uninorm/u8-normalize: Likewise.
10883         * modules/uninorm/u8-normcmp: Likewise.
10884         * modules/uninorm/u8-normcoll: Likewise.
10885         * modules/uninorm/u8-normxfrm: Likewise.
10886         * modules/uninorm/u16-normalize: Likewise.
10887         * modules/uninorm/u16-normcmp: Likewise.
10888         * modules/uninorm/u16-normcoll: Likewise.
10889         * modules/uninorm/u16-normxfrm: Likewise.
10890         * modules/uninorm/u32-normalize: Likewise.
10891         * modules/uninorm/u32-normcmp: Likewise.
10892         * modules/uninorm/u32-normcoll: Likewise.
10893         * modules/uninorm/u32-normxfrm: Likewise.
10894         * modules/unistdio/u8-asnprintf: Likewise.
10895         * modules/unistdio/u8-asprintf: Likewise.
10896         * modules/unistdio/u8-snprintf: Likewise.
10897         * modules/unistdio/u8-sprintf: Likewise.
10898         * modules/unistdio/u8-u8-asnprintf: Likewise.
10899         * modules/unistdio/u8-u8-asprintf: Likewise.
10900         * modules/unistdio/u8-u8-snprintf: Likewise.
10901         * modules/unistdio/u8-u8-sprintf: Likewise.
10902         * modules/unistdio/u8-u8-vasnprintf: Likewise.
10903         * modules/unistdio/u8-u8-vasprintf: Likewise.
10904         * modules/unistdio/u8-u8-vsnprintf: Likewise.
10905         * modules/unistdio/u8-u8-vsprintf: Likewise.
10906         * modules/unistdio/u8-vasnprintf: Likewise.
10907         * modules/unistdio/u8-vasprintf: Likewise.
10908         * modules/unistdio/u8-vsnprintf: Likewise.
10909         * modules/unistdio/u8-vsprintf: Likewise.
10910         * modules/unistdio/u16-asnprintf: Likewise.
10911         * modules/unistdio/u16-asprintf: Likewise.
10912         * modules/unistdio/u16-snprintf: Likewise.
10913         * modules/unistdio/u16-sprintf: Likewise.
10914         * modules/unistdio/u16-u16-asnprintf: Likewise.
10915         * modules/unistdio/u16-u16-asprintf: Likewise.
10916         * modules/unistdio/u16-u16-snprintf: Likewise.
10917         * modules/unistdio/u16-u16-sprintf: Likewise.
10918         * modules/unistdio/u16-u16-vasnprintf: Likewise.
10919         * modules/unistdio/u16-u16-vasprintf: Likewise.
10920         * modules/unistdio/u16-u16-vsnprintf: Likewise.
10921         * modules/unistdio/u16-u16-vsprintf: Likewise.
10922         * modules/unistdio/u16-vasnprintf: Likewise.
10923         * modules/unistdio/u16-vasprintf: Likewise.
10924         * modules/unistdio/u16-vsnprintf: Likewise.
10925         * modules/unistdio/u16-vsprintf: Likewise.
10926         * modules/unistdio/u32-asnprintf: Likewise.
10927         * modules/unistdio/u32-asprintf: Likewise.
10928         * modules/unistdio/u32-snprintf: Likewise.
10929         * modules/unistdio/u32-sprintf: Likewise.
10930         * modules/unistdio/u32-u32-asnprintf: Likewise.
10931         * modules/unistdio/u32-u32-asprintf: Likewise.
10932         * modules/unistdio/u32-u32-snprintf: Likewise.
10933         * modules/unistdio/u32-u32-sprintf: Likewise.
10934         * modules/unistdio/u32-u32-vasnprintf: Likewise.
10935         * modules/unistdio/u32-u32-vasprintf: Likewise.
10936         * modules/unistdio/u32-u32-vsnprintf: Likewise.
10937         * modules/unistdio/u32-u32-vsprintf: Likewise.
10938         * modules/unistdio/u32-vasnprintf: Likewise.
10939         * modules/unistdio/u32-vasprintf: Likewise.
10940         * modules/unistdio/u32-vsnprintf: Likewise.
10941         * modules/unistdio/u32-vsprintf: Likewise.
10942         * modules/unistdio/ulc-asnprintf: Likewise.
10943         * modules/unistdio/ulc-asprintf: Likewise.
10944         * modules/unistdio/ulc-fprintf: Likewise.
10945         * modules/unistdio/ulc-snprintf: Likewise.
10946         * modules/unistdio/ulc-sprintf: Likewise.
10947         * modules/unistdio/ulc-vasnprintf: Likewise.
10948         * modules/unistdio/ulc-vasprintf: Likewise.
10949         * modules/unistdio/ulc-vfprintf: Likewise.
10950         * modules/unistdio/ulc-vsnprintf: Likewise.
10951         * modules/unistdio/ulc-vsprintf: Likewise.
10952         * modules/unistr/u8-check: Likewise.
10953         * modules/unistr/u8-chr: Likewise.
10954         * modules/unistr/u8-cmp: Likewise.
10955         * modules/unistr/u8-cmp2: Likewise.
10956         * modules/unistr/u8-cpy: Likewise.
10957         * modules/unistr/u8-cpy-alloc: Likewise.
10958         * modules/unistr/u8-endswith: Likewise.
10959         * modules/unistr/u8-mblen: Likewise.
10960         * modules/unistr/u8-mbsnlen: Likewise.
10961         * modules/unistr/u8-mbtouc: Likewise.
10962         * modules/unistr/u8-mbtouc-unsafe: Likewise.
10963         * modules/unistr/u8-mbtoucr: Likewise.
10964         * modules/unistr/u8-move: Likewise.
10965         * modules/unistr/u8-next: Likewise.
10966         * modules/unistr/u8-prev: Likewise.
10967         * modules/unistr/u8-set: Likewise.
10968         * modules/unistr/u8-startswith: Likewise.
10969         * modules/unistr/u8-stpcpy: Likewise.
10970         * modules/unistr/u8-stpncpy: Likewise.
10971         * modules/unistr/u8-strcat: Likewise.
10972         * modules/unistr/u8-strchr: Likewise.
10973         * modules/unistr/u8-strcmp: Likewise.
10974         * modules/unistr/u8-strcoll: Likewise.
10975         * modules/unistr/u8-strcpy: Likewise.
10976         * modules/unistr/u8-strcspn: Likewise.
10977         * modules/unistr/u8-strdup: Likewise.
10978         * modules/unistr/u8-strlen: Likewise.
10979         * modules/unistr/u8-strmblen: Likewise.
10980         * modules/unistr/u8-strmbtouc: Likewise.
10981         * modules/unistr/u8-strncat: Likewise.
10982         * modules/unistr/u8-strncmp: Likewise.
10983         * modules/unistr/u8-strncpy: Likewise.
10984         * modules/unistr/u8-strnlen: Likewise.
10985         * modules/unistr/u8-strpbrk: Likewise.
10986         * modules/unistr/u8-strrchr: Likewise.
10987         * modules/unistr/u8-strspn: Likewise.
10988         * modules/unistr/u8-strstr: Likewise.
10989         * modules/unistr/u8-strtok: Likewise.
10990         * modules/unistr/u8-to-u16: Likewise.
10991         * modules/unistr/u8-to-u32: Likewise.
10992         * modules/unistr/u8-uctomb: Likewise.
10993         * modules/unistr/u16-check: Likewise.
10994         * modules/unistr/u16-chr: Likewise.
10995         * modules/unistr/u16-cmp: Likewise.
10996         * modules/unistr/u16-cmp2: Likewise.
10997         * modules/unistr/u16-cpy: Likewise.
10998         * modules/unistr/u16-cpy-alloc: Likewise.
10999         * modules/unistr/u16-endswith: Likewise.
11000         * modules/unistr/u16-mblen: Likewise.
11001         * modules/unistr/u16-mbsnlen: Likewise.
11002         * modules/unistr/u16-mbtouc: Likewise.
11003         * modules/unistr/u16-mbtouc-unsafe: Likewise.
11004         * modules/unistr/u16-mbtoucr: Likewise.
11005         * modules/unistr/u16-move: Likewise.
11006         * modules/unistr/u16-next: Likewise.
11007         * modules/unistr/u16-prev: Likewise.
11008         * modules/unistr/u16-set: Likewise.
11009         * modules/unistr/u16-startswith: Likewise.
11010         * modules/unistr/u16-stpcpy: Likewise.
11011         * modules/unistr/u16-stpncpy: Likewise.
11012         * modules/unistr/u16-strcat: Likewise.
11013         * modules/unistr/u16-strchr: Likewise.
11014         * modules/unistr/u16-strcmp: Likewise.
11015         * modules/unistr/u16-strcoll: Likewise.
11016         * modules/unistr/u16-strcpy: Likewise.
11017         * modules/unistr/u16-strcspn: Likewise.
11018         * modules/unistr/u16-strdup: Likewise.
11019         * modules/unistr/u16-strlen: Likewise.
11020         * modules/unistr/u16-strmblen: Likewise.
11021         * modules/unistr/u16-strmbtouc: Likewise.
11022         * modules/unistr/u16-strncat: Likewise.
11023         * modules/unistr/u16-strncmp: Likewise.
11024         * modules/unistr/u16-strncpy: Likewise.
11025         * modules/unistr/u16-strnlen: Likewise.
11026         * modules/unistr/u16-strpbrk: Likewise.
11027         * modules/unistr/u16-strrchr: Likewise.
11028         * modules/unistr/u16-strspn: Likewise.
11029         * modules/unistr/u16-strstr: Likewise.
11030         * modules/unistr/u16-strtok: Likewise.
11031         * modules/unistr/u16-to-u32: Likewise.
11032         * modules/unistr/u16-to-u8: Likewise.
11033         * modules/unistr/u16-uctomb: Likewise.
11034         * modules/unistr/u32-check: Likewise.
11035         * modules/unistr/u32-chr: Likewise.
11036         * modules/unistr/u32-cmp: Likewise.
11037         * modules/unistr/u32-cmp2: Likewise.
11038         * modules/unistr/u32-cpy: Likewise.
11039         * modules/unistr/u32-cpy-alloc: Likewise.
11040         * modules/unistr/u32-endswith: Likewise.
11041         * modules/unistr/u32-mblen: Likewise.
11042         * modules/unistr/u32-mbsnlen: Likewise.
11043         * modules/unistr/u32-mbtouc: Likewise.
11044         * modules/unistr/u32-mbtouc-unsafe: Likewise.
11045         * modules/unistr/u32-mbtoucr: Likewise.
11046         * modules/unistr/u32-move: Likewise.
11047         * modules/unistr/u32-next: Likewise.
11048         * modules/unistr/u32-prev: Likewise.
11049         * modules/unistr/u32-set: Likewise.
11050         * modules/unistr/u32-startswith: Likewise.
11051         * modules/unistr/u32-stpcpy: Likewise.
11052         * modules/unistr/u32-stpncpy: Likewise.
11053         * modules/unistr/u32-strcat: Likewise.
11054         * modules/unistr/u32-strchr: Likewise.
11055         * modules/unistr/u32-strcmp: Likewise.
11056         * modules/unistr/u32-strcoll: Likewise.
11057         * modules/unistr/u32-strcpy: Likewise.
11058         * modules/unistr/u32-strcspn: Likewise.
11059         * modules/unistr/u32-strdup: Likewise.
11060         * modules/unistr/u32-strlen: Likewise.
11061         * modules/unistr/u32-strmblen: Likewise.
11062         * modules/unistr/u32-strmbtouc: Likewise.
11063         * modules/unistr/u32-strncat: Likewise.
11064         * modules/unistr/u32-strncmp: Likewise.
11065         * modules/unistr/u32-strncpy: Likewise.
11066         * modules/unistr/u32-strnlen: Likewise.
11067         * modules/unistr/u32-strpbrk: Likewise.
11068         * modules/unistr/u32-strrchr: Likewise.
11069         * modules/unistr/u32-strspn: Likewise.
11070         * modules/unistr/u32-strstr: Likewise.
11071         * modules/unistr/u32-strtok: Likewise.
11072         * modules/unistr/u32-to-u16: Likewise.
11073         * modules/unistr/u32-to-u8: Likewise.
11074         * modules/unistr/u32-uctomb: Likewise.
11075         * modules/uniwbrk/u8-wordbreaks: Likewise.
11076         * modules/uniwbrk/u16-wordbreaks: Likewise.
11077         * modules/uniwbrk/u32-wordbreaks: Likewise.
11078         * modules/uniwbrk/ulc-wordbreaks: Likewise.
11079         * modules/uniwbrk/wordbreak-property: Likewise.
11080         * modules/uniwidth/u8-strwidth: Likewise.
11081         * modules/uniwidth/u8-width: Likewise.
11082         * modules/uniwidth/u16-strwidth: Likewise.
11083         * modules/uniwidth/u16-width: Likewise.
11084         * modules/uniwidth/u32-strwidth: Likewise.
11085         * modules/uniwidth/u32-width: Likewise.
11086         * modules/uniwidth/width: Likewise.
11087         * modules/unicase/cased-tests (Makefile.am): Link all test programs
11088         with $(LIBUNISTRING).
11089         * modules/unicase/ignorable-tests: Likewise.
11090         * modules/unicase/locale-language-tests: Likewise.
11091         * modules/unicase/tolower-tests: Likewise.
11092         * modules/unicase/totitle-tests: Likewise.
11093         * modules/unicase/toupper-tests: Likewise.
11094         * modules/unicase/u8-casecmp-tests: Likewise.
11095         * modules/unicase/u8-casecoll-tests: Likewise.
11096         * modules/unicase/u8-casefold-tests: Likewise.
11097         * modules/unicase/u8-is-cased-tests: Likewise.
11098         * modules/unicase/u8-is-casefolded-tests: Likewise.
11099         * modules/unicase/u8-is-lowercase-tests: Likewise.
11100         * modules/unicase/u8-is-titlecase-tests: Likewise.
11101         * modules/unicase/u8-is-uppercase-tests: Likewise.
11102         * modules/unicase/u8-tolower-tests: Likewise.
11103         * modules/unicase/u8-totitle-tests: Likewise.
11104         * modules/unicase/u8-toupper-tests: Likewise.
11105         * modules/unicase/u16-casecmp-tests: Likewise.
11106         * modules/unicase/u16-casecoll-tests: Likewise.
11107         * modules/unicase/u16-casefold-tests: Likewise.
11108         * modules/unicase/u16-is-cased-tests: Likewise.
11109         * modules/unicase/u16-is-casefolded-tests: Likewise.
11110         * modules/unicase/u16-is-lowercase-tests: Likewise.
11111         * modules/unicase/u16-is-titlecase-tests: Likewise.
11112         * modules/unicase/u16-is-uppercase-tests: Likewise.
11113         * modules/unicase/u16-tolower-tests: Likewise.
11114         * modules/unicase/u16-totitle-tests: Likewise.
11115         * modules/unicase/u16-toupper-tests: Likewise.
11116         * modules/unicase/u32-casecmp-tests: Likewise.
11117         * modules/unicase/u32-casecoll-tests: Likewise.
11118         * modules/unicase/u32-casefold-tests: Likewise.
11119         * modules/unicase/u32-is-cased-tests: Likewise.
11120         * modules/unicase/u32-is-casefolded-tests: Likewise.
11121         * modules/unicase/u32-is-lowercase-tests: Likewise.
11122         * modules/unicase/u32-is-titlecase-tests: Likewise.
11123         * modules/unicase/u32-is-uppercase-tests: Likewise.
11124         * modules/unicase/u32-tolower-tests: Likewise.
11125         * modules/unicase/u32-totitle-tests: Likewise.
11126         * modules/unicase/u32-toupper-tests: Likewise.
11127         * modules/unicase/ulc-casecmp-tests: Likewise.
11128         * modules/unicase/ulc-casecoll-tests: Likewise.
11129         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
11130         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
11131         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
11132         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
11133         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
11134         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
11135         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
11136         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
11137         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
11138         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
11139         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
11140         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
11141         * modules/unictype/bidicategory-byname-tests: Likewise.
11142         * modules/unictype/bidicategory-name-tests: Likewise.
11143         * modules/unictype/bidicategory-of-tests: Likewise.
11144         * modules/unictype/bidicategory-test-tests: Likewise.
11145         * modules/unictype/block-list-tests: Likewise.
11146         * modules/unictype/block-of-tests: Likewise.
11147         * modules/unictype/block-test-tests: Likewise.
11148         * modules/unictype/category-C-tests: Likewise.
11149         * modules/unictype/category-Cc-tests: Likewise.
11150         * modules/unictype/category-Cf-tests: Likewise.
11151         * modules/unictype/category-Cn-tests: Likewise.
11152         * modules/unictype/category-Co-tests: Likewise.
11153         * modules/unictype/category-Cs-tests: Likewise.
11154         * modules/unictype/category-L-tests: Likewise.
11155         * modules/unictype/category-Ll-tests: Likewise.
11156         * modules/unictype/category-Lm-tests: Likewise.
11157         * modules/unictype/category-Lo-tests: Likewise.
11158         * modules/unictype/category-Lt-tests: Likewise.
11159         * modules/unictype/category-Lu-tests: Likewise.
11160         * modules/unictype/category-M-tests: Likewise.
11161         * modules/unictype/category-Mc-tests: Likewise.
11162         * modules/unictype/category-Me-tests: Likewise.
11163         * modules/unictype/category-Mn-tests: Likewise.
11164         * modules/unictype/category-N-tests: Likewise.
11165         * modules/unictype/category-Nd-tests: Likewise.
11166         * modules/unictype/category-Nl-tests: Likewise.
11167         * modules/unictype/category-No-tests: Likewise.
11168         * modules/unictype/category-P-tests: Likewise.
11169         * modules/unictype/category-Pc-tests: Likewise.
11170         * modules/unictype/category-Pd-tests: Likewise.
11171         * modules/unictype/category-Pe-tests: Likewise.
11172         * modules/unictype/category-Pf-tests: Likewise.
11173         * modules/unictype/category-Pi-tests: Likewise.
11174         * modules/unictype/category-Po-tests: Likewise.
11175         * modules/unictype/category-Ps-tests: Likewise.
11176         * modules/unictype/category-S-tests: Likewise.
11177         * modules/unictype/category-Sc-tests: Likewise.
11178         * modules/unictype/category-Sk-tests: Likewise.
11179         * modules/unictype/category-Sm-tests: Likewise.
11180         * modules/unictype/category-So-tests: Likewise.
11181         * modules/unictype/category-Z-tests: Likewise.
11182         * modules/unictype/category-Zl-tests: Likewise.
11183         * modules/unictype/category-Zp-tests: Likewise.
11184         * modules/unictype/category-Zs-tests: Likewise.
11185         * modules/unictype/category-and-not-tests: Likewise.
11186         * modules/unictype/category-and-tests: Likewise.
11187         * modules/unictype/category-byname-tests: Likewise.
11188         * modules/unictype/category-name-tests: Likewise.
11189         * modules/unictype/category-none-tests: Likewise.
11190         * modules/unictype/category-of-tests: Likewise.
11191         * modules/unictype/category-or-tests: Likewise.
11192         * modules/unictype/category-test-withtable-tests: Likewise.
11193         * modules/unictype/combining-class-tests: Likewise.
11194         * modules/unictype/ctype-alnum-tests: Likewise.
11195         * modules/unictype/ctype-alpha-tests: Likewise.
11196         * modules/unictype/ctype-blank-tests: Likewise.
11197         * modules/unictype/ctype-cntrl-tests: Likewise.
11198         * modules/unictype/ctype-digit-tests: Likewise.
11199         * modules/unictype/ctype-graph-tests: Likewise.
11200         * modules/unictype/ctype-lower-tests: Likewise.
11201         * modules/unictype/ctype-print-tests: Likewise.
11202         * modules/unictype/ctype-punct-tests: Likewise.
11203         * modules/unictype/ctype-space-tests: Likewise.
11204         * modules/unictype/ctype-upper-tests: Likewise.
11205         * modules/unictype/ctype-xdigit-tests: Likewise.
11206         * modules/unictype/decimal-digit-tests: Likewise.
11207         * modules/unictype/digit-tests: Likewise.
11208         * modules/unictype/mirror-tests: Likewise.
11209         * modules/unictype/numeric-tests: Likewise.
11210         * modules/unictype/property-alphabetic-tests: Likewise.
11211         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
11212         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
11213         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
11214         * modules/unictype/property-bidi-block-separator-tests: Likewise.
11215         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
11216         * modules/unictype/property-bidi-common-separator-tests: Likewise.
11217         * modules/unictype/property-bidi-control-tests: Likewise.
11218         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
11219         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
11220         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
11221         * modules/unictype/property-bidi-european-digit-tests: Likewise.
11222         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
11223         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
11224         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
11225         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
11226         * modules/unictype/property-bidi-pdf-tests: Likewise.
11227         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
11228         * modules/unictype/property-bidi-whitespace-tests: Likewise.
11229         * modules/unictype/property-byname-tests: Likewise.
11230         * modules/unictype/property-combining-tests: Likewise.
11231         * modules/unictype/property-composite-tests: Likewise.
11232         * modules/unictype/property-currency-symbol-tests: Likewise.
11233         * modules/unictype/property-dash-tests: Likewise.
11234         * modules/unictype/property-decimal-digit-tests: Likewise.
11235         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
11236         * modules/unictype/property-deprecated-tests: Likewise.
11237         * modules/unictype/property-diacritic-tests: Likewise.
11238         * modules/unictype/property-extender-tests: Likewise.
11239         * modules/unictype/property-format-control-tests: Likewise.
11240         * modules/unictype/property-grapheme-base-tests: Likewise.
11241         * modules/unictype/property-grapheme-extend-tests: Likewise.
11242         * modules/unictype/property-grapheme-link-tests: Likewise.
11243         * modules/unictype/property-hex-digit-tests: Likewise.
11244         * modules/unictype/property-hyphen-tests: Likewise.
11245         * modules/unictype/property-id-continue-tests: Likewise.
11246         * modules/unictype/property-id-start-tests: Likewise.
11247         * modules/unictype/property-ideographic-tests: Likewise.
11248         * modules/unictype/property-ids-binary-operator-tests: Likewise.
11249         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
11250         * modules/unictype/property-ignorable-control-tests: Likewise.
11251         * modules/unictype/property-iso-control-tests: Likewise.
11252         * modules/unictype/property-join-control-tests: Likewise.
11253         * modules/unictype/property-left-of-pair-tests: Likewise.
11254         * modules/unictype/property-line-separator-tests: Likewise.
11255         * modules/unictype/property-logical-order-exception-tests: Likewise.
11256         * modules/unictype/property-lowercase-tests: Likewise.
11257         * modules/unictype/property-math-tests: Likewise.
11258         * modules/unictype/property-non-break-tests: Likewise.
11259         * modules/unictype/property-not-a-character-tests: Likewise.
11260         * modules/unictype/property-numeric-tests: Likewise.
11261         * modules/unictype/property-other-alphabetic-tests: Likewise.
11262         * modules/unictype/property-other-default-ignorable-code-point-tests:
11263         Likewise.
11264         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
11265         * modules/unictype/property-other-id-continue-tests: Likewise.
11266         * modules/unictype/property-other-id-start-tests: Likewise.
11267         * modules/unictype/property-other-lowercase-tests: Likewise.
11268         * modules/unictype/property-other-math-tests: Likewise.
11269         * modules/unictype/property-other-uppercase-tests: Likewise.
11270         * modules/unictype/property-paired-punctuation-tests: Likewise.
11271         * modules/unictype/property-paragraph-separator-tests: Likewise.
11272         * modules/unictype/property-pattern-syntax-tests: Likewise.
11273         * modules/unictype/property-pattern-white-space-tests: Likewise.
11274         * modules/unictype/property-private-use-tests: Likewise.
11275         * modules/unictype/property-punctuation-tests: Likewise.
11276         * modules/unictype/property-quotation-mark-tests: Likewise.
11277         * modules/unictype/property-radical-tests: Likewise.
11278         * modules/unictype/property-sentence-terminal-tests: Likewise.
11279         * modules/unictype/property-soft-dotted-tests: Likewise.
11280         * modules/unictype/property-space-tests: Likewise.
11281         * modules/unictype/property-terminal-punctuation-tests: Likewise.
11282         * modules/unictype/property-test-tests: Likewise.
11283         * modules/unictype/property-titlecase-tests: Likewise.
11284         * modules/unictype/property-unassigned-code-value-tests: Likewise.
11285         * modules/unictype/property-unified-ideograph-tests: Likewise.
11286         * modules/unictype/property-uppercase-tests: Likewise.
11287         * modules/unictype/property-variation-selector-tests: Likewise.
11288         * modules/unictype/property-white-space-tests: Likewise.
11289         * modules/unictype/property-xid-continue-tests: Likewise.
11290         * modules/unictype/property-xid-start-tests: Likewise.
11291         * modules/unictype/property-zero-width-tests: Likewise.
11292         * modules/unictype/scripts-tests: Likewise.
11293         * modules/unictype/syntax-c-ident-tests: Likewise.
11294         * modules/unictype/syntax-c-whitespace-tests: Likewise.
11295         * modules/unictype/syntax-java-ident-tests: Likewise.
11296         * modules/unictype/syntax-java-whitespace-tests: Likewise.
11297         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
11298         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
11299         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
11300         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
11301         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
11302         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
11303         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
11304         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
11305         * modules/uniname/uniname-tests: Likewise.
11306         * modules/uninorm/canonical-decomposition-tests: Likewise.
11307         * modules/uninorm/compat-decomposition-tests: Likewise.
11308         * modules/uninorm/composition-tests: Likewise.
11309         * modules/uninorm/decomposing-form-tests: Likewise.
11310         * modules/uninorm/decomposition-tests: Likewise.
11311         * modules/uninorm/filter-tests: Likewise.
11312         * modules/uninorm/nfc-tests: Likewise.
11313         * modules/uninorm/nfd-tests: Likewise.
11314         * modules/uninorm/nfkc-tests: Likewise.
11315         * modules/uninorm/nfkd-tests: Likewise.
11316         * modules/uninorm/u8-normcmp-tests: Likewise.
11317         * modules/uninorm/u8-normcoll-tests: Likewise.
11318         * modules/uninorm/u16-normcmp-tests: Likewise.
11319         * modules/uninorm/u16-normcoll-tests: Likewise.
11320         * modules/uninorm/u32-normcmp-tests: Likewise.
11321         * modules/uninorm/u32-normcoll-tests: Likewise.
11322         * modules/unistdio/u8-asnprintf-tests: Likewise.
11323         * modules/unistdio/u8-vasnprintf-tests: Likewise.
11324         * modules/unistdio/u8-vasprintf-tests: Likewise.
11325         * modules/unistdio/u8-vsnprintf-tests: Likewise.
11326         * modules/unistdio/u8-vsprintf-tests: Likewise.
11327         * modules/unistdio/u16-asnprintf-tests: Likewise.
11328         * modules/unistdio/u16-vasnprintf-tests: Likewise.
11329         * modules/unistdio/u16-vasprintf-tests: Likewise.
11330         * modules/unistdio/u16-vsnprintf-tests: Likewise.
11331         * modules/unistdio/u16-vsprintf-tests: Likewise.
11332         * modules/unistdio/u32-asnprintf-tests: Likewise.
11333         * modules/unistdio/u32-vasnprintf-tests: Likewise.
11334         * modules/unistdio/u32-vasprintf-tests: Likewise.
11335         * modules/unistdio/u32-vsnprintf-tests: Likewise.
11336         * modules/unistdio/u32-vsprintf-tests: Likewise.
11337         * modules/unistdio/ulc-asnprintf-tests: Likewise.
11338         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
11339         * modules/unistdio/ulc-vasprintf-tests: Likewise.
11340         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
11341         * modules/unistdio/ulc-vsprintf-tests: Likewise.
11342         * modules/unistr/u8-check-tests: Likewise.
11343         * modules/unistr/u8-chr-tests: Likewise.
11344         * modules/unistr/u8-cmp-tests: Likewise.
11345         * modules/unistr/u8-cmp2-tests: Likewise.
11346         * modules/unistr/u8-cpy-alloc-tests: Likewise.
11347         * modules/unistr/u8-cpy-tests: Likewise.
11348         * modules/unistr/u8-mblen-tests: Likewise.
11349         * modules/unistr/u8-mbsnlen-tests: Likewise.
11350         * modules/unistr/u8-mbtouc-tests: Likewise.
11351         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
11352         * modules/unistr/u8-mbtoucr-tests: Likewise.
11353         * modules/unistr/u8-move-tests: Likewise.
11354         * modules/unistr/u8-next-tests: Likewise.
11355         * modules/unistr/u8-prev-tests: Likewise.
11356         * modules/unistr/u8-set-tests: Likewise.
11357         * modules/unistr/u8-stpcpy-tests: Likewise.
11358         * modules/unistr/u8-stpncpy-tests: Likewise.
11359         * modules/unistr/u8-strcat-tests: Likewise.
11360         * modules/unistr/u8-strcmp-tests: Likewise.
11361         * modules/unistr/u8-strcoll-tests: Likewise.
11362         * modules/unistr/u8-strcpy-tests: Likewise.
11363         * modules/unistr/u8-strdup-tests: Likewise.
11364         * modules/unistr/u8-strlen-tests: Likewise.
11365         * modules/unistr/u8-strmblen-tests: Likewise.
11366         * modules/unistr/u8-strmbtouc-tests: Likewise.
11367         * modules/unistr/u8-strncat-tests: Likewise.
11368         * modules/unistr/u8-strncmp-tests: Likewise.
11369         * modules/unistr/u8-strncpy-tests: Likewise.
11370         * modules/unistr/u8-strnlen-tests: Likewise.
11371         * modules/unistr/u8-to-u16-tests: Likewise.
11372         * modules/unistr/u8-to-u32-tests: Likewise.
11373         * modules/unistr/u8-uctomb-tests: Likewise.
11374         * modules/unistr/u16-check-tests: Likewise.
11375         * modules/unistr/u16-chr-tests: Likewise.
11376         * modules/unistr/u16-cmp-tests: Likewise.
11377         * modules/unistr/u16-cmp2-tests: Likewise.
11378         * modules/unistr/u16-cpy-alloc-tests: Likewise.
11379         * modules/unistr/u16-cpy-tests: Likewise.
11380         * modules/unistr/u16-mblen-tests: Likewise.
11381         * modules/unistr/u16-mbsnlen-tests: Likewise.
11382         * modules/unistr/u16-mbtouc-tests: Likewise.
11383         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
11384         * modules/unistr/u16-mbtoucr-tests: Likewise.
11385         * modules/unistr/u16-move-tests: Likewise.
11386         * modules/unistr/u16-next-tests: Likewise.
11387         * modules/unistr/u16-prev-tests: Likewise.
11388         * modules/unistr/u16-set-tests: Likewise.
11389         * modules/unistr/u16-stpcpy-tests: Likewise.
11390         * modules/unistr/u16-stpncpy-tests: Likewise.
11391         * modules/unistr/u16-strcat-tests: Likewise.
11392         * modules/unistr/u16-strcmp-tests: Likewise.
11393         * modules/unistr/u16-strcoll-tests: Likewise.
11394         * modules/unistr/u16-strcpy-tests: Likewise.
11395         * modules/unistr/u16-strdup-tests: Likewise.
11396         * modules/unistr/u16-strlen-tests: Likewise.
11397         * modules/unistr/u16-strmblen-tests: Likewise.
11398         * modules/unistr/u16-strmbtouc-tests: Likewise.
11399         * modules/unistr/u16-strncat-tests: Likewise.
11400         * modules/unistr/u16-strncmp-tests: Likewise.
11401         * modules/unistr/u16-strncpy-tests: Likewise.
11402         * modules/unistr/u16-strnlen-tests: Likewise.
11403         * modules/unistr/u16-to-u32-tests: Likewise.
11404         * modules/unistr/u16-to-u8-tests: Likewise.
11405         * modules/unistr/u16-uctomb-tests: Likewise.
11406         * modules/unistr/u32-check-tests: Likewise.
11407         * modules/unistr/u32-chr-tests: Likewise.
11408         * modules/unistr/u32-cmp-tests: Likewise.
11409         * modules/unistr/u32-cmp2-tests: Likewise.
11410         * modules/unistr/u32-cpy-alloc-tests: Likewise.
11411         * modules/unistr/u32-cpy-tests: Likewise.
11412         * modules/unistr/u32-mblen-tests: Likewise.
11413         * modules/unistr/u32-mbsnlen-tests: Likewise.
11414         * modules/unistr/u32-mbtouc-tests: Likewise.
11415         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
11416         * modules/unistr/u32-mbtoucr-tests: Likewise.
11417         * modules/unistr/u32-move-tests: Likewise.
11418         * modules/unistr/u32-next-tests: Likewise.
11419         * modules/unistr/u32-prev-tests: Likewise.
11420         * modules/unistr/u32-set-tests: Likewise.
11421         * modules/unistr/u32-stpcpy-tests: Likewise.
11422         * modules/unistr/u32-stpncpy-tests: Likewise.
11423         * modules/unistr/u32-strcat-tests: Likewise.
11424         * modules/unistr/u32-strcmp-tests: Likewise.
11425         * modules/unistr/u32-strcoll-tests: Likewise.
11426         * modules/unistr/u32-strcpy-tests: Likewise.
11427         * modules/unistr/u32-strdup-tests: Likewise.
11428         * modules/unistr/u32-strlen-tests: Likewise.
11429         * modules/unistr/u32-strmblen-tests: Likewise.
11430         * modules/unistr/u32-strmbtouc-tests: Likewise.
11431         * modules/unistr/u32-strncat-tests: Likewise.
11432         * modules/unistr/u32-strncmp-tests: Likewise.
11433         * modules/unistr/u32-strncpy-tests: Likewise.
11434         * modules/unistr/u32-strnlen-tests: Likewise.
11435         * modules/unistr/u32-to-u16-tests: Likewise.
11436         * modules/unistr/u32-to-u8-tests: Likewise.
11437         * modules/unistr/u32-uctomb-tests: Likewise.
11438         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
11439         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
11440         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
11441         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
11442         * modules/uniwidth/u8-strwidth-tests: Likewise.
11443         * modules/uniwidth/u8-width-tests: Likewise.
11444         * modules/uniwidth/u16-strwidth-tests: Likewise.
11445         * modules/uniwidth/u16-width-tests: Likewise.
11446         * modules/uniwidth/u32-strwidth-tests: Likewise.
11447         * modules/uniwidth/u32-width-tests: Likewise.
11448         * modules/uniwidth/width-tests: Likewise.
11449
11450 2010-05-18  Richard Jones  <rjones@redhat.com>
11451
11452         doc: users.txt: list hivex
11453         * users.txt: Add hivex.
11454
11455 2010-05-18  Richard Jones  <rjones@redhat.com>
11456
11457         doc: users.txt: list febootstrap
11458         * users.txt: Add febootstrap.
11459
11460 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
11461
11462         bootstrap: fix an error when gnulib is not used as a git submodule
11463         * build-aux/bootstrap (gnulib_path): If its length is zero then
11464         assign "gnulib" to it.
11465         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
11466
11467 2010-05-16  Bruno Haible  <bruno@clisp.org>
11468
11469         Avoid autoconf warnings about AM_ICONV.
11470         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
11471         2.64.
11472
11473 2010-05-16  Bruno Haible  <bruno@clisp.org>
11474
11475         absolute-header: Make the macro usable in more situations.
11476         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
11477         from gl_ABSOLUTE_HEADER.
11478         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
11479
11480 2010-05-16  James Youngman  <jay@gnu.org>
11481
11482         doc: update users.txt
11483         * users.txt: Add CSSC.
11484
11485 2010-05-16  Jim Meyering  <meyering@redhat.com>
11486
11487         init.sh: fix an error in the previous change; add more comments
11488         * tests/init.sh: Compare exit code in loop against 9, not 2.
11489         Patch by Bruno Haible.
11490         Make the two tests more similar by adding an empty "then" clause.
11491         Add comments.
11492
11493         init.sh: avoid unnecessary shell re-exec
11494         * tests/init.sh: Improve the re-exec-required check to first test the
11495         current shell.  If it passes the test, do not search for a shell that
11496         does pass, and do not re-exec.  This test is particularly contorted to
11497         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
11498         of $(...) evokes a syntax error and causes immediate shell exit with
11499         status 2.  Bruno Haible reported that the re-exec made it impossible
11500         to single-step through any init.sh-using script.
11501
11502 2010-05-16  Bruno Haible  <bruno@clisp.org>
11503
11504         Fix collision between gnulib's and libintl's printf replacements.
11505         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
11506         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
11507         (printf): When using GNU C, map the __printf__ function to rpl_printf
11508         via __asm__. When not using GNU C, define rpl_printf instead of
11509         __printf__.
11510         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
11511         commit.
11512         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
11513         commit.
11514         * m4/asm-underscore.m4: New file.
11515         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
11516         * modules/stdio (Files): Add m4/asm-underscore.m4.
11517         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
11518         Reported by Ben Pfaff.
11519
11520 2010-05-16  Bruno Haible  <bruno@clisp.org>
11521
11522         verify: Avoid skipping the test on openSUSE 11.0.
11523         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
11524
11525 2010-05-13  Bruno Haible  <bruno@clisp.org>
11526
11527         Avoid useless warnings from G++.
11528         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
11529         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
11530         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11531
11532 2010-05-11  Jim Meyering  <meyering@redhat.com>
11533
11534         maint.mk: tweak preceding change
11535         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
11536         regexps tighter by anchoring at EOL, and make the new group "shy"
11537         for slightly decreased overhead.
11538
11539 2010-05-11  Eric Blake  <eblake@redhat.com>
11540
11541         maint.mk: gnulib doesn't guarantee NSIG
11542         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
11543
11544 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
11545
11546         test-pwrite.c: Remove unused variable declaration.
11547         * tests/test-pwrite.c (main): Remove read_buf declaration.
11548
11549         Remove useless test-pwrite.sh file.
11550         * tests/test-pwrite.sh: Delete file.
11551         * modules/pwrite-tests: Remove references.
11552         Reported by Bruno Haible.
11553
11554 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
11555
11556         init.sh: fix a typo
11557         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
11558
11559 2010-05-10  Jim Meyering  <meyering@redhat.com>
11560
11561         maint.mk: avoid using a temporary file in the always-defined-macros check
11562         * top/maint.mk (.re-defmac): Remove rule.
11563         (gl_trap_): Remove definition.
11564         (sc_prohibit_always-defined_macros): Rewrite not to create and
11565         depend on a temporary file.  Instead, depend on GNU grep's ability
11566         to read a list of regular expressions from stdin when given "-f -".
11567
11568 2010-05-09  Bruno Haible  <bruno@clisp.org>
11569
11570         Update to GNU gettext 0.18, part 1.
11571         * m4/gettext.m4: Update to GNU gettext 0.18.
11572         * m4/intl.m4: Likewise.
11573         * m4/po.m4: Likewise.
11574         * modules/gettext (Files): Add m4/fcntl-o.m4.
11575         (configure.ac): Require gettext infrastructure from version 0.18.
11576
11577 2010-05-09  Jim Meyering  <meyering@redhat.com>
11578
11579         init.sh: enable MALLOC_PERTURB_
11580         * tests/init.sh: Enable glibc's malloc-perturbing option.
11581
11582         maint.mk: improve sc_cross_check_PATH_usage_in_tests
11583         With my recent change in init.sh from the two-line form:
11584             -#   : ${srcdir=.}
11585             -#   . "$srcdir/init.sh"; path_prepend_ .
11586             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
11587         I noticed that using the one-line form would cause this test
11588         to fail with a false-positive, or to stop working altogether,
11589         depending on whether help-version changed or all the tests did.
11590         * top/maint.mk (_hv_regex): Remove this definition.
11591         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
11592         (_hv_regex_strong): Use a stronger regex to check for conformance.
11593         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
11594         Give a separate diagnostic for lack of conforming use.
11595
11596         maint.mk: prohibit definition of symbols defined by gnulib
11597         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
11598         definition of symbols defined by gnulib.
11599
11600 2010-05-09  Bruno Haible  <bruno@clisp.org>
11601
11602         acl: Avoid test failure on Cygwin-hosted mingw.
11603         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
11604
11605 2010-05-09  Bruno Haible  <bruno@clisp.org>
11606
11607         error: Use system's fcntl function.
11608         * lib/error.c (fcntl): Undefine.
11609
11610 2010-05-09  Jim Meyering  <meyering@redhat.com>
11611
11612         verify: adjust formatting to be more consistent
11613         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
11614         argument-list '('s, and after one comma.
11615
11616 2010-05-09  Bruno Haible  <bruno@clisp.org>
11617
11618         error: More reliable output on mingw.
11619         * lib/error.c: Include <windows.h>.
11620         (is_open): New function.
11621         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
11622         defined.
11623
11624 2010-05-09  Bruno Haible  <bruno@clisp.org>
11625
11626         vasnprintf: Fix syntax errors in libintl build on mingw.
11627         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
11628         pad_ourselves and prec_ourselves after use.
11629
11630 2010-05-08  Bruno Haible  <bruno@clisp.org>
11631
11632         * lib/config.charset: Update comments for Cygwin 1.7.
11633         * lib/localcharset.c: Likewise.
11634
11635 2010-05-07  Jim Meyering  <meyering@redhat.com>
11636
11637         init.sh: improve comments
11638         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
11639         . "${srcdir=.}/init.sh"; path_prepend_ .
11640         Add a note about path_prepend_ and the alternative of using
11641         TESTS_ENVIRONMENT.
11642
11643 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
11644
11645         exclude: Unescape hashed patterns in wildcard mode.
11646         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
11647         to the hash list.
11648         * tests/test-exclude8.sh: New test case.
11649         * modules/exclude-tests: Add new test.
11650
11651 2010-05-05  Eric Blake  <eblake@redhat.com>
11652
11653         verify: automate tests
11654         * modules/verify-tests: New module.
11655         * tests/test-verify.sh: New file.
11656         * tests/test-verify.c: Guard each negative test with a unique id.
11657         Also avoid warning about unused left hand of comma expressions.
11658
11659 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11660
11661         Further improvements to verify.h, suggested by Eric Blake.
11662         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
11663         the GL_* versions, to avoid collision with OpenGL.
11664         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
11665         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
11666         than testing merely whether it's defined.
11667
11668         Modify verify.h to pacify gcc -Wredundant_decls.
11669         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
11670         These use the prefix "GL_" since they're likely to be useful elsewhere.
11671         We may need to break them out into a different .h file.
11672         (__COUNTER__): Define to 0 if the compiler doesn't support it.
11673         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
11674         of verify_function__.
11675
11676 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
11677
11678         Tests for module pwrite.
11679         * modules/pwrite-tests: New file.
11680         * tests/test-pwrite.sh: New file.
11681         * tests/test-pwrite.c: New file.
11682
11683         New module pwrite.
11684         * lib/unistd.in.h (pwrite): New declaration.
11685         * lib/pwrite.c: New file, from glibc with modifications.
11686         * m4/pwrite.m4: New file.
11687         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
11688         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
11689         REPLACE_PWRITE.
11690         * modules/pwrite: New file.
11691         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
11692         REPLACE_PWRITE.
11693         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
11694         * doc/posix-functions/pwrite.texi: Mention the new module.
11695
11696 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
11697
11698         pread: Update documentation.
11699         * doc/posix-functions/pread.texi: Mention the 'pread' module.
11700
11701 2010-05-04  Eric Blake  <eblake@redhat.com>
11702
11703         docs: update cygwin progress
11704         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
11705         this bug.
11706         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
11707         Added in cygwin 1.7.2.
11708         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
11709         Likewise.
11710         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
11711         Likewise.
11712         * doc/glibc-functions/dup3.texi (dup3): Likewise.
11713         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
11714         * doc/glibc-functions/accept4.texi (accept4): Likewise.
11715         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
11716         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
11717         Mention nproc module.
11718         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
11719         bug in cygwin 1.7.5 addition.
11720         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
11721         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
11722         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
11723         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
11724         1.7.5.
11725         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
11726         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
11727         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
11728         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
11729         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
11730         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
11731         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
11732         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
11733         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
11734         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
11735         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
11736         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
11737         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
11738         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
11739         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
11740         Likewise.
11741         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
11742         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
11743         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
11744         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
11745         Likewise.
11746         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
11747         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
11748         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
11749         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
11750         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
11751         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
11752         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
11753         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
11754         Likewise.
11755         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
11756         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
11757         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
11758         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
11759         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
11760         Likewise.
11761         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
11762         Likewise.
11763         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
11764         Likewise.
11765         * doc/glibc-functions/xdrrec_endofrecord.texi
11766         (xdrrec_endofrecord): Likewise.
11767         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
11768         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
11769         Likewise.
11770         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
11771         Likewise.
11772
11773 2010-05-04  Jim Meyering  <meyering@redhat.com>
11774
11775         gendocs.sh: make its "-s FILE" option more useful
11776         * build-aux/gendocs.sh: When honoring the -s FILE option, update
11777         $PACKAGE to reflect the probably-different basename of "FILE".
11778
11779 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
11780
11781         bootstrap: don't ignore download_po_files failure
11782         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
11783         failure.
11784
11785 2010-05-03  Jim Meyering  <meyering@redhat.com>
11786
11787         maint.mk: allow to pass options to gendocs.sh
11788         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
11789         (gendocs_options_): New overridable variable.
11790
11791         gnu-web-doc-update: don't ignore configure or build failure
11792         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
11793
11794         announce-gen: backslash-escape '@'s in --help output
11795         * build-aux/announce-gen: Fix syntax errors.
11796
11797         maint.mk, announce-gen: allow project-specific announcement mail headers
11798         * top/maint.mk (translation_project_): Define default.
11799         (announcement_Cc_, announcement_mail_headers_): Likewise.
11800         (announcement): Invoke announce-gen with new --mail-headers option.
11801         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
11802
11803         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
11804         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
11805         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
11806         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
11807         line in the "err2" output file when running "make check" in verbose
11808         mode (i.e., with set -x enabled).
11809
11810 2010-05-03  Bruno Haible  <bruno@clisp.org>
11811
11812         wctob: Fix for weird platforms.
11813         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
11814         argument value.
11815
11816 2010-05-03  Jim Meyering  <meyering@redhat.com>
11817
11818         maint.mk: prohibit unwarranted use of <strings.h>
11819         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
11820         strings.h in a file that does not also use strcasecmp, strncasecmp,
11821         ffs or ffsll.
11822
11823         maint.mk: remove obsolete comments
11824         * top/maint.mk: Remove stale, commented-out rules.
11825
11826 2010-05-02  Bruno Haible  <bruno@clisp.org>
11827
11828         wcwidth: Declare also when it's aliased.
11829         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
11830         macro.
11831
11832 2010-05-02  Bruno Haible  <bruno@clisp.org>
11833
11834         Fix regression from 2010-04-25.
11835         * gnulib-tool (func_modules_transitive_closure): Check the status of
11836         all modules, not only of the tests that are of the form foo-tests where
11837         foo is a module.
11838
11839 2010-05-02  Bruno Haible  <bruno@clisp.org>
11840
11841         wctob: Work around nasty Cygwin 1.7.2 bug.
11842         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
11843         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
11844
11845 2010-05-01  Bruno Haible  <bruno@clisp.org>
11846
11847         fpurge: Sharper test.
11848         * tests/test-fpurge.c (main): Add one more ftell check.
11849         * modules/fpurge-tests (Depends-on): Add ftell.
11850         Suggested by Eric Blake.
11851
11852 2010-05-01  Bruno Haible  <bruno@clisp.org>
11853
11854         ftello: Another test.
11855         * tests/test-ftello3.c: New file.
11856         * modules/ftello-tests (Files): Add it.
11857         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
11858         MOSTLYCLEANFILES.
11859
11860         ftell: Another test.
11861         * tests/test-ftell3.c: New file.
11862         * modules/ftell-tests (Files): Add it.
11863         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
11864         MOSTLYCLEANFILES.
11865
11866 2010-05-01  Bruno Haible  <bruno@clisp.org>
11867
11868         ftell, ftello: Work around Solaris bug.
11869         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
11870         * lib/ftello.c: Include stdio-impl.h.
11871         (ftello): On Solaris, when _IOWRT is set, compute the result without
11872         looking at _IOREAD.
11873         * modules/ftello (Files): Add lib/stdio-impl.h.
11874         * doc/posix-functions/ftell.texi: Mention Solaris bug.
11875         * doc/posix-functions/ftello.texi: Likewise.
11876         Reported by Eric Blake.
11877
11878 2010-05-01  Bruno Haible  <bruno@clisp.org>
11879
11880         freading: Adapt to special meaning of _IOREAD flag on Solaris.
11881         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
11882         the _IOWRT flag is also set.
11883
11884 2010-05-01  Bruno Haible  <bruno@clisp.org>
11885
11886         Fix doc about a HP-UX stdio bug.
11887         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
11888         * doc/posix-functions/ftello.texi: Likewise.
11889
11890 2010-05-01  Bruno Haible  <bruno@clisp.org>
11891
11892         lseek test: Fix failure on Solaris.
11893         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
11894         output.
11895
11896 2010-04-30  Jim Meyering  <meyering@redhat.com>
11897
11898         bootstrap: don't ignore failure to generate po*/Makevars
11899         * build-aux/bootstrap (with_gettext): Don't ignore failure
11900         to create po/Makevars or runtime-po/Makevars.
11901
11902 2010-04-29  Eric Blake  <eblake@redhat.com>
11903
11904         headers: relax license to LGPLv2+
11905         * modules/fcntl-h (License): Relax license.
11906         * modules/getopt-posix (License): Likewise.
11907         * modules/locale (License): Likewise.
11908         * modules/math (License): Likewise.
11909         * modules/pty (License): Likewise.
11910         * modules/sched (License): Likewise.
11911         * modules/search (License): Likewise.
11912         * modules/spawn (License): Likewise.
11913         * modules/stdarg (License): Likewise.
11914         * modules/sysexits (License): Likewise.
11915
11916 2010-04-29  Jim Meyering  <meyering@redhat.com>
11917
11918         inttypes: relax license to LGPLv2+
11919         * modules/inttypes (License): Relax license.
11920
11921 2010-04-29  Simon Josefsson  <simon@josefsson.org>
11922
11923         * top/maint.mk (indent): Run twice to produce idempotent results.
11924
11925 2010-04-28  Bruno Haible  <bruno@clisp.org>
11926
11927         getdate: Generate getdate.c in the source directory.
11928         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
11929         MOSTLYCLEANFILES.
11930         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
11931
11932 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
11933
11934         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
11935         is not declared as a const *; avoid warnings in that case.
11936
11937 2010-04-28  Eric Blake  <eblake@redhat.com>
11938
11939         canonicalize-lgpl: avoid compiler warning
11940         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
11941         declaration' / 'extraneous semicolon' warning with some compilers.
11942         Reported by Andreas Gruenbacher.
11943
11944 2010-04-28  Jim Meyering  <meyering@redhat.com>
11945
11946         init.sh: ensure a more reliable exit status when exiting via trap
11947         * tests/init.sh (setup_): Don't rely on $? in signal handler.
11948         Inspired by patches from Dmitry V. Levin.
11949         Also trap on signal 3 (SIGQUIT).
11950
11951 2010-04-27  Bruno Haible  <bruno@clisp.org>
11952
11953         Update doc about utimes().
11954         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
11955         'utimens' module.
11956         Reported by Andreas Gruenbacher <agruen@suse.de>.
11957
11958 2010-04-27  Eric Blake  <eblake@redhat.com>
11959
11960         full-read, full-write: relax license
11961         * modules/full-read (License): Drop to LGPLv2+.
11962         * modules/full-write (License): Likewise.
11963         * modules/safe-read (License): Likewise.
11964         * modules/safe-write (License): Likewise.
11965
11966         pthread: mention library for linking
11967         * modules/pthread (Link): Mention $(LIB_PTHREAD).
11968
11969 2010-04-27  Jim Meyering  <meyering@redhat.com>
11970
11971         maint.mk: fix a bug introduced in last change
11972         * top/maint.mk (gl_assured_headers_): Now that all names are on
11973         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
11974         is not anchored to end of word, it should be adequate.
11975
11976         maint.mk: avoid side-effect in latest syntax-check
11977         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
11978         to run commands via $(shell...), and hence to incur cost only when
11979         the new rule is actually run.
11980
11981         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
11982         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
11983         and use that to create a regexp used to detect all #if HAVE_..._H uses.
11984         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
11985         (gl_assured_headers_, az_, AZ_): Define.
11986         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
11987
11988 2010-04-26  Jim Meyering  <jim@meyering.net>
11989             Bruno Haible  <bruno@clisp.org>
11990
11991         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
11992         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
11993         Prompted by an exchange with Gilles Espinasse.
11994
11995 2010-04-26  Jim Meyering  <meyering@redhat.com>
11996
11997         git-version-gen: aesthetic tweak
11998         * build-aux/git-version-gen: Use "$nl" rather than a literal,
11999         so that the command remains on a single line.
12000
12001 2010-04-26  Eric Blake  <eblake@redhat.com>
12002
12003         git-version-gen: allow use on EBCDIC hosts
12004         * build-aux/git-version-gen (dirty): Use literal rather than tying
12005         ourselves to ascii.
12006         Reported by Steve Goetze.
12007
12008 2010-04-25  Bruno Haible  <bruno@clisp.org>
12009
12010         netdb: Add support for GNULIB_POSIXCHECK.
12011         * lib/netdb.in.h: Include warn-on-use.h.
12012         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
12013         functions are used when GNULIB_POSIXCHECK is defined and the
12014         getaddrinfo module is not in use.
12015         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
12016         freeaddrinfo, gai_strerror, getnameinfo are declared.
12017         * modules/netdb (Depends-on): Add warn-on-use.
12018         (Makefile.am): Include warn-on-use.h in netdb.h.
12019
12020 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
12021
12022         build: avoid "make check" failure without .git/ directory
12023         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
12024         there is no .git/ directory.
12025
12026 2010-04-25  Bruno Haible  <bruno@clisp.org>
12027
12028         ptsname: Fix misuse of ttyname_r.
12029         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
12030         of errno.
12031
12032 2010-04-25  Bruno Haible  <bruno@clisp.org>
12033
12034         ttyname_r: Make it work on Solaris 10.
12035         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
12036         if the system function has the POSIX declaration. Test whether the
12037         function fails if the buffer is less than 128 bytes large.
12038         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
12039         system's ttyname_r function. Provide a reasonably large buffer.
12040         * modules/ttyname_r (Depends-on): Add extensions.
12041         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
12042
12043 2010-04-25  Bruno Haible  <bruno@clisp.org>
12044
12045         Use the 'extensions' module for some more functions on Solaris.
12046         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
12047         module.
12048         * doc/posix-functions/ctime_r.texi: Likewise.
12049         * doc/posix-functions/getgrgid_r.texi: Likewise.
12050         * doc/posix-functions/getgrnam_r.texi: Likewise.
12051         * doc/posix-functions/getpwnam_r.texi: Likewise.
12052         * doc/posix-functions/getpwuid_r.texi: Likewise.
12053         * doc/posix-functions/readdir_r.texi: Likewise.
12054         * doc/posix-functions/sigwait.texi: Likewise.
12055         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
12056         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
12057
12058 2010-04-25  Bruno Haible  <bruno@clisp.org>
12059
12060         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
12061         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
12062         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
12063         * lib/ttyname_r.c: Include <limits.h>.
12064         (ttyname_r): Define using the system's ttyname_r function, if it exists
12065         and not on Solaris.
12066         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
12067         set.
12068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
12069         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
12070         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
12071         Reported by Simon Josefsson.
12072
12073 2010-04-25  Bruno Haible  <bruno@clisp.org>
12074
12075         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
12076         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
12077         * doc/posix-functions/ctime_r.texi: Likewise.
12078         * doc/posix-functions/getgrgid_r.texi: Likewise.
12079         * doc/posix-functions/getgrnam_r.texi: Likewise.
12080         * doc/posix-functions/getlogin_r.texi: Likewise.
12081         * doc/posix-functions/getpwnam_r.texi: Likewise.
12082         * doc/posix-functions/getpwuid_r.texi: Likewise.
12083         * doc/posix-functions/readdir_r.texi: Likewise.
12084         * doc/posix-functions/sigwait.texi: Likewise.
12085         * doc/posix-functions/ttyname_r.texi: Likewise.
12086         Reported by Simon Josefsson.
12087
12088 2010-04-25  Bruno Haible  <bruno@clisp.org>
12089
12090         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
12091         * gnulib-tool (func_usage): Document that --with-*-tests options apply
12092         also to --create-testdir.
12093         (func_acceptable): Don't consider the status of *-tests modules here.
12094         (func_modules_transitive_closure): Consider it here, before including a
12095         test module.
12096         (func_import, func_create_testdir): Set inc_all_direct_tests,
12097         inc_all_indirect_tests.
12098         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
12099         --create-testdir and --create-megatestdir.
12100
12101 2010-04-25  Bruno Haible  <bruno@clisp.org>
12102
12103         gnulib-tool: Add --without-*-tests options.
12104         * gnulib-tool (func_usage): Document the --without-*-tests options.
12105         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
12106         excl_unportable_tests): New variables.
12107         Fail if they are specified with --import or --update.
12108         (func_acceptable): Respect the excl_*_tests variables.
12109         (func_import): Set the excl_*_tests variables to empty.
12110
12111 2010-04-25  Simon Josefsson  <simon@josefsson.org>
12112             Bruno Haible  <bruno@clisp.org>
12113
12114         Work around a MacOS X 10.4 bug with openpty.
12115         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
12116         * tests/test-openpty.c (main): Close the master side explicitly.
12117
12118 2010-04-25  Bruno Haible  <bruno@clisp.org>
12119
12120         strnlen: Fix a C++ test error on MacOS X and Solaris.
12121         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
12122         the function is not declared.
12123         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
12124         Simon Josefsson.
12125
12126 2010-04-24  Bruno Haible  <bruno@clisp.org>
12127
12128         Avoid a gcc warning.
12129         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
12130         of correct type for %08lx directive.
12131         Reported by Eric Blake.
12132
12133 2010-04-24  Bruno Haible  <bruno@clisp.org>
12134
12135         vasnprintf: Correct errno value in case of out-of-memory.
12136         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
12137         or sprintf. Use the errno value from SNPRINTF or sprintf.
12138         Reported by Ian Beckwith <ianb@erislabs.net>.
12139
12140 2010-04-24  Bruno Haible  <bruno@clisp.org>
12141
12142         ansi-c++-opt: Find correct compiler when cross-compiling.
12143         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
12144         AC_CHECK_PROGS.
12145         Reported by Simon Josefsson.
12146
12147 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
12148
12149         vc-list-files: Add support for subversion
12150         * build-aux/vc-list-files: Use "svn list" to generate the list of
12151         files controlled by subversion.
12152
12153 2010-04-23  Jim Meyering  <meyering@redhat.com>
12154
12155         vc-list-files tests: convert to use init.sh
12156         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
12157         path_prepend_.
12158         Use Exit, not exit.
12159         Use skip_ rather than open coding it.
12160         Remove trap set-up and compare definitions.
12161         * tests/test-vc-list-files-git.sh: Likewise.
12162         * modules/vc-list-files-tests (Files): Add tests/init.sh.
12163
12164 2010-04-22  Simon Josefsson  <simon@josefsson.org>
12165
12166         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
12167         backup files.
12168
12169 2010-04-21  Simon Josefsson  <simon@josefsson.org>
12170
12171         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
12172
12173 2010-04-20  Eric Blake  <eblake@redhat.com>
12174
12175         tests: be robust to ignored SIGPIPE
12176         * tests/test-select-in.sh: Consume all output.
12177         * tests/test-lseek.sh: Check correct exit status, while avoiding
12178         EPIPE.
12179
12180 2010-04-20  Simon Josefsson  <simon@josefsson.org>
12181             Bruno Haible  <bruno@clisp.org>
12182
12183         visibility: Don't use -fvisibility if it leads to a warning.
12184         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
12185         yes, don't pretend that visibility works if it leads to a warning.
12186         Reported by Mike Gran <spk121@yahoo.com>.
12187
12188 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
12189
12190         * build-aux/bootstrap: Use "git -h" for testing for supported options
12191         instead of "git --help".  The short-form option only shows a summary,
12192         and doesn't layout the full man page.  Grep for the full option name
12193         in the summary, too.
12194
12195 2010-04-19  Bruno Haible  <bruno@clisp.org>
12196
12197         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
12198         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
12199         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
12200         mention of RELOCATABLE_STRIP.
12201         Reported by Sylvain Beucler <beuc@beuc.net>.
12202
12203 2010-04-19  Bruno Haible  <bruno@clisp.org>
12204
12205         * lib/diffseq.h: Fix typo in comment.
12206         Reported by Eric Blake.
12207
12208 2010-04-19  Bruno Haible  <bruno@clisp.org>
12209
12210         ioctl: Move autoconf macro to a .m4 file.
12211         * m4/ioctl.m4: New file, extracted from modules/ioctl.
12212         * modules/ioctl (Files): Add it.
12213         (configure.ac): Simply invoke gl_FUNC_IOCTL.
12214         Reported by Ian Beckwith <ianb@erislabs.net>.
12215
12216 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
12217             Bruno Haible  <bruno@clisp.org>
12218
12219         diffseq: Accommodate use-case with abstract arrays.
12220         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
12221         is not defined.
12222         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
12223         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
12224
12225 2010-04-18  Bruno Haible  <bruno@clisp.org>
12226
12227         * doc/posix-headers/stdbool.texi: More precise wording.
12228
12229 2010-04-17  Jim Meyering  <meyering@redhat.com>
12230
12231         maint.mk: use gnu-style indentation in an embedded perl script
12232         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
12233         Rename variable: s/two/last_two_bytes/
12234
12235 2010-04-16  Eric Blake  <eblake@redhat.com>
12236
12237         test-stdbool: skip test that fails with Solaris CC
12238         * tests/test-stdbool.c (f): Skip test that causes compilation
12239         error under buggy C++ compiler.
12240         * lib/stdbool.in.h: Document the limitation.
12241         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
12242
12243         setenv: allow compilation with C++
12244         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
12245         register keyword.
12246
12247         stdint: allow test to pass with C++
12248         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
12249
12250         getopt: allow compilation with C++
12251         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
12252         struct.
12253         * lib/getopt.c (_getopt_internal_r): Use correct type.
12254         Reported by Dagobert Michelson, via Joel E. Denny.
12255
12256 2010-04-16  Bruno Haible  <bruno@clisp.org>
12257
12258         Override netdb.h always.
12259         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
12260         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
12261         Reported by Ludovic Courtès <ludo@gnu.org>.
12262
12263 2010-04-15  Bruno Haible  <bruno@clisp.org>
12264
12265         openpty: Fix mistake from 2010-03-21.
12266         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
12267         Reported by Simon Josefsson.
12268
12269 2010-04-15  Eric Blake  <eblake@redhat.com>
12270
12271         test-forkpty: fix expected signature
12272         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
12273         Reported by Simon Josefsson.
12274
12275 2010-04-15  Jim Meyering  <meyering@redhat.com>
12276
12277         maint.mk: texinfo_suffix_re_: correct the default regexp
12278         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
12279
12280         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
12281         make it configurable via texinfo_suffix_re_.
12282
12283 2010-04-14  Eric Blake  <eblake@redhat.com>
12284
12285         strtok_r: relax license to LGPLv2+
12286         * modules/strtok_r (License): Relax license.
12287         Reported by Matthias Bolte.
12288
12289 2010-04-14  Simon Josefsson  <simon@josefsson.org>
12290
12291         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
12292         version 1.4.4 by default instead of requiring the libgcrypt
12293         version used during build.  This makes it possible to use the
12294         application with older but still binary compatible libgcrypt
12295         versions.
12296
12297 2010-04-13  Eric Blake  <eblake@redhat.com>
12298
12299         getopt-gnu: match recent glibc fixes and posix ruling
12300         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
12301         '+' handling, when requesting extensions.
12302         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
12303         'W;' handling.
12304         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
12305         * doc/posix-functions/getopt.texi (getopt): Document this.
12306         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12307         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12308         Likewise.
12309
12310         getopt: merge bug fixes from glibc
12311         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
12312         diagnostics.  Honor '+:' correctly.  Reject ';'.
12313
12314         getopt-posix: detect MacOS bug
12315         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
12316         optind when missing a required argument.
12317         * doc/posix-functions/getopt.texi (getopt): Document the bug.
12318         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12319         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12320         Likewise.
12321
12322         getopt-posix: avoid spurious failure on Solaris
12323         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
12324         an indicator that setting optind=1 is sufficient for reset.
12325
12326         getopt-posix: avoid spurious failure on FreeBSD
12327         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
12328         in POSIX mode, since the m4 test uses it.
12329
12330         gnulib-tool: silence warning on BSD sh
12331         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
12332
12333 2010-04-13  Jim Meyering  <meyering@redhat.com>
12334
12335         doc: users.txt: GNU patch now uses gnulib
12336         * users.txt: Add patch.
12337
12338 2010-04-12  Jim Meyering  <meyering@redhat.com>
12339
12340         maint.mk: generate more concise timing data for syntax-check rules
12341         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
12342         " done" from each line that reports a syntax-check test duration.
12343
12344 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
12345
12346         git-version-gen: use "git update-index..." rather than "git status"
12347         * build-aux/git-version-gen: Use git update-index --refresh, not
12348         "git status".  With some versions of git, "git status" would fail
12349         to update the index and result in an unwarranted "-dirty" suffix.
12350
12351 2010-04-11  Jim Meyering  <meyering@redhat.com>
12352
12353         openat: correct formatting (no semantic change)
12354         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
12355         Suggested by Bruno Haible.
12356
12357 2010-04-11  Bruno Haible  <bruno@clisp.org>
12358
12359         Stricter declaration checking in testdirs.
12360         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12361         If for_tests is true, augment AM_CPPFLAGS to define
12362         GNULIB_STRICT_CHECKING.
12363         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
12364         GNULIB_STRICT_CHECKING is defined, verify that the function is
12365         declared.
12366
12367 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
12368             Bruno Haible  <bruno@clisp.org>
12369
12370         libunistring: Improve configure output.
12371         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
12372         Don't say "consider installing GNU libunistring" when checking again
12373         with libiconv.
12374
12375 2010-04-11  Bruno Haible  <bruno@clisp.org>
12376
12377         libunistring: Correct value of $LTLIBUNISTRING.
12378         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
12379         correct the value of $LTLIBUNISTRING.
12380
12381 2010-04-11  Bruno Haible  <bruno@clisp.org>
12382
12383         havelib: Add static libraries to LIBS in the right order.
12384         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
12385         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
12386
12387 2010-04-11  Bruno Haible  <bruno@clisp.org>
12388
12389         libunistring: Detect libunistring also when it depends on libiconv.
12390         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
12391         the second AC_LIB_HAVE_LINKFLAGS invocation.
12392
12393 2010-04-11  James Youngman  <jay@gnu.org>
12394
12395         close-stream: declare local scalars to be "const"
12396         * lib/close-stream.c (close_stream): Make boolean variables const
12397         to document the fact that we set but do not change them.
12398
12399 2010-04-11  Bruno Haible  <bruno@clisp.org>
12400
12401         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
12402
12403 2010-04-11  Jim Meyering  <meyering@redhat.com>
12404
12405         maint.mk: don't include dist-check.mk
12406         * top/maint.mk: Remove bogus include directive.
12407
12408         maint.mk: improve empty-line-at-EOF check
12409         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
12410         solution, rather than tail+Perl-based one.  The latter would read
12411         a few kilobytes from the end of each file, and did not handle empty
12412         files properly.
12413
12414         maint.mk: print the elapsed time for each syntax-check rule
12415         * top/maint.mk (sc_m_rules_): Save start time in a file.
12416         (sc_z_rules_): New rules: remove temp file and print elapsed time.
12417         (local-check): Interpose the .z rules
12418
12419 2010-04-11  Jim Meyering  <meyering@redhat.com>
12420
12421         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
12422         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
12423         empty file with one that ends in an empty line.
12424
12425 2010-04-10  Bruno Haible  <bruno@clisp.org>
12426
12427         mkdir: Make it work on mingw64.
12428         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
12429         * lib/mkdir.c: Update comment.
12430         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
12431
12432 2010-04-10  Bruno Haible  <bruno@clisp.org>
12433
12434         Don't override improved macro from newer autoconf.
12435         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
12436         autoconf >= 2.62.
12437         Reported by Joel E. Denny <jdenny@clemson.edu>.
12438
12439 2010-04-10  Jim Meyering  <meyering@redhat.com>
12440
12441         maint.mk: new syntax-check rule: prohibit empty lines at end of file
12442         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
12443
12444         maint.mk: correct a diagnostic
12445         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
12446         in diagnostic; now use $prohibit.
12447
12448 2010-04-10  Bruno Haible  <address@hidden>
12449
12450         fchownat: Fix a C++ test error on Solaris 8.
12451         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
12452         the function does not exist.
12453
12454 2010-04-10  Bruno Haible  <bruno@clisp.org>
12455
12456         vasnprintf: Add more tests.
12457         * tests/test-vasnprintf-posix.c: Include <errno.h>.
12458         (test_function): Test converting an invalid wide string.
12459
12460         vasnprintf: Correct handling of unconvertible wide string arguments.
12461         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
12462         VASNPRINTF.
12463         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
12464         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
12465         smaller than the expected maximum need for the directive. Set errno to
12466         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
12467         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
12468         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
12469         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
12470         * modules/vasnprintf (Files): Add m4/printf.m4.
12471         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12472
12473 2010-04-10  Bruno Haible  <bruno@clisp.org>
12474
12475         vasnprintf: Fix crash in %ls directive.
12476         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
12477         string is passed as argument to %ls, with no precision and no width.
12478         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12479
12480 2010-04-10  Bruno Haible  <bruno@clisp.org>
12481
12482         vasnprintf: Fix multiple test failures on mingw.
12483         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
12484         _snprintf, or snwprintf, not _snwprintf.
12485
12486 2010-04-10  Bruno Haible  <bruno@clisp.org>
12487
12488         write: Fix a C++ test error on mingw.
12489         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
12490
12491 2010-04-10  Bruno Haible  <bruno@clisp.org>
12492
12493         vasnprintf test: Reduce code duplication.
12494         * tests/test-vasnprintf.c (test_function): New function, extracted from
12495         test_vasnprintf.
12496         (test_vasnprintf, test_asnprintf): Invoke it.
12497
12498 2010-04-10  Bruno Haible  <bruno@clisp.org>
12499
12500         strnlen: Fix warning in C++ mode on MacOS X.
12501         * lib/string.in.h (strnlen): Use the modern idiom.
12502         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
12503         defining strnlen as a macro already in <config.h>.
12504         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12505         REPLACE_STRNLEN.
12506         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
12507         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12508
12509 2010-04-08  James Youngman  <jay@gnu.org>
12510
12511         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
12512         the example.
12513
12514 2010-04-09  Jim Meyering  <meyering@redhat.com>
12515
12516         maint.mk: print better diagnostic when there is no $(_hv_file)
12517         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
12518         announce that when $(_hv_file) (aka help-version) does not exist.
12519
12520         init.sh: run tr in the "C" locale to avoid multibyte interpretation
12521         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
12522         not try to interpret its random input bytes.  Jarno Rajahalme reported
12523         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
12524         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
12525         (mktempd_): Likewise, just in case.
12526
12527         ftruncate: add two years to projected module removal date: 2012
12528         * m4/ftruncate.m4: Adjust comments.
12529
12530         ftruncate: mark module as obsolete; even MinGW provides it, now
12531         * modules/ftruncate (Status): Obsolete.
12532         (Notice): Say that.
12533         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
12534         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
12535
12536 2010-04-08  Bruno Haible  <bruno@clisp.org>
12537
12538         Fix side effects from tests-related modules.
12539         * modules/dprintf-posix (Comment): New section.
12540         * modules/fprintf-posix (Comment): Likewise.
12541         * modules/obstack-printf-posix (Comment): Likewise.
12542         * modules/printf-posix (Comment): Likewise.
12543         * modules/snprintf-posix (Comment): Likewise.
12544         * modules/sprintf-posix (Comment): Likewise.
12545         * modules/vasnprintf-posix (Comment): Likewise.
12546         * modules/vasprintf-posix (Comment): Likewise.
12547         * modules/vdprintf-posix (Comment): Likewise.
12548         * modules/vfprintf-posix (Comment): Likewise.
12549         * modules/vprintf-posix (Comment): Likewise.
12550         * modules/vsnprintf-posix (Comment): Likewise.
12551         * modules/vsprintf-posix (Comment): Likewise.
12552         * modules/xprintf-posix (Comment): Likewise.
12553         * modules/xvasprintf-posix (Comment): Likewise.
12554         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
12555         * modules/floorf-tests (Depends-on): Likewise.
12556         * modules/round-tests (Depends-on): Likewise.
12557         * modules/roundf-tests (Depends-on): Likewise.
12558         * modules/trunc-tests (Depends-on): Likewise.
12559         * modules/truncf-tests (Depends-on): Likewise.
12560         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
12561         'fprintf-posix' module is not present.
12562         * tests/test-floorf2.c (check): Likewise.
12563         * tests/test-trunc2.c (check): Likewise.
12564         * tests/test-truncf2.c (check): Likewise.
12565         * tests/test-round2.c (equal): Likewise.
12566         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12567
12568 2010-04-07  Karl Berry  <karl@gnu.org>
12569
12570         * config/srclist.txt,
12571         * config/srclistvars.sh,
12572         * config/srclist-update: doc fixes.
12573
12574 2010-04-07  Jim Meyering  <meyering@redhat.com>
12575
12576         maint.mk: add a PATH crosschecking syntax-check rule
12577         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
12578         Useful if you use a test like the one in help-version (coreutils,
12579         diffutils, grep, gzip) that ensures $(VERSION) matches what is
12580         printed by prog --version.
12581
12582 2010-04-06  Bruno Haible  <bruno@clisp.org>
12583
12584         Fix link error on mingw.
12585         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
12586         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
12587
12588 2010-04-06  Bruno Haible  <bruno@clisp.org>
12589
12590         Assume rmdir exists.
12591         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
12592
12593 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
12594
12595         doc: update users.txt
12596         * users.txt: Add gcal.
12597
12598 2010-04-06  Jim Meyering  <meyering@redhat.com>
12599
12600         init.sh: simply unset TMPDIR rather than risking env -i
12601         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
12602         although it probably works fine on all Unix-based systems, some
12603         systems (Cygwin?) cannot tolerate a totally cleared environment.
12604         Suggestion from Eric Blake.
12605
12606 2010-04-06  Jim Meyering  <meyering@redhat.com>
12607
12608         init.sh: portability fix: use env's POSIX-specified -i option not -u
12609         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
12610         than unportable env -u.  Solaris 5.11's env lacks support for -u.
12611
12612 2010-04-05  Bruno Haible  <bruno@clisp.org>
12613
12614         btowc: Work around Cygwin 1.7.2 bug.
12615         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
12616         does not map NUL to 0.
12617         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
12618
12619 2010-04-05  Bruno Haible  <bruno@clisp.org>
12620
12621         Make the multithread modules work on Cygwin 1.7.2.
12622         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
12623         imported symbols can be declared weak, so that it returns "no" on
12624         Cygwin 1.7.2.
12625
12626 2010-04-05  Bruno Haible  <bruno@clisp.org>
12627
12628         Use the module 'strncat'.
12629         * modules/unistr/u8-strncat (Depends-on): Add strncat.
12630
12631         Tests for module 'strncat'.
12632         * modules/strncat-tests: New file.
12633         * tests/test-strncat.c: New file.
12634
12635         New module 'strncat'.
12636         * lib/string.in.h (strncat): New declaration.
12637         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
12638         * m4/strncat.m4: New file, based on m4/memchr.m4.
12639         * modules/strncat: New file.
12640         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
12641         is declared.
12642         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
12643         REPLACE_STRNCAT.
12644         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
12645         REPLACE_STRNCAT.
12646         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
12647         module.
12648         * tests/test-string-c++.cc: Check signature of strncat.
12649
12650 2010-04-05  Jim Meyering  <meyering@redhat.com>
12651
12652         xstrtoumax-tests: convert to use init.sh
12653         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
12654         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12655         Use Exit, not exit.
12656         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12657
12658         xstrtoimax-tests: convert to use init.sh
12659         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
12660         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12661         Use Exit, not exit.
12662         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12663
12664 2010-04-05  Bruno Haible  <bruno@clisp.org>
12665
12666         sys_socket: Avoid #define replacements in C++ mode.
12667         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
12668         warning to the function if possible, rather than #defining the symbol
12669         to a dysfunctional alias.
12670
12671 2010-04-05  Bruno Haible  <bruno@clisp.org>
12672
12673         fseeko: Fix C++ test error on mingw.
12674         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
12675         gl_FUNC_FSEEKO.
12676         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
12677         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
12678         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
12679         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
12680
12681 2010-04-05  Bruno Haible  <bruno@clisp.org>
12682
12683         duplocale: Improve test output.
12684         * tests/test-duplocale.c (main): Print reason for skipped test.
12685
12686 2010-04-05  Bruno Haible  <bruno@clisp.org>
12687
12688         Assume rmdir exists.
12689         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
12690         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
12691
12692 2010-04-05  Bruno Haible  <bruno@clisp.org>
12693
12694         Fix link error on Solaris 8 with cc.
12695         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
12696
12697 2010-04-05  Bruno Haible  <bruno@clisp.org>
12698
12699         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
12700         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
12701
12702 2010-04-05  Bruno Haible  <bruno@clisp.org>
12703
12704         vasprintf: Update documentation.
12705         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
12706
12707 2010-04-05  Bruno Haible  <bruno@clisp.org>
12708
12709         ptsname: Improve test.
12710         * tests/test-ptsname.c (main): Also try the various master names of BSD
12711         systems.
12712
12713 2010-04-05  Bruno Haible  <bruno@clisp.org>
12714
12715         memchr: Avoid a possible C++ test error.
12716         * lib/string.in.h (memchr): Provide declaration if function is missing.
12717         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
12718         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
12719         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
12720         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
12721
12722 2010-04-05  Bruno Haible  <bruno@clisp.org>
12723
12724         strtok_r: Improve idiom.
12725         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
12726         AC_LIBOBJ is used.
12727
12728 2010-04-05  Bruno Haible  <bruno@clisp.org>
12729
12730         strdup: Improve idiom.
12731         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
12732         AC_LIBOBJ is used.
12733         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
12734         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
12735         when AC_LIBOBJ is used.
12736
12737 2010-04-05  Bruno Haible  <bruno@clisp.org>
12738
12739         mbsinit, mbrtowc, wcrtomb: Improve idioms.
12740         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
12741         don't set REPLACE_MBSINIT to 1.
12742         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
12743         don't set REPLACE_MBRTOWC to 1.
12744         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
12745         exist, don't set REPLACE_MBSRTOWCS to 1.
12746         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
12747         exist, don't set REPLACE_MBSNRTOWCS to 1.
12748         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
12749         don't set REPLACE_WCRTOMB to 1.
12750         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
12751         exist, don't set REPLACE_WCSRTOMBS to 1.
12752         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
12753         exist, don't set REPLACE_WCSNRTOMBS to 1.
12754
12755 2010-04-05  Bruno Haible  <bruno@clisp.org>
12756
12757         ldexpl: Improve idiom.
12758         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
12759         make sure to set HAVE_DECL_LDEXPL to 0.
12760
12761 2010-04-05  Jim Meyering  <meyering@redhat.com>
12762
12763         xstrtol-tests: convert to use init.sh
12764         * modules/xstrtol-tests (Files): Add tests/init.sh.
12765         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12766         Use Exit, not exit.
12767         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12768
12769         atexit-tests: convert to use init.sh
12770         * modules/atexit-tests (Files): Add tests/init.sh.
12771         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12772         Use Exit, not exit.
12773         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12774
12775         init.sh: fix typo
12776         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
12777
12778         init.sh: make it easier for a test script to write to the tty, ...
12779         when using automake's parallel-tests mode.
12780         * tests/init.sh (stderr_fileno_): Define overridable variable.
12781         (warn_): New function, to use it.
12782         (fail_, skip_, framework_failure_): Use warn_.
12783
12784 2010-04-04  Bruno Haible  <bruno@clisp.org>
12785
12786         btowc: Avoid warning.
12787         * lib/btowc.c: Include <stdlib.h>.
12788         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
12789
12790 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
12791             Bruno Haible  <bruno@clisp.org>
12792
12793         wchar: Port to NetBSD 1.5.
12794         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
12795         * lib/wctype.in.h (WEOF): Likewise.
12796
12797 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
12798             Bruno Haible  <bruno@clisp.org>
12799
12800         Port extended stdio to NetBSD 1.5.
12801         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
12802         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
12803         older.
12804
12805 2010-04-04  Bruno Haible  <bruno@clisp.org>
12806
12807         string: Remove unused substitution.
12808         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
12809         HAVE_DECL_STRERROR.
12810         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
12811
12812 2010-04-04  Bruno Haible  <bruno@clisp.org>
12813
12814         strtod: Avoid a possible C++ test error.
12815         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
12816         set REPLACE_STRTOD.
12817
12818 2010-04-04  Bruno Haible  <bruno@clisp.org>
12819
12820         strerror: Update documentation.
12821         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
12822
12823 2010-04-04  Bruno Haible  <bruno@clisp.org>
12824
12825         stdio: Fix some C++ test errors on Solaris 8 with GCC.
12826         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
12827         _GL_CXXALIAS_SYS_CAST.
12828
12829 2010-04-04  Bruno Haible  <bruno@clisp.org>
12830
12831         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
12832         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
12833         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
12834         REPLACE_FREXPL to 1.
12835         * doc/posix-functions/frexpl.texi: Update documentation.
12836
12837 2010-04-04  Bruno Haible  <bruno@clisp.org>
12838
12839         math: Fix some C++ test errors on Solaris 8 and Cygwin.
12840         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
12841
12842 2010-04-04  Bruno Haible  <bruno@clisp.org>
12843
12844         Implement nanosleep for native Windows.
12845         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
12846
12847 2010-04-04  Bruno Haible  <bruno@clisp.org>
12848
12849         math: Fix some C++ test errors on Solaris 8.
12850         * lib/math.in.h (truncf, trunc): Use simpler idiom.
12851
12852 2010-04-04  Bruno Haible  <bruno@clisp.org>
12853
12854         math: Fix some C++ test errors on Cygwin.
12855         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
12856         truncl): Provide declaration if the system does not have it.
12857         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
12858         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
12859         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
12860         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
12861         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
12862         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
12863         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
12864         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
12865         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
12866         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
12867         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
12868         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
12869         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
12870         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
12871         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
12872         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
12873         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
12874         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
12875         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
12876         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
12877         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
12878         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
12879
12880 2010-04-04  Bruno Haible  <bruno@clisp.org>
12881
12882         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
12883         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12884         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12885         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
12886         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
12887         * m4/isinf.m4 (gl_ISINF): Likewise.
12888         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12889
12890 2010-04-04  Bruno Haible  <bruno@clisp.org>
12891
12892         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
12893         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12894
12895 2010-04-04  Bruno Haible  <bruno@clisp.org>
12896
12897         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
12898         * modules/tmpfile (configure.ac): Update.
12899
12900         tmpfile: Fix C++ test error on mingw.
12901         * lib/stdio.in.h (tmpfile): New declaration.
12902         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
12903         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
12904         * modules/tmpfile (Depends-on): Add stdio.
12905         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
12906         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
12907         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
12908         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
12909         REPLACE_TMPFILE.
12910         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
12911
12912 2010-04-04  Bruno Haible  <bruno@clisp.org>
12913
12914         ioctl: Fix C++ test error on mingw.
12915         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
12916         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
12917         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
12918
12919 2010-04-03  Bruno Haible  <bruno@clisp.org>
12920
12921         wcwidth: Fix C++ test error on mingw.
12922         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
12923         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
12924         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
12925
12926 2010-04-03  Bruno Haible  <bruno@clisp.org>
12927
12928         nanosleep: Fix C++ test error on mingw.
12929         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
12930         * lib/time.in.h (nanosleep): Use modern idiom.
12931         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
12932         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
12933         REPLACE_NANOSLEEP to 1.
12934         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
12935         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
12936
12937 2010-04-03  Bruno Haible  <bruno@clisp.org>
12938
12939         strptime: Fix C++ test error on mingw.
12940         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
12941         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
12942         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
12943         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
12944         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
12945         not REPLACE_STRPTIME.
12946         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
12947         REPLACE_STRPTIME.
12948
12949 2010-04-03  Bruno Haible  <bruno@clisp.org>
12950
12951         timegm: Fix C++ test error on mingw.
12952         * lib/time.in.h (timegm): Use modern idiom.
12953         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
12954         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
12955         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
12956         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
12957
12958 2010-04-03  Bruno Haible  <bruno@clisp.org>
12959
12960         timegm: Assume declaration if function exists.
12961         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
12962         if it exists. Don't clobber ac_cv_func_timegm.
12963
12964 2010-04-03  Bruno Haible  <bruno@clisp.org>
12965
12966         time_r: Fix C++ test error on mingw.
12967         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
12968         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
12969         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
12970         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
12971         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
12972
12973 2010-04-03  Bruno Haible  <bruno@clisp.org>
12974
12975         time_r: Minor updates.
12976         * modules/time_r (Description): Mention the provided functions.
12977         * lib/time_r.c: Don't include <string.h>.
12978         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
12979         * doc/posix-functions/localtime_r.texi: Likewise.
12980
12981 2010-04-03  Bruno Haible  <bruno@clisp.org>
12982
12983         time: Fix regression introduced on 2010-03-08.
12984         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
12985         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
12986
12987 2010-04-03  Jim Meyering  <meyering@redhat.com>
12988
12989         maint.mk: don't silently disable project-specific syntax-check rules
12990         * top/maint.mk (_prohibit_regexp): Define, to help people realize
12991         that they need to convert their project-specific syntax-check rules
12992         to use the new _sc_search_regexp.
12993
12994 2010-04-03  Bruno Haible  <bruno@clisp.org>
12995
12996         fchdir: Fix regression introduced on 2010-03-08.
12997         * lib/unistd.in.h (fchdir): Fix declaration.
12998         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
12999         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
13000         REPLACE_FCHDIR.
13001         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
13002         REPLACE_FCHDIR.
13003
13004 2010-04-03  Bruno Haible  <bruno@clisp.org>
13005
13006         getpagesize: Fix C++ test error on mingw.
13007         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
13008         system does not declare the function.
13009         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
13010         declared.
13011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13012         HAVE_DECL_GETPAGESIZE.
13013         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
13014
13015 2010-04-03  Bruno Haible  <bruno@clisp.org>
13016
13017         stdio: Make C++ tests work on mingw.
13018         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
13019         does not declare the function.
13020
13021 2010-04-03  Bruno Haible  <bruno@clisp.org>
13022
13023         ftello: Fix C++ test error on mingw.
13024         * lib/stdio.in.h (ftello): Use modern idiom.
13025         * lib/ftello.c (ftello): Renamed from rpl_ftello.
13026         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
13027         is missing and that it needs to be replaced.
13028         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
13029         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
13030         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
13031
13032 2010-04-03  Bruno Haible  <bruno@clisp.org>
13033
13034         fseeko: Fix C++ test error on mingw.
13035         * lib/stdio.in.h (fseeko): Use modern idiom.
13036         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
13037         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
13038         is missing and that it needs to be replaced.
13039         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
13040         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
13041         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
13042
13043 2010-04-03  Bruno Haible  <bruno@clisp.org>
13044
13045         mkstemp: Fix C++ test error on mingw.
13046         * lib/stdlib.in.h (mkstemp): Use modern idiom.
13047         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
13048         function is missing and that it needs to be replaced.
13049         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
13050         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
13051
13052 2010-04-03  Bruno Haible  <bruno@clisp.org>
13053
13054         stpncpy: Fix C++ test error on mingw.
13055         * lib/string.in.h (stpncpy): Use modern idiom.
13056         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
13057         function is missing and that it needs to be replaced.
13058         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13059         REPLACE_STPNCPY.
13060         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
13061
13062 2010-04-03  Bruno Haible  <bruno@clisp.org>
13063
13064         sys_stat: Fix C++ test error on mingw.
13065         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
13066         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
13067
13068 2010-04-03  Bruno Haible  <bruno@clisp.org>
13069
13070         pty: Update doc.
13071         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
13072
13073 2010-04-03  Bruno Haible  <bruno@clisp.org>
13074
13075         unistd: Fix C++ test error on mingw.
13076         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
13077
13078 2010-04-03  Bruno Haible  <bruno@clisp.org>
13079
13080         Update doc regarding mingw.
13081         * doc/glibc-functions/openpty.texi: Update regarding mingw.
13082         * doc/glibc-functions/login_tty.texi: Likewise.
13083         * doc/glibc-functions/forkpty.texi: Likewise.
13084
13085 2010-04-03  Bruno Haible  <bruno@clisp.org>
13086
13087         stdlib: Avoid compilation failure of c-strtold on mingw.
13088         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
13089
13090 2010-04-03  Bruno Haible  <bruno@clisp.org>
13091
13092         locale: Make C++ tests work on Cygwin and mingw.
13093         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
13094         cannot provide the function.
13095         Reported by Simon Josefsson.
13096
13097 2010-04-03  Bruno Haible  <bruno@clisp.org>
13098
13099         localename: Port to MacOS X 10.6.
13100         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
13101         memory layout of the locales in MacOS X 10.6 as well.
13102         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
13103
13104 2010-04-02  Bruno Haible  <bruno@clisp.org>
13105
13106         gnulib-tool: Ensure that long-running tests are executed last.
13107         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
13108         running tests after the one for the other tests.
13109
13110 2010-04-02  Bruno Haible  <bruno@clisp.org>
13111
13112         gnulib-tool: Ensure the tests in the main directory are executed first.
13113         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
13114         start with the current directory.
13115
13116 2010-04-02  Bruno Haible  <bruno@clisp.org>
13117
13118         Tests for module 'havelib', moved here from GNU gettext.
13119         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
13120         modifications.
13121         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
13122         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
13123         with modifications.
13124         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
13125         modifications.
13126         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
13127         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
13128         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
13129         with modifications.
13130         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
13131         with modifications.
13132         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
13133         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
13134         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
13135         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
13136         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
13137         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
13138         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
13139         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
13140         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
13141         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
13142         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
13143         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
13144         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
13145         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
13146         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
13147         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
13148         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
13149         with modifications.
13150         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
13151         with modifications.
13152         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
13153         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
13154         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
13155         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
13156         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
13157         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
13158         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
13159         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
13160         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
13161         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
13162         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
13163         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
13164         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
13165         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
13166         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
13167         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
13168         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
13169         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
13170         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
13171         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
13172         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
13173         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
13174         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
13175         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
13176         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
13177         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
13178         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
13179         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
13180         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
13181         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
13182         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
13183         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
13184         * tests/havelib/rpathx/rpathx.c: New file, from
13185         gettext/autoconf-lib-link.
13186         * tests/havelib/rpathx/Makefile.am: New file, from
13187         gettext/autoconf-lib-link.
13188         * tests/havelib/rpathx/configure.ac: New file, from
13189         gettext/autoconf-lib-link with modifications.
13190         * tests/havelib/rpathy/rpathy.c: New file, from
13191         gettext/autoconf-lib-link.
13192         * tests/havelib/rpathy/Makefile.am: New file, from
13193         gettext/autoconf-lib-link.
13194         * tests/havelib/rpathy/configure.ac: New file, from
13195         gettext/autoconf-lib-link with modifications.
13196         * tests/havelib/rpathz/rpathz.c: New file, from
13197         gettext/autoconf-lib-link.
13198         * tests/havelib/rpathz/Makefile.am: New file, from
13199         gettext/autoconf-lib-link.
13200         * tests/havelib/rpathz/configure.ac: New file, from
13201         gettext/autoconf-lib-link with modifications.
13202         * tests/havelib/rpathlx/usex.c: New file, from
13203         gettext/autoconf-lib-link.
13204         * tests/havelib/rpathlx/Makefile.am: New file, from
13205         gettext/autoconf-lib-link.
13206         * tests/havelib/rpathlx/configure.ac: New file, from
13207         gettext/autoconf-lib-link with modifications.
13208         * tests/havelib/rpathly/usey.c: New file, from
13209         gettext/autoconf-lib-link.
13210         * tests/havelib/rpathly/Makefile.am: New file, from
13211         gettext/autoconf-lib-link.
13212         * tests/havelib/rpathly/configure.ac: New file, from
13213         gettext/autoconf-lib-link with modifications.
13214         * tests/havelib/rpathlz/usez.c: New file, from
13215         gettext/autoconf-lib-link.
13216         * tests/havelib/rpathlz/Makefile.am: New file, from
13217         gettext/autoconf-lib-link.
13218         * tests/havelib/rpathlz/configure.ac: New file, from
13219         gettext/autoconf-lib-link with modifications.
13220         * tests/havelib/rpathlyx/usey.c: New file, from
13221         gettext/autoconf-lib-link.
13222         * tests/havelib/rpathlyx/Makefile.am: New file, from
13223         gettext/autoconf-lib-link.
13224         * tests/havelib/rpathlyx/configure.ac: New file, from
13225         gettext/autoconf-lib-link with modifications.
13226         * tests/havelib/rpathlzyx/usez.c: New file, from
13227         gettext/autoconf-lib-link.
13228         * tests/havelib/rpathlzyx/Makefile.am: New file, from
13229         gettext/autoconf-lib-link.
13230         * tests/havelib/rpathlzyx/configure.ac: New file, from
13231         gettext/autoconf-lib-link with modifications.
13232         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
13233         with modifications.
13234
13235 2010-04-02  Bruno Haible  <bruno@clisp.org>
13236
13237         gnulib-tool: Create distributed built sources also for the tests.
13238         * gnulib-tool (func_create_testdir): Also generate distributed built
13239         sources in the tests directory.
13240
13241 2010-04-02  Bruno Haible  <bruno@clisp.org>
13242
13243         gnulib-tool: Obey user's environment variables.
13244         * gnulib-tool (func_create_testdir): When creating built sources,
13245         respect the environment variables for autoconf, automake, etc. given by
13246         the user.
13247
13248 2010-04-02  Bruno Haible  <bruno@clisp.org>
13249
13250         gnulib-tool: Provide the value of --m4-base to modules.
13251         * gnulib-tool (func_import, func_create_testdir): Emit a definition
13252         of gl_m4_base.
13253
13254 2010-04-02  Eric Blake  <eblake@redhat.com>
13255
13256         maint.mk: fix some fallout
13257         * NEWS: Document the incompatible change, and its effect on cfg.mk.
13258         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
13259
13260 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
13261
13262         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
13263         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
13264         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
13265         (sc_cast_of_x_alloc_return_value): Likewise.
13266         (sc_cast_of_alloca_return_value): Likewise.
13267         (sc_space_tab): Likewise.
13268         (sc_prohibit_atoi_atof): Likewise.
13269         (sc_prohibit_magic_number_exit): Likewise.
13270         (sc_error_exit_success): Likewise.
13271         (sc_file_system): Likewise.
13272         (sc_prohibit_have_config_h): Likewise.
13273         (sc_require_config_h): Likewise.
13274         (sc_prohibit_HAVE_MBRTOWC): Likewise.
13275         (sc_obsolete_symbols): Likewise.
13276         (sc_changelog): Likewise.
13277         (sc_program_name): Likewise.
13278         (sc_the_the): Likewise.
13279         (sc_trailing_blank): Likewise.
13280         (sc_two_space_separator_in_usage): Likewise.
13281         (sc_useless_cpp_parens): Likewise.
13282         (sc_GPL_version): Likewise.
13283         (sc_GFDL_version): Likewise.
13284         (sc_texinfo_acronym): Likewise.
13285         (sc_prohibit_cvs_keyword): Likewise.
13286         (sc_prohibit_stat_st_blocks): Likewise.
13287         (sc_prohibit_S_IS_definition): Likewise.
13288         (sc_redundant_const): Likewise.
13289         (sc_makefile_TAB_only_indentation): Likewise.
13290         (sc_m4_quote_check): Likewise.
13291         (sc_makefile_path_separator_check): Likewise.
13292         (sc_copyright_check): Likewise.
13293         (sc_Wundef_boolean): Likewise.
13294         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
13295
13296         maint.mk: match 0 or more whitespace-before-function-call '('
13297         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
13298         that have zero or two-and-more spaces between the function name
13299         and the open parenthesis.
13300         (sc_error_message_warn_fatal): Likewise.
13301         (sc_error_message_uppercase): Likewise.
13302         (sc_error_message_period): Likewise.
13303
13304 2010-03-31  Eric Blake  <eblake@redhat.com>
13305
13306         maint.mk: check for [ as well as test
13307         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
13308         Based on a libvirt report by Matthias Bolte.
13309
13310         gnumakefile: don't squelch _version output
13311         * top/GNUmakefile (_version): Create one-shot dependency rather
13312         than using $(shell) when version must be regenerated.
13313         (_autoreconf): Run verbosely, by default.
13314
13315         sys_time: avoid compiler warnings
13316         * lib/sys_time.in.h (includes): Ensure gcc pragma is
13317         unconditional, fixing regression from 2010-03-29.
13318         Reported by Simon Josefsson.
13319
13320 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
13321
13322         maint.mk: s/_header_without_use/_sc_header_without_use/
13323         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
13324         (sc_prohibit_assert_without_use): Use the new name.
13325         (sc_prohibit_close_stream_without_use): Likewise.
13326         (sc_prohibit_getopt_without_use): Likewise.
13327         (sc_prohibit_quotearg_without_use): Likewise.
13328         (sc_prohibit_quote_without_use): Likewise.
13329         (sc_prohibit_long_options_without_use): Likewise.
13330         (sc_prohibit_inttostr_without_use): Likewise.
13331         (sc_prohibit_ignore_value_without_use): Likewise.
13332         (sc_prohibit_error_without_use): Likewise.
13333         (sc_prohibit_xalloc_without_use): Likewise.
13334         (sc_prohibit_hash_without_use): Likewise.
13335         (sc_prohibit_hash_pjw_without_use): Likewise.
13336         (sc_prohibit_safe_read_without_use): Likewise.
13337         (sc_prohibit_argmatch_without_use): Likewise.
13338         (sc_prohibit_canonicalize_without_use): Likewise.
13339         (sc_prohibit_root_dev_ino_without_use): Likewise.
13340         (sc_prohibit_openat_without_use): Likewise.
13341         (sc_prohibit_c_ctype_without_use): Likewise.
13342         (sc_prohibit_signal_without_use): Likewise.
13343         (sc_prohibit_intprops_without_use): Likewise.
13344
13345 2010-03-30  Eric Blake  <eblake@redhat.com>
13346
13347         maint: improve module indicators
13348         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
13349         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
13350         columns, and avoid extra macro expansion.
13351
13352         fdopendir: work around FreeBSD bug
13353         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
13354         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
13355         * modules/dirent (Makefile.am): Substitute it.
13356         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
13357         declaration.
13358         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
13359         fix.
13360         Reported by Christian Weisgerber <naddy@mips.inka.de>.
13361
13362 2010-03-29  Bruno Haible  <bruno@clisp.org>
13363
13364         Emit #pragma system_header after the inclusion guard, not before.
13365         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
13366         guard that spans the entire file, not before. This enables an
13367         optimization in GCC's preprocessor.
13368         * lib/ctype.in.h: Likewise.
13369         * lib/dirent.in.h: Likewise.
13370         * lib/errno.in.h: Likewise.
13371         * lib/float.in.h: Likewise.
13372         * lib/getopt.in.h: Likewise.
13373         * lib/iconv.in.h: Likewise.
13374         * lib/langinfo.in.h: Likewise.
13375         * lib/locale.in.h: Likewise.
13376         * lib/math.in.h: Likewise.
13377         * lib/netdb.in.h: Likewise.
13378         * lib/netinet_in.in.h: Likewise.
13379         * lib/pty.in.h: Likewise.
13380         * lib/sched.in.h: Likewise.
13381         * lib/se-selinux.in.h: Likewise.
13382         * lib/search.in.h: Likewise.
13383         * lib/spawn.in.h: Likewise.
13384         * lib/stdarg.in.h: Likewise.
13385         * lib/stdint.in.h: Likewise.
13386         * lib/string.in.h: Likewise.
13387         * lib/strings.in.h: Likewise.
13388         * lib/sys_file.in.h: Likewise.
13389         * lib/sys_ioctl.in.h: Likewise.
13390         * lib/sys_time.in.h: Likewise.
13391         * lib/sys_times.in.h: Likewise.
13392         * lib/sys_utsname.in.h: Likewise.
13393         * lib/sys_wait.in.h: Likewise.
13394         * lib/sysexits.in.h: Likewise.
13395         * lib/wctype.in.h: Likewise.
13396
13397 2010-03-28  James Youngman  <jay@gnu.org>
13398
13399         save-cwd: don't leak a file descriptor when the caller execs.
13400         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
13401         saved file descriptor.
13402         * modules/save-cwd (Depends-on): Depend on cloexec.
13403
13404 2010-03-29  Bruno Haible  <bruno@clisp.org>
13405
13406         Remove vestiges of fts-lgpl module.
13407         * lib/fts_.h: Assume GNULIB_FTS is 1.
13408         * lib/fts.c: Likewise.
13409         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
13410
13411 2010-03-28  Bruno Haible  <bruno@clisp.org>
13412
13413         Fix definition of tests witness macro.
13414         * gnulib-tool (func_import): Fix definition of witness macro.
13415
13416 2010-03-28  Bruno Haible  <bruno@clisp.org>
13417
13418         Fix ioctl's protoype on glibc systems.
13419         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
13420         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
13421         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
13422         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
13423         signature. If not, arrange to replace the ioctl function.
13424         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
13425         REPLACE_IOCTL.
13426         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
13427         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
13428         Reported by Ludovic Courtès <ludo@gnu.org>.
13429
13430 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
13431
13432         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
13433         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
13434         made it so grep -r --include=GLOB* ... did not work.
13435
13436 2010-03-26  Jim Meyering  <meyering@redhat.com>
13437             Eric Blake  <eblake@redhat.com>
13438
13439         maint.mk: prohibit use of test's -o and -a operators
13440         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
13441
13442 2010-03-28  Bruno Haible  <bruno@clisp.org>
13443
13444         Remove unused GNULIB_XYZ macro definitions.
13445         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
13446         invocation.
13447
13448 2010-03-28  Bruno Haible  <bruno@clisp.org>
13449
13450         Mark privileged tests modules.
13451         * modules/idpriv-drop-tests (Status): New section.
13452         * modules/idpriv-droptemp-tests (Status): New section.
13453
13454 2010-03-28  Bruno Haible  <bruno@clisp.org>
13455
13456         Split C++ tests into separate tests modules.
13457         * modules/dirent-c++-tests: New file, extracted from
13458         modules/dirent-tests.
13459         * modules/dirent-tests: Depend on it.
13460         * modules/fcntl-h-c++-tests: New file, extracted from
13461         modules/fcntl-h-tests.
13462         * modules/fcntl-h-tests: Depend on it.
13463         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
13464         * modules/glob-tests: Depend on it.
13465         * modules/iconv-h-c++-tests: New file, extracted from
13466         modules/iconv-h-tests.
13467         * modules/iconv-h-tests: Depend on it.
13468         * modules/langinfo-c++-tests: New file, extracted from
13469         modules/langinfo-tests.
13470         * modules/langinfo-tests: Depend on it.
13471         * modules/locale-c++-tests: New file, extracted from
13472         modules/locale-tests.
13473         * modules/locale-tests: Depend on it.
13474         * modules/math-c++-tests: New file, extracted from modules/math-tests.
13475         * modules/math-tests: Depend on it.
13476         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
13477         * modules/pty-tests: Depend on it.
13478         * modules/search-c++-tests: New file, extracted from
13479         modules/search-tests.
13480         * modules/search-tests: Depend on it.
13481         * modules/signal-c++-tests: New file, extracted from
13482         modules/signal-tests.
13483         * modules/signal-tests: Depend on it.
13484         * modules/spawn-c++-tests: New file, extracted from
13485         modules/spawn-tests.
13486         * modules/spawn-tests: Depend on it.
13487         * modules/stdio-c++-tests: New file, extracted from
13488         modules/stdio-tests.
13489         * modules/stdio-tests: Depend on it.
13490         * modules/stdlib-c++-tests: New file, extracted from
13491         modules/stdlib-tests.
13492         * modules/stdlib-tests: Depend on it.
13493         * modules/string-c++-tests: New file, extracted from
13494         modules/string-tests.
13495         * modules/string-tests: Depend on it.
13496         * modules/sys_ioctl-c++-tests: New file, extracted from
13497         modules/sys_ioctl-tests.
13498         * modules/sys_ioctl-tests: Depend on it.
13499         * modules/sys_select-c++-tests: New file, extracted from
13500         modules/sys_select-tests.
13501         * modules/sys_select-tests: Depend on it.
13502         * modules/sys_socket-c++-tests: New file, extracted from
13503         modules/sys_socket-tests.
13504         * modules/sys_socket-tests: Depend on it.
13505         * modules/sys_stat-c++-tests: New file, extracted from
13506         modules/sys_stat-tests.
13507         * modules/sys_stat-tests: Depend on it.
13508         * modules/sys_time-c++-tests: New file, extracted from
13509         modules/sys_time-tests.
13510         * modules/sys_time-tests: Depend on it.
13511         * modules/time-c++-tests: New file, extracted from modules/time-tests.
13512         * modules/time-tests: Depend on it.
13513         * modules/unistd-c++-tests: New file, extracted from
13514         modules/unistd-tests.
13515         * modules/unistd-tests: Depend on it.
13516         * modules/wchar-c++-tests: New file, extracted from
13517         modules/wchar-tests.
13518         * modules/wchar-tests: Depend on it.
13519         * modules/wctype-c++-tests: New file, extracted from
13520         modules/wctype-tests.
13521         * modules/wctype-tests: Depend on it.
13522         Reported by Simon Josefsson.
13523
13524 2010-03-28  Bruno Haible  <bruno@clisp.org>
13525
13526         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
13527         * gnulib-tool (func_exists_module): New function, extracted from
13528         func_verify_module.
13529         (func_verify_module): Use it.
13530         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
13531         'foo' only if 'foo' exists.
13532         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
13533         module.
13534
13535 2010-03-28  Bruno Haible  <bruno@clisp.org>
13536
13537         gnulib-tool: Add support for special categories of tests.
13538         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
13539         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
13540         (func_usage): Document them.
13541         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
13542         inc_unportable_tests, inc_all_tests): New variables.
13543         (func_acceptable): Consider these variables.
13544         (func_modules_transitive_closure): Make it work when the 'Status' field
13545         consists of multiple words.
13546         (func_import): Store and restore the values of inc_cxx_tests,
13547         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
13548         inc_all_tests in gnulib-comp.m4.
13549         (func_create_testdir): Set inc_all_tests to true.
13550         * doc/gnulib.texi (Extra tests modules): New section.
13551         Suggested by Jim Meyering.
13552
13553 2010-03-28  Bruno Haible  <bruno@clisp.org>
13554
13555         ansi-c++-opt: Allow turning off the C++ build by default.
13556         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
13557         gl_CXX_CHOICE_DEFAULT_NO is defined.
13558         Requested by Eric Blake.
13559
13560 2010-03-28  Bruno Haible  <bruno@clisp.org>
13561
13562         unistd: Avoid #define replacements in C++ mode.
13563         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
13564         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
13565         setsockopt, shutdown, select): In C++, attach a warning to the function
13566         if possible, rather than #defining the symbol to a dysfunctional alias.
13567         Reported by John W. Eaton <jwe@gnu.org>.
13568
13569 2010-03-28  Bruno Haible  <bruno@clisp.org>
13570
13571         Fix link errors on mingw.
13572         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
13573         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
13574         $(LIBSOCKET).
13575         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
13576         $(LIBSOCKET).
13577
13578 2010-03-28  Bruno Haible  <bruno@clisp.org>
13579             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13580
13581         lib-ignore: Determine different options for different compilers.
13582         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
13583         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
13584         Add comments.
13585         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
13586         * NEWS: Mention the change.
13587
13588 2010-03-27  Bruno Haible  <bruno@clisp.org>
13589
13590         Remove unused GNULIB_XYZ macro definitions.
13591         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
13592         * modules/fseek (configure.ac): Likewise.
13593         * modules/ioctl (configure.ac): Likewise.
13594         * modules/open (configure.ac): Likewise.
13595         * modules/stdlib-safer (configure.ac): Likewise.
13596
13597 2010-03-27  Bruno Haible  <bruno@clisp.org>
13598
13599         Add a remark about certain modules.
13600         * modules/malloc (Comment): New section.
13601         * modules/realloc (Comment): Likewise.
13602         * modules/sigpipe (Comment): Likewise.
13603
13604 2010-03-27  Bruno Haible  <bruno@clisp.org>
13605
13606         Resolve conflict between the two kinds of module indicators.
13607         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
13608         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
13609         * modules/canonicalize (configure.ac): Invoke
13610         gl_MODULE_INDICATOR_FOR_TESTS.
13611         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
13612         GNULIB_XYZ.
13613         * tests/test-dirent-c++.cc: Likewise.
13614         * tests/test-dirent-safer.c: Likewise.
13615         * tests/test-dup2.c: Likewise.
13616         * tests/test-fchdir.c: Likewise.
13617         * tests/test-fcntl-h-c++.cc: Likewise.
13618         * tests/test-getopt.c: Likewise.
13619         * tests/test-getopt.h: Likewise.
13620         * tests/test-langinfo-c++.cc: Likewise.
13621         * tests/test-locale-c++.cc: Likewise.
13622         * tests/test-math-c++.cc: Likewise.
13623         * tests/test-pty-c++.cc: Likewise.
13624         * tests/test-search-c++.cc: Likewise.
13625         * tests/test-signal-c++.cc: Likewise.
13626         * tests/test-spawn-c++.cc: Likewise.
13627         * tests/test-stdio-c++.cc: Likewise.
13628         * tests/test-stdlib-c++.cc: Likewise.
13629         * tests/test-string-c++.cc: Likewise.
13630         * tests/test-sys_ioctl-c++.cc: Likewise.
13631         * tests/test-sys_select-c++.cc: Likewise.
13632         * tests/test-sys_socket-c++.cc: Likewise.
13633         * tests/test-sys_stat-c++.cc: Likewise.
13634         * tests/test-sys_time-c++.cc: Likewise.
13635         * tests/test-time-c++.cc: Likewise.
13636         * tests/test-unistd-c++.cc: Likewise.
13637         * tests/test-wchar-c++.cc: Likewise.
13638         * tests/uninorm/test-u8-nfc.c: Likewise.
13639         * tests/uninorm/test-u8-nfd.c: Likewise.
13640         * tests/uninorm/test-u8-nfkc.c: Likewise.
13641         * tests/uninorm/test-u8-nfkd.c: Likewise.
13642         * tests/uninorm/test-u16-nfc.c: Likewise.
13643         * tests/uninorm/test-u16-nfd.c: Likewise.
13644         * tests/uninorm/test-u16-nfkc.c: Likewise.
13645         * tests/uninorm/test-u16-nfkd.c: Likewise.
13646         * tests/uninorm/test-u32-nfc.c: Likewise.
13647         * tests/uninorm/test-u32-nfc-big.c: Likewise.
13648         * tests/uninorm/test-u32-nfd.c: Likewise.
13649         * tests/uninorm/test-u32-nfd-big.c: Likewise.
13650         * tests/uninorm/test-u32-nfkc.c: Likewise.
13651         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
13652         * tests/uninorm/test-u32-nfkd.c: Likewise.
13653         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
13654         * tests/uninorm/test-u32-normalize-big.c: Likewise.
13655
13656 2010-03-27  Bruno Haible  <bruno@clisp.org>
13657
13658         Distinguish two kinds of module indicators.
13659         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
13660         gl_MODULE_INDICATOR.
13661         (gl_MODULE_INDICATOR): New macro.
13662         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
13663         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
13664         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
13665         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
13666         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
13667         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
13668         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
13669         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
13670         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
13671         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
13672         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
13673         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
13674         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
13675         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
13676         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
13677         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
13678         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
13679         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
13680         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
13681         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
13682         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
13683         * modules/cloexec (configure.ac): Likewise.
13684         * modules/getopt-gnu (configure.ac): Likewise.
13685         * modules/uninorm/u8-normalize (configure.ac): Likewise.
13686         * modules/uninorm/u16-normalize (configure.ac): Likewise.
13687         * modules/uninorm/u32-normalize (configure.ac): Likewise.
13688         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
13689
13690 2010-03-27  Bruno Haible  <bruno@clisp.org>
13691
13692         New module description field 'Comment'.
13693         * gnulib-tool: New option --extract-comment.
13694         (func_usage): Document it.
13695         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
13696         (func_get_comment): New function.
13697         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
13698
13699 2010-03-27  Bruno Haible  <bruno@clisp.org>
13700
13701         Addendum to 2010-02-07 commit.
13702         * gnulib-tool (func_usage): Document --extract-applicability option.
13703
13704 2010-03-27  Bruno Haible  <bruno@clisp.org>
13705
13706         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
13707         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
13708         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
13709         rather than link errors.
13710
13711 2010-03-27  Bruno Haible  <bruno@clisp.org>
13712
13713         Avoid side effects from tests-related modules on the compilation of lib.
13714         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
13715         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
13716         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
13717         parameter. Emit into AM_CPPFLAGS a definition of the designated C
13718         macro.
13719         (func_import): Define a witness macro. Assign it a value that depends
13720         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
13721         tests-related modules.
13722         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
13723         Reported by Jim Meyering.
13724
13725 2010-03-27  Bruno Haible  <bruno@clisp.org>
13726
13727         Factorize common .m4 code.
13728         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
13729         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
13730         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
13731         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
13732         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
13733         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
13734         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
13735         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
13736         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
13737         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
13738         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
13739         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
13740         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
13741         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
13742         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
13743         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
13744         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
13745         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
13746         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
13747         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
13748         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
13749         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
13750         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
13751         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
13752         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
13753         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
13754         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
13755         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
13756         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
13757         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
13758         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
13759         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
13760
13761 2010-03-27  Bruno Haible  <bruno@clisp.org>
13762
13763         Fix a compilation error on Cygwin with g++ >= 4.3.
13764         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
13765         if it is undefined or if we alias it to chmod.
13766         (lstat): Don't warn about the use of this function if it is undefined
13767         or if we alias it to stat.
13768         Reported by Simon Josefsson.
13769
13770 2010-03-27  Bruno Haible  <bruno@clisp.org>
13771
13772         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
13773         * modules/getlogin (configure.ac): Update.
13774
13775         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
13776         * modules/getlogin_r (configure.ac): Update.
13777
13778         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
13779         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
13780         * modules/inet_ntop (configure.ac): Update.
13781
13782         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
13783         * modules/inet_pton (configure.ac): Update.
13784
13785         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
13786         * modules/mbslen (configure.ac): Update.
13787
13788         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
13789         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
13790         * modules/forkpty (configure.ac): Update.
13791         * modules/openpty (configure.ac): Update.
13792
13793 2010-03-26  Simon Josefsson  <simon@josefsson.org>
13794
13795         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
13796         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
13797
13798 2010-03-25  Eric Blake  <eblake@redhat.com>
13799
13800         maint: use pragma consistently across replacement headers
13801         * lib/ctype.in.h (system_header): Hoist for consistent placement.
13802         * lib/dirent.in.h (system_header): Likewise.
13803         * lib/errno.in.h (system_header): Likewise.
13804         * lib/float.in.h (system_header): Likewise.
13805         * lib/getopt.in.h (system_header): Likewise.
13806         * lib/iconv.in.h (system_header): Likewise.
13807         * lib/inttypes.in.h (system_header): Likewise.
13808         * lib/langinfo.in.h (system_header): Likewise.
13809         * lib/locale.in.h (system_header): Likewise.
13810         * lib/math.in.h (system_header): Likewise.
13811         * lib/netdb.in.h (system_header): Likewise.
13812         * lib/netinet_in.in.h (system_header): Likewise.
13813         * lib/pty.in.h (system_header): Likewise.
13814         * lib/sched.in.h (system_header): Likewise.
13815         * lib/se-selinux.in.h (system_header): Likewise.
13816         * lib/search.in.h (system_header): Likewise.
13817         * lib/spawn.in.h (system_header): Likewise.
13818         * lib/stdarg.in.h (system_header): Likewise.
13819         * lib/stdint.in.h (system_header): Likewise.
13820         * lib/string.in.h (system_header): Likewise.
13821         * lib/strings.in.h (system_header): Likewise.
13822         * lib/sys_file.in.h (system_header): Likewise.
13823         * lib/sys_ioctl.in.h (system_header): Likewise.
13824         * lib/sys_socket.in.h (system_header): Likewise.
13825         * lib/sys_times.in.h (system_header): Likewise.
13826         * lib/sys_utsname.in.h (system_header): Likewise.
13827         * lib/sys_wait.in.h (system_header): Likewise.
13828         * lib/sysexits.in.h (system_header): Likewise.
13829         * lib/unistd.in.h (system_header): Likewise.
13830         * lib/wctype.in.h (system_header): Likewise.
13831
13832         arpa/inet: fix mingw compilation warning
13833         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
13834         Reported by Matthew Bolte.
13835
13836 2010-03-25  Bruno Haible  <bruno@clisp.org>
13837
13838         Avoid collision between gnulib wrapper and libintl wrapper.
13839         * lib/printf.c (printf): Don't define if a printf wrapper is already
13840         defined in intl/printf.c.
13841         Reported by Michel Boaventura <michel@michelboaventura.com>.
13842
13843 2010-03-25  Bruno Haible  <bruno@clisp.org>
13844
13845         Use ANSI C.
13846         * lib/readutmp.h (getutent): Provide ANSI C prototype.
13847
13848 2010-03-25  Bruno Haible  <bruno@clisp.org>
13849
13850         Minor formatting changes.
13851         * lib/acosl.c: Insert space before function argument list.
13852         * lib/argz.c: Likewise.
13853         * lib/asinl.c: Likewise.
13854         * lib/expl.c: Likewise.
13855         * lib/gen-uni-tables.c: Likewise.
13856         * lib/gettext.h: Likewise.
13857         * lib/glthread/lock.h: Likewise.
13858         * lib/tanl.c: Likewise.
13859         * lib/uniname/uniname.c: Likewise.
13860         * tests/test-idpriv-drop.c: Likewise.
13861         * tests/test-idpriv-droptemp.c: Likewise.
13862         * tests/test-lock.c: Likewise.
13863         * tests/test-tls.c: Likewise.
13864         * lib/argp-help.c: Insert space before function-like macro argument
13865         list.
13866         * lib/memcmp.c: Likewise.
13867         * tests/test-base64.c: Likewise.
13868         * lib/localename.c: Insert space before sizeof's argument list.
13869         * lib/safe-alloc.h: Likewise.
13870         * lib/file-set.h: Insert space before macro argument list.
13871         * tests/test-argp.c: Likewise.
13872         * lib/argp-namefrob.h: Insert space before function parameter list.
13873         * lib/getaddrinfo.c: Likewise.
13874         * lib/netdb.in.h: Likewise.
13875         * lib/parse-duration.h: Likewise.
13876         * lib/parse-duration.c: Likewise.
13877         * lib/poll.c: Likewise.
13878         * lib/select.c: Likewise.
13879         * lib/trim.h: Likewise.
13880         * tests/test-usleep.c: Likewise.
13881         * lib/ldexpl.c: Insert space before function parameter list and before
13882         function argument list.
13883         * lib/logl.c: Likewise.
13884         * lib/sqrtl.c: Likewise.
13885         * lib/trim.c: Likewise.
13886         * lib/cosl.c: Use GNU style indentation. Insert space before function
13887         argument list.
13888         * lib/sinl.c: Likewise.
13889         * lib/tsearch.c: Insert space after 'for'.
13890         Reported by Jim Meyering.
13891
13892 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
13893
13894         * maint.mk (sc_Wundef_boolean): Check for the presence of the
13895         config header before grepping, as it's not present before
13896         autoreconf/configure are run.  Reported by Simon Josefsson.
13897
13898 2010-03-23  Bruno Haible  <bruno@clisp.org>
13899
13900         pt_chown: Make it work with automake < 1.11.
13901         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
13902         Reported by Simon Josefsson.
13903
13904 2010-03-23  Bruno Haible  <bruno@clisp.org>
13905
13906         pt_chown: Don't depend on GPLed modules.
13907         * lib/pt_chown.c: Don't include idpriv.h.
13908         (main): Don't drop privileges.
13909         * modules/pt_chown (Depends-on): Remove idpriv-drop.
13910         Reported by Simon Josefsson.
13911
13912 2010-03-24  Simon Josefsson  <simon@josefsson.org>
13913
13914         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
13915         suggestions from karl@freefriends.org (Karl Berry).
13916
13917 2010-03-22  Eric Blake  <eblake@redhat.com>
13918
13919         gethostname: further tweaks
13920         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
13921         are overriding gethostname.
13922         Suggested by Bruno Haible.
13923
13924 2010-03-21  Bruno Haible  <bruno@clisp.org>
13925
13926         Fix comments.
13927         * lib/forkpty.c (rpl_forkpty): Fix comment.
13928         * lib/openpty.c (rpl_openpty): Likewise.
13929         Reported by Eric Blake.
13930
13931 2010-03-22  Eric Blake  <eblake@redhat.com>
13932
13933         gethostname: fix build on mingw
13934         * lib/unistd.in.h (includes): Work around fact that mingw
13935         <winsock2.h> re-includes <unistd.h>, by avoiding any
13936         redeclarations if we are being included by <winsock2.h>.
13937         Reported by Matthias Bolte.
13938
13939 2010-03-21  Bruno Haible  <bruno@clisp.org>
13940
13941         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
13942         * lib/forkpty.c (forkpty): New replacement function, from glibc with
13943         modifications.
13944         * lib/pty.in.h (forkpty): Update declaration. Add comments.
13945         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
13946         provide the replacement.
13947         * modules/forkpty (Depends-on): Add openpty, login_tty.
13948         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
13949         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
13950         * doc/glibc-functions/forkpty.texi: More supported platforms.
13951         * config/srclist.txt: Add forkpty.c (commented).
13952
13953 2010-03-21  Bruno Haible  <bruno@clisp.org>
13954
13955         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
13956         (Makefile.am): Verify that PTY_LIB is defined.
13957
13958         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
13959
13960 2010-03-21  Bruno Haible  <bruno@clisp.org>
13961
13962         Tests for module 'login_tty'.
13963         * modules/login_tty-tests: New file.
13964         * tests/test-login_tty.c: New file.
13965
13966         New module 'login_tty'.
13967         * lib/login_tty.c: New file.
13968         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
13969         * modules/login_tty: New file.
13970         * doc/glibc-functions/login_tty.texi: Mention the new module.
13971
13972 2010-03-21  Bruno Haible  <bruno@clisp.org>
13973
13974         login_tty: Documentation.
13975         * doc/glibc-functions/login_tty.texi: New file.
13976         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
13977
13978 2010-03-21  Bruno Haible  <bruno@clisp.org>
13979
13980         pty: Consistent macro naming.
13981         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
13982         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
13983         * modules/pty (configure.ac): Update.
13984
13985 2010-03-21  Bruno Haible  <bruno@clisp.org>
13986
13987         Tests for openpty: Make stricter.
13988         * tests/test-openpty.c (main): Add test of canonical processing and
13989         erase.
13990         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
13991
13992         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
13993         * lib/openpty.c (openpty): New replacement function.
13994         * lib/pty.in.h: Include <termios.h>.
13995         (openpty): Update declaration. Add comments.
13996         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
13997         is not declared, arrange to provide the replacement. Check for _getpty
13998         and posix_openpt.
13999         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
14000         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
14001         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
14002         * modules/pty-tests (test_pty_c___LDADD): New variable.
14003         * doc/glibc-functions/openpty.texi: More supported platforms.
14004
14005 2010-03-21  Bruno Haible  <bruno@clisp.org>
14006
14007         setenv: Tweaks.
14008         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
14009         the test program.
14010         * doc/posix-functions/setenv.texi: Update platforms list.
14011
14012 2010-03-21  Bruno Haible  <bruno@clisp.org>
14013
14014         New module 'unlockpt'.
14015         * lib/unlockpt.c: New file, from glibc with modifications.
14016         * m4/unlockpt.m4: New file.
14017         * modules/unlockpt: New file.
14018         * lib/stdlib.in.h (unlockpt): New declaration.
14019         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
14020         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
14021         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
14022         HAVE_UNLOCKPT.
14023         * doc/posix-functions/unlockpt.texi: Mention the new module.
14024         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
14025         * config/srclist.txt: Add unlockpt.c (commented).
14026
14027 2010-03-21  Jim Meyering  <meyering@redhat.com>
14028
14029         maint.mk: prohibit inclusion of "intprops.h" without use
14030         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
14031
14032 2010-03-21  Bruno Haible  <bruno@clisp.org>
14033
14034         New module 'grantpt'.
14035         * lib/grantpt.c: New file, from glibc with modifications.
14036         * m4/grantpt.m4: New file.
14037         * modules/grantpt: New file.
14038         * lib/stdlib.in.h (grantpt): New declaration.
14039         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
14040         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
14041         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
14042         HAVE_GRANTPT.
14043         * doc/posix-functions/grantpt.texi: Mention the new module.
14044         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
14045         * config/srclist.txt: Add grantpt.c (commented).
14046
14047 2010-03-21  Bruno Haible  <bruno@clisp.org>
14048
14049         New module 'pt_chown'.
14050         * lib/pt_chown.c: New file, from glibc with modifications.
14051         * lib/pty-private.h: New file, from glibc with modifications.
14052         * modules/pt_chown: New file.
14053         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
14054
14055 2010-03-21  Bruno Haible  <bruno@clisp.org>
14056
14057         Tests for module 'ptsname'.
14058         * modules/ptsname-tests: New file.
14059         * tests/test-ptsname.c: New file.
14060
14061         New module 'ptsname'.
14062         * lib/ptsname.c: New file, from glibc with modifications.
14063         * m4/ptsname.m4: New file.
14064         * modules/ptsname: New file.
14065         * lib/stdlib.in.h (ptsname): New declaration.
14066         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
14067         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
14068         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
14069         HAVE_PTSNAME.
14070         * doc/posix-functions/ptsname.texi: Mention the new module.
14071         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
14072         * config/srclist.txt: Add ptsname.c (commented).
14073
14074 2010-03-21  Bruno Haible  <bruno@clisp.org>
14075
14076         Tests for module 'ttyname_r'.
14077         * modules/ttyname_r-tests: New file.
14078         * tests/test-ttyname_r.c: New file.
14079
14080         New module 'ttyname_r'.
14081         * lib/ttyname_r.c: New file.
14082         * m4/ttyname_r.m4: New file.
14083         * modules/ttyname_r: New file.
14084         * lib/unistd.in.h (ttyname_r): New declaration.
14085         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
14086         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
14087         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
14088         HAVE_TTYNAME_R.
14089         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
14090         * doc/posix-functions/ttyname_r.texi: Mention the new module.
14091
14092 2010-03-20  Bruno Haible  <bruno@clisp.org>
14093
14094         signal: Undefine macro definitions in C++ mode.
14095         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
14096         sigfillset): Undefine macro definitions from the system header in C++
14097         mode.
14098         Reported by John W. Eaton <jwe@gnu.org>.
14099
14100 2010-03-20  Bruno Haible  <bruno@clisp.org>
14101
14102         Ensure no #include statements inside extern "C" { ... }.
14103         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
14104         contain #include statements.
14105         * lib/time.in.h: Likewise.
14106
14107 2010-03-20  Bruno Haible  <bruno@clisp.org>
14108
14109         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
14110         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
14111         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
14112         Reported by John W. Eaton <jwe@gnu.org>.
14113
14114 2010-03-20  Bruno Haible  <bruno@clisp.org>
14115
14116         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
14117         Reported by Jim Meyering.
14118
14119 2010-03-20  Bruno Haible  <bruno@clisp.org>
14120
14121         pipe: Set errno upon failure.
14122         * lib/pipe.h: Specify that when -1 is returned, errno is set.
14123         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
14124         errno value in error message.
14125
14126 2010-03-20  Bruno Haible  <bruno@clisp.org>
14127             Jim Meyering  <meyering@redhat.com>
14128
14129         lchown: Avoid "unused variable" warning.
14130         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
14131
14132 2010-03-20  Bruno Haible  <bruno@clisp.org>
14133
14134         Work around unlink() bug on MacOS X 10.5.6.
14135         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
14136         attempting to unlink a parent directory.
14137         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
14138         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
14139         activate for the replacement function.
14140         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
14141
14142 2010-03-20  Bruno Haible  <bruno@clisp.org>
14143
14144         Fix link errors on Solaris 8.
14145         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
14146         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
14147
14148 2010-03-19  Jim Meyering  <meyering@redhat.com>
14149
14150         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
14151         The _LIBC implementation of build_range_exp correctly honors the
14152         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
14153         However, the non-_LIBC implementation would ignore that syntax-bit
14154         flag and return REG_ERANGE unconditionally.
14155         This change makes it honor that flag.
14156         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
14157         Make two pointer parameters "const".
14158         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
14159         (parse_bracket_exp): Update caller.
14160
14161         regex.m4: correct the reversed range endpoint ([b-a]) test
14162         * m4/regex.m4: When requiring that [b-a] evoke failure,
14163         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
14164         test pass once again for x86-based systems.
14165
14166 2010-03-19  Bruno Haible  <bruno@clisp.org>
14167
14168         scandir: Fix link error on Solaris 8.
14169         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
14170         macros.
14171
14172 2010-03-19  Bruno Haible  <bruno@clisp.org>
14173
14174         getusershell: Fix documentation.
14175         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
14176         module.
14177         * doc/glibc-functions/setusershell.texi: Likewise.
14178
14179         getusershell: Provide declaration, missing on Solaris 9.
14180         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
14181         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
14182         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
14183         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
14184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14185         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
14186         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
14187         HAVE_GETUSERSHELL.
14188         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
14189
14190 2010-03-19  Bruno Haible  <bruno@clisp.org>
14191
14192         wctype: Provide iswblank function.
14193         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
14194         exists and is fine.
14195         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
14196         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
14197         * tests/test-wctype.c (main): Re-enable the iswblank tests.
14198         * doc/posix-functions/iswblank.texi: Update.
14199
14200 2010-03-19  Bruno Haible  <bruno@clisp.org>
14201
14202         Tests of module 'pty' in C++ mode.
14203         * modules/pty-tests: New file.
14204         * tests/test-pty-c++.cc: New file.
14205         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
14206
14207 2010-03-19  Eric Blake  <eblake@redhat.com>
14208
14209         logb: fix documentation
14210         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
14211         1.5 declaration bug.
14212
14213         forkpty, openpty: prefer glibc's const-safe prototype
14214         * lib/forkpty.c (rpl_forkpty): New file.
14215         * lib/openpty.c (rpl_openpty): Likewise.
14216         * modules/forkpty (Files): Distribute it.
14217         * modules/openpty (Files): Likewise.
14218         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
14219         check...
14220         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
14221         replacement for for non-const BSD signature.
14222         * modules/pty (Makefile.am): Substitute witnesses.
14223         * lib/pty.in.h (forkpty, openpty): Declare replacements.
14224         * tests/test-forkpty.c: Update signature check.
14225         * tests/test-openpty.c: Likewise.
14226         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
14227         * doc/glibc-functions/openpty.texi (openpty): Likewise.
14228
14229         forkpty, openpty: split functions into new modules
14230         * modules/pty (Makefile.am): Substitute new witnesses.
14231         (Libraries): Move library detection...
14232         * modules/forkpty: ...into new module.
14233         * modules/openpty: Another new module.
14234         * modules/pty-tests: Rename and split...
14235         * modules/forkpty-tests: ...to this...
14236         * modules/openpty-tests: ...and this.
14237         * tests/test-pty.c: Rename and split...
14238         * tests/test-forkpty.c: ...to this...
14239         * tests/test-openpty.c: ...and this.
14240         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
14241         (gl_PTY): Split library searching...
14242         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
14243         (gl_FORKPTY, gl_OPENPTY): New macros.
14244         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
14245         * NEWS: Mention the split.
14246         * MODULES.html.sh (Misc): Document the modules.
14247         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
14248         * doc/glibc-functions/openpty.texi (openpty): Likewise.
14249
14250         pty: improve replacement header
14251         * lib/pty.in.h: New file.
14252         * modules/pty (Files): Ship it.
14253         (Makefile.am): Always build replacement.
14254         * m4/pty.m4: Rename...
14255         * m4/pty_h.m4: ...to this.
14256         (gl_PTY): Modernize setting of witness macros; update check of
14257         forkpty to take proper advantage of cache.
14258         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
14259
14260         getopt: avoid compiler warning
14261         * lib/getopt.c (attribute_hidden): Remove unused macro.
14262
14263 2010-03-18  Bruno Haible  <bruno@clisp.org>
14264
14265         Fix link errors on Solaris 8.
14266         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
14267         * modules/search-tests (test_search_c___LDADD): Likewise.
14268         * modules/signal-tests (test_signal_c___LDADD): Likewise.
14269         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
14270         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
14271         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
14272         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
14273         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
14274         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
14275
14276 2010-03-18  Bruno Haible  <bruno@clisp.org>
14277
14278         Fix bug introduced on 2010-03-14.
14279         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
14280         (gl_SPAWN_H): Require it.
14281         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
14282         Reported by Simon Josefsson.
14283
14284 2010-03-18  Bruno Haible  <bruno@clisp.org>
14285
14286         Fix typo introduced on 2009-12-31.
14287         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
14288         posix_spawn_file_actions_adddup2.
14289
14290 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
14291         and Eric Blake  <eblake@redhat.com>
14292
14293         test-vc-list-files-git: make more robust
14294         * tests/test-vc-list-files-git.sh: Unset problematic environment
14295         variables.  Chain commands together.
14296
14297 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
14298
14299         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
14300         `AC_CHECK_DECL' invocation.
14301
14302 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
14303
14304         * lib/inttostr.c (inttostr): Make sure the invocation of verify
14305         appears before executable statements. Suggested by Petr Sumbera
14306         <Petr.Sumbera@Sun.COM>.
14307
14308 2010-03-14  Bruno Haible  <bruno@clisp.org>
14309
14310         * tests/test-flock.c (test_exclusive): Comment out a test that causes
14311         portability problems. Instead use a simpler test.
14312         (main): Check that invalid arguments are rejected only on Linux.
14313
14314 2010-03-14  Bruno Haible  <bruno@clisp.org>
14315
14316         Fix bug introduced on 2009-12-31.
14317         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
14318         gl_PREREQ_SYS_H_WINSOCK2 always.
14319         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
14320         SYS_SOCKET_H variable.
14321         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
14322         Update comments.
14323         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
14324         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
14325         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14326         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14327         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
14328
14329 2010-03-14  Bruno Haible  <bruno@clisp.org>
14330
14331         Fix values returned by sinl, cosl.
14332         * lib/trigl.h: Add specification comments.
14333         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
14334         that combines the values from the precomputed table with the values of
14335         the Chebyshev polynomials.
14336
14337 2010-03-14  Bruno Haible  <bruno@clisp.org>
14338
14339         Fix compilation error when modules 'posix_spawn[p]' are not used.
14340         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
14341         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
14342
14343 2010-03-14  Bruno Haible  <bruno@clisp.org>
14344
14345         Fix compilation error on mingw when module 'time_r' is not used.
14346         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
14347         is 1.
14348         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
14349         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
14350         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
14351         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
14352
14353 2010-03-14  Bruno Haible  <bruno@clisp.org>
14354
14355         Fix compilation error with Sun C.
14356         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
14357         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
14358         instead of GCC specific ULONG_LONG_MAX.
14359         * lib/xstrtoll.c: Likewise.
14360         * lib/xstrtoull.c: Likewise.
14361
14362 2010-03-13  Bruno Haible  <bruno@clisp.org>
14363
14364         Allow the user to disable C++ code and tests.
14365         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
14366         (gl_PROG_ANSI_CXX): Require it.
14367
14368 2010-03-13  Bruno Haible  <bruno@clisp.org>
14369
14370         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
14371         cases.
14372
14373 2010-03-13  Bruno Haible  <bruno@clisp.org>
14374
14375         Test that gnulib does not break the standard C++ headers.
14376         * tests/test-locale-c++2.cc: New file.
14377         * modules/locale-tests (Files): Add it.
14378         (Makefile.am): Compile it for test-locale-c++.
14379         * tests/test-math-c++2.cc: New file.
14380         * modules/math-tests (Files): Add it.
14381         (Makefile.am): Compile it for test-math-c++.
14382         * tests/test-signal-c++2.cc: New file.
14383         * modules/signal-tests (Files): Add it.
14384         (Makefile.am): Compile it for test-signal-c++.
14385         * tests/test-stdio-c++2.cc: New file.
14386         * modules/stdio-tests (Files): Add it.
14387         (Makefile.am): Compile it for test-stdio-c++.
14388         * tests/test-stdlib-c++2.cc: New file.
14389         * modules/stdlib-tests (Files): Add it.
14390         (Makefile.am): Compile it for test-stdlib-c++.
14391         * tests/test-string-c++2.cc: New file.
14392         * modules/string-tests (Files): Add it.
14393         (Makefile.am): Compile it for test-string-c++.
14394         * tests/test-time-c++2.cc: New file.
14395         * modules/time-tests (Files): Add it.
14396         (Makefile.am): Compile it for test-time-c++.
14397         Reported by John W. Eaton <jwe@gnu.org>.
14398
14399 2010-03-13  Bruno Haible  <bruno@clisp.org>
14400
14401         * gnulib-tool (func_usage): Clarify which options are available for
14402         --create-testdir and --create-megatestdir.
14403
14404 2010-03-13  Bruno Haible  <bruno@clisp.org>
14405
14406         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
14407         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
14408         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
14409         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
14410         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
14411         when appropriate.
14412         Reported by Jim Meyering.
14413
14414 2010-03-12  Simon Josefsson  <simon@josefsson.org>
14415
14416         * gnulib-tool (func_import): Explain origin of code.
14417
14418 2010-03-12  Bruno Haible  <bruno@clisp.org>
14419
14420         Fix problem with automake's definition of CXXLINK.
14421         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
14422         Reported by Simon Josefsson and Ludovic Courtès.
14423
14424 2010-03-12  Bruno Haible  <bruno@clisp.org>
14425
14426         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
14427         stable releases.
14428
14429 2010-03-11  Bruno Haible  <bruno@clisp.org>
14430
14431         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
14432         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
14433         whether the system provides one variant or multiple variants of the
14434         function.
14435         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
14436         C++ compilers.
14437         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
14438         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
14439         Reported by Jim Meyering.
14440
14441 2010-03-09  Simon Josefsson  <simon@josefsson.org>
14442
14443         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
14444
14445 2010-03-08  Bruno Haible  <bruno@clisp.org>
14446
14447         gnulib-tool: Add support for --libtool in --create-testdir.
14448         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
14449         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
14450
14451 2010-03-08  Eric Blake  <eblake@redhat.com>
14452
14453         gnulib-tool.texi: mention possibility of git submodule
14454         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
14455         submodules.
14456         * doc/.gitignore: Ignore another generated file.
14457
14458 2010-03-08  Karl Berry  <karl@gnu.org>
14459
14460         * doc/gnulib-tool.texi (VCS Issues): Mention third option
14461         of committing gnulib files while skipping others.
14462
14463 2010-03-07  Bruno Haible  <bruno@clisp.org>
14464
14465         Tests of module 'wctype' in C++ mode.
14466         * tests/test-wctype-c++.cc: New file.
14467         * modules/wctype-tests (Files): Add it and tests/signature.h.
14468         (Depends-on): Add ansi-c++-opt.
14469         (Makefile.am): Arrange to compile and run test-wctype-c++.
14470
14471         Tests of module 'wchar' in C++ mode.
14472         * tests/test-wchar-c++.cc: New file.
14473         * modules/wchar-tests (Files): Add it and tests/signature.h.
14474         (Depends-on): Add ansi-c++-opt.
14475         (Makefile.am): Arrange to compile and run test-wchar-c++.
14476         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
14477         gl_MODULE_INDICATOR.
14478
14479         Tests of module 'unistd' in C++ mode.
14480         * tests/test-unistd-c++.cc: New file.
14481         * modules/unistd-tests (Files): Add it and tests/signature.h.
14482         (Depends-on): Add ansi-c++-opt.
14483         (Makefile.am): Arrange to compile and run test-unistd-c++.
14484         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
14485         gl_MODULE_INDICATOR.
14486
14487         Tests of module 'time' in C++ mode.
14488         * tests/test-time-c++.cc: New file.
14489         * modules/time-tests (Files): Add it and tests/signature.h.
14490         (Depends-on): Add ansi-c++-opt.
14491         (Makefile.am): Arrange to compile and run test-time-c++.
14492         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
14493
14494         Tests of module 'sys_time' in C++ mode.
14495         * tests/test-sys_time-c++.cc: New file.
14496         * modules/sys_time-tests (Files): Add it and tests/signature.h.
14497         (Depends-on): Add ansi-c++-opt.
14498         (Makefile.am): Arrange to compile and run test-sys_time-c++.
14499         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
14500         gl_MODULE_INDICATOR.
14501
14502         Tests of module 'sys_stat' in C++ mode.
14503         * tests/test-sys_stat-c++.cc: New file.
14504         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
14505         (Depends-on): Add ansi-c++-opt.
14506         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
14507         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
14508         gl_MODULE_INDICATOR.
14509
14510         Tests of module 'sys_socket' in C++ mode.
14511         * tests/test-sys_socket-c++.cc: New file.
14512         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
14513         (Depends-on): Add ansi-c++-opt.
14514         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
14515         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
14516         gl_MODULE_INDICATOR.
14517
14518         Tests of module 'sys_select' in C++ mode.
14519         * tests/test-sys_select-c++.cc: New file.
14520         * modules/sys_select-tests (Files): Add it and tests/signature.h.
14521         (Depends-on): Add ansi-c++-opt.
14522         (Makefile.am): Arrange to compile and run test-sys_select-c++.
14523         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
14524         gl_MODULE_INDICATOR.
14525
14526         Tests of module 'sys_ioctl' in C++ mode.
14527         * tests/test-sys_ioctl-c++.cc: New file.
14528         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
14529         (Depends-on): Add ansi-c++-opt.
14530         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
14531         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
14532         gl_MODULE_INDICATOR.
14533
14534         Tests of module 'string' in C++ mode.
14535         * tests/test-string-c++.cc: New file.
14536         * modules/string-tests (Files): Add it and tests/signature.h.
14537         (Depends-on): Add ansi-c++-opt.
14538         (Makefile.am): Arrange to compile and run test-string-c++.
14539         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
14540         gl_MODULE_INDICATOR.
14541
14542         Tests of module 'stdlib' in C++ mode.
14543         * tests/test-stdlib-c++.cc: New file.
14544         * modules/stdlib-tests (Files): Add it and tests/signature.h.
14545         (Depends-on): Add ansi-c++-opt.
14546         (Makefile.am): Arrange to compile and run test-stdlib-c++.
14547         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
14548         gl_MODULE_INDICATOR.
14549
14550         Tests of module 'stdio' in C++ mode.
14551         * tests/test-stdio-c++.cc: New file.
14552         * modules/stdio-tests (Files): Add it and tests/signature.h.
14553         (Depends-on): Add ansi-c++-opt.
14554         (Makefile.am): Arrange to compile and run test-stdio-c++.
14555         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
14556         gl_MODULE_INDICATOR.
14557
14558         Tests of module 'spawn' in C++ mode.
14559         * tests/test-spawn-c++.cc: New file.
14560         * modules/spawn-tests (Files): Add it and tests/signature.h.
14561         (Depends-on): Add ansi-c++-opt.
14562         (Makefile.am): Arrange to compile and run test-spawn-c++.
14563         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
14564         gl_MODULE_INDICATOR.
14565
14566         Tests of module 'signal' in C++ mode.
14567         * tests/test-signal-c++.cc: New file.
14568         * modules/signal-tests (Files): Add it and tests/signature.h.
14569         (Depends-on): Add ansi-c++-opt.
14570         (Makefile.am): Arrange to compile and run test-signal-c++.
14571         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
14572         gl_MODULE_INDICATOR.
14573
14574         Tests of module 'search' in C++ mode.
14575         * tests/test-search-c++.cc: New file.
14576         * modules/search-tests (Files): Add it and tests/signature.h.
14577         (Depends-on): Add ansi-c++-opt.
14578         (Makefile.am): Arrange to compile and run test-search-c++.
14579         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
14580         gl_MODULE_INDICATOR.
14581
14582         Tests of module 'math' in C++ mode.
14583         * tests/test-math-c++.cc: New file.
14584         * modules/math-tests (Files): Add it and tests/signature.h.
14585         (Depends-on): Add ansi-c++-opt.
14586         (Makefile.am): Arrange to compile and run test-math-c++.
14587         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
14588
14589         Tests of module 'locale' in C++ mode.
14590         * tests/test-locale-c++.cc: New file.
14591         * modules/locale-tests (Files): Add it and tests/signature.h.
14592         (Depends-on): Add ansi-c++-opt.
14593         (Makefile.am): Arrange to compile and run test-locale-c++.
14594         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
14595         gl_MODULE_INDICATOR.
14596
14597         Tests of module 'langinfo' in C++ mode.
14598         * tests/test-langinfo-c++.cc: New file.
14599         * modules/langinfo-tests (Files): Add it and tests/signature.h.
14600         (Depends-on): Add ansi-c++-opt.
14601         (Makefile.am): Arrange to compile and run test-langinfo-c++.
14602         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
14603         gl_MODULE_INDICATOR.
14604
14605         Tests of module 'iconv-h' in C++ mode.
14606         * tests/test-iconv-h-c++.cc: New file.
14607         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
14608         (Depends-on): Add ansi-c++-opt.
14609         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
14610
14611         Tests of module 'glob' in C++ mode.
14612         * tests/test-glob-c++.cc: New file.
14613         * modules/glob-tests (Files): Add it.
14614         (Depends-on): Add ansi-c++-opt.
14615         (Makefile.am): Arrange to compile and run test-glob-c++.
14616
14617         Tests of module 'fcntl-h' in C++ mode.
14618         * tests/test-fcntl-h-c++.cc: New file.
14619         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
14620         (Depends-on): Add ansi-c++-opt.
14621         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
14622         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
14623         gl_MODULE_INDICATOR.
14624
14625         Tests of module 'dirent' in C++ mode.
14626         * tests/test-dirent-c++.cc: New file.
14627         * modules/dirent-tests (Files): Add it and tests/signature.h.
14628         (Depends-on): Add ansi-c++-opt.
14629         (Makefile.am): Arrange to compile and run test-dirent-c++.
14630         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
14631         gl_MODULE_INDICATOR.
14632
14633         New module 'ansi-c++-opt'.
14634         * modules/ansi-c++-opt: New file.
14635         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
14636
14637         Document C++ namespace mode.
14638         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
14639
14640         wctype: Avoid #define replacements in C++ mode.
14641         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
14642         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
14643         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
14644         In C++, define a namespaced alias symbol.
14645         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
14646         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
14647         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
14648         rule.
14649
14650         wchar: Avoid #define replacements in C++ mode.
14651         * lib/wchar.in.h: Include c++defs.h.
14652         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
14653         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
14654         symbol.
14655         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
14656         * modules/wchar (Depends-on): Add c++defs.
14657         (Makefile.am): Update wchar.h rule.
14658
14659         unistd: Avoid #define replacements in C++ mode.
14660         * lib/unistd.in.h: Include c++defs.h.
14661         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
14662         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
14663         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
14664         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
14665         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
14666         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
14667         symbol.
14668         (environ): Update.
14669         * modules/unistd (Depends-on): Add c++defs.
14670         (Makefile.am): Update unistd.h rule.
14671
14672         time: Avoid #define replacements in C++ mode.
14673         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
14674         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
14675         define a namespaced alias symbol.
14676         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
14677         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
14678         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
14679         * modules/time (Depends-on): Add c++defs, warn-on-use.
14680         (Makefile.am): Update time.h rule.
14681         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
14682         * modules/nanosleep (configure.ac): Likewise.
14683         * modules/strptime (configure.ac): Likewise.
14684         * modules/timegm (configure.ac): Likewise.
14685
14686         sys_time: Avoid #define replacements in C++ mode.
14687         * lib/sys_time.in.h: Include c++defs.h.
14688         (gettimeofday): In C++, define a namespaced alias symbol.
14689         * modules/sys_time (Depends-on): Add c++defs.
14690         (Makefile.am): Update sys/time.h rule.
14691
14692         sys_stat: Avoid #define replacements in C++ mode.
14693         * lib/sys_stat.in.h: Include c++defs.h.
14694         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
14695         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
14696         namespaced alias symbol.
14697         In C++, define a namespaced alias symbol.
14698         * modules/sys_stat (Depends-on): Add c++defs.
14699         (Makefile.am): Update sys/stat.h rule.
14700
14701         sys_socket: Avoid #define replacements in C++ mode.
14702         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
14703         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
14704         definitions also when the system has a <sys/socket.h>.
14705         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
14706         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
14707         In C++, define a namespaced alias symbol.
14708         * modules/sys_socket (Depends-on): Add c++defs.
14709         (Makefile.am): Update sys/socket.h rule.
14710
14711         sys_select: Avoid #define replacements in C++ mode.
14712         * lib/sys_select.in.h: Include c++defs.h. Enable the function
14713         definitions also when the system has a <sys/select.h>.
14714         (select): In C++, define a namespaced alias symbol.
14715         * modules/sys_select (Depends-on): Add c++defs.
14716         (Makefile.am): Update sys/select.h rule.
14717
14718         sys_ioctl: Avoid #define replacements in C++ mode.
14719         * lib/sys_ioctl.in.h: Include c++defs.h.
14720         (ioctl): In C++, define a namespaced alias symbol.
14721         * modules/sys_ioctl (Depends-on): Add c++defs.
14722         (Makefile.am): Update sys/ioctl.h rule.
14723
14724         string: Avoid #define replacements in C++ mode.
14725         * lib/string.in.h: Include c++defs.h.
14726         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
14727         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
14728         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
14729         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
14730         strsignal, strverscmp): In C++, define a namespaced alias symbol.
14731         * modules/string (Depends-on): Add c++defs.
14732         (Makefile.am): Update string.h rule.
14733
14734         stdlib: Avoid #define replacements in C++ mode.
14735         * lib/stdlib.in.h: Include c++defs.h.
14736         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
14737         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
14738         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
14739         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
14740         symbol.
14741         * modules/stdlib (Depends-on): Add c++defs.
14742         (Makefile.am): Update stdlib.h rule.
14743
14744         stdio: Avoid #define replacements in C++ mode.
14745         * lib/stdio.in.h: Include c++defs.h.
14746         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
14747         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
14748         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
14749         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
14750         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
14751         namespaced alias symbol.
14752         * modules/stdio (Depends-on): Add c++defs.
14753         (Makefile.am): Update stdio.h rule.
14754
14755         spawn: Avoid #define replacements in C++ mode.
14756         * lib/spawn.in.h: Include c++defs.h.
14757         (posix_spawn, posix_spawnp, posix_spawnattr_init,
14758         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
14759         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
14760         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
14761         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
14762         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
14763         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
14764         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
14765         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
14766         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
14767         In C++, define a namespaced alias symbol.
14768         * modules/spawn (Depends-on): Add c++defs.
14769         (Makefile.am): Update spawn.h rule.
14770
14771         signal: Avoid #define replacements in C++ mode.
14772         * lib/signal.in.h: Include c++defs.h.
14773         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
14774         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
14775         namespaced alias symbol.
14776         * modules/signal (Depends-on): Add c++defs.
14777         (Makefile.am): Update signal.h rule.
14778
14779         search: Avoid #define replacements in C++ mode.
14780         * lib/search.in.h: Include c++defs.h.
14781         (_gl_search_compar_fn, _gl_search_action_fn): New types.
14782         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
14783         symbol.
14784         * modules/search (Depends-on): Add c++defs.
14785         (Makefile.am): Update search.h rule.
14786
14787         math: Avoid #define replacements in C++ mode.
14788         * lib/math.in.h: Include c++defs.h.
14789         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
14790         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
14791         trunc, truncl): In C++, define a namespaced alias symbol.
14792         * modules/math (Depends-on): Add c++defs.
14793         (Makefile.am): Update math.h rule.
14794
14795         locale: Avoid #define replacements in C++ mode.
14796         * lib/locale.in.h: Include c++defs.h.
14797         (duplocale): In C++, define a namespaced alias symbol.
14798         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
14799         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
14800         * modules/locale (Depends-on): Add c++defs.
14801         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
14802
14803         langinfo: Avoid #define replacements in C++ mode.
14804         * lib/langinfo.in.h: Include c++defs.h.
14805         (nl_langinfo): In C++, define a namespaced alias symbol.
14806         * modules/langinfo (Depends-on): Add c++defs.
14807         (Makefile.am): Update langinfo.h rule.
14808
14809         iconv-h: Avoid #define replacements in C++ mode.
14810         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
14811         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
14812         symbol.
14813         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
14814         whenever iconv is present.
14815         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
14816         (Makefile.am): Update iconv.h rule.
14817
14818         glob: Avoid #define replacements in C++ mode.
14819         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
14820         (_gl_glob_errfunc_fn): New type.
14821         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
14822         symbol.
14823         * modules/glob (Depends-on): Add c++defs, warn-on-use.
14824         (Makefile.am): Update glob.h rule.
14825
14826         fcntl-h: Avoid #define replacements in C++ mode.
14827         * lib/fcntl.in.h: Include c++defs.h.
14828         (fcntl, open, openat): In C++, define a namespaced alias symbol.
14829         * modules/fcntl-h (Depends-on): Add c++defs.
14830         (Makefile.am): Update fcntl.h rule.
14831
14832         dirent: Avoid #define replacements in C++ mode.
14833         * lib/dirent.in.h: Include c++defs.h.
14834         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
14835         namespaced alias symbol.
14836         (dirfd): Update declaration.
14837         * modules/dirent (Depends-on): Add c++defs.
14838         (Makefile.am): Update dirent.h rule.
14839
14840         ctype: Make it usable in C++ code.
14841         * lib/ctype.in.h: Include c++defs.h.
14842         (isblank): Declare as extern "C".
14843         * modules/ctype (Depends-on): Add c++defs.
14844         (Makefile.am): Update ctype.h rule.
14845
14846         New module 'c++defs'.
14847         * modules/c++defs: New file.
14848         * build-aux/c++defs.h: New file.
14849         Reported by John W. Eaton <jwe@gnu.org>.
14850
14851 2010-03-07  Bruno Haible  <bruno@clisp.org>
14852
14853         logb: Provide missing declaration for Cygwin.
14854         * lib/math.in.h (logb): New declaration.
14855         * m4/logb.m4: New file.
14856         * modules/logb (Files): Add m4/logb.m4.
14857         (Depends-on): Add math.
14858         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
14859         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
14860         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
14861         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
14862         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
14863
14864 2010-03-07  Bruno Haible  <bruno@clisp.org>
14865
14866         Fix test-cond link error.
14867         * tests/test-cond.c: Include <stdio.h>.
14868
14869 2010-03-07  Bruno Haible  <bruno@clisp.org>
14870
14871         Fix test-dirent-safer link error.
14872         * modules/dirent-safer-tests (Makefile.am): Define
14873         test_dirent_safer_LDADD.
14874
14875 2010-03-07  Bruno Haible  <bruno@clisp.org>
14876
14877         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
14878         among default module list.
14879
14880 2010-03-07  Bruno Haible  <bruno@clisp.org>
14881
14882         Fix link error on platforms with GNU libiconv.
14883         * modules/unistr/u8-strcoll-tests (Makefile): Define
14884         test_u8_strcoll_LDADD.
14885         * modules/unistr/u16-strcoll-tests (Makefile): Define
14886         test_u16_strcoll_LDADD.
14887         * modules/unistr/u32-strcoll-tests (Makefile): Define
14888         test_u32_strcoll_LDADD.
14889
14890 2010-03-07  Bruno Haible  <bruno@clisp.org>
14891
14892         Use POSIX declarations for socket functions.
14893         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
14894         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
14895         rpl_sendto): Change declaration to match POSIX.
14896         * lib/connect.c (rpl_connect): Likewise.
14897         * lib/accept.c (rpl_accept): Likewise.
14898         * lib/bind.c (rpl_bind): Likewise.
14899         * lib/getpeername.c (rpl_getpeername): Likewise.
14900         * lib/getsockname.c (rpl_getsockname): Likewise.
14901         * lib/recv.c (rpl_recv): Likewise.
14902         * lib/send.c (rpl_send): Likewise.
14903         * lib/recvfrom.c (rpl_recvfrom): Likewise.
14904         * lib/sendto.c (rpl_sendto): Likewise.
14905
14906 2010-03-06  Bruno Haible  <bruno@clisp.org>
14907
14908         Clarify access, euidaccess, faccessat.
14909         * doc/posix-functions/faccessat.texi: Mention security problem under
14910         "Other problems", not "Portability problems".
14911         * doc/posix-functions/access.texi: Likewise. Mention a related security
14912         problem.
14913         * doc/glibc-functions/euidaccess.texi: Mention security problems.
14914         * lib/euidaccess.c: Add comments about platforms.
14915         * lib/unistd.in.h (access, euidaccess): Add warnings.
14916
14917 2010-03-07  Bruno Haible  <bruno@clisp.org>
14918
14919         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
14920         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
14921         (POSIX_SPAWN_SETSCHEDULER): Likewise.
14922         (POSIX_SPAWN_USEVFORK): Define in a way that works when
14923         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
14924         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
14925         declare when POSIX_SPAWN_SETSCHEDULER is zero.
14926         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
14927         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
14928         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
14929         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
14930         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
14931         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
14932         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
14933         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
14934         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
14935         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
14936         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
14937         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
14938         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
14939         Likewise.
14940         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
14941         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
14942         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
14943         Likewise.
14944         * tests/test-spawn.c (main): Make it work when
14945         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
14946
14947 2010-03-07  Bruno Haible  <bruno@clisp.org>
14948
14949         Fix incorrect Makefile.am generation in German locale.
14950         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14951         Execute sed command with character range in C locale.
14952
14953 2010-03-06  Bruno Haible  <bruno@clisp.org>
14954
14955         Tests for module 'iconv-h'.
14956         * modules/iconv-h-tests: New file.
14957         * tests/test-iconv-h.c: New file.
14958
14959         New module 'iconv-h'.
14960         * modules/iconv-h: New file.
14961         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
14962         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
14963         (configure.ac): Remove gl_ICONV_H.
14964         (Makefile.am): Remove rule for iconv.h.
14965
14966 2010-03-06  Bruno Haible  <bruno@clisp.org>
14967
14968         More consistent naming of *.m4 files.
14969         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
14970         * modules/wctype (Files): Update.
14971
14972         More consistent naming of *.m4 files.
14973         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
14974         * modules/wchar (Files): Update.
14975
14976 2010-03-06  Jim Meyering  <meyering@redhat.com>
14977
14978         euidaccess: relax license to LGPLv2+
14979         * modules/euidaccess (License): Relax to LGPLv2+.
14980
14981 2010-03-06  Bruno Haible  <bruno@clisp.org>
14982
14983         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
14984         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
14985         (Makefile.am): Augment lib_SOURCES instead.
14986
14987 2010-03-04  Jim Meyering  <meyering@redhat.com>
14988
14989         utime: remove obsolete module
14990         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
14991         unnecessary for years, and has been marked as obsolete for 10 months.
14992         * modules/utime: Remove file.
14993         * lib/utime.c: Remove file.
14994         * m4/utime.m4: Remove file.
14995         * m4/utimes-null.m4: Remove file.
14996         * doc/posix-functions/utime.texi (utime): Remove reference to
14997         the module.  Move the sole "fixed by gnulib" item into the
14998         "problems not fixed by Gnulib" list.
14999         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
15000
15001 2010-03-05  Simon Josefsson  <simon@josefsson.org>
15002
15003         * modules/exit (License): Relax license to LGPLv2+.
15004         (Status): Mark as obsolete.
15005         * NEWS: Mention deprecated 'exit' module.
15006         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
15007         of now obsolete 'exit'.
15008
15009 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15010
15011         fts-lgpl: remove unused module
15012         * modules/fts-lgpl: Remove.
15013         * MODULES.html.sh (func_all_modules): Adjust.
15014         * check-module (find_included_lib_files): Adjust.
15015         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
15016
15017 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
15018
15019         copy-acl: enhance Solaris ACL error handling
15020         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
15021         * lib/set-mode-acl.c (qset_acl): Likewise.
15022
15023 2010-03-02  Bruno Haible  <bruno@clisp.org>
15024
15025         spawn: Don't override the system defined values on FreeBSD 8.
15026         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
15027         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
15028         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
15029         if HAVE_POSIX_SPAWN is 1.
15030         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
15031
15032 2010-03-01  Bruno Haible  <bruno@clisp.org>
15033
15034         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
15035         regarding Automake.
15036
15037 2010-02-25  Bruno Haible  <bruno@clisp.org>
15038
15039         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
15040         * gnulib-tool: Define 'echo' as a function only before the ksh alias
15041         setting, not afterwards.
15042         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
15043
15044 2010-02-24  Eric Blake  <eblake@redhat.com>
15045
15046         bootstrap, git-version-gen: use timestamp
15047         * build-aux/git-version-gen (scriptversion): Force UTC.
15048         * build-aux/bootstrap (scriptversion): New variable.
15049
15050         bootstrap: allow older git
15051         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
15052         older than 1.6.4.  Requested by the libvirt project.
15053
15054 2010-02-23  Eric Blake  <eblake@redhat.com>
15055
15056         warn-on-use: work with old autoconf
15057         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
15058         AS_VAR semantics of autoconf 2.60.
15059         Reported by Bruno Haible.
15060
15061         bootstrap: improve some comments
15062         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
15063         clarification comments.
15064
15065         gettimeofday: provide correct function
15066         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
15067         when replacement is declared, otherwise provide gettimeofday.
15068         Reported by Michael Goffioul.
15069
15070 2010-02-23  Jim Meyering  <meyering@redhat.com>
15071
15072         lib-ignore: relax license to "unlimited", not LGPLv2+
15073         * modules/lib-ignore (License): Relax to "unlimited".
15074
15075 2010-02-23  Jim Meyering  <meyering@redhat.com>
15076
15077         lib-ignore: relax license to LGPLv2+
15078         * modules/lib-ignore (License): Relax to LGPLv2+.
15079
15080 2010-02-22  Eric Blake  <eblake@redhat.com>
15081
15082         lseek: avoid bash 3.2 broken pipe bug
15083         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
15084         warning from bash 3.2.
15085         Reported by Ben Pfaff, with analysis from Bruno Haible.
15086
15087         bootstrap: support non-FSF copyright holder
15088         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
15089         bootstrap.conf override of COPYRIGHT_HOLDER.
15090         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
15091
15092         bootstrap: interoperate with gettext 0.14.1
15093         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
15094
15095         bootstrap: allow for alternate submodule location
15096         * build-aux/bootstrap (gnulib_path): New variable; use instead of
15097         hardcoding submodule location.
15098         (gnulib_mk): Allow direct use of Makefile.am.
15099
15100         bootstrap: use GNULIB_SRCDIR to reduce disk usage
15101         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
15102         rather than reconfiguring where the submodule points.
15103
15104         gettimeofday: restore support for platforms that lack function
15105         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
15106         replacement if function is missing.
15107         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
15108         * modules/sys_time (Makefile.am): Substitute it.
15109         * lib/sys_time.in.h (gettimeofday): Check it.
15110         Reported by Michael Goffioul.
15111
15112 2010-02-21  Bruno Haible  <bruno@clisp.org>
15113
15114         * lib/stdio.in.h (obstack_printf): Fix typo.
15115
15116 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
15117
15118         vc-list-files: use bzr ls's -R option
15119         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
15120         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
15121
15122 2010-02-21  Jim Meyering  <meyering@redhat.com>
15123
15124         init.sh: fix EXEEXT shims to work also for names like test-prog
15125         * tests/init.sh: Re-exec a better shell, when needed.
15126         If the current shell lacks support for posix $(...), an init.sh-using
15127         test will now try to find a shell that supports that.  If EXEEXT is
15128         nonempty, we also require support for hyphen-in-alias-name and shell
15129         substitutions like ${var#glob}.  Failure to find such a shell results
15130         in a skipped test.
15131
15132 2010-02-21  Bruno Haible  <bruno@clisp.org>
15133
15134         Really work around around "broken pipe" error message from bash 3.2.
15135         * gnulib-tool (func_reset_sigpipe): Remove function.
15136         (echo): In bash 3.2, define to a function that uses printf.
15137         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
15138
15139 2010-02-20  Bruno Haible  <bruno@clisp.org>
15140
15141         Restore support for automake 1.9.6 with autoconf 2.61.
15142         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
15143         Reported by James Youngman <jay@gnu.org>.
15144
15145 2010-02-20  Bruno Haible  <bruno@clisp.org>
15146
15147         Improve *printf warning condition.
15148         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
15149         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
15150         and the function is overridden due to SIGPIPE emulation.
15151
15152 2010-02-20  Bruno Haible  <bruno@clisp.org>
15153
15154         * lib/stdio.in.h: Tweak comments.
15155
15156 2010-02-19  Bruno Haible  <bruno@clisp.org>
15157
15158         Make it easier to find modules. New gnulib-tool option '--find'.
15159         * gnulib-tool: New option --find.
15160         (func_usage): Document it.
15161         (func_sanitize_modulelist): New function, extracted from
15162         func_all_modules.
15163         (func_all_modules): Invoke it.
15164         * doc/gnulib-tool.texi (Which modules?): New node.
15165
15166 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
15167
15168         * lib/sys_select.in.h: Provide select replacement even if
15169         sys/select.h exists on a system, for Interix.
15170
15171 2010-02-18  Jim Meyering  <meyering@redhat.com>
15172
15173         init.sh: don't use $(...) just yet
15174         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
15175         to accommodate e.g., Solaris' /bin/sh.
15176
15177 2010-02-17  Bruno Haible  <bruno@clisp.org>
15178
15179         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
15180         Reported by Ludovic Courtès <ludo@gnu.org>.
15181
15182 2010-02-16  Simon Josefsson  <simon@josefsson.org>
15183
15184         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
15185         linking with -lintl.
15186
15187 2010-02-17  Simon Josefsson  <simon@josefsson.org>
15188
15189         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
15190         if not provided by the system's netdb.h.  Reported by
15191         ludo@gnu.org (Ludovic Courtès).
15192
15193 2010-02-15  Jim Meyering  <meyering@redhat.com>
15194
15195         init.sh: improve portability and efficiency
15196         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
15197         "dummy" in a for loop.
15198         Use '!', not '^' to select the complement of a character set used
15199         in a "case" statement.
15200         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
15201         Suggestions from Eric Blake.
15202
15203         init.sh: automatically accommodate programs with the .exe suffix
15204         Automatically arrange for an invocation of "prog" to execute the
15205         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
15206         may use the simpler "prog", yet still work when built on a system
15207         that requires specifying the added suffix.
15208         Do this by constructing a function named "prog" that invokes
15209         "prog.exe" for each .exe file in selected directories.
15210         * tests/init.sh (find_exe_basenames_): New function.
15211         (create_exe_shim_functions_): New function.
15212         (path_prepend_): Use it.
15213
15214         maint.mk: mark syntax-check sc_*.m rules as .PHONY
15215         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
15216         "make -t syntax-check" doesn't create a ton of sc_*.m files.
15217
15218 2010-02-14  Jim Meyering  <meyering@redhat.com>
15219
15220         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
15221         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
15222         (sc_prohibit_hash_pjw_without_use): New rule.
15223
15224         maint.mk: allow the default upload destination dir to be overridden
15225         * top/maint.mk (upload_dest_dir_): Define with a default that
15226         preserves the status quo.
15227         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
15228         Reported by Peter Simons.
15229
15230         maint.mk: prohibit inclusion of "hash.h" without_use
15231         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
15232
15233 2010-02-10  Jim Meyering  <meyering@redhat.com>
15234
15235         maint.mk: prohibit inclusion of "ignore-value.h" without_use
15236         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
15237
15238 2010-02-09  Eric Blake  <ebb9@byu.net>
15239         and Bruno Haible  <bruno@clisp.org>
15240
15241         obstack-printf-posix: ensure declaration
15242         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
15243         extracted from gl_FUNC_OBSTACK_PRINTF.
15244         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
15245         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
15246         Likewise.
15247         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
15248         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
15249         0.
15250
15251 2010-02-08  Bruno Haible  <bruno@clisp.org>
15252
15253         gnulib-tool: Fix typo in 2010-02-07 commit.
15254         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
15255         Reported by Eric Blake.
15256
15257 2010-02-07  Bruno Haible  <bruno@clisp.org>
15258
15259         gnulib-tool: Fix up caching patches.
15260         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
15261         option --no-cache. Use associative arrays when supported by the shell.
15262         (sed_comments): New variable.
15263         (modcache): Renamed from do_cache.
15264         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
15265         abbreviate unnecessarily.
15266         (have_associative): New variable.
15267         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
15268         way also for ksh and zsh.
15269         (func_init_sed_convert_to_cache_statements): New function, extracted
15270         from func_cache_lookup_module. Add support for associative arrays.
15271         Don't set the c_MODULE_cached variable here. Ignore all lines before
15272         the first field header. Remove only the final newline, not all trailing
15273         newlines. Support empty fields correctly. Limit the use of 'eval' to
15274         assignments.
15275         (func_get_description, func_get_status, func_get_notice,
15276         func_get_applicability, func_get_filelist, func_get_dependencies,
15277         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
15278         func_get_automake_snippet, func_get_include_directive,
15279         func_get_link_directive, func_get_license, func_get_maintainer):
15280         Update documentation. List the unoptimized code first. Add support for
15281         associative arrays. Limit the use of 'eval' to assignments.
15282         (func_get_applicability): Undo stylistic pessimisations.
15283         (func_get_automake_snippet, func_get_include_directive): Reduce code
15284         duplication.
15285         (func_modules_transitive_closure, func_modules_add_dummy,
15286         func_modules_notice, func_modules_to_filelist, func_add_file,
15287         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
15288         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
15289         func_create_testdir, func_create_megatestdir): Update documentation.
15290
15291 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15292
15293         * gnulib-tool (func_cache_lookup_module): Store the module name
15294         belonging to the cache variable; error out if two different
15295         module names map to the same cache variable name.
15296
15297 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15298
15299         gnulib-tool: Make caching optional.
15300         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
15301         Update matching short versions of --no-changelog.
15302         (func_usage): Update.
15303         (sed_extract_cache_prog): Renamed from ...
15304         (sed_extract_prog): ... this; revert to old extraction script.
15305         (func_get_description, func_get_status)
15306         (func_get_notice, func_get_applicability, func_get_filelist)
15307         (func_get_dependencies, func_get_autoconf_early_snippet)
15308         (func_get_autoconf_snippet, func_get_automake_snippet)
15309         (func_get_include_directive, func_get_link_directive)
15310         (func_get_license, func_get_maintainer): If $do_cache is false,
15311         use old, non-caching extraction scripts.
15312         Suggestion by Bruno Haible.
15313
15314 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15315
15316         gnulib-tool: cache module metainformation.
15317         * gnulib-tool (sed_extract_prog): Match newline before each
15318         header, and rewrite header to a shell variable suffix.
15319         (func_cache_var, func_cache_lookup_module): New functions,
15320         to turn a module name into a cache variable prefix, and to
15321         look up and cache module metainformation.
15322         (func_get_description, func_get_status)
15323         (func_get_notice, func_get_applicability, func_get_filelist)
15324         (func_get_dependencies, func_get_autoconf_early_snippet)
15325         (func_get_autoconf_snippet, func_get_automake_snippet)
15326         (func_get_include_directive, func_get_link_directive)
15327         (func_get_license, func_get_maintainer): Use
15328         func_cache_lookup_module.
15329
15330 2010-02-07  Bruno Haible  <bruno@clisp.org>
15331
15332         fnctl: Fix missing dependency.
15333         * modules/fcntl (Depends-on): Add getdtablesize.
15334         Reported by John W. Eaton <jwe@gnu.org>.
15335
15336 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
15337
15338         Argp: fix recognition of short alias options.
15339
15340         * lib/argp-parse.c (convert_options): Fix improper use of
15341         `|' between character values.
15342         * tests/test-argp.c (group1_option): New alias option
15343         --read (-r).
15344         (group1_parser): Special handling for 'r'.
15345         (test15): New test case.
15346         (test_fun): Add test15.
15347         * tests/test-argp-2.sh: Update expected --help and --usage
15348         outputs.
15349
15350 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
15351
15352         * tests/test-argp.c: Fix indentation.
15353
15354 2010-02-04  Eric Blake  <ebb9@byu.net>
15355
15356         gettimeofday: expose type of second argument
15357         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
15358         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
15359         * tests/test-gettimeofday.c: Use it to silence warning.
15360         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
15361         the issue.
15362
15363 2010-02-03  Jim Meyering  <meyering@redhat.com>
15364
15365         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
15366         * lib/regcomp.c (TYPE_SIGNED): Define.
15367         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
15368
15369         regcomp.c: avoid a new -Wshadow warning
15370         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
15371
15372 2010-02-01  Jim Meyering  <meyering@redhat.com>
15373
15374         removing useless parentheses in cpp #define directives
15375         For motivation, see commit c0221df4, "define STREQ(a,b)
15376         consistently, removing useless parentheses"
15377         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
15378         * lib/mountlist.c (MNT_IGNORE): Likewise.
15379         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
15380
15381 2010-02-01  Eric Blake  <ebb9@byu.net>
15382
15383         sys_time: use link-warning
15384         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
15385         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
15386         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
15387         * modules/sys_time (Depends-on): Add warn-on-use.
15388         (Makefile.am): Always build replacement.
15389         (configure.ac): Update substitutions.
15390         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
15391         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
15392         bother with SYS_TIME_H.
15393         * modules/gettimeofday (configure.ac): Declare indicator.
15394         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
15395         in use.
15396
15397         closein-tests: silence compiler warning
15398         * tests/test-closein.c (main): Ignore fread result.
15399         * modules/closein-tests (Depends-on): Add ignore-value.
15400
15401         tests: silence warning about system return
15402         * tests/test-areadlink-with-size.c (main): Ignore system result.
15403         * tests/test-areadlink.c (main): Likewise.
15404         * tests/test-areadlinkat-with-size.c (main): Likewise.
15405         * tests/test-areadlinkat.c (main): Likewise.
15406         * tests/test-canonicalize-lgpl.c (main): Likewise.
15407         * tests/test-canonicalize.c (main): Likewise.
15408         * tests/test-chown.c (main): Likewise.
15409         * tests/test-fchownat.c (main): Likewise.
15410         * tests/test-fdutimensat.c (main): Likewise.
15411         * tests/test-fstatat.c (main): Likewise.
15412         * tests/test-futimens.c (main): Likewise.
15413         * tests/test-lchown.c (main): Likewise.
15414         * tests/test-link.c (main): Likewise.
15415         * tests/test-linkat.c (main): Likewise.
15416         * tests/test-lstat.c (main): Likewise.
15417         * tests/test-mkdir.c (main): Likewise.
15418         * tests/test-mkdirat.c (main): Likewise.
15419         * tests/test-mkfifo.c (main): Likewise.
15420         * tests/test-mkfifoat.c (main): Likewise.
15421         * tests/test-mknod.c (main): Likewise.
15422         * tests/test-readlink.c (main): Likewise.
15423         * tests/test-remove.c (main): Likewise.
15424         * tests/test-rename.c (main): Likewise.
15425         * tests/test-renameat.c (main): Likewise.
15426         * tests/test-rmdir.c (main): Likewise.
15427         * tests/test-symlink.c (main): Likewise.
15428         * tests/test-symlinkat.c (main): Likewise.
15429         * tests/test-unlink.c (main): Likewise.
15430         * tests/test-unlinkat.c (main): Likewise.
15431         * tests/test-utimens.c (main): Likewise.
15432         * tests/test-utimensat.c (main): Likewise.
15433         * modules/areadlink-tests (Depends-on): Add ignore-value.
15434         * modules/areadlink-with-size-tests (Depends-on): Likewise.
15435         * modules/areadlinkat-tests (Depends-on): Likewise.
15436         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
15437         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15438         * modules/canonicalize-tests (Depends-on): Likewise.
15439         * modules/chown-tests (Depends-on): Likewise.
15440         * modules/fdutimensat-tests (Depends-on): Likewise.
15441         * modules/futimens-tests (Depends-on): Likewise.
15442         * modules/lchown-tests (Depends-on): Likewise.
15443         * modules/link-tests (Depends-on): Likewise.
15444         * modules/linkat-tests (Depends-on): Likewise.
15445         * modules/lstat-tests (Depends-on): Likewise.
15446         * modules/mkdir-tests (Depends-on): Likewise.
15447         * modules/mkfifo-tests (Depends-on): Likewise.
15448         * modules/mkfifoat-tests (Depends-on): Likewise.
15449         * modules/mknod-tests (Depends-on): Likewise.
15450         * modules/openat-tests (Depends-on): Likewise.
15451         * modules/readlink-tests (Depends-on): Likewise.
15452         * modules/remove-tests (Depends-on): Likewise.
15453         * modules/rename-tests (Depends-on): Likewise.
15454         * modules/renameat-tests (Depends-on): Likewise.
15455         * modules/rmdir-tests (Depends-on): Likewise.
15456         * modules/symlink-tests (Depends-on): Likewise.
15457         * modules/symlinkat-tests (Depends-on): Likewise.
15458         * modules/unlink-tests (Depends-on): Likewise.
15459         * modules/utimens-tests (Depends-on): Likewise.
15460         * modules/utimensat-tests (Depends-on): Likewise.
15461
15462 2010-01-31  Bruno Haible  <bruno@clisp.org>
15463
15464         Perform the same test for many <math.h> functions.
15465         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
15466         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
15467         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
15468         of gl_MATHFUNC.
15469         * modules/acos (configure.ac): Likewise.
15470         * modules/asin (configure.ac): Likewise.
15471         * modules/atan (configure.ac): Likewise.
15472         * modules/atan2 (configure.ac): Likewise.
15473         * modules/cbrt (configure.ac): Likewise.
15474         * modules/copysign (configure.ac): Likewise.
15475         * modules/cos (configure.ac): Likewise.
15476         * modules/cosh (configure.ac): Likewise.
15477         * modules/erf (configure.ac): Likewise.
15478         * modules/erfc (configure.ac): Likewise.
15479         * modules/exp (configure.ac): Likewise.
15480         * modules/fmod (configure.ac): Likewise.
15481         * modules/hypot (configure.ac): Likewise.
15482         * modules/j0 (configure.ac): Likewise.
15483         * modules/j1 (configure.ac): Likewise.
15484         * modules/jn (configure.ac): Likewise.
15485         * modules/lgamma (configure.ac): Likewise.
15486         * modules/log (configure.ac): Likewise.
15487         * modules/log10 (configure.ac): Likewise.
15488         * modules/log1p (configure.ac): Likewise.
15489         * modules/pow (configure.ac): Likewise.
15490         * modules/remainder (configure.ac): Likewise.
15491         * modules/sin (configure.ac): Likewise.
15492         * modules/sinh (configure.ac): Likewise.
15493         * modules/tan (configure.ac): Likewise.
15494         * modules/tanh (configure.ac): Likewise.
15495         * modules/y0 (configure.ac): Likewise.
15496         * modules/y1 (configure.ac): Likewise.
15497         * modules/yn (configure.ac): Likewise.
15498         Suggested by Paolo Bonzini.
15499
15500 2010-01-31  Bruno Haible  <bruno@clisp.org>
15501
15502         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
15503
15504 2010-01-31  Bruno Haible  <bruno@clisp.org>
15505
15506         Work around getdelim() bug on FreeBSD 8.0.
15507         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
15508         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
15509         not work.
15510         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
15511         is 1.
15512         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
15513         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
15514         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
15515         a non-zero size.
15516         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
15517
15518 2010-01-31  Bruno Haible  <bruno@clisp.org>
15519
15520         Work around getline() bug on FreeBSD 8.0.
15521         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
15522         and a non-zero size.
15523         * tests/test-getline.c (main): Likewise.
15524         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
15525         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
15526
15527 2010-01-28  Eric Blake  <ebb9@byu.net>
15528
15529         regex: fix build failure
15530         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
15531         platforms.
15532
15533 2010-01-28  Jim Meyering  <meyering@redhat.com>
15534
15535         regex: do not ignore memory allocation failure
15536         * lib/regex_internal.c (create_cd_newstate): Detect
15537         re_node_set_init_copy failure.   Extracted from glibc commit
15538         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
15539
15540         regex: sync more white-space changes from libc
15541         * lib/regex_internal.c: White-space only changes.
15542         * lib/regexec.c: Likewise.
15543
15544         regex: add many uses of __attribute_warn_unused_result__
15545         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
15546         * lib/regexec.c: Likewise.
15547         Extracted from a messy glibc commit.
15548
15549         regcomp.c: spelling and merge-artifact from glibc
15550         * lib/regcomp.c: Merge remainder of glibc's
15551         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
15552
15553         regcomp.c: sync white-space changes from glibc
15554         * lib/regcomp.c: Merge to accommodate white space
15555         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
15556
15557         regcomp.c: do not ignore internal return values
15558         * lib/regcomp.c: Do not ignore internal return values.
15559         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
15560         but without its white-space changes and spelling fixes.
15561
15562         regex_internal.h: define __attribute_warn_unused_result__
15563         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
15564
15565         maint: add a syntax-check rule to check for vulnerable Makefile.in
15566         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
15567
15568 2010-01-27  Jim Meyering  <meyering@redhat.com>
15569
15570         ncftpput-ftp: clean up spaces
15571         * build-aux/ncftpput-ftp: Make Copyright line consistent.
15572         Remove trailing blanks.
15573
15574 2010-01-27  Simon Josefsson  <simon@josefsson.org>
15575
15576         * build-aux/git-version-gen: Fix copyright statement.
15577         * build-aux/gnupload: Likewise.
15578         * tests/test-arcfour.c: Likewise.
15579         * tests/test-arctwo.c: Likewise.
15580         * tests/test-count-one-bits.c: Likewise.
15581         * tests/test-crc.c: Likewise.
15582         * tests/test-des.c: Likewise.
15583         * tests/test-gc-arcfour.c: Likewise.
15584         * tests/test-gc-arctwo.c: Likewise.
15585         * tests/test-gc-des.c: Likewise.
15586         * tests/test-gc-hmac-md5.c: Likewise.
15587         * tests/test-gc-hmac-sha1.c: Likewise.
15588         * tests/test-gc-md2.c: Likewise.
15589         * tests/test-gc-md4.c: Likewise.
15590         * tests/test-gc-md5.c: Likewise.
15591         * tests/test-gc-pbkdf2-sha1.c: Likewise.
15592         * tests/test-gc-rijndael.c: Likewise.
15593         * tests/test-gc-sha1.c: Likewise.
15594         * tests/test-gc.c: Likewise.
15595         * tests/test-gethostname.c: Likewise.
15596         * tests/test-gettimeofday.c: Likewise.
15597         * tests/test-hash.c: Likewise.
15598         * tests/test-hmac-md5.c: Likewise.
15599         * tests/test-hmac-sha1.c: Likewise.
15600         * tests/test-md2.c: Likewise.
15601         * tests/test-md4.c: Likewise.
15602         * tests/test-md5.c: Likewise.
15603         * tests/test-memchr.c: Likewise.
15604         * tests/test-memchr2.c: Likewise.
15605         * tests/test-memcmp.c: Likewise.
15606         * tests/test-memmem.c: Likewise.
15607         * tests/test-memrchr.c: Likewise.
15608         * tests/test-rawmemchr.c: Likewise.
15609         * tests/test-read-file.c: Likewise.
15610         * tests/test-rijndael.c: Likewise.
15611         * tests/test-sockets.c: Likewise.
15612         * tests/test-strchrnul.c: Likewise.
15613         * tests/test-strstr.c: Likewise.
15614         * tests/test-strtod.c: Likewise.
15615         * build-aux/ncftpput-ftp: Likewise.
15616
15617 2010-01-26  Eric Blake  <ebb9@byu.net>
15618
15619         ignore-value: update recommended header name
15620         * modules/ignore-value (Include): Only use <> for headers that
15621         exist in glibc.
15622
15623 2010-01-26  Jim Meyering  <meyering@redhat.com>
15624
15625         test-userspec.c: avoid compiler warnings
15626         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
15627         and "initialization discards qualifiers..." warnings.
15628         Put the first "uid" in its own scope, and make char* members "const".
15629
15630 2010-01-25  Bruno Haible  <bruno@clisp.org>
15631
15632         gnulib-tool: Make warning diagnostics consistent.
15633         * gnulib-tool (func_warning): New function.
15634         Use it everywhere where gnulib-tool produces output to stderr and it is
15635         not a fatal error.
15636
15637 2010-01-25  Bruno Haible  <bruno@clisp.org>
15638
15639         Fix test dependencies.
15640         * modules/xstrtol-tests (Depends-on): Add inttypes.
15641         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
15642
15643 2010-01-25 Pádraig Brady <P@draigBrady.com>
15644
15645         syntax-check: detect incorrect boolean macro values in config.h
15646         * modules/maintainer-makefile (configure.ac): Parameterize the location
15647         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
15648         The logic is from Eric Blake and the location indicated by Jim Meyering.
15649         Note the more natural CONFIG_HEADER name is prohibited by automake
15650         for backwards compatibility reasons.
15651         * top/maint.mk (sc_Wundef_boolean): New rule.
15652
15653 2010-01-25  Jim Meyering  <meyering@redhat.com>
15654
15655         bootstrap: detect MacOS 10.6's shasum, too
15656         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
15657         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
15658
15659 2010-01-23  Jim Meyering  <meyering@redhat.com>
15660
15661         xstrtoll: new module
15662         * modules/xstrtoll: New file.
15663         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
15664         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
15665         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
15666         ./configure fails if you use this module and lack "long long".
15667         * modules/xstrtoll-tests: New module.
15668         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
15669         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
15670         new init.sh-based test framework.
15671
15672 2010-01-24  Bruno Haible  <bruno@clisp.org>
15673
15674         Tests for module 'yn'.
15675         * modules/yn-tests: New file.
15676         * tests/test-yn.c: New file.
15677
15678         Tests for module 'y1'.
15679         * modules/y1-tests: New file.
15680         * tests/test-y1.c: New file.
15681
15682         Tests for module 'y0'.
15683         * modules/y0-tests: New file.
15684         * tests/test-y0.c: New file.
15685
15686         Tests for module 'tanh'.
15687         * modules/tanh-tests: New file.
15688         * tests/test-tanh.c: New file.
15689
15690         Tests for module 'tan'.
15691         * modules/tan-tests: New file.
15692         * tests/test-tan.c: New file.
15693
15694         Tests for module 'sqrt'.
15695         * modules/sqrt-tests: New file.
15696         * tests/test-sqrt.c: New file.
15697
15698         Tests for module 'sinh'.
15699         * modules/sinh-tests: New file.
15700         * tests/test-sinh.c: New file.
15701
15702         Tests for module 'sin'.
15703         * modules/sin-tests: New file.
15704         * tests/test-sin.c: New file.
15705
15706         Tests for module 'rint'.
15707         * modules/rint-tests: New file.
15708         * tests/test-rint.c: New file.
15709
15710         Tests for module 'remainder'.
15711         * modules/remainder-tests: New file.
15712         * tests/test-remainder.c: New file.
15713
15714         Tests for module 'pow'.
15715         * modules/pow-tests: New file.
15716         * tests/test-pow.c: New file.
15717
15718         Tests for module 'nextafter'.
15719         * modules/nextafter-tests: New file.
15720         * tests/test-nextafter.c: New file.
15721
15722         Tests for module 'modf'.
15723         * modules/modf-tests: New file.
15724         * tests/test-modf.c: New file.
15725
15726         Tests for module 'logb'.
15727         * modules/logb-tests: New file.
15728         * tests/test-logb.c: New file.
15729
15730         Tests for module 'log1p'.
15731         * modules/log1p-tests: New file.
15732         * tests/test-log1p.c: New file.
15733
15734         Tests for module 'log10'.
15735         * modules/log10-tests: New file.
15736         * tests/test-log10.c: New file.
15737
15738         Tests for module 'log'.
15739         * modules/log-tests: New file.
15740         * tests/test-log.c: New file.
15741
15742         Tests for module 'lgamma'.
15743         * modules/lgamma-tests: New file.
15744         * tests/test-lgamma.c: New file.
15745
15746         Tests for module 'ldexp'.
15747         * modules/ldexp-tests: New file.
15748         * tests/test-ldexp.c: New file.
15749
15750         Tests for module 'jn'.
15751         * modules/jn-tests: New file.
15752         * tests/test-jn.c: New file.
15753
15754         Tests for module 'j1'.
15755         * modules/j1-tests: New file.
15756         * tests/test-j1.c: New file.
15757
15758         Tests for module 'j0'.
15759         * modules/j0-tests: New file.
15760         * tests/test-j0.c: New file.
15761
15762         Tests for module 'hypot'.
15763         * modules/hypot-tests: New file.
15764         * tests/test-hypot.c: New file.
15765
15766         Tests for module 'fmod'.
15767         * modules/fmod-tests: New file.
15768         * tests/test-fmod.c: New file.
15769
15770         Tests for module 'fabs'.
15771         * modules/fabs-tests: New file.
15772         * tests/test-fabs.c: New file.
15773
15774         Tests for module 'exp'.
15775         * modules/exp-tests: New file.
15776         * tests/test-exp.c: New file.
15777
15778         Tests for module 'erfc'.
15779         * modules/erfc-tests: New file.
15780         * tests/test-erfc.c: New file.
15781
15782         Tests for module 'erf'.
15783         * modules/erf-tests: New file.
15784         * tests/test-erf.c: New file.
15785
15786         Tests for module 'cosh'.
15787         * modules/cosh-tests: New file.
15788         * tests/test-cosh.c: New file.
15789
15790         Tests for module 'cos'.
15791         * modules/cos-tests: New file.
15792         * tests/test-cos.c: New file.
15793
15794         Tests for module 'copysign'.
15795         * modules/copysign-tests: New file.
15796         * tests/test-copysign.c: New file.
15797
15798         Tests for module 'cbrt'.
15799         * modules/cbrt-tests: New file.
15800         * tests/test-cbrt.c: New file.
15801
15802         Tests for module 'atan2'.
15803         * modules/atan2-tests: New file.
15804         * tests/test-atan2.c: New file.
15805
15806         Tests for module 'atan'.
15807         * modules/atan-tests: New file.
15808         * tests/test-atan.c: New file.
15809
15810         Tests for module 'asin'.
15811         * modules/asin-tests: New file.
15812         * tests/test-asin.c: New file.
15813
15814         Tests for module 'acos'.
15815         * modules/acos-tests: New file.
15816         * tests/test-acos.c: New file.
15817
15818 2010-01-24  Bruno Haible  <bruno@clisp.org>
15819
15820         Fix tests for common <math.h> functions.
15821         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
15822         code snippet that references the function pointer, rather than merely
15823         calling the function. Substitute the FUNC_LIBM variable.
15824         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
15825         * modules/acos (configure.ac): Likewise.
15826         * modules/asin (configure.ac): Likewise.
15827         * modules/atan (configure.ac): Likewise.
15828         * modules/atan2 (configure.ac): Likewise.
15829         * modules/cbrt (configure.ac): Likewise.
15830         * modules/copysign (configure.ac): Likewise.
15831         * modules/cos (configure.ac): Likewise.
15832         * modules/cosh (configure.ac): Likewise.
15833         * modules/erf (configure.ac): Likewise.
15834         * modules/erfc (configure.ac): Likewise.
15835         * modules/exp (configure.ac): Likewise.
15836         * modules/fabs (configure.ac): Likewise.
15837         * modules/fmod (configure.ac): Likewise.
15838         * modules/hypot (configure.ac): Likewise.
15839         * modules/j0 (configure.ac): Likewise.
15840         * modules/j1 (configure.ac): Likewise.
15841         * modules/jn (configure.ac): Likewise.
15842         * modules/ldexp (configure.ac): Likewise.
15843         * modules/lgamma (configure.ac): Likewise.
15844         * modules/log (configure.ac): Likewise.
15845         * modules/log10 (configure.ac): Likewise.
15846         * modules/log1p (configure.ac): Likewise.
15847         * modules/logb (configure.ac): Likewise.
15848         * modules/modf (configure.ac): Likewise.
15849         * modules/nextafter (configure.ac): Likewise.
15850         * modules/pow (configure.ac): Likewise.
15851         * modules/remainder (configure.ac): Likewise.
15852         * modules/rint (configure.ac): Likewise.
15853         * modules/sin (configure.ac): Likewise.
15854         * modules/sinh (configure.ac): Likewise.
15855         * modules/tan (configure.ac): Likewise.
15856         * modules/tanh (configure.ac): Likewise.
15857         * modules/y0 (configure.ac): Likewise.
15858         * modules/y1 (configure.ac): Likewise.
15859         * modules/yn (configure.ac): Likewise.
15860
15861 2010-01-24  Bruno Haible  <bruno@clisp.org>
15862
15863         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
15864         * tests/test-acosl.c (x): New variable.
15865         (main): Store argument in x and fetch it from x.
15866         * tests/test-asinl.c (x): New variable.
15867         (main): Store argument in x and fetch it from x.
15868         * tests/test-atanl.c (x): New variable.
15869         (main): Store argument in x and fetch it from x.
15870         * tests/test-cosl.c (x): New variable.
15871         (main): Store argument in x and fetch it from x.
15872         * tests/test-expl.c (x): New variable.
15873         (main): Store argument in x and fetch it from x.
15874         * tests/test-logl.c (x): New variable.
15875         (main): Store argument in x and fetch it from x.
15876         * tests/test-sinl.c (x): New variable.
15877         (main): Store argument in x and fetch it from x.
15878         * tests/test-sqrtl.c (x): New variable.
15879         (main): Store argument in x and fetch it from x.
15880         * tests/test-tanl.c (x): New variable.
15881         (main): Store argument in x and fetch it from x.
15882
15883 2010-01-24  Bruno Haible  <bruno@clisp.org>
15884
15885         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
15886         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
15887         assignments to the initial TESTS_ENVIRONMENT.
15888         * doc/gnulib.texi (Unit test modules): Document it.
15889         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
15890         TESTS_ENVIRONMENT.
15891         * modules/btowc-tests (Makefile.am): Likewise.
15892         * modules/c-stack-tests (Makefile.am): Likewise.
15893         * modules/c-strcase-tests (Makefile.am): Likewise.
15894         * modules/copy-file-tests (Makefile.am): Likewise.
15895         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
15896         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
15897         * modules/mbrtowc-tests (Makefile.am): Likewise.
15898         * modules/mbscasecmp-tests (Makefile.am): Likewise.
15899         * modules/mbscasestr-tests (Makefile.am): Likewise.
15900         * modules/mbschr-tests (Makefile.am): Likewise.
15901         * modules/mbscspn-tests (Makefile.am): Likewise.
15902         * modules/mbsinit-tests (Makefile.am): Likewise.
15903         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
15904         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
15905         * modules/mbspbrk-tests (Makefile.am): Likewise.
15906         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
15907         * modules/mbsrchr-tests (Makefile.am): Likewise.
15908         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
15909         * modules/mbsspn-tests (Makefile.am): Likewise.
15910         * modules/mbsstr-tests (Makefile.am): Likewise.
15911         * modules/nl_langinfo-tests (Makefile.am): Likewise.
15912         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
15913         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
15914         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
15915         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
15916         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
15917         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
15918         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
15919         * modules/wcrtomb-tests (Makefile.am): Likewise.
15920         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
15921         * modules/wcsrtombs-tests (Makefile.am): Likewise.
15922         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
15923         assignments from TESTS_ENVIRONMENT.
15924         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
15925         augmentation.
15926         * modules/argp-version-etc-tests (Makefile.am): Likewise.
15927         * modules/atexit-tests (Makefile.am): Likewise.
15928         * modules/binary-io-tests (Makefile.am): Likewise.
15929         * modules/closein-tests (Makefile.am): Likewise.
15930         * modules/dprintf-posix-tests (Makefile.am): Likewise.
15931         * modules/exclude-tests (Makefile.am): Likewise.
15932         * modules/fflush-tests (Makefile.am): Likewise.
15933         * modules/fpending-tests (Makefile.am): Likewise.
15934         * modules/fprintf-posix-tests (Makefile.am): Likewise.
15935         * modules/freadahead-tests (Makefile.am): Likewise.
15936         * modules/freadptr-tests (Makefile.am): Likewise.
15937         * modules/freadseek-tests (Makefile.am): Likewise.
15938         * modules/fseek-tests (Makefile.am): Likewise.
15939         * modules/fseeko-tests (Makefile.am): Likewise.
15940         * modules/ftell-tests (Makefile.am): Likewise.
15941         * modules/ftello-tests (Makefile.am): Likewise.
15942         * modules/idpriv-drop-tests (Makefile.am): Likewise.
15943         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
15944         * modules/lseek-tests (Makefile.am): Likewise.
15945         * modules/parse-duration-tests (Makefile.am): Likewise.
15946         * modules/perror-tests (Makefile.am): Likewise.
15947         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
15948         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
15949         * modules/pipe-tests (Makefile.am): Likewise.
15950         * modules/pread-tests (Makefile.am): Likewise.
15951         * modules/printf-posix-tests (Makefile.am): Likewise.
15952         * modules/select-tests (Makefile.am): Likewise.
15953         * modules/sigpipe-tests (Makefile.am): Likewise.
15954         * modules/tsearch-tests (Makefile.am): Likewise.
15955         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
15956         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
15957         * modules/uniname/uniname-tests (Makefile.am): Likewise.
15958         * modules/uniwidth/width-tests (Makefile.am): Likewise.
15959         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
15960         * modules/version-etc-tests (Makefile.am): Likewise.
15961         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
15962         * modules/vprintf-posix-tests (Makefile.am): Likewise.
15963         * modules/xalloc-die-tests (Makefile.am): Likewise.
15964         * modules/xprintf-posix-tests (Makefile.am): Likewise.
15965         * modules/xstrtoimax-tests (Makefile.am): Likewise.
15966         * modules/xstrtol-tests (Makefile.am): Likewise.
15967         * modules/xstrtoumax-tests (Makefile.am): Likewise.
15968         * modules/yesno-tests (Makefile.am): Likewise.
15969         Suggested by Jim Meyering.
15970
15971 2010-01-24  Bruno Haible  <bruno@clisp.org>
15972
15973         More documentation.
15974         * doc/gnulib.texi (Writing modules): New chapter.
15975         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
15976         the new chapter.
15977
15978 2010-01-24  Jim Meyering  <meyering@redhat.com>
15979
15980         maint.mk: do not prepend "./" after filtering
15981         * top/maint.mk (_prepend_srcdir_prefix): New variable
15982         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
15983         "./" when $(srcdir) is ".".
15984
15985         define STREQ(a,b) consistently, removing useless parentheses
15986         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
15987         since the only risk is that "a" or "b" contains an unparenthesized
15988         comma, but if either did that, STREQ would have 3 or more arguments.
15989         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
15990         * lib/fts.c (STREQ): Remove unnecessary parentheses.
15991         * lib/hash-triple.c (STREQ): Likewise.
15992         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
15993         * lib/getugroups.c (STREQ): Likewise.
15994
15995 2010-01-23  Jim Meyering  <meyering@redhat.com>
15996
15997         maint.mk: fix syntax-check in a non-srcdir build directory
15998         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
15999         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
16000
16001 2010-01-22  Jim Meyering  <meyering@redhat.com>
16002
16003         userspec: add unit tests
16004         * tests/test-userspec.c: New file.
16005         * modules/userspec-tests: Likewise.
16006
16007 2010-01-21  Jim Meyering  <meyering@redhat.com>
16008
16009         maint.mk: handle source file names containing "." robustly
16010         * top/maint.mk (_dot_escaped_srcdir): Define.
16011         (VC_LIST): Use it in LHS of sed substitution.
16012
16013 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
16014
16015         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
16016         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
16017         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
16018         from a non-srcdir build.
16019
16020 2010-01-20  Eric Blake  <ebb9@byu.net>
16021
16022         warn-on-use: use instead of link-warning
16023         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
16024         * modules/unistd (Depends-on, Makefile.am): Likewise.
16025         * modules/arpa_inet (Depends-on): Replace link-warning with
16026         warn-on-use.
16027         (Makefile.am): Update rules accordingly.
16028         * modules/ctype (Depends-on, Makefile.am): Likewise.
16029         * modules/dirent (Depends-on, Makefile.am): Likewise.
16030         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
16031         * modules/inttypes (Depends-on, Makefile.am): Likewise.
16032         * modules/langinfo (Depends-on, Makefile.am): Likewise.
16033         * modules/locale (Depends-on, Makefile.am): Likewise.
16034         * modules/math (Depends-on, Makefile.am): Likewise.
16035         * modules/search (Depends-on, Makefile.am): Likewise.
16036         * modules/signal (Depends-on, Makefile.am): Likewise.
16037         * modules/spawn (Depends-on, Makefile.am): Likewise.
16038         * modules/stdlib (Depends-on, Makefile.am): Likewise.
16039         * modules/string (Depends-on, Makefile.am): Likewise.
16040         * modules/strings (Depends-on, Makefile.am): Likewise.
16041         * modules/sys_file (Depends-on, Makefile.am): Likewise.
16042         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
16043         * modules/sys_select (Depends-on, Makefile.am): Likewise.
16044         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
16045         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
16046         * modules/sys_times (Depends-on, Makefile.am): Likewise.
16047         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
16048         * modules/wchar (Depends-on, Makefile.am): Likewise.
16049         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
16050         should be poisoned.
16051         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
16052         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
16053         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
16054         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
16055         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16056         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
16057         * m4/math_h.m4 (gl_MATH_H): Likewise.
16058         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16059         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
16060         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16061         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
16062         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
16063         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
16064         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
16065         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
16066         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
16067         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16068         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
16069         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
16070         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16071         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16072         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16073         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
16074         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
16075         GL_LINK_WARNING.
16076         * lib/ctype.in.h: Likewise.
16077         * lib/dirent.in.h: Likewise.
16078         * lib/fcntl.in.h: Likewise.
16079         * lib/inttypes.in.h: Likewise.
16080         * lib/langinfo.in.h: Likewise.
16081         * lib/locale.in.h: Likewise.
16082         * lib/math.in.h: Likewise.
16083         * lib/search.in.h: Likewise.
16084         * lib/signal.in.h: Likewise.
16085         * lib/spawn.in.h: Likewise.
16086         * lib/stdio.in.h: Likewise.
16087         * lib/stdlib.in.h: Likewise.
16088         * lib/string.in.h: Likewise.
16089         * lib/strings.in.h: Likewise.
16090         * lib/sys_file.in.h: Likewise.
16091         * lib/sys_ioctl.in.h: Likewise.
16092         * lib/sys_select.in.h: Likewise.
16093         * lib/sys_socket.in.h: Likewise.
16094         * lib/sys_stat.in.h: Likewise.
16095         * lib/sys_times.in.h: Likewise.
16096         * lib/sys_utsname.in.h: Likewise.
16097         * lib/unistd.in.h: Likewise.
16098         * lib/wchar.in.h: Likewise.
16099
16100 2010-01-20  Bruno Haible  <bruno@clisp.org>
16101
16102         Avoid duplicate -lm.
16103         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
16104         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
16105         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
16106         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
16107         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
16108         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
16109         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
16110         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
16111         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
16112         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
16113         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
16114         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
16115         Reported by Paolo Bonzini.
16116
16117 2010-01-19  Bruno Haible  <bruno@clisp.org>
16118
16119         langinfo, nl_langinfo: Relicense under LGPLv2+.
16120         * modules/langinfo (License): Change to LGPLv2+.
16121         * modules/nl_langinfo (License): Likewise.
16122         Patch by David Lutterkort <lutter@redhat.com>.
16123
16124 2010-01-19  Bruno Haible  <bruno@clisp.org>
16125
16126         Avoid compilation error with cc on OSF/1 5.1.
16127         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
16128         statement, not before.
16129         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16130
16131 2010-01-18  Bruno Haible  <bruno@clisp.org>
16132
16133         Avoid a link error due to the __printf__ symbol.
16134         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
16135         and 2.6.x.
16136         (__format__, __printf__): Remove definitions.
16137         * lib/argp-fmtstream.h: Likewise.
16138         * lib/argp.h: Likewise.
16139         * lib/error.h: Likewise.
16140         * lib/vasnprintf.h: Likewise.
16141         * lib/xprintf.h: Likewise.
16142         * lib/xvasprintf.h: Likewise.
16143         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16144
16145 2010-01-18  Bruno Haible  <bruno@clisp.org>
16146
16147         Tests for module 'tanl'.
16148         * modules/tanl-tests: New file.
16149         * tests/test-tanl.c: New file.
16150
16151         Tests for module 'sqrtl'.
16152         * modules/sqrtl-tests: New file.
16153         * tests/test-sqrtl.c: New file.
16154
16155         Tests for module 'sinl'.
16156         * modules/sinl-tests: New file.
16157         * tests/test-sinl.c: New file.
16158
16159         Tests for module 'logl'.
16160         * modules/logl-tests: New file.
16161         * tests/test-logl.c: New file.
16162
16163         Tests for module 'expl'.
16164         * modules/expl-tests: New file.
16165         * tests/test-expl.c: New file.
16166
16167         Tests for module 'cosl'.
16168         * modules/cosl-tests: New file.
16169         * tests/test-cosl.c: New file.
16170
16171         Tests for module 'atanl'.
16172         * modules/atanl-tests: New file.
16173         * tests/test-atanl.c: New file.
16174
16175         Tests for module 'asinl'.
16176         * modules/asinl-tests: New file.
16177         * tests/test-asinl.c: New file.
16178
16179         Tests for module 'acosl'.
16180         * modules/acosl-tests: New file.
16181         * tests/test-acosl.c: New file.
16182
16183         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
16184         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
16185         tanl): Use the standard gnulib idiom.
16186         * lib/cosl.c: Don't include trigl.c and sincosl.c.
16187         * lib/sinl.c: Likewise.
16188         * lib/tanl.c: Don't include trigl.c.
16189         (kernel_tanl): Make static.
16190         * lib/sincosl.c: Include trigl.h first.
16191         * lib/trigl.c: Likewise.
16192         * m4/acosl.m4: New file.
16193         * m4/asinl.m4: New file.
16194         * m4/atanl.m4: New file.
16195         * m4/cosl.m4: New file.
16196         * m4/expl.m4: New file.
16197         * m4/logl.m4: New file.
16198         * m4/sinl.m4: New file.
16199         * m4/sqrtl.m4: New file.
16200         * m4/tanl.m4: New file.
16201         * m4/mathl.m4: Remove file.
16202         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
16203         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
16204         Don't initialize GNULIB_MATHL.
16205         * modules/acosl: New file.
16206         * modules/asinl: New file.
16207         * modules/atanl: New file.
16208         * modules/cosl: New file.
16209         * modules/expl: New file.
16210         * modules/logl: New file.
16211         * modules/sinl: New file.
16212         * modules/sqrtl: New file.
16213         * modules/tanl: New file.
16214         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
16215         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
16216         substitute GNULIB_MATHL.
16217         * modules/mathl: Rewritten.
16218         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
16219         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
16220         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
16221         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
16222         * doc/posix-functions/expl.texi: Mention the 'expl' module.
16223         * doc/posix-functions/logl.texi: Mention the 'logl' module.
16224         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
16225         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
16226         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
16227
16228 2010-01-18  Bruno Haible  <bruno@clisp.org>
16229
16230         sqrt: Make gl_FUNC_SQRT requirable.
16231         * m4/sqrt.m4: New file.
16232         * modules/sqrt (Files): Add it.
16233         (configure.ac): Invoke gl_FUNC_SQRT.
16234
16235 2010-01-18  Bruno Haible  <bruno@clisp.org>
16236
16237         New modules for common <math.h> functions.
16238         * m4/mathfunc.m4: New file.
16239         * modules/acos: New file.
16240         * modules/asin: New file.
16241         * modules/atan: New file.
16242         * modules/atan2: New file.
16243         * modules/cbrt: New file.
16244         * modules/copysign: New file.
16245         * modules/cos: New file.
16246         * modules/cosh: New file.
16247         * modules/erf: New file.
16248         * modules/erfc: New file.
16249         * modules/exp: New file.
16250         * modules/fabs: New file.
16251         * modules/fmod: New file.
16252         * modules/hypot: New file.
16253         * modules/j0: New file.
16254         * modules/j1: New file.
16255         * modules/jn: New file.
16256         * modules/ldexp: New file.
16257         * modules/lgamma: New file.
16258         * modules/log: New file.
16259         * modules/log10: New file.
16260         * modules/log1p: New file.
16261         * modules/logb: New file.
16262         * modules/modf: New file.
16263         * modules/nextafter: New file.
16264         * modules/pow: New file.
16265         * modules/remainder: New file.
16266         * modules/rint: New file.
16267         * modules/sin: New file.
16268         * modules/sinh: New file.
16269         * modules/sqrt: New file.
16270         * modules/tan: New file.
16271         * modules/tanh: New file.
16272         * modules/y0: New file.
16273         * modules/y1: New file.
16274         * modules/yn: New file.
16275         * doc/posix-functions/acos.texi: Mention the 'acos' module.
16276         * doc/posix-functions/asin.texi: Mention the 'asin' module.
16277         * doc/posix-functions/atan.texi: Mention the 'atan' module.
16278         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
16279         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
16280         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
16281         * doc/posix-functions/cos.texi: Mention the 'cos' module.
16282         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
16283         * doc/posix-functions/erf.texi: Mention the 'erf' module.
16284         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
16285         * doc/posix-functions/exp.texi: Mention the 'exp' module.
16286         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
16287         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
16288         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
16289         * doc/posix-functions/j0.texi: Mention the 'j0' module.
16290         * doc/posix-functions/j1.texi: Mention the 'j1' module.
16291         * doc/posix-functions/jn.texi: Mention the 'jn' module.
16292         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
16293         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
16294         * doc/posix-functions/log.texi: Mention the 'log' module.
16295         * doc/posix-functions/log10.texi: Mention the 'log10' module.
16296         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
16297         * doc/posix-functions/logb.texi: Mention the 'logb' module.
16298         * doc/posix-functions/modf.texi: Mention the 'modf' module.
16299         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
16300         * doc/posix-functions/pow.texi: Mention the 'pow' module.
16301         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
16302         * doc/posix-functions/rint.texi: Mention the 'rint' module.
16303         * doc/posix-functions/sin.texi: Mention the 'sin' module.
16304         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
16305         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
16306         * doc/posix-functions/tan.texi: Mention the 'tan' module.
16307         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
16308         * doc/posix-functions/y0.texi: Mention the 'y0' module.
16309         * doc/posix-functions/y1.texi: Mention the 'y1' module.
16310         * doc/posix-functions/yn.texi: Mention the 'yn' module.
16311
16312 2010-01-18  Jim Meyering  <meyering@redhat.com>
16313
16314         ignore-value: relax license to LGPLv2+
16315         * modules/ignore-value (License): Relax to LGPLv2+.
16316
16317         getdate: don't leak when TZ contains two or more '"'s
16318         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
16319         double quote in TZ after the first one.
16320
16321         readtokens: do not leak internal token_lengths buffer
16322         * lib/readtokens.c (readtokens): Free the local, lengths,
16323         when the supplied "token_lengths" parameter is NULL.
16324
16325 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16326
16327         Fix a couple of missing LIBTHREAD link failures on AIX.
16328         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
16329         $(LIBTHREAD).
16330         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
16331
16332         Link test-poll against INET_PTON_LIB.
16333         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
16334         for inet_pton on Solaris 10.
16335
16336 2010-01-17  Bruno Haible  <bruno@clisp.org>
16337
16338         unistdio/*-sprintf: Fix typo in module description.
16339         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
16340         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
16341         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
16342         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
16343         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
16344         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
16345         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
16346         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16347
16348 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16349
16350         gnulib-tool: fix filelist for AIX, HP-UX ksh.
16351         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
16352         variables in shell case patterns, for AIX and HP-UX ksh.
16353
16354         Split large sed scripts, for HP-UX sed.
16355         * modules/stdio: Split sed scripts around 50 sed commands,
16356         to avoid HP-UX limit of 99 commands, in the near future.
16357         * modules/string: Likewise.
16358         * modules/unistd: Likewise.
16359
16360         gnulib-tool: avoid writing in the current directory.
16361         * gnulib-tool (func_emit_lib_Makefile_am)
16362         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
16363         not in the current directory, so concurrent gnulib-tool
16364         instances do not interfere.
16365
16366 2010-01-16  Jim Meyering  <meyering@redhat.com>
16367
16368         doc: update users.txt
16369         * users.txt: Add grep.
16370         (diffutils, gzip): Update URLs.
16371
16372 2010-01-12  Bruno Haible  <bruno@clisp.org>
16373
16374         posix_spawn: Avoid test failure on Cygwin.
16375         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
16376         characters.
16377         Reported by Simon Josefsson.
16378
16379 2010-01-12  Bruno Haible  <bruno@clisp.org>
16380
16381         * tests/test-cond.c (main): When skipping the test, show the reason.
16382
16383 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16384
16385         * lib/striconv.c (str_cd_iconv): Avoid if before free.
16386
16387 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16388
16389         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
16390         VC_LIST_ALWAYS_EXCLUDE_REGEX.
16391
16392 2010-01-12  Eric Blake  <ebb9@byu.net>
16393
16394         build: guarantee AS_VAR_IF
16395         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
16396         (gl_AS_VAR_IF): Move...
16397         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
16398         Reported by Simon Josefsson.
16399
16400 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16401
16402         * lib/stdio.in.h: Fix typo.
16403
16404 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16405
16406         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
16407         libgpg-error.
16408
16409 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16410
16411         * tests/test-xalloc-die.sh: Use $EXEEXT.
16412
16413 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16414             Bruno Haible  <bruno@clisp.org>
16415
16416         getlogin, getlogin_r: Avoid test failure.
16417         * tests/test-getlogin.c: Include <stdio.h>.
16418         (main): Skip the test when the function fails because stdin is not a
16419         tty.
16420         * tests/test-getlogin_r.c: Include <stdio.h>.
16421         (main): Skip the test when the function fails because stdin is not a
16422         tty.
16423
16424 2010-01-11  Eric Blake  <ebb9@byu.net>
16425
16426         tests: avoid more large file warnings
16427         * tests/test-fflush.c: Avoid warning about ftell use.
16428         * tests/test-fseek.c: Avoid warning about fseek use.
16429
16430 2010-01-10  Bruno Haible  <bruno@clisp.org>
16431
16432         nproc: Work better on Linux when /proc and /sys are not mounted.
16433         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
16434         as lower bound when, on glibc/Linux systems,
16435         sysconf (_SC_NPROCESSORS_CONF) returns 1.
16436         Suggested by Pádraig Brady <P@draigbrady.com>.
16437         Reported by Dmitry V. Levin <ldv@altlinux.org>.
16438
16439         nproc: Refactor.
16440         * lib/nproc.c (num_processors_via_affinity_mask): New function,
16441         extracted from num_processors.
16442         (num_processors): Call it.
16443
16444 2010-01-11  Jim Meyering  <meyering@redhat.com>
16445
16446         utimecmp: avoid new warning from upcoming gcc-4.5.0
16447         * lib/utimecmp.c (BILLION): Define using #define rather than an
16448         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
16449
16450 2010-01-11  Eric Blake  <ebb9@byu.net>
16451
16452         math: add portability warnings for classification macros
16453         * modules/math (Depends-on): Add warn-on-use.
16454         (Makefile.am): Provide new substitutions.
16455         * m4/math_h.m4 (gl_MATH_H): Require inline.
16456         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
16457         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
16458         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
16459         implement warnings.
16460
16461         unistd: warn on use of environ without module
16462         * modules/unistd (Depends-on): Add warn-on-use.
16463         (Makefile.am): Provide new substitutions.
16464         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
16465         * lib/unistd.in.h (environ): Wrap with a warning helper function.
16466
16467         stdio: warn on suspicious uses
16468         * modules/stdio (Depends-on): Add warn-on-use.
16469         (Makefile.am): Provide new substitutions.
16470         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
16471         fseeko.
16472         * lib/stdio.in.h (gets): Always warn on use.
16473         (fseek, ftell): Adjust when warnings are issued, and honor
16474         _GL_NO_LARGE_FILES as a way to silence the warning.
16475         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
16476         any warning about large file offsets.
16477         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
16478         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
16479         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
16480         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
16481         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
16482         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
16483         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
16484         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
16485
16486         warn-on-use: new module
16487         * modules/warn-on-use: New file.
16488         * build-aux/warn-on-use.h: Likewise.
16489         * m4/warn-on-use.m4: Likewise.
16490         * MODULES.html.sh (Support for building): Mention it.
16491
16492 2010-01-10  Bruno Haible  <bruno@clisp.org>
16493
16494         Tests for module 'unistr/u32-strdup'.
16495         * modules/unistr/u32-strdup-tests: New file.
16496         * tests/unistr/test-u32-strdup.c: New file.
16497
16498         Tests for module 'unistr/u16-strdup'.
16499         * modules/unistr/u16-strdup-tests: New file.
16500         * tests/unistr/test-u16-strdup.c: New file.
16501
16502         Tests for module 'unistr/u8-strdup'.
16503         * modules/unistr/u8-strdup-tests: New file.
16504         * tests/unistr/test-u8-strdup.c: New file.
16505         * tests/unistr/test-strdup.h: New file.
16506
16507         Tests for module 'unistr/u32-strncmp'.
16508         * modules/unistr/u32-strncmp-tests: New file.
16509         * tests/unistr/test-u32-strncmp.c: New file.
16510
16511         Tests for module 'unistr/u16-strncmp'.
16512         * modules/unistr/u16-strncmp-tests: New file.
16513         * tests/unistr/test-u16-strncmp.c: New file.
16514
16515         Tests for module 'unistr/u8-strncmp'.
16516         * modules/unistr/u8-strncmp-tests: New file.
16517         * tests/unistr/test-u8-strncmp.c: New file.
16518         * tests/unistr/test-strncmp.h: New file.
16519
16520         Tests for module 'unistr/u32-strcoll'.
16521         * modules/unistr/u32-strcoll-tests: New file.
16522         * tests/unistr/test-u32-strcoll.c: New file.
16523
16524         Tests for module 'unistr/u16-strcoll'.
16525         * modules/unistr/u16-strcoll-tests: New file.
16526         * tests/unistr/test-u16-strcoll.c: New file.
16527
16528         Tests for module 'unistr/u8-strcoll'.
16529         * modules/unistr/u8-strcoll-tests: New file.
16530         * tests/unistr/test-u8-strcoll.c: New file.
16531
16532         Tests for module 'unistr/u32-strcmp'.
16533         * modules/unistr/u32-strcmp-tests: New file.
16534         * tests/unistr/test-u32-strcmp.c: New file.
16535         * tests/unistr/test-u32-strcmp.h: New file.
16536
16537         Tests for module 'unistr/u16-strcmp'.
16538         * modules/unistr/u16-strcmp-tests: New file.
16539         * tests/unistr/test-u16-strcmp.c: New file.
16540         * tests/unistr/test-u16-strcmp.h: New file.
16541
16542         Tests for module 'unistr/u8-strcmp'.
16543         * modules/unistr/u8-strcmp-tests: New file.
16544         * tests/unistr/test-u8-strcmp.c: New file.
16545         * tests/unistr/test-u8-strcmp.h: New file.
16546         * tests/unistr/test-strcmp.h: New file.
16547
16548         Tests for module 'unistr/u32-strncat'.
16549         * modules/unistr/u32-strncat-tests: New file.
16550         * tests/unistr/test-u32-strncat.c: New file.
16551
16552         Tests for module 'unistr/u16-strncat'.
16553         * modules/unistr/u16-strncat-tests: New file.
16554         * tests/unistr/test-u16-strncat.c: New file.
16555
16556         Tests for module 'unistr/u8-strncat'.
16557         * modules/unistr/u8-strncat-tests: New file.
16558         * tests/unistr/test-u8-strncat.c: New file.
16559         * tests/unistr/test-strncat.h: New file.
16560
16561         Tests for module 'unistr/u32-strcat'.
16562         * modules/unistr/u32-strcat-tests: New file.
16563         * tests/unistr/test-u32-strcat.c: New file.
16564
16565         Tests for module 'unistr/u16-strcat'.
16566         * modules/unistr/u16-strcat-tests: New file.
16567         * tests/unistr/test-u16-strcat.c: New file.
16568
16569         Tests for module 'unistr/u8-strcat'.
16570         * modules/unistr/u8-strcat-tests: New file.
16571         * tests/unistr/test-u8-strcat.c: New file.
16572         * tests/unistr/test-strcat.h: New file.
16573
16574         Tests for module 'unistr/u32-stpncpy'.
16575         * modules/unistr/u32-stpncpy-tests: New file.
16576         * tests/unistr/test-u32-stpncpy.c: New file.
16577
16578         Tests for module 'unistr/u16-stpncpy'.
16579         * modules/unistr/u16-stpncpy-tests: New file.
16580         * tests/unistr/test-u16-stpncpy.c: New file.
16581
16582         Tests for module 'unistr/u8-stpncpy'.
16583         * modules/unistr/u8-stpncpy-tests: New file.
16584         * tests/unistr/test-u8-stpncpy.c: New file.
16585         * tests/unistr/test-stpncpy.h: New file.
16586
16587         Tests for module 'unistr/u32-strncpy'.
16588         * modules/unistr/u32-strncpy-tests: New file.
16589         * tests/unistr/test-u32-strncpy.c: New file.
16590
16591         Tests for module 'unistr/u16-strncpy'.
16592         * modules/unistr/u16-strncpy-tests: New file.
16593         * tests/unistr/test-u16-strncpy.c: New file.
16594
16595         Tests for module 'unistr/u8-strncpy'.
16596         * modules/unistr/u8-strncpy-tests: New file.
16597         * tests/unistr/test-u8-strncpy.c: New file.
16598         * tests/unistr/test-strncpy.h: New file.
16599
16600         Tests for module 'unistr/u32-stpcpy'.
16601         * modules/unistr/u32-stpcpy-tests: New file.
16602         * tests/unistr/test-u32-stpcpy.c: New file.
16603
16604         Tests for module 'unistr/u16-stpcpy'.
16605         * modules/unistr/u16-stpcpy-tests: New file.
16606         * tests/unistr/test-u16-stpcpy.c: New file.
16607
16608         Tests for module 'unistr/u8-stpcpy'.
16609         * modules/unistr/u8-stpcpy-tests: New file.
16610         * tests/unistr/test-u8-stpcpy.c: New file.
16611         * tests/unistr/test-stpcpy.h: New file.
16612
16613         Tests for module 'unistr/u32-strcpy'.
16614         * modules/unistr/u32-strcpy-tests: New file.
16615         * tests/unistr/test-u32-strcpy.c: New file.
16616
16617         Tests for module 'unistr/u16-strcpy'.
16618         * modules/unistr/u16-strcpy-tests: New file.
16619         * tests/unistr/test-u16-strcpy.c: New file.
16620
16621         Tests for module 'unistr/u8-strcpy'.
16622         * modules/unistr/u8-strcpy-tests: New file.
16623         * tests/unistr/test-u8-strcpy.c: New file.
16624         * tests/unistr/test-strcpy.h: New file.
16625
16626         Tests for module 'unistr/u32-strnlen'.
16627         * modules/unistr/u32-strnlen-tests: New file.
16628         * tests/unistr/test-u32-strnlen.c: New file.
16629
16630         Tests for module 'unistr/u16-strnlen'.
16631         * modules/unistr/u16-strnlen-tests: New file.
16632         * tests/unistr/test-u16-strnlen.c: New file.
16633
16634         Tests for module 'unistr/u8-strnlen'.
16635         * modules/unistr/u8-strnlen-tests: New file.
16636         * tests/unistr/test-u8-strnlen.c: New file.
16637         * tests/unistr/test-strnlen.h: New file.
16638
16639         Tests for module 'unistr/u32-strlen'.
16640         * modules/unistr/u32-strlen-tests: New file.
16641         * tests/unistr/test-u32-strlen.c: New file.
16642
16643         Tests for module 'unistr/u16-strlen'.
16644         * modules/unistr/u16-strlen-tests: New file.
16645         * tests/unistr/test-u16-strlen.c: New file.
16646
16647         Tests for module 'unistr/u8-strlen'.
16648         * modules/unistr/u8-strlen-tests: New file.
16649         * tests/unistr/test-u8-strlen.c: New file.
16650
16651         Tests for module 'unistr/u32-prev'.
16652         * modules/unistr/u32-prev-tests: New file.
16653         * tests/unistr/test-u32-prev.c: New file.
16654
16655         Tests for module 'unistr/u16-prev'.
16656         * modules/unistr/u16-prev-tests: New file.
16657         * tests/unistr/test-u16-prev.c: New file.
16658
16659         Tests for module 'unistr/u8-prev'.
16660         * modules/unistr/u8-prev-tests: New file.
16661         * tests/unistr/test-u8-prev.c: New file.
16662
16663         Tests for module 'unistr/u32-next'.
16664         * modules/unistr/u32-next-tests: New file.
16665         * tests/unistr/test-u32-next.c: New file.
16666
16667         Tests for module 'unistr/u16-next'.
16668         * modules/unistr/u16-next-tests: New file.
16669         * tests/unistr/test-u16-next.c: New file.
16670
16671         Tests for module 'unistr/u8-next'.
16672         * modules/unistr/u8-next-tests: New file.
16673         * tests/unistr/test-u8-next.c: New file.
16674
16675         Tests for module 'unistr/u32-strmbtouc'.
16676         * modules/unistr/u32-strmbtouc-tests: New file.
16677         * tests/unistr/test-u32-strmbtouc.c: New file.
16678
16679         Tests for module 'unistr/u16-strmbtouc'.
16680         * modules/unistr/u16-strmbtouc-tests: New file.
16681         * tests/unistr/test-u16-strmbtouc.c: New file.
16682
16683         Tests for module 'unistr/u8-strmbtouc'.
16684         * modules/unistr/u8-strmbtouc-tests: New file.
16685         * tests/unistr/test-u8-strmbtouc.c: New file.
16686
16687         Tests for module 'unistr/u32-strmblen'.
16688         * modules/unistr/u32-strmblen-tests: New file.
16689         * tests/unistr/test-u32-strmblen.c: New file.
16690
16691         Tests for module 'unistr/u16-strmblen'.
16692         * modules/unistr/u16-strmblen-tests: New file.
16693         * tests/unistr/test-u16-strmblen.c: New file.
16694
16695         Tests for module 'unistr/u8-strmblen'.
16696         * modules/unistr/u8-strmblen-tests: New file.
16697         * tests/unistr/test-u8-strmblen.c: New file.
16698
16699         Tests for module 'unistr/u32-cpy-alloc'.
16700         * modules/unistr/u32-cpy-alloc-tests: New file.
16701         * tests/unistr/test-u32-cpy-alloc.c: New file.
16702
16703         Tests for module 'unistr/u16-cpy-alloc'.
16704         * modules/unistr/u16-cpy-alloc-tests: New file.
16705         * tests/unistr/test-u16-cpy-alloc.c: New file.
16706
16707         Tests for module 'unistr/u8-cpy-alloc'.
16708         * modules/unistr/u8-cpy-alloc-tests: New file.
16709         * tests/unistr/test-u8-cpy-alloc.c: New file.
16710         * tests/unistr/test-cpy-alloc.h: New file.
16711
16712         Tests for module 'unistr/u32-mbsnlen'.
16713         * modules/unistr/u32-mbsnlen-tests: New file.
16714         * tests/unistr/test-u32-mbsnlen.c: New file.
16715
16716         Tests for module 'unistr/u16-mbsnlen'.
16717         * modules/unistr/u16-mbsnlen-tests: New file.
16718         * tests/unistr/test-u16-mbsnlen.c: New file.
16719
16720         Tests for module 'unistr/u8-mbsnlen'.
16721         * modules/unistr/u8-mbsnlen-tests: New file.
16722         * tests/unistr/test-u8-mbsnlen.c: New file.
16723
16724         Tests for module 'unistr/u32-chr'.
16725         * modules/unistr/u32-chr-tests: New file.
16726         * tests/unistr/test-u32-chr.c: New file.
16727
16728         Tests for module 'unistr/u16-chr'.
16729         * modules/unistr/u16-chr-tests: New file.
16730         * tests/unistr/test-u16-chr.c: New file.
16731
16732         Tests for module 'unistr/u8-chr'.
16733         * modules/unistr/u8-chr-tests: New file.
16734         * tests/unistr/test-u8-chr.c: New file.
16735         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
16736
16737         Tests for module 'unistr/u32-cmp2'.
16738         * modules/unistr/u32-cmp2-tests: New file.
16739         * tests/unistr/test-u32-cmp2.c: New file.
16740
16741         Tests for module 'unistr/u16-cmp2'.
16742         * modules/unistr/u16-cmp2-tests: New file.
16743         * tests/unistr/test-u16-cmp2.c: New file.
16744
16745         Tests for module 'unistr/u8-cmp2'.
16746         * modules/unistr/u8-cmp2-tests: New file.
16747         * tests/unistr/test-u8-cmp2.c: New file.
16748         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
16749
16750         Tests for module 'unistr/u32-cmp'.
16751         * modules/unistr/u32-cmp-tests: New file.
16752         * tests/unistr/test-u32-cmp.c: New file.
16753
16754         Tests for module 'unistr/u16-cmp'.
16755         * modules/unistr/u16-cmp-tests: New file.
16756         * tests/unistr/test-u16-cmp.c: New file.
16757
16758         Tests for module 'unistr/u8-cmp'.
16759         * modules/unistr/u8-cmp-tests: New file.
16760         * tests/unistr/test-u8-cmp.c: New file.
16761         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
16762
16763         Tests for module 'unistr/u32-set'.
16764         * modules/unistr/u32-set-tests: New file.
16765         * tests/unistr/test-u32-set.c: New file.
16766
16767         Tests for module 'unistr/u16-set'.
16768         * modules/unistr/u16-set-tests: New file.
16769         * tests/unistr/test-u16-set.c: New file.
16770
16771         Tests for module 'unistr/u8-set'.
16772         * modules/unistr/u8-set-tests: New file.
16773         * tests/unistr/test-u8-set.c: New file.
16774         * tests/unistr/test-set.h: New file.
16775
16776         Tests for module 'unistr/u32-move'.
16777         * modules/unistr/u32-move-tests: New file.
16778         * tests/unistr/test-u32-move.c: New file.
16779
16780         Tests for module 'unistr/u16-move'.
16781         * modules/unistr/u16-move-tests: New file.
16782         * tests/unistr/test-u16-move.c: New file.
16783
16784         Tests for module 'unistr/u8-move'.
16785         * modules/unistr/u8-move-tests: New file.
16786         * tests/unistr/test-u8-move.c: New file.
16787         * tests/unistr/test-move.h: New file.
16788
16789         Tests for module 'unistr/u32-cpy'.
16790         * modules/unistr/u32-cpy-tests: New file.
16791         * tests/unistr/test-u32-cpy.c: New file.
16792
16793         Tests for module 'unistr/u16-cpy'.
16794         * modules/unistr/u16-cpy-tests: New file.
16795         * tests/unistr/test-u16-cpy.c: New file.
16796
16797         Tests for module 'unistr/u8-cpy'.
16798         * modules/unistr/u8-cpy-tests: New file.
16799         * tests/unistr/test-u8-cpy.c: New file.
16800         * tests/unistr/test-cpy.h: New file.
16801
16802 2010-01-09  Bruno Haible  <bruno@clisp.org>
16803
16804         Tests for module 'unistr/u32-uctomb'.
16805         * modules/unistr/u32-uctomb-tests: New file.
16806         * tests/unistr/test-u32-uctomb.c: New file.
16807
16808         Tests for module 'unistr/u16-uctomb'.
16809         * modules/unistr/u16-uctomb-tests: New file.
16810         * tests/unistr/test-u16-uctomb.c: New file.
16811
16812         Tests for module 'unistr/u8-uctomb'.
16813         * modules/unistr/u8-uctomb-tests: New file.
16814         * tests/unistr/test-u8-uctomb.c: New file.
16815
16816         Tests for module 'unistr/u32-mbtoucr'.
16817         * modules/unistr/u32-mbtoucr-tests: New file.
16818         * tests/unistr/test-u32-mbtoucr.c: New file.
16819
16820         Tests for module 'unistr/u16-mbtoucr'.
16821         * modules/unistr/u16-mbtoucr-tests: New file.
16822         * tests/unistr/test-u16-mbtoucr.c: New file.
16823
16824         Tests for module 'unistr/u8-mbtoucr'.
16825         * modules/unistr/u8-mbtoucr-tests: New file.
16826         * tests/unistr/test-u8-mbtoucr.c: New file.
16827
16828         Tests for module 'unistr/u32-mbtouc'.
16829         * modules/unistr/u32-mbtouc-tests: New file.
16830         * tests/unistr/test-u32-mbtouc.c: New file.
16831
16832         Tests for module 'unistr/u16-mbtouc'.
16833         * modules/unistr/u16-mbtouc-tests: New file.
16834         * tests/unistr/test-u16-mbtouc.c: New file.
16835
16836         Tests for module 'unistr/u8-mbtouc'.
16837         * modules/unistr/u8-mbtouc-tests: New file.
16838         * tests/unistr/test-u8-mbtouc.c: New file.
16839
16840         Tests for module 'unistr/u32-mbtouc-unsafe'.
16841         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
16842         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
16843         * tests/unistr/test-u32-mbtouc.h: New file.
16844
16845         Tests for module 'unistr/u16-mbtouc-unsafe'.
16846         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
16847         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
16848         * tests/unistr/test-u16-mbtouc.h: New file.
16849
16850         Tests for module 'unistr/u8-mbtouc-unsafe'.
16851         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
16852         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
16853         * tests/unistr/test-u8-mbtouc.h: New file.
16854
16855         Tests for module 'unistr/u32-mblen'.
16856         * modules/unistr/u32-mblen-tests: New file.
16857         * tests/unistr/test-u32-mblen.c: New file.
16858
16859         Tests for module 'unistr/u16-mblen'.
16860         * modules/unistr/u16-mblen-tests: New file.
16861         * tests/unistr/test-u16-mblen.c: New file.
16862
16863         Tests for module 'unistr/u8-mblen'.
16864         * modules/unistr/u8-mblen-tests: New file.
16865         * tests/unistr/test-u8-mblen.c: New file.
16866
16867         Tests for module 'unistr/u32-to-u16'.
16868         * modules/unistr/u32-to-u16-tests: New file.
16869         * tests/unistr/test-u32-to-u16.c: New file.
16870
16871         Tests for module 'unistr/u32-to-u8'.
16872         * modules/unistr/u32-to-u8-tests: New file.
16873         * tests/unistr/test-u32-to-u8.c: New file.
16874
16875         Tests for module 'unistr/u16-to-u32'.
16876         * modules/unistr/u16-to-u32-tests: New file.
16877         * tests/unistr/test-u16-to-u32.c: New file.
16878
16879         Tests for module 'unistr/u16-to-u8'.
16880         * modules/unistr/u16-to-u8-tests: New file.
16881         * tests/unistr/test-u16-to-u8.c: New file.
16882
16883         Tests for module 'unistr/u8-to-u32'.
16884         * modules/unistr/u8-to-u32-tests: New file.
16885         * tests/unistr/test-u8-to-u32.c: New file.
16886
16887         Tests for module 'unistr/u8-to-u16'.
16888         * modules/unistr/u8-to-u16-tests: New file.
16889         * tests/unistr/test-u8-to-u16.c: New file.
16890
16891         Tests for module 'unistr/u32-check'.
16892         * modules/unistr/u32-check-tests: New file.
16893         * tests/unistr/test-u32-check.c: New file.
16894
16895         Tests for module 'unistr/u16-check'.
16896         * modules/unistr/u16-check-tests: New file.
16897         * tests/unistr/test-u16-check.c: New file.
16898
16899         Tests for module 'unistr/u8-check'.
16900         * modules/unistr/u8-check-tests: New file.
16901         * tests/unistr/test-u8-check.c: New file.
16902
16903         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
16904         (category_equals): New function.
16905         (main): Add more tests.
16906         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
16907
16908         * tests/unictype/test-bidi_byname.c (main): Add more tests.
16909
16910 2010-01-10  Bruno Haible  <bruno@clisp.org>
16911
16912         unistr/u*-strcoll: Try harder to distinguish different strings.
16913         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
16914         compare s1 and s2 to see if they are different.
16915
16916 2010-01-10  Bruno Haible  <bruno@clisp.org>
16917
16918         unistr/u*-stpncpy: Fix the return value.
16919         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
16920         description of the return value consistent with stpncpy in glibc.
16921         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
16922         written non-NUL unit.
16923
16924 2010-01-10  Bruno Haible  <bruno@clisp.org>
16925
16926         unistr/u*-next: Add missing dependencies.
16927         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
16928         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
16929         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
16930
16931 2010-01-10  Bruno Haible  <bruno@clisp.org>
16932
16933         unistr/u8-mbsnlen: Fix return value for incomplete character.
16934         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
16935         u8_mblen.
16936         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
16937         Remove unistr/u8-mblen.
16938         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
16939         u16_mblen.
16940         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
16941         Remove unistr/u16-mblen.
16942
16943 2010-01-10  Bruno Haible  <bruno@clisp.org>
16944
16945         wchar: Fix compilation error when <wchar.h> is used from coreutils.
16946         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
16947         Reported by Brian Gough <bjg@gnu.org> and
16948         Chris Clayton <chris2553@googlemail.com> via
16949         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
16950
16951 2010-01-09  Bruno Haible  <bruno@clisp.org>
16952
16953         unistr/u16-to-u32: Reject invalid input.
16954         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
16955         u16_mbtouc.
16956         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
16957         Remove unistr/u16-mbtouc.
16958
16959         unistr/u16-to-u8: Reject invalid input.
16960         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
16961         u16_mbtouc.
16962         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
16963         Remove unistr/u16-mbtouc.
16964
16965         unistr/u8-to-u32: Reject invalid input.
16966         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
16967         u8_mbtouc.
16968         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
16969         Remove unistr/u8-mbtouc.
16970
16971         unistr/u8-to-u16: Reject invalid input.
16972         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
16973         u8_mbtouc.
16974         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
16975         Remove unistr/u8-mbtouc.
16976
16977 2010-01-09  Bruno Haible  <bruno@clisp.org>
16978
16979         Tests for module 'getlogin'.
16980         * modules/getlogin-tests: New file.
16981         * tests/test-getlogin.c: New file.
16982
16983         New module 'getlogin'.
16984         * lib/unistd.in.h (getlogin): New declaration.
16985         * lib/getlogin.c: New file.
16986         * m4/getlogin.m4: New file.
16987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
16988         HAVE_GETLOGIN.
16989         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
16990         HAVE_GETLOGIN.
16991         * modules/getlogin: New file.
16992         * doc/posix-functions/getlogin.texi: Mention the new module.
16993         Reported by John W. Eaton <jwe@gnu.org>.
16994
16995 2010-01-09  Bruno Haible  <bruno@clisp.org>
16996
16997         getlogin_r: Support for native Windows.
16998         * lib/getlogin_r.c: Include <windows.h>
16999         (getlogin_r): Implement for native Windows.
17000         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
17001         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
17002         via John W. Eaton <jwe@gnu.org>.
17003
17004 2010-01-09  Bruno Haible  <bruno@clisp.org>
17005
17006         getlogin_r: Small fixes.
17007         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
17008         succeeds.
17009         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
17010         before testing whether getlogin_r is declared. No need to set
17011         HAVE_DECL_GETLOGIN_R to 1.
17012         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
17013
17014 2010-01-09  Bruno Haible  <bruno@clisp.org>
17015
17016         * lib/unistd.in.h (getlogin_r): Add comment.
17017
17018 2010-01-09  Bruno Haible  <bruno@clisp.org>
17019
17020         Tests for module 'getlogin_r'.
17021         * modules/getlogin_r-tests: New file.
17022         * tests/test-getlogin_r.c: New file.
17023
17024 2010-01-09  Jim Meyering  <meyering@redhat.com>
17025
17026         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
17027         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
17028         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
17029
17030 2010-01-08  Simon Josefsson  <simon@josefsson.org>
17031
17032         * lib/dup2.c (rpl_dup2): Improve comment.
17033
17034 2010-01-08  Eric Blake  <ebb9@byu.net>
17035
17036         maint.mk: allow packages to add makefile @@ exceptions
17037         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
17038         (sc_makefile_check): Rename...
17039         (sc_makefile_at_at_check): ...to this, and use hook.
17040
17041         dup2: work around mingw bug
17042         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
17043         Reported by Simon Josefsson.
17044
17045 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
17046
17047         glob: Fix C++ compilation.
17048         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
17049         C++.
17050
17051 2010-01-07  Bruno Haible  <bruno@clisp.org>
17052
17053         Fix indentation of wctype.in.h, broken since 2007-01-06.
17054         * lib/wctype.in.h: Fix indentation of preprocessor directives.
17055
17056 2010-01-07  Bruno Haible  <bruno@clisp.org>
17057
17058         mbslen: Avoid collision with system function.
17059         * lib/string.in.h [MirBSD]: Include <wchar.h>.
17060         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
17061         * m4/mbslen.m4: New file.
17062         * modules/mbslen (Files): Add it.
17063         (configure.ac): Invoke gl_MBSLEN.
17064         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
17065         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
17066         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
17067         via Ian Beckwith <ianb@erislabs.net>.
17068
17069 2010-01-07  Bruno Haible  <bruno@clisp.org>
17070
17071         dirent: Document the last fix.
17072         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
17073
17074 2010-01-07  Bruno Haible  <bruno@clisp.org>
17075
17076         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
17077         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
17078         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
17079         va_list are defined.
17080         * doc/posix-headers/stdio.texi: Document the bug of missing types.
17081         Reported by Eric Blake.
17082
17083 2010-01-07  Bruno Haible  <bruno@clisp.org>
17084
17085         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
17086         * modules/xlist (Depends-on): Add 'list',
17087         * modules/xoset (Depends-on): Add 'oset'.
17088         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17089
17090 2010-01-07  Bruno Haible  <bruno@clisp.org>
17091
17092         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
17093         * doc/posix-functions/strncasecmp.texi: Likewise.
17094
17095 2010-01-07  Bruno Haible  <bruno@clisp.org>
17096
17097         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
17098
17099 2010-01-07  John W. Eaton  <jwe@octave.org>
17100
17101         wctype: allow C++ use
17102         * lib/wctype.in.h: Add extern "C" block for C++.
17103
17104 2010-01-06  Eric Blake  <ebb9@byu.net>
17105
17106         maint.mk: detect incorrect GFDL usage
17107         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
17108
17109 2010-01-06  Jim Meyering  <meyering@redhat.com>
17110         and Eric Blake  <ebb9@byu.net>
17111
17112         maint.mk: ignore multi-line copyright in NEWS
17113         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
17114
17115 2010-01-06  Eric Blake  <ebb9@byu.net>
17116
17117         select: add missing dependency
17118         * modules/select-tests (Depends-on): Move sockets dependency...
17119         * modules/select (Depends-on): ...here.
17120         Reported by Ian Beckwith.
17121
17122         doc: regenerate INSTALL
17123         * doc/INSTALL: Reflect recent autoconf update.
17124         * doc/INSTALL.ISO: Likewise.
17125         * doc/INSTALL.UTF-8: Likewise.
17126
17127         pread: fix compilation on glibc
17128         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
17129         Reported by Ralf Wildenhues.
17130
17131         dirent: fix test failure
17132         * lib/dirent.in.h (includes): Guarantee ino_t.
17133         Reported by Ralf Wildenhues.
17134
17135 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
17136
17137         linkat, renameat: avoid bad free
17138         * lib/at-func2.c (at_func2): Fix typo.
17139         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
17140
17141 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17142
17143         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
17144         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
17145         to avoid failure of symlink test later.
17146
17147 2010-01-06  Eric Blake  <ebb9@byu.net>
17148
17149         stdio, unistd: guarantee ssize_t
17150         * lib/unistd.in.h (includes): Ensure that types required by POSIX
17151         2008 are exposed when needed.
17152         * lib/stdio.in.h (includes): Likewise.
17153         Reported by Ralf Wildenhues.
17154
17155 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
17156
17157         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
17158         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
17159         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
17160
17161 2010-01-06  Jim Meyering  <meyering@redhat.com>
17162
17163         readtokens: this module *does* require xalloc.h
17164         It uses only functions that were omitted by the old syntax-check rule.
17165         * lib/readtokens.c: Include "xalloc.h" once again.
17166         * modules/readtokens (Depends-on): Add xalloc.
17167         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
17168
17169 2010-01-05  Eric Blake  <ebb9@byu.net>
17170
17171         maint: support 'make announcement' from a VPATH build
17172         * top/maint.mk (announcement): Look for correct NEWS file.
17173
17174 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
17175
17176         utimens (fdutimens): ignore a negative FD, per contract
17177         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
17178         when we have a valid file descriptor.  Otherwise, using a brand
17179         new glibc (with just-patched futimens that now fails with EBADF)
17180         would cause this function to fail with ENOSYS.
17181         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
17182         See also http://bugzilla.redhat.com/552320.
17183
17184 2010-01-05  Eric Blake  <ebb9@byu.net>
17185
17186         strcase: document what it provides
17187         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
17188         gnulib module.
17189         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
17190         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
17191
17192 2010-01-05  Jim Meyering  <meyering@redhat.com>
17193
17194         maint: remove useless inclusions of "xalloc.h"
17195         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
17196         * lib/readtokens.c: Likewise.
17197         * lib/same.c: Likewise.
17198         * modules/getloadavg (Depends-on): Remove xalloc.
17199         * modules/readtokens: Likewise.
17200         * modules/same: Likewise.
17201
17202         maint.mk: include 4 more function names in alloca.h-checking regexp
17203         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
17204         regexp.  Before, we would give a false-positive (saying alloca.h
17205         is included unnecessarily) when the only uses involved omitted symbols.
17206
17207         xalloc.h: use consistent formatting
17208         * lib/xalloc.h: Move declarations to start in the first column.
17209
17210 2010-01-05  Eric Blake  <ebb9@byu.net>
17211
17212         mkdir: avoid xalloc
17213         * lib/mkdir.c (includes): Drop unused header.
17214         Reported by John W. Eaton.
17215
17216 2010-01-04  Jim Meyering  <meyering@redhat.com>
17217
17218         nl_langinfo: avoid configure-time syntax error
17219         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
17220         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
17221         the empty string.  Don't let that provoke a shell syntax error.
17222
17223         regcomp, regexec, fnmatch: avoid array bounds read error
17224         * lib/regcomp.c (build_equiv_class): From glibc:
17225         Use only the low 24 bits of a findidx return value as an index
17226         into the weights array.  Patch by Ulrich Drepper:
17227         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
17228         * lib/regexec.c (check_node_accept_bytes): Likewise.
17229         * lib/fnmatch_loop.c (FCT): Likewise.
17230
17231         regcomp: skip collseq lookup when there are no rules
17232         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
17233         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
17234
17235         regcomp: recognize ill-formed { } expressions
17236         * lib/regcomp.c (parse_dup_op): From glibc:
17237         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
17238
17239         regcomp: fix typo in comment
17240         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
17241         s/satisfy/satisfies/.
17242
17243         regcomp: sync from glibc: remove dead store
17244         * lib/regcomp.c (duplicate_node_closure): Remove useless
17245         search_duplicated_node call and dead store.
17246
17247         regcomp: sync from glibc; always use nl_langinfo
17248         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
17249         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
17250         * modules/regex (Depends-on): Add nl_langinfo.
17251
17252 2010-01-04  Eric Blake  <ebb9@byu.net>
17253
17254         fdopendir: fix configure test
17255         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
17256
17257 2010-01-01  Bruno Haible  <bruno@clisp.org>
17258
17259         wchar: Remove unused configure check.
17260         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
17261
17262 2010-01-01  Eric Blake  <ebb9@byu.net>
17263
17264         headers: make check of system header explicit
17265         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
17266         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
17267         ourselves.
17268         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17269         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17270         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
17271         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
17272         internals.
17273         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
17274         missing.
17275         Suggested by Bruno Haible.
17276
17277 2010-01-01  Jim Meyering  <meyering@redhat.com>
17278
17279         ChangeLog: tweak to eliminate unnecessary copyright line
17280         * ChangeLog: Remove a copyright line that was mistakenly updated
17281         by today's update-copyright run.  Reported by Eric Blake.
17282
17283         test-update-copyright: don't let envvar setting cause test failure
17284         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
17285
17286 2010-01-01  Bruno Haible  <bruno@clisp.org>
17287
17288         localename: Avoid gcc warning.
17289         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
17290         function if it is not used.
17291
17292 2010-01-01  Jim Meyering  <meyering@redhat.com>
17293
17294         update nearly all FSF copyright year lists to include 2010
17295         Use the same procedure as for 2009, outlined in
17296         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
17297
17298         version-etc: set COPYRIGHT_YEAR to 2010
17299         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
17300
17301 2009-12-31  Eric Blake  <ebb9@byu.net>
17302
17303         doc: correct availability of cygwin 1.5.x getopt
17304         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
17305         variables.
17306         * doc/posix-functions/opterr.texi (opterr): Likewise.
17307         * doc/posix-functions/optind.texi (optind): Likewise.
17308         * doc/posix-functions/optopt.texi (optopt): Likewise.
17309         * doc/posix-functions/tzname.texi (tzname): Likewise.
17310
17311         openat: update maintainer
17312         * modules/openat (Maintainer): Add myself.
17313
17314         utimens: avoid shadowing warning
17315         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
17316         buffers into one, to avoid shadowing, as well as avoiding a
17317         redundant stat.
17318         Reported by Jim Meyering.
17319
17320         test-dup2: avoid compiler warning
17321         * tests/test-dup2.c (is_inheritable): Only define if used.
17322
17323 2010-01-01  Bruno Haible  <bruno@clisp.org>
17324
17325         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
17326         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
17327         defined, use wctomb instead of wcrtomb.
17328
17329 2010-01-01  Bruno Haible  <bruno@clisp.org>
17330
17331         iconv: Reject native Solaris iconv.
17332         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
17333         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
17334
17335 2009-12-31  Bruno Haible  <bruno@clisp.org>
17336
17337         * tests/test-signal.c (main): Remove test of 'SIG'.
17338
17339 2009-12-31  Bruno Haible  <bruno@clisp.org>
17340
17341         spawn: Fix incomplete fix.
17342         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
17343         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
17344         warnings for GNULIB_POSIXCHECK again.
17345         Reported by Eric Blake.
17346
17347 2009-12-31  Bruno Haible  <bruno@clisp.org>
17348
17349         Avoid namespace pollution on glibc systems.
17350         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
17351         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
17352         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
17353         glibc systems.
17354
17355 2009-12-31  Bruno Haible  <bruno@clisp.org>
17356
17357         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
17358         (gl_REPLACE_WCHAR_H): Turn into a no-op.
17359         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
17360         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
17361         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
17362         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
17363         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
17364
17365 2009-12-31  Bruno Haible  <bruno@clisp.org>
17366
17367         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
17368         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
17369         afterwards.
17370
17371 2009-12-31  Bruno Haible  <bruno@clisp.org>
17372
17373         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
17374         SYS_UTSNAME_H.
17375
17376 2009-12-31  Bruno Haible  <bruno@clisp.org>
17377
17378         spawn: Fix misapplied patch.
17379         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
17380         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
17381         warnings for GNULIB_POSIXCHECK.
17382
17383 2009-12-31  Bruno Haible  <bruno@clisp.org>
17384
17385         times: Update after sys_times changed.
17386         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
17387         * modules/times (Files): Add it.
17388         (configure.ac): Invoke gl_FUNC_TIMES.
17389
17390 2009-12-31  Bruno Haible  <bruno@clisp.org>
17391
17392         Use AC_C_INLINE where necessary.
17393         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
17394         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
17395         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
17396         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
17397         * m4/mbfile.m4 (gl_MBFILE): Likewise.
17398         * m4/mbiter.m4 (gl_MBITER): Likewise.
17399         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
17400         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17401         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
17402         * modules/u64 (configure.ac): Likewise.
17403
17404 2009-12-31  Bruno Haible  <bruno@clisp.org>
17405
17406         Use AC_C_INLINE instead of module 'inline' where possible.
17407         * modules/inline (Description): Clarify purpose.
17408         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
17409         * modules/count-one-bits (Depends-on): Remove inline.
17410         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
17411         * modules/openat (Depends-on): Remove inline.
17412         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
17413         instead of depending on module 'inline'.
17414         * modules/filevercmp (Depends-on, configure.ac): Likewise.
17415         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
17416         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
17417         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
17418         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
17419         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
17420         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
17421         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
17422         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
17423         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
17424         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
17425         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
17426         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
17427         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
17428         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
17429         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
17430         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
17431         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
17432         Likewise.
17433         * modules/unictype/property-ascii-hex-digit (Depends-on,
17434         configure.ac): Likewise.
17435         * modules/unictype/property-bidi-arabic-digit (Depends-on,
17436         configure.ac): Likewise.
17437         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
17438         configure.ac): Likewise.
17439         * modules/unictype/property-bidi-block-separator (Depends-on,
17440         configure.ac): Likewise.
17441         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
17442         configure.ac): Likewise.
17443         * modules/unictype/property-bidi-common-separator (Depends-on,
17444         configure.ac): Likewise.
17445         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
17446         Likewise.
17447         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
17448         configure.ac): Likewise.
17449         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
17450         configure.ac): Likewise.
17451         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
17452         configure.ac): Likewise.
17453         * modules/unictype/property-bidi-european-digit (Depends-on,
17454         configure.ac): Likewise.
17455         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
17456         configure.ac): Likewise.
17457         * modules/unictype/property-bidi-left-to-right (Depends-on,
17458         configure.ac): Likewise.
17459         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
17460         configure.ac): Likewise.
17461         * modules/unictype/property-bidi-other-neutral (Depends-on,
17462         configure.ac): Likewise.
17463         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
17464         Likewise.
17465         * modules/unictype/property-bidi-segment-separator (Depends-on,
17466         configure.ac): Likewise.
17467         * modules/unictype/property-bidi-whitespace (Depends-on,
17468         configure.ac): Likewise.
17469         * modules/unictype/property-combining (Depends-on, configure.ac):
17470         Likewise.
17471         * modules/unictype/property-composite (Depends-on, configure.ac):
17472         Likewise.
17473         * modules/unictype/property-currency-symbol (Depends-on,
17474         configure.ac): Likewise.
17475         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
17476         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
17477         Likewise.
17478         * modules/unictype/property-default-ignorable-code-point (Depends-on,
17479         configure.ac): Likewise.
17480         * modules/unictype/property-deprecated (Depends-on, configure.ac):
17481         Likewise.
17482         * modules/unictype/property-diacritic (Depends-on, configure.ac):
17483         Likewise.
17484         * modules/unictype/property-extender (Depends-on, configure.ac):
17485         Likewise.
17486         * modules/unictype/property-format-control (Depends-on, configure.ac):
17487         Likewise.
17488         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
17489         Likewise.
17490         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
17491         Likewise.
17492         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
17493         Likewise.
17494         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
17495         Likewise.
17496         * modules/unictype/property-hyphen (Depends-on, configure.ac):
17497         Likewise.
17498         * modules/unictype/property-id-continue (Depends-on, configure.ac):
17499         Likewise.
17500         * modules/unictype/property-id-start (Depends-on, configure.ac):
17501         Likewise.
17502         * modules/unictype/property-ideographic (Depends-on, configure.ac):
17503         Likewise.
17504         * modules/unictype/property-ids-binary-operator (Depends-on,
17505         configure.ac): Likewise.
17506         * modules/unictype/property-ids-trinary-operator (Depends-on,
17507         configure.ac): Likewise.
17508         * modules/unictype/property-ignorable-control (Depends-on,
17509         configure.ac): Likewise.
17510         * modules/unictype/property-iso-control (Depends-on, configure.ac):
17511         Likewise.
17512         * modules/unictype/property-join-control (Depends-on, configure.ac):
17513         Likewise.
17514         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
17515         Likewise.
17516         * modules/unictype/property-line-separator (Depends-on, configure.ac):
17517         Likewise.
17518         * modules/unictype/property-logical-order-exception (Depends-on,
17519         configure.ac): Likewise.
17520         * modules/unictype/property-lowercase (Depends-on, configure.ac):
17521         Likewise.
17522         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
17523         * modules/unictype/property-non-break (Depends-on, configure.ac):
17524         Likewise.
17525         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
17526         Likewise.
17527         * modules/unictype/property-numeric (Depends-on, configure.ac):
17528         Likewise.
17529         * modules/unictype/property-other-alphabetic (Depends-on,
17530         configure.ac): Likewise.
17531         * modules/unictype/property-other-default-ignorable-code-point
17532         (Depends-on, configure.ac): Likewise.
17533         * modules/unictype/property-other-grapheme-extend (Depends-on,
17534         configure.ac): Likewise.
17535         * modules/unictype/property-other-id-continue (Depends-on,
17536         configure.ac): Likewise.
17537         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
17538         Likewise.
17539         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
17540         Likewise.
17541         * modules/unictype/property-other-math (Depends-on, configure.ac):
17542         Likewise.
17543         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
17544         Likewise.
17545         * modules/unictype/property-paired-punctuation (Depends-on,
17546         configure.ac): Likewise.
17547         * modules/unictype/property-paragraph-separator (Depends-on,
17548         configure.ac): Likewise.
17549         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
17550         Likewise.
17551         * modules/unictype/property-pattern-white-space (Depends-on,
17552         configure.ac): Likewise.
17553         * modules/unictype/property-private-use (Depends-on, configure.ac):
17554         Likewise.
17555         * modules/unictype/property-punctuation (Depends-on, configure.ac):
17556         Likewise.
17557         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
17558         Likewise.
17559         * modules/unictype/property-radical (Depends-on, configure.ac):
17560         Likewise.
17561         * modules/unictype/property-sentence-terminal (Depends-on,
17562         configure.ac): Likewise.
17563         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
17564         Likewise.
17565         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
17566         * modules/unictype/property-terminal-punctuation (Depends-on,
17567         configure.ac): Likewise.
17568         * modules/unictype/property-titlecase (Depends-on, configure.ac):
17569         Likewise.
17570         * modules/unictype/property-unassigned-code-value (Depends-on,
17571         configure.ac): Likewise.
17572         * modules/unictype/property-unified-ideograph (Depends-on,
17573         configure.ac): Likewise.
17574         * modules/unictype/property-uppercase (Depends-on, configure.ac):
17575         Likewise.
17576         * modules/unictype/property-variation-selector (Depends-on,
17577         configure.ac): Likewise.
17578         * modules/unictype/property-white-space (Depends-on, configure.ac):
17579         Likewise.
17580         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
17581         Likewise.
17582         * modules/unictype/property-xid-start (Depends-on, configure.ac):
17583         Likewise.
17584         * modules/unictype/property-zero-width (Depends-on, configure.ac):
17585         Likewise.
17586         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
17587         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
17588         Likewise.
17589
17590 2009-12-31  Bruno Haible  <bruno@clisp.org>
17591
17592         Remove unnecessary AC_C_INLINE invocation.
17593         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
17594         since 2009-08-21.
17595
17596 2009-12-31  Jim Meyering  <meyering@redhat.com>
17597
17598         maint.mk: don't require explicit gpg_key_ID in cfg.mk
17599         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
17600         With this change, we can all remove the gpg_key_ID = ... definition
17601         from our respective cfg.mk files.
17602
17603         maint.mk: create announcement template in ~/, not in /tmp
17604         * top/maint.mk (emit_upload_commands): Adjust.
17605         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
17606         Remove temporary file, .ci-msg.
17607
17608 2009-12-31  Eric Blake  <ebb9@byu.net>
17609
17610         link-warning: always build headers with link warnings
17611         * modules/arpa_inet (Makefile.am): Always build replacement
17612         header.
17613         * modules/ctype (Makefile.am): Likewise.
17614         * modules/dirent (Makefile.am): Likewise.
17615         * modules/inttypes (Makefile.am): Likewise.
17616         * modules/langinfo (Makefile.am): Likewise.
17617         * modules/locale (Makefile.am): Likewise.
17618         * modules/spawn (Makefile.am): Likewise.
17619         * modules/sys_file (Makefile.am): Likewise.
17620         * modules/sys_ioctl (Makefile.am): Likewise.
17621         * modules/sys_select (Makefile.am): Likewise.
17622         * modules/sys_socket (Makefile.am): Likewise.
17623         * modules/sys_times (Makefile.am): Likewise.
17624         * modules/sys_utsname (Makefile.am): Likewise.
17625         * modules/sys_wait (Makefile.am): Likewise.
17626         * modules/wchar (Makefile.am): Likewise.
17627         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
17628         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
17629         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
17630         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
17631         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
17632         Likewise.
17633         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
17634         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17635         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
17636         Likewise.
17637         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
17638         Likewise.
17639         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
17640         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
17641         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
17642         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17643         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17644         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
17645         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
17646         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
17647         (gl_WCHAR_H_DEFAULTS): Likewise.
17648
17649 2009-12-31  Eric Blake  <ebb9@byu.net>
17650
17651         signal, spawn: use link warnings
17652         * lib/signal.in.h (sigset_t): Make unconditional.
17653         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
17654         (sigpending, sigprocmask, sigaction): Add link warnings.
17655         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
17656         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
17657         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
17658         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
17659         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
17660         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
17661         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
17662         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
17663         (posix_spawn_file_actions_destroy)
17664         (posix_spawn_file_actions_addopen)
17665         (posix_spawn_file_actions_addclose)
17666         (posix_spawn_file_actions_adddup2): Likewise.
17667         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
17668         * tests/test-signal.c (main): Enhance test.
17669
17670         spawn: improve wrapper support
17671         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
17672         (gl_SPAWN_H_DEFAULTS): New defaults.
17673         * modules/spawn (Makefile.am): Substitute them.
17674         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
17675         Only declare if missing or broken.
17676
17677         sys_times, sys_utsname: use include_next
17678         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
17679         header.
17680         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
17681         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
17682         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
17683         * modules/sys_times (Depends-on): Add include_next.
17684         (Makefile.am): Substitute additional values.
17685         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
17686         * lib/sys_times.in.h (includes): Include native header, if
17687         available.
17688         * lib/sys_utsname.in.h (includes): Likewise.
17689         * tests/test-sys_times.c (main): Enhance test.
17690
17691         fdutimensat: revert prior patch
17692         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
17693         utimens.h.
17694         Reported by Bruno Haible.
17695
17696 2009-12-30  Eric Blake  <ebb9@byu.net>
17697
17698         sys_wait: drop link-warning dependency
17699         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
17700         link-warning efforts.
17701         * lib/sys_wait.in.h: Likewise.
17702
17703         fdutimensat: remove bogus dependency
17704         * modules/fdutimensat (Depends-on): Drop inline.
17705
17706         unistd: fix typo
17707         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
17708
17709 2009-12-30  Bruno Haible  <bruno@clisp.org>
17710
17711         Fix compilation error with Solaris cc.
17712         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
17713         * lib/unicase/u16-is-invariant.c: Likewise.
17714         * lib/unicase/u32-is-invariant.c: Likewise.
17715         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
17716
17717 2009-12-30  Bruno Haible  <bruno@clisp.org>
17718
17719         Fix test crash.
17720         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
17721         locales.
17722         Reported by Simon Josefsson <simon@josefsson.org>.
17723
17724 2009-12-30  Bruno Haible  <bruno@clisp.org>
17725
17726         Fix compilation error on most platforms.
17727         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
17728         Reported by Simon Josefsson <simon@josefsson.org>
17729         and Nelson H. F. Beebe <beebe@math.utah.edu>.
17730
17731 2009-12-30  Eric Blake  <ebb9@byu.net>
17732
17733         futimens, utimensat: work around ntfs-3g bug
17734         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
17735         a ctime bug is present, and expand workaround to cover ntfs-3g.
17736         * lib/utimens.c (fdutimens, lutimens): Likewise.
17737         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
17738         (validate_timespec): Adjust return value.
17739         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
17740         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17741         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
17742
17743 2009-12-29  Eric Blake  <ebb9@byu.net>
17744
17745         link-warning: make usage consistent
17746         * modules/ctype (Depends-on): Add link-warning.
17747         (Makefile.am): Update rules accordingly.
17748         * modules/langinfo (Depends-on, Makefile.am): Likewise.
17749         * modules/locale (Depends-on, Makefile.am): Likewise.
17750         * modules/sys_file (Makefile.am): Likewise.
17751         * modules/getopt-posix (Makefile.am): Delete unused link warning
17752         efforts.
17753         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
17754         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
17755         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
17756         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
17757
17758         stdio: remove unused variables
17759         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
17760         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
17761         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17762
17763         tests: test more substitute headers
17764         * modules/ctype-tests: New file.
17765         * modules/dirent-tests: Likewise.
17766         * modules/spawn-tests: Likewise.
17767         * modules/sys_file-tests: Likewise.
17768         * modules/sys_ioctl-tests: Likewise.
17769         * modules/sys_wait-tests: Likewise.
17770         * tests/test-ctype.c: Likewise.
17771         * tests/test-dirent.c: Likewise.
17772         * tests/test-spawn.c: Likewise.
17773         * tests/test-sys_file.c: Likewise.
17774         * tests/test-sys_ioctl.c: Likewise.
17775         * tests/test-sys_wait.c: Likewise.
17776         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
17777         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
17778         whether or not flock is in use.
17779
17780         tests: remove License section from module
17781         * modules/arpa_inet-tests: Remove unneeded section.
17782         * modules/byteswap-tests: Likewise.
17783         * modules/ceilf-tests: Likewise.
17784         * modules/ceill-tests: Likewise.
17785         * modules/crypto/des-tests: Likewise.
17786         * modules/crypto/gc-arcfour-tests: Likewise.
17787         * modules/crypto/gc-arctwo-tests: Likewise.
17788         * modules/crypto/gc-des-tests: Likewise.
17789         * modules/crypto/gc-hmac-md5-tests: Likewise.
17790         * modules/crypto/gc-hmac-sha1-tests: Likewise.
17791         * modules/crypto/gc-md2-tests: Likewise.
17792         * modules/crypto/gc-md4-tests: Likewise.
17793         * modules/crypto/gc-md5-tests: Likewise.
17794         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
17795         * modules/crypto/gc-rijndael-tests: Likewise.
17796         * modules/crypto/gc-sha1-tests: Likewise.
17797         * modules/crypto/gc-tests: Likewise.
17798         * modules/crypto/md2-tests: Likewise.
17799         * modules/crypto/md4-tests: Likewise.
17800         * modules/fcntl-h-tests: Likewise.
17801         * modules/floorf-tests: Likewise.
17802         * modules/floorl-tests: Likewise.
17803         * modules/frexp-nolibm-tests: Likewise.
17804         * modules/frexp-tests: Likewise.
17805         * modules/frexpl-nolibm-tests: Likewise.
17806         * modules/frexpl-tests: Likewise.
17807         * modules/getaddrinfo-tests: Likewise.
17808         * modules/inttypes-tests: Likewise.
17809         * modules/isfinite-tests: Likewise.
17810         * modules/isinf-tests: Likewise.
17811         * modules/ldexpl-tests: Likewise.
17812         * modules/locale-tests: Likewise.
17813         * modules/math-tests: Likewise.
17814         * modules/netdb-tests: Likewise.
17815         * modules/netinet_in-tests: Likewise.
17816         * modules/printf-frexp-tests: Likewise.
17817         * modules/printf-frexpl-tests: Likewise.
17818         * modules/priv-set-tests: Likewise.
17819         * modules/random_r-tests: Likewise.
17820         * modules/round-tests: Likewise.
17821         * modules/roundf-tests: Likewise.
17822         * modules/roundl-tests: Likewise.
17823         * modules/search-tests: Likewise.
17824         * modules/select-tests: Likewise.
17825         * modules/signal-tests: Likewise.
17826         * modules/stdbool-tests: Likewise.
17827         * modules/stddef-tests: Likewise.
17828         * modules/stdint-tests: Likewise.
17829         * modules/stdio-tests: Likewise.
17830         * modules/stdlib-tests: Likewise.
17831         * modules/string-tests: Likewise.
17832         * modules/strings-tests: Likewise.
17833         * modules/sys_select-tests: Likewise.
17834         * modules/sys_socket-tests: Likewise.
17835         * modules/sys_stat-tests: Likewise.
17836         * modules/sys_time-tests: Likewise.
17837         * modules/sys_utsname-tests: Likewise.
17838         * modules/sysexits-tests: Likewise.
17839         * modules/time-tests: Likewise.
17840         * modules/trunc-tests: Likewise.
17841         * modules/truncf-tests: Likewise.
17842         * modules/truncl-tests: Likewise.
17843         * modules/tsearch-tests: Likewise.
17844         * modules/unistd-tests: Likewise.
17845         * modules/wchar-tests: Likewise.
17846         * modules/wctype-tests: Likewise.
17847
17848         tests: fix license on several tests
17849         * tests/test-des.c: Update to GPLv3+.
17850         * tests/test-flock.c: Likewise.
17851         * tests/test-fsync.c: Likewise.
17852         * tests/test-futimens.h: Likewise.
17853         * tests/test-gc-arcfour.c: Likewise.
17854         * tests/test-gc-arctwo.c: Likewise.
17855         * tests/test-gc-des.c: Likewise.
17856         * tests/test-gc-hmac-md5.c: Likewise.
17857         * tests/test-gc-hmac-sha1.c: Likewise.
17858         * tests/test-gc-md2.c: Likewise.
17859         * tests/test-gc-md4.c: Likewise.
17860         * tests/test-gc-md5.c: Likewise.
17861         * tests/test-gc-pbkdf2-sha1.c: Likewise.
17862         * tests/test-gc-rijndael.c: Likewise.
17863         * tests/test-gc-sha1.c: Likewise.
17864         * tests/test-gc.c: Likewise.
17865         * tests/test-getcwd.c: Likewise.
17866         * tests/test-link.c: Likewise.
17867         * tests/test-link.h: Likewise.
17868         * tests/test-lutimens.h: Likewise.
17869         * tests/test-md2.c: Likewise.
17870         * tests/test-md4.c: Likewise.
17871         * tests/test-mkdir.h: Likewise.
17872         * tests/test-rename.c: Likewise.
17873         * tests/test-rename.h: Likewise.
17874         * tests/test-safe-alloc.c: Likewise.
17875         * tests/test-utimens-common.h: Likewise.
17876         * tests/test-utimens.h: Likewise.
17877
17878         maint: sync license texts
17879         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
17880         * doc/gpl-3.0.texi: Revert copyright year update.
17881         * doc/lgpl-3.0.texi: Likewise.
17882
17883 2009-12-29  Jim Meyering  <meyering@redhat.com>
17884
17885         update nearly all FSF copyright year lists to include 2009
17886         The files named by the following are exempted:
17887             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
17888               test -f "$dst" && { echo "$dst"; continue; }
17889               test -d "$dst" || continue
17890               echo "$dst"/$(basename "$src")
17891             done > exempt
17892             git ls-files tests/unictype >> exempt
17893         In the remaining files, convert to all-interval notation if
17894         - there is already at least one year interval like 2000-2003
17895         - the file is maintained by me
17896         - the file is in lib/uni*/, where that style already prevails
17897         Otherwise, use update-copyright's default.
17898
17899 2009-12-29  Simon Josefsson  <simon@josefsson.org>
17900         and Eric Blake  <ebb9@byu.net>
17901
17902         tests: don't require debug system() to pass
17903         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
17904         * tests/test-rmdir.h (test_rmdir_func): Likewise.
17905         * tests/test-unlink.h (test_unlink_func): Likewise.
17906         * tests/test-fstatat.c (main): ...into callers.
17907         * tests/test-lstat.c (main): Likewise.
17908         * tests/test-rmdir.c (main): Likewise.
17909         * tests/test-unlink.c (main): Likewise.
17910         * tests/test-unlinkat.c (main): Likewise.
17911         * tests/test-areadlink-with-size.c (main): Don't require a
17912         debug-only system call to pass, aiding cross-testing to mingw.
17913         * tests/test-areadlink.c (main): Likewise.
17914         * tests/test-areadlinkat-with-size.c (main): Likewise.
17915         * tests/test-areadlinkat.c (main): Likewise.
17916         * tests/test-canonicalize-lgpl.c (main): Likewise.
17917         * tests/test-canonicalize.c (main): Likewise.
17918         * tests/test-chown.c (main): Likewise.
17919         * tests/test-fchownat.c (main): Likewise.
17920         * tests/test-lchown.c (main): Likewise.
17921         * tests/test-fdutimensat.c (main): Likewise.
17922         * tests/test-futimens.c (main): Likewise.
17923         * tests/test-link.c (main): Likewise.
17924         * tests/test-linkat.c (main): Likewise.
17925         * tests/test-mkdir.c (main): Likewise.
17926         * tests/test-mkdirat.c (main): Likewise.
17927         * tests/test-mkfifo.c (main): Likewise.
17928         * tests/test-mkfifoat.c (main): Likewise.
17929         * tests/test-mknod.c (main): Likewise.
17930         * tests/test-readlink.c (main): Likewise.
17931         * tests/test-remove.c (main): Likewise.
17932         * tests/test-rename.c (main): Likewise.
17933         * tests/test-renameat.c (main): Likewise.
17934         * tests/test-symlink.c (main): Likewise.
17935         * tests/test-symlinkat.c (main): Likewise.
17936         * tests/test-utimens.c (main): Likewise.
17937         * tests/test-utimensat.c (main): Likewise.
17938
17939 2009-12-29  Simon Josefsson  <simon@josefsson.org>
17940
17941         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
17942         on $(UNUSED_PARAMETER_H) to avoid build failure.
17943
17944 2009-12-28  Jim Meyering  <meyering@redhat.com>
17945
17946         update-copyright: you may specify a max. line length other than 72
17947         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
17948
17949         maint: use consistent FSF copyright line syntax
17950         * lib/posixtm.c: Add missing comma in FSF copyright line.
17951         * lib/posixtm.h: Likewise.
17952         * lib/getugroups.c: Add missing ", Inc.".
17953
17954         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
17955         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
17956         FSF copyright line.  Remove trailing blanks.
17957
17958 2009-12-28  Eric Blake  <ebb9@byu.net>
17959
17960         test-dup2: reduce dependencies
17961         * modules/cloexec (Configure.ac): Set witness.
17962         * modules/dup2-tests (Depends-on): Drop cloexec.
17963         * tests/test-dup2.c (main): Skip portion of test if cloexec module
17964         not present.
17965         Suggested by Bruno Haible.
17966
17967 2009-12-26  Bruno Haible  <bruno@clisp.org>
17968
17969         Remove an unneeded dependency.
17970         * modules/fseterr (Depends-on): Remove dup2.
17971
17972 2009-12-26  Eric Blake  <ebb9@byu.net>
17973
17974         tests: use macros.h in more places
17975         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
17976         (ASSERT_STREAM): Provide default of stderr.
17977         * tests/test-dirent-safer.c: Include macros.h, using alternate
17978         stream for assertions.
17979         * tests/test-dup-safer.c: Likewise.
17980         * tests/test-freopen-safer.c: Likewise.
17981         * tests/test-getopt.c: Likewise.
17982         * tests/test-openat-safer.c: Likewise.
17983         * tests/test-pipe.c: Likewise.
17984         * tests/test-popen-safer.c: Likewise.
17985         * modules/dirent-safer-tests (Files): Include macros.h.
17986         * modules/unistd-safer-tests (Files): Likewise.
17987         * modules/freopen-safer-tests (Files): Likewise.
17988         * modules/getopt-posix-tests (Files): Likewise.
17989         * modules/openat-safer-tests (Files): Likewise.
17990         * modules/pipe-tests (Files): Likewise.
17991
17992 2009-12-26  Bruno Haible  <bruno@clisp.org>
17993
17994         javacomp: Portability fix.
17995         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
17996         that it also works on Solaris.
17997
17998 2009-12-26  Bruno Haible  <bruno@clisp.org>
17999
18000         localename: Fix storage allocation of gl_locale_name_thread's result.
18001         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
18002         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
18003         all platforms that have 'uselocale'.
18004         (gl_locale_name_thread_unsafe): New function, extracted from
18005         gl_locale_name_thread.
18006         (gl_locale_name_thread): Call struniq on all platforms that have
18007         'uselocale'.
18008         * tests/test-localename.c (test_locale_name_thread): Check that the
18009         resulting strings are permanently allocated.
18010         * modules/localename-tests (Depends-on): Add strdup.
18011
18012 2009-12-26  Bruno Haible  <bruno@clisp.org>
18013
18014         * tests/test-localename.c (categories): Fill in the strings.
18015
18016 2009-12-26  Jim Meyering  <meyering@redhat.com>
18017
18018         isdir: complete the removal of m4/isdir.m4
18019         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
18020
18021         isdir: clean up, since at least grep still uses it
18022         * lib/isdir.c: Include "isdir.h".
18023         (S_ISDIR): Remove now-unneeded definition.
18024         * modules/isdir (Files): Add lib/isdir.h.
18025         * lib/isdir.h: New file, with declaration.
18026         * m4/isdir.m4: Remove file -- unneeded.
18027
18028 2009-12-25  Bruno Haible  <bruno@clisp.org>
18029
18030         selinux-h: Make generated .h files standalone.
18031         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
18032         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
18033         * lib/se-selinux.in.h: Likewise.
18034         * modules/selinux-h (Depends-on): Add unused-parameter.
18035         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
18036         selinux/selinux.h and selinux/context.h.
18037         Suggested by Eric Blake.
18038
18039 2009-12-25  Bruno Haible  <bruno@clisp.org>
18040
18041         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
18042         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
18043         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
18044         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
18045         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
18046
18047 2009-12-24  Bruno Haible  <bruno@clisp.org>
18048
18049         openat: Fix warning.
18050         * lib/openat-proc.c: Include <unistd.h>.
18051
18052 2009-12-24  Bruno Haible  <bruno@clisp.org>
18053
18054         New module 'unused-parameter'.
18055         * build-aux/unused-parameter.h: New file, extracted from earlier
18056         gnulib-common.m4.
18057         * modules/unused-parameter: New file.
18058         * lib/unistr.h: Include unused-parameter.h.
18059         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
18060         _GL_UNUSED.
18061         * modules/unistr/base (Depends-on): Add unused-parameter.
18062
18063 2009-12-24  Bruno Haible  <bruno@clisp.org>
18064
18065         Add missing dependencies to 'extensions' module.
18066         * m4/extensions.m4: Add comment.
18067         * modules/accept4 (Depends-on): Add extensions.
18068         * modules/dup3 (Depends-on): Likewise.
18069         * modules/fcntl (Depends-on): Likewise.
18070         * modules/futimens (Depends-on): Likewise.
18071         * modules/mknod (Depends-on): Likewise.
18072         * modules/pipe2 (Depends-on): Likewise.
18073         * modules/stat-time (Depends-on): Likewise.
18074         * modules/strcasestr-simple (Depends-on): Likewise.
18075         * modules/strsignal (Depends-on): Likewise.
18076         * modules/utimensat (Depends-on): Likewise.
18077         * modules/localcharset (Depends-on): Likewise. Needed because of
18078         gl_FCNTL_O_FLAGS.
18079         * modules/wcrtomb (Depends-on): Likewise. Needed because of
18080         AC_TYPE_MBSTATE_T.
18081         * modules/wcsnrtombs (Depends-on): Likewise.
18082         * modules/wcsrtombs (Depends-on): Likewise.
18083
18084 2009-12-24  Bruno Haible  <bruno@clisp.org>
18085
18086         binary-io: Avoid gcc warning due to SET_BINARY.
18087         * lib/binary-io.h (SET_BINARY): Cast the result to void.
18088         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
18089
18090 2009-12-24  Bruno Haible  <bruno@clisp.org>
18091
18092         Avoid future namespace pollution on glibc systems.
18093         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
18094         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
18095         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
18096         glibc systems.
18097
18098 2009-12-24  Bruno Haible  <bruno@clisp.org>
18099
18100         Refactor common macros used in tests.
18101         * tests/macros.h: New file.
18102         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
18103         and/or <stdlib.h>, if appropriate.
18104         (ASSERT, SIZEOF): Remove macros.
18105         * tests/test-areadlink-with-size.c: Likewise.
18106         * tests/test-areadlinkat.c: Likewise.
18107         * tests/test-areadlinkat-with-size.c: Likewise.
18108         * tests/test-argmatch.c: Likewise.
18109         * tests/test-argv-iter.c: Likewise.
18110         * tests/test-array-mergesort.c: Likewise.
18111         * tests/test-array_list.c: Likewise.
18112         * tests/test-array_oset.c: Likewise.
18113         * tests/test-avltree_list.c: Likewise.
18114         * tests/test-avltree_oset.c: Likewise.
18115         * tests/test-avltreehash_list.c: Likewise.
18116         * tests/test-base64.c: Likewise.
18117         * tests/test-binary-io.c: Likewise.
18118         * tests/test-bitrotate.c: Likewise.
18119         * tests/test-btowc.c: Likewise.
18120         * tests/test-byteswap.c: Likewise.
18121         * tests/test-c-ctype.c: Likewise.
18122         * tests/test-c-stack.c: Likewise.
18123         * tests/test-c-strcasecmp.c: Likewise.
18124         * tests/test-c-strcasestr.c: Likewise.
18125         * tests/test-c-strncasecmp.c: Likewise.
18126         * tests/test-c-strstr.c: Likewise.
18127         * tests/test-canonicalize-lgpl.c: Likewise.
18128         * tests/test-canonicalize.c: Likewise.
18129         * tests/test-carray_list.c: Likewise.
18130         * tests/test-ceilf1.c: Likewise.
18131         * tests/test-ceilf2.c: Likewise.
18132         * tests/test-ceill.c: Likewise.
18133         * tests/test-chown.c: Likewise.
18134         * tests/test-cloexec.c: Likewise.
18135         * tests/test-copy-acl.c: Likewise.
18136         * tests/test-copy-file.c: Likewise.
18137         * tests/test-count-one-bits.c: Likewise.
18138         * tests/test-dprintf-posix.c: Likewise.
18139         * tests/test-dup2.c: Likewise.
18140         * tests/test-dup3.c: Likewise.
18141         * tests/test-duplocale.c: Likewise.
18142         * tests/test-fbufmode.c: Likewise.
18143         * tests/test-fchdir.c: Likewise.
18144         * tests/test-fchownat.c: Likewise.
18145         * tests/test-fcntl-safer.c: Likewise.
18146         * tests/test-fcntl.c: Likewise.
18147         * tests/test-fdopendir.c: Likewise.
18148         * tests/test-fdutimensat.c: Likewise.
18149         * tests/test-fflush2.c: Likewise.
18150         * tests/test-file-has-acl.c: Likewise.
18151         * tests/test-filevercmp.c: Likewise.
18152         * tests/test-flock.c: Likewise.
18153         * tests/test-floorf1.c: Likewise.
18154         * tests/test-floorf2.c: Likewise.
18155         * tests/test-floorl.c: Likewise.
18156         * tests/test-fnmatch.c: Likewise.
18157         * tests/test-fopen.h: Likewise.
18158         * tests/test-fpending.c: Likewise.
18159         * tests/test-fprintf-posix.c: Likewise.
18160         * tests/test-fpurge.c: Likewise.
18161         * tests/test-freadable.c: Likewise.
18162         * tests/test-freadahead.c: Likewise.
18163         * tests/test-freading.c: Likewise.
18164         * tests/test-freadptr.c: Likewise.
18165         * tests/test-freadptr2.c: Likewise.
18166         * tests/test-freadseek.c: Likewise.
18167         * tests/test-freopen.c: Likewise.
18168         * tests/test-frexp.c: Likewise.
18169         * tests/test-frexpl.c: Likewise.
18170         * tests/test-fseek.c: Likewise.
18171         * tests/test-fseeko.c: Likewise.
18172         * tests/test-fstatat.c: Likewise.
18173         * tests/test-fstrcmp.c: Likewise.
18174         * tests/test-fsync.c: Likewise.
18175         * tests/test-ftell.c: Likewise.
18176         * tests/test-ftello.c: Likewise.
18177         * tests/test-func.c: Likewise.
18178         * tests/test-futimens.c: Likewise.
18179         * tests/test-fwritable.c: Likewise.
18180         * tests/test-fwriting.c: Likewise.
18181         * tests/test-getcwd.c: Likewise.
18182         * tests/test-getdate.c: Likewise.
18183         * tests/test-getdelim.c: Likewise.
18184         * tests/test-getdtablesize.c: Likewise.
18185         * tests/test-getgroups.c: Likewise.
18186         * tests/test-getline.c: Likewise.
18187         * tests/test-getndelim2.c: Likewise.
18188         * tests/test-glob.c: Likewise.
18189         * tests/test-hash.c: Likewise.
18190         * tests/test-i-ring.c: Likewise.
18191         * tests/test-iconv-utf.c: Likewise.
18192         * tests/test-iconv.c: Likewise.
18193         * tests/test-idpriv-drop.c: Likewise.
18194         * tests/test-idpriv-droptemp.c: Likewise.
18195         * tests/test-inet_ntop.c: Likewise.
18196         * tests/test-inet_pton.c: Likewise.
18197         * tests/test-isblank.c: Likewise.
18198         * tests/test-isfinite.c: Likewise.
18199         * tests/test-isinf.c: Likewise.
18200         * tests/test-isnan.c: Likewise.
18201         * tests/test-isnand.h: Likewise.
18202         * tests/test-isnanf.h: Likewise.
18203         * tests/test-isnanl.h: Likewise.
18204         * tests/test-lchown.c: Likewise.
18205         * tests/test-ldexpl.c: Likewise.
18206         * tests/test-link.c: Likewise.
18207         * tests/test-linkat.c: Likewise.
18208         * tests/test-linked_list.c: Likewise.
18209         * tests/test-linkedhash_list.c: Likewise.
18210         * tests/test-localename.c: Likewise.
18211         * tests/test-lseek.c: Likewise.
18212         * tests/test-lstat.c: Likewise.
18213         * tests/test-mbmemcasecmp.c: Likewise.
18214         * tests/test-mbmemcasecoll.c: Likewise.
18215         * tests/test-mbrtowc.c: Likewise.
18216         * tests/test-mbscasecmp.c: Likewise.
18217         * tests/test-mbscasestr1.c: Likewise.
18218         * tests/test-mbscasestr2.c: Likewise.
18219         * tests/test-mbscasestr3.c: Likewise.
18220         * tests/test-mbscasestr4.c: Likewise.
18221         * tests/test-mbschr.c: Likewise.
18222         * tests/test-mbscspn.c: Likewise.
18223         * tests/test-mbsinit.c: Likewise.
18224         * tests/test-mbsncasecmp.c: Likewise.
18225         * tests/test-mbsnrtowcs.c: Likewise.
18226         * tests/test-mbspbrk.c: Likewise.
18227         * tests/test-mbspcasecmp.c: Likewise.
18228         * tests/test-mbsrchr.c: Likewise.
18229         * tests/test-mbsrtowcs.c: Likewise.
18230         * tests/test-mbsspn.c: Likewise.
18231         * tests/test-mbsstr1.c: Likewise.
18232         * tests/test-mbsstr2.c: Likewise.
18233         * tests/test-mbsstr3.c: Likewise.
18234         * tests/test-memchr.c: Likewise.
18235         * tests/test-memchr2.c: Likewise.
18236         * tests/test-memcmp.c: Likewise.
18237         * tests/test-memmem.c: Likewise.
18238         * tests/test-memrchr.c: Likewise.
18239         * tests/test-mkdir.c: Likewise.
18240         * tests/test-mkdirat.c: Likewise.
18241         * tests/test-mkfifo.c: Likewise.
18242         * tests/test-mkfifoat.c: Likewise.
18243         * tests/test-mknod.c: Likewise.
18244         * tests/test-nanosleep.c: Likewise.
18245         * tests/test-nl_langinfo.c: Likewise.
18246         * tests/test-obstack-printf.c: Likewise.
18247         * tests/test-open.c: Likewise.
18248         * tests/test-openat.c: Likewise.
18249         * tests/test-pipe-filter-gi1.c: Likewise.
18250         * tests/test-pipe-filter-gi2-main.c: Likewise.
18251         * tests/test-pipe-filter-ii1.c: Likewise.
18252         * tests/test-pipe-filter-ii2-main.c: Likewise.
18253         * tests/test-pipe2.c: Likewise.
18254         * tests/test-popen.h: Likewise.
18255         * tests/test-posixtm.c: Likewise.
18256         * tests/test-pread.c: Likewise.
18257         * tests/test-printf-frexp.c: Likewise.
18258         * tests/test-printf-frexpl.c: Likewise.
18259         * tests/test-printf-posix.c: Likewise.
18260         * tests/test-priv-set.c: Likewise.
18261         * tests/test-quotearg.c: Likewise.
18262         * tests/test-random_r.c: Likewise.
18263         * tests/test-rawmemchr.c: Likewise.
18264         * tests/test-rbtree_list.c: Likewise.
18265         * tests/test-rbtree_oset.c: Likewise.
18266         * tests/test-rbtreehash_list.c: Likewise.
18267         * tests/test-readlink.c: Likewise.
18268         * tests/test-remove.c: Likewise.
18269         * tests/test-rename.c: Likewise.
18270         * tests/test-renameat.c: Likewise.
18271         * tests/test-rmdir.c: Likewise.
18272         * tests/test-round1.c: Likewise.
18273         * tests/test-roundf1.c: Likewise.
18274         * tests/test-roundl.c: Likewise.
18275         * tests/test-safe-alloc.c: Likewise.
18276         * tests/test-sameacls.c: Likewise.
18277         * tests/test-set-mode-acl.c: Likewise.
18278         * tests/test-setenv.c: Likewise.
18279         * tests/test-sigaction.c: Likewise.
18280         * tests/test-signbit.c: Likewise.
18281         * tests/test-sleep.c: Likewise.
18282         * tests/test-snprintf-posix.c: Likewise.
18283         * tests/test-snprintf.c: Likewise.
18284         * tests/test-sprintf-posix.c: Likewise.
18285         * tests/test-stat-time.c: Likewise.
18286         * tests/test-stat.c: Likewise.
18287         * tests/test-strcasestr.c: Likewise.
18288         * tests/test-strchrnul.c: Likewise.
18289         * tests/test-strerror.c: Likewise.
18290         * tests/test-striconv.c: Likewise.
18291         * tests/test-striconveh.c: Likewise.
18292         * tests/test-striconveha.c: Likewise.
18293         * tests/test-strsignal.c: Likewise.
18294         * tests/test-strstr.c: Likewise.
18295         * tests/test-strtod.c: Likewise.
18296         * tests/test-strverscmp.c: Likewise.
18297         * tests/test-symlink.c: Likewise.
18298         * tests/test-symlinkat.c: Likewise.
18299         * tests/test-trunc1.c: Likewise.
18300         * tests/test-trunc2.c: Likewise.
18301         * tests/test-truncf1.c: Likewise.
18302         * tests/test-truncf2.c: Likewise.
18303         * tests/test-truncl.c: Likewise.
18304         * tests/test-uname.c: Likewise.
18305         * tests/test-unlink.c: Likewise.
18306         * tests/test-unlinkat.c: Likewise.
18307         * tests/test-unsetenv.c: Likewise.
18308         * tests/test-usleep.c: Likewise.
18309         * tests/test-utimens.c: Likewise.
18310         * tests/test-utimensat.c: Likewise.
18311         * tests/test-vasnprintf-posix.c: Likewise.
18312         * tests/test-vasnprintf-posix2.c: Likewise.
18313         * tests/test-vasnprintf.c: Likewise.
18314         * tests/test-vasprintf-posix.c: Likewise.
18315         * tests/test-vasprintf.c: Likewise.
18316         * tests/test-vdprintf-posix.c: Likewise.
18317         * tests/test-vfprintf-posix.c: Likewise.
18318         * tests/test-vprintf-posix.c: Likewise.
18319         * tests/test-vsnprintf-posix.c: Likewise.
18320         * tests/test-vsnprintf.c: Likewise.
18321         * tests/test-vsprintf-posix.c: Likewise.
18322         * tests/test-wcrtomb.c: Likewise.
18323         * tests/test-wcsnrtombs.c: Likewise.
18324         * tests/test-wcsrtombs.c: Likewise.
18325         * tests/test-wctype.c: Likewise.
18326         * tests/test-wcwidth.c: Likewise.
18327         * tests/test-xfprintf-posix.c: Likewise.
18328         * tests/test-xmemdup0.c: Likewise.
18329         * tests/test-xprintf-posix.c: Likewise.
18330         * tests/test-xvasprintf.c: Likewise.
18331         * tests/unicase/test-locale-language.c: Likewise.
18332         * tests/unicase/test-mapping-part1.h: Likewise.
18333         * tests/unicase/test-predicate-part1.h: Likewise.
18334         * tests/unicase/test-u8-casecmp.c: Likewise.
18335         * tests/unicase/test-u8-casecoll.c: Likewise.
18336         * tests/unicase/test-u8-casefold.c: Likewise.
18337         * tests/unicase/test-u8-is-cased.c: Likewise.
18338         * tests/unicase/test-u8-is-casefolded.c: Likewise.
18339         * tests/unicase/test-u8-is-lowercase.c: Likewise.
18340         * tests/unicase/test-u8-is-titlecase.c: Likewise.
18341         * tests/unicase/test-u8-is-uppercase.c: Likewise.
18342         * tests/unicase/test-u8-tolower.c: Likewise.
18343         * tests/unicase/test-u8-totitle.c: Likewise.
18344         * tests/unicase/test-u8-toupper.c: Likewise.
18345         * tests/unicase/test-u16-casecmp.c: Likewise.
18346         * tests/unicase/test-u16-casecoll.c: Likewise.
18347         * tests/unicase/test-u16-casefold.c: Likewise.
18348         * tests/unicase/test-u16-is-cased.c: Likewise.
18349         * tests/unicase/test-u16-is-casefolded.c: Likewise.
18350         * tests/unicase/test-u16-is-lowercase.c: Likewise.
18351         * tests/unicase/test-u16-is-titlecase.c: Likewise.
18352         * tests/unicase/test-u16-is-uppercase.c: Likewise.
18353         * tests/unicase/test-u16-tolower.c: Likewise.
18354         * tests/unicase/test-u16-totitle.c: Likewise.
18355         * tests/unicase/test-u16-toupper.c: Likewise.
18356         * tests/unicase/test-u32-casecmp.c: Likewise.
18357         * tests/unicase/test-u32-casecoll.c: Likewise.
18358         * tests/unicase/test-u32-casefold.c: Likewise.
18359         * tests/unicase/test-u32-is-cased.c: Likewise.
18360         * tests/unicase/test-u32-is-casefolded.c: Likewise.
18361         * tests/unicase/test-u32-is-lowercase.c: Likewise.
18362         * tests/unicase/test-u32-is-titlecase.c: Likewise.
18363         * tests/unicase/test-u32-is-uppercase.c: Likewise.
18364         * tests/unicase/test-u32-tolower.c: Likewise.
18365         * tests/unicase/test-u32-totitle.c: Likewise.
18366         * tests/unicase/test-u32-toupper.c: Likewise.
18367         * tests/unicase/test-ulc-casecmp.c: Likewise.
18368         * tests/unicase/test-ulc-casecoll.c: Likewise.
18369         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
18370         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
18371         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
18372         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
18373         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
18374         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
18375         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
18376         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
18377         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
18378         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
18379         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
18380         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
18381         * tests/unictype/test-bidi_byname.c: Likewise.
18382         * tests/unictype/test-bidi_name.c: Likewise.
18383         * tests/unictype/test-bidi_of.c: Likewise.
18384         * tests/unictype/test-bidi_test.c: Likewise.
18385         * tests/unictype/test-block_list.c: Likewise.
18386         * tests/unictype/test-block_of.c: Likewise.
18387         * tests/unictype/test-block_test.c: Likewise.
18388         * tests/unictype/test-categ_and.c: Likewise.
18389         * tests/unictype/test-categ_and_not.c: Likewise.
18390         * tests/unictype/test-categ_byname.c: Likewise.
18391         * tests/unictype/test-categ_name.c: Likewise.
18392         * tests/unictype/test-categ_none.c: Likewise.
18393         * tests/unictype/test-categ_of.c: Likewise.
18394         * tests/unictype/test-categ_or.c: Likewise.
18395         * tests/unictype/test-categ_test_withtable.c: Likewise.
18396         * tests/unictype/test-combining.c: Likewise.
18397         * tests/unictype/test-decdigit.c: Likewise.
18398         * tests/unictype/test-digit.c: Likewise.
18399         * tests/unictype/test-mirror.c: Likewise.
18400         * tests/unictype/test-numeric.c: Likewise.
18401         * tests/unictype/test-pr_byname.c: Likewise.
18402         * tests/unictype/test-pr_test.c: Likewise.
18403         * tests/unictype/test-predicate-part1.h: Likewise.
18404         * tests/unictype/test-scripts.c: Likewise.
18405         * tests/unictype/test-sy_c_ident.c: Likewise.
18406         * tests/unictype/test-sy_java_ident.c: Likewise.
18407         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
18408         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
18409         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
18410         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
18411         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
18412         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
18413         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
18414         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
18415         * tests/uninorm/test-canonical-decomposition.c: Likewise.
18416         * tests/uninorm/test-compat-decomposition.c: Likewise.
18417         * tests/uninorm/test-composition.c: Likewise.
18418         * tests/uninorm/test-decomposing-form.c: Likewise.
18419         * tests/uninorm/test-decomposition.c: Likewise.
18420         * tests/uninorm/test-u8-nfc.c: Likewise.
18421         * tests/uninorm/test-u8-nfd.c: Likewise.
18422         * tests/uninorm/test-u8-nfkc.c: Likewise.
18423         * tests/uninorm/test-u8-nfkd.c: Likewise.
18424         * tests/uninorm/test-u8-normcmp.c: Likewise.
18425         * tests/uninorm/test-u8-normcoll.c: Likewise.
18426         * tests/uninorm/test-u16-nfc.c: Likewise.
18427         * tests/uninorm/test-u16-nfd.c: Likewise.
18428         * tests/uninorm/test-u16-nfkc.c: Likewise.
18429         * tests/uninorm/test-u16-nfkd.c: Likewise.
18430         * tests/uninorm/test-u16-normcmp.c: Likewise.
18431         * tests/uninorm/test-u16-normcoll.c: Likewise.
18432         * tests/uninorm/test-u32-nfc.c: Likewise.
18433         * tests/uninorm/test-u32-nfd.c: Likewise.
18434         * tests/uninorm/test-u32-nfkc.c: Likewise.
18435         * tests/uninorm/test-u32-nfkd.c: Likewise.
18436         * tests/uninorm/test-u32-normalize-big.c: Likewise.
18437         * tests/uninorm/test-u32-normcmp.c: Likewise.
18438         * tests/uninorm/test-u32-normcoll.c: Likewise.
18439         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
18440         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
18441         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
18442         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
18443         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
18444         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
18445         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
18446         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
18447         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
18448         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
18449         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
18450         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
18451         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
18452         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
18453         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
18454         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
18455         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
18456         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
18457         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
18458         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
18459         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
18460         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
18461         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
18462         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
18463         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
18464         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
18465         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
18466         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
18467         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
18468         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
18469         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
18470         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
18471         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
18472         * tests/uniwidth/test-u8-strwidth.c: Likewise.
18473         * tests/uniwidth/test-u8-width.c: Likewise.
18474         * tests/uniwidth/test-u16-strwidth.c: Likewise.
18475         * tests/uniwidth/test-u16-width.c: Likewise.
18476         * tests/uniwidth/test-u32-strwidth.c: Likewise.
18477         * tests/uniwidth/test-u32-width.c: Likewise.
18478         * tests/uniwidth/test-uc_width.c: Likewise.
18479         * tests/uniwidth/test-uc_width2.c: Likewise.
18480         * modules/acl-tests (Files): Add tests/macros.h.
18481         * modules/areadlink-tests (Files): Likewise.
18482         * modules/areadlink-with-size-tests (Files): Likewise.
18483         * modules/areadlinkat-tests (Files): Likewise.
18484         * modules/areadlinkat-with-size-tests (Files): Likewise.
18485         * modules/argmatch-tests (Files): Likewise.
18486         * modules/argv-iter-tests (Files): Likewise.
18487         * modules/array-list-tests (Files): Likewise.
18488         * modules/array-mergesort-tests (Files): Likewise.
18489         * modules/array-oset-tests (Files): Likewise.
18490         * modules/avltree-list-tests (Files): Likewise.
18491         * modules/avltree-oset-tests (Files): Likewise.
18492         * modules/avltreehash-list-tests (Files): Likewise.
18493         * modules/base64-tests (Files): Likewise.
18494         * modules/binary-io-tests (Files): Likewise.
18495         * modules/bitrotate-tests (Files): Likewise.
18496         * modules/btowc-tests (Files): Likewise.
18497         * modules/byteswap-tests (Files): Likewise.
18498         * modules/c-ctype-tests (Files): Likewise.
18499         * modules/c-stack-tests (Files): Likewise.
18500         * modules/c-strcase-tests (Files): Likewise.
18501         * modules/c-strcasestr-tests (Files): Likewise.
18502         * modules/c-strstr-tests (Files): Likewise.
18503         * modules/canonicalize-lgpl-tests (Files): Likewise.
18504         * modules/canonicalize-tests (Files): Likewise.
18505         * modules/carray-list-tests (Files): Likewise.
18506         * modules/ceilf-tests (Files): Likewise.
18507         * modules/ceill-tests (Files): Likewise.
18508         * modules/chown-tests (Files): Likewise.
18509         * modules/cloexec-tests (Files): Likewise.
18510         * modules/copy-file-tests (Files): Likewise.
18511         * modules/count-one-bits-tests (Files): Likewise.
18512         * modules/dprintf-posix-tests (Files): Likewise.
18513         * modules/dup2-tests (Files): Likewise.
18514         * modules/dup3-tests (Files): Likewise.
18515         * modules/duplocale-tests (Files): Likewise.
18516         * modules/fbufmode-tests (Files): Likewise.
18517         * modules/fchdir-tests (Files): Likewise.
18518         * modules/fcntl-safer-tests (Files): Likewise.
18519         * modules/fcntl-tests (Files): Likewise.
18520         * modules/fdopendir-tests (Files): Likewise.
18521         * modules/fdutimensat-tests (Files): Likewise.
18522         * modules/fflush-tests (Files): Likewise.
18523         * modules/filevercmp-tests (Files): Likewise.
18524         * modules/flock-tests (Files): Likewise.
18525         * modules/floorf-tests (Files): Likewise.
18526         * modules/floorl-tests (Files): Likewise.
18527         * modules/fnmatch-tests (Files): Likewise.
18528         * modules/fopen-safer-tests (Files): Likewise.
18529         * modules/fopen-tests (Files): Likewise.
18530         * modules/fpending-tests (Files): Likewise.
18531         * modules/fprintf-posix-tests (Files): Likewise.
18532         * modules/fpurge-tests (Files): Likewise.
18533         * modules/freadable-tests (Files): Likewise.
18534         * modules/freadahead-tests (Files): Likewise.
18535         * modules/freading-tests (Files): Likewise.
18536         * modules/freadptr-tests (Files): Likewise.
18537         * modules/freadseek-tests (Files): Likewise.
18538         * modules/freopen-tests (Files): Likewise.
18539         * modules/frexp-nolibm-tests (Files): Likewise.
18540         * modules/frexp-tests (Files): Likewise.
18541         * modules/frexpl-nolibm-tests (Files): Likewise.
18542         * modules/frexpl-tests (Files): Likewise.
18543         * modules/fseek-tests (Files): Likewise.
18544         * modules/fseeko-tests (Files): Likewise.
18545         * modules/fstrcmp-tests (Files): Likewise.
18546         * modules/fsync-tests (Files): Likewise.
18547         * modules/ftell-tests (Files): Likewise.
18548         * modules/ftello-tests (Files): Likewise.
18549         * modules/func-tests (Files): Likewise.
18550         * modules/futimens-tests (Files): Likewise.
18551         * modules/fwritable-tests (Files): Likewise.
18552         * modules/fwriting-tests (Files): Likewise.
18553         * modules/getcwd-tests (Files): Likewise.
18554         * modules/getdate-tests (Files): Likewise.
18555         * modules/getdelim-tests (Files): Likewise.
18556         * modules/getdtablesize-tests (Files): Likewise.
18557         * modules/getgroups-tests (Files): Likewise.
18558         * modules/getline-tests (Files): Likewise.
18559         * modules/getndelim2-tests (Files): Likewise.
18560         * modules/glob-tests (Files): Likewise.
18561         * modules/hash-tests (Files): Likewise.
18562         * modules/i-ring-tests (Files): Likewise.
18563         * modules/iconv-tests (Files): Likewise.
18564         * modules/iconv_open-utf-tests (Files): Likewise.
18565         * modules/idpriv-drop-tests (Files): Likewise.
18566         * modules/idpriv-droptemp-tests (Files): Likewise.
18567         * modules/inet_ntop-tests (Files): Likewise.
18568         * modules/inet_pton-tests (Files): Likewise.
18569         * modules/isblank-tests (Files): Likewise.
18570         * modules/isfinite-tests (Files): Likewise.
18571         * modules/isinf-tests (Files): Likewise.
18572         * modules/isnan-tests (Files): Likewise.
18573         * modules/isnand-nolibm-tests (Files): Likewise.
18574         * modules/isnand-tests (Files): Likewise.
18575         * modules/isnanf-nolibm-tests (Files): Likewise.
18576         * modules/isnanf-tests (Files): Likewise.
18577         * modules/isnanl-nolibm-tests (Files): Likewise.
18578         * modules/isnanl-tests (Files): Likewise.
18579         * modules/lchown-tests (Files): Likewise.
18580         * modules/ldexpl-tests (Files): Likewise.
18581         * modules/link-tests (Files): Likewise.
18582         * modules/linkat-tests (Files): Likewise.
18583         * modules/linked-list-tests (Files): Likewise.
18584         * modules/linkedhash-list-tests (Files): Likewise.
18585         * modules/localename-tests (Files): Likewise.
18586         * modules/lseek-tests (Files): Likewise.
18587         * modules/lstat-tests (Files): Likewise.
18588         * modules/mbmemcasecmp-tests (Files): Likewise.
18589         * modules/mbmemcasecoll-tests (Files): Likewise.
18590         * modules/mbrtowc-tests (Files): Likewise.
18591         * modules/mbscasecmp-tests (Files): Likewise.
18592         * modules/mbscasestr-tests (Files): Likewise.
18593         * modules/mbschr-tests (Files): Likewise.
18594         * modules/mbscspn-tests (Files): Likewise.
18595         * modules/mbsinit-tests (Files): Likewise.
18596         * modules/mbsncasecmp-tests (Files): Likewise.
18597         * modules/mbsnrtowcs-tests (Files): Likewise.
18598         * modules/mbspbrk-tests (Files): Likewise.
18599         * modules/mbspcasecmp-tests (Files): Likewise.
18600         * modules/mbsrchr-tests (Files): Likewise.
18601         * modules/mbsrtowcs-tests (Files): Likewise.
18602         * modules/mbsspn-tests (Files): Likewise.
18603         * modules/mbsstr-tests (Files): Likewise.
18604         * modules/memchr-tests (Files): Likewise.
18605         * modules/memchr2-tests (Files): Likewise.
18606         * modules/memcmp-tests (Files): Likewise.
18607         * modules/memmem-tests (Files): Likewise.
18608         * modules/memrchr-tests (Files): Likewise.
18609         * modules/mkdir-tests (Files): Likewise.
18610         * modules/mkfifo-tests (Files): Likewise.
18611         * modules/mkfifoat-tests (Files): Likewise.
18612         * modules/mknod-tests (Files): Likewise.
18613         * modules/nanosleep-tests (Files): Likewise.
18614         * modules/nl_langinfo-tests (Files): Likewise.
18615         * modules/obstack-printf-tests (Files): Likewise.
18616         * modules/open-tests (Files): Likewise.
18617         * modules/openat-tests (Files): Likewise.
18618         * modules/pipe-filter-gi-tests (Files): Likewise.
18619         * modules/pipe-filter-ii-tests (Files): Likewise.
18620         * modules/pipe2-tests (Files): Likewise.
18621         * modules/popen-safer-tests (Files): Likewise.
18622         * modules/popen-tests (Files): Likewise.
18623         * modules/posixtm-tests (Files): Likewise.
18624         * modules/pread-tests (Files): Likewise.
18625         * modules/printf-frexp-tests (Files): Likewise.
18626         * modules/printf-frexpl-tests (Files): Likewise.
18627         * modules/printf-posix-tests (Files): Likewise.
18628         * modules/priv-set-tests (Files): Likewise.
18629         * modules/quotearg-tests (Files): Likewise.
18630         * modules/random_r-tests (Files): Likewise.
18631         * modules/rawmemchr-tests (Files): Likewise.
18632         * modules/rbtree-list-tests (Files): Likewise.
18633         * modules/rbtree-oset-tests (Files): Likewise.
18634         * modules/rbtreehash-list-tests (Files): Likewise.
18635         * modules/readlink-tests (Files): Likewise.
18636         * modules/remove-tests (Files): Likewise.
18637         * modules/rename-tests (Files): Likewise.
18638         * modules/renameat-tests (Files): Likewise.
18639         * modules/rmdir-tests (Files): Likewise.
18640         * modules/round-tests (Files): Likewise.
18641         * modules/roundf-tests (Files): Likewise.
18642         * modules/roundl-tests (Files): Likewise.
18643         * modules/safe-alloc-tests (Files): Likewise.
18644         * modules/setenv-tests (Files): Likewise.
18645         * modules/sigaction-tests (Files): Likewise.
18646         * modules/signbit-tests (Files): Likewise.
18647         * modules/sleep-tests (Files): Likewise.
18648         * modules/snprintf-posix-tests (Files): Likewise.
18649         * modules/snprintf-tests (Files): Likewise.
18650         * modules/sprintf-posix-tests (Files): Likewise.
18651         * modules/stat-tests (Files): Likewise.
18652         * modules/stat-time-tests (Files): Likewise.
18653         * modules/strcasestr-tests (Files): Likewise.
18654         * modules/strchrnul-tests (Files): Likewise.
18655         * modules/strerror-tests (Files): Likewise.
18656         * modules/striconv-tests (Files): Likewise.
18657         * modules/striconveh-tests (Files): Likewise.
18658         * modules/striconveha-tests (Files): Likewise.
18659         * modules/strsignal-tests (Files): Likewise.
18660         * modules/strstr-tests (Files): Likewise.
18661         * modules/strtod-tests (Files): Likewise.
18662         * modules/strverscmp-tests (Files): Likewise.
18663         * modules/symlink-tests (Files): Likewise.
18664         * modules/symlinkat-tests (Files): Likewise.
18665         * modules/trunc-tests (Files): Likewise.
18666         * modules/truncf-tests (Files): Likewise.
18667         * modules/truncl-tests (Files): Likewise.
18668         * modules/uname-tests (Files): Likewise.
18669         * modules/unicase/cased-tests (Files): Likewise.
18670         * modules/unicase/ignorable-tests (Files): Likewise.
18671         * modules/unicase/locale-language-tests (Files): Likewise.
18672         * modules/unicase/tolower-tests (Files): Likewise.
18673         * modules/unicase/totitle-tests (Files): Likewise.
18674         * modules/unicase/toupper-tests (Files): Likewise.
18675         * modules/unicase/u8-casecmp-tests (Files): Likewise.
18676         * modules/unicase/u8-casecoll-tests (Files): Likewise.
18677         * modules/unicase/u8-casefold-tests (Files): Likewise.
18678         * modules/unicase/u8-is-cased-tests (Files): Likewise.
18679         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
18680         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
18681         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
18682         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
18683         * modules/unicase/u8-tolower-tests (Files): Likewise.
18684         * modules/unicase/u8-totitle-tests (Files): Likewise.
18685         * modules/unicase/u8-toupper-tests (Files): Likewise.
18686         * modules/unicase/u16-casecmp-tests (Files): Likewise.
18687         * modules/unicase/u16-casecoll-tests (Files): Likewise.
18688         * modules/unicase/u16-casefold-tests (Files): Likewise.
18689         * modules/unicase/u16-is-cased-tests (Files): Likewise.
18690         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
18691         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
18692         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
18693         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
18694         * modules/unicase/u16-tolower-tests (Files): Likewise.
18695         * modules/unicase/u16-totitle-tests (Files): Likewise.
18696         * modules/unicase/u16-toupper-tests (Files): Likewise.
18697         * modules/unicase/u32-casecmp-tests (Files): Likewise.
18698         * modules/unicase/u32-casecoll-tests (Files): Likewise.
18699         * modules/unicase/u32-casefold-tests (Files): Likewise.
18700         * modules/unicase/u32-is-cased-tests (Files): Likewise.
18701         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
18702         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
18703         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
18704         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
18705         * modules/unicase/u32-tolower-tests (Files): Likewise.
18706         * modules/unicase/u32-totitle-tests (Files): Likewise.
18707         * modules/unicase/u32-toupper-tests (Files): Likewise.
18708         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
18709         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
18710         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
18711         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
18712         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
18713         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
18714         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
18715         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
18716         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
18717         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
18718         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
18719         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
18720         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
18721         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
18722         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
18723         * modules/unictype/bidicategory-name-tests (Files): Likewise.
18724         * modules/unictype/bidicategory-of-tests (Files): Likewise.
18725         * modules/unictype/bidicategory-test-tests (Files): Likewise.
18726         * modules/unictype/block-list-tests (Files): Likewise.
18727         * modules/unictype/block-of-tests (Files): Likewise.
18728         * modules/unictype/block-test-tests (Files): Likewise.
18729         * modules/unictype/category-C-tests (Files): Likewise.
18730         * modules/unictype/category-Cc-tests (Files): Likewise.
18731         * modules/unictype/category-Cf-tests (Files): Likewise.
18732         * modules/unictype/category-Cn-tests (Files): Likewise.
18733         * modules/unictype/category-Co-tests (Files): Likewise.
18734         * modules/unictype/category-Cs-tests (Files): Likewise.
18735         * modules/unictype/category-L-tests (Files): Likewise.
18736         * modules/unictype/category-Ll-tests (Files): Likewise.
18737         * modules/unictype/category-Lm-tests (Files): Likewise.
18738         * modules/unictype/category-Lo-tests (Files): Likewise.
18739         * modules/unictype/category-Lt-tests (Files): Likewise.
18740         * modules/unictype/category-Lu-tests (Files): Likewise.
18741         * modules/unictype/category-M-tests (Files): Likewise.
18742         * modules/unictype/category-Mc-tests (Files): Likewise.
18743         * modules/unictype/category-Me-tests (Files): Likewise.
18744         * modules/unictype/category-Mn-tests (Files): Likewise.
18745         * modules/unictype/category-N-tests (Files): Likewise.
18746         * modules/unictype/category-Nd-tests (Files): Likewise.
18747         * modules/unictype/category-Nl-tests (Files): Likewise.
18748         * modules/unictype/category-No-tests (Files): Likewise.
18749         * modules/unictype/category-P-tests (Files): Likewise.
18750         * modules/unictype/category-Pc-tests (Files): Likewise.
18751         * modules/unictype/category-Pd-tests (Files): Likewise.
18752         * modules/unictype/category-Pe-tests (Files): Likewise.
18753         * modules/unictype/category-Pf-tests (Files): Likewise.
18754         * modules/unictype/category-Pi-tests (Files): Likewise.
18755         * modules/unictype/category-Po-tests (Files): Likewise.
18756         * modules/unictype/category-Ps-tests (Files): Likewise.
18757         * modules/unictype/category-S-tests (Files): Likewise.
18758         * modules/unictype/category-Sc-tests (Files): Likewise.
18759         * modules/unictype/category-Sk-tests (Files): Likewise.
18760         * modules/unictype/category-Sm-tests (Files): Likewise.
18761         * modules/unictype/category-So-tests (Files): Likewise.
18762         * modules/unictype/category-Z-tests (Files): Likewise.
18763         * modules/unictype/category-Zl-tests (Files): Likewise.
18764         * modules/unictype/category-Zp-tests (Files): Likewise.
18765         * modules/unictype/category-Zs-tests (Files): Likewise.
18766         * modules/unictype/category-and-not-tests (Files): Likewise.
18767         * modules/unictype/category-and-tests (Files): Likewise.
18768         * modules/unictype/category-byname-tests (Files): Likewise.
18769         * modules/unictype/category-name-tests (Files): Likewise.
18770         * modules/unictype/category-none-tests (Files): Likewise.
18771         * modules/unictype/category-of-tests (Files): Likewise.
18772         * modules/unictype/category-or-tests (Files): Likewise.
18773         * modules/unictype/category-test-withtable-tests (Files): Likewise.
18774         * modules/unictype/combining-class-tests (Files): Likewise.
18775         * modules/unictype/ctype-alnum-tests (Files): Likewise.
18776         * modules/unictype/ctype-alpha-tests (Files): Likewise.
18777         * modules/unictype/ctype-blank-tests (Files): Likewise.
18778         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
18779         * modules/unictype/ctype-digit-tests (Files): Likewise.
18780         * modules/unictype/ctype-graph-tests (Files): Likewise.
18781         * modules/unictype/ctype-lower-tests (Files): Likewise.
18782         * modules/unictype/ctype-print-tests (Files): Likewise.
18783         * modules/unictype/ctype-punct-tests (Files): Likewise.
18784         * modules/unictype/ctype-space-tests (Files): Likewise.
18785         * modules/unictype/ctype-upper-tests (Files): Likewise.
18786         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
18787         * modules/unictype/decimal-digit-tests (Files): Likewise.
18788         * modules/unictype/digit-tests (Files): Likewise.
18789         * modules/unictype/mirror-tests (Files): Likewise.
18790         * modules/unictype/numeric-tests (Files): Likewise.
18791         * modules/unictype/property-alphabetic-tests (Files): Likewise.
18792         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
18793         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
18794         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
18795         Likewise.
18796         * modules/unictype/property-bidi-block-separator-tests (Files):
18797         Likewise.
18798         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
18799         Likewise.
18800         * modules/unictype/property-bidi-common-separator-tests (Files):
18801         Likewise.
18802         * modules/unictype/property-bidi-control-tests (Files): Likewise.
18803         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
18804         Likewise.
18805         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
18806         Likewise.
18807         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
18808         Likewise.
18809         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
18810         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
18811         Likewise.
18812         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
18813         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
18814         Likewise.
18815         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
18816         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
18817         * modules/unictype/property-bidi-segment-separator-tests (Files):
18818         Likewise.
18819         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
18820         * modules/unictype/property-byname-tests (Files): Likewise.
18821         * modules/unictype/property-combining-tests (Files): Likewise.
18822         * modules/unictype/property-composite-tests (Files): Likewise.
18823         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
18824         * modules/unictype/property-dash-tests (Files): Likewise.
18825         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
18826         * modules/unictype/property-default-ignorable-code-point-tests (Files):
18827         Likewise.
18828         * modules/unictype/property-deprecated-tests (Files): Likewise.
18829         * modules/unictype/property-diacritic-tests (Files): Likewise.
18830         * modules/unictype/property-extender-tests (Files): Likewise.
18831         * modules/unictype/property-format-control-tests (Files): Likewise.
18832         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
18833         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
18834         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
18835         * modules/unictype/property-hex-digit-tests (Files): Likewise.
18836         * modules/unictype/property-hyphen-tests (Files): Likewise.
18837         * modules/unictype/property-id-continue-tests (Files): Likewise.
18838         * modules/unictype/property-id-start-tests (Files): Likewise.
18839         * modules/unictype/property-ideographic-tests (Files): Likewise.
18840         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
18841         * modules/unictype/property-ids-trinary-operator-tests (Files):
18842         Likewise.
18843         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
18844         * modules/unictype/property-iso-control-tests (Files): Likewise.
18845         * modules/unictype/property-join-control-tests (Files): Likewise.
18846         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
18847         * modules/unictype/property-line-separator-tests (Files): Likewise.
18848         * modules/unictype/property-logical-order-exception-tests (Files):
18849         Likewise.
18850         * modules/unictype/property-lowercase-tests (Files): Likewise.
18851         * modules/unictype/property-math-tests (Files): Likewise.
18852         * modules/unictype/property-non-break-tests (Files): Likewise.
18853         * modules/unictype/property-not-a-character-tests (Files): Likewise.
18854         * modules/unictype/property-numeric-tests (Files): Likewise.
18855         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
18856         * modules/unictype/property-other-default-ignorable-code-point-tests
18857         (Files): Likewise.
18858         * modules/unictype/property-other-grapheme-extend-tests (Files):
18859         Likewise.
18860         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
18861         * modules/unictype/property-other-id-start-tests (Files): Likewise.
18862         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
18863         * modules/unictype/property-other-math-tests (Files): Likewise.
18864         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
18865         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
18866         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
18867         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
18868         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
18869         * modules/unictype/property-private-use-tests (Files): Likewise.
18870         * modules/unictype/property-punctuation-tests (Files): Likewise.
18871         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
18872         * modules/unictype/property-radical-tests (Files): Likewise.
18873         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
18874         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
18875         * modules/unictype/property-space-tests (Files): Likewise.
18876         * modules/unictype/property-terminal-punctuation-tests (Files):
18877         Likewise.
18878         * modules/unictype/property-test-tests (Files): Likewise.
18879         * modules/unictype/property-titlecase-tests (Files): Likewise.
18880         * modules/unictype/property-unassigned-code-value-tests (Files):
18881         Likewise.
18882         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
18883         * modules/unictype/property-uppercase-tests (Files): Likewise.
18884         * modules/unictype/property-variation-selector-tests (Files): Likewise.
18885         * modules/unictype/property-white-space-tests (Files): Likewise.
18886         * modules/unictype/property-xid-continue-tests (Files): Likewise.
18887         * modules/unictype/property-xid-start-tests (Files): Likewise.
18888         * modules/unictype/property-zero-width-tests (Files): Likewise.
18889         * modules/unictype/scripts-tests (Files): Likewise.
18890         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
18891         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
18892         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
18893         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
18894         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
18895         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
18896         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
18897         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
18898         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
18899         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
18900         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
18901         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
18902         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
18903         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
18904         * modules/uninorm/composition-tests (Files): Likewise.
18905         * modules/uninorm/decomposing-form-tests (Files): Likewise.
18906         * modules/uninorm/decomposition-tests (Files): Likewise.
18907         * modules/uninorm/filter-tests (Files): Likewise.
18908         * modules/uninorm/nfc-tests (Files): Likewise.
18909         * modules/uninorm/nfd-tests (Files): Likewise.
18910         * modules/uninorm/nfkc-tests (Files): Likewise.
18911         * modules/uninorm/nfkd-tests (Files): Likewise.
18912         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
18913         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
18914         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
18915         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
18916         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
18917         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
18918         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
18919         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
18920         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
18921         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
18922         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
18923         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
18924         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
18925         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
18926         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
18927         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
18928         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
18929         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
18930         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
18931         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
18932         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
18933         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
18934         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
18935         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
18936         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
18937         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
18938         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
18939         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
18940         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
18941         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
18942         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
18943         * modules/uniwidth/u8-width-tests (Files): Likewise.
18944         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
18945         * modules/uniwidth/u16-width-tests (Files): Likewise.
18946         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
18947         * modules/uniwidth/u32-width-tests (Files): Likewise.
18948         * modules/uniwidth/width-tests (Files): Likewise.
18949         * modules/unlink-tests (Files): Likewise.
18950         * modules/unsetenv-tests (Files): Likewise.
18951         * modules/usleep-tests (Files): Likewise.
18952         * modules/utimens-tests (Files): Likewise.
18953         * modules/utimensat-tests (Files): Likewise.
18954         * modules/vasnprintf-posix-tests (Files): Likewise.
18955         * modules/vasnprintf-tests (Files): Likewise.
18956         * modules/vasprintf-posix-tests (Files): Likewise.
18957         * modules/vasprintf-tests (Files): Likewise.
18958         * modules/vdprintf-posix-tests (Files): Likewise.
18959         * modules/vfprintf-posix-tests (Files): Likewise.
18960         * modules/vprintf-posix-tests (Files): Likewise.
18961         * modules/vsnprintf-posix-tests (Files): Likewise.
18962         * modules/vsnprintf-tests (Files): Likewise.
18963         * modules/vsprintf-posix-tests (Files): Likewise.
18964         * modules/wcrtomb-tests (Files): Likewise.
18965         * modules/wcsnrtombs-tests (Files): Likewise.
18966         * modules/wcsrtombs-tests (Files): Likewise.
18967         * modules/wctype-tests (Files): Likewise.
18968         * modules/wcwidth-tests (Files): Likewise.
18969         * modules/xmemdup0-tests (Files): Likewise.
18970         * modules/xprintf-posix-tests (Files): Likewise.
18971         * modules/xvasprintf-tests (Files): Likewise.
18972
18973 2009-12-24  Eric Blake  <ebb9@byu.net>
18974
18975         test-nanosleep: fix typo
18976         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
18977         patch.
18978         Reported by Bruno Haible.
18979
18980 2009-12-24  Bruno Haible  <bruno@clisp.org>
18981
18982         Reduce namespace pollution on glibc systems.
18983         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
18984         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
18985         systems.
18986         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
18987         <getopt.h> on glibc systems.
18988         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
18989         systems.
18990         * lib/fcntl.c: Include <unistd.h> here instead.
18991
18992 2009-12-24  Bruno Haible  <bruno@clisp.org>
18993
18994         * lib/stdlib.in.h (includes): Fix typo in today's commit.
18995
18996 2009-12-24  Eric Blake  <ebb9@byu.net>
18997
18998         tests: add signature checks
18999         * tests/signature.h (SIGNATURE_CHECK): New file.
19000         * modules/atexit-tests (Files): Use it.
19001         * modules/btowc-tests (Files): Likewise.
19002         * modules/canonicalize-lgpl-tests (Files): Likewise.
19003         * modules/ceilf-tests (Files): Likewise.
19004         * modules/ceill-tests (Files): Likewise.
19005         * modules/chown-tests (Files): Likewise.
19006         * modules/dprintf-posix-tests (Files): Likewise.
19007         * modules/dup2-tests (Files): Likewise.
19008         * modules/dup3-tests (Files): Likewise.
19009         * modules/duplocale-tests (Files): Likewise.
19010         * modules/fchdir-tests (Files): Likewise.
19011         * modules/fcntl-tests (Files): Likewise.
19012         * modules/fdopendir-tests (Files): Likewise.
19013         * modules/fflush-tests (Files): Likewise.
19014         * modules/flock-tests (Files): Likewise.
19015         * modules/floorf-tests (Files): Likewise.
19016         * modules/floorl-tests (Files): Likewise.
19017         * modules/fnmatch-tests (Files): Likewise.
19018         * modules/fopen-tests (Files): Likewise.
19019         * modules/fprintf-posix-tests (Files): Likewise.
19020         * modules/freopen-tests (Files): Likewise.
19021         * modules/frexp-nolibm-tests (Files): Likewise.
19022         * modules/frexp-tests (Files): Likewise.
19023         * modules/frexpl-nolibm-tests (Files): Likewise.
19024         * modules/frexpl-tests (Files): Likewise.
19025         * modules/fseek-tests (Files): Likewise.
19026         * modules/fseeko-tests (Files): Likewise.
19027         * modules/fsync-tests (Files): Likewise.
19028         * modules/ftell-tests (Files): Likewise.
19029         * modules/ftello-tests (Files): Likewise.
19030         * modules/futimens-tests (Files): Likewise.
19031         * modules/getaddrinfo-tests (Files): Likewise.
19032         * modules/getcwd-tests (Files): Likewise.
19033         * modules/getdelim-tests (Files): Likewise.
19034         * modules/getdtablesize-tests (Files): Likewise.
19035         * modules/getgroups-tests (Files): Likewise.
19036         * modules/gethostname-tests (Files): Likewise.
19037         * modules/getline-tests (Files): Likewise.
19038         * modules/getopt-posix-tests (Files): Likewise.
19039         * modules/gettimeofday-tests (Files): Likewise.
19040         * modules/glob-tests (Files): Likewise.
19041         * modules/iconv-tests (Files): Likewise.
19042         * modules/inet_ntop-tests (Files): Likewise.
19043         * modules/inet_pton-tests (Files): Likewise.
19044         * modules/isblank-tests (Files): Likewise.
19045         * modules/lchown-tests (Files): Likewise.
19046         * modules/ldexpl-tests (Files): Likewise.
19047         * modules/link-tests (Files): Likewise.
19048         * modules/linkat-tests (Files): Likewise.
19049         * modules/lseek-tests (Files): Likewise.
19050         * modules/lstat-tests (Files): Likewise.
19051         * modules/mbrtowc-tests (Files): Likewise.
19052         * modules/mbsinit-tests (Files): Likewise.
19053         * modules/mbsnrtowcs-tests (Files): Likewise.
19054         * modules/mbsrtowcs-tests (Files): Likewise.
19055         * modules/memchr-tests (Files): Likewise.
19056         * modules/memcmp-tests (Files): Likewise.
19057         * modules/memmem-tests (Files): Likewise.
19058         * modules/memrchr-tests (Files): Likewise.
19059         * modules/mkdir-tests (Files): Likewise.
19060         * modules/mkfifo-tests (Files): Likewise.
19061         * modules/mkfifoat-tests (Files): Likewise.
19062         * modules/mknod-tests (Files): Likewise.
19063         * modules/nanosleep-tests (Files): Likewise.
19064         * modules/nl_langinfo-tests (Files): Likewise.
19065         * modules/obstack-printf-tests (Files): Likewise.
19066         * modules/open-tests (Files): Likewise.
19067         * modules/openat-tests (Files): Likewise.
19068         * modules/perror-tests (Files): Likewise.
19069         * modules/pipe2-tests (Files): Likewise.
19070         * modules/poll-tests (Files): Likewise.
19071         * modules/popen-tests (Files): Likewise.
19072         * modules/posix_spawn-tests (Files): Likewise.
19073         * modules/posix_spawnp-tests (Files): Likewise.
19074         * modules/pread-tests (Files): Likewise.
19075         * modules/printf-posix-tests (Files): Likewise.
19076         * modules/pty-tests (Files): Likewise.
19077         * modules/random_r-tests (Files): Likewise.
19078         * modules/rawmemchr-tests (Files): Likewise.
19079         * modules/readlink-tests (Files): Likewise.
19080         * modules/remove-tests (Files): Likewise.
19081         * modules/rename-tests (Files): Likewise.
19082         * modules/renameat-tests (Files): Likewise.
19083         * modules/rmdir-tests (Files): Likewise.
19084         * modules/round-tests (Files): Likewise.
19085         * modules/roundf-tests (Files): Likewise.
19086         * modules/roundl-tests (Files): Likewise.
19087         * modules/select-tests (Files): Likewise.
19088         * modules/setenv-tests (Files): Likewise.
19089         * modules/sigaction-tests (Files): Likewise.
19090         * modules/sleep-tests (Files): Likewise.
19091         * modules/snprintf-posix-tests (Files): Likewise.
19092         * modules/snprintf-tests (Files): Likewise.
19093         * modules/sprintf-posix-tests (Files): Likewise.
19094         * modules/stat-tests (Files): Likewise.
19095         * modules/strcasestr-tests (Files): Likewise.
19096         * modules/strchrnul-tests (Files): Likewise.
19097         * modules/strerror-tests (Files): Likewise.
19098         * modules/strsignal-tests (Files): Likewise.
19099         * modules/strstr-tests (Files): Likewise.
19100         * modules/strtod-tests (Files): Likewise.
19101         * modules/strverscmp-tests (Files): Likewise.
19102         * modules/symlink-tests (Files): Likewise.
19103         * modules/symlinkat-tests (Files): Likewise.
19104         * modules/times-tests (Files): Likewise.
19105         * modules/trunc-tests (Files): Likewise.
19106         * modules/truncf-tests (Files): Likewise.
19107         * modules/truncl-tests (Files): Likewise.
19108         * modules/tsearch-tests (Files): Likewise.
19109         * modules/uname-tests (Files): Likewise.
19110         * modules/unlink-tests (Files): Likewise.
19111         * modules/unsetenv-tests (Files): Likewise.
19112         * modules/usleep-tests (Files): Likewise.
19113         * modules/utimensat-tests (Files): Likewise.
19114         * modules/vasprintf-tests (Files): Likewise.
19115         * modules/vdprintf-posix-tests (Files): Likewise.
19116         * modules/vfprintf-posix-tests (Files): Likewise.
19117         * modules/vprintf-posix-tests (Files): Likewise.
19118         * modules/vsnprintf-posix-tests (Files): Likewise.
19119         * modules/vsnprintf-tests (Files): Likewise.
19120         * modules/vsprintf-posix-tests (Files): Likewise.
19121         * modules/wcrtomb-tests (Files): Likewise.
19122         * modules/wcsnrtombs-tests (Files): Likewise.
19123         * modules/wcsrtombs-tests (Files): Likewise.
19124         * modules/wcwidth-tests (Files): Likewise.
19125         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
19126         * tests/test-isinf.c (isinf): Likewise.
19127         * tests/test-isnan.c (isnan): Likewise.
19128         * tests/test-signbit.c (signbit): Likewise.
19129         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
19130         declaration, either as macro or with correct signature.
19131         (select): Ensure function under test is declared with correct
19132         signature in correct header.
19133         * tests/test-atexit.c (atexit): Likewise.
19134         * tests/test-btowc.c (btowc): Likewise.
19135         * tests/test-canonicalize-lgpl.c (realpath)
19136         (canonicalize_file_name): Likewise.
19137         * tests/test-ceilf1.c (ceilf): Likewise.
19138         * tests/test-ceill.c (ceill): Likewise.
19139         * tests/test-chown.c (chown): Likewise.
19140         * tests/test-dprintf-posix.c (dprintf): Likewise.
19141         * tests/test-dup2.c (dup2): Likewise.
19142         * tests/test-dup3.c (dup3): Likewise.
19143         * tests/test-duplocale.c (duplocale): Likewise.
19144         * tests/test-fchdir.c (fchdir): Likewise.
19145         * tests/test-fchownat.c (fchownat): Likewise.
19146         * tests/test-fcntl.c (fcntl): Likewise.
19147         * tests/test-fdopendir.c (fdopendir): Likewise.
19148         * tests/test-fflush.c (fflush): Likewise.
19149         * tests/test-flock.c (flock): Likewise.
19150         * tests/test-floorf1.c (floorf): Likewise.
19151         * tests/test-floorl.c (floorl): Likewise.
19152         * tests/test-fnmatch.c (fnmatch): Likewise.
19153         * tests/test-fopen.c (fopen): Likewise.
19154         * tests/test-fprintf-posix.c (fprintf): Likewise.
19155         * tests/test-freopen.c (freopen): Likewise.
19156         * tests/test-frexp.c (frexp): Likewise.
19157         * tests/test-frexpl.c (frexpl): Likewise.
19158         * tests/test-fseek.c (fseek): Likewise.
19159         * tests/test-fseeko.c (fseeko): Likewise.
19160         * tests/test-fstatat.c (fstatat): Likewise.
19161         * tests/test-fsync.c (fsync): Likewise.
19162         * tests/test-ftell.c (ftell): Likewise.
19163         * tests/test-ftello.c (ftello): Likewise.
19164         * tests/test-futimens.c (futimens): Likewise.
19165         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
19166         (gai_strerror): Likewise.
19167         * tests/test-getcwd.c (getcwd): Likewise.
19168         * tests/test-getdelim.c (getdelim): Likewise.
19169         * tests/test-getdtablesize.c (getdtablesize): Likewise.
19170         * tests/test-getgroups.c (getgroups): Likewise.
19171         * tests/test-gethostname.c (gethostname): Likewise.
19172         * tests/test-getline.c (getline): Likewise.
19173         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
19174         Likewise.
19175         * tests/test-gettimeofday.c (gettimeofday): Likewise.
19176         * tests/test-glob.c (glob, globfree): Likewise.
19177         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
19178         * tests/test-inet_ntop.c (inet_ntop): Likewise.
19179         * tests/test-inet_pton.c (inet_pton): Likewise.
19180         * tests/test-isblank.c (isblank): Likewise.
19181         * tests/test-lchown.c (lchown): Likewise.
19182         * tests/test-ldexpl.c (ldexpl): Likewise.
19183         * tests/test-link.c (link): Likewise.
19184         * tests/test-linkat.c (linkat): Likewise.
19185         * tests/test-lseek.c (lseek): Likewise.
19186         * tests/test-lstat.c (lstat): Likewise.
19187         * tests/test-mbrtowc.c (mbrtowc): Likewise.
19188         * tests/test-mbsinit.c (mbsinit): Likewise.
19189         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
19190         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
19191         * tests/test-memchr.c (memchr): Likewise.
19192         * tests/test-memcmp.c (memcmp): Likewise.
19193         * tests/test-memmem.c (memmem): Likewise.
19194         * tests/test-memrchr.c (memrchr): Likewise.
19195         * tests/test-mkdir.c (mkdir): Likewise.
19196         * tests/test-mkdirat.c (mkdirat): Likewise.
19197         * tests/test-mkfifo.c (mkfifo): Likewise.
19198         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
19199         * tests/test-mknod.c (mknod): Likewise.
19200         * tests/test-nanosleep.c (nanosleep): Likewise.
19201         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
19202         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
19203         Likewise.
19204         * tests/test-open.c (open): Likewise.
19205         * tests/test-openat.c (openat): Likewise.
19206         * tests/test-perror.c (perror): Likewise.
19207         * tests/test-pipe2.c (pipe2): Likewise.
19208         * tests/test-poll.c (poll): Likewise.
19209         * tests/test-popen.c (popen, pclose): Likewise.
19210         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
19211         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
19212         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
19213         (posix_spawn_file_actions_destroy)
19214         (posix_spawn_file_actions_addclose)
19215         (posix_spawn_file_actions_addopen)
19216         (posix_spawn_file_actions_adddup2): Likewise.
19217         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
19218         * tests/test-pread.c (pread): Likewise.
19219         * tests/test-printf-posix.c (printf): Likewise.
19220         * tests/test-pty.c (openpty, forkpty): Likewise.
19221         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
19222         (random_r): Likewise.
19223         * tests/test-rawmemchr.c (rawmemchr): Likewise.
19224         * tests/test-readlink.c (readlink): Likewise.
19225         * tests/test-remove.c (remove): Likewise.
19226         * tests/test-rename.c (rename): Likewise.
19227         * tests/test-renameat.c (renameat): Likewise.
19228         * tests/test-rmdir.c (rmdir): Likewise.
19229         * tests/test-round1.c (round): Likewise.
19230         * tests/test-roundf1.c (roundf): Likewise.
19231         * tests/test-roundl.c (roundl): Likewise.
19232         * tests/test-setenv.c (setenv): Likewise.
19233         * tests/test-sigaction.c (sigaction): Likewise.
19234         * tests/test-sleep.c (sleep): Likewise.
19235         * tests/test-snprintf.c (snprintf): Likewise.
19236         * tests/test-sprintf-posix.c (sprintf): Likewise.
19237         * tests/test-stat.c (stat): Likewise.
19238         * tests/test-stpncpy.c (stpncpy): Likewise.
19239         * tests/test-strcasestr.c (strcasestr): Likewise.
19240         * tests/test-strchrnul.c (strchrnul): Likewise.
19241         * tests/test-strerror.c (strerror): Likewise.
19242         * tests/test-strsignal.c (strsignal): Likewise.
19243         * tests/test-strstr.c (strstr): Likewise.
19244         * tests/test-strtod.c (strtod): Likewise.
19245         * tests/test-strverscmp.c (strverscmp): Likewise.
19246         * tests/test-symlink.c (symlink): Likewise.
19247         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
19248         * tests/test-times.c (times): Likewise.
19249         * tests/test-trunc1.c (trunc): Likewise.
19250         * tests/test-truncf1.c (truncf): Likewise.
19251         * tests/test-truncl.c (truncl): Likewise.
19252         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
19253         Likewise.
19254         * tests/test-uname.c (uname): Likewise.
19255         * tests/test-unlink.c (unlink): Likewise.
19256         * tests/test-unlinkat.c (unlinkat): Likewise.
19257         * tests/test-unsetenv.c (unsetenv): Likewise.
19258         * tests/test-usleep.c (usleep): Likewise.
19259         * tests/test-utimensat.c (utimensat): Likewise.
19260         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
19261         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
19262         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
19263         * tests/test-vprintf-posix.c (vprintf): Likewise.
19264         * tests/test-vsnprintf.c (vsnprintf): Likewise.
19265         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
19266         * tests/test-wcrtomb.c (wcrtomb): Likewise.
19267         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
19268         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
19269         * tests/test-wcwidth.c (wcwidth): Likewise.
19270
19271         build: pull in conditional headers during GNULIB_POSIXCHECK
19272         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
19273         definitions from any conditionally-included headers.
19274         * lib/stdlib.in.h (includes): Likewise.
19275         * lib/unistd.in.h (includes): Likewise.
19276
19277 2009-12-24  Bruno Haible  <bruno@clisp.org>
19278
19279         * tests/test-argv-iter.c: Include header file being tested immediately
19280         after config.h.
19281         * tests/test-base64.c: Likewise.
19282         * tests/test-flock.c: Likewise.
19283         * tests/test-fsync.c: Likewise.
19284         * tests/test-getdate.c: Likewise.
19285         * tests/test-getndelim2.c: Likewise.
19286         * tests/test-isfinite.c: Likewise.
19287         * tests/test-isinf.c: Likewise.
19288         * tests/test-strerror.c: Likewise.
19289         * tests/test-strsignal.c: Likewise.
19290
19291 2009-12-23  Eric Blake  <ebb9@byu.net>
19292
19293         unistd: work around cygwin bug
19294         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
19295         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
19296         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
19297
19298 2009-12-23  Bruno Haible  <bruno@clisp.org>
19299
19300         localename: More tests.
19301         * tests/test-localename.c (SIZEOF): New macro.
19302         (categories): New variable.
19303         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
19304         test_locale_name_default): Add test w.r.t. thread locale.
19305         (test_locale_name_thread): New function.
19306         (main): Invoke it.
19307
19308         localename: Make aware of thread locale.
19309         * lib/localename.h (gl_locale_name_thread): New declaration.
19310         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
19311         behaviour with respect to thread locale.
19312         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
19313         <langinfo.h>, glthread/lock.h.
19314         (SIZE_BITS): New macro.
19315         (string_hash): New function.
19316         (struct hash_node): New type.
19317         (HASH_TABLE_SIZE): New macro.
19318         (struniq_hash_table, struniq_lock): New variables.
19319         (struniq): New function.
19320         (gl_locale_name_thread): New function.
19321         (gl_locale_name): Invoke it.
19322         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
19323         * modules/localename (Depends-on): Add lock.
19324         Reported by Mike Gran <spk121@yahoo.com>.
19325
19326 2009-12-23  Eric Blake  <ebb9@byu.net>
19327
19328         va-args: new module
19329         * modules/va-args: New file.
19330         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
19331         * MODULES.html.sh (Core language properties): Mention it.
19332
19333         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
19334         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
19335         named alias for __attribute__((__unused__)).
19336         * lib/chown.c: Update client.
19337         * lib/fchmodat.c: Likewise.
19338         * lib/fts.c: Likewise.
19339         * lib/getdate.y: Likewise.
19340         * lib/getgroups.c: Likewise.
19341         * lib/getopt.c: Likewise.
19342         * lib/getugroups.c: Likewise.
19343         * lib/mkdir.c: Likewise.
19344         * lib/mkfifo.c: Likewise.
19345         * lib/mkfifoat.c: Likewise.
19346         * lib/mknod.c: Likewise.
19347         * lib/mknodat.c: Likewise.
19348         * lib/readlink.c: Likewise.
19349         * lib/se-context.in.h: Likewise.
19350         * lib/se-selinux.in.h: Likewise.
19351         * lib/sockets.c: Likewise.
19352         * lib/symlink.c: Likewise.
19353         * lib/symlinkat.c: Likewise.
19354         * lib/unicodeio.c: Likewise.
19355         * lib/unistr.h: Likewise.
19356         * tests/test-areadlink.c: Likewise.
19357         * tests/test-areadlinkat.c: Likewise.
19358         * tests/test-filenamecat.c: Likewise.
19359         * tests/test-fseeko.c: Likewise.
19360         * tests/test-ftello.c: Likewise.
19361         * tests/test-getdate.c: Likewise.
19362         * tests/test-getgroups.c: Likewise.
19363         * tests/test-gethostname.c: Likewise.
19364         * tests/test-quotearg.c: Likewise.
19365         * tests/test-version-etc.c: Likewise.
19366         * tests/test-xalloc-die.c: Likewise.
19367         * tests/test-xfprintf-posix.c: Likewise.
19368         * tests/test-xprintf-posix.c: Likewise.
19369         * tests/test-xvasprintf.c: Likewise.
19370
19371         tests: avoid compiler warnings
19372         * tests/test-fcntl.c (main): Delete unused parameters.
19373         * tests/test-freopen-safer.c (main): Likewise.
19374         * tests/test-xalloc-die.c (main): Mark unused parameters.
19375         * tests/test-fseeko.c (main): Likewise.
19376         * tests/test-ftello.c (main): Likewise.
19377         * tests/test-nanosleep.c (main): Avoid declaration warning.
19378         * tests/test-sleep.c (main): Likewise.
19379         * tests/test-unsetenv.c (main): Silence warning about string
19380         literal.
19381         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
19382
19383 2009-12-23  Bruno Haible  <bruno@clisp.org>
19384
19385         * tests/test-localename.c (test_locale_name): New function, extracted
19386         from main. Also test mixed situations.
19387         (test_locale_name_posix, test_locale_name_environ,
19388         test_locale_name_default): New functions.
19389         (main): Invoke them all.
19390         * modules/localename-tests (configure.ac): Test for newlocale.
19391
19392 2009-12-23  Bruno Haible  <bruno@clisp.org>
19393
19394         unistd: Ensure getcwd gets declared before being overridden.
19395         * lib/unistd.in.h: Conditionally include <io.h>.
19396
19397 2009-12-22  Bruno Haible  <bruno@clisp.org>
19398
19399         wchar: Diagnose broken combination of glibc and gcc versions and flags.
19400         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
19401         (gl_WCHAR_H): Invoke it.
19402         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
19403         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
19404         Reported by Karl Berry <karl@freefriends.org>.
19405
19406 2009-12-22  Eric Blake  <ebb9@byu.net>
19407
19408         math, unistd: avoid redundant includes
19409         * lib/math.in.h (isnan): No need to re-include <math.h>.
19410         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
19411
19412         getsubopt: work around cygwin bug
19413         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
19414         avoid conflicting with system getsubopt.
19415         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
19416         bug.
19417
19418         getopt: synchronize from glibc
19419         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
19420         parameter order.  Adjust all callers.
19421         (_getopt_internal_r, main): Adjust quoting in error messages.
19422         Drop considerations for outdated POSIX 1003.2 error message.
19423         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
19424         callers.
19425         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
19426
19427         test-getopt: test stderr behavior
19428         * modules/getopt-posix-tests (Depends-on): Add dup2.
19429         * tests/test-getopt.c (ASSERT): Avoid stderr.
19430         (main): Move stderr to a temporary file.
19431         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
19432         Instead, add parameter to inform caller if output occurred.
19433         (test_getopt): Adjust all existing tests to expect silence, and
19434         add new tests of leading ":".
19435         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
19436         glibc shortcomings with leading "-:" or "+:" in optstring.
19437         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19438         Likewise.
19439         * doc/posix-functions/getopt.texi (getopt): Likewise.
19440
19441         test-getopt: enhance test
19442         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
19443         supports optind=0.
19444         * tests/test-getopt.c (OPTIND_MIN): Move...
19445         * tests/test-getopt.h (OPTIND_MIN): ...here.
19446         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
19447         Require that optind=0 works, since modern BSD supports it in
19448         addition to optreset, and since coreutils expects it.
19449         (test_getopt_long_only): New test.
19450         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
19451         glibc shortcomings with 'W;', and enforcement of optind=0.
19452         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19453         Likewise.
19454
19455 2009-12-21  Bruno Haible  <bruno@clisp.org>
19456
19457         localename: Improvements for MacOS X and Cygwin.
19458         * lib/localename.h (gl_locale_name_environ): New declaration.
19459         * lib/localename.c (gl_locale_name_environ): New function, extracted from
19460         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
19461         (gl_locale_name_posix): Invoke it.
19462         (gl_locale_name_default): Add comments. Use Windows native API also on
19463         Cygwin.
19464
19465 2009-12-21  Bruno Haible  <bruno@clisp.org>
19466
19467         Update list of Win32 locale ids.
19468         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
19469         (LANG_SAMI): Renamed from LANG_SAAMI.
19470         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
19471         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
19472         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
19473         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
19474         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
19475         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
19476         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
19477         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
19478         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
19479         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
19480         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
19481         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
19482         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
19483         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
19484         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
19485         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
19486         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
19487         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
19488         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
19489         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
19490         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
19491         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
19492         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
19493         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
19494         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
19495         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
19496         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
19497         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
19498         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
19499         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
19500         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
19501         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
19502         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
19503         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
19504         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
19505         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
19506         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
19507         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
19508         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
19509         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
19510         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
19511         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
19512         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
19513         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
19514         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
19515         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
19516         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
19517         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
19518         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
19519         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
19520         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
19521         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
19522         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
19523         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
19524         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
19525         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
19526         Add more languages and countries for Sami, Sorbian. Add more countries
19527         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
19528         for Pashto. Change country for Syriac, Tswana.
19529
19530 2009-12-21  Eric Blake  <ebb9@byu.net>
19531
19532         test-utimens: avoid spurious failure
19533         * tests/test-chown.h (nap): Factor...
19534         * tests/nap.h: ...into new file.
19535         * tests/test-lchown.h (nap): Avoid duplication.
19536         * tests/test-utimens-common.h (nap): Use shared implementation,
19537         necessary on file systems with 1-second resolution.
19538         * modules/chown-tests (Files): Include new file.
19539         * modules/fdutimensat-tests (Files): Likewise.
19540         * modules/futimens-tests (Files): Likewise.
19541         * modules/lchown-tests (Files): Likewise.
19542         * modules/openat-tests (Files): Likewise.
19543         * modules/utimens-tests (Files): Likewise.
19544         * modules/utimensat-tests (Files): Likewise.
19545
19546 2009-12-19  Eric Blake  <ebb9@byu.net>
19547
19548         futimens, utimensat: work around Linux bug
19549         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
19550         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19551         * lib/utimensat.c (rpl_utimensat): Work around it.
19552         * lib/futimens.c (rpl_futimens): Adjust comment.
19553
19554         utimens: work around Linux ctime bug
19555         * lib/utimens.c (detect_ctime_bug): New helper function.
19556         (update_timespec): Differentiate between workaround needed for
19557         this bug vs. what is needed for systems that lack utimensat.
19558         (fdutimens, lutimens): Work around bug.
19559
19560         utimens: check for ctime update
19561         * tests/test-utimens-common.h (check_ctime): Define.
19562         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
19563         * tests/test-futimens.h (test_futimens): Likewise.
19564         * tests/test-lutimens.h (test_lutimens): Likewise.
19565         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19566         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
19567
19568 2009-12-19  Bruno Haible  <bruno@clisp.org>
19569
19570         dprintf-posix: Check against memory leak fixed on 2009-12-15.
19571         * tests/test-dprintf-posix2.sh: New file.
19572         * tests/test-dprintf-posix2.c: New file.
19573         * modules/dprintf-posix-tests (Files): Add them.
19574         (configure.ac): Check for getrlimit and setrlimit.
19575         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
19576
19577 2009-12-19  Bruno Haible  <bruno@clisp.org>
19578
19579         fprintf-posix: Check against memory leak fixed on 2009-12-15.
19580         * tests/test-fprintf-posix3.sh: New file.
19581         * tests/test-fprintf-posix3.c: New file.
19582         * modules/fprintf-posix-tests (Files): Add them.
19583         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
19584
19585 2009-12-19  Eric Blake  <ebb9@byu.net>
19586
19587         dirfd: fix prototype
19588         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
19589         * lib/dirfd.c (dirfd): Likewise.
19590
19591         canonicalize: reduce memory usage
19592         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
19593         allocation to size.
19594         Reported by Solar Designer <solar@openwall.com>.
19595
19596 2009-12-19  Bruno Haible  <bruno@clisp.org>
19597
19598         New module attribute 'Applicability'.
19599         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
19600         * gnulib-tool: New option --extract-applicability.
19601         (func_usage): Document it.
19602         (sed_extract_prog): Recognize it.
19603         (func_get_applicability): New function.
19604         (func_import): Generalize handling of 'link-warning' module.
19605         * modules/link-warning (Applicability): New section.
19606         * modules/arg-nonnull (Applicability): New section.
19607         Repoted by Simon Josefsson <simon@josefsson.org>.
19608
19609 2009-12-19  Bruno Haible  <bruno@clisp.org>
19610
19611         fflush: tweak
19612         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
19613         * lib/fseeko.c (rpl_fseeko): Likewise.
19614
19615 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
19616
19617         * lib/gl_list.h: Fix typo in comment.
19618
19619 2009-12-16  Eric Blake  <ebb9@byu.net>
19620
19621         fcntl: use to simplify other modules
19622         * modules/cloexec (Depends-on): Add fcntl.
19623         * modules/fchdir (Depends-on): Likewise.
19624         * modules/fd-safer-flag (Depends-on): Likewise.
19625         * modules/unistd-safer (Depends-on): Likewise.
19626         * modules/dup3 (configure.ac): Set module indicator.
19627         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
19628         missing.
19629         * lib/fchdir.c (_gl_register_dup): Fix comment.
19630         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
19631         * lib/dup-safer.c (dup_safer): Likewise.
19632         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
19633         * lib/dup3.c (dup3): Likewise.
19634         * tests/test-fchdir.c (main): Enhance test.
19635         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
19636
19637         fcntl: port portions of fcntl to mingw
19638         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
19639         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
19640         replacement for mingw.
19641         * modules/fcntl (Description): Update.
19642         (Depends-on): Add dup2.
19643         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
19644         * modules/fcntl-h (Makefile.am): Substitute it.
19645         * lib/fcntl.in.h (fcntl): Update declaration.
19646         (F_DUPFD, F_GETFD): New macros, when needed.
19647         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
19648         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
19649         * tests/test-fcntl.c (check_flags, main): Enhance test for items
19650         we now guarantee.
19651
19652         fcntl: work around cygwin bug in F_DUPFD
19653         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
19654         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
19655         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
19656         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
19657         * doc/posix-functions/fcntl.texi (fcntl): Document it.
19658
19659         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
19660         * modules/fcntl (Files): List new files.
19661         (configure.ac): Run a test.
19662         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
19663         * lib/fcntl.c (rpl_fcntl): Likewise.
19664         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
19665         (gl_FCNTL_H): Always replace fcntl.h.
19666         * modules/fcntl-h (Makefile.am): Substitute witnesses.
19667         * lib/fcntl.in.h (fcntl): Declare replacement.
19668         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
19669         needed, plus a witness.
19670         * doc/posix-functions/fcntl.texi (fcntl): Document this.
19671         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
19672         * tests/test-fcntl.c: New file.
19673         * modules/fcntl-tests: Likewise.
19674
19675         binary-io: avoid potential compilation warning
19676         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
19677         directives.
19678
19679         fflush: avoid compilation error on NetBSD
19680         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
19681         between off_t and fpos_t, since the latter is sometimes a struct.
19682         * lib/fseeko.c (rpl_fseeko): Likewise.
19683         Reported by Alexander Nasonov <alnsn@yandex.ru>.
19684
19685 2009-12-15  Eric Blake  <ebb9@byu.net>
19686
19687         fcntl-h, stdio, sys_ioctl: fix declarations
19688         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
19689         function must not take arguments.
19690         * lib/sys_ioctl.in.h (ioctl): Likewise.
19691         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
19692         (open): Add a link warning.
19693
19694 2009-12-15  Jim Meyering  <meyering@redhat.com>
19695
19696         areadlink, areadlink-with-size: relax license to LGPLv2+
19697         * modules/areadlink (License): Relax to LGPLv2+.
19698         * modules/areadlink-with-size (License): Likewise.
19699
19700 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
19701             Bruno Haible  <bruno@clisp.org>
19702
19703         *printf: Fix memory leak.
19704         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
19705         * lib/vfprintf.c (vfprintf): Likewise.
19706         * lib/dprintf.c (dprintf): Likewise.
19707         * lib/vdprintf.c (vdprintf): Likewise.
19708
19709 2009-12-14  Eric Blake  <ebb9@byu.net>
19710
19711         accept4: adjust module dependencies
19712         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
19713
19714         utimens: one more try at avoiding compiler warning
19715         * lib/utimens.c (lutimens): Lower scope of result.
19716
19717 2009-12-13  Bruno Haible  <bruno@clisp.org>
19718
19719         Move the malloc checking from module 'list' to new module 'xlist'.
19720         * modules/xlist: New file.
19721         * lib/gl_xlist.h: New file.
19722         * lib/gl_xlist.c: New file.
19723         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
19724         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
19725         gl_list_add_last, gl_list_add_before, gl_list_add_after,
19726         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
19727         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
19728         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
19729         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
19730         gl_sortedlist_nx_add): New declarations.
19731         (struct gl_list_implementation): Rename and change methods accordingly.
19732         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
19733         (gl_list_nx_create): Renamed from gl_list_create.
19734         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
19735         (gl_list_nx_set_at): Renamed from gl_list_set_at.
19736         (gl_list_nx_add_first): Renamed from gl_list_add_first.
19737         (gl_list_nx_add_last): Renamed from gl_list_add_last.
19738         (gl_list_nx_add_before): Renamed from gl_list_add_before.
19739         (gl_list_nx_add_after): Renamed from gl_list_add_after.
19740         (gl_list_nx_add_at): Renamed from gl_list_add_at.
19741         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
19742         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
19743         gl_list_create_empty.
19744         (gl_list_nx_create): Renamed from gl_list_create.
19745         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
19746         (gl_list_nx_set_at): Renamed from gl_list_set_at.
19747         (gl_list_nx_add_first): Renamed from gl_list_add_first.
19748         (gl_list_nx_add_last): Renamed from gl_list_add_last.
19749         (gl_list_nx_add_before): Renamed from gl_list_add_before.
19750         (gl_list_nx_add_after): Renamed from gl_list_add_after.
19751         (gl_list_nx_add_at): Renamed from gl_list_add_at.
19752         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
19753         * lib/gl_array_list.c: Don't include xalloc.h.
19754         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
19755         NULL upon out-of-memory.
19756         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
19757         out-of-memory.
19758         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
19759         Change return type to 'int'.
19760         (gl_array_nx_set_at): Renamed from gl_array_set_at.
19761         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
19762         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
19763         upon out-of-memory.
19764         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
19765         upon out-of-memory.
19766         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
19767         upon out-of-memory.
19768         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
19769         upon out-of-memory.
19770         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
19771         out-of-memory.
19772         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
19773         Update.
19774         (gl_array_list_implementation): Update.
19775         * lib/gl_carray_list.c: Don't include xalloc.h.
19776         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
19777         Return NULL upon out-of-memory.
19778         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
19779         out-of-memory.
19780         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
19781         Change return type to 'int'.
19782         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
19783         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
19784         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
19785         upon out-of-memory.
19786         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
19787         upon out-of-memory.
19788         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
19789         out-of-memory.
19790         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
19791         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
19792         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
19793         Update.
19794         (gl_carray_list_implementation): Update.
19795         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
19796         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
19797         gl_linked_create_empty. Return NULL upon out-of-memory.
19798         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
19799         out-of-memory.
19800         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
19801         Change return type to 'int'. Return -1 upon out-of-memory.
19802         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
19803         out-of-memory.
19804         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
19805         upon out-of-memory.
19806         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
19807         upon out-of-memory.
19808         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
19809         NULL upon out-of-memory.
19810         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
19811         upon out-of-memory.
19812         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
19813         out-of-memory.
19814         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
19815         Update.
19816         * lib/gl_linked_list.c: Don't include xalloc.h.
19817         (gl_linked_list_implementation): Update.
19818         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
19819         (add_to_bucket): Change return type to 'int'.
19820         (gl_linkedhash_list_implementation): Update.
19821         * lib/gl_anytree_list1.h (free_subtree): New function.
19822         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
19823         gl_tree_create_empty. Return NULL upon out-of-memory.
19824         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
19825         Change return type to 'int'. Return -1 upon out-of-memory.
19826         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
19827         out-of-memory.
19828         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
19829         (gl_tree_remove_node): New function, moved here from
19830         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
19831         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
19832         Update.
19833         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
19834         malloc, not xmalloc. Return NULL upon out-of-memory.
19835         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
19836         out-of-memory.
19837         (gl_tree_remove_node_from_tree): New function, extracted from
19838         gl_tree_remove_node.
19839         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
19840         upon out-of-memory.
19841         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
19842         out-of-memory.
19843         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
19844         upon out-of-memory.
19845         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
19846         upon out-of-memory.
19847         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
19848         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
19849         not xmalloc. Return NULL upon out-of-memory.
19850         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
19851         out-of-memory.
19852         (gl_tree_remove_node_from_tree): New function, extracted from
19853         gl_tree_remove_node.
19854         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
19855         upon out-of-memory.
19856         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
19857         out-of-memory.
19858         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
19859         upon out-of-memory.
19860         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
19861         upon out-of-memory.
19862         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
19863         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
19864         gl_anytree_list1.h before gl_anyavltree_list2.h.
19865         (gl_avltree_list_implementation): Update.
19866         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
19867         gl_anytree_list1.h before gl_anyavltree_list2.h.
19868         (gl_rbtree_list_implementation): Update.
19869         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
19870         Change return type to 'int'. Return -1 upon out-of-memory. Use
19871         __builtin_expect.
19872         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
19873         (gl_avltreehash_list_implementation): Update.
19874         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
19875         (gl_rbtreehash_list_implementation): Update.
19876         * modules/array-list (Depends-on): Remove xalloc.
19877         * modules/carray-list (Depends-on): Likewise.
19878         * modules/linked-list (Depends-on): Likewise.
19879         * modules/linkedhash-list (Depends-on): Likewise.
19880         * modules/avltree-list (Depends-on): Likewise.
19881         * modules/rbtree-list (Depends-on): Likewise.
19882         * modules/avltreehash-list (Depends-on): Likewise.
19883         * modules/rbtreehash-list (Depends-on): Likewise.
19884
19885         * modules/xsublist: New file.
19886         * lib/gl_xsublist.h: New file.
19887         * lib/gl_xsublist.c: New file.
19888         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
19889         (gl_sublist_nx_create): New declaration.
19890         * lib/gl_sublist.c: Don't include xalloc.h.
19891         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
19892         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
19893         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
19894         Change return type to 'int'. Return -1 upon out-of-memory.
19895         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
19896         upon out-of-memory.
19897         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
19898         NULL upon out-of-memory.
19899         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
19900         upon out-of-memory.
19901         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
19902         NULL upon out-of-memory.
19903         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
19904         NULL upon out-of-memory.
19905         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
19906         upon out-of-memory.
19907         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
19908         (gl_sublist_list_implementation): Update.
19909         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
19910         upon out-of-memory.
19911         * modules/sublist (Depends-on): Remove xalloc.
19912
19913         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
19914         * tests/test-carray_list.c: Likewise.
19915         * tests/test-linked_list.c: Likewise.
19916         * tests/test-linkedhash_list.c: Likewise.
19917         * tests/test-avltree_list.c: Likewise.
19918         * tests/test-rbtree_list.c: Likewise.
19919         * tests/test-avltreehash_list.c: Likewise.
19920         * tests/test-rbtreehash_list.c: Likewise.
19921         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
19922         * modules/carray-list-tests (Makefile.am): Likewise.
19923         * modules/linked-list-tests (Makefile.am): Likewise.
19924         * modules/linkedhash-list-tests (Makefile.am): Likewise.
19925         * modules/avltree-list-tests (Makefile.am): Likewise.
19926         * modules/rbtree-list-tests (Makefile.am): Likewise.
19927         * modules/avltreehash-list-tests (Makefile.am): Likewise.
19928         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
19929
19930         * NEWS: Mention the changes.
19931
19932         * lib/clean-temp.c: Include gl_xlist.h.
19933         * modules/clean-temp (Depends-on): Add xlist.
19934
19935         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
19936         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
19937
19938         * tests/test-array_oset.c: Include gl_xlist.h.
19939         * modules/array-oset-tests (Depends-on): Add xlist.
19940
19941         Reported by José E. Marchesi <jemarch@gnu.org>.
19942
19943 2009-12-13  Bruno Haible  <bruno@clisp.org>
19944
19945         Move the malloc checking from module 'oset' to new module 'xoset'.
19946         * modules/xoset: New file.
19947         * lib/gl_xoset.h: New file.
19948         * lib/gl_xoset.c: New file.
19949         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
19950         declarations.
19951         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
19952         (struct gl_oset_implementation): Rename and change methods accordingly.
19953         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
19954         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
19955         'int'. Mark as __warn_unused_result__.
19956         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
19957         gl_oset_create_empty.
19958         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
19959         'int'.
19960         * lib/gl_array_oset.c: Don't include xalloc.h.
19961         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
19962         malloc, not xmalloc.
19963         (grow): Change return type to 'int'. Don't call xalloc_die.
19964         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
19965         to 'int'.
19966         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
19967         'int'.
19968         (gl_array_oset_implementation): Update.
19969         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
19970         gl_tree_create_empty.
19971         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
19972         'int'.
19973         * lib/gl_avltree_oset.c: Don't include xalloc.h.
19974         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
19975         xmalloc.
19976         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
19977         not xmalloc.
19978         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
19979         xmalloc.
19980         (gl_avltree_oset_implementation): Update.
19981         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
19982         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
19983         xmalloc.
19984         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
19985         not xmalloc.
19986         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
19987         xmalloc.
19988         (gl_rbtree_oset_implementation): Update.
19989         * modules/array-oset (Depends-on): Remove xalloc.
19990         * modules/avltree-oset (Depends-on): Likewise.
19991         * modules/rbtree-oset (Depends-on): Likewise.
19992         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
19993         * tests/test-avltree_oset.c: Likewise.
19994         * tests/test-rbtree_oset.c: Likewise.
19995         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
19996         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
19997         * modules/rbtree-oset-tests (Makefile.am): Likewise.
19998         * NEWS: Mention the change.
19999
20000 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
20001
20002         maint.mk: allow a project to override release-prep commands
20003         * top/maint.mk (alpha, beta, stable): Move release-preparatory
20004         commands into a new rule.
20005         (release-prep): New rule.
20006         (release-prep-hook): New overridable variable.
20007
20008 2009-12-13  Bruno Haible  <bruno@clisp.org>
20009
20010         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
20011
20012 2009-12-13  Jim Meyering  <meyering@redhat.com>
20013
20014         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
20015         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
20016
20017 2009-12-12  Bruno Haible  <bruno@clisp.org>
20018
20019         duplocale: Tweak.
20020         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
20021
20022 2009-12-12  Karl Berry  <karl@gnu.org>
20023
20024         * config/srclist.txt (strtoll.c): tab changes, no more sync.
20025
20026 2009-12-12  Bruno Haible  <bruno@clisp.org>
20027
20028         * m4/po.m4: Undo incorrect untabification.
20029
20030 2009-12-12  Bruno Haible  <bruno@clisp.org>
20031
20032         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
20033         * modules/c-strtod (Depends-on): Add locale.
20034         * modules/c-strtold (Depends-on): Likewise.
20035
20036 2009-12-12  Bruno Haible  <bruno@clisp.org>
20037
20038         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
20039
20040 2009-12-11  Eric Blake  <ebb9@byu.net>
20041
20042         setenv: relax requirement in light of POSIX ruling
20043         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
20044         not NULL.
20045         * tests/test-setenv.c (main): Relax test.
20046         * tests/test-unsetenv.c (main): Likewise.
20047         * doc/posix-functions/setenv.texi (setenv): Document this.
20048         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
20049
20050 2009-12-11  Bruno Haible  <bruno@clisp.org>
20051
20052         New module 'fd-safer-flag'.
20053         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
20054         * lib/dup-safer.c (dup_safer_flag): Remove function.
20055         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
20056         * lib/fd-safer.c (fd_safer_flag): Remove function.
20057         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
20058         * modules/cloexec (configure.ac): Drop indicator macro.
20059         * modules/fd-safer-flag: New file.
20060         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
20061         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
20062         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
20063
20064 2009-12-11  Bruno Haible  <bruno@clisp.org>
20065
20066         Tests for module 'nl_langinfo'.
20067         * modules/nl_langinfo-tests: New file.
20068         * tests/test-nl_langinfo.sh: New file.
20069         * tests/test-nl_langinfo.c: New file.
20070
20071         New module 'nl_langinfo'.
20072         * lib/nl_langinfo.c: New file.
20073         * m4/nl_langinfo.m4: New file.
20074         * modules/nl_langinfo: New file.
20075         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
20076
20077 2009-12-11  Bruno Haible  <bruno@clisp.org>
20078
20079         Tests for module 'langinfo'.
20080         * modules/langinfo-tests: New file.
20081         * tests/test-langinfo.c: New file.
20082
20083         New module 'langinfo'.
20084         * lib/langinfo.in.h: New file.
20085         * m4/langinfo_h.m4: New file.
20086         * modules/langinfo: New file.
20087         * doc/posix-headers/langinfo.texi: Mention the new module.
20088
20089 2009-12-11  Bruno Haible  <bruno@clisp.org>
20090
20091         * lib/config.charset: Untabify.
20092
20093 2009-12-11  Bruno Haible  <bruno@clisp.org>
20094
20095         * modules/unistd-safer (configure.ac): Drop indicator macro.
20096
20097 2009-12-11  Bruno Haible  <bruno@clisp.org>
20098
20099         Move pipe2-safer code to its own file.
20100         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
20101         * lib/pipe-safer.c (pipe2_safer): Remove function.
20102         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
20103         (Makefile.am): Add it to lib_SOURCES.
20104
20105 2009-12-10  Bruno Haible  <bruno@clisp.org>
20106
20107         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
20108
20109 2009-12-10  Bruno Haible  <bruno@clisp.org>
20110
20111         Declare which arguments expect non-NULL values, for GCC and clang.
20112         * build-aux/arg-nonnull.h: New file.
20113         * modules/arg-nonnull: New file.
20114         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
20115         (inet_ntop, inet_pton): Use it.
20116         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
20117         (closedir, dirfd, opendir, scandir, alphasort): Use it.
20118         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
20119         (open, openat): Use it.
20120         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
20121         (fnmatch): Use it.
20122         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
20123         (getopt, getopt_long, getopt_long_only): Use it.
20124         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
20125         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
20126         Use it.
20127         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
20128         (iconv_open): Use it.
20129         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
20130         (strtoimax, strtoumax): Use it.
20131         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
20132         (duplocale): Use it.
20133         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
20134         (frexp, frexpl): Use it.
20135         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
20136         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
20137         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
20138         (tsearch, tfind, tdelete, twalk): Use it.
20139         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
20140         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
20141         sigpending): Use it.
20142         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
20143         (posix_spawn, posix_spawnp, posix_spawnattr_init,
20144         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
20145         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
20146         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
20147         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
20148         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
20149         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
20150         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
20151         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
20152         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
20153         Use it.
20154         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
20155         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
20156         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
20157         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
20158         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
20159         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
20160         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
20161         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
20162         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
20163         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
20164         strtoull, unsetenv): Use it.
20165         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
20166         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
20167         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
20168         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
20169         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
20170         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
20171         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
20172         (strcasecmp, strncasecmp): Use it.
20173         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
20174         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
20175         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
20176         rpl_setsockopt): Use it.
20177         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
20178         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
20179         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
20180         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
20181         (gettimeofday): Use it.
20182         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
20183         (times): Use it.
20184         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
20185         (uname): Use it.
20186         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
20187         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
20188         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
20189         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
20190         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
20191         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
20192         unlinkat, write): Use it.
20193         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
20194         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
20195         * lib/argv-iter.h: Include arg-nonnull.h.
20196         (_ATTRIBUTE_NONNULL_): Remove macro.
20197         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
20198         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
20199         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
20200         optimization.
20201         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
20202         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
20203         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
20204         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
20205         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
20206         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
20207         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
20208         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
20209         * modules/arpa_inet (Depends-on): Add arg-nonnull.
20210         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
20211         * modules/dirent (Depends-on): Add arg-nonnull.
20212         (Makefile.am): Insert arg-nonnull.h into dirent.h.
20213         * modules/fcntl-h (Depends-on): Add arg-nonnull.
20214         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
20215         * modules/fnmatch (Depends-on): Add arg-nonnull.
20216         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
20217         * modules/getopt-posix (Depends-on): Add arg-nonnull.
20218         (Makefile.am): Insert arg-nonnull.h into getopt.h.
20219         * modules/glob (Depends-on): Add arg-nonnull.
20220         (Makefile.am): Insert arg-nonnull.h into glob.h.
20221         * modules/iconv_open (Depends-on): Add arg-nonnull.
20222         (Makefile.am): Insert arg-nonnull.h into iconv.h.
20223         * modules/inttypes (Depends-on): Add arg-nonnull.
20224         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
20225         * modules/locale (Depends-on): Add arg-nonnull.
20226         (Makefile.am): Insert arg-nonnull.h into locale.h.
20227         * modules/math (Depends-on): Add arg-nonnull.
20228         (Makefile.am): Insert arg-nonnull.h into math.h.
20229         * modules/netdb (Depends-on): Add arg-nonnull.
20230         (Makefile.am): Insert arg-nonnull.h into netdb.h.
20231         * modules/search (Depends-on): Add arg-nonnull.
20232         (Makefile.am): Insert arg-nonnull.h into search.h.
20233         * modules/signal (Depends-on): Add arg-nonnull.
20234         (Makefile.am): Insert arg-nonnull.h into signal.h.
20235         * modules/spawn (Depends-on): Add arg-nonnull.
20236         (Makefile.am): Insert arg-nonnull.h into spawn.h.
20237         * modules/stdio (Depends-on): Add arg-nonnull.
20238         (Makefile.am): Insert arg-nonnull.h into stdio.h.
20239         * modules/stdlib (Depends-on): Add arg-nonnull.
20240         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
20241         * modules/string (Depends-on): Add arg-nonnull.
20242         (Makefile.am): Insert arg-nonnull.h into string.h.
20243         * modules/strings (Depends-on): Add arg-nonnull.
20244         (Makefile.am): Insert arg-nonnull.h into strings.h.
20245         * modules/sys_socket (Depends-on): Add arg-nonnull.
20246         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
20247         * modules/sys_stat (Depends-on): Add arg-nonnull.
20248         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
20249         * modules/sys_time (Depends-on): Add arg-nonnull.
20250         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
20251         * modules/sys_times (Depends-on): Add arg-nonnull.
20252         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
20253         * modules/sys_utsname (Depends-on): Add arg-nonnull.
20254         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
20255         * modules/time (Depends-on): Add arg-nonnull.
20256         (Makefile.am): Insert arg-nonnull.h into time.h.
20257         * modules/unistd (Depends-on): Add arg-nonnull.
20258         (Makefile.am): Insert arg-nonnull.h into unistd.h.
20259         * modules/wchar (Depends-on): Add arg-nonnull.
20260         (Makefile.am): Insert arg-nonnull.h into wchar.h.
20261         * modules/argv-iter (Depends-on): Add arg-nonnull.
20262         * tests/test-canonicalize.c (null_ptr): New function.
20263         (main): Use it.
20264         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
20265         (main): Use it.
20266         * tests/test-memmem.c (null_ptr): New function.
20267         (main): Use it.
20268         Reported by Jim Meyering.
20269
20270 2009-12-10  Bruno Haible  <bruno@clisp.org>
20271
20272         Use spaces for indentation, not tabs.
20273         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
20274         * m4/*.m4: Untabify.
20275         * build-aux/*.h: Untabify.
20276         * tests/**/*.[hc]: Untabify.
20277         * README: New section "Indent with spaces, not TABs", based on
20278         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
20279         * NEWS: Mention the change.
20280
20281 2009-12-10  Bruno Haible  <bruno@clisp.org>
20282
20283         pty test: Fix link error.
20284         * modules/pty-tests (Makefile.am): Add the default LDADD value to
20285         test_pty_LDADD.
20286
20287 2009-12-07  Simon Josefsson  <simon@josefsson.org>
20288
20289         * modules/pty: New file.
20290         * modules/pty-tests: New file.
20291         * m4/pty.m4: New file.
20292         * tests/test-pty.c: New file.
20293         * doc/glibc-headers/pty.texi: Modified.
20294         * doc/glibc-functions/forkpty.texi: Modified.
20295         * doc/glibc-functions/openpty.texi: Modified.
20296
20297 2009-12-10  Bruno Haible  <bruno@clisp.org>
20298
20299         Avoid syntax error in C++ mode.
20300         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
20301
20302 2009-12-10  Bruno Haible  <bruno@clisp.org>
20303
20304         Use sed with option -e.
20305         * gnulib-tool (func_version, func_emit_copyright_notice,
20306         func_emit_initmacro_end, func_import, func_create_testdir): Pass
20307         option -e to sed.
20308         * modules/link-warning (Makefile.am): Likewise.
20309
20310 2009-12-10  Jim Meyering  <meyering@redhat.com>
20311
20312         mgetgroups: do not write bytes beyond end of malloc'd buffer
20313         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
20314         username, we call getgroups with a one-element-shorter buffer,
20315         but still told it the length was original, max_n_groups.
20316
20317 2009-12-09  Eric Blake  <ebb9@byu.net>
20318
20319         cloexec: relax license
20320         * modules/cloexec (Maintainer): Add myself.
20321         (License): Use LGPL, not GPL.
20322
20323         link-warning: optimize generation
20324         * modules/link-warning (Makefile.am): Reduce process usage.
20325
20326 2009-12-09  Bruno Haible  <bruno@clisp.org>
20327
20328         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
20329         workaround was added on 2009-11-17.
20330
20331 2009-12-09  Jim Meyering  <meyering@redhat.com>
20332             Bruno Haible  <bruno@clisp.org>
20333
20334         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
20335         * modules/link-warning (Makefile.am): Make the comment-removing sed
20336         command more robust in the face of bootstrap-prepended comment lines.
20337
20338 2009-12-09  Bruno Haible  <bruno@clisp.org>
20339
20340         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
20341         most one group.
20342
20343 2009-12-09  Simon Josefsson <simon@josefsson.org>
20344             Bruno Haible  <bruno@clisp.org>
20345
20346         * build-aux/link-warning.h: Add copyright notice.
20347         * modules/link-warning (Makefile.am): Generate link-warning.h from
20348         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
20349         * NEWS: Mention change in link-warning module.
20350         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
20351         * modules/dirent (Makefile.am): Add dependency to dirent.h.
20352         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
20353         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
20354         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
20355         * modules/math (Makefile.am): Add dependency to math.h.
20356         * modules/search (Makefile.am): Add dependency to search.h.
20357         * modules/signal (Makefile.am): Add dependency to signal.h.
20358         * modules/spawn (Makefile.am): Add dependency to spawn.h.
20359         * modules/stdio (Makefile.am): Add dependency to stdio.h.
20360         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
20361         * modules/string (Makefile.am): Add dependency to string.h.
20362         * modules/strings (Makefile.am): Add dependency to strings.h.
20363         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
20364         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
20365         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
20366         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
20367         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
20368         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
20369         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
20370         * modules/unistd (Makefile.am): Add dependency to unistd.h.
20371         * modules/wchar (Makefile.am): Add dependency to wchar.h.
20372
20373 2009-12-09  Bruno Haible  <bruno@clisp.org>
20374
20375         fchdir: Optimize away rpl_fstat when possible.
20376         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
20377         REPLACE_OPEN_DIRECTORY.
20378         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
20379
20380 2009-12-09  Bruno Haible  <bruno@clisp.org>
20381
20382         * lib/fchdir.c: Update comment.
20383
20384 2009-12-09  Bruno Haible  <bruno@clisp.org>
20385
20386         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
20387
20388 2009-12-08  Eric Blake  <ebb9@byu.net>
20389
20390         fchdir: avoid memory leak on re-registration.
20391         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
20392
20393 2009-12-08  Jim Meyering  <meyering@redhat.com>
20394
20395         init.sh: avoid Solaris 10 /bin/sh portability problem
20396         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
20397         sourced script:
20398           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
20399           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
20400           bar
20401         tests/init.sh relied on that, accepting a --set-path=DIR argument,
20402         and two tests used that idiom.
20403         * tests/init.sh: Update suggested usage comments.
20404         (path_prepend_): New function, to be used in place
20405         of the --src-path=DIR option.
20406         (setup_): Move PATH-prepending code into path_prepend_.
20407         * tests/test-pread.sh: Adapt to new usage.
20408         * tests/test-xalloc-die.sh: Likewise.
20409
20410 2009-12-08  Simon Josefsson  <simon@josefsson.org>
20411
20412         * doc/gnulib.texi (Glibc pty.h): Add.
20413         * doc/glibc-functions/forkpty.texi: Add.
20414         * doc/glibc-functions/openpty.texi: Add.
20415         Suggested by Bruno Haible.
20416
20417 2009-12-08  Eric Blake  <ebb9@byu.net>
20418
20419         fchdir: fix logic bugs
20420         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
20421         * tests/test-fchdir.c (main): Enhance test.
20422         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
20423         is in use.
20424
20425         dup2: fix logic bugs
20426         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
20427         REPLACE_DUP2 to decide when rpl_dup2 is needed.
20428         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
20429         exists.
20430         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
20431
20432 2009-12-07  Eric Blake  <ebb9@byu.net>
20433
20434         unlink: fix m4 detection
20435         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
20436
20437         unistd-safer: add unit test
20438         * modules/unistd-safer-tests: New file.
20439         * tests/test-dup-safer.c: Likewise.
20440         * tests/test-cloexec.c (setmode): Avoid compiler warning.
20441         * tests/test-dup2.c (setmode): Likewise.
20442         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
20443
20444         cloexec: preserve text vs. binary across dup_cloexec
20445         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
20446         mode.
20447         * modules/dup2-tests (Depends-on): Add binary-io.
20448         * modules/cloexec-tests (Depends-on): Likewise.
20449         * tests/test-dup2.c (setmode, is_mode): New helpers.
20450         (main): Add tests that translation mode is preserved.
20451         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
20452         Reported by Bruno Haible.
20453
20454         mgetgroups: reduce duplicate listings
20455         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
20456         resulting array.
20457         * tests/test-chown.h (test_chown): Simplify client.
20458         * tests/test-lchown.h (test_lchown): Likewise.
20459
20460 2009-12-06  Bruno Haible  <bruno@clisp.org>
20461
20462         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
20463         value.
20464
20465 2009-12-06  Bruno Haible  <bruno@clisp.org>
20466
20467         * lib/progname.c: Include stdio.h, stdlib.h.
20468         (set_program_name): Reject a NULL argument.
20469
20470 2009-12-05  Eric Blake  <ebb9@byu.net>
20471
20472         pipe2-safer: new module
20473         * modules/pipe2-safer: New file.
20474         * lib/unistd-safer.h (pipe2_safer): New prototype.
20475         * lib/unistd--.h (pipe2): New wrapper.
20476         * lib/pipe-safer.c (pipe2_safer): New function.
20477         * modules/pipe (Depends-on): Add pipe2-safer.
20478         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
20479
20480         stdlib-safer: preserve cloexec flag for mkostemp[s]
20481         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
20482         fd_safer_flag.
20483
20484         unistd-safer: allow preservation of cloexec status via flag
20485         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
20486         prototypes.
20487         * lib/dup-safer.c (dup_safer_flag): New function.
20488         * lib/fd-safer.c (fd_safer_flag): Likewise.
20489         * modules/cloexec (configure.ac): Set witness.
20490
20491         test-dup2: enhance test
20492         * modules/dup2-tests (Depends-on): Add cloexec.
20493         * tests/test-dup2.c (main): Enhance test.
20494
20495         cloexec: add dup_cloexec
20496         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
20497         header and comments.
20498         * lib/cloexec.c (set_cloexec_flag): Add comments.
20499         (dup_cloexec): New function, with mingw implementation borrowed
20500         from...
20501         * lib/w32spawn.h (dup_noinherit): ...here.
20502         * modules/execute (Depends-on): Add cloexec.
20503         * modules/pipe (Depends-on): Likewise.
20504         * modules/cloexec (Depends-on): Add dup2.
20505         * modules/cloexec-tests (Files): New file.
20506         * tests/test-cloexec.c: Likewise.
20507
20508         test-xalloc-die: fix test for mingw
20509         * modules/xalloc-die-tests (Files): Add tests/init.sh.
20510         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
20511         directory and .exe suffix off argv[0] output.
20512
20513         test-fseeko: fix test for mingw
20514         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
20515         than undefining fseek, so test will pass on mingw.
20516
20517 2009-12-05  Bruno Haible  <bruno@clisp.org>
20518
20519         * lib/progname.h (set_program_name): Clarify specification.
20520         * lib/progname.c (set_program_name): Likewise.
20521         Reported by Jim Meyering.
20522
20523 2009-12-05  Jim Meyering  <meyering@redhat.com>
20524
20525         maint.mk: backslash-escape parens in default regexp
20526         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
20527         backslash-escape the literal parentheses.
20528
20529         maint.mk: news-date-check: use grep -E
20530         * top/maint.mk (today): Define a Make variable, not a...
20531         (news-date-check): ...shell variable.
20532         (news-date-regexp): Use the Make variable.
20533         Use grep's -E option.  Change the failing diagnostic to mention
20534         the variable, $(news-date-regexp).
20535
20536 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
20537
20538         maintainer-makefile: allow customization of NEWS entry format
20539         * top/maint.mk (news-date-regexp): New overridable variable.
20540         (news-date-check): Use it.
20541
20542 2009-12-04  Eric Blake  <ebb9@byu.net>
20543
20544         mgetgroups: add xgetgroups, and avoid ENOSYS failures
20545         * lib/mgetgroups.h (xgetgroups): New prototype.
20546         * lib/mgetgroups.c (xgetgroups): New wrapper.
20547         (mgetgroups): Handle ENOSYS.
20548         * modules/mgetgroups (Depends-on): Add realloc.
20549         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
20550
20551         mgetgroups: avoid argument promotion issues with -1
20552         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
20553         for invalid gid_t.
20554         * tests/test-chown.h (getegid, test_chown): Likewise.
20555         * tests/test-lchown.h (getegid, test_lchown): Likewise.
20556
20557 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
20558
20559         exclude: Fix header file problems.
20560         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
20561
20562 2009-12-01  Jim Meyering  <meyering@redhat.com>
20563
20564         fts: fts_open: do not let an empty string cause immediate failure
20565         This is required in support of GNU rm, for which the command
20566         "rm A '' B" must process and remove both A and B, in spite of
20567         the empty string argument.
20568         * lib/fts.c (fts_open): Do not let the presence of an empty string
20569         cause fts_open to fail immediately.  Most fts-using tools must be
20570         able to process all arguments, in order, and can be expected to
20571         diagnose such arguments themselves.
20572
20573 2009-11-30  Eric Blake  <ebb9@byu.net>
20574
20575         utimens: fix compilation error
20576         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
20577         Declare variable at right scope.
20578
20579 2009-11-29  Jim Meyering  <meyering@redhat.com>
20580
20581         bootstrap: handle perl-5.11's changed --version output
20582         * build-aux/bootstrap (get_version): Handle perl separately,
20583         since perl-5.11's --version output is different.
20584
20585 2009-11-28  Jim Meyering  <meyering@redhat.com>
20586
20587         userspec: depend on the inttostr module, too
20588         * modules/userspec (Depends-on): Add inttostr.
20589
20590         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
20591         * lib/userspec.c (parse_with_separator): Do not accept a user ID
20592         number of MAXUID when it evaluates to (uid_t) -1.
20593         Likewise for group ID.  Reported by Matt McCutchen in
20594         <http://savannah.gnu.org/bugs/?28113>
20595
20596         userspec: reformat to use spaces, not TABs
20597         * lib/userspec.c: Expand TABs to spaces.
20598         Add Emacs' "indent-tabs-mode: nil" hint.
20599
20600 2009-11-27  Eric Blake  <ebb9@byu.net>
20601
20602         getopt-gnu: flush out another BSD bug
20603         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
20604         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
20605         flush out BSD bug.
20606         * tests/test-getopt.h (test_getopt): End lists with NULL.
20607         * tests/test-getopt_long.h (test_getopt_long): Likewise.
20608         (test_getopt_long_posix): Enhance test.
20609         * modules/getopt-posix-tests (Depends-on): Add stdbool.
20610         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
20611         getopt-gnu.
20612         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20613         Likewise.
20614
20615 2009-11-27  Simon Josefsson  <simon@josefsson.org>
20616
20617         * modules/idpriv-droptemp-tests (Notice): Fix text.
20618
20619 2009-11-27  Jim Meyering  <meyering@redhat.com>
20620
20621         test-xalloc-die: avoid spurious failure due to libtool argv difference
20622         In a libtool-enabled project, this test would fail due to a difference
20623         in the emitted program name, e.g.,
20624         -test-xalloc-die: memory exhausted
20625         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
20626         Use program to avoid that.
20627         * modules/xalloc-die-tests (Depends-on): Add progname.
20628         * tests/test-xalloc-die.c: Include progname.h".
20629         (program_name): Remove decl.
20630         (main): Call set_program_name.
20631         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
20632
20633 2009-11-26  Richard Jones  <rjones@redhat.com>
20634
20635         w32sock: leave win32 error in place.
20636         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
20637
20638 2009-11-26  Eric Blake  <ebb9@byu.net>
20639
20640         init.sh: suggest to use skip_ and fail_ functions in comments
20641         * tests/init.sh: Add a sentence.
20642
20643 2009-11-25  Bruno Haible  <bruno@clisp.org>
20644
20645         init.sh: add documentation in comments
20646         * tests/init.sh: Add some developer and user documentation.
20647
20648 2009-11-26  Jim Meyering  <meyering@redhat.com>
20649
20650         init.sh: accommodate even those who specify bogus srcdir manually
20651         * tests/init.sh: Normally, srcdir is guaranteed by automake and
20652         configure-time tests to be sanitized, so that there is no need to
20653         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
20654         (with no double quotes) suffices.  However, since tests may be
20655         invoked manually, and since you may explicitly set srcdir to the
20656         name of a directory containing spaces, do quote its uses here.
20657         * tests/test-pread.sh: Likewise.
20658         Suggested by Bruno Haible.
20659
20660         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
20661         * tests/test-pread.sh: Write no data into the pipe, because
20662         test-pread actually reads none.  This avoids a diagnostic,
20663         "bash: echo: write error: Broken pipe", that arises in the unusual
20664         event something is ignoring SIGPIPE, and might be interpreted
20665         as some sort of failure.  Reported by Bruno Haible.
20666
20667 2009-11-25  Jim Meyering  <meyering@redhat.com>
20668
20669         test-pread: cover failure with ESPIPE and EINVAL
20670         * tests/test-pread.c (main): Test for failure, too.
20671         * tests/test-pread.sh: Invoke with stdin on a pipe.
20672         Suggested by Eric Blake.
20673
20674         pread: improvement and fix
20675         * modules/pread (Depends-on): Depend on lseek, for portability to
20676         e.g., mingw.  Suggested by Eric Blake.
20677         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
20678
20679         unistd.in.h: correct declaration of pread
20680         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
20681         Reported by Richard W.M. Jones.
20682
20683         test-pread.sh: distribute the test script
20684         * modules/pread-tests (Files): Include test-pread.sh.
20685
20686         test-pread.sh: clean up
20687         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
20688         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
20689         That is unnecessary, since it's always ".".
20690         Suggestion from Eric Blake.
20691
20692         test-pread.sh: make executable
20693         * tests/test-pread.sh: Set executable bit.
20694         Reported by Eric Blake.
20695
20696         correct typo in test-pread.sh
20697         * tests/test-pread.sh: Add #! line.
20698
20699         test pread
20700         * tests/test-pread.c: New file.
20701         * tests/test-pread.sh: Likewise.
20702         * modules/pread-tests: Likewise.
20703
20704         pread: new module
20705         * modules/pread: New file.
20706         * lib/unistd.in.h (pread): Define/declare.
20707         * lib/pread.c (pread): New file.
20708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
20709         * modules/unistd (Makefile.am): Substitute witnesses.
20710         * doc/posix-functions/pread.texi (pread): Update.
20711         * MODULES.html.sh: Add pread.
20712
20713 2009-11-25  Jim Meyering  <meyering@redhat.com>
20714
20715         tests/init.sh: new file to be used via most *.sh tests
20716         * tests/init.sh: New file.
20717
20718 2009-11-25  Eric Blake  <ebb9@byu.net>
20719
20720         utimens: work around older Linux failure with symlinks
20721         * lib/utimens.c (lutimensat_works_really): New variable.
20722         (fdutimens, lutimens): Use it to manage kernels that support
20723         nanosecond times on files, but not on symlinks.
20724         Reported by OndÅ™ej Vašík.
20725
20726         utimes: fix configure grammar
20727         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
20728
20729 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
20730
20731         regex: Fix fastmap for multibyte character ranges.
20732         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
20733         characters when a multibyte character range is included.
20734
20735 2009-11-22  Andy Wingo  <wingo@pobox.com>
20736
20737         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
20738         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
20739
20740 2009-11-24  Bruno Haible  <bruno@clisp.org>
20741
20742         doc: Most *_l functions exist in MacOS X 10.5.
20743         * doc/posix-functions/duplocale.texi: Update platforms list.
20744         * doc/posix-functions/freelocale.texi: Likewise.
20745         * doc/posix-functions/newlocale.texi: Likewise.
20746         * doc/posix-functions/uselocale.texi: Likewise.
20747         * doc/posix-functions/isalnum_l.texi: Likewise.
20748         * doc/posix-functions/isalpha_l.texi: Likewise.
20749         * doc/posix-functions/isblank_l.texi: Likewise.
20750         * doc/posix-functions/iscntrl_l.texi: Likewise.
20751         * doc/posix-functions/isdigit_l.texi: Likewise.
20752         * doc/posix-functions/isgraph_l.texi: Likewise.
20753         * doc/posix-functions/islower_l.texi: Likewise.
20754         * doc/posix-functions/isprint_l.texi: Likewise.
20755         * doc/posix-functions/ispunct_l.texi: Likewise.
20756         * doc/posix-functions/isspace_l.texi: Likewise.
20757         * doc/posix-functions/isupper_l.texi: Likewise.
20758         * doc/posix-functions/iswalnum_l.texi: Likewise.
20759         * doc/posix-functions/iswalpha_l.texi: Likewise.
20760         * doc/posix-functions/iswblank_l.texi: Likewise.
20761         * doc/posix-functions/iswcntrl_l.texi: Likewise.
20762         * doc/posix-functions/iswctype_l.texi: Likewise.
20763         * doc/posix-functions/iswdigit_l.texi: Likewise.
20764         * doc/posix-functions/iswgraph_l.texi: Likewise.
20765         * doc/posix-functions/iswlower_l.texi: Likewise.
20766         * doc/posix-functions/iswprint_l.texi: Likewise.
20767         * doc/posix-functions/iswpunct_l.texi: Likewise.
20768         * doc/posix-functions/iswspace_l.texi: Likewise.
20769         * doc/posix-functions/iswupper_l.texi: Likewise.
20770         * doc/posix-functions/iswxdigit_l.texi: Likewise.
20771         * doc/posix-functions/isxdigit_l.texi: Likewise.
20772         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
20773         * doc/posix-functions/strcasecmp_l.texi: Likewise.
20774         * doc/posix-functions/strcoll_l.texi: Likewise.
20775         * doc/posix-functions/strfmon_l.texi: Likewise.
20776         * doc/posix-functions/strftime_l.texi: Likewise.
20777         * doc/posix-functions/strncasecmp_l.texi: Likewise.
20778         * doc/posix-functions/strxfrm_l.texi: Likewise.
20779         * doc/posix-functions/tolower_l.texi: Likewise.
20780         * doc/posix-functions/toupper_l.texi: Likewise.
20781         * doc/posix-functions/towctrans_l.texi: Likewise.
20782         * doc/posix-functions/towlower_l.texi: Likewise.
20783         * doc/posix-functions/towupper_l.texi: Likewise.
20784         * doc/posix-functions/wcscoll_l.texi: Likewise.
20785         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
20786         * doc/posix-functions/wctrans_l.texi: Likewise.
20787         * doc/posix-functions/wctype_l.texi: Likewise.
20788         * doc/glibc-functions/strptime_l.texi: Likewise.
20789         * doc/glibc-functions/strtod_l.texi: Likewise.
20790         * doc/glibc-functions/strtof_l.texi: Likewise.
20791         * doc/glibc-functions/strtol_l.texi: Likewise.
20792         * doc/glibc-functions/strtold_l.texi: Likewise.
20793         * doc/glibc-functions/strtoll_l.texi: Likewise.
20794         * doc/glibc-functions/strtoul_l.texi: Likewise.
20795         * doc/glibc-functions/strtoull_l.texi: Likewise.
20796         * doc/glibc-functions/wcsftime_l.texi: Likewise.
20797         * doc/glibc-functions/wcstod_l.texi: Likewise.
20798         * doc/glibc-functions/wcstof_l.texi: Likewise.
20799         * doc/glibc-functions/wcstol_l.texi: Likewise.
20800         * doc/glibc-functions/wcstold_l.texi: Likewise.
20801         * doc/glibc-functions/wcstoll_l.texi: Likewise.
20802         * doc/glibc-functions/wcstoul_l.texi: Likewise.
20803         * doc/glibc-functions/wcstoull_l.texi: Likewise.
20804
20805 2009-11-24  Bruno Haible  <bruno@clisp.org>
20806
20807         duplocale: Fix logic bug.
20808         * lib/duplocale.c: Don't include <langinfo.h>.
20809         (_NL_LOCALE_NAME): Remove macro.
20810         (rpl_duplocale): Use setlocale instead of nl_langinfo.
20811         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
20812
20813 2009-11-23  Jim Meyering  <meyering@redhat.com>
20814
20815         test-update-copyright: don't hard-code /usr/bin/perl
20816         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
20817         perl to print the current year.  Gilles Espinasse reported that
20818         the replaced use of perl was hard-coded as /usr/bin/perl.
20819
20820 2009-11-23  Bruno Haible  <bruno@clisp.org>
20821
20822         duplocale: Add support for glibc 2.3.x.
20823         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
20824
20825 2009-11-22  Bruno Haible  <bruno@clisp.org>
20826
20827         vasnprintf: Tiny optimization.
20828         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
20829         MacOS X.
20830
20831 2009-11-22  Bruno Haible  <bruno@clisp.org>
20832
20833         Tests for module 'duplocale'.
20834         * modules/duplocale-tests: New file.
20835         * tests/test-duplocale.c: New file.
20836
20837         New module 'duplocale'.
20838         * m4/duplocale.m4: New file.
20839         * lib/locale.in.h (duplocale): New declaration.
20840         * lib/duplocale.c: New file.
20841         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
20842         gl_LOCALE_H_DEFAULTS): New macros.
20843         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
20844         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
20845         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
20846         REPLACE_DUPLOCALE.
20847         * modules/duplocale: New file.
20848         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
20849
20850 2009-11-22  Bruno Haible  <bruno@clisp.org>
20851
20852         * modules/locale-tests (configure.ac): Test for newlocale function.
20853         * tests/test-locale.c: When the system has extended locale functions,
20854         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
20855
20856         locale: Make locale_t available when possible.
20857         * lib/locale.in.h: Include <xlocale.h> when it exists.
20858         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
20859         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
20860         * modules/locale (Depends-on): Add extensions.
20861         (Makefile.am): Also substitute HAVE_XLOCALE_H.
20862         * doc/posix-headers/locale.texi: Document the problem with locale_t.
20863
20864 2009-11-22  Bruno Haible  <bruno@clisp.org>
20865
20866         Add comments.
20867         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
20868         invocation.
20869         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
20870         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20871         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
20872
20873 2009-11-22  Bruno Haible  <bruno@clisp.org>
20874
20875         error: account for the possibility of freopen (stdout).
20876         * lib/error.c: Include <unistd.h>.
20877         (flush_stdout): New function, extracted from error and error_at_line.
20878         Determine stdout's fd dynamically.
20879         (error, error_at_line): Invoke flush_stdout.
20880         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
20881         * modules/error (Depends-on): Add unistd.
20882
20883 2009-11-22  Bruno Haible  <bruno@clisp.org>
20884
20885         diffseq: Add comment.
20886         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
20887
20888 2009-11-22  Jim Meyering  <meyering@redhat.com>
20889
20890         c-stack: avoid defining an unused static function
20891         * lib/c-stack.c (find_stack_direction): Do not define this function
20892         when it will not be used.
20893
20894         diffseq: avoid spurious gcc warnings
20895         * lib/diffseq.h (IF_LINT2): Define.
20896         (compareseq): Use it to initialize two members of "part".
20897         This avoids two used-uninitialized warnings.
20898
20899 2009-11-21  Jim Meyering  <meyering@redhat.com>
20900
20901         c-stack: avoid "ignoring return value of `write'" warning
20902         * lib/c-stack.c: Include "ignore-value.h".
20903         (die): Explicitly ignore each write return value.
20904         * modules/c-stack (Depends-on): Add ignore-value.
20905
20906 2009-11-21  Bruno Haible  <bruno@clisp.org>
20907
20908         diffseq: reduce scope of variable 'best'.
20909         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
20910         variable, earlier used for two different purposes.
20911
20912 2009-11-21  Jim Meyering  <meyering@redhat.com>
20913
20914         diffseq: remove useless assignment to "best"
20915         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
20916         assignment.  At that point "best" is already guaranteed to be zero.
20917
20918 2009-11-20  Eric Blake  <ebb9@byu.net>
20919
20920         build: mention ftp redirector in release announcements
20921         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
20922         values that used to come from cfg.mk; mention FTP redirect URL.
20923         * build-aux/announce-gen: Mention the mirror list.
20924         Suggested by Karl Berry.
20925
20926         nanosleep: improve port to mingw
20927         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
20928         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
20929         LIB_NANOSLEEP, but only when needed.
20930         * modules/select (Link): Document LIBSOCKET.
20931         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
20932         enough.
20933
20934         nanosleep: work around cygwin bug
20935         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
20936         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
20937         bug.
20938         (getnow): Delete, not needed.
20939         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
20940         LIB_CLOCK_GETTIME.
20941         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
20942         clock-time, gettime.
20943         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
20944         bug.
20945         * modules/nanosleep-tests: New test.
20946         * tests/test-nanosleep.c: New file.
20947
20948         sleep: work around cygwin bug
20949         * lib/sleep.c (rpl_sleep): Work around the bug.
20950         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
20951         (gl_PREREQ_SLEEP): Delete unused macro.
20952         * modules/sleep (Depends-on): Add verify.
20953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
20954         * modules/unistd (Makefile.am): Substitute witness.
20955         * lib/unistd.in.h (sleep): Update prototype.
20956         * doc/posix-functions/sleep.texi (sleep): Document the bug.
20957         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
20958         * modules/sleep-tests (Depends-on): Check for alarm.
20959
20960 2009-11-20  Jim Meyering  <meyering@redhat.com>
20961
20962         maint.mk: improve sc_prohibit_magic_number_exit
20963         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
20964         so it does not match uses like System.exit(1).
20965         Add comments showing how to correct all offenders.
20966
20967 2009-11-19  Eric Blake  <ebb9@byu.net>
20968
20969         xalloc-die-tests: add missing library
20970         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
20971
20972         test-xvasprintf: silence compiler warnings
20973         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
20974         empty string from gcc.
20975
20976 2009-11-19  Jim Meyering  <meyering@redhat.com>
20977
20978         xfreopen: new module, from coreutils
20979         * modules/xfreopen: New module.
20980         * lib/xfreopen.c: New file.
20981         * lib/xfreopen.h: New file.
20982         * MODULES.html.sh (File stream based Input/Output"): Add it.
20983
20984 2009-11-19  Eric Blake  <ebb9@byu.net>
20985
20986         manywarnings: depend on warnings
20987         * modules/manywarnings (Depends-on): Add warnings.
20988
20989         build: avoid compiler warnings
20990         * lib/select.c (rpl_select): Delete unused variable.
20991         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
20992
20993 2009-11-18  Eric Blake  <ebb9@byu.net>
20994
20995         tests: avoid false negative with --with-packager
20996         * tests/test-version-etc.sh: Discard packager information.
20997         * tests/test-argp-version-etc-1.sh: Likewise.
20998         Reported by Mike Frysinger.
20999
21000         utimens: fix regression on Solaris
21001         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
21002         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
21003         can only change fd timestamps via futimesat.  Instead, use an
21004         additional witness macro to avoid BSD bug.
21005         Reported by Jim Meyering.
21006
21007 2009-11-17  Eric Blake  <ebb9@byu.net>
21008
21009         usleep: use it to simplify tests
21010         * modules/stat-time-tests (Depends-on): Add usleep.
21011         (configure.ac): Drop usleep check.
21012         * modules/chown-tests (Depends-on, configure.ac): Likewise.
21013         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
21014         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
21015         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
21016         * modules/openat-tests (Depends-on, configure.ac): Likewise.
21017         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
21018         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
21019         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
21020         Likewise.
21021         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
21022         * tests/test-lchown.h (nap): Likewise.
21023         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
21024         * tests/test-stat-time.c (nap): Likewise.
21025         * tests/test-utimens-common.h (nap): Update comments.
21026
21027         usleep: new module
21028         * modules/usleep: New file.
21029         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
21030         * lib/usleep.c (usleep): Likewise.
21031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
21032         * modules/unistd (Makefile.am): Substitute witnesses.
21033         * lib/unistd.in.h (usleep): Add declaration.
21034         * doc/pastposix-functions/usleep.texi (usleep): Document this.
21035         * MODULES.html.sh (Date and time): Likewise.
21036         * modules/usleep-tests (Depends-on): New test.
21037         * tests/test-usleep.c: New file.
21038
21039         chown: work around OpenBSD bug
21040         * lib/chown.c (rpl_chown): Work around the bug.
21041         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
21042         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
21043         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
21044         * modules/chown (Depends-on): Add stdbool.
21045         * modules/lchown (Depends-on): Likewise.
21046         * doc/posix-functions/chown.texi (chown): Document the bug.
21047         * doc/posix-functions/lchown.texi (lchown): Likewise.
21048         * tests/test-lchown.h (test_chown): Relax test.
21049
21050         mkstemp: avoid conflict with C++ keyword template
21051         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
21052         * lib/mkostemp.c (mkostemp): Likewise.
21053         * lib/mkostemps.c (mkostemps): Likewise.
21054         * lib/mkstemp.c (mkstemp): Likewise.
21055         * lib/mkstemps.c (mkstemps): Likewise.
21056
21057         xalloc-die-tests: optimize
21058         * tests/test-xalloc-die.sh: Reduce number of processes.
21059
21060 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21061
21062         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
21063         patch from ludo@gnu.org (Ludovic Courtès).
21064
21065 2009-11-17  Jim Meyering  <meyering@redhat.com>
21066
21067         version-etc: use proper license string
21068         * modules/version-etc (License): Use LGPL, not LGPLv3+.
21069         * modules/version-etc-fsf: Likewise.
21070
21071 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21072
21073         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
21074         printed to stdout.  Deal with EOL differences.
21075
21076 2009-11-17  Eric Blake  <ebb9@byu.net>
21077
21078         unsetenv: work around Solaris bug
21079         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
21080         * lib/unsetenv.c (rpl_unsetenv): Work around it.
21081         Reported by Jim Meyering.
21082
21083         vasnprintf: avoid compiler warnings
21084         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
21085         variables.
21086         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
21087
21088 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21089
21090         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
21091         settings since xalloc-die is no longer the self test,
21092         xalloc-die.sh is.
21093
21094 2009-11-17  Jim Meyering  <meyering@redhat.com>
21095
21096         test-xalloc-die.sh: make the code agree with the commit log
21097         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
21098         at the end, just in case you happen to have a test-xalloc-die
21099         program in some other PATH directory.
21100
21101         test-xalloc-die.sh: fix a portability bug
21102         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
21103         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
21104         Otherwise, argv[0] (as often seen in diagnostics) would be too
21105         system-dependent, sometimes with, and sometimes without the leading "./".
21106
21107         version-etc-fsf: relax license to LGPLv3+
21108         * modules/version-etc-fsf (License): Relax license.
21109
21110 2009-11-16  Eric Blake  <ebb9@byu.net>
21111
21112         xalloc-die-tests: avoid printing null pointer
21113         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
21114         shell script.
21115         * tests/test-xalloc-die.c (program_name): Declare.
21116         * tests/test-xalloc-die.sh (tmpfiles): New file.
21117
21118         setenv, unsetenv: work around various bugs
21119         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
21120         (setenv) [HAVE_SETENV]: Work around bugs.
21121         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
21122         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
21123         for bugs.
21124         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
21125         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
21126         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
21127         * modules/stdlib (Makefile.am): Update substitutions.
21128         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
21129         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
21130         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
21131         * modules/setenv-tests: New test.
21132         * modules/unsetenv-tests: Likewise.
21133         * tests/test-setenv.c: New file.
21134         * tests/test-unsetenv.c: Likewise.
21135
21136 2009-11-16  Jim Meyering  <meyering@redhat.com>
21137
21138         version-etc: relax license to LGPLv3+
21139         * modules/version-etc (License): Relax license.
21140
21141         better AC_REQUIRE expanded-before-required-warning avoidance
21142         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
21143         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
21144         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
21145         which is no longer needed.
21146
21147 2009-11-16  Eric Blake  <ebb9@byu.net>
21148
21149         test-freading: clean up temporary file
21150         * tests/test-freading.c (main): Remove file on success, and use
21151         ASSERT more liberally.
21152         Reported by Jim Meyering.
21153
21154 2009-11-16  Jim Meyering  <meyering@redhat.com>
21155
21156         avoid new AC_REQUIRE expanded-before-required warnings
21157         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
21158         merely using it.
21159         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
21160         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
21161
21162 2009-11-15  Simon Josefsson  <simon@josefsson.org>
21163
21164         * tests/test-xalloc-die.c: New file.
21165         * modules/xalloc-die-tests: New file.
21166         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
21167         XFAIL_TESTS so it can be appended by modules.
21168
21169 2009-11-15  Simon Josefsson  <simon@josefsson.org>
21170
21171         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
21172         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
21173
21174 2009-11-14  Eric Blake  <ebb9@byu.net>
21175
21176         fnmatch: avoid compiler warning
21177         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
21178         to silence compiler warning about mismatch signedness in ?:.
21179         Reported by Robert Millan.
21180
21181         intprops: add double-inclusion guard
21182         * lib/intprops.h: Allow idempotent includes.
21183         Suggested by Bruce Korb.
21184
21185         openat: detect Solaris fchownat bug
21186         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
21187         penalizing glibc chownat when only lchownat is broken.
21188         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
21189         trailing slash bugs.
21190         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
21191         * modules/openat-tests (Files): Include more files.
21192         (Depends-on): Add mgetgroups, sleep, stat-time.
21193         (configure.ac): Add additional checks.
21194         (Makefile.am): Build new test.
21195         * tests/test-fchownat.c: New file.
21196
21197         lchown: detect Solaris and FreeBSD bug
21198         * lib/lchown.c (rpl_lchown): Work around bug.
21199         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
21200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21201         * modules/unistd (Makefile.am): Populate it.
21202         * lib/unistd.in.h (lchown): Update declaration.
21203         * doc/posix-functions/lchown.texi (lchown): Document the bug.
21204         * modules/lchown-tests: New file.
21205         * tests/test-lchown.h (test_lchown): Likewise.
21206         * tests/test-lchown.c (main): Likewise.
21207
21208         chown: detect Solaris and FreeBSD bug
21209         * lib/chown.c (rpl_chown): Work around bug.
21210         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
21211         (gl_PREREQ_CHOWN): Delete.
21212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21213         * modules/unistd (Makefile.am): Populate it.
21214         * lib/unistd.in.h (chown): Update declaration.
21215         * lib/lchown.c (chown): Update client.
21216         * modules/lchown (Depends-on): Add lstat.
21217         * doc/posix-functions/chown.texi (chown): Document the bug.
21218         * doc/posix-functions/getgroups.texi (getgroups): Document
21219         getgroups pitfall.
21220         * modules/chown-tests: New file.
21221         * tests/test-chown.h (test_chown): Likewise.
21222         * tests/test-chown.c (main): Likewise.
21223
21224 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
21225
21226         gnulib-tool: correctly detect absence of m4 directories
21227         * gnulib-tool: Avoid extra newline on data passed to wc -l.
21228
21229 2009-11-14  Jim Meyering  <meyering@redhat.com>
21230
21231         maint.mk: Prohibit inclusion of "xalloc.h" without use.
21232         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
21233
21234 2009-11-14  John W. Eaton  <jwe@gnu.org>
21235
21236         strftime.h: wrap funtion declaration in extern "C" block
21237         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
21238
21239 2009-11-13  Eric Blake  <ebb9@byu.net>
21240
21241         getgroups: avoid compiler warning
21242         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
21243
21244         getgroups: work around FreeBSD bug
21245         * lib/getgroups.c (rpl_getgroups): Work around the bug.
21246         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
21247         * doc/posix-functions/getgroups.texi (getgroups): Document it.
21248         * tests/test-getgroups.c (main): Fix buffer overrun.
21249
21250         getgroups: avoid compilation failure
21251         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
21252         * modules/getgroups (Depends-on): Add stdint.
21253
21254 2009-11-13  Jim Meyering  <meyering@redhat.com>
21255
21256         test-getgroups: avoid compilation failure
21257         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
21258
21259 2009-11-13  Eric Blake  <ebb9@byu.net>
21260
21261         mgetgroups: new module, taken from coreutils
21262         * modules/mgetgroups: New file.
21263         * lib/mgetgroups.h: Likewise.
21264         * lib/mgetgroups.c (mgetgroups): Likewise.
21265         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
21266         * MODULES.html.sh (Users and groups): Mention it.
21267
21268         getgroups: don't expose GETGROUPS_T to user
21269         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
21270         an element at a time if GETGROUPS_T is wrong size.
21271         * lib/getugroups.h (getugroups): Change signature.
21272         * lib/unistd.in.h (getgroups): Likewise.
21273         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
21274         signature needs fixing.
21275         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
21276         AC_TYPE_GETGROUPS.
21277         * modules/group-member (Depends-on): Add getgroups.
21278         * lib/group-member.c (group_info, get_group_info): Use gid_t.
21279         (group_member): Rely on getgroups replacement.
21280         * lib/getugroups.c (getugroups): Use gid_t.
21281         * tests/test-getgroups.c (main): Likewise.
21282         * NEWS: Mention the signature change.
21283         * doc/posix-functions/getgroups.texi (getgroups): Mention the
21284         problem with signature.
21285         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
21286         GETGROUPS_T is still useful for setgroups.
21287
21288         getgroups, getugroups: provide stubs for mingw
21289         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
21290         * lib/getugroups.c (getugroups): Likewise.
21291         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
21292         function.  Modernize replacement scheme.
21293         (gl_PREREQ_GETGROUPS): Delete.
21294         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
21295         * modules/getgroups (configure.ac): Declare witness.
21296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
21297         * modules/unistd (Depends-on): Substitute witness.
21298         * lib/unistd.in.h (getgroups): Declare replacement.
21299
21300         getgroups: avoid calling exit
21301         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
21302         drop xalloc.
21303         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
21304         dependencies.
21305         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
21306         exiting, in the rare case of malloc failure.
21307
21308         getgroups: fix logic error
21309         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
21310         has more than 20 groups.
21311         * modules/getgroups-tests: New test.
21312         * tests/test-getgroups.c: New file.
21313
21314 2009-11-13  Simon Josefsson  <simon@josefsson.org>
21315
21316         * tests/test-base64.c: Improve.
21317
21318 2009-11-13  Simon Josefsson  <simon@josefsson.org>
21319
21320         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
21321         Blake <ebb9@byu.net>.
21322
21323 2009-11-13  Simon Josefsson  <simon@josefsson.org>
21324
21325         * tests/test-xvasprintf.c: Add %s%s related checks.
21326
21327 2009-11-12  Eric Blake  <ebb9@byu.net>
21328
21329         version-etc: match standards.texi style
21330         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
21331         and use <> only for URLs.
21332
21333 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
21334
21335         fts: do not fail on a submount during traversal
21336         * lib/fts.c (fts_build): Read the stat info again after opening
21337         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
21338         Original report at http://bugzilla.redhat.com/501848.
21339
21340 2009-11-12  Jim Meyering  <meyering@redhat.com>
21341
21342         bootstrap: sync from coreutils
21343         * build-aux/bootstrap (bootstrap_epilogue): New function.
21344         Use git_modules_config in one more place.  This make bootstrap's
21345         --gnulib-srcdir option more useful for testing.
21346
21347         bootstrap: generalize autoheader check
21348         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
21349         AC_CONFIG_HEADERS.
21350
21351 2009-11-11  Eric Blake  <ebb9@byu.net>
21352
21353         mkfifoat: use new modules for Solaris and BSD bugs
21354         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
21355         * lib/mkfifoat.c (mknodat): Split...
21356         * lib/mknodat.c (mknodat): ...into new file.
21357         * modules/mkfifoat (Files): Ship new file.
21358         (Depends-on): Add mkfifo, mknod.
21359         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
21360         (Depends-on): Add symlink.
21361         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
21362         redundant with test_mkfifo.h.
21363         (do_mkfifoat, do_mknodat): New helpers.
21364
21365         mknod: new module
21366         * modules/mknod: New file.
21367         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
21368         * lib/mknod.c (mknod): Likewise.
21369         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
21370         defaults.
21371         * modules/sys_stat (Makefile.am): Substitute them.
21372         * lib/sys_stat.in.h (mknod): Declare replacement.
21373         * MODULES.html.sh (Support for systems lacking POSIX:2008):
21374         Document it.
21375         * doc/posix-functions/mknod.texi (mknod): Likewise.
21376         * modules/mknod-tests: New test.
21377         * tests/test-mknod.c: Likewise.
21378
21379         mkfifo: new module
21380         * modules/mkfifo: New file.
21381         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
21382         * lib/mkfifo.c (mkfifo): Likewise.
21383         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
21384         defaults.
21385         * modules/sys_stat (Makefile.am): Substitute them.
21386         * lib/sys_stat.in.h (mkfifo): Declare replacement.
21387         * MODULES.html.sh (Support for systems lacking POSIX:2008):
21388         Document it.
21389         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
21390         * modules/mkfifo-tests: New test.
21391         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
21392         from test-mkfifoat.c.
21393         * tests/test-mkfifo.c: New file.
21394
21395         readlink: detect FreeBSD bug
21396         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
21397         slash on symlink.
21398         * doc/posix-functions/readlink.texi (readlink): Document the bug.
21399         * tests/test-readlink.h (test_readlink): Enhance test.
21400
21401         symlink: detect FreeBSD bug
21402         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
21403         slash on symlink.
21404         * doc/posix-functions/symlink.texi (symlink): Document the bug.
21405         * tests/test-symlink.h (test_symlink): Enhance test.
21406
21407 2009-11-10  Eric Blake  <ebb9@byu.net>
21408
21409         link: detect FreeBSD bug
21410         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
21411         symlink.
21412         * doc/posix-functions/link.texi (link): Document the bug.
21413         * tests/test-link.h (test_link): Enhance test.
21414         * tests/test-linkat.c (main): Update caller.
21415
21416         unlink, remove: detect FreeBSD bug
21417         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
21418         slash on symlink.
21419         * doc/posix-functions/unlink.texi (unlink): Document the bug.
21420         * doc/posix-functions/remove.texi (remove): Likewise.
21421         * tests/test-unlink.h (test_unlink): Enhance test.
21422         * tests/test-remove.c (main): Likewise.
21423
21424 2009-11-09  Eric Blake  <ebb9@byu.net>
21425
21426         rename: detect FreeBSD bug
21427         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
21428         slash on symlink.
21429         * modules/renameat-tests (Depends-on): Add filenamecat.
21430         * tests/test-rename.h (test_rename): Allow one more errno.
21431         * tests/test-renameat.c (main): Likewise.
21432         * doc/posix-functions/rename.texi (rename): Document the bug.
21433
21434         open: detect FreeBSD bug
21435         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
21436         symlink.
21437         * doc/posix-functions/open.texi (open): Document the bug.
21438         * doc/posix-functions/utimes.texi (utimes): Likewise.
21439         * tests/test-open.h (test_open): Add parameters, and test symlink
21440         handling.
21441         * tests/test-open.c (main): Adjust caller.
21442         * tests/test-fcntl-safer.c (main): Likewise.
21443         * modules/open-tests (Depends-on): Add stdbool, symlink.
21444         * modules/fcntl-safer-tests (Depends-on): Likewise.
21445         * tests/test-openat.c (main): Add test-open tests.
21446
21447         stat: detect FreeBSD bug
21448         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
21449         symlink.
21450         * doc/posix-functions/stat.texi (stat): Document the bug.
21451         * tests/test-stat.h (test_stat_func): Add argument.
21452         * tests/test-stat.c (main): Adjust caller.
21453         * tests/test-fstatat.c (main): Likewise.
21454         * modules/stat-tests (Depends-on): Add stdbool, symlink.
21455         Reported by Jim Meyering.
21456
21457 2009-11-09  James Youngman  <jay@gnu.org>
21458
21459         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
21460         * lib/strftime.c: Correct placement of #include "ignore-value.h".
21461
21462 2009-11-08  Jim Meyering  <meyering@redhat.com>
21463
21464         utimens: remove invalid futimesat call
21465         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
21466         It used the file descriptor of the target file as the DIR_FD
21467         parameter and NULL as the file name.  That caused failure with
21468         errno == EFAULT on FreeBSD-8.0-rc2
21469
21470 2009-11-07  Eric Blake  <ebb9@byu.net>
21471
21472         fflush, freadseek: use fseeko, not fseek
21473         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
21474         (clear_ungetc_buffer): Avoid potential problems on large files.
21475         * lib/freadseek.c (freadseek): Likewise.
21476         * modules/freadseek (Depends-on): Add fseeko.
21477         * modules/fseek (configure.ac): Set a witness.
21478         * tests/test-fflush.c (main): Use fseeko.
21479         * tests/test-fpurge.c (fseek): Disable link warning.
21480         * tests/test-freadable.c (fseek): Likewise.
21481         * tests/test-freading.c (fseek): Likewise.
21482         * tests/test-fseeko.c (fseek): Likewise.
21483         * tests/test-ftell.c (fseek): Likewise.
21484         * tests/test-ftello.c (fseek): Likewise.
21485         * tests/test-fwritable.c (fseek): Likewise.
21486         * tests/test-fwriting.c (fseek): Likewise.
21487
21488 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21489
21490         * modules/memchr (Depends-on): Drop getpagesize dependency.
21491
21492 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21493
21494         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
21495         Reported by Ludovic Courtès.
21496         * build-aux/pmccabe2html: Improve example usage.
21497         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
21498
21499 2009-11-06  Jim Meyering  <meyering@redhat.com>
21500
21501         do-release-commit-and-tag: New module.
21502         Automate the release-commit and tag process.
21503         * build-aux/do-release-commit-and-tag: New script, from coreutils.
21504         * modules/do-release-commit-and-tag: New file.
21505         * MODULES.html.sh (Support for maintaining and releasing): Add it.
21506
21507 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21508
21509         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
21510         because test-select.c uses inet_pton.
21511
21512 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21513
21514         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
21515         GETADDRINFO_LIB.  Bump serial number.
21516         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
21517         Suggested by Eric Blake <ebb9@byu.net>.
21518
21519 2009-11-05  Eric Blake  <ebb9@byu.net>
21520
21521         strtod: detect darwin bug
21522         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
21523         Reported by Leo Davis.
21524
21525         freopen-safer: new module
21526         * modules/freopen-safer: New module.
21527         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
21528         * lib/freopen-safer.c (freopen_safer): New file.
21529         * lib/stdio-safer.h (freopen_safer): New declaration.
21530         * lib/stdio--.h (freopen): New override.
21531         * MODULES.html.sh (File stream based Input/Output): Mention it.
21532         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
21533         freopen-safer module.
21534         * doc/posix-functions/stderr.texi (stderr): Likewise.
21535         * doc/posix-functions/stdin.texi (stdin): Likewise.
21536         * doc/posix-functions/stdout.texi (stdout): Likewise.
21537         * modules/freopen-safer-tests: New test.
21538         * tests/test-reopen-safer.c: New file.
21539
21540 2009-11-05  Jim Meyering  <meyering@redhat.com>
21541
21542         maint.mk: Prohibit inclusion of "close-stream.h" without use.
21543         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
21544
21545 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21546
21547         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
21548
21549 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21550
21551         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
21552
21553 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21554
21555         Fix link error.
21556         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
21557         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21558
21559 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21560
21561         * tests/test-func.c: Also test value of __func__.
21562
21563 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21564
21565         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
21566         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
21567
21568 2009-11-05  Bruno Haible  <bruno@clisp.org>
21569
21570         Fix link error.
21571         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
21572         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21573         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
21574
21575 2009-11-05  Bruno Haible  <bruno@clisp.org>
21576
21577         Tests for module 'inet_pton'.
21578         * modules/inet_pton-tests: New file.
21579         * tests/test-inet_pton.c: New file.
21580
21581 2009-11-05  Bruno Haible  <bruno@clisp.org>
21582
21583         Tests for module 'inet_ntop'.
21584         * modules/inet_ntop-tests: New file.
21585         * tests/test-inet_ntop.c: New file.
21586
21587 2009-11-04  Eric Blake  <ebb9@byu.net>
21588
21589         stdlib-safer: wrap all mkstemp variants
21590         * modules/mkostemp (configure.ac): Set witness.
21591         * modules/mkostemps (configure.ac): Likewise.
21592         * modules/mkstemps (configure.ac): Likewise.
21593         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
21594         (mkstemps_safer): Wrap more functions.
21595         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
21596         wrapping.
21597         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
21598         (mkstemps_safer): Implement the wrappers.
21599
21600         mkstemps, mkostemps: new modules
21601         * modules/mkostemps: New module.
21602         * modules/mkstemps: Likewise.
21603         * lib/mkostemps.c (mkostemps): New file.
21604         * lib/mkstemps.c (mkstemps): Likewise.
21605         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
21606         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
21607         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
21608         * modules/stdlib (Makefile.am): Substitute them.
21609         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
21610         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
21611         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
21612         * doc/gnulib.texi (Glibc stdlib.h): Include them.
21613         * MODULES.html.sh (File system functions): Mention them.
21614
21615         tempname: resync from glibc
21616         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
21617         same values for __GT_FILE as glibc.  Abort even when assertions
21618         are disabled.
21619         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
21620         match its value otherwise.  Allow idempotent inclusion.
21621         * lib/mkdtemp.c (mkdtemp): Adjust caller.
21622         * lib/mkostemp.c (mkostemp): Likewise.
21623         * lib/mkstemp.c (mkstemp): Likewise.
21624         * lib/tmpfile.c (tmpfile): Likewise.
21625         * NEWS: Document this.
21626
21627         utimens: fix use of futimens on older Linux
21628         * lib/utimens.c (fdutimens): Use updated, rather than original,
21629         timespec to avoid bug in older Linux kernel.
21630         Reported by Simon Josefsson.
21631
21632 2009-11-04  Bruno Haible  <bruno@clisp.org>
21633
21634         Make num_processors more flexible and consistent.
21635         * lib/nproc.h (enum nproc_query): New type.
21636         (num_processors): Add a 'query' argument.
21637         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
21638         (num_processors): Add a 'query' argument. Test the value of the
21639         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
21640         mingw, count the number of CPUs available for the current process.
21641         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
21642         Check for sched_getaffinity and sched_getaffinity_np.
21643         * modules/nproc (Depends-on): Add c-ctype, extensions.
21644         * NEWS: Mention the change.
21645
21646 2009-11-03  Bruno Haible  <bruno@clisp.org>
21647
21648         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
21649
21650 2009-11-03  Jim Meyering  <meyering@redhat.com>
21651
21652         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
21653         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
21654         if it is defined.
21655
21656 2009-11-02  Eric Blake  <ebb9@byu.net>
21657
21658         mktime, timegm: share common declaration
21659         * lib/mktime-internal.h: New file.
21660         * lib/mktime.c: Use it rather than open-coding a declaration.
21661         * lib/timegm.c: Likewise.
21662         * modules/mktime (Files): Ship it.
21663         * modules/timegm (Files): Likewise.
21664         Suggested by Bruno Haible.
21665
21666         test-update-copyright: update test to match script changes
21667         * tests/test-update-copyright.sh: Avoid hard-coding perl
21668         location.  Don't update *.bak created by earlier runs.
21669
21670 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
21671             Simon Josefsson  <simon@josefsson.org>
21672             Bruno Haible  <bruno@clisp.org>
21673
21674         Fix link error on Solaris 8.
21675         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
21676         also in libnsl. Define also INET_PTON_LIB.
21677         * modules/inet_pton (Link): New section.
21678
21679 2009-11-02  Simon Josefsson  <simon@josefsson.org>
21680             Bruno Haible  <bruno@clisp.org>
21681
21682         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
21683         * modules/inet_ntop (Link): New section.
21684         Reported by Boyan Kasarov <bkasarov@gmail.com>.
21685
21686 2009-11-02  Eric Blake  <ebb9@byu.net>
21687
21688         maint: avoid compiler warnings in m4 macros
21689         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
21690         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
21691
21692 2009-11-02  Simon Josefsson  <simon@josefsson.org>
21693
21694         * m4/pmccabe2html.m4: Remove file.
21695         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
21696         function.  Change maintainer.
21697         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
21698         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
21699         Courtès).
21700
21701 2009-10-31  Eric Blake  <ebb9@byu.net>
21702
21703         fseeko: fix m4 regression
21704         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
21705         regression from 2009-10-27.
21706         Reported by Ralf Wildenhues.
21707
21708 2009-10-31  Jim Meyering  <meyering@redhat.com>
21709
21710         inttostr: aesthetics and improved (compile-time) safety
21711         Define inttype_is_signed rather than inttype_is_unsigned,
21712         since the sole use is via "#if inttype_is_signed".
21713         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
21714         inttype_is_unsigned.
21715         * lib/offtostr.c (inttype_is_signed): Likewise.
21716         * lib/uinttostr.c (inttype_is_signed): Likewise.
21717         * lib/umaxtostr.c (inttype_is_signed): Likewise.
21718         * lib/inttostr.c (inttostr): Use verify to cross-check the
21719         inttype_is_signed value and the signedness of the actual type.
21720         * modules/inttostr (Depends-on): Add verify.
21721
21722 2009-10-30  Eric Blake  <ebb9@byu.net>
21723
21724         build: avoid compiler warnings
21725         * lib/fchmodat.c (lchmod): Mark unused variables.
21726         * lib/getopt.c (_getopt_initialize): Likewise.
21727         * lib/mktime.c (__mktime_internal): Provide prototype.
21728         * lib/inttostr.c (inttostr): Avoid compiler warning even with
21729         older gcc that do not understand #pragma GCC diagnostic.
21730         * lib/uinttostr.c (inttype_is_unsigned): Define.
21731         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
21732
21733 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
21734
21735         stat: fix compilation on AIX
21736         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
21737         only see struct stat64.
21738
21739 2009-10-30  Eric Blake  <ebb9@byu.net>
21740
21741         exclude: make more robust
21742         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
21743         rather than masking a coding bug.
21744         Suggested by Bruno Haible.
21745
21746 2009-10-30  Jim Meyering  <meyering@redhat.com>
21747
21748         perl scripts: remove #!/usr/bin/perl in favor of more portable...
21749         Rather than putting #!/usr/bin/perl on the first line,
21750         start with a variant of what's recommended by "man perlrun" that
21751         invokes the first "perl" program from your shell's search path.
21752         * build-aux/gitlog-to-changelog: Replace #!... as above.
21753         Add a "Local Variables" perl mode setting.
21754         Prompted by a patch from Ludovic Courtès.
21755         Improved by Eric Blake.
21756         * build-aux/useless-if-before-free: Likewise.
21757         * build-aux/announce-gen: Likewise.
21758         * build-aux/update-copyright: Likewise.
21759
21760 2009-10-29  Eric Blake  <ebb9@byu.net>
21761
21762         filenamecat-lgpl: adjust clients
21763         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
21764         filenamecat.
21765         * modules/renameat (Depends-on): Likewise.
21766
21767         filenamecat: split into filenamecat-lgpl
21768         * modules/filenamecat-lgpl: New module.
21769         * modules/filenamecat (Files): Move library-safe files into
21770         filenamecat-lgpl.
21771         (Depends-on): Add filenamecat-lgpl.
21772         (configure.ac): Declare witness.
21773         * lib/filenamecat.h (file_name_concat): Only declare when using
21774         GPL module.
21775         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
21776         Move...
21777         * lib/filenamecat-lgpl.c: ...into new file.
21778         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
21779         (gl_FILE_NAME_CONCAT): Use it.
21780         * MODULES.html.sh (File system functions): Mention new module.
21781
21782         argp: avoid memory leak
21783         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
21784         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
21785         base_name, since the latter malloc()s and can call exit().
21786         Leak introduced 2006-07-03.
21787
21788         dirname-lgpl: adjust clients that don't need full dirname
21789         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
21790         * modules/filenamecat (Depends-on): Likewise.
21791         * modules/linkat (Depends-on): Likewise.
21792         * modules/mkancesdirs (Depends-on): Likewise.
21793         * modules/mkdir (Depends-on): Likewise.
21794         * modules/openat (Depends-on): Likewise.
21795         * modules/savewd (Depends-on): Likewise.
21796         * modules/rename (Depends-on): Likewise.
21797         (License): Relax license.
21798         * modules/mkdir-tests (Depends-on): Drop progname.
21799         (Makefile.am): Delete unneeded LDADD.
21800         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
21801
21802         dirname: split into dirname-lgpl
21803         * modules/dirname-lgpl: New module.
21804         * modules/dirname (Files): Move library-safe files into
21805         dirname-lgpl.
21806         (Depends-on): Add dirname-lgpl.
21807         (configure.ac): Declare witness.
21808         * modules/double-slash-root (License): Relax license.
21809         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
21810         module.
21811         * lib/dirname.c (dir_len, mdir_name): Move...
21812         * lib/dirname-lgpl.c: ...into new file.
21813         * lib/basename.c (last_component, base_len): Move...
21814         * lib/basename-lgpl.c: ...into new file.
21815         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
21816         (gl_DIRNAME): Use it.
21817         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
21818         Mention new module.
21819         * modules/dirname-tests (Depends-on): Add progname.
21820         * tests/test-dirname.c (program_name): Delete.
21821
21822         mkdir: make safe for libraries
21823         * modules/mkdir (Depends-on): Drop xalloc.
21824         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
21825         exit.
21826
21827         tests: avoid some compiler warnings
21828         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
21829         literals.
21830         * tests/test-memchr.c (main): Avoid type mismatch.
21831         * tests/test-arpa_inet.c (main): Avoid unused parameters.
21832         * tests/test-base64.c (main): Likewise.
21833         * tests/test-getdelim.c (main): Likewise.
21834         * tests/test-gethostname.c (main): Likewise.
21835         * tests/test-getline.c (main): Likewise.
21836         * tests/test-netinet_in.c (main): Likewise.
21837         * tests/test-select.c (open_server_socket, main): Likewise.
21838         * tests/test-select-stdin.c (main): Likewise.
21839         * tests/test-sockets.c (main): Likewise.
21840         * tests/test-strsignal.c (main): Likewise.
21841         * tests/test-sys_select.c (main): Likewise.
21842         * tests/test-sys_socket.c (main): Likewise.
21843         * tests/test-u64.c (main): Likewise.
21844         * tests/test-xfprintf-posix.c (main): Likewise.
21845         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
21846
21847         sockets: avoid compiler warning
21848         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
21849
21850         maint: detect usage(1) and other suspicious exits
21851         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
21852
21853 2009-10-29  Jim Meyering  <meyering@redhat.com>
21854
21855         timespec: long-to-int truncation could make timespec_cmp malfunction
21856         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
21857         a multiple of 2^32 nanoseconds as no difference.
21858
21859 2009-10-28  Jim Meyering  <meyering@redhat.com>
21860
21861         fprintftime: wrap macro code argument in "do {...} while(0)"
21862         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
21863         cpy macro must be a statement that can be followed by a semicolon.
21864         Now that the else clause contains a comment and is hence longer
21865         than one line, I require curly braces.  That in turn requires
21866         that we wrap this code block in the standard do...while(0).
21867
21868         fprintftime: remove stray semicolon from previous change
21869         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
21870
21871         fprintftime: avoid a warning about ignored fwrite return value
21872         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
21873         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
21874         that is unsafe.
21875         * modules/fprintftime (Depends-on): Add ignore-value.
21876
21877         exclude: avoid an unwarranted warning
21878         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
21879
21880 2009-10-27  Eric Blake  <ebb9@byu.net>
21881
21882         fseek: avoid compilation failure when fflush is replaced
21883         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
21884         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
21885         module is in use.
21886         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
21887         module is not in use; since REPLACE_FSEEK worked otherwise.
21888         (GNULIB_FTELLO): Likewise for ftell.
21889         Reported by Ian Beckwith and others.
21890
21891 2009-10-27  Bruno Haible  <bruno@clisp.org>
21892
21893         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
21894         Reported by Jim Meyering.
21895
21896 2009-10-27  Jim Meyering  <jim@meyering.net>
21897             Bruno Haible  <bruno@clisp.org>
21898
21899         Avoid warning despite dropping the return value of fwrite.
21900         * lib/unicodeio.c: Include ignore-value.h.
21901         (fwrite_success_callback): Explicitly ignore fwrite's return value.
21902         * modules/unicodeio (Depends-on): Add ignore-value.
21903
21904 2009-10-26  Eric Blake  <ebb9@byu.net>
21905
21906         areadlinkat: fix fallback path
21907         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
21908         pointer and zero.
21909
21910 2009-10-22  Pádraig Brady  <P@draigBrady.com>
21911
21912         Use a better IO block size for modern systems
21913         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
21914         * lib/md2.c: Likewise.
21915         * lib/md4.c: Likewise.
21916         * lib/md5.c: Likewise.
21917         * lib/sha1.c: Likewise.
21918         * lib/sha256.c: Likewise.
21919         * lib/sha512.c: Likewise.
21920
21921 2009-10-22  Eric Blake  <ebb9@byu.net>
21922
21923         tests: avoid several compiler warnings
21924         * tests/test-getcwd.c (main): Avoid buffer underflow.
21925         * tests/test-getdate.c (main): String literals are not safe with
21926         putenv, so use setenv.  Declare unused argument.
21927         * modules/getdate-tests (Depends-on): Add setenv.
21928         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
21929         problems with string literals in char *.
21930         * tests/test-hash.c (main): Avoid shadowing declaration.
21931         (insert_new): Treat string literals as char const *.
21932         * tests/test-getopt.h (test_getopt): Likewise.
21933         (getopt_loop): Alter types to minimize casting elsewhere.
21934         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
21935         (test_getopt_long_posix): Likewise.
21936         (do_getopt_long): Add wrapper to minimize casting.
21937         * tests/test-atexit.c (clear_temp_file): Use void.
21938         * tests/test-areadlink-with-size.c (main): Declare unused
21939         arguments.
21940         * tests/test-areadlink.c (main): Likewise.
21941         * tests/test-areadlinkat-with-size.c (main): Likewise.
21942         * tests/test-areadlinkat.c (main): Likewise.
21943         * tests/test-canonicalize-lgpl.c (main): Likewise.
21944         * tests/test-canonicalize.c (main): Likewise.
21945         * tests/test-dirent-safer.c (main): Likewise.
21946         * tests/test-dirname.c (main): Likewise.
21947         * tests/test-dup2.c (main): Likewise.
21948         * tests/test-fchdir.c (main): Likewise.
21949         * tests/test-fcntl-h.c (main): Likewise.
21950         * tests/test-fcntl-safer.c (main): Likewise.
21951         * tests/test-fdopendir.c (main): Likewise.
21952         * tests/test-fdutimensat.c (main): Likewise.
21953         * tests/test-fflush.c (main): Likewise.
21954         * tests/test-filenamecat.c (main): Likewise.
21955         * tests/test-filevercmp.c (main): Likewise.
21956         * tests/test-fopen-safer.c (main): Likewise.
21957         * tests/test-fopen.c (main): Likewise.
21958         * tests/test-fpending.c (main): Likewise.
21959         * tests/test-fpurge.c (main): Likewise.
21960         * tests/test-freading.c (main): Likewise.
21961         * tests/test-fstatat.c (main): Likewise.
21962         * tests/test-fsync.c (main): Likewise.
21963         * tests/test-futimens.c (main): Likewise.
21964         * tests/test-getndelim2.c (main): Likewise.
21965         * tests/test-gettimeofday.c (main): Likewise.
21966         * tests/test-getopt.c (main): Likewise.
21967         * tests/test-i-ring.c (main): Likewise.
21968         * tests/test-inttypes.c (main): Likewise.
21969         * tests/test-link.c (main): Likewise.
21970         * tests/test-lstat.c (main): Likewise.
21971         * tests/test-math.c (main): Likewise.
21972         * tests/test-md5.c (main): Likewise.
21973         * tests/test-memchr2.c (main): Likewise.
21974         * tests/test-memrchr.c (main): Likewise.
21975         * tests/test-mkdir.c (main): Likewise.
21976         * tests/test-mkdirat.c (main): Likewise.
21977         * tests/test-mkfifoat.c (main): Likewise.
21978         * tests/test-open.c (main): Likewise.
21979         * tests/test-openat-safer.c (main): Likewise.
21980         * tests/test-openat.c (main): Likewise.
21981         * tests/test-quotearg.c (main): Likewise.
21982         * tests/test-rawmemchr.c (main): Likewise.
21983         * tests/test-readlink.c (main): Likewise.
21984         * tests/test-remove.c (main): Likewise.
21985         * tests/test-rename.c (main): Likewise.
21986         * tests/test-renameat.c (main): Likewise.
21987         * tests/test-rmdir.c (main): Likewise.
21988         * tests/test-sha1.c (main): Likewise.
21989         * tests/test-signal.c (main): Likewise.
21990         * tests/test-sigaction.c (main): Likewise.
21991         * tests/test-stat.c (main): Likewise.
21992         * tests/test-stat-time.c (main): Likewise.
21993         * tests/test-stddef.c (main): Likewise.
21994         * tests/test-stdint.c (main): Likewise.
21995         * tests/test-stdio.c (main): Likewise.
21996         * tests/test-stdlib.c (main): Likewise.
21997         * tests/test-strchrnul.c (main): Likewise.
21998         * tests/test-strerror.c (main): Likewise.
21999         * tests/test-string.c (main): Likewise.
22000         * tests/test-strtod.c (main): Likewise.
22001         * tests/test-strverscmp.c (main): Likewise.
22002         * tests/test-symlink.c (main): Likewise.
22003         * tests/test-symlinkat.c (main): Likewise.
22004         * tests/test-sys_stat.c (main): Likewise.
22005         * tests/test-sys_time.c (main): Likewise.
22006         * tests/test-time.c (main): Likewise.
22007         * tests/test-unistd.c (main): Likewise.
22008         * tests/test-unlink.c (main): Likewise.
22009         * tests/test-unlinkat.c (main): Likewise.
22010         * tests/test-utimens.c (main): Likewise.
22011         * tests/test-utimensat.c (main): Likewise.
22012         * tests/test-version-etc.c (main): Likewise.
22013         * tests/test-wchar.c (main): Likewise.
22014         * tests/test-wctype.c (main): Likewise.
22015         * tests/test-xprintf-posix.c (main): Likewise.
22016         * tests/test-posixtm.c (main): Likewise.
22017         (STREQ): Delete unused macro.
22018         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
22019         shadowed variables.
22020         * tests/test-memchr.c (main): Likewise.
22021
22022 2009-10-21  Eric Blake  <ebb9@byu.net>
22023
22024         areadlinkat: avoid failure on older glibc
22025         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
22026         rather than mis-comparing 0 against FUNC_RESULT of char*.
22027
22028 2009-10-21  Bruno Haible  <bruno@clisp.org>
22029
22030         * modules/stpncpy (License): Relicense under LGPLv2+.
22031         Reported by David Lutterkort <lutter@redhat.com>.
22032
22033 2009-10-20  Eric Blake  <ebb9@byu.net>
22034
22035         utimensat: work around Solaris 9 bug
22036         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
22037         has trailing slash bugs.
22038         * tests/test-lutimens.h (test_lutimens): Enhance test.
22039         * tests/test-utimens.h (test_utimens): Likewise.
22040         * doc/posix-functions/utime.texi (utime): Enhance documentation.
22041         * doc/posix-functions/utimes.texi (utimes): Likewise.
22042         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22043         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
22044         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
22045         * doc/posix-functions/futimens.texi (futimens): Likewise.
22046
22047         fdutimensat: new module
22048         * modules/fdutimensat: New file.
22049         * lib/fdutimensat.c (fdutimensat): Likewise.
22050         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
22051         * MODULES.html.sh (File system functions): Mention module.
22052         * modules/fdutimensat-tests: New test.
22053         * tests/test-fdutimensat.c: Likewise.
22054
22055         doc: regenerate INSTALL
22056         * doc/INSTALL: Reflect recent autoconf update.
22057         * doc/INSTALL.ISO: Likewise.
22058         * doc/INSTALL.UTF-8: Likewise.
22059
22060 2009-10-20  Pádraig Brady  <P@draigBrady.com>
22061
22062         acl: warn if ACL support is not detected
22063         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
22064
22065 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
22066
22067         * lib/nproc.h: Add extern "C" block for C++.
22068
22069 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
22070             Bruno Haible  <bruno@clisp.org>
22071
22072         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
22073         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
22074         * doc/posix-functions/isalpha.texi: Likewise.
22075         * doc/posix-functions/isblank.texi: Likewise.
22076         * doc/posix-functions/iscntrl.texi: Likewise.
22077         * doc/posix-functions/isdigit.texi: Likewise.
22078         * doc/posix-functions/isgraph.texi: Likewise.
22079         * doc/posix-functions/islower.texi: Likewise.
22080         * doc/posix-functions/isprint.texi: Likewise.
22081         * doc/posix-functions/ispunct.texi: Likewise.
22082         * doc/posix-functions/isspace.texi: Likewise.
22083         * doc/posix-functions/isupper.texi: Likewise.
22084         * doc/posix-functions/isxdigit.texi: Likewise.
22085
22086 2009-10-18  Bruno Haible  <bruno@clisp.org>
22087
22088         Tests for module 'isblank'.
22089         * modules/isblank-tests: New file.
22090         * tests/test-isblank.c: New file.
22091
22092         New module 'isblank'.
22093         * lib/isblank.c: New file.
22094         * m4/isblank.m4: New file.
22095         * modules/isblank: New file.
22096         * doc/posix-functions/isblank.texi: Mention the new module.
22097
22098 2009-10-18  Bruno Haible  <bruno@clisp.org>
22099
22100         New module 'ctype'.
22101         * lib/ctype.in.h: New file.
22102         * m4/ctype.m4: New file.
22103         * modules/ctype: New file.
22104         * doc/posix-headers/ctype.texi: Mention the new module.
22105
22106 2009-10-18  Jim Meyering  <meyering@redhat.com>
22107
22108         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
22109         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
22110         right after its initialization, rather than farther down.
22111         Keeping these in close proximity makes it easier to ensure
22112         that each such variable is initialized.  E.g.,
22113
22114             LIB_CLOCK_GETTIME=
22115             AC_SUBST([LIB_CLOCK_GETTIME])
22116
22117         This change also increments these serial numbers.
22118         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
22119         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
22120         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22121
22122 2009-10-18  Bruno Haible  <bruno@clisp.org>
22123
22124         Don't let environment variables perturb build.
22125         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
22126         (gl_PREREQ_GETHRXTIME): ... not here.
22127
22128 2009-10-18  Bruno Haible  <bruno@clisp.org>
22129
22130         Avoid symlink attack in localcharset module.
22131         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
22132         (O_NOFOLLOW): Define fallback.
22133         (get_charset_aliases): Don't open the file if it is a symbolic link.
22134         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
22135         gl_FCNTL_H.
22136         (gl_FCNTL_H): Require it.
22137         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
22138         * modules/localcharset (Files): Add m4/fcntl_h.m4.
22139         Reported by Fergal Glynn <fglynn@veracode.com>.
22140
22141 2009-10-18  Bruno Haible  <bruno@clisp.org>
22142
22143         Implement nproc for mingw.
22144         * lib/nproc.c: Include <windows.h>
22145         (num_processors): On native Windows platforms, try GetSystemInfo.
22146
22147 2009-10-18  Bruno Haible  <bruno@clisp.org>
22148
22149         Implement nproc for IRIX.
22150         * lib/nproc.c: Include <sys/sysmp.h>.
22151         (num_processors): On IRIX systems, try sysmp.
22152         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
22153
22154 2009-10-18  Bruno Haible  <bruno@clisp.org>
22155
22156         Implement nproc for HP-UX.
22157         * lib/nproc.c: Include <sys/pstat.h>
22158         (num_processors): On HP-UX systems, try pstat_getdynamic.
22159         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
22160         pstat_getdynamic.
22161
22162 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
22163             Bruno Haible  <bruno@clisp.org>
22164
22165         Implement nproc for NetBSD, OpenBSD.
22166         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
22167         (ARRAY_SIZE): New macro.
22168         (num_processors): On BSD systems, try sysctl of HW_NCPU.
22169         * m4/nproc.m4: New file.
22170         * modules/nproc (Files): Add m4/nproc.m4.
22171         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
22172         (Makefile.am): Instead, augment lib_SOURCES.
22173
22174 2009-10-18  Bruno Haible  <bruno@clisp.org>
22175
22176         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
22177         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
22178         sys/param.h.
22179
22180 2009-10-16  Eric Blake  <ebb9@byu.net>
22181
22182         utimensat: new module
22183         * modules/utimensat: New file.
22184         * lib/utimensat.c (utimensat): Likewise.
22185         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22186         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
22187         so we can work around Linux bugs.
22188         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22189         * modules/sys_stat (Makefile.am): Substitute them.
22190         * lib/sys_stat.in.h (utimensat): Declare it.
22191         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22192         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22193         * modules/utimensat-tests: New test.
22194         * tests/test-utimensat.c: Likewise.
22195
22196         utimens: let lutimens work on non-symlinks
22197         * lib/utimens.c (lutimens): Fall back to utimens rather than
22198         failing with ENOSYS, when file is not a symlink.
22199         (utimens): Reduce redirection.
22200         * tests/test-lutimens.h (test_lutimens): Update test to cover
22201         non-symlinks.
22202         * tests/test-utimens.h (test_utimens): Update test to cover
22203         symlinks.
22204         * tests/test-utimens.c (main): Update caller.
22205
22206         utimens: cache whether utimensat syscall works
22207         * lib/utimens.c (utimensat_works_really): New cache variable.
22208         (fdutimens, lutimens): Use it to avoid failing syscall.
22209
22210         test-stat-time, test-utimens: improve portability
22211         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
22212         ext4 on alpha, and for cygwin.
22213         * tests/test-utimens-common.h: New file.
22214         (nap): Factor delays into single function.
22215         * tests/test-lutimens.h (test_lutimens): Use new header.
22216         * tests/test-futimens.h (test_futimens): Likewise.
22217         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
22218         timestamps to occur from same machine, as was done previously for
22219         test_utimens.
22220         * modules/utimens-tests (Files): Ship new file.
22221         * modules/futimens-tests (Files): Likewise.
22222         Reported in part by Jim Meyering.
22223
22224         sys_stat: sort replacement declarations
22225         * lib/sys_stat.in.h: Sort declarations.
22226         * lib/futimens.c (futimens): Fix typo.
22227
22228 2009-10-15  Jim Meyering  <meyering@redhat.com>
22229
22230         don't let environment settings perturb build
22231         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
22232         could cause a configure-time and/or build-time malfunction.
22233         Typically, a configure-time function-in-library test is performed
22234         via code like this:
22235
22236           LIB_VAR=
22237           AC_SUBST([LIB_VAR])
22238           prefix_saved_LIBS=$LIBS
22239             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
22240                        [test "$ac_cv_search_FUNC" = "none required" ||
22241                         LIB_VAR=$ac_cv_search_FUNC])
22242           LIBS=$prefix_saved_LIBS
22243
22244         However, in each of the files affected by this change, the LIB_VAR=
22245         initialization was omitted.  Thus, when set in the environment, its
22246         value would propagate into generated Makefiles when FUNC is not found
22247         in LIB_NAME.
22248         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
22249         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
22250         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22251
22252 2009-10-14  Eric Blake  <ebb9@byu.net>
22253
22254         fchdir: avoid infinite recursion in mingw
22255         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
22256         recursing.
22257
22258         test-stat-time: port to mingw
22259         * tests/test-stat-time.c (force_unlink): Return a value.
22260         (test_ctime) [W32]: Fix compilation error.
22261         (nap): Don't call usleep with too large an argument.  Use
22262         force_unlink.
22263         * doc/pastposix-functions/usleep.texi (usleep): Document the
22264         portability issue.
22265
22266 2009-10-13  Jim Meyering  <meyering@redhat.com>
22267
22268         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
22269         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
22270         * modules/pipe-filter-ii: Likewise.
22271         * modules/sys_socket-tests: Likewise.
22272         * modules/tsearch-tests: Likewise.
22273         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
22274         (check): Depend on it.
22275
22276 2009-10-12  Eric Blake  <ebb9@byu.net>
22277
22278         utimens-tests: port to NFS file systems
22279         * tests/test-utimens.h (test_utimens): Refactor utimecmp
22280         comparisons to avoid spurious failures from timestamp drift
22281         between NFS machines.
22282
22283 2009-10-12  Eric Blake  <ebb9@byu.net>
22284
22285         stat-time-tests: minor cleanups
22286         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
22287         * tests/test-stat-time.c (nap): Separate assignment from call.
22288         Suggested by Paolo Bonzini and Bruno Haible.
22289
22290         sys_stat: guarantee struct timespec
22291         * lib/sys_stat.in.h (includes): Always include <time.h>
22292         * modules/sys_stat (Depends-on): Add time.
22293         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
22294         mode_t permission values.
22295         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
22296         get at subsecond timestamps.
22297
22298 2009-10-10  Eric Blake  <ebb9@byu.net>
22299
22300         futimens: new module
22301         * modules/futimens: New file.
22302         * lib/futimens.c (futimens): Likewise.
22303         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
22304         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
22305         we can work around Linux bugs.
22306         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22307         * modules/sys_stat (Makefile.am): Substitute them.
22308         * lib/sys_stat.in.h (futimens): Declare it.
22309         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22310         * doc/posix-functions/futimens.texi (futimens): Likewise.
22311         * modules/futimens-tests: New test.
22312         * tests/test-futimens.c: Likewise.
22313
22314         utimens: introduce fdutimens
22315         * lib/utimens.h (fdutimens): New prototype.
22316         * lib/utimens.c (gl_futimens): Move guts...
22317         (fdutimens): ...to new interface.
22318         * tests/test-utimens.c (do_fdutimens): Use it.
22319
22320         utimens: add UTIME_NOW and UTIME_OMIT support
22321         * lib/utimens.c (validate_timespec, update_timespec): New helper
22322         functions.
22323         (gl_futimens, lutimens): Use them.
22324         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
22325         stdbool, sys_stat.
22326         (Link): Mention resulting library dependency.
22327         * modules/utimecmp (Link): Likewise.
22328         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
22329         (Makefile.am): Pick up library dependency.
22330         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
22331         definition.
22332         * tests/test-sys_stat.c: Test the definitions.
22333         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
22334         * NEWS: Document library dependency.
22335
22336         utimecmp: support symlink timestamps
22337         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
22338         hashing when possible.  Use pathconf when available.
22339         (SYSCALL_RESOLUTION): Recognize tighter resolution.
22340         * modules/utimecmp (Depends-on): Add lstat.
22341
22342         utimens: add lutimens interface
22343         * lib/utimens.c (lutimens): New function.
22344         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
22345         * lib/utimens.h (lutimens): Declare new interface.
22346         * tests/test-utimens.c (main): Enhance test.
22347         * tests/test-lutimens.h (test_lutimens): New file.
22348         * modules/utimens-tests (Files): Distribute it.
22349         (Depends-on): Add symlink.
22350         (configure.ac): Check for usleep.
22351
22352         utimens: validate futimens usage
22353         * lib/utimens.c (gl_futimens): Require valid fd up front, using
22354         fewer syscalls on failure later on.  Avoid compiler warning on
22355         mingw.
22356         * modules/utimens (Depends-on): Add dup2.
22357
22358         utimens: add test
22359         * modules/utimens-tests: New test.
22360         * tests/test-utimens.h: New file.
22361         * tests/test-futimens.h: Likewise.
22362         * tests/test-utimens.c: Likewise.
22363
22364         doc: mention timestamp portability issues
22365         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
22366         instead.
22367         * doc/posix-functions/utime.texi (utime): Likewise.
22368         * doc/posix-functions/utimes.texi (utimes): Likewise.
22369         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
22370         instead.
22371         * doc/posix-functions/futimens.texi (futimens): Mention utimens
22372         module.
22373         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22374         Mention weakness with symlink timestamps.
22375         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
22376         to utimensat/futimens instead.
22377         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
22378
22379         test-dup2: enhance test
22380         * tests/test-dup2.c (main): Also check AT_FDCWD.
22381
22382         test-stat-time: avoid more spurious failures
22383         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
22384         xfs; and avoid race if the two timestamps cross quantization edge.
22385
22386         relocatable: prefer 'file system' over 'filesystem'
22387         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
22388         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
22389         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
22390         * doc/relocatable.texi (Enabling Relocatability): Likewise.
22391         * lib/relocatable.c (compute_curr_prefix): Likewise.
22392
22393 2009-10-10  Jim Meyering  <meyering@redhat.com>
22394
22395         stat-time-tests: check for the usleep function
22396         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
22397
22398 2009-10-10  Bruno Haible  <bruno@clisp.org>
22399
22400         * modules/xnanosleep: Put the Link section after the Include section.
22401
22402 2009-10-09  Eric Blake  <ebb9@byu.net>
22403
22404         dup2: work around FreeBSD 6.1 bug
22405         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
22406         * doc/posix-functions/dup2.texi (dup2): Document it.
22407         Reported by Nelson H. F. Beebe and Jim Meyering.
22408
22409         test-stat-time: port to buggy NFS clients
22410         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
22411         (test_ctime): Also skip test if mtime and ctime are skewed.
22412
22413         maint: prefer 'file system' over 'filesystem'
22414         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
22415         * doc/posix-functions/lstat.texi (lstat): Likewise.
22416         * lib/file-has-acl.c (file_has_acl): Likewise.
22417         * lib/fwriteerror.c [TEST]: Likewise.
22418         * tests/test-areadlink.h (test_areadlink): Likewise.
22419         * tests/test-areadlinkat-with-size.c (main): Likewise.
22420         * tests/test-areadlinkat.c (main): Likewise.
22421         * tests/test-canonicalize-lgpl.c (main): Likewise.
22422         * tests/test-canonicalize.c (main): Likewise.
22423         * tests/test-fstatat.c (main): Likewise.
22424         * tests/test-linkat.c (main): Likewise.
22425         * tests/test-lstat.h (test_lstat_func): Likewise.
22426         * tests/test-mkdir.h (test_mkdir): Likewise.
22427         * tests/test-readlink.h (test_readlink): Likewise.
22428         * tests/test-remove.c (main): Likewise.
22429         * tests/test-rename.h (test_rename): Likewise.
22430         * tests/test-renameat.c (main): Likewise.
22431         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22432         * tests/test-symlink.h (test_symlink): Likewise.
22433         * tests/test-symlinkat.c (main): Likewise.
22434         * tests/test-unlink.h (test_unlink_func): Likewise.
22435         * tests/test-unlinkat.c (main): Likewise.
22436
22437         maint: make realtime library usage explicit
22438         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
22439         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
22440         * modules/settime (Link): Likewise.
22441         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
22442
22443         test-stat-time: speed up execution
22444         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
22445         warning on mingw.
22446         (nap): New helper function.
22447         (prepare_test): Use it to reduce sleep time.
22448         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
22449         execution.
22450         * modules/stat-time-tests (configure.ac): Check for usleep.
22451
22452 2009-10-09  Jim Meyering  <meyering@redhat.com>
22453
22454         selinux-h: always use getfilecon wrappers
22455         * lib/getfilecon.c: New file.
22456         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
22457         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
22458         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
22459         (fgetfilecon): Provide a stub.
22460         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
22461         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
22462         file unconditionally.
22463         When <selinux/selinux.h> is found, arrange to use wrappers.
22464         * modules/selinux-h (Files): Add getfilecon.c.
22465         (Makefile.am): Substitute include-next-related bits
22466         into the now-always-generated selinux/selinux.h file.
22467         * doc/glibc-functions/lgetfilecon.texi: New file.
22468         * doc/glibc-functions/fgetfilecon.texi: New file.
22469         * doc/glibc-functions/getfilecon.texi: New file.
22470         * doc/glibc-functions/getfilecon-desc.texi: New file.
22471         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
22472         which to pull in the new files.
22473         * MODULES.html.sh (Misc): Add selinux-h.
22474
22475 2009-10-08  Jim Meyering  <meyering@redhat.com>
22476
22477         unistd: fix comment typo
22478         * lib/unistd.in.h (euidaccess): Fix a comment typo.
22479
22480 2009-10-08  Eric Blake  <ebb9@byu.net>
22481
22482         areadlink: use SIZE_MAX consistently
22483         * modules/areadlink (Depends-on): Add stdint.
22484         * modules/areadlink-with-size (Depends-on): Likewise.
22485         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
22486         gives NULL; drop sys/types, since unistd gives size_t; and add
22487         stdint for SIZE_MAX.
22488         (SIZE_MAX): Rely on headers.
22489         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
22490         and add stdint.
22491         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
22492         (SIZE_MAX): Likewise.
22493         (INITIAL_BUF_SIZE): Turn into enum.
22494         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
22495
22496 2009-10-08  Jim Meyering  <meyering@redhat.com>
22497
22498         areadlinkat: avoid compilation failure
22499         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
22500         Fix typo in comment.
22501
22502 2009-10-07  Eric Blake  <ebb9@byu.net>
22503
22504         areadlinkat-with-size: new module
22505         * modules/areadlinkat-with-size: New module.
22506         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
22507         * lib/areadlink.h (areadlinkat): Declare it.
22508         * MODULES.html.sh (File system functions): Mention it.
22509         * modules/areadlinkat-with-size-tests: New test.
22510         * tests/test-areadlinkat-with-size.c: New file.
22511
22512         xreadlinkat: new module
22513         * modules/xreadlinkat: New module.
22514         * lib/xreadlinkat.c (xreadlinkat): New file.
22515         * lib/xreadlink.h (xreadlinkat): Declare it.
22516         * MODULES.html.sh (File system functions): Mention it.
22517
22518         areadlinkat: new module
22519         * lib/at-func.c (FUNC_FAIL): New define.
22520         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
22521         * modules/areadlinkat: New module.
22522         * lib/linkat.c (areadlinkat): Move...
22523         * lib/areadlinkat.c (areadlinkat): ...to new file.
22524         * lib/areadlink.h (areadlinkat): Declare it.
22525         * modules/linkat (Depends-on): Add areadlinkat.
22526         * MODULES.html.sh (File system functions): Mention it.
22527         * modules/areadlinkat-tests: New test.
22528         * tests/test-areadlinkat.c: New file.
22529
22530         areadlink, areadlink-with-size: add tests
22531         * modules/areadlink-tests: New test.
22532         * modules/areadlink-with-size-tests: Likewise.
22533         * tests/test-areadlink.h: New file.
22534         * tests/test-areadlink.c: Likewise.
22535         * tests/test-areadlink-with-size.c: Likewise.
22536
22537         maint: minor cleanups
22538         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
22539         _UNUSED_PARAMETER_ instead.
22540         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
22541         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
22542         * modules/linkat-tests (Files): Distribute test-link.h.
22543
22544         openat, utimens: whitespace cleanup
22545         * lib/openat.c: Prefer space throughout, rather than mix of 8
22546         spaces vs. tabs.
22547         * lib/at-func.c: Likewise.
22548         * lib/utimens.c: Likewise.
22549
22550         openat: avoid using wrong fd
22551         * lib/openat.c (openat_permissive): Reject user's fd if saving the
22552         working directory chooses same fd.
22553         * lib/at-func.c (AT_FUNC_NAME): Likewise.
22554
22555         mkdir, mkdirat: fix cygwin 1.5.x bug
22556         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
22557         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
22558         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
22559         bug.
22560         (gl_PREREQ_MKDIR): Delete unused macro.
22561         * modules/mkdir (Files): Track file rename.
22562         (configure.ac): Update macro name.
22563         * modules/openat (Depends-on): Add mkdir.
22564         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
22565
22566         mkdir, mkdirat: add tests
22567         * modules/mkdir-tests: New test.
22568         * tests/test-mkdir.h: New file.
22569         * tests/test-mkdir.c: Likewise.
22570         * tests/test-mkdirat.c: Likewise.
22571         * modules/openat-tests (Files): Add new files.
22572         (Makefile.am): Run new test.
22573
22574 2009-10-06  Eric Blake  <ebb9@byu.net>
22575
22576         doc: tweak *at function documentation
22577         * doc/posix-functions/faccessat.texi (faccessat): Mention
22578         known issue with replacement.
22579         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
22580         * doc/posix-functions/linkat.texi (linkat): Likewise.
22581         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
22582         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
22583         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22584         * doc/posix-functions/renameat.texi (renameat): Likewise.
22585         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
22586
22587         openat: fix GNU/Hurd bug in unlinkat
22588         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
22589         broken.
22590         * doc/posix-functions/unlink.texi (unlink): Document this.
22591         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
22592
22593         fdopendir: fix GNU/Hurd bug
22594         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
22595         allowing non-directory fds.
22596         * lib/fdopendir.c (rpl_fdopendir): Work around it.
22597         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
22598         * modules/dirent (Makefile.am): Substitute it.
22599         * lib/dirent.in.h (fdopendir): Declare replacement.
22600         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
22601         * tests/test-fdopendir.c (main): Test something other than
22602         /dev/null, since on Hurd that behaves like a directory.
22603
22604         test-symlink: port to GNU/Hurd
22605         * tests/test-symlink.h (test_symlink): Relax expected errno.
22606
22607         doc: tweak more cygwin information
22608         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
22609         now compatible with glibc.
22610         * doc/posix-functions/getopt.texi (getopt): Likewise.
22611
22612         getopt-gnu: add another test
22613         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
22614         guarantee behavior relied on by m4.
22615         * tests/test-getopt.c (main): Use it.
22616         * modules/getopt-posix-tests (Depends-on): Add setenv.
22617         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
22618
22619         getopt: fix compilation on darwin
22620         * lib/getopt.in.h (includes): Leave breadcrumbs during system
22621         include.
22622         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
22623         Reported by Ludovic Courtès.
22624
22625 2009-10-06  Bruno Haible  <bruno@clisp.org>
22626
22627         * modules/size_max (Description): Discourage its use.
22628         Reported by Simon Josefsson.
22629
22630 2009-10-06  Jim Meyering  <meyering@redhat.com>
22631
22632         linkat: avoid compilation failure
22633         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
22634
22635 2009-10-05  Eric Blake  <ebb9@byu.net>
22636
22637         linkat: support Linux 2.6.17
22638         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
22639         linkat on Linux, but allow cache variable override.
22640         * lib/linkat.c (rpl_linkat): Define override.
22641         * modules/linkat (Depends-on): Add symlinkat.
22642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
22643         * modules/unistd (Makefile.am): Substitute it.
22644         * lib/unistd.in.h (linkat): Declare replacement.
22645         Reported by Pádraig Brady.
22646
22647         quotearg: port test to systems with C.UTF-8 locale
22648         * tests/test-quotearg.c (struct result_strings): Add another
22649         member, differentiating between C.ASCII and C.UTF-8 handling.
22650         (compare_strings): Add parameter.
22651         (main): Adjust all callers.
22652
22653         getopt: avoid clash with FreeBSD _getopt_internal
22654         * lib/getopt.in.h (_getopt_internal): Override the name.
22655         * lib/getopt_int.h (includes): Pick up any overrides.
22656         Reported by Reuben Thomas.
22657
22658         hash: allow C89 compilation
22659         * lib/hash.c (check_tuning): Move declaration before statement.
22660         Reported by Reuben Thomas.
22661
22662 2009-10-05  Karl Berry  <karl@gnu.org>
22663
22664         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
22665
22666 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
22667             Bruno Haible  <bruno@clisp.org>
22668
22669         * lib/uname.c (uname): Use a table-driven algorithm to compute
22670         Windows NT versions.
22671
22672 2009-10-04  Bruno Haible  <bruno@clisp.org>
22673
22674         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
22675         program_invocation_short_name.
22676         * modules/progname (configure.ac): Test for presence of
22677         program_invocation_short_name.
22678         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
22679
22680 2009-10-04  Bruno Haible  <bruno@clisp.org>
22681
22682         * lib/progname.c (set_program_name): Fix comment.
22683         Reported by Jim Meyering.
22684
22685 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
22686             Bruno Haible  <bruno@clisp.org>
22687
22688         * lib/uname.c: Include <string.h>.
22689         (uname): Do only one call to GetVersionEx in the common case.
22690
22691 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
22692             Bruno Haible  <bruno@clisp.org>
22693
22694         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
22695         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
22696         (uname): Add support for Windows CE and various non-x86 CPU types.
22697
22698 2009-10-03  Bruno Haible  <bruno@clisp.org>
22699
22700         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
22701         invocation to tests/configure.ac.
22702         Reported by Ian Beckwith <ianb@erislabs.net>.
22703
22704 2009-10-02  Eric Blake  <ebb9@byu.net>
22705
22706         fchdir: avoid compiler warning
22707         * lib/fchdir.c (canonicalize_file_name)
22708         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
22709
22710         test-open: support mingw errno values
22711         * tests/test-open.h (test_open): Relax test.
22712         * tests/test-fopen.h (test_fopen): Likewise.
22713         * tests/test-openat-safer.c (main): Likewise.
22714
22715         open: fix opening directory on mingw
22716         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
22717
22718         test-open: on GNU/Hurd, /dev/null is a directory
22719         * tests/test-fopen.h (main): Rename...
22720         (test_fopen): ...to this.  Use a guaranteed non-directory when
22721         confirming open behavior on trailing slash.
22722         * tests/test-openat-safer.c (main): Likewise.
22723         * tests/test-open.h (main): Likewise....
22724         (test_open): ...to this.
22725         * tests/test-fopen.c (main): Adjust caller.
22726         * tests/test-fopen-safer.c (main): Likewise.
22727         * tests/test-open.c (main): Likewise.
22728         * tests/test-fcntl-safer.c (main): Likewise.
22729         Reported by Samuel Thibault.
22730
22731         rename, fchdir: don't ignore chdir failure
22732         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
22733         * lib/rename.c (rpl_rename) [W32]: Likewise.
22734         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
22735         an empty destination directory if source cannot be renamed,
22736         although there is still possibility for failure.
22737         * doc/posix-functions/rename.texi (rename): Document the race.
22738         Reported by Jim Meyering.
22739
22740         maint: cleanup whitespace in recent commits
22741         * lib/rename.c (rpl_rename): Remove tabs.
22742         * tests/test-link.h (test_link): Likewise.
22743         * lib/fchdir.c (get_name): Likewise.
22744         Reported by Jim Meyering.
22745
22746 2009-10-02  Ben Pfaff  <blp@gnu.org>
22747
22748         relocatable-prog-wrapper: Add missing dependency on
22749         double-slash-root.
22750         * modules/relocatable-prog-wrapper: Add dependency.
22751         Reported by Ian Beckwith <ianb@erislabs.net>.
22752
22753 2009-10-02  Eric Blake  <ebb9@byu.net>
22754
22755         renameat: fix Solaris bugs
22756         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
22757         needed fixing.
22758         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
22759         * modules/stdio (Makefile.am): Substitute it.
22760         * lib/stdio.in.h (renameat): Declare replacement.
22761         * lib/renameat.c (rpl_renameat): Implement fix.
22762
22763         renameat: new module
22764         * modules/renameat: New file.
22765         * lib/renameat.c (renameat): Likewise.
22766         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
22767         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
22768         * modules/stdio (Makefile.am): Substitute them.
22769         * lib/stdio.in.h (renameat): Declare it.
22770         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22771         * doc/posix-functions/renameat.texi (renameat): Likewise.
22772         * modules/renameat-tests: New test.
22773         * tests/test-renameat.c: Likewise.
22774
22775         rename: fix mingw bugs
22776         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
22777         directory overwrite bugs.
22778
22779         rename: fix another cygwin 1.5 bug
22780         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
22781         checks.
22782         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
22783         unnecessary cygwin workarounds.  Also work around bug with moving
22784         full directory onto an empty one.
22785         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
22786
22787         rename-dest-slash: merge into rename module
22788         * modules/rename-dest-slash (Status): Mark obsolete.
22789         (Depends-on): Add rename.
22790         (Files): Let rename do it all.
22791         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
22792         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
22793         * m4/rename-dest-slash.m4: ...so this file can be deleted.
22794         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
22795         * lib/rename.c (rpl_rename): Update comments.
22796
22797         rename: fix cygwin 1.5.x bugs
22798         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
22799         * lib/rename.c (rpl_rename): Work around them.
22800         * modules/rename (Depends-on): Add same-inode.
22801
22802         rename: fix Solaris 10 bug
22803         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
22804         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
22805         was the only bug.
22806
22807         rename: fix Solaris 9 bug
22808         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
22809         on non-directory.  Avoid calling exit.
22810         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
22811         strdup.
22812         * modules/rename-tests (Depends-on): Drop lstat.
22813         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
22814         (gl_PREREQ_RENAME): Delete unused macro.
22815
22816         rename-dest-slash: fix NetBSD bug
22817         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
22818         links.
22819         * modules/rename-dest-slash (Depends-on): Add same-inode.
22820
22821         rename-tests: new test, exposes several platform bugs
22822         * modules/rename-tests: New file.
22823         * tests/test-rename.h: Likewise.
22824         * tests/test-rename.c: Likewise.
22825         * doc/posix-functions/rename.texi (rename): Improve documentation,
22826         including bugs that will eventually be fixed in gnulib.
22827
22828 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
22829
22830         * lib/uname.c: Include <stdlib.h>
22831         (uname): Assume version info is available.
22832
22833 2009-10-02  Jim Meyering  <meyering@redhat.com>
22834
22835         gnu-web-doc-update: correct --help output
22836         * build-aux/gnu-web-doc-update: Make --help output relevant.
22837
22838         gnu-web-doc-update: add standard options
22839         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
22840
22841         gnu-web-doc-update: New module.
22842         Use this script to automatically update the on-line web documentation
22843         for your GNU project at http://www.gnu.org/software/$pkg/manual/
22844         * modules/gnu-web-doc-update: New file, from coreutils.
22845         * build-aux/gnu-web-doc-update: New script.
22846
22847 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
22848
22849         link: LoadLibrary is not needed.
22850         * lib/link.c: Use GetModuleHandle.
22851
22852 2009-10-01  Eric Blake  <ebb9@byu.net>
22853
22854         getopt: bump serial number
22855         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
22856         change.
22857
22858         tests: tighten link, rmdir, and remove tests
22859         * tests/test-link.h (includes): No need to use <config.h> here.
22860         Clean up if directory hard link was created, otherwise test for
22861         trailing '.'.
22862         * tests/test-linkat.c (main): Simplify.
22863         * tests/test-remove.c (main): Enhance test for trailing '.'.
22864         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22865
22866 2009-10-01  Jim Meyering  <meyering@redhat.com>
22867
22868         maint.mk: requiring "make major" was annoying, for a "minor" release.
22869         What is intended is "stable", to contrast with alpha and beta,
22870         so require "make stable", not "make major".
22871         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
22872         (get_tool_versions): Likewise.
22873         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
22874
22875 2009-09-30  Ben Pfaff  <blp@gnu.org>
22876
22877         Fix broken build of replacement for Windows tmpfile().
22878         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
22879         flags argument added along with the 'mkostemp' module.
22880
22881 2009-09-28  Bruno Haible  <bruno@clisp.org>
22882
22883         Avoid identifier clash with POSIX function 'remove' defined as a macro.
22884         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
22885         to 'remove_elt'.
22886         (gl_list_remove): Update.
22887         * lib/gl_list.c (gl_list_remove): Update.
22888         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
22889         to 'remove_elt'.
22890         (gl_oset_remove): Update.
22891         * lib/gl_list.c (gl_oset_remove): Update.
22892         Reported by Eric Blake.
22893
22894 2009-09-28  Eric Blake  <ebb9@byu.net>
22895
22896         doc: mention yet more cygwin 1.7 status
22897         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
22898         cygwin.
22899         * doc/glibc-functions/execvpe.texi (execvpe): New file.
22900         * doc/gnulib.texi (Glibc unistd.h): Mention it.
22901
22902         argp: fix test failure
22903         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
22904         that are not upper-case.  Pass correct range to tolower.
22905
22906 2009-09-27  Jim Meyering  <meyering@redhat.com>
22907
22908         test-yesno: work around sparc-dash here-document infelicity
22909         Without this change, the literal \177 byte in a here document
22910         would make dash 0.5.5.1-3 access uninitialized memory.
22911         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
22912         Instead, use a marker, "@", and filter through tr to create the desired
22913         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
22914
22915 2009-09-27  Bruno Haible  <bruno@clisp.org>
22916
22917         Disable untested support for new flavours of ACLs on AIX.
22918         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
22919         progress.
22920         * lib/set-mode-acl.c (qset_acl): Likewise.
22921
22922 2008-12-07  Bruno Haible  <bruno@clisp.org>
22923
22924         Add support for new flavours of ACLs on AIX. (Untested.)
22925         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
22926         (file_has_acl): Add support for newer AIX.
22927         * lib/set-mode-acl.c (qset_acl): Likewise.
22928         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
22929         Rainer Tammer <tammer@tammer.net>.
22930
22931 2009-09-26  Eric Blake  <ebb9@byu.net>
22932
22933         argp: fix compilation of getopt
22934         * lib/getopt.in.h (includes): Use different guard than glibc.
22935         Reported by Sergey Poznyakoff.
22936
22937         doc: mention more cygwin 1.7 status
22938         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
22939         bug.
22940         * doc/posix-functions/execl.texi (execl): Likewise.
22941         * doc/posix-functions/execle.texi (execle): Likewise.
22942         * doc/posix-functions/execlp.texi (execlp): Likewise.
22943         * doc/posix-functions/execv.texi (execv): Likewise.
22944         * doc/posix-functions/execve.texi (execve): Likewise.
22945         * doc/posix-functions/execvp.texi (execvp): Likewise.
22946         * doc/glibc-functions/canonicalize_file_name.texi
22947         (canonicalize_file_name): Cygwin 1.7 now provides this.
22948         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
22949         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
22950         on AT_SYMLINK_NOFOLLOW.
22951
22952 2009-09-24  Eric Blake  <ebb9@byu.net>
22953
22954         test-linkat: make test more robust
22955         * tests/test-linkat.c (main): Avoid collision with EEXIST.
22956
22957         getopt: fix inclusion guards for cygwin
22958         * modules/getopt-posix (Depends-on): Add include-next.
22959         (Makefile.am): Substitute more items in replacement header.
22960         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
22961         <getopt.h>.
22962         * lib/getopt.in.h (includes): Use split inclusion guard, and
22963         prefer <getopt.h> over include <unistd.h> when one is present.
22964         (option): Also override name of 'struct option'.
22965
22966         same-inode: revert prior change; it is not yet ready
22967         * NEWS: Undo mention of this change.
22968         * lib/same-inode.h (same-inode.h): Undo tri-state change.
22969         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
22970         * lib/cycle-check.c (cycle_check): Likewise.
22971         * lib/same.c (same_name): Likewise.
22972         * lib/at-func2.c (at_func2): Likewise.
22973
22974 2009-09-23  Eric Blake  <ebb9@byu.net>
22975
22976         linkat: new module
22977         * modules/linkat: New file.
22978         * lib/at-func2.c (at_func2): Likewise.
22979         * lib/linkat.c (linkat): Likewise.
22980         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
22981         * lib/openat-priv.h (at_func2): Add declaration.
22982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
22983         * modules/unistd (Makefile.am): Substitute them.
22984         * lib/unistd.in.h (linkat): Declare it.
22985         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22986         * doc/posix-functions/linkat.texi (linkat): Likewise.
22987         * doc/posix-functions/link.texi (link): Tweak wording.
22988         * tests/test-link.c (main): Move guts...
22989         * tests/test-link.h (test_link): ...into new file.
22990         * modules/linkat-tests: New test.
22991         * tests/test-linkat.c: Likewise.
22992         * modules/link-tests (Files): Ship new file.
22993         (Depends-on): Add stdbool.
22994
22995         dirname: add library-safe mdir_name
22996         * lib/dirname.h (mdir_name): New prototype.
22997         * lib/dirname.c (dir_name): Move guts...
22998         (mdir_name): ...to new function that avoids xalloc_die.
22999
23000         fchdir: another mingw fix
23001         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
23002         * lib/fchdir.c (get_name): New helper method; skips canonicalize
23003         on mingw (where it has not yet been ported), and make it optional
23004         elsewhere.
23005         (_gl_register_fd): Use it.
23006
23007         same-inode: make SAME_INODE tri-state, to port to mingw
23008         * NEWS: Mention this change.
23009         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
23010         st_ino always being 0.
23011         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
23012         * lib/cycle-check.c (cycle_check): Likewise.
23013         * lib/same.c (same_name): Likewise.
23014
23015         lstat: avoid mingw compilation error
23016         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
23017         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
23018         lstat ourselves.
23019         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
23020         was adequate.
23021         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
23022         the checks for lstat.
23023         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
23024
23025         link: fix test failure on Solaris 9
23026         * lib/link.c (rpl_link): Don't assume link will catch bogus
23027         trailing slash on source.
23028
23029         test-symlinkat: enhance test
23030         * tests/test-readlink.c (main): Move guts...
23031         * tests/test-readlink.h (test_readlink): ...into new file.
23032         * tests/test-symlink.c (main): Move guts...
23033         * tests/test-symlink.h (test_symlink): ...into new file.
23034         * tests/test-symlinkat.c (main): Use new files for further
23035         coverage.
23036         (do_symlink, do_readlink): New helper functions.
23037         * modules/symlink-tests (Files): Ship new file.
23038         (Depends-on): Add stdbool.
23039         * modules/readlink-tests (Files): Ship new file.
23040         (Depends-on): Add stdbool.
23041         * modules/symlinkat-tests (Files): Use new files.
23042
23043 2009-09-23  Eric Blake  <ebb9@byu.net>
23044
23045         readlink: document portability issue with symlink length
23046         * doc/posix-functions/lstat.texi (lstat): Mention that some file
23047         systems have bogus st_size on symlinks, and mention the
23048         areadlink-with-size module.
23049         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
23050         * doc/posix-functions/readlink.texi (readlink): Mention the
23051         areadlink module, and ERANGE failure.
23052         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23053         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
23054
23055         readlink: fix Solaris 9 bug with trailing slash
23056         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
23057         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
23058         * doc/posix-functions/readlink.texi (readlink): Document this.
23059         * modules/readlink-tests: New test.
23060         * tests/test-readlink.c: Likewise.
23061
23062         readlink: fix cygwin 1.5.x bug with return type
23063         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
23064         * lib/unistd.in.h (readlink): Use ssize_t.
23065         * lib/readlink.c (readlink): Likewise.
23066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23067         * modules/unistd (Makefile.am): Substitute it.
23068         * lib/unistd.in.h (readlink): Declare replacement.
23069         * doc/posix-functions/readlink.texi (readlink): Document this.
23070
23071         symlink: use throughout gnulib
23072         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
23073         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
23074         symlink is not used.
23075         * modules/symlinkat (Depends-on): Add symlink.
23076         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23077         * modules/canonicalize-tests (Depends-on): Likewise.
23078         * modules/lstat-tests (Depends-on): Likewise.
23079         * modules/openat-tests (Depends-on): Likewise.
23080         * modules/remove-tests (Depends-on): Likewise.
23081         * modules/rmdir-tests (Depends-on): Likewise.
23082         * modules/unlink-tests (Depends-on): Likewise.
23083         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
23084         * tests/test-canonicalize.c (symlink): Likewise.
23085         * tests/test-fstatat.c (symlink): Likewise.
23086         * tests/test-lstat.c (symlink): Likewise.
23087         * tests/test-remove.c (symlink): Likewise.
23088         * tests/test-rmdir.c (symlink): Likewise.
23089         * tests/test-unlink.c (symlink): Likewise.
23090         * tests/test-unlinkat.c (symlink): Likewise.
23091
23092         symlink: new module, for Solaris 9 bug
23093         * modules/symlink: New file.
23094         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23095         * lib/symlink.c: Likewise.
23096         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
23097         * modules/unistd (Makefile.am): Substitute them.
23098         * lib/unistd.in.h (symlink): Declare replacement.
23099         * MODULES.html.sh (File system functions): Mention it.
23100         * doc/posix-functions/symlink.texi (symlink): Likewise.
23101         * modules/symlink-tests: New test.
23102         * tests/test-symlink.c: Likewise.
23103
23104 2009-09-23  Bruno Haible  <bruno@clisp.org>
23105
23106         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
23107         when needed.
23108         Test case: gnulib-tool --import --with-tests atexit inttypes.
23109         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
23110
23111 2009-09-23  Bruno Haible  <bruno@clisp.org>
23112
23113         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
23114         subcommand, not in a subshell.
23115
23116 2009-09-22  Eric Blake  <ebb9@byu.net>
23117
23118         unistd: sort replacement declarations
23119         * lib/unistd.in.h: Sort declarations.
23120
23121         open, openat: minor optimization
23122         * lib/open.c (open): If open succeeded, len is non-zero.
23123         * lib/openat.c (rpl_openat): Likewise.
23124
23125         link-follow: ensure correct result
23126         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
23127         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
23128         distinguish between possible failures.
23129
23130 2009-09-21  Eric Blake  <ebb9@byu.net>
23131
23132         fts: avoid compiler warning
23133         * lib/fts.c (dirent_inode_sort_may_be_useful)
23134         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
23135
23136 2009-09-19  Bruno Haible  <bruno@clisp.org>
23137
23138         * lib/progreloc.c (canonicalize_file_name): New declaration.
23139
23140 2009-09-19  Eric Blake  <ebb9@byu.net>
23141
23142         link: fix quoting
23143         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
23144
23145         openat: fix openat bugs on Solaris 9
23146         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
23147         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
23148         * modules/openat (Depends-on): Add open.
23149         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
23150         * modules/fcntl-h (Makefile.am): Substitute it.
23151         * lib/fcntl.in.h (openat): Declare replacement.
23152         * doc/posix-functions/openat.texi (openat): Document this.
23153
23154         openat: move fstatat and unlinkat into correct files
23155         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
23156         compiled.
23157         * lib/openat.c (fstatat, unlinkat): Move...
23158         * lib/fstatat.c (fstatat): ...into correct files.
23159         * lib/unlinkat.c (unlinkat): Likewise.
23160
23161         openat: fix unlinkat bugs on Solaris 9
23162         * lib/unlinkat.c (unlinkat): New file.
23163         * modules/openat (Depends-on): Add unlink.
23164         (Files): Distribute it.
23165         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
23166         trailing slash behavior is broken.
23167         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23168         * modules/unistd (Makefile.am): Substitute it.
23169         * lib/unistd.in.h (unlinkat): Declare replacement.
23170         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
23171
23172         openat: fix fstatat bugs on Solaris 9
23173         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
23174         stat.
23175         * doc/posix-functions/fstatat.texi (fstatat): Document this.
23176
23177         test-unlinkat: enhance test, to expose Solaris 9 bug
23178         * tests/test-unlink.c (main): Factor guts...
23179         * tests/test-unlink.h (test_rmdir_func): ...into new file.
23180         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
23181         * tests/test-rmdir.c (main): Adjust caller.
23182         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
23183         (unlinker): New helper function.
23184         (rmdirat): Enhance check.
23185         * modules/rmdir-tests (Depends-on): Add stdbool.
23186         * modules/unlink-tests (Depends-on): Likewise.
23187         (Files): Add test-unlink.h.
23188         * modules/openat-tests (Files): Likewise.
23189         (Depends-on): Add unlinkdir.
23190
23191         test-fstatat: new test, to expose Solaris 9 bugs
23192         * tests/test-stat.c (main): Factor guts...
23193         * tests/test-stat.h (test_stat_func): ...into new file.
23194         * tests/test-lstat.c (main): Factor guts...
23195         * tests/test-lstat.h (test_lstat_func): ...into new file.
23196         * tests/test-fstatat.c: New file.
23197         * modules/stat-tests (Files): Add test-stat.h.
23198         * modules/lstat-tests (Files): Add test-lstat.h.
23199         (Depends-on): Add stdbool.
23200         * modules/openat-tests (Depends-on): Add pathmax.
23201         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
23202         (Makefile.am): Run new test.
23203
23204         remove: new module, for mingw and Solaris 9 bugs
23205         * modules/remove: New file.
23206         * lib/remove.c: Likewise.
23207         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
23208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
23209         * modules/stdio (Makefile.am): Use them.
23210         * lib/stdio.in.h (remove): Declare replacement.
23211         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23212         * doc/posix-functions/remove.texi (remove): Likewise.
23213         * modules/remove-tests: New test.
23214         * tests/test-remove.c: Likewise.
23215
23216         unlink: new module, for Solaris 9 bug
23217         * modules/unlink: New file.
23218         * lib/unlink.c: Likewise.
23219         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
23221         * modules/unistd (Makefile.am): Use them.
23222         * lib/unistd.in.h (stat): Declare replacement.
23223         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23224         * doc/posix-functions/unlink.texi (unlink): Likewise.
23225         * modules/unlink-tests: New test.
23226         * tests/test-unlink.c: Likewise.
23227
23228         lstat: fix Solaris 9 bug
23229         * lib/lstat.c (lstat): Also check for trailing slash on
23230         non-symlink, non-directories.  Use stat module to simplify logic.
23231         * doc/posix-functions/lstat.texi (lstat): Document it.
23232         * modules/lstat-tests (Depends-on): Add errno, same-inode.
23233         (configure.ac): Check for symlink.
23234         * tests/test-lstat.c (main): Add more tests.
23235
23236         stat: add as dependency to other modules
23237         * modules/chown (Depends-on): Add stat.
23238         * modules/euidaccess (Depends-on): Likewise.
23239         * modules/fchdir (Depends-on): Likewise.
23240         * modules/isdir (Depends-on): Likewise.
23241         * modules/link (Depends-on): Likewise.
23242         * modules/lstat (Depends-on): Likewise.
23243         * modules/mkdir-p (Depends-on): Likewise.
23244         * modules/modechange (Depends-on): Likewise.
23245         * modules/open (Depends-on): Likewise.
23246         * modules/readlink (Depends-on): Likewise.
23247         * modules/same (Depends-on): Likewise.
23248
23249         stat: fix Solaris 9 bug
23250         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
23251         slash.
23252         * lib/stat.c (rpl_stat): Work around it.
23253         * doc/posix-functions/stat.texi (stat): Update documentation.
23254
23255         stat: new module, for mingw bug
23256         * modules/stat: New file.
23257         * lib/stat.c: Likewise.
23258         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23259         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23260         * modules/sys_stat (Makefile.am): Use them.
23261         * lib/sys_stat.in.h (stat): Declare replacement.
23262         * lib/openat.c (fstatat): Deal with lstat and stat being function
23263         macros.
23264         * modules/openat (Depends-on): Add inline.
23265         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23266         * doc/posix-functions/stat.texi (stat): Likewise.
23267         * modules/stat-tests: New test.
23268         * tests/test-stat.c: Likewise.
23269
23270 2009-09-19  Jim Meyering  <meyering@redhat.com>
23271
23272         syntax-check: detect unnecessary inclusion of canonicalize.h
23273         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
23274
23275 2009-09-19  Eric Blake  <ebb9@byu.net>
23276
23277         canonicalize-lgpl: adjust clients to use correct header
23278         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
23279         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
23280         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
23281         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
23282         * lib/progreloc.c (includes): Likewise.
23283
23284 2009-09-19  Jim Meyering  <meyering@redhat.com>
23285
23286         test-posixtm.c: correct a comment
23287         * tests/test-posixtm.c: Correct first-line comment.
23288         Spotted by Eric Blake.
23289
23290 2009-09-16  Jim Meyering  <meyering@redhat.com>
23291
23292         posixtm-tests: make T const-correct; add a test case
23293         * tests/test-posixtm.c (T): Declare const.
23294         Add a test for -(2^31+1).
23295         Remove useless can-succeed-only-in-2002 test.
23296
23297         posixtm-tests: adjust the sole failing test
23298         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
23299         expected output matches what mktime now produces.  Cross-checked via
23300         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
23301
23302         posixtm: move #ifdef'd tests into a new module
23303         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
23304         * tests/test-posixtm.c: ... this new file.
23305         * modules/posixtm-tests: New module.
23306
23307 2009-09-19  Eric Blake  <ebb9@byu.net>
23308
23309         openat: simplify use of at-func.c
23310         * lib/at-func.c (includes): Include prerequisites here, to
23311         simplify requirements on client files.
23312         * lib/openat-priv.h: Add double-inclusion guard.
23313         * lib/faccessat.c (includes): Simplify.
23314         * lib/fchmodat.c (includes): Likewise.
23315         * lib/fchownat.c (includes): Likewise.
23316         * lib/mkdirat.c (includes): Likewise.
23317         * lib/mkfifoat.c (includes): Likewise.
23318         * lib/symlinkat.c (includes): Likewise.
23319
23320         openat: allow return of fd 0
23321         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
23322         * modules/save-cwd (Depends-on): Replace fcntl-safer with
23323         unistd-safer.
23324         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
23325         <fcntl.h>; this module does not leak fds.
23326         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
23327         must be allowed to return 0, leaving openat_safer to add the
23328         safety.
23329         (openat_permissive): Avoid writing to just-opened fd 2 if
23330         restoring the current directory fails.
23331         * lib/openat-die.c (openat_restore_fail): Add comment.
23332         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
23333         (save_cwd): Guarantee safe fd, but without use of open_safer.
23334         * tests/test-openat.c: New test.
23335         * modules/openat-tests (Files, Makefile.am): Distribute and build
23336         new file.
23337
23338         relocatable-prog-wrapper: fix build
23339         * modules/relocatable-prog-wrapper (Files): Update name of
23340         canonicalize m4 file, broken on 2009-09-17.
23341         Reported by emad hajjar <aleppos@hotmail.com>.
23342
23343 2009-09-19  Bruno Haible  <bruno@clisp.org>
23344
23345         * lib/safe-alloc.h: Use the standard header with GPL copyright.
23346         * lib/safe-alloc.c: Likewise.
23347         Reported by Ian Beckwith <ianb@erislabs.net>.
23348
23349 2009-09-18  Bruno Haible  <bruno@clisp.org>
23350
23351         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
23352         Reported by <erobles@sensacd.com.mx>.
23353
23354 2009-09-17  Eric Blake  <ebb9@byu.net>
23355
23356         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
23357         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
23358         slashes when checking if last component is missing.
23359         * tests/test-canonicalize.c (main): Test this.
23360
23361         canonicalize, canonicalize-lgpl: honor // if distinct from /
23362         * modules/canonicalize (Files): Add double-slash-root.m4.
23363         * modules/canonicalize-lgpl (Files): Likewise.
23364         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
23365         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
23366         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
23367         fallback definition.
23368         (canonicalize_filename_mode): Use it to protect //.
23369         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
23370         (__realpath): Likewise.
23371         * tests/test-canonicalize.c (main): Test this.
23372         * tests/test-canonicalize-lgpl.c (main): Likewise.
23373         * modules/canonicalize-tests (Depends-on): Add same-inode.
23374         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23375
23376         canonicalize-lgpl: fix glibc bug with trailing slash
23377         * m4/canonicalize-lgpl.m4: Move contents...
23378         * m4/canonicalize.m4: ...here.
23379         (gl_CANONICALIZE_LGPL): Factor realpath check...
23380         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
23381         glibc 2.3.5 bug, fixed 2005-04-27.
23382         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
23383         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
23384         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
23385         * modules/canonicalize-lgpl (Files): Manage file rename.
23386         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
23387         * modules/stdlib (Makefile.am): Substitute witness.
23388         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
23389         is needed.
23390         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
23391         replacement is required.
23392         * lib/canonicalize.c (canonicalize_file_name): Likewise.
23393         * doc/glibc-functions/canonicalize_file_name.texi
23394         (canonicalize_file_name): Document this.
23395         * doc/posix-functions/realpath.texi (realpath): Likewise.
23396
23397         canonicalize-lgpl: reject non-directory with trailing slash
23398         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
23399         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
23400         catches failures in glibc 2.3.5.
23401         * tests/test-canonicalize.c (main): Likewise.
23402
23403         canonicalize-lgpl: use native realpath if it works
23404         * lib/canonicalize-lgpl.c (realpath): Guard with
23405         FUNC_REALPATH_WORKS.
23406         * lib/stdlib.in.h (realpath): Make declaration optional based on
23407         HAVE_REALPATH.
23408         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
23409         native realpath works.
23410         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
23411         * modules/stdlib (Makefile.am): Substitute witness.
23412
23413         canonicalize, canonicalize-lgpl: use <stdlib.h>
23414         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
23415         (Include): Mention <stdlib.h>.
23416         (configure.ac): Mention functions we provide.
23417         * modules/canonicalize (configure.ac): Likewise.
23418         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
23419         realpath if canonicalize_file_name is missing.
23420         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
23421         * modules/stdlib (Makefile.am): Substitute witnesses.
23422         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
23423         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
23424         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
23425         * NEWS: Document this.
23426         * doc/glibc-functions/canonicalize_file_name.texi
23427         (canonicalize_file_name): Likewise.
23428         * doc/posix-functions/realpath.texi (realpath): Likewise.
23429         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
23430
23431         test-canonicalize: consolidate into single C program
23432         * tests/test-canonicalize.sh: Delete; move setup into...
23433         * tests/test-canonicalize.c (main): ...the program, making it
23434         easier to run in debugger.  Add some tests.
23435         * modules/canonicalize-tests (Files): Remove unused file.
23436         (Depends-on): Add progname.
23437         (configure.ac, Makefile.am): Simplify.
23438
23439         test-canonicalize-lgpl: consolidate into single C program
23440         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
23441         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
23442         easier to run in debugger.  Add some tests.
23443         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
23444         (configure.ac, Makefile.am): Simplify.
23445
23446         canonicalize: avoid resolvepath
23447         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
23448         unnecessary checks.
23449         * lib/canonicalize.c (includes): Simplify.
23450         (canonicalize_file_name): Drop resolvepath implementation.
23451         * modules/canonicalize (Depends-on): Drop filenamecat.
23452
23453         canonicalize: don't lose errno
23454         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
23455         over calls to free.
23456
23457         canonicalize: simplify errno handling
23458         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
23459         assignment.
23460
23461         canonicalize, canonicalize-lgpl: update module dependencies
23462         * modules/canonicalize (Depends-on): Add extensions, lstat,
23463         pathmax, stdlib.
23464         (Files): Drop pathmax.h.
23465         (configure.ac): Adjust macro name.
23466         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
23467         lstat, stdlib, sys_stat.
23468         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
23469         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
23470         extensions.
23471         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
23472         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
23473         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
23474         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
23475         declaration, if available.
23476         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
23477         we can rely on the readlink module.
23478         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
23479         (includes): Use <unistd.h> unconditionally.
23480
23481 2009-09-17  Eric Blake  <ebb9@byu.net>
23482
23483         maint: make Include sections of modules consistent
23484         * modules/alloca: Use only header name; no need to list #include.
23485         * modules/alloca-opt: Likewise.
23486         * modules/arpa_inet: Likewise.
23487         * modules/canon-host: Likewise.
23488         * modules/configmake: Likewise.
23489         * modules/dirent: Likewise.
23490         * modules/eealloc: Likewise.
23491         * modules/environ: Likewise.
23492         * modules/fchdir: Likewise.
23493         * modules/fcntl: Likewise.
23494         * modules/fcntl-h: Likewise.
23495         * modules/gethrxtime: Likewise.
23496         * modules/gettime: Likewise.
23497         * modules/ignore-value: Likewise.
23498         * modules/inet_ntop: Likewise.
23499         * modules/inet_pton: Likewise.
23500         * modules/inttypes: Likewise.
23501         * modules/isnand-nolibm: Likewise.
23502         * modules/isnanf-nolibm: Likewise.
23503         * modules/mbchar: Likewise.
23504         * modules/mbfile: Likewise.
23505         * modules/mbiter: Likewise.
23506         * modules/mbuiter: Likewise.
23507         * modules/netdb: Likewise.
23508         * modules/netinet_in: Likewise.
23509         * modules/nproc: Likewise.
23510         * modules/pagealign_alloc: Likewise.
23511         * modules/poll: Likewise.
23512         * modules/printf-frexp: Likewise.
23513         * modules/pthread: Likewise.
23514         * modules/putenv: Likewise.
23515         * modules/random_r: Likewise.
23516         * modules/relocatable-prog: Likewise.
23517         * modules/search: Likewise.
23518         * modules/select: Likewise.
23519         * modules/selinux-h: Likewise.
23520         * modules/settime: Likewise.
23521         * modules/signal: Likewise.
23522         * modules/size_max: Likewise.
23523         * modules/socklen: Likewise.
23524         * modules/ssize_t: Likewise.
23525         * modules/stdarg: Likewise.
23526         * modules/stdbool: Likewise.
23527         * modules/stddef: Likewise.
23528         * modules/stdint: Likewise.
23529         * modules/stdio: Likewise.
23530         * modules/stdlib: Likewise.
23531         * modules/string: Likewise.
23532         * modules/strings: Likewise.
23533         * modules/sys_file: Likewise.
23534         * modules/sys_ioctl: Likewise.
23535         * modules/sys_select: Likewise.
23536         * modules/sys_socket: Likewise.
23537         * modules/sys_stat: Likewise.
23538         * modules/sys_time: Likewise.
23539         * modules/sys_times: Likewise.
23540         * modules/sys_utsname: Likewise.
23541         * modules/sys_wait: Likewise.
23542         * modules/sysexits: Likewise.
23543         * modules/time: Likewise.
23544         * modules/times: Likewise.
23545         * modules/tmpfile: Likewise.
23546         * modules/trim: Likewise.
23547         * modules/unistd: Likewise.
23548         * modules/wchar: Likewise.
23549         * modules/wctype: Likewise.
23550
23551 2009-09-17  Bruno Haible  <bruno@clisp.org>
23552
23553         Make getdate.y compile on QNX and NetBSD 5 / i386.
23554         * m4/getdate.m4 (gl_GETDATE): Conditionally define
23555         TIME_T_FITS_IN_LONG_INT.
23556         * lib/getdate.y (long_time_t): New type.
23557         (relative_time): Change type of 'seconds' field to long_time_t.
23558         (get_date): Update types of local variables. Check against overflow
23559         during conversion from long_time_t to time_t.
23560         Reported by Matt Kraai <kraai@ftbfs.org>
23561         and Hasso Tepper <hasso@netbsd.org>.
23562
23563 2009-09-17  Bruno Haible  <bruno@clisp.org>
23564
23565         * modules/COPYING: Update copyright years.
23566         * modules/README: Likeiwse.
23567         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
23568         Reported by Ian Beckwith <ianb@erislabs.net>.
23569
23570 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
23571
23572         * users.txt: Update references for gnuit package.
23573
23574 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
23575
23576         * m4/getdelim.m4: Fix typo in copyright line.
23577
23578 2009-09-17  Bruno Haible  <bruno@clisp.org>
23579
23580         * lib/atoll.c: Use the standard header with GPL copyright.
23581         * lib/argz.in.h: Likewise.
23582         * lib/glob.c: Likewise.
23583         * lib/glob-libc.h: Likewise.
23584         * lib/random_r.c: Likewise.
23585         * lib/siglist.h: Likewise.
23586         * lib/strsignal.c: Likewise.
23587         Reported by Ian Beckwith <ianb@erislabs.net>.
23588
23589 2009-09-17  Eric Blake  <ebb9@byu.net>
23590
23591         rmdir: ensure correct dependency order
23592         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
23593
23594 2009-09-17  Bruno Haible  <bruno@clisp.org>
23595
23596         Disable assertion that fails on NetBSD 5 / i386.
23597         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
23598         Reported by Sam Steingold <sds@gnu.org>
23599         and Hasso Tepper <hasso@netbsd.org>.
23600
23601 2009-09-16  Eric Blake  <ebb9@byu.net>
23602
23603         unlinkdir: port to mingw
23604         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
23605         on which no one can unlink a directory.
23606
23607         stdlib: sort witness names
23608         * modules/stdlib (Makefile.am): Sort replacements.
23609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
23610         * lib/stdlib.in.h: Likewise.
23611
23612         parse-duration-tests: avoid link failure
23613         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
23614         LIBINTL.
23615         Reported by Tom G. Christensen.
23616
23617         openat-tests: ensure unlinkat behaves like rmdir
23618         * tests/test-rmdir.c (main): Factor guts...
23619         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
23620         * modules/rmdir-tests (Files): Ship new file.
23621         * modules/openat-tests: New test.
23622         * tests/test-unlinkat.c: Likewise.
23623
23624         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
23625         * modules/rmdir-errno (Status, Notice): Now obsolete.
23626
23627         rmdir: work around cygwin 1.5.x and mingw bugs
23628         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
23629         * lib/rmdir.c (rmdir): Work around it.
23630         * modules/rmdir (Status, Notice): No longer obsolete.
23631         (Files): Add dos.m4.
23632         (Depends-on): Add unistd.
23633         (configure.ac): Set witnesses.
23634         (License): Relax to LGPLv2+.
23635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
23636         * modules/unistd (Makefile.am): Substitute witnesses.
23637         * lib/unistd.in.h (rmdir): Declare replacement.
23638         * doc/posix-functions/rmdir.texi (rmdir): Document this.
23639         * modules/rmdir-tests: New tests.
23640         * tests/test-rmdir.c: Likewise.
23641
23642 2009-09-15  Eric Blake  <ebb9@byu.net>
23643
23644         fchdir: improve use of replacement functions
23645         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
23646         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
23647         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
23648         REPLACE_CLOSEDIR.
23649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
23650         * modules/sys_stat (Makefile.am): Substitute correct witness.
23651         * modules/dirent (Makefile.am): Likewise.
23652         * modules/unistd (Makefile.am): Likewise.
23653         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
23654         * lib/unistd.in.h (dup): Likewise.
23655         * lib/sys_stat.in.h (fstat): Likewise.
23656
23657         maint: ignore gnulib-tool temp files
23658         * .gitignore: Ignore files created during gnulib-tool --test.
23659
23660 2009-09-13  Jim Meyering  <meyering@redhat.com>
23661
23662         posixtm: don't reject a time that specify "60" as the number of seconds
23663         * lib/posixtm.c (posixtime): The code to reject invalid dates
23664         would also reject a time specified with the .60 suffix.
23665         But POSIX allows that, in order to accommodate leap seconds.
23666         So don't reject it.
23667         (main): Adjust tests accordingly.
23668         * modules/posixtm (Depends-on): Add stpcpy.
23669
23670 2009-09-11  Jim Meyering  <meyering@redhat.com>
23671
23672         announce-gen: include [$release_type] in emitted Subject:
23673         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
23674         e.g., [stable] in the emitted Subject: line.
23675
23676 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23677
23678         Remove obsolete macros from several modules.
23679         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
23680         obsolete Autoconf macros with their modern counterparts.
23681         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
23682         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
23683         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
23684         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
23685         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
23686         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23687         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23688         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23689         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23690         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
23691         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
23692         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
23693         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
23694         * m4/sockets.m4 (gl_SOCKETS): Likewise.
23695         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
23696         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
23697         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
23698         * m4/time_r.m4 (gl_TIME_R): Likewise.
23699         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23700         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
23701         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
23702
23703         Fix copyright header in build-aux scripts.
23704         * build-aux/git-version-gen: Fix copyright header to match GPLv3
23705         recommendation.
23706         * build-aux/ncftpput-ftp: Likewise.
23707         * build-aux/update-copyright: Likewise.
23708
23709 2009-09-09  Eric Blake  <ebb9@byu.net>
23710
23711         test-link: allow Linux choice of errno
23712         * tests/test-link.c (main): Relax test for alternate error.
23713
23714         strndup: fix improper m4 caching
23715         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
23716         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
23717         (gl_PREREQ_STRNDUP): Delete.
23718         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
23719         * modules/string (Makefile.am): Substitute it.
23720         * lib/string.in.h (strndup): Modernize prototype.
23721
23722         getcwd: port to mingw
23723         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
23724         different from the POSIX assumptions made throughout the getcwd
23725         module; fortunately, the mingw getcwd does not need replacement.
23726         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
23727         * modules/getcwd-tests: New test.
23728         * tests/test-getcwd.c: Likewise.
23729
23730         link: fix platform bugs
23731         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
23732         * lib/link.c (link): Work around them.  Fix related mingw bug.
23733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
23734         * modules/unistd (Makefile.am): Substitute it.
23735         * lib/unistd.in.h (link): Declare replacement.
23736         * doc/posix-functions/link.texi (link): Document this.
23737         * modules/link (Depends-on): Add strdup-posix, sys_stat.
23738
23739         test-link: consolidate into single C program, test more cases
23740         * tests/test-link.sh: Delete.
23741         * tests/test-link.c: Test more error conditions.  Exposes bugs on
23742         at least Cygwin and Solaris.
23743         * modules/link-tests (Files): Remove unused file.
23744         (Depends-on): Add errno, sys_stat.
23745         (Makefile.am): Simplify.
23746
23747 2009-09-08  Bruno Haible  <bruno@clisp.org>
23748
23749         Work around towlower, towupper bug on mingw.
23750         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
23751         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
23752         * doc/posix-functions/towlower.texi: Mention the mingw bug.
23753         * doc/posix-functions/towupper.texi: Likewise.
23754         Reported by Eric Blake.
23755
23756 2009-09-08  Jim Meyering  <meyering@redhat.com>
23757
23758         build: don't try to run autoheader if we don't use it
23759         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
23760         is not used in configure.ac.
23761
23762 2009-09-08  Eric Blake  <ebb9@byu.net>
23763
23764         euidaccess: fix compilation error
23765         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
23766
23767         rawmemchr: relax license
23768         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
23769         okay.
23770         Reported by Jim Meyering.
23771
23772         mkfifoat: new module
23773         * modules/mkfifoat: New file.
23774         * lib/mkfifoat.c: Likewise.
23775         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
23776         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23777         * modules/sys_stat (Makefile.am): Use them.
23778         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
23779         * MODULES.html.sh (File system functions): Mention module.
23780         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
23781         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
23782         * modules/mkfifoat-tests: New test.
23783         * tests/test-mkfifoat.c: Likewise.
23784
23785         strchrnul: relax license
23786         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
23787         okay.
23788         Reported by Jim Meyering.
23789
23790 2009-09-08  Eric Blake  <ebb9@byu.net>
23791
23792         fstatat: fix compilation on Solaris
23793         * lib/fstatat.c (includes): Add fcntl.h.
23794         Reported by Pádraig Brady.
23795
23796 2009-09-07  Eric Blake  <ebb9@byu.net>
23797
23798         rename: modernize replacement
23799         * modules/rename (Depends-on): Add stdio.
23800         (configure.ac): Declare witness.
23801         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
23802         stdio take care of replacement.
23803         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
23804         * modules/stdio (Makefile.am): Substitute them.
23805         * lib/stdio.in.h (rename): Declare replacement.
23806         * lib/rename.c (includes): Allow cross-compilation to non-windows
23807         machines.
23808         * doc/posix-functions/rename.texi (rename): Improve
23809         documentation.
23810
23811         stdio: sort witness names
23812         * modules/stdio (Makefile.am): Sort replacements.
23813         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23814         * lib/stdio.in.h: Likewise.
23815
23816         getcwd: minor cleanups
23817         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
23818         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
23819
23820         openat: provide more convenience names
23821         * modules/faccessat (configure.ac): Add C witness.
23822         * lib/unistd.in.h (readlinkat): Fix typo.
23823         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
23824         convenience wrappers.
23825         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
23826         wrappers in syntax checks.
23827
23828 2009-09-06  Eric Blake  <ebb9@byu.net>
23829
23830         doc: fix comments in recent patches
23831         * lib/faccessat.c: Mention correct function.
23832         * lib/fchmodat.c: Likewise.
23833         * lib/fchownat.c: Likewise.
23834         * lib/symlinkat.c: Likewise.
23835         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
23836         constants.
23837
23838         faccessat, symlinkat: continue cleanup of previous patch
23839         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
23840         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
23841         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
23842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
23843         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
23844         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
23845         set.
23846
23847 2009-09-06  Bruno Haible  <bruno@clisp.org>
23848
23849         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
23850         (fstatat): Declare if GNULIB_FSTATAT is set.
23851         (mkdirat): Declare if GNULIB_MKDIRAT is set.
23852         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
23853         (unlinkat): Declare if GNULIB_UNLINKAT is set.
23854         * modules/fcntl-h (Files): Remove m4/openat.m4.
23855         * modules/sys_stat (Files): Remove m4/openat.m4.
23856         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
23857         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
23858         * modules/unistd (Files): Remove m4/openat.m4.
23859         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
23860         GNULIB_OPENAT.
23861         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
23862         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
23863         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
23864         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
23865         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
23866         gl_OPENAT_DEFAULTS.
23867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
23868         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
23869         Don't require gl_OPENAT_DEFAULTS.
23870         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
23871         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
23872         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
23873         (gl_OPENAT_DEFAULTS): Remove macro.
23874
23875 2009-09-06  Bruno Haible  <bruno@clisp.org>
23876
23877         * modules/openat (configure.ac): Remove unneeded witness.
23878
23879 2009-09-06  Bruno Haible  <bruno@clisp.org>
23880
23881         Set errno to ENOSYS when a function is entirely unsupported.
23882         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
23883         EOPNOTSUPP.
23884         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
23885         * modules/chown (Depends-on): Remove errno.
23886
23887 2009-09-06  Bruno Haible  <bruno@clisp.org>
23888
23889         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
23890
23891 2009-09-06  Bruno Haible  <bruno@clisp.org>
23892
23893         * lib/sys_stat.in.h: Fix preprocessor command indentation.
23894
23895 2009-09-06  Ben Pfaff  <blp@gnu.org>
23896             Bruno Haible  <bruno@clisp.org>
23897
23898         Work around a glibc bug in strtok_r.
23899         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
23900         Undefine if UNDEFINE_STRTOK_R is set.
23901         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
23902         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23903         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
23904         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
23905         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
23906         UNDEFINE_STRTOK_R.
23907         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
23908
23909 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23910
23911         exclude: minor fix
23912         * lib/exclude.c: Include wctype.h
23913
23914 2009-09-06  Akim Demaille  <demaille@gostai.com>
23915
23916         bootstrap: improve error message
23917         * build-aux/bootstrap (find_tool): Upon failure, report the list
23918         of candidates.
23919         Honor the initial value of the envvar.
23920
23921 2009-09-05  Eric Blake  <ebb9@byu.net>
23922
23923         symlinkat: new module
23924         * modules/symlinkat: New file.
23925         * lib/symlinkat.c: Likewise.
23926         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
23927         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
23928         * modules/unistd (Makefile.am): Use them.
23929         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
23930         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
23931         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
23932         * MODULES.html.sh (File system functions): Mention module.
23933         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
23934         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23935         * modules/symlinkat-tests: New test.
23936         * tests/test-symlinkat.c: Likewise.
23937
23938         test-openat-safer: add more checks
23939         * tests/test-openat-safer.c (main): Check more code paths.
23940
23941 2009-09-05  Jim Meyering  <meyering@redhat.com>
23942
23943         syntax-check: detect unnecessary inclusion of openat.h
23944         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
23945
23946 2009-09-05  Bruno Haible  <bruno@clisp.org>
23947
23948         Support towlower, towupper.
23949         * doc/posix-functions/towlower.texi: Mention module wctype.
23950         * doc/posix-functions/towupper.texi: Likewise.
23951         * lib/wctype.in.h (towlower, towupper): New functions.
23952         * tests/test-wctype.c: Include stdio.h, stdlib.h.
23953         (ASSERT): New macro.
23954         (e): New variable.
23955         (main): Test also towlower, towupper. Test WEOF argument.
23956         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23957
23958 2009-09-05  Bruno Haible  <bruno@clisp.org>
23959
23960         Fix conversion behaviour when the input is invalid.
23961         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
23962         mark occurring in first pass of indirect conversion.
23963         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
23964         input.
23965         Found by clang's static analyzer.
23966
23967 2009-09-05  Bruno Haible  <bruno@clisp.org>
23968
23969         * tests/test-striconveh.c (main): Test indirect conversion on platforms
23970         where direct conversion is possible.
23971
23972 2009-09-04  Eric Blake  <ebb9@byu.net>
23973
23974         openat: fail with ENOENT on empty name
23975         * lib/openat-proc.c (openat_proc_name): Special-case the empty
23976         buffer.
23977
23978         link-follow: fix logic bug in prior patch
23979         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
23980         reversed sense of yes and no in prior patch.  Avoid confusing
23981         compilation failure with desired semantics.
23982
23983         link-follow: accomodate mingw and cross-compilation
23984         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
23985         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
23986         cross-compilation results to -1, to make linkat easier to
23987         implement when cross-compiling.  Trivially support mingw.
23988         * modules/link-follow (configure.ac): Call new name.
23989         * NEWS: Mention this.
23990
23991 2009-09-03  Eric Blake  <ebb9@byu.net>
23992
23993         faccessat: compile replacement
23994         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
23995         needed.
23996
23997         fts: fix compilation error
23998         * lib/fts.c (includes): Re-add "openat.h", for
23999         openat_needs_fchdir.
24000
24001         faccessat: new module
24002         * modules/faccessat: New file.
24003         * lib/faccessat.c: Likewise.
24004         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
24005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24006         * modules/unistd (Makefile.am): Use it.
24007         * lib/unistd.in.h (faccessat): Declare it.
24008         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
24009         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
24010         * MODULES.html.sh (File system functions): Mention it.
24011         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
24012         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
24013
24014         euidaccess: prefer POSIX over non-standard implementation
24015         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
24016         * lib/euidaccess.c (euidaccess): Use it if available.
24017
24018         openat: make template easier to use
24019         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
24020         AT_FUNC_F2 to be undefined.
24021         (VALIDATE_FLAG): New macro; use it to reject bad flags.
24022         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
24023         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
24024         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
24025         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
24026         Likewise.
24027         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
24028         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
24029         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
24030         Likewise.
24031
24032         openat: declare in POSIX headers
24033         * NEWS: Mention this.
24034         * modules/openat (configure.ac): Declare witnesses.
24035         (Depends-on): Add fcntl-h, sys_stat, unistd.
24036         (Include): Mention correct headers.
24037         * modules/fcntl-h (Depends-on): Add link-warning.
24038         (Files): Add openat.m4.
24039         (Makefile.am): Substitute witnesses.
24040         * modules/sys_stat (Files, Makefile.am): Likewise.
24041         * modules/unistd (Files, Makefile.am): Likewise.
24042         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
24043         (gl_OPENAT_DEFAULTS): New macro.
24044         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
24045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
24046         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
24047         (SYS_STAT_H): Remove unused variable.
24048         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
24049         * lib/fcntl--.h (includes): Remove unneeded header.
24050         * lib/openat-safer.c (includes): Likewise.
24051         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
24052         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
24053         appropriate headers.
24054         (__OPENAT_PREFIX): Delete.
24055         * lib/fcntl.in.h (openat): Provide declaration.
24056         (AT_FDCWD): Fix Solaris bug.
24057         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
24058         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
24059         * lib/fchmodat.c (includes):  Adjust to find declaration.
24060         * lib/fchownat.c (includes): Likewise.
24061         * lib/mkdirat.c (includes): Likewise.
24062         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
24063         still visible.
24064
24065 2009-09-02  Eric Blake  <ebb9@byu.net>
24066
24067         errno: use consistently
24068         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
24069         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
24070         * lib/canonicalize.c (ELOOP): Likewise.
24071         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
24072         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
24073         * lib/lchown.c (EOPNOTSUPP): Likewise.
24074         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
24075         * lib/savewd.c (ESTALE): Likewise.
24076         * lib/settime.c (ENOSYS): Likewise.
24077         * lib/utimens.c (ENOSYS): Likewise.
24078         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
24079         * lib/chdir-safer.c (ELOOP): Likewise.
24080         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
24081         * modules/c-stack (Depends-on): Add errno.
24082         * modules/canonicalize (Depends-on): Likewise.
24083         * modules/chdir-safer (Depends-on): Likewise.
24084         * modules/fdopendir (Depends-on): Likewise.
24085         * modules/inet_ntop (Depends-on): Likewise.
24086         * modules/inet_pton (Depends-on): Likewise.
24087         * modules/lchown (Depends-on): Likewise.
24088         * modules/openat (Depends-on): Likewise.
24089         * modules/savewd (Depends-on): Likewise.
24090         * modules/settime (Depends-on): Likewise.
24091         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
24092
24093         fts: avoid leaking fds
24094         * modules/fts (Depends-on): Add cloexec.
24095         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
24096         flag.
24097
24098         fts: make directory fds more robust
24099         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
24100         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
24101
24102         backupfile, chdir-long, fts, savedir: make safer
24103         * lib/backupfile.c (includes): Use "dirent--.h", since
24104         numbered_backup can write to stderr during readdir.
24105         * lib/savedir.c (includes): Likewise.
24106         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
24107         emulation can write to stderr on failure.
24108         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
24109         * lib/getcwd.c: Document why opendir_safer is unused.
24110         * lib/glob.c: Likewise.
24111         * lib/scandir.c: Likewise.
24112         * lib/openat-proc.c: Likewise, for open_safer.
24113         * modules/backupfile (Depends-on): Add dirent-safer.
24114         * modules/savedir (Depends-on): Likewise.
24115         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
24116         * modules/chdir-long (Depends-on): Add openat-safer.
24117
24118         openat-safer: new module
24119         * modules/openat-safer: New file.
24120         * lib/openat-safer.c: Likewise.
24121         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
24122         * lib/fcntl-safer.h (openat_safer): Declare.
24123         * lib/fcntl--.h (openat): Override.
24124         * MODULES.html.sh (File descriptor based I/O): Mention it.
24125         * lib/openat.h: Add double-inclusion guards.
24126         * lib/openat.c (includes): Only include "fcntl-safer.h", not
24127         "fcntl--.h", so we can implement openat.
24128         * modules/openat-safer-tests: New test.
24129         * tests/test-openat-safer.c: New file.
24130
24131         dirent-safer: new module
24132         * modules/dirent-safer: New file.
24133         * lib/dirent--.h: Likewise.
24134         * lib/dirent-safer.h: Likewise.
24135         * lib/opendir-safer.c: Likewise.
24136         * m4/dirent-safer.m4: Likewise.
24137         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
24138         * modules/dirent-safer-tests: New test.
24139         * tests/test-dirent-safer.c: New file.
24140         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
24141
24142         fdopendir: optimize on mingw
24143         * lib/unistd.in.h (_gl_directory_name): New prototype.
24144         * lib/fchdir.c (_gl_directory_name): Implement it.
24145         (fchdir): Use it to simplify implementation.
24146         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
24147         fchdir, when available, to avoid calling [f]chdir().
24148
24149         fdopendir: split into its own module
24150         * lib/openat.c (fdopendir): Move...
24151         * lib/fdopendir.c: ...into new file.
24152         * modules/fdopendir: New module.
24153         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
24154         * modules/openat (Depends-on): Add fdopendir.
24155         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
24156         fdopendir here.
24157         * modules/savedir (Depends-on): Only need fdopendir, not full
24158         openat.
24159         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
24160         * lib/openat.h (fdopendir): Drop prototype.
24161         * lib/dirent.in.h (fdopendir): Provide prototype.
24162         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
24163         * modules/dirent (Makefile.am): Substitute them.
24164         * MODULES.html.sh (File system functions): Mention it.
24165         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
24166         * modules/fdopendir-tests: New file.
24167         * tests/test-fdopendir.c: Likewise.
24168
24169         fchdir: use more consistent macro convention
24170         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
24171         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
24172         REPLACE_FCHDIR, rather than relying on config.h macros.
24173         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
24174         inside a single make-time REPLACE_FCHDIR block, rather than using
24175         the config.h FCHDIR_REPLACEMENT.
24176         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
24177         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
24178         Manage fstat replacement.
24179         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
24180         REPLACE_FCHDIR.
24181         * modules/sys_stat (Files): Add m4/unistd_h.m4.
24182         (Makefile.am): Substitute REPLACE_FCHDIR.
24183         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
24184         FCHDIR_REPLACEMENT.
24185         * lib/dup-safer.c (dup_safer): Likewise.
24186         * lib/dup2.c (rpl_dup2): Likewise.
24187         * lib/dup3.c (rpl_dup3): Likewise.
24188         * lib/open.c (rpl_open): Likewise.
24189
24190         fchdir: simplify error handling, and support dup3
24191         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
24192         stdbool, malloc-posix, realloc-posix.
24193         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
24194         (ensure_dirs_slot): Return false on allocation failure.
24195         (rpl_dup2): Delete.
24196         (_gl_register_dup): New function.
24197         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
24198         (_gl_register_fd): Close fd on allocation failure.
24199         * lib/fcntl.in.h (_gl_register_fd): Update signature.
24200         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
24201         prototype.
24202         (rpl_dup2_fchdir): Delete prototype.
24203         * lib/open.c (open): Update caller.
24204         * lib/dup2.c (dup2): Track fchdir metadata.
24205         * lib/dup3.c (dup3): Likewise.
24206         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
24207         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
24208
24209 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24210
24211         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
24212         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
24213         don't pass arguments to AC_OUTPUT.
24214
24215 2009-09-02  Bruno Haible  <bruno@clisp.org>
24216
24217         * modules/mkdtemp (License): Relicense under LGPLv2+.
24218         Reported by Paolo Bonzini.
24219
24220 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24221
24222         Replace uses of obsolete autoconf macros in Jim's modules.
24223         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
24224         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
24225         can evoke a warning from autoconf when run with -Wobsolete
24226         enabled.  They were declared obsolete for good reasons (see
24227         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
24228         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
24229         should not continue using the deprecated macros.
24230         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
24231         obsolete Autoconf macros with modern counterparts.
24232         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24233         * m4/dos.m4 (gl_AC_DOS): Likewise.
24234         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
24235         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24236         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
24237         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
24238         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
24239         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
24240         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
24241         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
24242         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
24243         Likewise.
24244         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
24245         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
24246         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
24247         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
24248         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
24249         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
24250
24251 2009-09-01  Eric Blake  <ebb9@byu.net>
24252
24253         fchdir: fix off-by-one bug in previous patch
24254         * lib/fchdir.c (rpl_fstat): Use correct bounds.
24255         (_gl_unregister_fd): Delete useless if.
24256
24257 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
24258
24259         maint.mk: sort the list of syntax-check rules
24260         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
24261         easier to get a sense of progress when the rules are run sequentially
24262         and take a long time.
24263
24264 2009-09-01  Simon Josefsson  <simon@josefsson.org>
24265
24266         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
24267         * modules/netinet_in: Likewise.
24268         * modules/sys_file: Likewise.
24269         * modules/sys_ioctl: Likewise.
24270         * modules/sys_select: Likewise.
24271         * modules/sys_socket: Likewise.
24272         * modules/sys_stat: Likewise.
24273         * modules/sys_time: Likewise.
24274         * modules/sys_times: Likewise.
24275         * modules/sys_utsname: Likewise.
24276         * modules/sys_wait: Likewise.
24277
24278 2009-09-01  Jim Meyering  <meyering@redhat.com>
24279
24280         fts: help ensure that return values are not ignored
24281         * lib/fts_.h (__GNUC_PREREQ): Define.
24282         (__attribute_warn_unused_result__): Define.
24283         (fts_children, fts_close, fts_open, fts_read): Declare with
24284         __attribute_warn_unused_result__.
24285
24286         fts: fts_close now fails also when closing a dir file descriptor fails
24287         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
24288         and propagate to caller, along with errno.
24289
24290         announce-gen: correct formatting in --help output
24291         * build-aux/announce-gen (usage): Move the one-line description in
24292         --help output "up", to where it belongs, just after Usage:.
24293
24294 2009-08-31  Eric Blake  <ebb9@byu.net>
24295
24296         fchdir: port to mingw
24297         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
24298         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
24299         opened, then use a substitute.
24300         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
24301         replacement.
24302         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
24303         (_gl_register_fd): No need to check stat if open already filters
24304         all directories.
24305         (fchdir): Fix error condition to match POSIX.
24306         * modules/fchdir (Depends-on): Add sys_stat.
24307         * doc/posix-functions/open.texi (open): Document the limitation.
24308         * modules/fchdir-tests: New file.
24309         * tests/test-fchdir.c: Likewise.
24310
24311         canonicalize: allow cross-testing from cygwin to mingw
24312         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
24313         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
24314         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
24315         Likewise.
24316         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
24317         target does not support symlinks.
24318         * tests/test-canonicalize-lgpl.sh: Likewise.
24319
24320         chown: avoid compilation warning on mingw
24321         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
24322         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
24323         mingw.
24324         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
24325         * modules/chown (Depends-on): Add errno.
24326
24327 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
24328
24329         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
24330         command.
24331
24332 2009-08-31  Jim Meyering  <meyering@redhat.com>
24333
24334         canonicalize: remove useless initialization
24335         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
24336         initialization of local, "end".
24337
24338 2009-08-30  Bruno Haible  <bruno@clisp.org>
24339
24340         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
24341         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
24342         ENOSYS.
24343
24344 2009-08-30  Bruno Haible  <bruno@clisp.org>
24345
24346         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
24347         /usr/xpg4/bin/tr when it exists.
24348         * tests/test-pipe-filter-gi1.sh: Likewise.
24349
24350 2009-08-30  Bruno Haible  <bruno@clisp.org>
24351
24352         Work around deficient /usr/bin/id program on Solaris.
24353         * tests/test-file-has-acl.sh (ID): New variable.
24354         * tests/test-set-mode-acl.sh (ID): Likewise.
24355         * tests/test-copy-acl.sh (ID): Likewise.
24356         * tests/test-copy-file.sh (ID): Likewise.
24357
24358 2009-08-30  Bruno Haible  <bruno@clisp.org>
24359
24360         New module 'xstriconveh'.
24361         * lib/xstriconveh.h: New file.
24362         * lib/xstriconveh.c: New file.
24363         * modules/xstriconveh: New file.
24364
24365 2009-08-30  Bruno Haible  <bruno@clisp.org>
24366
24367         Make it easier to use mem_cd_iconveh.
24368         * lib/striconveh.h (iconveh_t): New type.
24369         (iconveh_open, iconveh_close): New declarations.
24370         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
24371         with a single 'const iconveh_t *' argument.
24372         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
24373         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
24374         with a single 'const iconveh_t *' argument.
24375         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
24376         * tests/test-striconveh.c (main): Update.
24377         * NEWS: Mention the change.
24378
24379 2009-08-30  Bruno Haible  <bruno@clisp.org>
24380
24381         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
24382         problem.
24383
24384 2009-08-30  Bruno Haible  <bruno@clisp.org>
24385
24386         Work around iconv_open problem on Solaris.
24387         * lib/iconv_open-solaris.gperf: New file.
24388         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
24389         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
24390         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
24391         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
24392         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
24393         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
24394
24395 2009-08-29  Jim Meyering  <meyering@redhat.com>
24396
24397         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
24398         * top/maint.mk (cvs-check): Remove target; it was just an alias
24399         to the better-named vc-diff-check.
24400         (maintainer-distcheck): Remove rule.  It was used only from
24401         the (alpha/beta/major) target, and all of its commands but one
24402         were coreutils-specific.
24403         (vc-dist): Remove rule.
24404         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
24405         Run vc-diff-check, not vc-dist.
24406         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
24407
24408 2009-08-27  Bruno Haible  <bruno@clisp.org>
24409
24410         * tests/test-bitrotate.c (main): Remove test that uses a shift count
24411         of 0.
24412
24413 2009-08-27  Bruno Haible  <bruno@clisp.org>
24414
24415         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
24416         compilers.
24417         * doc/func.texi: Document the SunPRO C bug.
24418
24419 2009-08-27  Bruno Haible  <bruno@clisp.org>
24420
24421         Fix link error on Solaris.
24422         * tests/test-parse-duration.c (xstrdup): Remove function.
24423
24424 2009-08-26  Pádraig Brady  <P@draigbrady.com>
24425
24426         ignore-value: handle pointer types, too
24427         * lib/ignore-value.h (__attribute__): Remove definition.
24428         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
24429         of a more concise and more-often effective "(void) i" statement.
24430         (ignore_ptr): New function to suppress warnings from functions that
24431         return pointers, and to make it explicit that one function doesn't
24432         handle all cases.
24433
24434 2009-08-25  Bruno Haible  <bruno@clisp.org>
24435
24436         dup2: work around a Linux bug.
24437         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
24438         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
24439         * doc/posix-functions/dup2.texi: Mention the Linux bug.
24440         Reported by Simon Josefsson.
24441
24442 2009-08-25  Jim Meyering  <meyering@redhat.com>
24443
24444         libguestfs uses gnulib
24445         * users.txt: Add libguestfs.
24446
24447 2009-08-24  Eric Blake  <ebb9@byu.net>
24448
24449         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
24450         * lib/pipe2.c (includes): Add binary-io.h.
24451         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
24452
24453 2009-08-24  Bruno Haible  <bruno@clisp.org>
24454
24455         Tolerate declared but missing accept4 syscall.
24456         * lib/accept4.c (accept4): Invoke original accept4 function first, if
24457         available.
24458         * lib/sys_socket.in.h (accept4): If the function is already present,
24459         override it.
24460         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
24461         * modules/accept4 (Makefile.am): Compile accept4.c always.
24462         Reported by Paolo Bonzini and Eric Blake.
24463
24464 2009-08-23  Bruno Haible  <bruno@clisp.org>
24465
24466         New module 'accept4'.
24467         * lib/sys_socket.in.h (accept4): New declaration.
24468         * lib/accept4.c: New file.
24469         * m4/accept4.m4: New file.
24470         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24471         GNULIB_ACCEPT4, HAVE_ACCEPT4.
24472         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
24473         HAVE_ACCEPT4.
24474         * modules/accept4: New file.
24475         * doc/glibc-functions/accept4.texi: Mention the new module.
24476
24477 2009-08-24  Jim Meyering  <meyering@redhat.com>
24478
24479         progname: also set global program_invocation_name, when possible
24480         Before this change, a libtool-enabled program that calls glibc's
24481         error function would report the program name as
24482         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
24483         * modules/progname (configure.ac): Check for a declaration of
24484         program_invocation_name.
24485         * lib/progname.c:  Include <errno.h>.
24486         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
24487         Set program_invocation_name.
24488
24489 2009-08-23  Bruno Haible  <bruno@clisp.org>
24490
24491         * lib/dup3.c: Include <string.h>.
24492
24493 2009-08-23  Bruno Haible  <bruno@clisp.org>
24494
24495         * lib/dup3.c (dup3): Test only once whether the system actually exists.
24496         * lib/pipe2.c (pipe2): Likewise.
24497         Suggested by Eric Blake.
24498
24499 2009-08-23  Bruno Haible  <bruno@clisp.org>
24500
24501         Tolerate declared but missing dup3 syscall.
24502         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
24503         * lib/unistd.in.h (dup3): If the function is already present,
24504         override it.
24505         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
24506         * modules/dup3 (Makefile.am): Compile dup3.c always.
24507         Reported by Paolo Bonzini.
24508
24509 2009-08-23  Bruno Haible  <bruno@clisp.org>
24510
24511         Tolerate declared but missing pipe2 syscall.
24512         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
24513         available.
24514         * lib/unistd.in.h (pipe2): If the function is already present,
24515         override it.
24516         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
24517         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
24518         Reported by Paolo Bonzini.
24519
24520 2009-08-23  Bruno Haible  <bruno@clisp.org>
24521
24522         * lib/pipe2.c (pipe2): Move #ifs inside function.
24523
24524 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
24525
24526         quotearg: document limitations of quote_these_too
24527         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
24528         those limitations are created.
24529         * lib/quotearg.h (set_char_quoting): Document that digits and
24530         letters that are special after backslash are not permitted.
24531         (quotearg_char): Cross-reference set_char_quoting documentation.
24532
24533 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
24534
24535         quotearg: implement custom_quoting_style
24536         * lib/quotearg.c: (struct quoting_options): Add left_quote and
24537         right_quote fields.
24538         (set_custom_quoting): New public function.
24539         (quotearg_buffer_restyled): Add left_quote and right_quote
24540         arguments, handle them very much like locale quoting, and update
24541         all uses.
24542         (quotearg_n_custom): New public function.
24543         (quotearg_n_custom_mem): New public function.
24544         (quotearg_custom): New public function.
24545         (quotearg_custom_mem): New public function.
24546         * lib/quotearg.h: Prototype and document new public functions.
24547         (enum quoting_style): For escape_quoting_style and
24548         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
24549         ignored even though they're otherwise like c_quoting_style.
24550         Add custom_quoting_style member and document with comparison to
24551         clocale_quoting_style.
24552         * tests/test-quotearg.c (custom_quotes): New array.
24553         (custom_results): New array.
24554         (main): Extend to test custom quoting.
24555
24556 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
24557
24558         quotearg: fix right quote escaping when it's in quote_these_too
24559         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
24560         quote, be sure to prepend only one backslash.
24561         * tests/test-quotearg.c (use_quote_double_quotes): New function.
24562         (main): Test it.
24563
24564 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
24565
24566         quotearg-tests: test escaping of embedded locale quotes
24567         * tests/test-quotearg.c (struct result_strings): Add member for
24568         new input.
24569         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
24570         (inputs): Add new input.
24571         (results_g): Add expected results.
24572         (flag_results): Likewise.
24573         (locale_results): Likewise.
24574         (compare_strings): Check those.
24575
24576 2009-08-23  Bruno Haible  <bruno@clisp.org>
24577
24578         Tests for module 'dup3'.
24579         * modules/dup3-tests: New file.
24580         * tests/test-dup3.c: New file.
24581
24582         New module 'dup3'.
24583         * lib/unistd.in.h (dup3): New declaration.
24584         * lib/dup3.c: New file.
24585         * m4/dup3.m4: New file.
24586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
24587         HAVE_DUP3.
24588         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
24589         * modules/dup3: New file.
24590         * doc/glibc-functions/dup3.texi: Mention the new module.
24591
24592 2009-08-23  Bruno Haible  <bruno@clisp.org>
24593
24594         Tweak the dup2 test.
24595         * tests/test-dup2.c (main): Create the test file empty. Verify that an
24596         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
24597         the test file is still empty. Fix argument order of lseek.
24598
24599 2009-08-23  Bruno Haible  <bruno@clisp.org>
24600
24601         Avoid test link errors when the modules getopt-gnu, gettext are used.
24602         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
24603         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24604
24605 2009-08-23  Bruno Haible  <bruno@clisp.org>
24606
24607         Fix getdtablesize() on mingw.
24608         * lib/getdtablesize.c (getdtablesize): Implement differently.
24609         * lib/unistd.in.h (getdtablesize): Improve comment.
24610
24611 2009-08-23  Bruno Haible  <bruno@clisp.org>
24612
24613         New module 'mkostemp'.
24614         Based on Ulrich Drepper's 2007-08-10 change in glibc.
24615         * lib/stdlib.in.h (mksotemp): New declaration.
24616         * lib/mkostemp.c: New file, from glibc with modifications.
24617         * lib/tempname.h (GT_FILE): Remove outdated comment.
24618         (gen_tempname): Add flags argument.
24619         * lib/tempname.c (__GT_BIGFILE): Remove macro.
24620         (__GT_FILE): Map to 1.
24621         (small_open, large_open): Remove macros.
24622         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
24623         * lib/mkstemp.c (mkstemp): Update.
24624         * lib/mkdtemp.c (mkdtemp): Likewise.
24625         * m4/mkostemp.m4: New file.
24626         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
24627         HAVE_MKOSTEMP.
24628         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
24629         HAVE_MKOSTEMP.
24630         * modules/mkostemp: New file, based on modules/mkstemp.
24631         * doc/glibc-functions/mkostemp.texi: Mention the new module.
24632         * NEWS: Mention the change.
24633
24634 2009-08-23  Bruno Haible  <bruno@clisp.org>
24635
24636         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
24637         Reported by Eric Blake.
24638
24639 2009-08-23  Bruno Haible  <bruno@clisp.org>
24640
24641         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
24642         Reported by Eric Blake.
24643
24644 2009-08-23  Bruno Haible  <bruno@clisp.org>
24645
24646         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
24647         * modules/pipe2 (Depends-on): Likewise.
24648
24649 2009-08-23  Eric Blake  <ebb9@byu.net>
24650
24651         fcntl-h: add O_TTY_INIT support
24652         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
24653         * tests/test-fcntl-h.c (o): Test it.
24654         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
24655
24656         fcntl-h: rename from fcntl, in preparation for fcntl(2)
24657         * modules/fcntl: Move <fcntl.h> header replacement...
24658         * modules/fcntl-h: ...to new name, so as not to collide with
24659         like-named function.
24660         * tests/test-fcntl.c: Rename...
24661         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
24662         * modules/fcntl-tests: Rename...
24663         * modules/fcntl-h-tests: ...to this.  Update test file name.
24664         * modules/chdir-long (Depends-on): Update clients.
24665         * modules/chdir-safer (Depends-on): Likewise.
24666         * modules/fcntl-safer (Depends-on): Likewise.
24667         * modules/fts (Depends-on): Likewise.
24668         * modules/mkancesdirs (Depends-on): Likewise.
24669         * modules/mkdir-p (Depends-on): Likewise.
24670         * modules/open (Depends-on): Likewise.
24671         * modules/savewd (Depends-on): Likewise.
24672         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
24673         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
24674
24675 2009-08-22  Bruno Haible  <bruno@clisp.org>
24676
24677         * modules/binary-io (License): Relicense under LGPL.
24678         * modules/pipe2 (License): Likewise.
24679
24680 2009-08-22  Bruno Haible  <bruno@clisp.org>
24681
24682         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
24683         return value.
24684         * lib/pipe-filter-gi.c (filter_init): Likewise.
24685         Reported by Eric Blake.
24686
24687 2009-08-22  Bruno Haible  <bruno@clisp.org>
24688
24689         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
24690         * modules/pipe (Depends-on): Add pipe2.
24691
24692 2009-08-22  Bruno Haible  <bruno@clisp.org>
24693
24694         Tests for module 'pipe2'.
24695         * modules/pipe2-tests: New file.
24696         * tests/test-pipe2.c: New file.
24697
24698         New module 'pipe2'.
24699         * lib/unistd.in.h (pipe2): New declaration.
24700         * lib/pipe2.c: New file.
24701         * m4/pipe2.m4: New file.
24702         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
24703         HAVE_PIPE2.
24704         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
24705         * modules/pipe2: New file.
24706         * doc/glibc-functions/pipe2.texi: Mention the new module.
24707
24708 2009-08-22  Bruno Haible  <bruno@clisp.org>
24709
24710         Reference some new glibc functions.
24711         * doc/glibc-functions/accept4.texi: New file.
24712         * doc/glibc-functions/dup3.texi: New file.
24713         * doc/glibc-functions/mkostemp.texi: New file.
24714         * doc/glibc-functions/pipe2.texi: New file.
24715         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
24716         (Glibc sys/socket.h): Refer to accept4.
24717         (Glibc unistd.h): Refer to dup3, pipe2.
24718         Reported by Eric Blake.
24719
24720 2009-08-22  Jim Meyering  <meyering@redhat.com>
24721             Bruno Haible  <bruno@clisp.org>
24722
24723         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
24724         This makes it so packages using automake-1.11's silent-rules option
24725         can print e.g., a single "GEN    configmake.h" line, rather than
24726         the 30+ statements that perform the job.  If you want to see the
24727         actual commands, you can still run "make V=1".
24728         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
24729         so that make output is abbreviated when those variables are defined
24730         appropriately.
24731         * modules/argz: Likewise.
24732         * modules/arpa_inet: Likewise.
24733         * modules/byteswap: Likewise.
24734         * modules/configmake: Likewise.
24735         * modules/dirent: Likewise.
24736         * modules/errno: Likewise.
24737         * modules/fcntl: Likewise.
24738         * modules/float: Likewise.
24739         * modules/fnmatch: Likewise.
24740         * modules/getopt-posix: Likewise.
24741         * modules/glob: Likewise.
24742         * modules/iconv_open: Likewise.
24743         * modules/inttypes: Likewise.
24744         * modules/localcharset: Likewise.
24745         * modules/locale: Likewise.
24746         * modules/math: Likewise.
24747         * modules/netdb: Likewise.
24748         * modules/netinet_in: Likewise.
24749         * modules/poll: Likewise.
24750         * modules/posix_spawnp-tests: Likewise.
24751         * modules/sched: Likewise.
24752         * modules/search: Likewise.
24753         * modules/selinux-h: Likewise.
24754         * modules/signal: Likewise.
24755         * modules/spawn: Likewise.
24756         * modules/stdarg: Likewise.
24757         * modules/stdbool: Likewise.
24758         * modules/stddef: Likewise.
24759         * modules/stdint: Likewise.
24760         * modules/stdio: Likewise.
24761         * modules/stdlib: Likewise.
24762         * modules/string: Likewise.
24763         * modules/strings: Likewise.
24764         * modules/sys_file: Likewise.
24765         * modules/sys_ioctl: Likewise.
24766         * modules/sys_select: Likewise.
24767         * modules/sys_socket: Likewise.
24768         * modules/sys_stat: Likewise.
24769         * modules/sys_time: Likewise.
24770         * modules/sys_times: Likewise.
24771         * modules/sys_utsname: Likewise.
24772         * modules/sys_wait: Likewise.
24773         * modules/sysexits: Likewise.
24774         * modules/time: Likewise.
24775         * modules/unistd: Likewise.
24776         * modules/wchar: Likewise.
24777         * modules/wctype: Likewise.
24778
24779 2009-08-22  Jim Meyering  <meyering@redhat.com>
24780
24781         announce-gen: detect write failure
24782         * build-aux/announce-gen: Add Coda at end.
24783         Remove equivalent-but-more-verbose block at top.
24784
24785 2009-08-19  Akim Demaille  <demaille@gostai.com>
24786
24787         bootstrap: --help to stdout.
24788         * bootstrap (usage): Don't send --help to stderr.
24789         Use a here doc instead of a long string.
24790
24791 2009-08-21  Eric Blake  <ebb9@byu.net>
24792
24793         test-popen-safer: split from test-popen
24794         * tests/test-popen.c (main): Move...
24795         * tests/test-popen.h: ...into new file.
24796         * tests/test-popen-safer2.c: New file.
24797         * modules/popen-tests (Files): Add test-popen.h.
24798         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
24799         Suggested by Bruno Haible.
24800
24801         test-fcntl-safer: split from test-open
24802         * tests/test-open.c (main): Move...
24803         * tests/test-open.h: ...into new file.
24804         * tests/test-fcntl-safer.c: New file.
24805         * modules/open-tests (Files): Add test-open.h.
24806         * modules/fcntl-safer-tests: New file.
24807         Suggested by Bruno Haible.
24808
24809         test-fopen-safer: split from test-fopen
24810         * tests/test-fopen.c (main): Move...
24811         * tests/test-fopen.h: ...into new file.
24812         * tests/test-fopen-safer.c: New file.
24813         * modules/fopen-tests (Files): Add test-fopen.h.
24814         * modules/fopen-safer-tests: New file.
24815         Suggested by Bruno Haible.
24816
24817 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
24818
24819         popen-safer: test O_CLOEXEC at run-time.
24820         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
24821
24822 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
24823
24824         fcntl: move more flags to the header
24825         * lib/cloexec.c: Do not define FD_CLOEXEC here.
24826         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
24827         * lib/fcntl.in.h: Do both things here.
24828
24829 2009-08-21  Jim Meyering  <meyering@redhat.com>
24830
24831         consistently remove $@-t before redirecting to it
24832         * modules/argz: Remove $@-t and $@ before redirecting to the former.
24833         * modules/alloca-opt: Likewise.
24834         * modules/byteswap: Likewise.
24835         * modules/fnmatch: Likewise.
24836         * modules/getopt-posix: Likewise.
24837         * modules/glob: Likewise.
24838         * modules/poll: Likewise.
24839         * modules/posix_spawnp-tests: Likewise.
24840         * modules/sys_socket: Likewise.
24841         * modules/sysexits: Likewise.
24842
24843 2009-08-21  Eric Blake  <ebb9@byu.net>
24844
24845         popen: simplify access to original popen
24846         * lib/popen.c (rpl_popen): No need to worry about popen being a
24847         macro.
24848         Reported by Bruno Haible.
24849
24850 2009-08-20  Eric Blake  <ebb9@byu.net>
24851
24852         build: avoid some compiler warnings
24853         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
24854         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
24855         type.
24856         (new_exclude_segment, excluded_file_pattern_p)
24857         (excluded_file_name_p): Reduce scope.
24858         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
24859         old-style declaration.
24860
24861 2009-08-20  Simon Josefsson  <simon@josefsson.org>
24862
24863         * tests/test-exclude1.sh: Handle Windows EOL.
24864         * tests/test-exclude2.sh: Likewise.
24865         * tests/test-exclude3.sh: Likewise.
24866         * tests/test-exclude4.sh: Likewise.
24867         * tests/test-exclude5.sh: Likewise.
24868         * tests/test-exclude6.sh: Likewise.
24869         * tests/test-exclude7.sh: Likewise.
24870
24871 2009-08-19  Akim Demaille  <demaille@gostai.com>
24872
24873         bootstrap: find sha1sum when named gsha1sum.
24874         * bootstrap (find_tool): New.
24875         ($SHA1SUM): New.
24876         Use it.
24877
24878 2009-08-20  Jim Meyering  <meyering@redhat.com>
24879
24880         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
24881         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
24882         expression that converts "." in a file name to "\." in the resulting
24883         regexp.  Start with a dummy statement, so that prior shell variable
24884         definitions are expanded portably.  Reported by Simon Josefsson.
24885
24886 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
24887
24888         Fix polling for writeability of a screen buffer.
24889         * lib/poll.c: Distinguish input and screen buffers for the
24890         Win32 implementation.
24891         * lib/select.c: Likewise.
24892
24893 2009-08-19  Eric Blake  <ebb9@byu.net>
24894
24895         popen-safer: prevent popen from clobbering std descriptors
24896         * modules/popen-safer: New file.
24897         * lib/popen-safer.c: Likewise.
24898         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
24899         * lib/stdio--.h (popen): Provide override.
24900         * lib/stdio-safer.h (popen_safer): Provide declaration.
24901         * tests/test-popen.c (includes): Partially test this.
24902         * modules/popen-safer-tests: New file, for more tests.
24903         * tests/test-popen-safer.c: Likewise.
24904         * MODULES.html.sh (file stream based Input/Output): Mention it.
24905
24906         tests: test some of the *-safer modules
24907         * modules/fopen-safer (Depends-on): Add fopen.
24908         * modules/fcntl-safer (Depends-on): Add fcntl.
24909         * modules/stdlib-safer (Depends-on): Add stdlib.
24910         (configure.ac): Set indicator.
24911         * modules/unistd-safer (configure.ac): Likewise.
24912         * modules/tmpfile-safer (configure.ac): Likewise.
24913         (Depends-on): Add tmpfile.
24914         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
24915         active.
24916         * tests/test-fopen.c (includes): Test safer versions when they are
24917         in use.
24918         * tests/test-open.c (includes): Likewise.
24919
24920         popen: fix cygwin 1.5 bug when stdin closed
24921         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
24922         * modules/popen: New file.
24923         * modules/popen-tests: Likewise.
24924         * tests/test-popen.c: Likewise.
24925         * m4/popen.m4: Likewise.
24926         * lib/popen.c: Likewise.
24927         * lib/stdio.in.h (popen): New declaration.
24928         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
24929         * modules/stdio (Makefile.am): Likewise.
24930         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
24931
24932 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
24933
24934         maint.mk: give full control over update-copyright exclusions
24935         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
24936         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
24937         (update-copyright): Don't force inclusion of top-level
24938         ChangeLog.  Don't force exclusion of all COPYING files, but make
24939         them the default exclusion instead.
24940
24941 2009-08-16  Bruno Haible  <bruno@clisp.org>
24942
24943         Fix test failures on Solaris 10.
24944         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
24945         tests when Solaris iconv() is used.
24946         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
24947         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
24948         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
24949         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
24950         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
24951
24952 2009-08-16  Bruno Haible  <bruno@clisp.org>
24953
24954         Fix test failures on Solaris 10.
24955         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
24956         'tr' program and pass it as first argument.
24957         * tests/test-pipe-filter-gi1.sh: Likewise.
24958         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
24959         program as first argument.
24960         * tests/test-pipe-filter-gi1.c (main): Likewise.
24961
24962 2009-08-16  Eric Blake  <ebb9@byu.net>
24963
24964         fpurge: fix previous commits
24965         * modules/fpurge (Makefile.am): Make replacement conditional,
24966         partially reverting 2007-04-29 change; missed in previous
24967         attempt.
24968         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
24969         is missing.
24970
24971 2009-08-16  Bruno Haible  <bruno@clisp.org>
24972
24973         Clarify fpurge's effect on the file position.
24974         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
24975         * tests/test-fpurge.c (main): Make a second pass for checking the file
24976         position.
24977
24978 2009-08-16  Bruno Haible  <bruno@clisp.org>
24979
24980         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
24981         declaration of fpurge is missing.
24982         * tests/test-fpurge.c (main): Check that the file has not more contents
24983         than expected. Close the file before removing it.
24984
24985 2009-08-15  Eric Blake  <ebb9@byu.net>
24986
24987         fpurge: don't wrap working cygwin implementation
24988         * lib/fpurge.c (fpurge): Fix comment typo.
24989         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
24990         1.7 to avoid replacement.
24991         * tests/test-fpurge.c (main): Enhance test.
24992
24993 2009-08-15  Eric Blake  <ebb9@byu.net>
24994         and Jim Meyering  <meyering@redhat.com>
24995
24996         test-update-copyright: skip if perl is insufficient
24997         * tests/test-update-copyright.sh: Failure to run maintainer tool
24998         should not cause testsuite failure on cygwin 1.5.
24999
25000 2009-08-14  Eric Blake  <ebb9@byu.net>
25001
25002         doc: mention more functions added in cygwin 1.7.0
25003         * doc/posix-headers/limits.texi (limits.h): Update for recent
25004         cygwin additions.
25005         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
25006         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
25007         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
25008         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
25009         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
25010
25011 2009-08-14  Eric Blake  <ebb9@byu.net>
25012
25013         maint.mk: simplify update-copyright rule
25014         * top/maint.mk (update-copyright-local): Delete, and document how
25015         to do it in cfg.mk instead.
25016         (update-copyright-exclude-regexp): Delete, and document how to do
25017         it in .x-update-copyright instead.
25018         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
25019         exclude ChangeLog.
25020
25021 2009-08-14  Bruno Haible  <bruno@clisp.org>
25022
25023         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
25024
25025 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25026
25027         maint.mk: support update-copyright-env
25028         * top/maint.mk (update-copyright-env): Define place-holder.
25029         (update-copyright): Expand $(update-copyright-env) before
25030         invoking update-copyright.
25031
25032 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25033
25034         update-copyright: implement forced reformatting
25035         * build-aux/update-copyright: Implement and document
25036         UPDATE_COPYRIGHT_FORCE.
25037         * tests/test-update-copyright.sh: Test it.
25038
25039 2009-08-14  Eric Blake  <ebb9@byu.net>
25040         and Bruno Haible  <bruno@clisp.org>
25041
25042         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
25043         * tests/test-locale.c: Revert previous patch related to NULL.
25044         * tests/test-stdio.c: Likewise.
25045         * tests/test-stdlib.c: Likewise.
25046         * tests/test-string.c: Likewise.
25047         * tests/test-unistd.c: Likewise.
25048         * modules/time-tests (Depends-on): Add verify.
25049         * modules/wchar-tests (Depends-on): Likewise.
25050         * tests/test-time.c: Test for NULL compliance.
25051         * tests/test-wchar.c: Likewise.
25052         * modules/locale (Depends-on): Add stddef.
25053         * modules/stdio (Depends-on): Likewise.
25054         * modules/stdlib (Depends-on): Likewise.
25055         * modules/string (Depends-on): Likewise.
25056         * modules/time (Depends-on): Likewise.
25057         * modules/unistd (Depends-on): Likewise.
25058         * modules/wchar (Depends-on): Likewise.
25059         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
25060         * lib/stdlib.in.h (includes): Likewise.
25061         * lib/string.in.h (includes): Likewise.
25062         * lib/time.in.h (includes): Likewise.
25063         * lib/unistd.in.h (includes): Likewise.
25064         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
25065         replaced.
25066         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25067         * m4/stddef_h.m4: New file.
25068         * modules/stddef: Likewise.
25069         * lib/stddef.in.h: Likewise.
25070         * modules/stddef-tests: Likewise.
25071         * tests/test-stddef.c: Likewise.
25072         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
25073         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
25074         * doc/posix-headers/locale.texi (locale.h): Likewise.
25075         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
25076         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25077         * doc/posix-headers/string.texi (string.h): Likewise.
25078         * doc/posix-headers/time.texi (time.h): Likewise.
25079         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
25080         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
25081
25082 2009-08-14  Eric Blake  <ebb9@byu.net>
25083
25084         doc: improve git diff of texinfo files
25085         * .gitattributes: Add rule for *.texi files, with hint on how to
25086         use it.
25087         Copied from m4, and based on a report by Bruno Haible.
25088
25089 2009-08-14  Bruno Haible  <bruno@clisp.org>
25090
25091         Disable multithread support by default on Cygwin 1.5.x for real.
25092         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
25093
25094 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25095
25096         update-copyright: much ado about intervals
25097         * build-aux/update-copyright: Implement and document
25098         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
25099         of copyright year intervals.
25100         Also, document UPDATE_COPYRIGHT_YEAR.
25101         * tests/test-update-copyright.sh: Test it.
25102
25103         update-copyright: convert 2-digit to 4-digit years
25104         * build-aux/update-copyright: Implement and document.
25105         * tests/test-update-copyright.sh: Update.
25106
25107 2009-08-14  Jim Meyering  <meyering@redhat.com>
25108
25109         test-exclude: avoid coreutils "make check" failure
25110         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
25111         just as in test-argmatch.c.
25112
25113 2009-08-13  Eric Blake  <ebb9@byu.net>
25114
25115         test-dup2: fix bad assumption
25116         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
25117         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
25118
25119         test-version-etc: fix CRLF portability issue
25120         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
25121         recognize \r.
25122         * tests/test-argp-version-etc-1.sh: Likewise.
25123
25124         getopt: update client modules
25125         * modules/argp (Depends-on): Use getopt-gnu.
25126         * modules/git-merge-changelog (Depends-on): Likewise.
25127         * modules/long-options (Depends-on): Likewise.
25128         * modules/xstrtol (Depends-on): Likewise.
25129
25130 2009-08-13  Simon Josefsson  <simon@josefsson.org>
25131
25132         * tests/test-version-etc.sh: Don't fail on different
25133         project/version.  Don't fail on CRLF differences.  Rewrite to use
25134         multiple -e instead of multiple sed forks, suggested by Eric Blake
25135         <ebb9@byu.net>.
25136         * tests/test-argp-version-etc-1.sh: Likewise.
25137
25138 2009-08-13  Simon Josefsson  <simon@josefsson.org>
25139
25140         * tests/test-version-etc.sh: Don't fail on different
25141         project/version.
25142
25143 2009-08-12  Bruno Haible  <bruno@clisp.org>
25144
25145         Tests for modules 'getopt-posix', 'getopt-gnu'.
25146         * modules/getopt-posix-tests: New file.
25147         * tests/test-getopt.c: New file.
25148         * tests/test-getopt.h: New file.
25149         * tests/test-getopt_long.h: New file.
25150
25151         New modules 'getopt-posix', 'getopt-gnu'.
25152         * modules/getopt-gnu: New file, renamed from modules/getopt.
25153         * modules/getopt-posix: New file.
25154         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
25155         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
25156         (gl_GETOPT): Remove macro.
25157         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
25158         Disable the test against BSD systems that declare optreset. Test
25159         against mingw bug. Test against lack of support of optional arguments
25160         on many platforms.
25161         * doc/glibc-headers/getopt.texi: Update module name and list of
25162         relevant platforms.
25163         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
25164         'getopt-gnu' and more portability problems.
25165         * NEWS: Mention the changes.
25166
25167 2009-08-12  Bruno Haible  <bruno@clisp.org>
25168
25169         Ensure that optarg etc. get declared by <unistd.h>.
25170         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
25171         AC_USE_SYSTEM_EXTENSIONS.
25172         * modules/getopt (Depends-on): Add 'extensions'.
25173
25174 2009-08-12  Bruno Haible  <bruno@clisp.org>
25175
25176         Avoid test link errors.
25177         * modules/pipe-filter-ii-tests (Makefile.am): Define
25178         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
25179         * modules/pipe-filter-gi-tests (Makefile.am): Define
25180         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
25181         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25182
25183 2009-08-12  Bruno Haible  <bruno@clisp.org>
25184
25185         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
25186         gl_GETOPT_SUBSTITUTE before.
25187         (gl_GETOPT): Use it.
25188         * m4/argp.m4 (gl_ARGP): Update.
25189         Reported by Sergey Poznyakoff.
25190
25191         * m4/getopt.m4: Reorder macros.
25192         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
25193         (gl_GETOPT_SUBSTITUTE): Remove macro.
25194
25195 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25196
25197         Minor improvement in gitlog-to-changelog
25198
25199         * build-aux/gitlog-to-changelog: New option `--format' makes
25200         output format string configurable.
25201
25202 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25203
25204         Optimize exclude: use hash tables for non-wildcard patterns.
25205
25206         * lib/exclude.c: Include hash.h and mbuiter.h
25207         (struct exclude_pattern, exclude_segment): New data types.
25208         (struct exclude): Rewrite.
25209         (fnmatch_pattern_has_wildcards): New function.
25210         (new_exclude_segment, free_exclude_segment): New functions.
25211         (excluded_file_pattern_p, excluded_file_name_p): New functions.
25212         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
25213         * lib/exclude.h (is_fnmatch_pattern): New prototype.
25214         * modules/exclude: Depend on hash and mbuiter.
25215
25216         * modules/exclude-tests: New file.
25217         * tests/test-exclude.c: New file.
25218         * tests/test-exclude1.sh: New file.
25219         * tests/test-exclude2.sh: New file.
25220         * tests/test-exclude3.sh: New file.
25221         * tests/test-exclude4.sh: New file.
25222         * tests/test-exclude5.sh: New file.
25223         * tests/test-exclude6.sh: New file.
25224         * tests/test-exclude7.sh: New file.
25225
25226 2009-08-12  Bruno Haible  <bruno@clisp.org>
25227
25228         Ensure that getopt() gets declared by <unistd.h>.
25229         * lib/unistd.in.h: Conditionally include getopt.h.
25230         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
25231         Set GNULIB_UNISTD_H_GETOPT.
25232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25233         GNULIB_UNISTD_H_GETOPT.
25234         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
25235
25236 2009-08-12  Bruno Haible  <bruno@clisp.org>
25237
25238         Clarify logic.
25239         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
25240         gl_replace_getopt instead of GETOPT_H.
25241
25242 2009-08-12  Bruno Haible  <bruno@clisp.org>
25243
25244         * m4/getopt.m4: Add comments.
25245
25246 2009-08-12  Bruno Haible  <bruno@clisp.org>
25247
25248         Disable multithread support by default on Cygwin 1.5.x.
25249         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
25250         set gl_use_threads=no if not specified otherwise.
25251
25252 2009-08-11  Bruno Haible  <bruno@clisp.org>
25253
25254         Avoid compilation error on NetBSD 5.0.
25255         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
25256         * tests/test-stdio.c: Likewise.
25257         * tests/test-stdlib.c: Likewise.
25258         * tests/test-string.c: Likewise.
25259         * tests/test-unistd.c: Likewise.
25260         Reported by Greg Troxel <gdt@ir.bbn.com>
25261         at <https://savannah.gnu.org/support/?106973>.
25262
25263 2009-08-11  Bruno Haible  <bruno@clisp.org>
25264
25265         * modules/dup2-tests (Depends-on): Remove close.
25266
25267         Undo 2009-07-19 commit.
25268         * modules/acl-tests (Depends-on): Remove close.
25269         * modules/binary-io-tests (Depends-on): Likewise.
25270         * modules/closein-tests (Depends-on): Likewise.
25271         * modules/flock-tests (Depends-on): Likewise.
25272         * modules/fsync-tests (Depends-on): Likewise.
25273         * modules/lseek-tests (Depends-on): Likewise.
25274         * modules/pipe-tests (Depends-on): Likewise.
25275         * modules/posix_spawn-tests (Depends-on): Likewise.
25276         * modules/posix_spawnp-tests (Depends-on): Likewise.
25277         * modules/stat-time-tests (Depends-on): Likewise.
25278         * modules/yesno-tests (Depends-on): Likewise.
25279
25280 2009-08-10  Bruno Haible  <bruno@clisp.org>
25281
25282         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
25283
25284 2009-08-10  Bruno Haible  <bruno@clisp.org>
25285
25286         Fix a gcc warning.
25287         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
25288
25289 2009-08-10  Bruno Haible  <bruno@clisp.org>
25290
25291         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
25292         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
25293         not only the first time.
25294         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
25295         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
25296         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
25297         is 1, not only the the first time.
25298
25299 2009-08-10  Bruno Haible  <bruno@clisp.org>
25300
25301         Make it possible to use module 'gethostname' without module 'close'.
25302         * lib/unistd.in.h (close): Evoke a link error only if
25303         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
25304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25305         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25306         * modules/unistd (Makefile.am): Substitute
25307         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25308         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
25309         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
25310         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25311         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25312         * modules/sys_ioctl (Makefile.am): Substitute
25313         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25314         * modules/socket (configure.ac): On native Windows, set
25315         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
25316         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25317         Reported by Sam Steingold <sds@gnu.org>.
25318
25319 2009-08-10  Bruno Haible  <bruno@clisp.org>
25320
25321         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
25322         * modules/ioctl (configure.ac): Likewise.
25323
25324 2009-08-10  Bruno Haible  <bruno@clisp.org>
25325
25326         Avoid collision between gnulib wrapper and libintl wrapper.
25327         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
25328         already defined in intl/printf.c.
25329         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
25330         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
25331
25332 2009-08-09  Bruno Haible  <bruno@clisp.org>
25333
25334         Make <sys/select.h> really self-contained, also on Solaris 10.
25335         * lib/sys_select.in.h: Include <string.h>.
25336         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
25337         Solaris 10 problem.
25338         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
25339         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
25340         Reported by Jim Meyering.
25341
25342 2009-08-09  Bruno Haible  <bruno@clisp.org>
25343
25344         Avoid warnings from 'aclocal' that are due to a use of macro name
25345         AM_XGETTEXT_OPTION that is not defined in automake.
25346         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
25347         automake.
25348         * modules/error (configure.ac): Likewise.
25349         * modules/propername (configure.ac): Likewise.
25350         * modules/vasprintf (configure.ac): Likewise.
25351         * modules/verror (configure.ac): Likewise.
25352         * modules/xprintf (configure.ac): Likewise.
25353         * modules/xvasprintf (configure.ac): Likewise.
25354
25355 2009-08-08  Bruno Haible  <bruno@clisp.org>
25356
25357         Avoid compilation error in C++ mode.
25358         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
25359         Reported by Sam Steingold <sds@gnu.org>.
25360
25361 2009-08-08  Bruno Haible  <bruno@clisp.org>
25362
25363         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
25364         for the various Unix platforms.
25365         * doc/posix-headers/limits.texi: Update platforms list regarding
25366         HOST_NAME_MAX.
25367         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25368
25369 2009-08-07  Jim Meyering  <meyering@redhat.com>
25370
25371         selinux-at: fix typo in a comment
25372         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
25373         Spotted by Paolo Bonzini.
25374
25375         selinux-at: remove redundant m4 code, add documentation
25376         * modules/selinux-at (configure.ac): Remove redundant code.
25377         LIB_SELINUX is already set via the dependent module, selinux-h.
25378         (Include): Add quotes around selinux-at.h.
25379         * lib/selinux-at.h: Add documentation.
25380         Reported by Bruno Haible in
25381         http://marc.info/?l=gnulib-bug&m=124958988300749
25382
25383 2009-08-07  Bruno Haible  <bruno@clisp.org>
25384
25385         Avoid link error on MacOS X 10.3 and 10.4.
25386         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
25387         on non-ELF systems.
25388         * lib/argp-pv.c (argp_program_version): Likewise.
25389         Reported by Simon Josefsson.
25390
25391 2009-08-07  Simon Josefsson  <simon@josefsson.org>
25392
25393         * tests/test-version-etc.sh: Use $EXEEXT.
25394
25395 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
25396
25397         update-copyright: update documentation to point to maint.mk
25398         * build-aux/update-copyright: Here.
25399
25400 2009-08-06  Jim Meyering  <meyering@redhat.com>
25401
25402         maint.mk: support update-copyright-local
25403         * top/maint.mk (update-copyright-local): Define place-holder.
25404         (update-copyright): Depend on $(update-copyright-local).
25405
25406 2009-08-06  Jim Meyering  <meyering@redhat.com>
25407
25408         selinux-at: new module
25409         Initially written for coreutils, this module will soon be
25410         used by findutils, too.
25411         * MODULES.html.sh [Misc]: Add selinux-at.
25412         * lib/selinux-at.h: New file, from coreutils.
25413         * lib/selinux-at.c: Likewise.
25414         * modules/selinux-at: Likewise.
25415         (License): Change from LGPL to GPL, since it depends
25416         on the GPL'd openat module.
25417
25418         doc: update README
25419         * README: Remove references to cogito.
25420         Remove cvs-repo-updating instructions from 2007.
25421         Don't imply that CVS is better if you have limited disk space.
25422
25423 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25424
25425         update-copyright: support C-style comments
25426         * build-aux/update-copyright: Implement and document.
25427         * tests/test-update-copyright.sh: Test.
25428
25429 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25430
25431         update-copyright: support omitted "(C)"
25432         * build-aux/update-copyright: Implement and document.  Also,
25433         allow variable whitespace before "(C)".
25434         * tests/test-update-copyright.sh: Test.
25435
25436 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25437
25438         update-copyright: don't trip on non-FSF copyright statements
25439         * build-aux/update-copyright: Fix so that the first correctly
25440         formatted FSF copyright statement is recognized no matter what
25441         appears before it.  Update documentation.
25442         * tests/test-update-copyright.sh: Test that.
25443
25444 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25445
25446         update-copyright: clean up code a little
25447         * build-aux/update-copyright: Append "_re" to the name of any
25448         variable holding a regular expression.
25449         Replace "old" and "new" with "stmt" in variable names.
25450         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
25451         handled correctly.
25452         Format code more consistently.
25453
25454 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25455
25456         update-copyright-tests: improve portability
25457         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
25458         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
25459
25460 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
25461
25462         update-copyright: support @copyright{} and &copy;
25463         * build-aux/update-copyright: Implement and document.
25464         * tests/test-update-copyright.sh: Test.
25465
25466 2009-08-04  Jim Meyering  <meyering@redhat.com>
25467
25468         update-copyright-tests: correctly test EOL=\r\n handling
25469         * tests/test-update-copyright.sh: Put \r at the end of some lines
25470         for the dos-eol tests.  Based on a patch by Joel E. Denny.
25471
25472         maint.mk: make update-copyright exclusion list more configurable
25473         * top/maint.mk (update-copyright): Default to excluding COPYING,
25474         but allow an override, in case someone does want to update that file.
25475
25476         maint.mk: don't update copyright date in COPYING
25477         * top/maint.mk (update-copyright): Exclude COPYING.
25478
25479         maint.mk: add a copyright-updating rule
25480         * top/maint.mk (update-copyright): New rule.
25481         Derived from coreutils/Makefile.am.
25482
25483         update-copyright: rename some variables
25484         * build-aux/update-copyright: Rename a few variables for clarity.
25485         Tweak syntax.  List Joel E. Denny as coauthor.
25486
25487 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
25488
25489         update-copyright: fix bug for 2-digit last year and add tests
25490         * build-aux/update-copyright: Fix bug.
25491         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
25492         specified.
25493         * modules/update-copyright-tests: New
25494         * tests/test-update-copyright.sh: New.
25495
25496 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
25497
25498         update-copyright: handle leading tabs in line prefix
25499         * build-aux/update-copyright: Count leading tabs as 8 spaces
25500         when computing margin.  This helps with the formatting of
25501         ChangeLogs, for example.
25502         Fix documentation a little.
25503
25504 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
25505
25506         update-copyright: support EOL=\r\n
25507         * build-aux/update-copyright: Implement that.
25508
25509 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
25510
25511         update-copyright: automatically format copyright statements
25512         * build-aux/update-copyright: Implement that.
25513         Also, be a little more predictable and safer by always failing
25514         when the full copyright format is not perfectly recognized as an
25515         unbroken whole.  Discussed at
25516         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
25517         Rewrite documentation.
25518
25519 2009-08-03  Bruno Haible  <bruno@clisp.org>
25520
25521         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
25522
25523 2009-08-02  Bruno Haible  <bruno@clisp.org>
25524
25525         Tests for module 'uname'.
25526         * modules/uname-tests: New file.
25527         * tests/test-uname.c: New file.
25528
25529         New module 'uname'.
25530         * lib/uname.c: New file.
25531         * m4/uname.m4: New file.
25532         * modules/uname: New file.
25533         * doc/posix-functions/uname.texi: Mention the new module.
25534
25535 2009-08-02  Bruno Haible  <bruno@clisp.org>
25536
25537         Tests for module 'sys_utsname'.
25538         * modules/sys_utsname-tests: New file.
25539         * tests/test-sys_utsname.c: New file.
25540
25541         New module 'sys_utsname'.
25542         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
25543         * m4/sys_utsname_h.m4: New file.
25544         * modules/sys_utsname: New file.
25545         * doc/posix-headers/sys_utsname.texi: Mention the new module.
25546
25547 2009-08-02  Bruno Haible  <bruno@clisp.org>
25548
25549         Implicitly initialize the sockets library.
25550         * lib/gethostname.c: Include sockets.h.
25551         (rpl_gethostname): Invoke gl_sockets_startup.
25552         * lib/socket.c: Include sockets.h.
25553         (rpl_socket): Invoke gl_sockets_startup.
25554         * modules/gethostname (Depends-on): Add sockets.
25555         * modules/socket (Depends-on): Likewise.
25556         * tests/test-poll.c: Don't include sockets.h.
25557         (main): Don't invoke gl_sockets_startup.
25558         * tests/test-select.c: Don't include sockets.h.
25559         (main): Don't invoke gl_sockets_startup.
25560
25561 2009-08-02  Bruno Haible  <bruno@clisp.org>
25562
25563         Allow multiple calls to gl_sockets_startup.
25564         * lib/sockets.c (initialized_sockets_version): New variable.
25565         (gl_sockets_startup): Do nothing if already called for this or a higher
25566         version.
25567         (gl_sockets_cleanup): Reset initialized_sockets_version.
25568
25569 2009-08-03  Simon Josefsson  <simon@josefsson.org>
25570
25571         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
25572         different project/version.
25573
25574 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
25575             Bruno Haible  <bruno@clisp.org>
25576
25577         Tests for module 'pipe-filter-gi'.
25578         * modules/pipe-filter-gi-tests: New file.
25579         * tests/test-pipe-filter-gi1.sh: New file.
25580         * tests/test-pipe-filter-gi1.c: New file.
25581         * tests/test-pipe-filter-gi2.sh: New file.
25582         * tests/test-pipe-filter-gi2-main.c: New file.
25583         * tests/test-pipe-filter-gi2-child.c: New file.
25584
25585         New module 'pipe-filter-gi'.
25586         * lib/pipe-filter-gi.c: New file.
25587         * modules/pipe-filter-gi: New file.
25588
25589 2009-08-02  Bruno Haible  <bruno@clisp.org>
25590             Paolo Bonzini  <bonzini@gnu.org>
25591
25592         Tests for module 'pipe-filter-ii'.
25593         * modules/pipe-filter-ii-tests: New file.
25594         * tests/test-pipe-filter-ii1.sh: New file.
25595         * tests/test-pipe-filter-ii1.c: New file.
25596         * tests/test-pipe-filter-ii2.sh: New file.
25597         * tests/test-pipe-filter-ii2-main.c: New file.
25598         * tests/test-pipe-filter-ii2-child.c: New file.
25599
25600         New module 'pipe-filter-ii'.
25601         * lib/pipe-filter.h: New file.
25602         * lib/pipe-filter-ii.c: New file.
25603         * lib/pipe-filter-aux.h: New file.
25604         * modules/pipe-filter-ii: New file.
25605
25606 2009-08-02  Simon Josefsson  <simon@josefsson.org>
25607
25608         * lib/gc-libgcrypt.c: Change copyright to FSF.
25609         * lib/gc-gnulib.c: Likewise.
25610
25611 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
25612
25613         * lib/gethostname.c: Include limits.h.
25614
25615 2009-08-02  Simon Josefsson  <simon@josefsson.org>
25616             Bruno Haible  <bruno@clisp.org>
25617
25618         Ensure HOST_NAME_MAX as part of the gethostname module.
25619         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
25620         define also HOST_NAME_MAX.
25621         * tests/test-gethostname.c: Include <limits.h>.
25622         (main): Check also HOST_NAME_MAX.
25623         * doc/posix-headers/limits.texi: Document the mingw problem.
25624
25625 2009-08-02  Bruno Haible  <bruno@clisp.org>
25626
25627         * lib/gethostname.c (gethostname): Fix handling of large len argument.
25628         Add comments.
25629
25630 2009-03-31  Simon Josefsson  <simon@josefsson.org>
25631
25632         * lib/gethostname.c: Add Windows wrapper.
25633         * m4/gethostname.m4: Look for gethostname in -lws2_32.
25634         * modules/gethostname: Depend on sys_socket & errno, for also
25635         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
25636         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
25637
25638 2009-07-31  Jim Meyering  <meyering@redhat.com>
25639
25640         getloadavg: fix symbol name in comment
25641         * lib/getloadavg.c: Correct a typo I introduced when adding
25642         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
25643         Matt Kraai spotted the problem.
25644
25645 2009-07-29  Matt Kraai  <mkraai@beckman.com>
25646
25647         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
25648         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
25649         code also if ! defined N_NAME_POINTER.
25650         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
25651         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
25652         but the n_name member is a 12-byte array.
25653
25654 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
25655
25656         update-copyright: generalize comment handling
25657         * build-aux/update-copyright: Handle copyright statements
25658         within more comment styles.
25659         Document usage.
25660         Report any file with an external copyright holder or parse failure.
25661
25662 2009-07-29  Jim Meyering  <meyering@redhat.com>
25663
25664         mktime: correct setting of REPLACE_MKTIME
25665         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
25666
25667         update-copyright: new module
25668         * modules/update-copyright: New file.
25669         * build-aux/update-copyright: New file.
25670         * MODULES.html.sh (maint+release support): Add update-copyright.
25671
25672 2009-07-27  Bruno Haible  <bruno@clisp.org>
25673
25674         Fix compilation error when <ctime> is used and mktime is replaced.
25675         * lib/time.in.h (mktime): New declaration.
25676         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
25677         REPLACE_MKTIME instead of defining mktime in config.h.
25678         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
25679         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
25680         Reported by Ross McFarland <rwmcfa1@neces.com>.
25681
25682 2009-07-27  Bruno Haible  <bruno@clisp.org>
25683
25684         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
25685         Reported by Matt Kraai <mkraai@beckman.com>.
25686
25687 2009-07-25  Jim Meyering  <meyering@redhat.com>
25688
25689         maint.mk: avoid warnings about missing files
25690         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
25691         diagnostic when .prev-version does not exist.
25692         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
25693         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
25694         nonexistent cfg.mk.
25695         Suggestions from Simon Josefsson.
25696
25697 2009-07-25  Bruno Haible  <bruno@clisp.org>
25698
25699         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
25700         defined as macros. Needed on QNX 6.4.1.
25701         Reported by Matt Kraai <mkraai@beckman.com>.
25702
25703 2009-07-23  Jim Meyering  <meyering@redhat.com>
25704
25705         maint.mk: invoke "make dist" with a working value of XZ_OPT
25706         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
25707
25708 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
25709
25710         Make fseeko.c compile on QNX.
25711         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
25712
25713 2009-07-22  Peter Simons  <simons@cryp.to>
25714
25715         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
25716         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
25717         * lib/md4.h: Likewise.
25718         * lib/md5.h: Likewise.
25719         * lib/sha1.h: Likewise.
25720         * lib/sha256.h: Likewise.
25721         * lib/sha512.h: Likewise.
25722
25723         tests-sha1: don't assign literal string to 'char *' variable
25724         * tests/test-sha1.c (main): Declare locals with "const" to match
25725         attributes of the right hand side.
25726
25727 2009-07-21  Eric Blake  <ebb9@byu.net>
25728
25729         dup2: fix more mingw problems
25730         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
25731         fd to itself.
25732         * doc/posix-functions/dup2.texi (dup2): Document the bug.
25733         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
25734         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
25735         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
25736         care of mingw bugs.
25737
25738 2009-07-21  Jim Meyering  <meyering@redhat.com>
25739
25740         vc-list-files: avoid failure when /bin/sh is dash
25741         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
25742         On some Debian based systems, /bin/sh is a symlink to dash, and running
25743         this command would omit the "/" following each 'tests' prefix:
25744           dash -x build-aux/vc-list-files -C . tests
25745         That is because bash and dash work differently:
25746           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
25747           bash ok
25748           dash odd
25749
25750 2009-07-21  Eric Blake  <ebb9@byu.net>
25751
25752         dup2-tests: test previous patch
25753         * modules/dup2-tests: New file.
25754         * tests/test-dup2.c: Likewise.
25755         * tests/test-open.c (main): Avoid unspecified behavior.
25756         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
25757         test.
25758
25759         dup2: work around mingw and cygwin 1.5 bug
25760         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
25761         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25762         * modules/unistd (Makefile.am): Substitute it.
25763         * lib/unistd.in.h (dup2): Declare the replacement.
25764         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
25765         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
25766         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
25767         * modules/execute (Depends-on): Add dup2.
25768         * modules/fseterr (Depends-on): Likewise.
25769         * modules/pipe (Depends-on): Likewise.
25770         * modules/posix_spawn-internal (Depends-on): Likewise.
25771
25772 2009-07-21  Bruno Haible  <bruno@clisp.org>
25773
25774         * modules/.gitattributes: New file.
25775
25776 2009-07-20  Bruno Haible  <bruno@clisp.org>
25777
25778         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
25779         (main): Use it.
25780
25781 2009-07-20  Eric Blake  <ebb9@byu.net>
25782
25783         test-pipe: make a bit more robust.
25784         * tests/test-pipe.c (myerr): Allow error messages regardless of
25785         what we do to stderr.
25786         (test_pipe): Rearrange to avoid deadlock.
25787         (child_main): Try a larger read, to ensure we avoided deadlock.
25788         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
25789         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
25790         if misused.
25791
25792 2009-07-19  Jim Meyering  <meyering@redhat.com>
25793
25794         fts: avoid false-positive cycle-detection
25795         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
25796         for each new command line argument.
25797
25798 2009-07-19  Bruno Haible  <bruno@clisp.org>
25799
25800         Fix build error on mingw with the modules sys_select and unistd.
25801         * modules/acl-tests (Depends-on): Add close.
25802         * modules/binary-io-tests (Depends-on): Likewise.
25803         * modules/closein-tests (Depends-on): Likewise.
25804         * modules/flock-tests (Depends-on): Likewise.
25805         * modules/fsync-tests (Depends-on): Likewise.
25806         * modules/lseek-tests (Depends-on): Likewise.
25807         * modules/pipe-tests (Depends-on): Likewise.
25808         * modules/posix_spawn-tests (Depends-on): Likewise.
25809         * modules/posix_spawnp-tests (Depends-on): Likewise.
25810         * modules/stat-time-tests (Depends-on): Likewise.
25811         * modules/yesno-tests (Depends-on): Likewise.
25812
25813 2009-07-19  Bruno Haible  <bruno@clisp.org>
25814
25815         Unify conditionals.
25816         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
25817         macros, not at the compiler macros.
25818         * lib/pipe.c: Likewise.
25819         * lib/execute.c: Likewise.
25820         * lib/spawni.c: Likewise.
25821
25822 2009-07-19  Bruno Haible  <bruno@clisp.org>
25823
25824         Fix handling of closed stdin/stdout/stderr on mingw.
25825         * lib/w32spawn.h: Include unistd.h.
25826         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
25827         file descriptor with O_NOINHERIT flag.
25828         (fd_safer_noinherit): New function, based on fd-safer.c.
25829         (dup_safer_noinherit): New function, based on dup-safer.c.
25830         (undup_safer_noinherit): New function.
25831         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
25832         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
25833         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
25834         instead of fd_safer.
25835         * tests/test-pipe.c: Include <windows.h>.
25836         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
25837
25838         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
25839         from main.
25840         (test_pipe): Pass an extra argument for disambiguation.
25841         (main): Invoke parent_main or child_main.
25842
25843         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
25844         consistently.
25845
25846 2009-07-18  Eric Blake  <ebb9@byu.net>
25847
25848         test-pipe: fix mingw build
25849         * tests/test-pipe.c (main): Avoid fcntl on mingw.
25850
25851 2009-07-18  Bruno Haible  <bruno@clisp.org>
25852
25853         * modules/pipe-tests (Makefile.am): Fix typo.
25854
25855 2009-07-18  Eric Blake  <ebb9@byu.net>
25856
25857         error: fix mingw build
25858         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
25859         Reported by Bruno Haible.
25860
25861         error: avoid undefined use of stdout
25862         * lib/error.c (error, error_at_line): Check that fd 1 is open
25863         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
25864         is handling faults and the close_stdout module wants to report the
25865         detection of closed stdout as an error.
25866
25867 2009-07-17  Eric Blake  <ebb9@byu.net>
25868
25869         pipe: be robust in face of closed fds
25870         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
25871         should cause child to misbehave.
25872         * modules/pipe-tests: New module.
25873         * tests/test-pipe.c: New file.
25874         * tests/test-pipe.sh: New file.
25875         Reported by Akim Demaille.
25876
25877 2009-07-14  Bruno Haible  <bruno@clisp.org>
25878
25879         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
25880         Reported by anonymous kc.
25881
25882 2009-07-07  Jim Meyering  <meyering@redhat.com>
25883
25884         maint.mk: don't look for translatable strings in *.m4 or *.mk
25885         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
25886         when searching for translatable strings.
25887
25888 2009-07-05  Jim Meyering  <meyering@redhat.com>
25889
25890         remove superfluous parentheses in STREQ definition
25891         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
25892         * lib/getugroups.c (STREQ): Likewise.
25893         * lib/fnmatch.c (STREQ): Likewise.
25894         Spotted by Bruno Haible.
25895
25896 2009-07-04  Jim Meyering  <meyering@redhat.com>
25897
25898         argv-iter: new module
25899         * MODULES.html.sh: Add argv-iter.
25900         * lib/argv-iter.c, lib/argv-iter.h: New files.
25901         * modules/argv-iter: New file.
25902         * modules/argv-iter-tests: New file.
25903         * tests/test-argv-iter.c: Test it.
25904
25905 2009-07-04  Bruno Haible  <bruno@clisp.org>
25906
25907         Fix assertion.
25908         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
25909         contains more exact copies of a given entry than file2, leave the extra
25910         copies unpaired rather than aborting.
25911         Reported by Eric Blake.
25912
25913 2009-07-02  Bruno Haible  <bruno@clisp.org>
25914
25915         Speedup git-merge-changelog for git cherry-pick.
25916         * lib/git-merge-changelog.c (struct entries_mapping): New type.
25917         (entries_mapping_get): New function, extracted from compute_mapping.
25918         (entries_mapping_reverse_get): New function.
25919         (compute_mapping): Add a 'full' argument. Return the result in a
25920         'struct entries_mapping'.
25921         (main): Update. Access the mappings through entries_mapping_get.
25922         Reported by Eric Blake.
25923
25924 2009-07-02  Bruno Haible  <bruno@clisp.org>
25925
25926         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
25927         best_i.
25928
25929 2009-07-02  Bruno Haible  <bruno@clisp.org>
25930
25931         Speed up approximate search for matching ChangeLog entries.
25932         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
25933         argument. Call fstrcmp_bounded instead of fstrcmp.
25934         (compute_mapping, try_split_merged_entry, main): Update callers.
25935
25936 2009-07-02  Bruno Haible  <bruno@clisp.org>
25937
25938         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
25939
25940 2009-06-30  Bruno Haible  <bruno@clisp.org>
25941
25942         Reduce the number of uc_is_cased calls.
25943         * lib/unicase.h (casing_suffix_context_t): Add
25944         'first_char_except_ignorable' field.
25945         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
25946         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
25947         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
25948         Update initializer.
25949         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
25950         case-ignorable characters.
25951         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
25952         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
25953         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
25954         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
25955         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
25956
25957 2009-06-30  Bruno Haible  <bruno@clisp.org>
25958
25959         Tests for module 'unicase/ignorable'.
25960         * modules/unicase/ignorable-tests: New file.
25961         * tests/unicase/test-ignorable.c: New file, generated by
25962         gen-uni-tables.
25963
25964         Tests for module 'unicase/cased'.
25965         * modules/unicase/cased-tests: New file.
25966         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
25967         * tests/unicase/test-predicate-part1.h: New file, derived from
25968         tests/unictype/test-predicate-part1.h.
25969         * tests/unicase/test-predicate-part2.h: New file, same as
25970         tests/unictype/test-predicate-part2.h.
25971
25972         Fix evaluation of "Before C" condition of FINAL_SIGMA.
25973         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
25974         (output_casing_properties): New function.
25975         (main): Call it.
25976         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
25977         * lib/unicase/cased.c: Include unictype/bitmap.h.
25978         (uc_is_cased): Define through a bitmap lookup.
25979         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
25980         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
25981         (uc_is_case_ignorable): Define through a bitmap lookup.
25982         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
25983         lib/unictype/bitmap.h.
25984         (Depends-on): Add inline. Clean up.
25985         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
25986         lib/unictype/bitmap.h.
25987         (Depends-on): Add inline. Clean up.
25988         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
25989         recognition.
25990         * tests/unicase/test-u16-tolower.c (main): Likewise.
25991         * tests/unicase/test-u32-tolower.c (main): Likewise.
25992
25993 2009-06-30  Bruno Haible  <bruno@clisp.org>
25994
25995         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
25996         * lib/unicase/u16-casemap.c: Likewise.
25997         * lib/unicase/u32-casemap.c: Likewise.
25998
25999 2009-06-29  Bruno Haible  <bruno@clisp.org>
26000
26001         Define u32_casefold as a wrapper around u32_ct_casefold.
26002         * lib/unicase/u32-casefold.c: Update.
26003         * modules/unicase/u32-casefold (Depends-on): Add
26004         unicase/u32-ct-casefold, unicase/empty-prefix-context,
26005         unicase/empty-suffix-context. Clean up.
26006
26007         Define u16_casefold as a wrapper around u16_ct_casefold.
26008         * lib/unicase/u16-casefold.c: Update.
26009         * modules/unicase/u16-casefold (Depends-on): Add
26010         unicase/u16-ct-casefold, unicase/empty-prefix-context,
26011         unicase/empty-suffix-context. Clean up.
26012
26013         Define u8_casefold as a wrapper around u8_ct_casefold.
26014         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
26015         * lib/unicase/u8-casefold.c: Update.
26016         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
26017         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26018
26019         Define u32_totitle as a wrapper around u32_ct_totitle.
26020         * lib/unicase/u32-totitle.c: Update.
26021         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
26022         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26023
26024         Define u16_totitle as a wrapper around u16_ct_totitle.
26025         * lib/unicase/u16-totitle.c: Update.
26026         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
26027         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26028
26029         Define u8_totitle as a wrapper around u8_ct_totitle.
26030         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
26031         functions.
26032         (FUNC): Delegate to U_CT_TOTITLE.
26033         * lib/unicase/u8-totitle.c: Update.
26034         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
26035         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26036
26037         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
26038         invocation.
26039         * modules/unicase/u32-tolower (Depends-on): Add
26040         unicase/empty-prefix-context, unicase/empty-suffix-context.
26041
26042         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
26043         invocation.
26044         * modules/unicase/u16-tolower (Depends-on): Add
26045         unicase/empty-prefix-context, unicase/empty-suffix-context.
26046
26047         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
26048         * modules/unicase/u8-tolower (Depends-on): Add
26049         unicase/empty-prefix-context, unicase/empty-suffix-context.
26050
26051         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
26052         invocation.
26053         * modules/unicase/u32-toupper (Depends-on): Add
26054         unicase/empty-prefix-context, unicase/empty-suffix-context.
26055
26056         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
26057         invocation.
26058         * modules/unicase/u16-toupper (Depends-on): Add
26059         unicase/empty-prefix-context, unicase/empty-suffix-context.
26060
26061         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
26062         * modules/unicase/u8-toupper (Depends-on): Add
26063         unicase/empty-prefix-context, unicase/empty-suffix-context.
26064
26065         New module 'unicase/u32-ct-casefold'.
26066         * lib/unicase/u32-ct-casefold.c: New file.
26067         * modules/unicase/u32-ct-casefold: New file.
26068
26069         New module 'unicase/u16-ct-casefold'.
26070         * lib/unicase/u16-ct-casefold.c: New file.
26071         * modules/unicase/u16-ct-casefold: New file.
26072
26073         New module 'unicase/u8-ct-casefold'.
26074         * lib/unicase/u8-ct-casefold.c: New file.
26075         * lib/unicase/u-ct-casefold.h: New file, derived from
26076         lib/unicase/u-casefold.h.
26077         * modules/unicase/u8-ct-casefold: New file.
26078
26079         New module 'unicase/u32-ct-totitle'.
26080         * lib/unicase/u32-ct-totitle.c: New file.
26081         * modules/unicase/u32-ct-totitle: New file.
26082
26083         New module 'unicase/u16-ct-totitle'.
26084         * lib/unicase/u16-ct-totitle.c: New file.
26085         * modules/unicase/u16-ct-totitle: New file.
26086
26087         New module 'unicase/u8-ct-totitle'.
26088         * lib/unicase/u8-ct-totitle.c: New file.
26089         * lib/unicase/u-ct-totitle.h: New file, derived from
26090         lib/unicase/u-totitle.h.
26091         * modules/unicase/u8-ct-totitle: New file.
26092
26093         New module 'unicase/u32-ct-tolower'.
26094         * lib/unicase/u32-ct-tolower.c: New file.
26095         * modules/unicase/u32-ct-tolower: New file.
26096
26097         New module 'unicase/u16-ct-tolower'.
26098         * lib/unicase/u16-ct-tolower.c: New file.
26099         * modules/unicase/u16-ct-tolower: New file.
26100
26101         New module 'unicase/u8-ct-tolower'.
26102         * lib/unicase/u8-ct-tolower.c: New file.
26103         * modules/unicase/u8-ct-tolower: New file.
26104
26105         New module 'unicase/u32-ct-toupper'.
26106         * lib/unicase/u32-ct-toupper.c: New file.
26107         * modules/unicase/u32-ct-toupper: New file.
26108
26109         New module 'unicase/u16-ct-toupper'.
26110         * lib/unicase/u16-ct-toupper.c: New file.
26111         * modules/unicase/u16-ct-toupper: New file.
26112
26113         New module 'unicase/u8-ct-toupper'.
26114         * lib/unicase/u8-ct-toupper.c: New file.
26115         * modules/unicase/u8-ct-toupper: New file.
26116
26117         Add context arguments to u*_casemap functions.
26118         * lib/unicase/unicasemap.h: Include unicase.h.
26119         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
26120         suffix_context arguments.
26121         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
26122         functions.
26123         (FUNC): Add prefix_context and suffix_context arguments. Use
26124         uc_is_cased and uc_is_case_ignorable.
26125         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
26126         * lib/unicase/u16-casemap.c: Likewise.
26127         * lib/unicase/u32-casemap.c: Likewise.
26128         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
26129         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
26130         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
26131         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
26132         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
26133         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
26134
26135         New module 'unicase/u32-suffix-context'.
26136         * lib/unicase/u32-suffix-context.c: New file.
26137         * modules/unicase/u32-suffix-context: New file.
26138
26139         New module 'unicase/u16-suffix-context'.
26140         * lib/unicase/u16-suffix-context.c: New file.
26141         * modules/unicase/u16-suffix-context: New file.
26142
26143         New module 'unicase/u8-suffix-context'.
26144         * lib/unicase/u8-suffix-context.c: New file.
26145         * lib/unicase/u-suffix-context.h: New file.
26146         * modules/unicase/u8-suffix-context: New file.
26147
26148         New module 'unicase/empty-suffix-context'.
26149         * lib/unicase/empty-suffix-context.c: New file.
26150         * modules/unicase/empty-suffix-context: New file.
26151
26152         New module 'unicase/u32-prefix-context'.
26153         * lib/unicase/u32-prefix-context.c: New file.
26154         * modules/unicase/u32-prefix-context: New file.
26155
26156         New module 'unicase/u16-prefix-context'.
26157         * lib/unicase/u16-prefix-context.c: New file.
26158         * modules/unicase/u16-prefix-context: New file.
26159
26160         New module 'unicase/u8-prefix-context'.
26161         * lib/unicase/u8-prefix-context.c: New file.
26162         * lib/unicase/u-prefix-context.h: New file.
26163         * lib/unicase/context.h: New file.
26164         * modules/unicase/u8-prefix-context: New file.
26165
26166         New module 'unicase/empty-prefix-context'.
26167         * lib/unicase/empty-prefix-context.c: New file.
26168         * modules/unicase/empty-prefix-context: New file.
26169
26170         New module 'unicase/ignorable'.
26171         * lib/unicase/ignorable.c: New file.
26172         * modules/unicase/ignorable: New file.
26173
26174         New module 'unicase/cased'.
26175         * lib/unicase/caseprop.h: New file.
26176         * lib/unicase/cased.c: New file.
26177         * modules/unicase/cased: New file.
26178
26179         New functions for case mapping of substrings.
26180         * lib/unicase.h (casing_prefix_context_t): New type.
26181         (unicase_empty_prefix_context): New variable.
26182         (u8_casing_prefix_context, u16_casing_prefix_context,
26183         u32_casing_prefix_context, u8_casing_prefixes_context,
26184         u16_casing_prefixes_context, u32_casing_prefixes_context): New
26185         declarations.
26186         (casing_suffix_context_t): New type.
26187         (unicase_empty_suffix_context): New variable.
26188         (u8_casing_suffix_context, u16_casing_suffix_context,
26189         u32_casing_suffix_context, u8_casing_suffixes_context,
26190         u16_casing_suffixes_context, u32_casing_suffixes_context,
26191         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
26192         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
26193         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
26194         declarations.
26195
26196 2009-06-28  Jim Meyering  <meyering@redhat.com>
26197
26198         boostrap: indent only with spaces
26199         * build-aux/bootstrap: Indent only with spaces, never TABs.
26200
26201         bootstrap: split long lines
26202         * build-aux/bootstrap: Keep line length < 80.
26203
26204         bootstrap: sync from coreutils
26205         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
26206         just as autoreconf does.  Verify a list of prerequisite
26207         package-name,version-number pairs if defined in bootstrap.conf.
26208         Refer to README-prereq, if prerequisites are not satisfied.
26209
26210 2009-06-27  Eric Blake  <ebb9@byu.net>
26211
26212         tests: add test for bogus NULL definition
26213         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
26214         * tests/test-stdlib.c: Likewise.
26215         * tests/test-string.c: Likewise.
26216         * tests/test-locale.c: Likewise.
26217         * tests/test-unistd.c: Likewise.
26218         * modules/stdio-tests (Depends-on): Add verify.
26219         * modules/stdlib-tests (Depends-on): Likewise.
26220         * modules/string-tests (Depends-on): Likewise.
26221         * modules/locale-tests (Depends-on): Likewise.
26222         * modules/unistd-tests (Depends-on): Likewise.
26223
26224 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
26225
26226         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
26227         self-explaining comment.
26228         * m4/selinux-selinux-h: Update serial.
26229         (gl_LIBSELINUX): New macro, adding a warning for missing development
26230         packages to code extracted from...
26231         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
26232         Add warning for missing development packages here, too.
26233
26234 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
26235
26236         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
26237
26238 2009-06-25  Eric Blake  <ebb9@byu.net>
26239
26240         version-etc: fix regression
26241         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
26242         gcc.
26243         (version_etc): Use it, to catch bugs with trailing NULL.
26244         * lib/version-etc.c (version_etc_arn): Delete unused argument.
26245         (version_etc_va): Fix logic bug.
26246         * modules/version-etc-tests: Add test.
26247         * tests/test-version-etc.c: New file.
26248         * tests/test-version-etc.sh: Likewise.
26249
26250 2009-06-25  Sam Steingold  <sds@gnu.org>
26251
26252         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
26253         mbtowc declaration.
26254
26255 2009-06-25  Eric Blake  <ebb9@byu.net>
26256
26257         fpurge: migrate into <stdio.h>
26258         * lib/fpurge.h: Delete...
26259         * lib/stdio.in.h (fpurge): ...and declare here, instead.
26260         * lib/fpurge.c (fpurge): Change declaring header.
26261         * modules/fpurge (Files): Drop deleted file.
26262         (Depends-on): Add stdio.
26263         (configure.ac): Set witness.
26264         * modules/stdio (Makefile.am): Support fpurge macros.
26265         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26266         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
26267         * lib/fflush.c: Update client.
26268         * tests/test-fpurge.c: Likewise.
26269         * NEWS: Mention the change.
26270
26271 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26272
26273         * lib/argp-version-etc.c (program_authors): Add const
26274         qualifier.
26275         * lib/version-etc.c: Fix typos in the comments.
26276         * modules/argp-version-etc: Depends on version-etc.
26277
26278 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26279
26280         argp-version-etc: new module.
26281
26282         * lib/argp-version-etc.c: New file.
26283         * lib/argp-version-etc.h: New file.
26284         * modules/argp-version-etc: New file.
26285         * modules/argp-version-etc-tests: New file.
26286         * tests/test-argp-version-etc.c: New test.
26287         * tests/test-argp-version-etc-1.sh: New test.
26288
26289 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26290
26291         Provide additional interfaces and documentation for version-etc
26292         module.
26293
26294         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
26295         interfaces.
26296         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
26297         prototypes.
26298
26299 2009-06-24  Bruno Haible  <bruno@clisp.org>
26300
26301         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
26302         HAVE_LIB${NAME} macro.
26303         Reported by Sam Steingold <sds@gnu.org>.
26304
26305 2009-06-23  Simon Josefsson  <simon@josefsson.org>
26306
26307         * modules/hash-tests (test_hash_LDADD): Link to libintl when
26308         needed.
26309
26310 2009-06-21  Bruno Haible  <bruno@clisp.org>
26311
26312         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
26313         work.
26314         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
26315         together with LIB${NAME}, LTLIB${NAME}.
26316         Reported by Sam Steingold <sds@gnu.org>.
26317
26318 2009-06-20  Jim Meyering  <meyering@redhat.com>
26319
26320         tests: make sc_require_test_exit_idiom more generic
26321         * top/maint.mk (Exit_witness_file): New overridable variable.
26322         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
26323         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
26324
26325 2009-06-19  Jim Meyering  <meyering@redhat.com>
26326
26327         hash: reverse order of src/dst parameters in an internal interface
26328         * lib/hash.c (transfer_entries): Reverse order of parameters to
26329         put DST before SRC.  Adjust callers.
26330
26331         tests: test-hash: avoid wholesale duplication
26332         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
26333         Instead, use a loop and add a single conditional.
26334
26335         tests: test-hash: allow seed selection via a command line argument
26336         * tests/test-hash.c (get_seed): New function.
26337         (main): Use it.
26338
26339 2009-06-19  Eric Blake  <ebb9@byu.net>
26340
26341         hash: avoid memory leak on allocation failure
26342         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
26343         failure.  Factor repeated algorithm...
26344         (transfer_entries): ...into new helper routine.
26345         (hash_delete): React to hash_rehash return value.
26346
26347         hash: reduce memory pressure in hash_rehash no-op case
26348         * lib/hash.c (next_prime): Avoid overflow.
26349         (hash_initialize): Factor bucket size computation...
26350         (compute_bucket_size): ...into new helper function.
26351         (hash_rehash): Use new function and open coding to reduce memory
26352         pressure, and avoid a memory leak in USE_OBSTACK code.
26353         Reported by Jim Meyering.
26354
26355 2009-06-18  Eric Blake  <ebb9@byu.net>
26356
26357         hash: make rotation more obvious
26358         * modules/hash (Depends-on): Add bitrotate and stdint.
26359         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
26360         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
26361         (SIZE_MAX): Rely on headers for definition.
26362         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
26363         (raw_hasher): Use rotr_sz.
26364         Suggested by Jim Meyering.
26365
26366         hash: fix memory leak in last patch
26367         * lib/hash.c (hash_rehash): Avoid memory leak.
26368
26369         hash: avoid no-op rehashing
26370         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
26371
26372         hash: provide default callback functions
26373         * lib/hash.c (raw_hasher, raw_comparator): New functions.
26374         (hash_initialize): Use them as defaults.
26375         * tests/test-hash.c (main): Test this.
26376
26377         hash: minor optimization
26378         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
26379         when possible.
26380         (hash_initialize): Document this promise.
26381         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
26382         * tests/test-hash.c (hash_compare_strings): Test this.
26383
26384 2009-06-18  Bruno Haible  <bruno@clisp.org>
26385
26386         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
26387         going to be replaced anyway.
26388
26389 2009-06-18  Bruno Haible  <bruno@clisp.org>
26390
26391         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
26392         in one place.
26393         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
26394         be replaced anyway.
26395
26396 2009-06-18  Eric Blake  <ebb9@byu.net>
26397
26398         hash: check for resize before insertion
26399         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
26400         threshold before insertion, so that a pathological hash_rehash
26401         that fills every bucket can still trigger another rehash.
26402
26403 2009-06-18  Jim Meyering  <meyering@redhat.com>
26404
26405         hash-tests: add a loop around the small tests
26406         * tests/test-hash.c (main): Repeat small tests with selected
26407         small initial table sizes.
26408
26409 2009-06-17  Eric Blake  <ebb9@byu.net>
26410
26411         hash: minor cleanups
26412         * lib/hash.h (hash_entry): Make opaque, by moving...
26413         * lib/hash.c (hash_entry): ...here.
26414         (hash_insert): Clarify restrictions on what can be inserted.
26415         (hash_get_next): Clarify when it is safe to remove an element
26416         during traversal.
26417         (check_tuning): Skip verification when tuning is known safe.
26418         (hash_initialize): Clarify restrictions on tuning.
26419
26420 2009-06-17  Jim Meyering  <jim@meyering.net>
26421         and Eric Blake  <ebb9@byu.net>
26422
26423         hash-tests: new module
26424         * modules/hash-tests: New file.
26425         * tests/test-hash.c: New file.
26426
26427 2009-06-17  Eric Blake  <ebb9@byu.net>
26428
26429         strstr-simple: document new module
26430         * MODULES.html.sh: Document new module.
26431
26432         strstr, strcasestr: replace on platforms with broken memchr
26433         * modules/strstr: Split into...
26434         * modules/strstr-simple: ...new module that does not care about
26435         performance, but does care about glibc bug.
26436         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
26437         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
26438         if platform memchr is broken, per Debian bug 521737.
26439         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
26440         memchr.
26441         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
26442         * doc/posix-functions/strstr.texi (strstr): Document the fix.
26443         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
26444         * modules/mountlist (Depends-on): Add strstr-simple.
26445         * modules/gen-uni-tables (Depends-on): Likewise.
26446         * modules/argz (Depends-on): Add strstr.
26447
26448 2009-06-17  Bruno Haible  <bruno@clisp.org>
26449
26450         * modules/posix_spawn-internal (Depends-on): Add errno.
26451
26452 2009-06-17  Bruno Haible  <bruno@clisp.org>
26453
26454         Define missing ESTALE on Interix 3.5.
26455         * lib/errno.in.h (ESTALE): Assign a value if missing.
26456         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
26457         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
26458         missing.
26459         * doc/posix-headers/errno.texi: Mention the Interix bug.
26460         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
26461
26462 2009-06-15  Eric Blake  <ebb9@byu.net>
26463
26464         memchr, memchr2: add valgrind exception
26465         * lib/memchr.valgrind: New file.
26466         * lib/memchr2.valgrind: New file.
26467         * modules/memchr (Files): Distribute valgrind file.
26468         * modules/memchr2 (Files): Likewise.
26469
26470         docs: memchr is no longer obsolete
26471         * MODULES.html.sh: Move memchr from obsolete to string.h section.
26472         * lib/string.in.h (memchr): Simplify logic.
26473
26474 2009-06-14  Jim Meyering  <meyering@redhat.com>
26475
26476         link-follow: fix the "checking..." message to not mention trailing slash
26477         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
26478         never considered trailing slashes.
26479
26480 2009-06-14  Bruno Haible  <bruno@clisp.org>
26481
26482         * m4/memchr.m4: Mention also the bug on IA-64.
26483         * doc/posix-functions/memchr.texi: Likewise.
26484
26485 2009-06-12  Eric Blake  <ebb9@byu.net>
26486
26487         memchr: detect broken x86_64 and alpha implementations
26488         * modules/memchr-tests (Depends-on): Move mmap detection...
26489         * modules/memchr (Depends-on): ...here.
26490         (configure.ac): Set indicator.
26491         * lib/string.in.h (memchr): Declare replacement.
26492         * modules/string (Makefile.am): Trigger replacement.
26493         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
26494         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
26495         bugs.
26496         * doc/posix-functions/memchr.texi (memchr): Document the bug.
26497         * modules/getpagesize (License): Relax license.
26498
26499 2009-06-11  Bruno Haible  <bruno@clisp.org>
26500
26501         * lib/idpriv.h: Add more references.
26502
26503 2009-06-08  Bruno Haible  <bruno@clisp.org>
26504
26505         Tests for module 'idpriv-droptemp'.
26506         * modules/idpriv-droptemp-tests: New file.
26507         * tests/test-idpriv-droptemp.sh: New file.
26508         * tests/test-idpriv-droptemp.su.sh: New file.
26509         * tests/test-idpriv-droptemp.c: New file.
26510
26511         New module 'idpriv-droptemp'.
26512         * lib/idpriv-droptemp.c: New file.
26513         * modules/idpriv-droptemp: New file.
26514
26515 2009-06-08  Bruno Haible  <bruno@clisp.org>
26516
26517         Tests for module 'idpriv-drop'.
26518         * modules/idpriv-drop-tests: New file.
26519         * tests/test-idpriv-drop.sh: New file.
26520         * tests/test-idpriv-drop.su.sh: New file.
26521         * tests/test-idpriv-drop.c: New file.
26522
26523         New module 'idpriv-drop'.
26524         * lib/idpriv.h: New file.
26525         * lib-idpriv-drop.c: New file.
26526         * m4/idpriv.m4: New file.
26527         * modules/idpriv-drop: New file.
26528
26529 2009-06-08  Bruno Haible  <bruno@clisp.org>
26530
26531         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
26532         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26533         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26534         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26535         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26536         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26537         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26538
26539 2009-06-08  Eric Blake  <ebb9@byu.net>
26540
26541         test-strstr: use memory fence, when possible
26542         * tests/test-strstr.c (main): Use memory fence, in order to be
26543         more likely to trigger Debian bug 521737.
26544         * modules/strstr-tests (Files): Pull in additional files.
26545
26546         memchr: no longer obsolete, for wider field testing
26547         * modules/memchr (Status, Notice): Delete, this module is no
26548         longer obsolete.
26549         * modules/vasnprintf (Depends-on): Add memchr.
26550
26551 2009-06-07  Jim Meyering  <meyering@redhat.com>
26552
26553         hash: declare some functions with the warn_unused_result attribute
26554         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
26555
26556 2009-06-07  Bruno Haible  <bruno@clisp.org>
26557
26558         * tests/test-alignof.c: Don't test int64_t if it does not exist.
26559         Reported by Eric Blake.
26560
26561 2009-06-06  Eric Blake  <ebb9@byu.net>
26562
26563         test-alignof: fix typo with long double
26564         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
26565         compiler error.
26566
26567 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
26568
26569         Escape non-texinfo { and }s.
26570         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
26571         markup error.
26572
26573 2009-06-04  Jim Meyering  <meyering@redhat.com>
26574
26575         gitlog-to-changelog: don't infloop on an empty commit log
26576         * build-aux/gitlog-to-changelog: Warn about an empty log message.
26577         Reported by Boris Petersen <transacid@centerim.org>.
26578
26579 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
26580
26581         version-etc: extend for packagers
26582         Add three new configure options, intended for packagers:
26583           --with-packager="packager name"
26584           --with-packager-version="packager-specific version"
26585           --with-packager-bug-reports="packager bug reporting"
26586         An example with coreutils:
26587           $ ./configure \
26588             --with-packager=Gentoo \
26589             --with-packager-bug-report=http://bugs.gentoo.org/ \
26590             --with-packager-version="patchset 1.6"
26591           $ ./src/ls --version | head -n2
26592           ls (GNU coreutils) 7.1-dirty
26593           Packaged by Gentoo (patchset 1.6)
26594         Note that the bug reporting info via --help doesn't show up because
26595         coreutils uses its own custom emit_bug_reporting_address() implementation
26596         in src/system.h.  If it didn't, it'd look like:
26597           $ ./src/ls --help | tail -n4
26598           Report bugs to <bug-coreutils@gnu.org>.
26599           Report Gentoo bugs to <http://bugs.gentoo.org/>.
26600           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
26601           General help using GNU software: <http://www.gnu.org/gethelp/>.
26602         * lib/version-etc.c: Print new information, if provided.
26603         * m4/version-etc.m4: New file.
26604         * modules/version-etc (Files): Add m4/version-etc.m4.
26605         (configure.ac): Add gl_VERSION_ETC.
26606
26607 2009-05-31  Bruno Haible  <bruno@clisp.org>
26608
26609         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
26610         and 'int64_t'.
26611         * modules/alignof-tests (Dependencies): Add stdint.
26612         Reported by Eric Blake.
26613
26614 2009-05-31  Bruno Haible  <bruno@clisp.org>
26615
26616         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
26617         restriction due to compiler bugs.
26618         Reported by Eric Blake.
26619
26620 2009-05-31  Simon Josefsson  <simon@josefsson.org>
26621             Bruno Haible  <bruno@clisp.org>
26622
26623         Fix test-alignof failure.
26624         * lib/alignof.h (alignof_slot): New macro.
26625         (alignof_type): New macro, with the same semantics as the previous
26626         'alignof'.
26627         (alignof): Alias to alignof_slot.
26628         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
26629         check that the results are usable as constant expressions.
26630
26631 2009-05-31  Bruno Haible  <bruno@clisp.org>
26632
26633         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
26634         * tests/test-memchr.c (main): Check that memchr does not read past the
26635         first occurrence of the byte.
26636         * tests/test-strstr.c (main): Update comment.
26637         Suggested by Eric Blake.
26638
26639 2009-05-30  Bruno Haible  <bruno@clisp.org>
26640
26641         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
26642         detail how to use dumpbin.
26643         Reported by David Byron <dbyron@dbyron.com>.
26644
26645 2009-06-02  Simon Josefsson  <simon@josefsson.org>
26646
26647         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
26648
26649 2009-06-02  Simon Josefsson  <simon@josefsson.org>
26650
26651         * m4/manywarnings.m4: Add GCC 4.4 warnings.
26652
26653 2009-05-28  Bruno Haible  <bruno@clisp.org>
26654
26655         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
26656         build-aux/ files.
26657
26658 2009-05-28  Simon Josefsson  <simon@josefsson.org>
26659
26660         * gnulib-tool (func_import): Transform license on build-aux/ files too.
26661
26662 2009-05-27  Simon Josefsson  <simon@josefsson.org>
26663
26664         * gnulib-tool (sed_transform_main_lib_file)
26665         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
26666         regexps.
26667
26668 2009-05-26  Simon Josefsson  <simon@josefsson.org>
26669
26670         * tests/test-strstr.c: Add another self-test.
26671         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
26672         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
26673
26674 2009-05-23  Bruno Haible  <bruno@clisp.org>
26675
26676         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
26677         change.
26678
26679 2009-05-21  Bruno Haible  <bruno@clisp.org>
26680
26681         Simplify use of mode_t varargs.
26682         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
26683         uses 'mode_t' or 'int'.
26684         * lib/openat.c (openat): Likewise.
26685         * lib/open-safer.c (open_safer): Likewise.
26686         * m4/mode_t.m4: New file.
26687         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
26688         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
26689         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
26690         * modules/open (Files): Add m4/mode_t.m4.
26691         * modules/openat (Files): Likewise.
26692         * modules/fcntl-safer (Files): Likewise.
26693         Suggested by Eric Blake.
26694
26695 2009-05-21  Pádraig Brady  <P@draigbrady.com>
26696
26697         * doc/glibc-functions/fallocate.texi: New file.
26698         * doc/gnulib.texi: Include it.
26699
26700 2009-05-21  Eric Blake  <ebb9@byu.net>
26701             Bruno Haible  <bruno@clisp.org>
26702
26703         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
26704         invocations.
26705         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26706
26707 2009-05-21  Eric Blake  <ebb9@byu.net>
26708             Bruno Haible  <bruno@clisp.org>
26709
26710         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
26711         include_next. Fix of 2008-11-20 commit.
26712         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
26713         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
26714         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
26715         NEXT_MATH_H.
26716         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
26717         instead of NEXT_MATH_H.
26718
26719 2009-05-21  Bruno Haible  <bruno@clisp.org>
26720
26721         Avoid redefinition warnings for SIZE_MAX.
26722         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
26723         Reported by Simon Josefsson.
26724
26725 2009-05-21  Bruno Haible  <bruno@clisp.org>
26726
26727         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
26728         AC_CACHE_VAL.
26729
26730 2009-05-20  Bruno Haible  <bruno@clisp.org>
26731
26732         Make zeroptr.h work on mingw.
26733         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
26734         mprotect.
26735         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
26736         * modules/memchr2-tests (configure.ac): Likewise.
26737         * modules/memcmp-tests (configure.ac): Likewise.
26738         * modules/memmem-tests (configure.ac): Likewise.
26739         * modules/memrchr-tests (configure.ac): Likewise.
26740         Reported by Simon Josefsson.
26741
26742 2009-05-20  Simon Josefsson  <simon@josefsson.org>
26743
26744         * tests/test-glob.c: Include string.h for strcmp prototype.
26745
26746 2009-05-20  Simon Josefsson  <simon@josefsson.org>
26747
26748         * modules/getdelim (Depends-on): Add explicit stdint, although it
26749         was implicitly already pulled in via realloc-posix.
26750         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
26751
26752 2009-05-20  Simon Josefsson  <simon@josefsson.org>
26753
26754         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
26755         G. Christensen" <tgc@jupiterrise.com>.
26756         * m4/sys_socket_h.m4: Check for sa_family_t.
26757         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
26758         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
26759         * tests/test-sys_socket.c: Check that sa_family_t works.
26760
26761 2009-05-18  Eric Blake  <ebb9@byu.net>
26762
26763         maint.mk: allow gnulib_dir in VPATH build
26764         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
26765
26766 2009-05-15  Jim Meyering  <meyering@redhat.com>
26767
26768         maint.mk: Give gnulib_dir a default definition.
26769         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
26770         Thus, most packages no longer need to specify this variable in cfg.mk
26771
26772 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
26773
26774         rename.m4: fix typos that would make non-mingw cross-configure fail
26775         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
26776
26777 2009-05-13  Eric Blake  <ebb9@byu.net>
26778
26779         mmap-anon: avoid out-of-order autoconf expansion
26780         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
26781         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
26782         * modules/memchr-tests (Depends-on): Add extensions.
26783         * modules/memchr2-tests (Depends-on): Add extensions.
26784         * modules/memcmp-tests (Depends-on): Add extensions.
26785         * modules/memmem-tests (Depends-on): Add extensions.
26786         * modules/memrchr-tests (Depends-on): Add extensions.
26787
26788 2009-05-13  Bruno Haible  <bruno@clisp.org>
26789
26790         Make some tests ISO C 99 compliant.
26791         * tests/zerosize-ptr.h: New file.
26792         * tests/test-memchr.c: Include zerosize-ptr.h.
26793         (main): Use a zero-size object pointer instead of NULL.
26794         * tests/test-memchr2.c: Include zerosize-ptr.h.
26795         (main): Use a zero-size object pointer instead of NULL.
26796         * tests/test-memcmp.c: Include zerosize-ptr.h.
26797         (main): Use a zero-size object pointer instead of NULL.
26798         * tests/test-memmem.c: Include zerosize-ptr.h.
26799         (main): Use a zero-size object pointer instead of NULL.
26800         * tests/test-memrchr.c: Include zerosize-ptr.h.
26801         (main): Use a zero-size object pointer instead of NULL.
26802         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
26803         m4/mmap-anon.m4.
26804         (Depends-on): Add getpagesize.
26805         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26806         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
26807         m4/mmap-anon.m4.
26808         (Depends-on): Add getpagesize.
26809         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26810         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
26811         m4/mmap-anon.m4.
26812         (Depends-on): Add getpagesize.
26813         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26814         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
26815         m4/mmap-anon.m4.
26816         (Depends-on): Add getpagesize.
26817         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26818         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
26819         m4/mmap-anon.m4.
26820         (Depends-on): Add getpagesize.
26821         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26822
26823 2009-05-12  Bruno Haible  <bruno@clisp.org>
26824
26825         Tests for module 'alignof'.
26826         * modules/alignof-tests: New file.
26827         * tests/test-alignof.c: New file.
26828
26829 2009-05-12  Bruno Haible  <bruno@clisp.org>
26830
26831         Fix alignof macro.
26832         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
26833         vendor compilers that are always correct.
26834
26835 2009-05-12  Bruno Haible  <bruno@clisp.org>
26836
26837         Make the MAP_ANONYMOUS detection work on HP-UX 11.
26838         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
26839         not whether its fully works.
26840
26841 2009-05-12  Bruno Haible  <bruno@clisp.org>
26842
26843         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
26844
26845 2009-05-12  Jim Meyering  <meyering@redhat.com>
26846
26847         * top/maint.mk: Adjust backslash alignment.
26848
26849 2009-05-11  Simon Josefsson  <simon@josefsson.org>
26850
26851         * top/maint.mk: Make $(srcdir)/build-aux configurable.
26852
26853 2009-05-11  Eric Blake  <ebb9@byu.net>
26854
26855         argp: avoid undefined behavior
26856         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
26857         macros.
26858
26859 2009-05-08  Simon Josefsson  <simon@josefsson.org>
26860
26861         * tests/test-vc-list-files-git.sh: Do git config of user.email and
26862         user.name to prevent git commit from complaining.
26863
26864 2009-05-10  Bruno Haible  <bruno@clisp.org>
26865
26866         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
26867         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
26868         it rewrites every file name only once.
26869         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
26870
26871 2009-05-08  Bruno Haible  <bruno@clisp.org>
26872
26873         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
26874         instead of 'max'.
26875
26876 2009-05-08  Simon Josefsson  <simon@josefsson.org>
26877
26878         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
26879         sockaddr_storage test.
26880
26881 2009-05-07  Simon Josefsson  <simon@josefsson.org>
26882
26883         * modules/sys_socket (Makefile.am): Substitute
26884         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
26885         * m4/sys_socket_h.m4: Check for sockaddr_storage.
26886         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
26887         * tests/test-sys_socket.c: Check sockaddr_storage.
26888
26889 2009-05-08  Bruno Haible  <bruno@clisp.org>
26890
26891         New module 'alignof'.
26892         * lib/alignof.h: New file.
26893         * modules/alignof: New file.
26894
26895 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
26896             Bruno Haible  <bruno@clisp.org>
26897
26898         Fix test-file-has-acl on FreeBSD.
26899         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
26900         mask is implicitly added.
26901         * tests/test-file-has-acl.c: Include <signal.h>.
26902         (main): Terminate the test after 5 seconds.
26903         * modules/acl-tests (configure.ac): Check for alarm function.
26904
26905 2009-05-04  Bruno Haible  <bruno@clisp.org>
26906
26907         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
26908         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
26909         * modules/errno (configure.ac): Drop AC_REQUIRE.
26910         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
26911         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
26912
26913 2009-05-04  Simon Josefsson  <simon@josefsson.org>
26914
26915         * modules/glob-tests: New module.
26916         * tests/test-glob.c: Add.
26917
26918 2009-05-04  Simon Josefsson  <simon@josefsson.org>
26919
26920         * modules/fnmatch-tests: New module.
26921         * tests/test-fnmatch.c: Add.
26922
26923 2009-05-04  Eric Blake  <ebb9@byu.net>
26924
26925         maint: make the new no-submodule-changes rule VPATH-safe
26926         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
26927
26928 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
26929             Bruno Haible  <bruno@clisp.org>
26930
26931         acl: Fix infinite loop on FreeBSD.
26932         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
26933         of return value from acl_get_entry.
26934         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
26935         Likewise.
26936
26937 2009-05-03  Bruno Haible  <bruno@clisp.org>
26938
26939         * lib/acl-internal.h (acl_entries): Clarify return value.
26940         * lib/acl_entries.c (acl_entries): Likewise.
26941
26942 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
26943
26944         Bug fix in acl module.
26945         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
26946
26947 2009-05-03  Bruno Haible  <bruno@clisp.org>
26948
26949         Create gperf-generated file in the source dir, not in the build dir.
26950         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
26951         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
26952         * modules/unicase/locale-language (unicase/locale-languages.h):
26953         Likewise.
26954         * modules/unicase/special-casing (unicase/special-casing-table.h):
26955         Likewise.
26956         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
26957         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
26958         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
26959         Reported by Ralf Wildenhues.
26960
26961 2009-05-03  Bruno Haible  <bruno@clisp.org>
26962
26963         * modules/fnmatch (Description, configure.ac): Taken from
26964         fnmatch-posix.
26965         * modules/fnmatch-posix: Turn into a symbolic reference to the
26966         'fnmatch' module, and deprecate.
26967         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
26968
26969 2009-05-03  Bruno Haible  <bruno@clisp.org>
26970
26971         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
26972         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
26973         Reported by Ralf Wildenhues.
26974
26975 2009-05-04  Simon Josefsson  <simon@josefsson.org>
26976
26977         * m4/fnmatch.m4: Fix fnmatch re-define.
26978
26979 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
26980
26981         priv-set: new module and tests; adapt write-any-file
26982         * lib/priv-set.c: New file.
26983         * lib/priv-set.h: New file.
26984         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
26985         * lib/write-any-file.c: Simplify by using priv-set module.
26986         * m4/priv-set.m4: New file.
26987         * modules/priv-set: New file.
26988         * modules/unlinkdir: Add dependency on priv-set module.
26989         * modules/write-any-file: Likewise.
26990
26991         Tests for module 'priv-set'.
26992         * modules/priv-set-tests: New file.
26993         * tests/test-priv-set.c: New file.
26994
26995 2009-05-03  Jim Meyering  <meyering@redhat.com>
26996             Bruno Haible  <bruno@clisp.org>
26997
26998         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
26999         use the converted UTF-8 variant of the name instead.
27000
27001 2009-05-03  Jim Meyering  <meyering@redhat.com>
27002
27003         tests: tighten some getdate tests
27004         * tests/test-getdate.c (main): Tighten tests: require equality,
27005         not just greater than.  Set TZ envvar to UTC0.
27006
27007 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
27008
27009         getdate: correctly interpret "next monday" when run on a Monday
27010         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
27011         that e.g., "next tues" (when run on a tuesday) results in a date
27012         that is one week in the future, and not today's date.
27013         I.e., add a week when the wday is the same as the current one.
27014         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
27015         and earlier by Martin Bernreuther and Jan Minář.
27016         * tests/test-getdate.c (main): Check that "next DAY" is always in
27017         the future and that "last DAY" is always in the past.
27018
27019 2009-05-02  Jim Meyering  <meyering@redhat.com>
27020
27021         build: ensure that a release build fails when a submodule is unclean
27022         * top/maint.mk (no-submodule-changes): New rule.
27023         (alpha beta major): Depend on it.
27024
27025 2009-05-02  Bruno Haible  <bruno@clisp.org>
27026
27027         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
27028         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
27029         shell variable gl_fnmatch_required to detect which variant is
27030         requested.
27031         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
27032         gl_FUNC_FNMATCH_POSIX.
27033         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
27034         exclude fnmatch-posix.
27035
27036 2009-05-02  Bruno Haible  <bruno@clisp.org>
27037
27038         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
27039         * modules/mbsrtowcs (License): Change to LGPLv2+.
27040         * modules/strnlen1 (License): Likewise.
27041         Reported by Simon Josefsson.
27042
27043 2009-05-02  Bruno Haible  <bruno@clisp.org>
27044
27045         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
27046         "cross".
27047         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
27048         gnulib-tool was called with option --source-base=lib.
27049
27050 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27051
27052         Use automake *-local hooks without commands, for extensibility.
27053         * modules/localcharset (Makefile.am): Rename install-exec-local
27054         rule to install-exec-localcharset, and make it a prerequisite of
27055         install-exec-local.  Likewise, rename the uninstall-local rule to
27056         uninstall-localcharset, and make it a prerequisite of the former.
27057
27058 2009-05-01  Bruno Haible  <bruno@clisp.org>
27059
27060         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
27061         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
27062         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
27063         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
27064         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
27065         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
27066         m4/locale-zh.m4, m4/codeset.m4.
27067
27068         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
27069         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
27070         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
27071         m4/locale-zh.m4.
27072
27073         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
27074         REPLACE_WCRTOMB if mbstate_t must be replaced.
27075         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
27076         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
27077
27078 2009-05-01  Bruno Haible  <bruno@clisp.org>
27079
27080         Avoid compiler warnings when redefining macros defined by <libintl.h>.
27081         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
27082         dngettext, dcngettext, textdomain, bindtextdomain,
27083         bind_textdomain_codeset): Undefine before redefining.
27084
27085 2009-04-30  Bruno Haible  <bruno@clisp.org>
27086
27087         Fix bug introduced on 2009-04-25.
27088         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
27089         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
27090         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
27091         is defined.
27092         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
27093         is defined.
27094         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
27095         is defined.
27096         Reported by Elbert_Pol <elbert.pol@gmail.com>.
27097
27098 2009-04-28  Bruno Haible  <bruno@clisp.org>
27099
27100         Comment tweaks.
27101         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
27102         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
27103         * lib/unicase.h (u*_casexfrm): Likewise.
27104         Reported by Paolo Bonzini.
27105
27106 2009-04-28  Bruno Haible  <bruno@clisp.org>
27107
27108         Fix a compilation error.
27109         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
27110         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
27111         Reported by Jim Meyering.
27112
27113 2009-04-27  Bruno Haible  <bruno@clisp.org>
27114
27115         New module 'libunistring'.
27116         * modules/libunistring: New file.
27117         * m4/libunistring.m4: New file.
27118         * MODULES.html.sh (Unicode string functions): Add it.
27119
27120 2009-04-27  Eric Blake  <ebb9@byu.net>
27121
27122         maint.mk: allow package-specific header to provide <config.h>
27123         * top/maint.mk (sc_require_config_h): New variable.
27124         (sc_require_config_h, sc_require_config_h_first): Use it.
27125
27126 2009-04-27  Simon Josefsson  <simon@josefsson.org>
27127
27128         * top/maint.mk (sc_avoid_if_before_free): Except
27129         useless-if-before-free script.
27130
27131 2009-04-27  Eric Blake  <ebb9@byu.net>
27132
27133         maintainer-makefile: depend on all required helper scripts
27134         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
27135         useless-if-before-free.
27136         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
27137         version, rather than assuming gnulib checkout is available.
27138         Reported by Simen Josefsson.
27139
27140 2009-04-26  Bruno Haible  <bruno@clisp.org>
27141
27142         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
27143         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
27144         "../" or "..".
27145
27146 2009-04-26  Bruno Haible  <bruno@clisp.org>
27147
27148         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
27149         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
27150         AC_LIB_HAVE_LINKFLAGS.
27151
27152 2009-04-26  Bruno Haible  <bruno@clisp.org>
27153
27154         Simplify calling convention of u*_conv_from_encoding.
27155         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
27156         u32_conv_from_encoding): Expect a resultbuf argument and return the
27157         result directly as a pointer.
27158         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
27159         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
27160         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
27161         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
27162         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
27163         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
27164         Update.
27165         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
27166         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
27167         * lib/vasnprintf.c (VASNPRINTF): Update.
27168         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
27169         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
27170         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
27171         * NEWS: Mention the change.
27172
27173 2009-04-26  Bruno Haible  <bruno@clisp.org>
27174
27175         Simplify calling convention of u*_conv_to_encoding.
27176         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
27177         u32_conv_to_encoding): Expect a resultbuf argument and return the
27178         result directly as a pointer.
27179         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
27180         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
27181         freeing scaled_offsets if mem_iconveha failed.
27182         * lib/unicase/u-casexfrm.h (FUNC): Update.
27183         * lib/uninorm/u-normxfrm.h (FUNC): Update.
27184         * lib/vasnprintf.c (VASNPRINTF): Update.
27185         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
27186         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
27187         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
27188         * NEWS: Mention the change.
27189
27190 2009-04-26  Bruno Haible  <bruno@clisp.org>
27191
27192         Avoid test failures on AIX and OSF/1.
27193         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
27194         malloc(0).
27195         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
27196         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
27197         Likewise.
27198         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
27199         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
27200         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
27201         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
27202         * doc/posix-functions/malloc.texi: Document the portability problem
27203         related to malloc(0).
27204
27205 2009-04-26  Bruno Haible  <bruno@clisp.org>
27206
27207         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
27208         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
27209         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
27210
27211 2009-04-25  Bruno Haible  <bruno@clisp.org>
27212
27213         Avoid link error when creating a namespace clean library.
27214         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
27215         as macro with arguments if already defined as an alias.
27216         * lib/signbitf.c (gl_signbitf): Don't undefine.
27217         * lib/signbitd.c (gl_signbitd): Don't undefine.
27218         * lib/signbitl.c (gl_signbitl): Don't undefine.
27219
27220 2009-04-25  Jim Meyering  <meyering@redhat.com>
27221
27222         vc-list-files: fix another quoting bug
27223         * build-aux/vc-list-files: Avoid sed backslash expansion
27224         of pathological directory names.
27225
27226 2009-04-25  Eric Blake  <ebb9@byu.net>
27227
27228         vc-list-files: fix shell quoting error
27229         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
27230         timestamp.
27231
27232 2009-04-25  Jim Meyering  <meyering@redhat.com>
27233
27234         vc-list-files: restore lost functionality with subdir argument
27235         * build-aux/vc-list-files: When given a non-"." sub-directory
27236         argument, substitute the $dir/ prefix back onto each resulting name.
27237         Otherwise, coreutils' root_tests check would fail.
27238
27239 2009-04-24  Eric Blake  <ebb9@byu.net>
27240
27241         vc-list-files: ignore git symlinks
27242         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
27243         than ls-files, to ignore git symlinks.
27244
27245         maint.mk: import improvements from m4
27246         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
27247         (move_if_change): Delete unused macro.
27248         (news-date-check, vc-diff-check): Support VPATH builds.
27249         (announcement): Likewise.  Split --bootstrap-tools list...
27250         (boostrap-tools): ...into separate list, which can be overridden
27251         in cfg.mk.
27252         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
27253         requiring dependency on useless-if-before-free module.
27254         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
27255         Support VPATH builds.
27256
27257 2009-04-24  Jim Meyering  <meyering@redhat.com>
27258
27259         maint.mk: remove coreutils-specific rules and variables
27260         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
27261         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
27262         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
27263
27264         maint.mk: remove obsolete rule
27265         * top/maint.mk (rel-check): Remove rule.
27266         (WGET, WGETFLAGS): Remove now-unused variables.
27267
27268 2009-04-24  Simon Josefsson  <simon@josefsson.org>
27269
27270         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
27271         consistency.
27272
27273         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
27274         '$(PATH_SEPARATOR)' instead of ':'.
27275
27276 2009-04-24  Simon Josefsson  <simon@josefsson.org>
27277
27278         * lib/getopt1.c (main): Use 'const' for static array.
27279
27280 2009-04-24  Simon Josefsson  <simon@josefsson.org>
27281
27282         * top/maint.mk: Sync with coreutils.
27283         * NEWS: Explain incompatibilities.
27284
27285 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27286             Bruno Haible  <bruno@clisp.org>
27287
27288         Fix cross-compilation results.
27289         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
27290         statement, as third argument of AC_TRY_RUN.
27291         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27292         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
27293         Likewise.
27294         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27295         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
27296         Likewise.
27297         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27298         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
27299         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
27300
27301 2009-04-20  Bruno Haible  <bruno@clisp.org>
27302
27303         Avoid test failure on mingw.
27304         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
27305
27306 2009-04-20  Bruno Haible  <bruno@clisp.org>
27307
27308         Avoid compilation error on mingw.
27309         * modules/localename-tests (Depends-on): Add locale.
27310
27311 2009-04-19  Bruno Haible  <bruno@clisp.org>
27312
27313         Support for building a shared library on Windows platforms.
27314         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
27315         (main): Test the presence of UNINORM_NFC here.
27316         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
27317         (main): Test the presence of UNINORM_NFD here.
27318         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
27319         (main): Test the presence of UNINORM_NFKC here.
27320         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
27321         (main): Test the presence of UNINORM_NFKD here.
27322
27323 2009-04-19  Bruno Haible  <bruno@clisp.org>
27324
27325         Avoid a compiler warning.
27326         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
27327         Change type of variable 'sequence'.
27328
27329 2009-04-19  Bruno Haible  <bruno@clisp.org>
27330
27331         * modules/configmake (Makefile.am): When the contents of configmake.h
27332         does not change, arrange to preserve its modification time.
27333
27334 2009-04-17  Simon Josefsson  <simon@josefsson.org>
27335
27336         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
27337         gettext domain.
27338
27339 2009-04-16  Jim Meyering  <meyering@redhat.com>
27340
27341         useless-if-before-free: improve conversion code
27342         * build-aux/useless-if-before-free: Adjust code-in-comment to match
27343         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
27344
27345 2009-04-14  Bruno Haible  <bruno@clisp.org>
27346
27347         * modules/fcntl (Depends-on): Add extensions.
27348         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
27349
27350 2009-04-12  Ben Pfaff  <blp@gnu.org>
27351
27352         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
27353         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
27354
27355 2009-03-20  Ben Pfaff  <blp@gnu.org>
27356
27357         Make rename replace existing destinations on Windows.
27358         * m4/rename.m4: Add test for Mingw.
27359         * lib/rename.c: Add rename replacement that uses MoveFileEx with
27360         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
27361         * doc/posix-functions/rename.texi: Document.
27362
27363 2009-04-10  Bruno Haible  <bruno@clisp.org>
27364
27365         New include file "iconveh.h".
27366         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
27367         * lib/striconveh.h: Include it.
27368         (enum iconv_ilseq_handler): Remove definition.
27369         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
27370         striconveh.h.
27371         * lib/striconveha.c: Include striconveh.h.
27372         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
27373         * modules/striconveh (Files): Add lib/iconveh.h.
27374         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
27375         lib/striconveh.h.
27376
27377 2009-04-10  Bruno Haible  <bruno@clisp.org>
27378
27379         * lib/uniconv.h: Update comment.
27380
27381 2009-04-10  Bruno Haible  <bruno@clisp.org>
27382
27383         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
27384         always.
27385         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
27386         * lib/unistr/u16-mbtouc-aux.c: Likewise.
27387         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
27388         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
27389         "unistring-notinline.h", so that the function gets defined always.
27390         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
27391         * lib/unistr/u8-uctomb.c: Likewise.
27392         * lib/unistr/u16-mbtouc.c: Likewise.
27393         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
27394         * lib/unistr/u16-uctomb.c: Likewise.
27395         * lib/unistr/u32-mbtouc.c: Likewise.
27396         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
27397         * lib/unistr/u32-uctomb.c: Likewise.
27398
27399 2009-04-10  Bruno Haible  <bruno@clisp.org>
27400
27401         Mark 'utime' obsolete.
27402         * modules/utime (Status, Notice): New sections.
27403         Suggested by Jim Meyering.
27404
27405         Fix cross-compile guess for utime test.
27406         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
27407         autoconf.
27408         * doc/posix-functions/utime.texi: Give more precisions.
27409         Reported by Jan <ipif@ymail.com>.
27410
27411 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
27412
27413         filevercmp: correct today's change
27414         * lib/filevercmp.c: Also handle coreutils' test inputs.
27415         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
27416
27417         Fix regression in 'filevercmp' module. Thanks Sven Joachim
27418         for reporting it.
27419         * lib/filevercmp.c: Special handle for "", "." and "..".
27420         * tests/test-filevercmp.c: Enlarge the set suite.
27421
27422 2009-04-07  Jim Meyering  <meyering@redhat.com>
27423
27424         useless-if-before-free: show how to remove braced useless free, too
27425         * build-aux/useless-if-before-free: still only in a comment, though.
27426
27427 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
27428
27429         maint.mk: import changes to syntax-check macros from coreutils
27430         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
27431         Use them in the relevant macros.
27432
27433 2009-04-06  Bruno Haible  <bruno@clisp.org>
27434
27435         Fix unportable use of bit-fields.
27436         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
27437         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
27438         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
27439
27440 2009-04-06  Bruno Haible  <bruno@clisp.org>
27441
27442         Avoid test failures on AIX and OSF/1.
27443         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
27444         that malloc(0) = NULL.
27445         * tests/unicase/test-u8-tolower.c (check): Likewise.
27446         * tests/unicase/test-u8-totitle.c (check): Likewise.
27447         * tests/unicase/test-u8-toupper.c (check): Likewise.
27448         * tests/unicase/test-u16-casefold.c (check): Likewise.
27449         * tests/unicase/test-u16-tolower.c (check): Likewise.
27450         * tests/unicase/test-u16-totitle.c (check): Likewise.
27451         * tests/unicase/test-u16-toupper.c (check): Likewise.
27452         * tests/unicase/test-u32-casefold.c (check): Likewise.
27453         * tests/unicase/test-u32-tolower.c (check): Likewise.
27454         * tests/unicase/test-u32-totitle.c (check): Likewise.
27455         * tests/unicase/test-u32-toupper.c (check): Likewise.
27456         * tests/uninorm/test-u8-nfc.c (check): Likewise.
27457         * tests/uninorm/test-u8-nfd.c (check): Likewise.
27458         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
27459         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
27460         * tests/uninorm/test-u16-nfc.c (check): Likewise.
27461         * tests/uninorm/test-u16-nfd.c (check): Likewise.
27462         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
27463         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
27464         * tests/uninorm/test-u32-nfc.c (check): Likewise.
27465         * tests/uninorm/test-u32-nfd.c (check): Likewise.
27466         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
27467         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
27468
27469 2009-04-05  Bruno Haible  <bruno@clisp.org>
27470
27471         Work around an autoconf limitation.
27472         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
27473         comment line if it would be longer than 3 KB.
27474
27475 2009-04-05  Bruno Haible  <bruno@clisp.org>
27476
27477         Avoid test failure with libiconv-1.13.
27478         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
27479         of the expected test results.
27480
27481 2009-04-05  Bruno Haible  <bruno@clisp.org>
27482
27483         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
27484         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
27485         that it should be installed.
27486
27487 2009-04-05  Bruno Haible  <bruno@clisp.org>
27488
27489         * gnulib-tool: New option --copy-file.
27490         (func_usage): Document it.
27491         (func_dest_tmpfilename): Moved out of func_import.
27492         (func_add_file, func_update_file): New functions, extracted from
27493         func_import.
27494         (func_import): Update.
27495
27496 2009-04-05  Karl Berry  <karl@gnu.org>
27497
27498         * README: prominently mention gnulib-tool.
27499         Rearrange sections so getting the code is near the top.
27500
27501 2009-04-05  Bruno Haible  <bruno@clisp.org>
27502
27503         * lib/unicase.h: Mention u*_cmp2.
27504         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
27505         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
27506         * lib/unicase/ulc-casecmp.c: Likewise.
27507         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
27508         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
27509         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
27510         unistr/u8-cmp.
27511         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
27512         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
27513         unistr/u16-cmp.
27514         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
27515         unistr/u32-cmp.
27516
27517         * lib/uninorm.h: Mention u*_cmp2.
27518         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
27519         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
27520         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
27521         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
27522         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
27523         unistr/u8-cmp.
27524         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
27525         unistr/u16-cmp.
27526         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
27527         unistr/u32-cmp.
27528
27529         New module 'unistr/u32-cmp2'.
27530         * lib/unistr/u32-cmp2.c: New file.
27531         * modules/unistr/u32-cmp2: New file.
27532
27533         New module 'unistr/u16-cmp2'.
27534         * lib/unistr/u16-cmp2.c: New file.
27535         * modules/unistr/u16-cmp2: New file.
27536
27537         New module 'unistr/u8-cmp2'.
27538         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
27539         * lib/unistr/u8-cmp2.c: New file.
27540         * lib/unistr/u-cmp2.h: New file.
27541         * modules/unistr/u8-cmp2: New file.
27542
27543 2009-04-05  Bruno Haible  <bruno@clisp.org>
27544
27545         * lib/unictype.h (uc_property_is_valid): New macro.
27546         * tests/unictype/test-pr_byname.c (main): Use it.
27547
27548         * lib/unistr.h: Doc fixes.
27549         * lib/uniconv.h: Doc fixes.
27550         * lib/unictype.h: Doc fixes.
27551
27552 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
27553
27554         Port coreutils 7.2 to Solaris 8.
27555
27556         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
27557         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
27558         for Solaris 8.  This is a bit of a hack, as it means it's the
27559         caller's responsibility to add -lnsl if needed, but most likely it
27560         won't be needed since only getaddrinfo uses this and getaddrinfo
27561         isn't needed on Solaris 8.
27562
27563         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
27564         problem to Solaris 8 encountered with coreutils 7.2, which
27565         resulted in a message "fnmatch.c:292: warning: passing argument 4
27566         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
27567         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
27568
27569 2009-04-03  Simon Josefsson  <simon@josefsson.org>
27570
27571         * m4/ld-version-script.m4: Add FIXME comment.
27572
27573 2009-04-02  Simon Josefsson  <simon@josefsson.org>
27574
27575         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
27576         SOVERSION variable.
27577
27578 2009-04-02  Bruno Haible  <bruno@clisp.org>
27579
27580         * Makefile (info, html, dvi, pdf): Combine the rules.
27581         Suggested by Jim Meyering.
27582
27583 2009-04-01  Bruno Haible  <bruno@clisp.org>
27584
27585         * Makefile (info, html, dvi, pdf): New targets.
27586         Reported by Reuben Thomas <rrt@sc3d.org>.
27587
27588 2009-04-01  Bruno Haible  <bruno@clisp.org>
27589
27590         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
27591         can be put into PATH.
27592         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
27593
27594 2009-04-01  Bruno Haible  <bruno@clisp.org>
27595
27596         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
27597
27598 2009-04-01  Bruno Haible  <bruno@clisp.org>
27599
27600         Rename module 'visibility'.
27601         * modules/lib-symbol-visibility: Renamed from modules/visibility.
27602         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
27603         * doc/gnulib.texi: Update.
27604         * MODULES.html.sh (Misc): Update.
27605         * NEWS: Mention the change.
27606
27607 2009-04-01  Simon Josefsson  <simon@josefsson.org>
27608
27609         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
27610         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
27611         Eric Blake <ebb9@byu.net> for review.
27612         * MODULES.html.sh: Add lib-msvc-compat.
27613         * doc/gnulib.texi: Link to new section.
27614         * m4/ld-output-def.m4: New file.
27615         * doc/ld-output-def.texi: New file.
27616
27617 2009-04-01  Simon Josefsson  <simon@josefsson.org>
27618
27619         Rename ld-version-script to lib-symbol-versions.  Suggested by
27620         Bruno Haible <bruno@clisp.org>.
27621         * modules/ld-version-script: Renamed to lib-symbol-versions.
27622         * doc/ld-version-script.texi: Fix module name.
27623         * MODULES.html.sh: Add lib-symbol-versions.
27624
27625 2009-03-31  Simon Josefsson  <simon@josefsson.org>
27626
27627         * modules/u64-tests: New file.
27628         * tests/test-u64.c: New file.
27629
27630 2009-03-04  Simon Josefsson  <simon@josefsson.org>
27631
27632         * MODULES.html.sh: Mention u64.
27633         * modules/u64: New module.
27634         * modules/crypto/sha512: Depend on u64 module instead of providing
27635         u64.h.
27636
27637 2009-03-27  Eric Blake  <ebb9@byu.net>
27638
27639         test-strerror: make debugging EAI_SYSTEM easier
27640         * modules/getaddrinfo-tests (Depends-on): Add strerror.
27641         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
27642         failure was EAI_SYSTEM.
27643
27644 2009-03-25  Bruno Haible  <bruno@clisp.org>
27645
27646         Fix a problem with --enable-relocatable on Solaris 7.
27647         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
27648         since 2008-02-24.
27649
27650 2009-03-25  Eric Blake  <ebb9@byu.net>
27651
27652         test-sockets: avoid gcc warning
27653         * tests/test-sockets.c (main): Silence compiler warning.
27654
27655 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
27656
27657         New modules nproc, pthread, contributed by Glen Lenker.
27658
27659         * MODULES.html.sh: Add pthread, nproc.
27660         * lib/nproc.c: New file.
27661         * lib/nproc.h: New file.
27662         * lib/pthread.in.h: New file.
27663         * m4/pthread.m4: New file.
27664         * modules/nproc: New file.
27665         * modules/pthread: New file.
27666
27667 2009-03-24  Simon Josefsson  <simon@josefsson.org>
27668
27669         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
27670         New variable.
27671
27672 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
27673
27674         filevercmp: handle simple~ and numbered.~3~ backup suffixes
27675         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
27676         * tests/test-filevercmp.c: Add tests for backup suffixes.
27677
27678 2009-03-24  Simon Josefsson  <simon@josefsson.org>
27679
27680         * modules/stdlib (Depends-on): Add stdint, needed when defining
27681         struct random_data on, for example, HP-UX 10.20.  Reported by
27682         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27683
27684 2009-03-24  Simon Josefsson  <simon@josefsson.org>
27685
27686         * lib/readline.c (readline): Call fflush on stdout after printing
27687         prompt.
27688
27689 2009-03-20  Bruno Haible  <bruno@clisp.org>
27690
27691         Remove dependency from 'close' module to -lws2_32 on native Windows.
27692         * lib/close-hook.h: New file.
27693         * lib/close-hook.c: New file.
27694         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
27695         w32sock.h.
27696         (_gl_close_fd_maybe_socket): Remove function.
27697         (rpl_close): Invoke execute_all_close_hooks instead of
27698         _gl_close_fd_maybe_socket.
27699         * lib/sockets.c: Include close-hook.h, w32sock.h.
27700         (close_fd_maybe_socket): New function, essentially from lib/close.c.
27701         (close_sockets_hook): New variable.
27702         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
27703         (gl_sockets_cleanup): Unregister it.
27704         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
27705         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
27706         * modules/close-hook: New file.
27707         * modules/close (Files): Remove lib/w32sock.h.
27708         (Depends-on): Add close-hook.
27709         (Link): Remove section.
27710         * modules/sockets (Files): Add lib/w32sock.h.
27711         (Depends-on): Add close-hook.
27712         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
27713         invocation.
27714         * NEWS: Mention that LIB_CLOSE is gone.
27715
27716 2009-03-23  Eric Blake  <ebb9@byu.net>
27717
27718         signal-tests: test previous patch
27719         * tests/test-signal.c: New file.
27720         * modules/signal-tests: Likewise.
27721
27722         signal.h: always support 'volatile sig_atomic_t'
27723         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
27724         (gl_SIGNAL_H_DEFAULTS): Add a default.
27725         * modules/signal (Makefile.am): Substitute if needed.
27726         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
27727         users can blindly add volatile.
27728         * doc/posix-headers/signal.texi (signal.h): Document it.
27729         Reported by Matthew Woehlke.
27730
27731 2009-03-23  Jim Meyering  <meyering@redhat.com>
27732
27733         pathmax: PATH_MAX: use pathconf only when available
27734         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
27735         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
27736         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
27737         This avoids a link failure in a PSP cross-compilation environment
27738         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
27739
27740         * lib/vasnprintf.c (divide): Fix typo in comment.
27741
27742 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27743
27744         * gnulib-tool (func_filter_filelist): Fix comment.
27745
27746 2009-03-20  Bruno Haible  <bruno@clisp.org>
27747
27748         Make sockets.h self-contained.
27749         * lib/sockets.c: Include sockets.h first.
27750         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
27751
27752 2009-03-19  Eric Blake  <ebb9@byu.net>
27753
27754         doc: mention more functions added in cygwin 1.7.0
27755         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
27756         addition.
27757         * doc/posix-functions/log2f.texi: Likewise.
27758
27759 2009-03-19  Jim Meyering  <meyering@redhat.com>
27760
27761         fsusage: avoid syntax error due to statement-before-declaration
27762         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
27763         after all declarations.  Reported by Matthew Woehlke in
27764         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
27765
27766 2009-03-18  Eric Blake  <ebb9@byu.net>
27767
27768         build-aux/compile: sync from automake
27769         * build-aux/compile: New file, from automake.
27770         * config/srclist.txt: Mention build-aux/compile.
27771
27772 2009-03-17  Bruno Haible  <bruno@clisp.org>
27773
27774         * lib/git-merge-changelog.c: Fix typo in comment.
27775         Reported by Reuben Thomas <rrt@sc3d.org>.
27776
27777 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
27778
27779         * m4/regex.m4: update and improve help for
27780         --without-included-regex.
27781
27782 2009-03-17  Simon Josefsson  <simon@josefsson.org>
27783
27784         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
27785         failure on missing include files.
27786
27787 2009-03-17  Eric Blake  <ebb9@byu.net>
27788
27789         doc: mention more functions added in cygwin 1.7.0
27790         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
27791         addition.
27792         * doc/posix-functions/fwscanf.texi: Likewise.
27793         * doc/posix-functions/swprintf.texi: Likewise.
27794         * doc/posix-functions/swscanf.texi: Likewise.
27795         * doc/posix-functions/vfwprintf.texi: Likewise.
27796         * doc/posix-functions/vfwscanf.texi: Likewise.
27797         * doc/posix-functions/vswprintf.texi: Likewise.
27798         * doc/posix-functions/vswscanf.texi: Likewise.
27799         * doc/posix-functions/vwprintf.texi: Likewise.
27800         * doc/posix-functions/vwscanf.texi: Likewise.
27801         * doc/posix-functions/wcscasecmp.texi: Likewise.
27802         * doc/posix-functions/wcsdup.texi: Likewise.
27803         * doc/posix-functions/wcsftime.texi: Likewise.
27804         * doc/posix-functions/wcsncasecmp.texi: Likewise.
27805         * doc/posix-functions/wprintf.texi: Likewise.
27806         * doc/posix-functions/wscanf.texi: Likewise.
27807         * doc/glibc-functions/gethostbyname2.texi: Likewise.
27808
27809 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27810
27811         maint.mk: really add $(AM_MAKEFLAGS)
27812         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
27813         was inadvertently omitted in the last commit.
27814         Spotted by Bruno Haible.
27815
27816         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
27817         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
27818         $(AM_MAKEFLAGS)' rather than plain `make'.
27819
27820         gnulib-tool: execute $MAKE not make
27821         * gnulib-tool: Default $MAKE to 'make'.
27822         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
27823         than make.  Initialize $MAKE in the do-autobuild script.
27824
27825         gnulib-tool: use $MAKE not make in generated files
27826         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
27827         make, in generated files.  Initialize $MAKE in the do-autobuild
27828         script.
27829
27830         * top/GNUmakefile (_have-git-version-gen): Fix typo.
27831
27832         GNUmakefile: disable parallelism only for multiple, recursive targets
27833         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
27834         additions in the Makefile.
27835         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
27836         by Automake.
27837         (.NOTPARALLEL): Only disable parallel builds if multiple targets
27838         are listed on the command line and at least one of them is
27839         listed in $(ALL_RECURSIVE_TARGETS).
27840
27841 2009-03-14  Bruno Haible  <bruno@clisp.org>
27842
27843         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
27844         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
27845         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
27846         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
27847         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
27848         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
27849         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
27850         unistr/u8-uctomb.
27851         * modules/unistr/u8-strchr (Depends-on): Likewise.
27852         * modules/unistr/u8-strrchr (Depends-on): Likewise.
27853         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
27854         unistr/u16-uctomb.
27855         * modules/unistr/u16-strchr (Depends-on): Likewise.
27856         * modules/unistr/u16-strrchr (Depends-on): Likewise.
27857
27858 2009-03-12  Bruno Haible  <bruno@clisp.org>
27859
27860         Work around select() bug on Interix 3.5.
27861         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
27862         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
27863         * m4/select.m4: New file.
27864         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
27865         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
27866         * modules/select (Files): Add m4/select.m4.
27867         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
27868         * modules/nanosleep (Depends-on): Add select.
27869         * modules/poll (Depends-on): Likewise.
27870         * doc/posix-functions/select.texi: Mention the Interix bug.
27871         Reported by Markus Duft <mduft@gentoo.org>.
27872
27873         * lib/select.c: Renamed from lib/winsock-select.c.
27874         * modules/select (Files): Add lib/select.c, remove
27875         lib/winsock-select.c.
27876         (configure.ac): Update.
27877
27878 2009-03-12  Jim Meyering  <meyering@redhat.com>
27879
27880         avoid gcc warnings about unused macro definitions
27881         * lib/readtokens.c (STREQ): Remove unused definition.
27882         * lib/xmalloc.c (SIZE_MAX): Likewise.
27883         * lib/openat-die.c (N_): Likewise.
27884         * lib/mountlist.c (SIZE_MAX): Remove definition.
27885         Instead, include <stdint.h>.
27886         * lib/readutmp.c: Likewise.
27887         * modules/readutmp (Depends-on): Add stdint.
27888         * modules/mountlist (Depends-on): Add stdint.
27889         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
27890
27891 2009-03-10  Bruno Haible  <bruno@clisp.org>
27892
27893         Tests for module 'mbmemcasecoll'.
27894         * modules/mbmemcasecoll-tests: New file.
27895         * tests/test-mbmemcasecoll1.sh: New file.
27896         * tests/test-mbmemcasecoll2.sh: New file.
27897         * tests/test-mbmemcasecoll3.sh: New file.
27898         * tests/test-mbmemcasecoll.c: New file.
27899
27900         New module 'mbmemcasecoll'.
27901         * lib/mbmemcasecoll.h: New file.
27902         * lib/mbmemcasecoll.c: New file.
27903         * modules/mbmemcasecoll: New file.
27904
27905         * tests/test-mbmemcasecmp.h: New file, extracted from
27906         tests/test-mbmemcasecmp.c.
27907         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
27908         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
27909         (main): Update.
27910         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
27911
27912 2009-03-09  Bruno Haible  <bruno@clisp.org>
27913
27914         Tests for module 'mbmemcasecmp'.
27915         * modules/mbmemcasecmp-tests: New file.
27916         * tests/test-mbmemcasecmp1.sh: New file.
27917         * tests/test-mbmemcasecmp2.sh: New file.
27918         * tests/test-mbmemcasecmp3.sh: New file.
27919         * tests/test-mbmemcasecmp.c: New file.
27920
27921         New module 'mbmemcasecmp'.
27922         * lib/mbmemcasecmp.h: New file.
27923         * lib/mbmemcasecmp.c: New file.
27924         * modules/mbmemcasecmp: New file.
27925
27926 2009-03-09  Bruno Haible  <bruno@clisp.org>
27927
27928         Tests for module 'unicase/ulc-casecoll'.
27929         * modules/unicase/ulc-casecoll-tests: New file.
27930         * tests/unicase/test-ulc-casecoll1.sh: New file.
27931         * tests/unicase/test-ulc-casecoll2.sh: New file.
27932         * tests/unicase/test-ulc-casecoll.c: New file.
27933
27934         New module 'unicase/ulc-casecoll'.
27935         * lib/unicase.h (ulc_casecoll): New declaration.
27936         * lib/unicase/ulc-casecoll.c: New file.
27937         * modules/unicase/ulc-casecoll: New file.
27938
27939         New module 'unicase/ulc-casexfrm'.
27940         * lib/unicase.h (ulc_casexfrm): New declaration.
27941         * lib/unicase/ulc-casexfrm.c: New file.
27942         * modules/unicase/ulc-casexfrm: New file.
27943
27944 2009-03-09  Bruno Haible  <bruno@clisp.org>
27945
27946         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
27947         invocations.
27948
27949         * m4/mbscasecmp.m4: Remove file.
27950         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
27951         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
27952
27953         * m4/mbscasestr.m4: Remove file.
27954         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
27955         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
27956
27957         * m4/mbschr.m4: Remove file.
27958         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
27959         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
27960
27961         * m4/mbscspn.m4: Remove file.
27962         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
27963         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
27964
27965         * m4/mbslen.m4: Remove file.
27966         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
27967         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
27968
27969         * m4/mbsncasecmp.m4: Remove file.
27970         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
27971         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
27972
27973         * m4/mbsnlen.m4: Remove file.
27974         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
27975         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
27976
27977         * m4/mbspbrk.m4: Remove file.
27978         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
27979         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
27980
27981         * m4/mbspcasecmp.m4: Remove file.
27982         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
27983         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
27984
27985         * m4/mbsrchr.m4: Remove file.
27986         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
27987         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
27988
27989         * m4/mbssep.m4: Remove file.
27990         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
27991         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
27992
27993         * m4/mbsspn.m4: Remove file.
27994         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
27995         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
27996
27997         * m4/mbsstr.m4: Remove file.
27998         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
27999         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
28000
28001         * m4/mbstok_r.m4: Remove file.
28002         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
28003         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
28004
28005         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
28006
28007         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
28008         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
28009
28010         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
28011
28012 2009-03-08  Bruno Haible  <bruno@clisp.org>
28013
28014         Tests for module 'unicase/ulc-casecmp'.
28015         * modules/unicase/ulc-casecmp-tests: New file.
28016         * tests/unicase/test-ulc-casecmp1.sh: New file.
28017         * tests/unicase/test-ulc-casecmp2.sh: New file.
28018         * tests/unicase/test-ulc-casecmp.c: New file.
28019
28020         New module 'unicase/ulc-casecmp'.
28021         * lib/unicase.h (ulc_casecmp): New declaration.
28022         * lib/unicase/ulc-casecmp.c: New file.
28023         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
28024         'const SRC_UNIT *'.
28025         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
28026         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
28027         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
28028         * modules/unicase/ulc-casecmp: New file.
28029
28030         Tests for module 'unicase/u32-is-cased'.
28031         * modules/unicase/u32-is-cased-tests: New file.
28032         * tests/unicase/test-u32-is-cased.c: New file.
28033
28034         Tests for module 'unicase/u16-is-cased'.
28035         * modules/unicase/u16-is-cased-tests: New file.
28036         * tests/unicase/test-u16-is-cased.c: New file.
28037
28038         Tests for module 'unicase/u8-is-cased'.
28039         * modules/unicase/u8-is-cased-tests: New file.
28040         * tests/unicase/test-u8-is-cased.c: New file.
28041         * tests/unicase/test-is-cased.h: New file.
28042
28043         New module 'unicase/u32-is-cased'.
28044         * lib/unicase/u32-is-cased.c: New file.
28045         * modules/unicase/u32-is-cased: New file.
28046
28047         New module 'unicase/u16-is-cased'.
28048         * lib/unicase/u16-is-cased.c: New file.
28049         * modules/unicase/u16-is-cased: New file.
28050
28051         New module 'unicase/u8-is-cased'.
28052         * lib/unicase/u8-is-cased.c: New file.
28053         * lib/unicase/u-is-cased.h: New file.
28054         * modules/unicase/u8-is-cased: New file.
28055
28056         Tests for module 'unicase/u32-is-casefolded'.
28057         * modules/unicase/u32-is-casefolded-tests: New file.
28058         * tests/unicase/test-u32-is-casefolded.c: New file.
28059
28060         Tests for module 'unicase/u16-is-casefolded'.
28061         * modules/unicase/u16-is-casefolded-tests: New file.
28062         * tests/unicase/test-u16-is-casefolded.c: New file.
28063
28064         Tests for module 'unicase/u8-is-casefolded'.
28065         * modules/unicase/u8-is-casefolded-tests: New file.
28066         * tests/unicase/test-u8-is-casefolded.c: New file.
28067         * tests/unicase/test-is-casefolded.h: New file.
28068
28069         New module 'unicase/u32-is-casefolded'.
28070         * lib/unicase/u32-is-casefolded.c: New file.
28071         * modules/unicase/u32-is-casefolded: New file.
28072
28073         New module 'unicase/u16-is-casefolded'.
28074         * lib/unicase/u16-is-casefolded.c: New file.
28075         * modules/unicase/u16-is-casefolded: New file.
28076
28077         New module 'unicase/u8-is-casefolded'.
28078         * lib/unicase/u8-is-casefolded.c: New file.
28079         * modules/unicase/u8-is-casefolded: New file.
28080
28081         Tests for module 'unicase/u32-is-titlecase'.
28082         * modules/unicase/u32-is-titlecase-tests: New file.
28083         * tests/unicase/test-u32-is-titlecase.c: New file.
28084
28085         Tests for module 'unicase/u16-is-titlecase'.
28086         * modules/unicase/u16-is-titlecase-tests: New file.
28087         * tests/unicase/test-u16-is-titlecase.c: New file.
28088
28089         Tests for module 'unicase/u8-is-titlecase'.
28090         * modules/unicase/u8-is-titlecase-tests: New file.
28091         * tests/unicase/test-u8-is-titlecase.c: New file.
28092         * tests/unicase/test-is-titlecase.h: New file.
28093
28094         New module 'unicase/u32-is-titlecase'.
28095         * lib/unicase/u32-is-titlecase.c: New file.
28096         * modules/unicase/u32-is-titlecase: New file.
28097
28098         New module 'unicase/u16-is-titlecase'.
28099         * lib/unicase/u16-is-titlecase.c: New file.
28100         * modules/unicase/u16-is-titlecase: New file.
28101
28102         New module 'unicase/u8-is-titlecase'.
28103         * lib/unicase/u8-is-titlecase.c: New file.
28104         * modules/unicase/u8-is-titlecase: New file.
28105
28106         Tests for module 'unicase/u32-is-lowercase'.
28107         * modules/unicase/u32-is-lowercase-tests: New file.
28108         * tests/unicase/test-u32-is-lowercase.c: New file.
28109
28110         Tests for module 'unicase/u16-is-lowercase'.
28111         * modules/unicase/u16-is-lowercase-tests: New file.
28112         * tests/unicase/test-u16-is-lowercase.c: New file.
28113
28114         Tests for module 'unicase/u8-is-lowercase'.
28115         * modules/unicase/u8-is-lowercase-tests: New file.
28116         * tests/unicase/test-u8-is-lowercase.c: New file.
28117         * tests/unicase/test-is-lowercase.h: New file.
28118
28119         New module 'unicase/u32-is-lowercase'.
28120         * lib/unicase/u32-is-lowercase.c: New file.
28121         * modules/unicase/u32-is-lowercase: New file.
28122
28123         New module 'unicase/u16-is-lowercase'.
28124         * lib/unicase/u16-is-lowercase.c: New file.
28125         * modules/unicase/u16-is-lowercase: New file.
28126
28127         New module 'unicase/u8-is-lowercase'.
28128         * lib/unicase/u8-is-lowercase.c: New file.
28129         * modules/unicase/u8-is-lowercase: New file.
28130
28131         Tests for module 'unicase/u32-is-uppercase'.
28132         * modules/unicase/u32-is-uppercase-tests: New file.
28133         * tests/unicase/test-u32-is-uppercase.c: New file.
28134
28135         Tests for module 'unicase/u16-is-uppercase'.
28136         * modules/unicase/u16-is-uppercase-tests: New file.
28137         * tests/unicase/test-u16-is-uppercase.c: New file.
28138
28139         Tests for module 'unicase/u8-is-uppercase'.
28140         * modules/unicase/u8-is-uppercase-tests: New file.
28141         * tests/unicase/test-u8-is-uppercase.c: New file.
28142         * tests/unicase/test-is-uppercase.h: New file.
28143
28144         New module 'unicase/u32-is-uppercase'.
28145         * lib/unicase/u32-is-uppercase.c: New file.
28146         * modules/unicase/u32-is-uppercase: New file.
28147
28148         New module 'unicase/u16-is-uppercase'.
28149         * lib/unicase/u16-is-uppercase.c: New file.
28150         * modules/unicase/u16-is-uppercase: New file.
28151
28152         New module 'unicase/u8-is-uppercase'.
28153         * lib/unicase/u8-is-uppercase.c: New file.
28154         * modules/unicase/u8-is-uppercase: New file.
28155
28156         New module 'unicase/u32-is-invariant'.
28157         * lib/unicase/u32-is-invariant.c: New file.
28158         * modules/unicase/u32-is-invariant: New file.
28159
28160         New module 'unicase/u16-is-invariant'.
28161         * lib/unicase/u16-is-invariant.c: New file.
28162         * modules/unicase/u16-is-invariant: New file.
28163
28164         New module 'unicase/u8-is-invariant'.
28165         * lib/unicase/u8-is-invariant.c: New file.
28166         * lib/unicase/invariant.h: New file.
28167         * lib/unicase/u-is-invariant.h: New file.
28168         * modules/unicase/u8-is-invariant: New file.
28169
28170         Tests for module 'unicase/u32-casecoll'.
28171         * modules/unicase/u32-casecoll-tests: New file.
28172         * tests/unicase/test-u32-casecoll.c: New file.
28173
28174         Tests for module 'unicase/u16-casecoll'.
28175         * modules/unicase/u16-casecoll-tests: New file.
28176         * tests/unicase/test-u16-casecoll.c: New file.
28177
28178         Tests for module 'unicase/u8-casecoll'.
28179         * modules/unicase/u8-casecoll-tests: New file.
28180         * tests/unicase/test-u8-casecoll.c: New file.
28181
28182         New module 'unicase/u32-casecoll'.
28183         * lib/unicase/u32-casecoll.c: New file.
28184         * modules/unicase/u32-casecoll: New file.
28185
28186         New module 'unicase/u16-casecoll'.
28187         * lib/unicase/u16-casecoll.c: New file.
28188         * modules/unicase/u16-casecoll: New file.
28189
28190         New module 'unicase/u8-casecoll'.
28191         * lib/unicase/u8-casecoll.c: New file.
28192         * lib/unicase/u-casecoll.h: New file.
28193         * modules/unicase/u8-casecoll: New file.
28194
28195         New module 'unicase/u32-casexfrm'.
28196         * lib/unicase/u32-casexfrm.c: New file.
28197         * modules/unicase/u32-casexfrm: New file.
28198
28199         New module 'unicase/u16-casexfrm'.
28200         * lib/unicase/u16-casexfrm.c: New file.
28201         * modules/unicase/u16-casexfrm: New file.
28202
28203         New module 'unicase/u8-casexfrm'.
28204         * lib/unicase/u8-casexfrm.c: New file.
28205         * lib/unicase/u-casexfrm.h: New file.
28206         * modules/unicase/u8-casexfrm: New file.
28207
28208         Tests for module 'unicase/u32-casecmp'.
28209         * modules/unicase/u32-casecmp-tests: New file.
28210         * tests/unicase/test-u32-casecmp.c: New file.
28211
28212         Tests for module 'unicase/u16-casecmp'.
28213         * modules/unicase/u16-casecmp-tests: New file.
28214         * tests/unicase/test-u16-casecmp.c: New file.
28215
28216         Tests for module 'unicase/u8-casecmp'.
28217         * modules/unicase/u8-casecmp-tests: New file.
28218         * tests/unicase/test-u8-casecmp.c: New file.
28219         * tests/unicase/test-casecmp.h: New file.
28220
28221         New module 'unicase/u32-casecmp'.
28222         * lib/unicase/u32-casecmp.c: New file.
28223         * modules/unicase/u32-casecmp: New file.
28224
28225         New module 'unicase/u16-casecmp'.
28226         * lib/unicase/u16-casecmp.c: New file.
28227         * modules/unicase/u16-casecmp: New file.
28228
28229         New module 'unicase/u8-casecmp'.
28230         * lib/unicase/u8-casecmp.c: New file.
28231         * lib/unicase/u-casecmp.h: New file.
28232         * modules/unicase/u8-casecmp: New file.
28233
28234         Tests for module 'unicase/u32-casefold'.
28235         * modules/unicase/u32-casefold-tests: New file.
28236         * tests/unicase/test-u32-casefold.c: New file.
28237
28238         Tests for module 'unicase/u16-casefold'.
28239         * modules/unicase/u16-casefold-tests: New file.
28240         * tests/unicase/test-u16-casefold.c: New file.
28241
28242         Tests for module 'unicase/u8-casefold'.
28243         * modules/unicase/u8-casefold-tests: New file.
28244         * tests/unicase/test-u8-casefold.c: New file.
28245
28246         New module 'unicase/u32-casefold'.
28247         * lib/unicase/u32-casefold.c: New file.
28248         * modules/unicase/u32-casefold: New file.
28249
28250         New module 'unicase/u16-casefold'.
28251         * lib/unicase/u16-casefold.c: New file.
28252         * modules/unicase/u16-casefold: New file.
28253
28254         New module 'unicase/u8-casefold'.
28255         * lib/unicase/u8-casefold.c: New file.
28256         * lib/unicase/u-casefold.h: New file.
28257         * modules/unicase/u8-casefold: New file.
28258
28259         New module 'unicase/tocasefold'.
28260         * lib/unicase/casefold.h: New file.
28261         * lib/unicase/tocasefold.c: New file.
28262         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
28263         * modules/unicase/tocasefold: New file.
28264
28265         Tests for module 'unicase/u32-totitle'.
28266         * modules/unicase/u32-totitle-tests: New file.
28267         * tests/unicase/test-u32-totitle.c: New file.
28268
28269         Tests for module 'unicase/u16-totitle'.
28270         * modules/unicase/u16-totitle-tests: New file.
28271         * tests/unicase/test-u16-totitle.c: New file.
28272
28273         Tests for module 'unicase/u8-totitle'.
28274         * modules/unicase/u8-totitle-tests: New file.
28275         * tests/unicase/test-u8-totitle.c: New file.
28276
28277         New module 'unicase/u32-totitle'.
28278         * lib/unicase/u32-totitle.c: New file.
28279         * modules/unicase/u32-totitle: New file.
28280
28281         New module 'unicase/u16-totitle'.
28282         * lib/unicase/u16-totitle.c: New file.
28283         * modules/unicase/u16-totitle: New file.
28284
28285         New module 'unicase/u8-totitle'.
28286         * lib/unicase/u8-totitle.c: New file.
28287         * lib/unicase/u-totitle.h: New file.
28288         * modules/unicase/u8-totitle: New file.
28289
28290         Tests for module 'unicase/u32-tolower'.
28291         * modules/unicase/u32-tolower-tests: New file.
28292         * tests/unicase/test-u32-tolower.c: New file.
28293
28294         Tests for module 'unicase/u16-tolower'.
28295         * modules/unicase/u16-tolower-tests: New file.
28296         * tests/unicase/test-u16-tolower.c: New file.
28297
28298         Tests for module 'unicase/u8-tolower'.
28299         * modules/unicase/u8-tolower-tests: New file.
28300         * tests/unicase/test-u8-tolower.c: New file.
28301
28302         New module 'unicase/u32-tolower'.
28303         * lib/unicase/u32-tolower.c: New file.
28304         * modules/unicase/u32-tolower: New file.
28305
28306         New module 'unicase/u16-tolower'.
28307         * lib/unicase/u16-tolower.c: New file.
28308         * modules/unicase/u16-tolower: New file.
28309
28310         New module 'unicase/u8-tolower'.
28311         * lib/unicase/u8-tolower.c: New file.
28312         * modules/unicase/u8-tolower: New file.
28313
28314         Tests for module 'unicase/u32-toupper'.
28315         * modules/unicase/u32-toupper-tests: New file.
28316         * tests/unicase/test-u32-toupper.c: New file.
28317
28318         Tests for module 'unicase/u16-toupper'.
28319         * modules/unicase/u16-toupper-tests: New file.
28320         * tests/unicase/test-u16-toupper.c: New file.
28321
28322         Tests for module 'unicase/u8-toupper'.
28323         * modules/unicase/u8-toupper-tests: New file.
28324         * tests/unicase/test-u8-toupper.c: New file.
28325
28326         New module 'unicase/u32-toupper'.
28327         * lib/unicase/u32-toupper.c: New file.
28328         * modules/unicase/u32-toupper: New file.
28329
28330         New module 'unicase/u16-toupper'.
28331         * lib/unicase/u16-toupper.c: New file.
28332         * modules/unicase/u16-toupper: New file.
28333
28334         New module 'unicase/u8-toupper'.
28335         * lib/unicase/u8-toupper.c: New file.
28336         * modules/unicase/u8-toupper: New file.
28337
28338         New module 'unicase/u32-casemap'.
28339         * lib/unicase/u32-casemap.c: New file.
28340         * modules/unicase/u32-casemap: New file.
28341
28342         New module 'unicase/u16-casemap'.
28343         * lib/unicase/u16-casemap.c: New file.
28344         * modules/unicase/u16-casemap: New file.
28345
28346         New module 'unicase/u8-casemap'.
28347         * lib/unicase/unicasemap.h: New file.
28348         * lib/unicase/u8-casemap.c: New file.
28349         * lib/unicase/u-casemap.h: New file.
28350         * modules/unicase/u8-casemap: New file.
28351
28352         New module 'unicase/special-casing'.
28353         * lib/unicase/special-casing.h: New file.
28354         * lib/unicase/special-casing.c: New file.
28355         * lib/unicase/special-casing-table.gperf: New file, generated by
28356         gen-uni-tables.c.
28357         * modules/unicase/special-casing: New file.
28358
28359         Tests for module 'unicase/locale-language'.
28360         * modules/unicase/locale-language-tests: New file.
28361         * tests/unicase/test-locale-language.sh: New file.
28362         * tests/unicase/test-locale-language.c: New file.
28363
28364         New module 'unicase/locale-language'.
28365         * lib/unicase/locale-language.c: New file.
28366         * lib/unicase/locale-languages.gperf: New file.
28367         * modules/unicase/locale-language: New file.
28368
28369         Generate more tables for case conversion and case folding.
28370         * lib/gen-uni-tables.c (SCC_*): New enum items.
28371         (struct special_casing_rule): New type.
28372         (casing_rules, num_casing_rules, allocated_casing_rules): New
28373         variables.
28374         (add_casing_rule, fill_casing_rules): New functions.
28375         (struct casefold_rule): New type.
28376         (casefolding_rules, num_casefolding_rules,
28377         allocated_casefolding_rules): New variables.
28378         (fill_casefolding_rules): New function.
28379         (unicode_casefold): New variable.
28380         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
28381         sort_casing_rules, output_casing_rules): New functions.
28382         (main): Accept to more arguments: SpecialCasing.txt and
28383         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
28384         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
28385         Output mapping for casefolding.
28386
28387         * lib/unicase.h: Include stdbool.h, uninorm.h.
28388         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
28389         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
28390         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
28391         arguments.
28392         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
28393         resultp arguments.
28394         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
28395         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
28396         resultp arguments.
28397         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
28398         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
28399         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
28400         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
28401         declarations.
28402         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
28403
28404 2009-03-08  Bruno Haible  <bruno@clisp.org>
28405
28406         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
28407         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
28408         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
28409         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
28410
28411 2009-03-07  Bruno Haible  <bruno@clisp.org>
28412
28413         Adjust u*_normcmp, u*_normcoll API.
28414         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
28415         u16_normcoll, u32_normcoll): Change failure conventions.
28416         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
28417         errno and return -1.
28418         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
28419
28420 2009-03-07  Bruno Haible  <bruno@clisp.org>
28421
28422         Tests for module 'uninorm/u32-normcoll'.
28423         * modules/uninorm/u32-normcoll-tests: New file.
28424         * tests/uninorm/test-u32-normcoll.c: New file.
28425
28426         Tests for module 'uninorm/u16-normcoll'.
28427         * modules/uninorm/u16-normcoll-tests: New file.
28428         * tests/uninorm/test-u16-normcoll.c: New file.
28429
28430         Tests for module 'uninorm/u8-normcoll'.
28431         * modules/uninorm/u8-normcoll-tests: New file.
28432         * tests/uninorm/test-u8-normcoll.c: New file.
28433
28434 2009-03-07  Bruno Haible  <bruno@clisp.org>
28435
28436         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
28437         tests/uninorm/test-u32-normcmp.c.
28438         * tests/uninorm/test-u32-normcmp.c: Include it.
28439         (test_nonascii): New function, extracted from main. Add some more
28440         tests.
28441         (main): Invoke test_ascii and test_nonascii.
28442         * modules/uninorm/u32-normcmp-tests (Files): Add
28443         tests/uninorm/test-u32-normcmp.h.
28444         (Depends-on): Remove uninorm/u32-normcmp.
28445
28446         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
28447         tests/uninorm/test-u16-normcmp.c.
28448         * tests/uninorm/test-u16-normcmp.c: Include it.
28449         (test_nonascii): New function, extracted from main. Add some more
28450         tests.
28451         (main): Invoke test_ascii and test_nonascii.
28452         * modules/uninorm/u16-normcmp-tests (Files): Add
28453         tests/uninorm/test-u16-normcmp.h.
28454         (Depends-on): Remove uninorm/u16-normcmp.
28455
28456         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
28457         tests/uninorm/test-u8-normcmp.c.
28458         * tests/uninorm/test-u8-normcmp.c: Include it.
28459         (test_nonascii): New function, extracted from main. Add some more
28460         tests.
28461         (main): Invoke test_ascii and test_nonascii.
28462         * modules/uninorm/u8-normcmp-tests (Files): Add
28463         tests/uninorm/test-u8-normcmp.h.
28464         (Depends-on): Remove uninorm/u8-normcmp.
28465
28466 2009-03-07  Bruno Haible  <bruno@clisp.org>
28467
28468         New module 'uninorm/u32-normcoll'.
28469         * lib/uninorm/u32-normcoll.c: New file.
28470         * modules/uninorm/u32-normcoll: New file.
28471
28472         New module 'uninorm/u16-normcoll'.
28473         * lib/uninorm/u16-normcoll.c: New file.
28474         * modules/uninorm/u16-normcoll: New file.
28475
28476         New module 'uninorm/u8-normcoll'.
28477         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
28478         declarations.
28479         * lib/uninorm/u8-normcoll.c: New file.
28480         * lib/uninorm/u-normcoll.h: New file.
28481         * modules/uninorm/u8-normcoll: New file.
28482
28483         New module 'uninorm/u32-normxfrm'.
28484         * lib/uninorm/u32-normxfrm.c: New file.
28485         * modules/uninorm/u32-normxfrm: New file.
28486
28487         New module 'uninorm/u16-normxfrm'.
28488         * lib/uninorm/u16-normxfrm.c: New file.
28489         * modules/uninorm/u16-normxfrm: New file.
28490
28491         New module 'uninorm/u8-normxfrm'.
28492         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
28493         declarations.
28494         * lib/uninorm/u8-normxfrm.c: New file.
28495         * lib/uninorm/u-normxfrm.h: New file.
28496         * modules/uninorm/u8-normxfrm: New file.
28497
28498 2009-03-07  Bruno Haible  <bruno@clisp.org>
28499
28500         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
28501         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
28502         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
28503
28504 2009-03-07  Bruno Haible  <bruno@clisp.org>
28505
28506         New module 'memxfrm'.
28507         * lib/memxfrm.h: New file.
28508         * lib/memxfrm.c: New file.
28509         * modules/memxfrm: New file.
28510
28511 2009-03-07  Bruno Haible  <bruno@clisp.org>
28512
28513         New module 'memcmp2'.
28514         * lib/memcmp2.h: New file.
28515         * lib/memcmp2.c: New file.
28516         * modules/memcmp2: New file.
28517
28518 2009-03-07  Bruno Haible  <bruno@clisp.org>
28519
28520         Tests for module 'uninorm/decomposing-form'.
28521         * modules/uninorm/decomposing-form-tests: New file.
28522         * tests/uninorm/test-decomposing-form.c: New file.
28523
28524         New module 'uninorm/decomposing-form'.
28525         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
28526         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
28527         Add 'decomposing_variant' field.
28528         * lib/uninorm/decomposing-form.c: New file.
28529         * lib/uninorm/nfc.c (uninorm_nfc): Update.
28530         * lib/uninorm/nfd.c (uninorm_nfd): Update.
28531         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
28532         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
28533         * modules/uninorm/decomposing-form: New file.
28534         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
28535         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
28536
28537 2009-03-07  Bruno Haible  <bruno@clisp.org>
28538
28539         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
28540         strings.
28541
28542 2009-03-06  Bruno Haible  <bruno@clisp.org>
28543
28544         Tests for module 'uninorm/u32-normcmp'.
28545         * tests/uninorm/test-u32-normcmp.c: New file.
28546         * modules/uninorm/u32-normcmp-tests: New file.
28547
28548         Tests for module 'uninorm/u16-normcmp'.
28549         * tests/uninorm/test-u16-normcmp.c: New file.
28550         * modules/uninorm/u16-normcmp-tests: New file.
28551
28552         Tests for module 'uninorm/u8-normcmp'.
28553         * tests/uninorm/test-u8-normcmp.c: New file.
28554         * modules/uninorm/u8-normcmp-tests: New file.
28555
28556         New module 'uninorm/u32-normcmp'.
28557         * lib/uninorm/u32-normcmp.c: New file.
28558         * modules/uninorm/u32-normcmp: New file.
28559
28560         New module 'uninorm/u16-normcmp'.
28561         * lib/uninorm/u16-normcmp.c: New file.
28562         * modules/uninorm/u16-normcmp: New file.
28563
28564         New module 'uninorm/u8-normcmp'.
28565         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
28566         declarations.
28567         * lib/uninorm/u8-normcmp.c: New file.
28568         * lib/uninorm/u-normcmp.h: New file.
28569         * modules/uninorm/u8-normcmp: New file.
28570
28571 2009-03-06  Bruno Haible  <bruno@clisp.org>
28572
28573         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
28574         Reported by Eric Blake.
28575
28576 2009-03-06  Eric Blake  <ebb9@byu.net>
28577             Bruno Haible  <bruno@clisp.org>
28578
28579         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
28580         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
28581         condition.
28582         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
28583         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
28584         condition.
28585         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
28586
28587 2009-03-06  Eric Blake  <ebb9@byu.net>
28588
28589         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
28590         to avoid compiler warnings.
28591         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
28592
28593 2009-03-05  Bruno Haible  <bruno@clisp.org>
28594
28595         * tests/test-ftell.c (main): Disable test beyond end of file on
28596         FreeMiNT.
28597         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
28598
28599 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
28600
28601         * lib/filevercmp.c: Move hidden files up in ordering.
28602         * tests/test-filevercmp.c: Add tests for hidden files.
28603
28604 2009-03-04  Bruno Haible  <bruno@clisp.org>
28605
28606         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
28607         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
28608         AM_CFLAGS.
28609         Reported by Simon Josefsson.
28610
28611 2009-03-03  Bruno Haible  <bruno@clisp.org>
28612
28613         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
28614         Reported by Simon Josefsson.
28615
28616         * doc/ld-version-script.texi: Update node reference.
28617
28618 2009-03-03  Bruno Haible  <bruno@clisp.org>
28619
28620         * modules/visibility (License): Change to 'unlimited'.
28621         Suggested by Simon Josefsson.
28622
28623 2009-03-03  Jim Meyering  <meyering@redhat.com>
28624
28625         unlinkdir: cannot_unlink_dir may modify process state
28626         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
28627         it's neither thread-safe nor appropriate for use in a library.
28628
28629 2009-03-03  Eric Blake  <ebb9@byu.net>
28630
28631         test-closein: silence test under Darwin
28632         * tests/test-closein.sh: Ignore stderr from cat, since we don't
28633         care if it dies from EPIPE or EBADF.
28634
28635 2009-03-03  Bruno Haible  <bruno@clisp.org>
28636
28637         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
28638         earlier.
28639         * doc/visibility.texi: Fix @node and @section.
28640
28641 2009-03-03  Simon Josefsson  <simon@josefsson.org>
28642
28643         * doc/gnulib.texi: Link to sections for ld version script and
28644         visibility.
28645         * doc/visibility.texi: Add @node and @section.
28646         * modules/ld-version-script: New module.
28647         * m4/ld-version-script.m4: New file.
28648         * doc/ld-version-script.texi: New file.
28649
28650 2009-03-02  David Lutterkort  <lutter@redhat.com>
28651
28652         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
28653         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28654
28655 2009-03-02  Bruno Haible  <bruno@clisp.org>
28656
28657         * doc/visibility.texi: Mention libtool's -export-symbols option.
28658
28659 2009-03-02  Jim Meyering  <meyering@redhat.com>
28660
28661         announce-gen: new option: --no-print-checksums
28662         * build-aux/announce-gen (usage): Describe it.
28663         (print_checksums): Print a newline here, not in the [*] footnote.
28664         (main): Honor it.
28665
28666 2009-03-01  Bruno Haible  <bruno@clisp.org>
28667
28668         Use socklen_t in the native Windows replacements prototypes.
28669         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
28670         instead of 'int'.
28671         * lib/getsockopt.c (rpl_getsockopt): Likewise.
28672         * lib/setsockopt.c (rpl_setsockopt): Likewise.
28673         * modules/getsockopt (Depends-on): Add socklen.
28674         * modules/setsockopt (Depends-on): Add socklen.
28675
28676 2009-03-01  Bruno Haible  <bruno@clisp.org>
28677
28678         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
28679         least 4.2.
28680
28681 2009-03-01  Eric Blake  <ebb9@byu.net>
28682             Bruno Haible  <bruno@clisp.org>
28683
28684         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
28685         error messages.
28686         * lib/wait-process.c (wait_subprocess): Omit error message about
28687         deadly signal sent to the child of termsigp != NULL.
28688
28689 2009-03-01  Eric Blake  <ebb9@byu.net>
28690
28691         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
28692
28693 2009-03-01  Bruno Haible  <bruno@clisp.org>
28694
28695         Avoid a gcc warning.
28696         * tests/test-sched.c (b): Make global.
28697         Reported by Eric Blake.
28698
28699 2009-01-19  Martin Lambers  <marlam@marlam.de>
28700
28701         Provide POSIX semantics for socket timeout options on W32.
28702         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
28703         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
28704         * modules/setsockopt: Depend on sys_time module for struct timeval.
28705         * modules/getsockopt: Depend on sys_time module for struct timeval.
28706
28707 2009-03-01  Simon Josefsson  <simon@josefsson.org>
28708
28709         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
28710         __USE_GNU, for consistency with netdb.in.h.
28711         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28712
28713 2009-03-01  Bruno Haible  <bruno@clisp.org>
28714
28715         More support for FreeMiNT.
28716         * lib/fseeko.c (rpl_fseeko): Complete last commit.
28717         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28718
28719 2009-03-01  Bruno Haible  <bruno@clisp.org>
28720
28721         More support for FreeMiNT.
28722         * lib/fpurge.c (fpurge): Correct last commit.
28723         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28724
28725 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28726
28727         Fix unportable awk script in vc-list-files.
28728         * build-aux/vc-list-files: In the replacement awk script, use
28729         substr with a second argument of 1, not zero.
28730         Report by Simon Josefsson.
28731
28732 2009-02-28  Bruno Haible  <bruno@clisp.org>
28733
28734         More support for FreeMiNT.
28735         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
28736         to FreeMiNT today.
28737         * lib/fwriting.c (fwriting): Likewise.
28738         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
28739
28740 2009-02-28  Bruno Haible  <bruno@clisp.org>
28741
28742         * tests/test-freadseek.c (main): Disable test beyond end of file on
28743         FreeMiNT.
28744         * tests/test-ftello.c (main): Likewise.
28745         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
28746
28747 2009-02-28  Bruno Haible  <bruno@clisp.org>
28748
28749         Add tentative support for FreeMiNT.
28750         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
28751         * lib/fpurge.c (fpurge): Likewise.
28752         * lib/freadable.c (freadable): Likewise.
28753         * lib/freading.c (freading): Likewise.
28754         * lib/freadptr.c (freadptr): Likewise.
28755         * lib/freadseek.c (freadptrinc): Likewise.
28756         * lib/fseeko.c (rpl_fseeko): Likewise.
28757         * lib/fseterr.c (fseterr): Likewise.
28758         * lib/fwritable.c (fwritable): Likewise.
28759         * lib/fwriting.c (fwriting): Likewise.
28760         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
28761         Hourihane.
28762         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28763
28764 2009-02-28  Bruno Haible  <bruno@clisp.org>
28765
28766         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
28767         SIGCHLD.
28768         Reported by Jim Meyering.
28769
28770 2009-02-28  Bruno Haible  <bruno@clisp.org>
28771
28772         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
28773         Mention the results of these tests on various platforms.
28774         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
28775         order.
28776         * doc/posix-functions/printf.texi: Likewise.
28777         * doc/posix-functions/snprintf.texi: Likewise.
28778         * doc/posix-functions/sprintf.texi: Likewise.
28779         * doc/posix-functions/vfprintf.texi: Likewise.
28780         * doc/posix-functions/vprintf.texi: Likewise.
28781         * doc/posix-functions/vsnprintf.texi: Likewise.
28782         * doc/posix-functions/vsprintf.texi: Likewise.
28783         * doc/glibc-functions/obstack_printf.texi: Likewise.
28784         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
28785
28786 2009-02-28  Bruno Haible  <bruno@clisp.org>
28787
28788         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
28789         Reported by Loïc Minier <lool@dooz.org>.
28790
28791 2009-02-27  Bruno Haible  <bruno@clisp.org>
28792
28793         * gnulib-tool (func_import): Make the sed expression used to create the
28794         sed script for updating the .gitignore file POSIX compliant.
28795         Reported by Eric Blake.
28796
28797 2009-02-27  Bruno Haible  <bruno@clisp.org>
28798
28799         * gnulib-tool (sed): Don't alias as "sed --posix".
28800         Reported by Eric Blake.
28801
28802 2009-02-27  Bruno Haible  <bruno@clisp.org>
28803
28804         Avoid test link errors.
28805         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
28806         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
28807         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
28808         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
28809         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28810
28811 2009-02-27  Bruno Haible  <bruno@clisp.org>
28812
28813         Avoid spurious "(cached)" in configure output.
28814         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
28815         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
28816         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28817         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28818         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28819         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
28820         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28821         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
28822         Reported by Eric Blake.
28823
28824 2009-02-27  Eric Blake  <ebb9@byu.net>
28825
28826         printf: fix regression in previous patch
28827         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
28828
28829 2009-02-27  Bruno Haible  <bruno@clisp.org>
28830
28831         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
28832         value.
28833         * lib/stdint.in.h: Likewise.
28834         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
28835
28836 2009-02-27  Eric Blake  <ebb9@byu.net>
28837
28838         doc: mention more functions added in cygwin 1.7.0
28839         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
28840         addition.
28841         * doc/posix-functions/open_wmemstream.texi: Likewise.
28842         * doc/posix-functions/wcsnlen.texi: Likewise.
28843         * doc/posix-functions/wcsnrtombs.texi: Likewise.
28844         * doc/posix-functions/wcstod.texi: Likewise.
28845         * doc/posix-functions/wcstof.texi: Likewise.
28846         * doc/posix-functions/wcstoimax.texi: Likewise.
28847         * doc/posix-functions/wcstok.texi: Likewise.
28848         * doc/posix-functions/wcstoumax.texi: Likewise.
28849
28850         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
28851         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
28852         * doc/posix-functions/fprintf.texi: Update.
28853         * doc/posix-functions/printf.texi: Update.
28854         * doc/posix-functions/snprintf.texi: Update.
28855         * doc/posix-functions/sprintf.texi: Update.
28856         * doc/posix-functions/vfprintf.texi: Update.
28857         * doc/posix-functions/vprintf.texi: Update.
28858         * doc/posix-functions/vsnprintf.texi: Update.
28859         * doc/posix-functions/vsprintf.texi: Update.
28860         * doc/glibc-functions/obstack_printf.texi: Update.
28861         * doc/glibc-functions/obstack_vprintf.texi: Update.
28862
28863 2009-02-26  Eric Blake  <ebb9@byu.net>
28864
28865         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
28866         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
28867         compilation bug by using runtime conversion.
28868         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
28869         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
28870         * modules/ceill-tests (Files): Use nan.h.
28871         * modules/floorl-tests (Files): Likewise.
28872         * modules/frexpl-tests (Files): Likewise.
28873         * modules/isnanl-tests (Files): Likewise.
28874         * modules/ldexpl-tests (Files): Likewise.
28875         * modules/roundl-tests (Files): Likewise.
28876         * modules/truncl-tests (Files): Likewise.
28877         * tests/test-ceill.c (main): Use a working NaN.
28878         * tests/test-floorl.c (main): Likewise.
28879         * tests/test-frexpl.c (main): Likewise.
28880         * tests/test-isnan.c (test_long_double): Likewise.
28881         * tests/test-isnanl.h (main): Likewise.
28882         * tests/test-ldexpl.h (main): Likewise.
28883         * tests/test-roundl.h (main): Likewise.
28884         * tests/test-truncl.h (main): Likewise.
28885         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
28886
28887 2009-02-26  Eric Blake  <ebb9@byu.net>
28888             Bruno Haible  <bruno@clisp.org>
28889
28890         Work around a *printf bug with %ls on Solaris.
28891         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
28892         precision is specified, sprintf stops converting the wide string
28893         argument when the number of bytes that have been produced by this
28894         conversion equals or exceeds the precision.
28895         * doc/posix-functions/fprintf.texi: Update.
28896         * doc/posix-functions/printf.texi: Update.
28897         * doc/posix-functions/snprintf.texi: Update.
28898         * doc/posix-functions/sprintf.texi: Update.
28899         * doc/posix-functions/vfprintf.texi: Update.
28900         * doc/posix-functions/vprintf.texi: Update.
28901         * doc/posix-functions/vsnprintf.texi: Update.
28902         * doc/posix-functions/vsprintf.texi: Update.
28903         * doc/glibc-functions/obstack_printf.texi: Update.
28904         * doc/glibc-functions/obstack_vprintf.texi: Update.
28905
28906 2009-02-26  Eric Blake  <ebb9@byu.net>
28907
28908         stdlib: favor compiler check of random.h
28909         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
28910         to avoid an ObjC random.h installed by Swarm.
28911
28912 2009-02-26  Bruno Haible  <bruno@clisp.org>
28913
28914         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
28915         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
28916         Reported by Gary V. Vaughan <gary@gnu.org>.
28917
28918 2009-02-26  Bruno Haible  <bruno@clisp.org>
28919
28920         Fix *printf behaviour regarding the %ls directive.
28921         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
28922         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
28923         NEED_PRINTF_DIRECTIVE_LS.
28924         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
28925         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28926         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28927         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
28928         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
28929         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
28930         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
28931         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28932         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28933         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28934         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28935         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
28936         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28937         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28938         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28939         * doc/posix-functions/fprintf.texi: Update.
28940         * doc/posix-functions/printf.texi: Update.
28941         * doc/posix-functions/snprintf.texi: Update.
28942         * doc/posix-functions/sprintf.texi: Update.
28943         * doc/posix-functions/vfprintf.texi: Update.
28944         * doc/posix-functions/vprintf.texi: Update.
28945         * doc/posix-functions/vsnprintf.texi: Update.
28946         * doc/posix-functions/vsprintf.texi: Update.
28947         * doc/glibc-functions/obstack_printf.texi: Update.
28948         * doc/glibc-functions/obstack_vprintf.texi: Update.
28949         Reported by Eric Blake.
28950
28951 2009-02-25  Bruno Haible  <bruno@clisp.org>
28952
28953         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
28954         with known value.
28955         Reported by Gary V. Vaughan <gary@gnu.org>.
28956
28957 2009-02-25  Bruno Haible  <bruno@clisp.org>
28958
28959         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
28960         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
28961         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
28962         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
28963         Reported by Gary V. Vaughan <gary@gnu.org>.
28964
28965 2009-02-25  Bruno Haible  <bruno@clisp.org>
28966
28967         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
28968         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
28969         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
28970         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
28971         Reported by Gary V. Vaughan <gary@gnu.org>.
28972
28973 2009-02-25  Eric Blake  <ebb9@byu.net>
28974
28975         tests: skip fseek/ftell tests if ungetc is broken
28976         * m4/ungetc.m4: New file.
28977         * modules/fseek-tests: Split test, so ungetc dependency is
28978         separate from rest of test.
28979         * modules/fseeko-tests: Likewise.
28980         * modules/ftell-tests: Likewise.
28981         * modules/ftello-tests: Likewise.
28982         * tests/test-fseek.c (main): Isolate ungetc dependency.
28983         * tests/test-fseeko.c (main): Likewise.
28984         * tests/test-ftell.c (main): Likewise.
28985         * tests/test-ftello.c (main): Likewise.
28986         * tests/test-fseek2.sh: New file.
28987         * tests/test-fseeko2.sh: Likewise.
28988         * tests/test-ftell2.sh: Likewise.
28989         * tests/test-ftello2.sh: Likewise.
28990
28991 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
28992
28993         test-getaddrinfo: fix usage of skip return code 77
28994         * tests/test-gettaddrinfo.c: Return skip code 77 only
28995         for first occurance of skip (4x77 is not 77)
28996
28997 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
28998
28999         strtod: avoid C99 decl-after-statement
29000         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
29001
29002 2009-02-24  Eric Blake  <ebb9@byu.net>
29003
29004         strtod: detect HP-UX 11.31 bug
29005         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
29006         Reported by Gary V. Vaughan.
29007
29008 2009-02-23  Bruno Haible  <bruno@clisp.org>
29009
29010         Fix invalid read past end of memory block.
29011         * lib/vasnprintf.c (DCHAR_SET): Define.
29012         (local_wcslen): Define only when needed.
29013         (local_strnlen, local_wcsnlen): New functions.
29014         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
29015         directives that involve a conversion ourselves.
29016         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
29017         wcsnlen, mbrtowc, wcrtomb.
29018         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
29019         * tests/test-vasprintf-posix.c (test_function): Likewise.
29020         * tests/test-snprintf-posix.h (test_function): Likewise.
29021         * tests/test-sprintf-posix.h (test_function): Likewise.
29022         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29023
29024 2009-02-22  Bruno Haible  <bruno@clisp.org>
29025
29026         Implement new clarified decomposition of Hangul syllables.
29027         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
29028         of type LTV, return only a pairwise decomposition.
29029         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
29030         Likewise.
29031         * tests/uninorm/test-decomposition.c (main): Updated expected result.
29032         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
29033         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
29034
29035 2009-02-22  Bruno Haible  <bruno@clisp.org>
29036
29037         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
29038         zero-length results and shrink excess allocated memory.
29039         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
29040         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
29041         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
29042         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
29043         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
29044         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
29045         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
29046         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
29047         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
29048         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
29049         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
29050         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
29051
29052 2009-02-21  Bruno Haible  <bruno@clisp.org>
29053
29054         * doc/gnulib.texi: Include safe-alloc.texi earlier.
29055         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
29056         spaces after a period. Put a space between a macro name and its
29057         argument list. Trivial rewordings.
29058         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
29059         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
29060         (main): Return 0 explicitly.
29061
29062 2009-02-21  Bruno Haible  <bruno@clisp.org>
29063
29064         Tests for module 'uninorm/filter'.
29065         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
29066         * modules/uninorm/filter-tests: New file.
29067
29068         New module 'uninorm/filter'.
29069         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
29070         uninorm_filter_flush, uninorm_filter_free): New declarations.
29071         * lib/uninorm/uninorm-filter.c: New file.
29072         * modules/uninorm/filter: New file.
29073
29074 2009-02-21  Bruno Haible  <bruno@clisp.org>
29075
29076         Tests for module 'uninorm/nfkc'.
29077         * tests/uninorm/test-nfkc.c: New file.
29078         * tests/uninorm/test-u8-nfkc.c: New file.
29079         * tests/uninorm/test-u16-nfkc.c: New file.
29080         * tests/uninorm/test-u32-nfkc.c: New file.
29081         * tests/uninorm/test-u32-nfkc-big.sh: New file.
29082         * tests/uninorm/test-u32-nfkc-big.c: New file.
29083         * modules/uninorm/nfkc-tests: New file.
29084
29085         New module 'uninorm/nfkc'.
29086         * lib/uninorm/nfkc.c: New file.
29087         * modules/uninorm/nfkc: New file.
29088
29089         Tests for module 'uninorm/nfkd'.
29090         * tests/uninorm/test-nfkd.c: New file.
29091         * tests/uninorm/test-u8-nfkd.c: New file.
29092         * tests/uninorm/test-u16-nfkd.c: New file.
29093         * tests/uninorm/test-u32-nfkd.c: New file.
29094         * tests/uninorm/test-u32-nfkd-big.sh: New file.
29095         * tests/uninorm/test-u32-nfkd-big.c: New file.
29096         * modules/uninorm/nfkd-tests: New file.
29097
29098         New module 'uninorm/nfkd'.
29099         * lib/uninorm/nfkd.c: New file.
29100         * modules/uninorm/nfkd: New file.
29101
29102         Tests for module 'uninorm/nfc'.
29103         * tests/uninorm/test-nfc.c: New file.
29104         * tests/uninorm/test-u8-nfc.c: New file.
29105         * tests/uninorm/test-u16-nfc.c: New file.
29106         * tests/uninorm/test-u32-nfc.c: New file.
29107         * tests/uninorm/test-u32-nfc-big.sh: New file.
29108         * tests/uninorm/test-u32-nfc-big.c: New file.
29109         * modules/uninorm/nfc-tests: New file.
29110
29111         New module 'uninorm/nfc'.
29112         * lib/uninorm/nfc.c: New file.
29113         * modules/uninorm/nfc: New file.
29114
29115         Tests for module 'uninorm/nfd'.
29116         * tests/uninorm/test-nfd.c: New file.
29117         * tests/uninorm/test-u8-nfd.c: New file.
29118         * tests/uninorm/test-u16-nfd.c: New file.
29119         * tests/uninorm/test-u32-nfd.c: New file.
29120         * tests/uninorm/test-u32-nfd-big.sh: New file.
29121         * tests/uninorm/test-u32-nfd-big.c: New file.
29122         * tests/uninorm/test-u32-normalize-big.h: New file.
29123         * tests/uninorm/test-u32-normalize-big.c: New file.
29124         * tests/uninorm/NormalizationTest.txt: New file, created from
29125         Unicode 5.1.0 NormalizationTest.txt.
29126         * modules/uninorm/nfd-tests: New file.
29127
29128         New module 'uninorm/nfd'.
29129         * lib/uninorm/nfd.c: New file.
29130         * modules/uninorm/nfd: New file.
29131
29132         New module 'uninorm/u32-normalize'.
29133         * lib/uninorm/u32-normalize.c: New file.
29134         * modules/uninorm/u32-normalize: New file.
29135
29136         New module 'uninorm/u16-normalize'.
29137         * lib/uninorm/u16-normalize.c: New file.
29138         * modules/uninorm/u16-normalize: New file.
29139
29140         New module 'uninorm/u8-normalize'.
29141         * lib/uninorm/u8-normalize.c: New file.
29142         * lib/uninorm/normalize-internal.h: New file.
29143         * lib/uninorm/u-normalize-internal.h: New file.
29144         * modules/uninorm/u8-normalize: New file.
29145
29146         New module 'uninorm/decompose-internal'.
29147         * lib/uninorm/decompose-internal.c: New file.
29148         * modules/uninorm/decompose-internal: New file.
29149
29150         Tests for module 'uninorm/composition'.
29151         * tests/uninorm/test-composition.c: New file.
29152         * modules/uninorm/composition-tests: New file.
29153
29154         New module 'uninorm/composition'.
29155         * lib/uninorm/composition.c: New file.
29156         * lib/uninorm/composition-table.gperf: New file, generated by
29157         gen-uni-tables.
29158         * modules/uninorm/composition: New file.
29159
29160         Tests for module 'uninorm/compat-decomposition'.
29161         * tests/uninorm/test-compat-decomposition.c: New file.
29162         * modules/uninorm/compat-decomposition-tests: New file.
29163
29164         New module 'uninorm/compat-decomposition'.
29165         * lib/uninorm/decompose-internal.h: New file.
29166         * lib/uninorm/compat-decomposition.c: New file.
29167         * modules/uninorm/compat-decomposition: New file.
29168
29169         Tests for module 'uninorm/canonical-decomposition'.
29170         * tests/uninorm/test-canonical-decomposition.c: New file.
29171         * modules/uninorm/canonical-decomposition-tests: New file.
29172
29173         New module 'uninorm/canonical-decomposition'.
29174         * lib/uninorm/canonical-decomposition.c: New file.
29175         * modules/uninorm/canonical-decomposition: New file.
29176
29177         Tests for module 'uninorm/decomposition'.
29178         * tests/uninorm/test-decomposition.c: New file.
29179         * modules/uninorm/decomposition-tests: New file.
29180
29181         New module 'uninorm/decomposition'.
29182         * lib/uninorm/decomposition.c: New file.
29183         * modules/uninorm/decomposition: New file.
29184
29185         New module 'uninorm/decomposition-table'.
29186         * lib/uninorm/decomposition-table.h: New file.
29187         * lib/uninorm/decomposition-table.c: New file.
29188         * lib/uninorm/decomposition-table1.h: New file, generated by
29189         gen-uni-tables.
29190         * lib/uninorm/decomposition-table2.h: New file, generated by
29191         gen-uni-tables.
29192         * modules/uninorm/decomposition-table: New file.
29193
29194         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
29195         (UC_DECOMP_*): New enumeration items.
29196         (get_decomposition): New function.
29197         (struct decomp_table): New type.
29198         (output_decomposition, output_decomposition_tables): New functions.
29199         (unicode_composition_exclusions): New variable.
29200         (fill_composition_exclusions, debug_output_composition_tables): New
29201         functions.
29202         (main): Accept one more argument. Invoke fill_composition_exclusions.
29203         Output decomposition and composition tables.
29204
29205         New module 'uninorm/base'.
29206         * lib/uninorm.h: New file.
29207         * lib/unictype.h: Update comment.
29208         * modules/uninorm/base: New file.
29209
29210 2009-02-21  David Lutterkort  <lutter@redhat.com>
29211
29212         Tests for module 'safe-alloc'.
29213         * tests/test-safe-alloc.c: New file.
29214         * modules/safe-alloc-tests: New file.
29215
29216         New module 'safe-alloc'.
29217         * lib/safe-alloc.h: New file.
29218         * lib/safe-alloc.c: New file.
29219         * m4/safe-alloc.m4: New file.
29220         * modules/safe-alloc: New file.
29221         * doc/safe-alloc.texi: New file.
29222         * doc/gnulib.texi: Include it.
29223         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
29224         safe-alloc.
29225
29226 2009-02-18  Bruno Haible  <bruno@clisp.org>
29227
29228         Fix link error on non-glibc systems.
29229         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
29230         variable.
29231         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29232
29233 2009-02-18  Jim Meyering  <meyering@redhat.com>
29234
29235         fts: avoid used-uninitialized error due to recent change
29236         * lib/fts.c (fts_read): Guard uses of the new member,
29237         parent->fts_n_dirs_remaining, since it's not relevant for
29238         the parent of a directory specified on the command-line.
29239
29240 2009-02-17  James Youngman  <jay@gnu.org>
29241             Bruno Haible  <bruno@clisp.org>
29242
29243         * m4/include_next.m4: Reformulate comment.
29244
29245 2009-02-16  Jim Meyering  <meyering@redhat.com>
29246
29247         fts: add #if guards so that the fts_lgpl module still builds
29248         * lib/fts.c: Guard just-added hash-table-using parts with
29249         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
29250         Reported by Simon Josefsson.
29251
29252 2009-02-15  Bruno Haible  <bruno@clisp.org>
29253
29254         * modules/array-mergesort-tests: New file.
29255         * tests/test-array-mergesort.c: New file.
29256
29257         New module 'array-mergesort'.
29258         * modules/array-mergesort: New file.
29259         * lib/array-mergesort.h: New file.
29260
29261 2009-02-15  Bruno Haible  <bruno@clisp.org>
29262
29263         Fix 2009-02-07 commit.
29264         * lib/gen-uni-tables.c (output_predicate, output_category,
29265         output_combclass, output_bidi_category, output_decimal_digit,
29266         output_digit, output_numeric, output_mirror, output_scripts,
29267         output_ident_category, output_simple_mapping): Fix format directives.
29268         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
29269
29270 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
29271
29272         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
29273         fixes are available from IBM.
29274
29275 2009-02-13  Jim Meyering  <meyering@redhat.com>
29276
29277         fts: arrange not to stat non-directories in more cases
29278         This makes GNU find (when it doesn't need to stat each file)
29279         *much* more efficient at traversing reiserfs file systems.
29280         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
29281         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
29282         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
29283         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
29284         (leaf_optimization_applies): New function.
29285         (LCO_hash, LCO_compare): New helper functions.
29286         (link_count_optimize_ok): New function.
29287         (fts_stat): Initialize new member (if dir).
29288         (fts_read): Decrement parent's fts_n_dirs_remaining count if
29289         we've just stat'ed a directory.  Skip the stat call when possible.
29290         ---
29291         Note this AFS-related exchange:
29292         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
29293         and note find's pioctl call in find/fstype.c.
29294         But that is necessary only if you want to enable the
29295         optimization for AFS, and for now, I don't.
29296
29297         fts: move a function definition "up" (no semantic change)
29298         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
29299         "up" to precede upcoming use of a related function.
29300
29301 2009-02-11  Jim Meyering  <meyering@redhat.com>
29302
29303         fts: correct internal computation of nlinks (optimization-related)
29304         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
29305         whether the current entry is a directory, so don't test it.
29306
29307 2009-02-10  Bruno Haible  <bruno@clisp.org>
29308
29309         Tests for module 'uniwbrk/ulc-wordbreaks'.
29310         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
29311         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
29312         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
29313
29314         Tests for module 'uniwbrk/u32-wordbreaks'.
29315         * modules/uniwbrk/u32-wordbreaks-tests: New file.
29316         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
29317
29318         Tests for module 'uniwbrk/u16-wordbreaks'.
29319         * modules/uniwbrk/u16-wordbreaks-tests: New file.
29320         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
29321
29322         Tests for module 'uniwbrk/u8-wordbreaks'.
29323         * modules/uniwbrk/u8-wordbreaks-tests: New file.
29324         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
29325
29326 2009-02-10  Bruno Haible  <bruno@clisp.org>
29327
29328         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
29329         property.
29330         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
29331         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
29332         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
29333
29334 2009-02-10  Simon Josefsson  <simon@josefsson.org>
29335
29336         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
29337         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
29338
29339 2009-02-10  Bruno Haible  <bruno@clisp.org>
29340
29341         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
29342         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
29343         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
29344         * lib/unilbrk/u8-possible-linebreaks.c: Update.
29345         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
29346         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
29347
29348 2009-02-09  Simon Josefsson  <simon@josefsson.org>
29349
29350         * lib/sockets.h (gl_fd_to_handle): New function.
29351
29352         * tests/test-sockets.c: Call gl_fd_to_handle.
29353
29354 2009-02-09  Bruno Haible  <bruno@clisp.org>
29355
29356         * doc/havelib.texi: Document the conventions on bi-arch systems.
29357
29358 2009-02-08  Bruno Haible  <bruno@clisp.org>
29359
29360         Document the AC_LIB_LINKFLAGS macro.
29361         * doc/havelib.texi: New file, mostly written on 2005-05-24.
29362         * doc/gnulib.texi: Include it.
29363
29364 2009-02-08  Bruno Haible  <bruno@clisp.org>
29365
29366         Fix wrong order of sections, compared to TOC.
29367         * doc/gnulib.texi: Include relocatable-maint.texi after the
29368         "Regular expressions" node, not before.
29369
29370 2009-02-08  Bruno Haible  <bruno@clisp.org>
29371
29372         Tests for module 'unicase/totitle'.
29373         * modules/unicase/totitle-tests: New file.
29374
29375         Tests for module 'unicase/tolower'.
29376         * modules/unicase/tolower-tests: New file.
29377
29378         Tests for module 'unicase/toupper'.
29379         * modules/unicase/toupper-tests: New file.
29380         * tests/unicase/test-mapping-part1.h: New file.
29381         * tests/unicase/test-mapping-part2.h: New file.
29382
29383         New module 'unicase/totitle'.
29384         * modules/unicase/totitle: New file.
29385         * lib/unicase/totitle.c: New file.
29386
29387         New module 'unicase/tolower'.
29388         * modules/unicase/tolower: New file.
29389         * lib/unicase/tolower.c: New file.
29390
29391         New module 'unicase/toupper'.
29392         * modules/unicase/toupper: New file.
29393         * lib/unicase/toupper.c: New file.
29394         * lib/unicase/simple-mapping.h: New file.
29395
29396         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
29397         (mapping_table): New structure.
29398         (output_simple_mapping): New function.
29399         (main): Invoke output_simple_mapping_test and output_simple_mapping.
29400         * modules/gen-uni-tables (Description): Update.
29401         * lib/unicase/toupper.h: New file, automatically generated by
29402         gen-uni-tables.
29403         * lib/unicase/tolower.h: New file, automatically generated by
29404         gen-uni-tables.
29405         * lib/unicase/totitle.h: New file, automatically generated by
29406         gen-uni-tables.
29407         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
29408         gen-uni-tables.
29409         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
29410         gen-uni-tables.
29411         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
29412         gen-uni-tables.
29413
29414         New module 'unicase/base'.
29415         * modules/unicase/base: New file.
29416         * lib/unicase.h: New file.
29417
29418 2009-02-08  Bruno Haible  <bruno@clisp.org>
29419
29420         New module 'uniwbrk/ulc-wordbreaks'.
29421         * modules/uniwbrk/ulc-wordbreaks: New file.
29422         * lib/uniwbrk/ulc-wordbreaks.c: New file.
29423
29424         New module 'uniwbrk/u32-wordbreaks'.
29425         * modules/uniwbrk/u32-wordbreaks: New file.
29426         * lib/uniwbrk/u32-wordbreaks.c: New file.
29427
29428         New module 'uniwbrk/u16-wordbreaks'.
29429         * modules/uniwbrk/u16-wordbreaks: New file.
29430         * lib/uniwbrk/u16-wordbreaks.c: New file.
29431
29432         New module 'uniwbrk/u8-wordbreaks'.
29433         * modules/uniwbrk/u8-wordbreaks: New file.
29434         * lib/uniwbrk/u8-wordbreaks.c: New file.
29435         * lib/uniwbrk/u-wordbreaks.h: New file.
29436
29437         New module 'uniwbrk/table'.
29438         * modules/uniwbrk/table: New file.
29439         * lib/uniwbrk/wbrktable.h: New file.
29440         * lib/uniwbrk/wbrktable.c: New file.
29441
29442         New module 'uniwbrk/wordbreak-property'.
29443         * modules/uniwbrk/wordbreak-property: New file.
29444         * lib/uniwbrk/wordbreak-property.c: New file.
29445
29446         * lib/gen-uni-tables.c (WBP_*): New enum items.
29447         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
29448         (unicode_org_wbp): New variable.
29449         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
29450         New functions.
29451         (wbp_table): New structure.
29452         (output_wbp, output_wbrk_tables): New functions.
29453         (main): Accept additional argument. Invoke fill_org_wbp,
29454         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
29455         output_wbrk_tables.
29456         * modules/gen-uni-tables (Description): Update.
29457         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
29458         gen-uni-tables.
29459
29460         New module 'uniwbrk/base'.
29461         * modules/uniwbrk/base: New file.
29462         * lib/uniwbrk.h: New file.
29463
29464 2009-02-08  Bruno Haible  <bruno@clisp.org>
29465
29466         Update to Unicode 5.1.0.
29467         * lib/gen-uni-tables.c (is_property_alphabetic): Include
29468         U+2185..U+2188.
29469         (is_property_default_ignorable_code_point): Don't include characters
29470         of category Cc or Cs and not-a-characters.
29471         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
29472         U+0D79, U+109E, U+109F, U+A60C.
29473         * lib/unictype/bidi_of.h: Regenerated.
29474         * lib/unictype/blocks.h: Regenerated.
29475         * lib/unictype/categ_C.h: Regenerated.
29476         * lib/unictype/categ_Cf.h: Regenerated.
29477         * lib/unictype/categ_Cn.h: Regenerated.
29478         * lib/unictype/categ_L.h: Regenerated.
29479         * lib/unictype/categ_Ll.h: Regenerated.
29480         * lib/unictype/categ_Lm.h: Regenerated.
29481         * lib/unictype/categ_Lo.h: Regenerated.
29482         * lib/unictype/categ_Lu.h: Regenerated.
29483         * lib/unictype/categ_M.h: Regenerated.
29484         * lib/unictype/categ_Mc.h: Regenerated.
29485         * lib/unictype/categ_Me.h: Regenerated.
29486         * lib/unictype/categ_Mn.h: Regenerated.
29487         * lib/unictype/categ_N.h: Regenerated.
29488         * lib/unictype/categ_Nd.h: Regenerated.
29489         * lib/unictype/categ_Nl.h: Regenerated.
29490         * lib/unictype/categ_No.h: Regenerated.
29491         * lib/unictype/categ_P.h: Regenerated.
29492         * lib/unictype/categ_Pd.h: Regenerated.
29493         * lib/unictype/categ_Pe.h: Regenerated.
29494         * lib/unictype/categ_Pf.h: Regenerated.
29495         * lib/unictype/categ_Pi.h: Regenerated.
29496         * lib/unictype/categ_Po.h: Regenerated.
29497         * lib/unictype/categ_Ps.h: Regenerated.
29498         * lib/unictype/categ_S.h: Regenerated.
29499         * lib/unictype/categ_Sk.h: Regenerated.
29500         * lib/unictype/categ_Sm.h: Regenerated.
29501         * lib/unictype/categ_So.h: Regenerated.
29502         * lib/unictype/categ_of.h: Regenerated.
29503         * lib/unictype/combining.h: Regenerated.
29504         * lib/unictype/ctype_alnum.h: Regenerated.
29505         * lib/unictype/ctype_alpha.h: Regenerated.
29506         * lib/unictype/ctype_graph.h: Regenerated.
29507         * lib/unictype/ctype_lower.h: Regenerated.
29508         * lib/unictype/ctype_print.h: Regenerated.
29509         * lib/unictype/ctype_punct.h: Regenerated.
29510         * lib/unictype/ctype_upper.h: Regenerated.
29511         * lib/unictype/decdigit.h: Regenerated.
29512         * lib/unictype/digit.h: Regenerated.
29513         * lib/unictype/mirror.h: Regenerated.
29514         * lib/unictype/numeric.h: Regenerated.
29515         * lib/unictype/pr_alphabetic.h: Regenerated.
29516         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
29517         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
29518         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
29519         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
29520         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
29521         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
29522         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
29523         * lib/unictype/pr_combining.h: Regenerated.
29524         * lib/unictype/pr_dash.h: Regenerated.
29525         * lib/unictype/pr_decimal_digit.h: Regenerated.
29526         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
29527         * lib/unictype/pr_deprecated.h: Regenerated.
29528         * lib/unictype/pr_diacritic.h: Regenerated.
29529         * lib/unictype/pr_extender.h: Regenerated.
29530         * lib/unictype/pr_format_control.h: Regenerated.
29531         * lib/unictype/pr_grapheme_base.h: Regenerated.
29532         * lib/unictype/pr_grapheme_extend.h: Regenerated.
29533         * lib/unictype/pr_grapheme_link.h: Regenerated.
29534         * lib/unictype/pr_id_continue.h: Regenerated.
29535         * lib/unictype/pr_id_start.h: Regenerated.
29536         * lib/unictype/pr_ideographic.h: Regenerated.
29537         * lib/unictype/pr_ignorable_control.h: Regenerated.
29538         * lib/unictype/pr_lowercase.h: Regenerated.
29539         * lib/unictype/pr_math.h: Regenerated.
29540         * lib/unictype/pr_numeric.h: Regenerated.
29541         * lib/unictype/pr_other_alphabetic.h: Regenerated.
29542         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
29543         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
29544         * lib/unictype/pr_other_id_continue.h: Regenerated.
29545         * lib/unictype/pr_other_lowercase.h: Regenerated.
29546         * lib/unictype/pr_other_math.h: Regenerated.
29547         * lib/unictype/pr_punctuation.h: Regenerated.
29548         * lib/unictype/pr_sentence_terminal.h: Regenerated.
29549         * lib/unictype/pr_soft_dotted.h: Regenerated.
29550         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
29551         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
29552         * lib/unictype/pr_unified_ideograph.h: Regenerated.
29553         * lib/unictype/pr_uppercase.h: Regenerated.
29554         * lib/unictype/pr_xid_continue.h: Regenerated.
29555         * lib/unictype/pr_xid_start.h: Regenerated.
29556         * lib/unictype/pr_zero_width.h: Regenerated.
29557         * lib/unictype/scripts.h: Regenerated.
29558         * lib/unictype/scripts_byname.gperf: Regenerated.
29559         * lib/unictype/sy_java_ident.h: Regenerated.
29560         * lib/unilbrk/lbrkprop1.h: Regenerated.
29561         * lib/unilbrk/lbrkprop2.h: Regenerated.
29562         * tests/unictype/test-categ_C.c: Regenerated.
29563         * tests/unictype/test-categ_Cf.c: Regenerated.
29564         * tests/unictype/test-categ_Cn.c: Regenerated.
29565         * tests/unictype/test-categ_L.c: Regenerated.
29566         * tests/unictype/test-categ_Ll.c: Regenerated.
29567         * tests/unictype/test-categ_Lm.c: Regenerated.
29568         * tests/unictype/test-categ_Lo.c: Regenerated.
29569         * tests/unictype/test-categ_Lu.c: Regenerated.
29570         * tests/unictype/test-categ_M.c: Regenerated.
29571         * tests/unictype/test-categ_Mc.c: Regenerated.
29572         * tests/unictype/test-categ_Me.c: Regenerated.
29573         * tests/unictype/test-categ_Mn.c: Regenerated.
29574         * tests/unictype/test-categ_N.c: Regenerated.
29575         * tests/unictype/test-categ_Nd.c: Regenerated.
29576         * tests/unictype/test-categ_Nl.c: Regenerated.
29577         * tests/unictype/test-categ_No.c: Regenerated.
29578         * tests/unictype/test-categ_P.c: Regenerated.
29579         * tests/unictype/test-categ_Pd.c: Regenerated.
29580         * tests/unictype/test-categ_Pe.c: Regenerated.
29581         * tests/unictype/test-categ_Pf.c: Regenerated.
29582         * tests/unictype/test-categ_Pi.c: Regenerated.
29583         * tests/unictype/test-categ_Po.c: Regenerated.
29584         * tests/unictype/test-categ_Ps.c: Regenerated.
29585         * tests/unictype/test-categ_S.c: Regenerated.
29586         * tests/unictype/test-categ_Sk.c: Regenerated.
29587         * tests/unictype/test-categ_Sm.c: Regenerated.
29588         * tests/unictype/test-categ_So.c: Regenerated.
29589         * tests/unictype/test-ctype_alnum.c: Regenerated.
29590         * tests/unictype/test-ctype_alpha.c: Regenerated.
29591         * tests/unictype/test-ctype_graph.c: Regenerated.
29592         * tests/unictype/test-ctype_lower.c: Regenerated.
29593         * tests/unictype/test-ctype_print.c: Regenerated.
29594         * tests/unictype/test-ctype_punct.c: Regenerated.
29595         * tests/unictype/test-ctype_upper.c: Regenerated.
29596         * tests/unictype/test-decdigit.h: Regenerated.
29597         * tests/unictype/test-digit.h: Regenerated.
29598         * tests/unictype/test-numeric.h: Regenerated.
29599         * tests/unictype/test-pr_alphabetic.c: Regenerated.
29600         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
29601         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
29602         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
29603         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
29604         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
29605         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
29606         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
29607         * tests/unictype/test-pr_combining.c: Regenerated.
29608         * tests/unictype/test-pr_dash.c: Regenerated.
29609         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
29610         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
29611         * tests/unictype/test-pr_deprecated.c: Regenerated.
29612         * tests/unictype/test-pr_diacritic.c: Regenerated.
29613         * tests/unictype/test-pr_extender.c: Regenerated.
29614         * tests/unictype/test-pr_format_control.c: Regenerated.
29615         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
29616         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
29617         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
29618         * tests/unictype/test-pr_id_continue.c: Regenerated.
29619         * tests/unictype/test-pr_id_start.c: Regenerated.
29620         * tests/unictype/test-pr_ideographic.c: Regenerated.
29621         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
29622         * tests/unictype/test-pr_lowercase.c: Regenerated.
29623         * tests/unictype/test-pr_math.c: Regenerated.
29624         * tests/unictype/test-pr_numeric.c: Regenerated.
29625         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
29626         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
29627         Regenerated.
29628         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
29629         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
29630         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
29631         * tests/unictype/test-pr_other_math.c: Regenerated.
29632         * tests/unictype/test-pr_punctuation.c: Regenerated.
29633         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
29634         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
29635         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
29636         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
29637         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
29638         * tests/unictype/test-pr_uppercase.c: Regenerated.
29639         * tests/unictype/test-pr_xid_continue.c: Regenerated.
29640         * tests/unictype/test-pr_xid_start.c: Regenerated.
29641         * tests/unictype/test-pr_zero_width.c: Regenerated.
29642
29643         Update to Unicode 5.1.0.
29644         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
29645         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
29646         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
29647         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
29648         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
29649         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
29650         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
29651         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
29652         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
29653         (nonspacing_table_ind): Update.
29654         * tests/uniwidth/test-uc_width2.sh: Update expected result.
29655
29656         Update to Unicode 5.1.0.
29657         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
29658         code transform.
29659         * lib/uniname/uniname.c (unicode_character_name,
29660         unicode_name_character): Add the range 0x1Fxxx to the code transform.
29661         * lib/uniname/uninames.h: Regenerated.
29662         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
29663
29664 2009-02-07  Bruno Haible  <bruno@clisp.org>
29665
29666         Merge gen-ctype and gen-lbrk into a single program.
29667         * lib/gen-uni-tables.c: New file, incorporating
29668         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
29669         Add directory prefixes to the names of the generated files.
29670         * lib/unictype/gen-ctype.c: Remove file.
29671         * lib/unilbrk/gen-lbrk.c: Remove file.
29672         * modules/gen-uni-tables: New file.
29673         * modules/unictype/gen-ctype: Remove file.
29674         * modules/unilbrk/gen-lbrk: Remove file.
29675
29676 2009-02-07  Bruno Haible  <bruno@clisp.org>
29677
29678         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
29679
29680         New module 'unistr/u32-strcoll'.
29681         * modules/unistr/u32-strcoll: New file.
29682         * lib/unistr/u32-strcoll.c: New file.
29683
29684         New module 'unistr/u16-strcoll'.
29685         * modules/unistr/u16-strcoll: New file.
29686         * lib/unistr/u16-strcoll.c: New file.
29687
29688         New module 'unistr/u8-strcoll'.
29689         * modules/unistr/u8-strcoll: New file.
29690         * lib/unistr/u8-strcoll.c: New file.
29691         * lib/unistr/u-strcoll.h: New file.
29692
29693 2009-02-07  Bruno Haible  <bruno@clisp.org>
29694
29695         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
29696         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
29697         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
29698         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
29699         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
29700         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
29701
29702 2009-02-07  Bruno Haible  <bruno@clisp.org>
29703
29704         Make 64-bit clean.
29705         * lib/unictype/gen-ctype.c (output_predicate, output_category,
29706         output_combclass, output_bidi_category, output_decimal_digit,
29707         output_digit, output_numeric, output_mirror, output_scripts,
29708         output_ident_category): Use proper width specifier in format strings.
29709
29710 2009-02-07  Bruno Haible  <bruno@clisp.org>
29711
29712         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
29713         failure behaviour.
29714
29715 2009-02-07  Jim Meyering  <meyering@redhat.com>
29716
29717         regex: avoid compilation failure with upcoming gcc-4.4
29718         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
29719         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
29720         "... error: integer overflow in preprocessor expression".
29721
29722 2009-02-05  Ben Pfaff  <blp@gnu.org>
29723
29724         Fix link errors on Windows when close module is used.
29725         * modules/close: Add $(LIB_CLOSE) to Link section.
29726         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
29727         $(LIB_CLOSE) on Windows.
29728
29729 2009-02-05  Jim Meyering  <meyering@redhat.com>
29730
29731         still avoid unused-parameter warnings, but do it cleanly
29732         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
29733         (get_fs_usage): Cast to void instead.
29734         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
29735         (dev_from_mount_options, read_file_system_list): Cast to void.
29736         Prompted by Bruno Haible.
29737
29738 2009-02-04  Jim Meyering  <meyering@redhat.com>
29739
29740         fsusage.c: correct copyright year
29741         * lib/fsusage.c: Reflect year in which the change is pushed into
29742
29743         avoid misc. warnings
29744         * lib/fsusage.c (UNUSED_PARAM): Define.
29745         (get_fs_usage): Mark parameter "disk" as unused.
29746         * lib/getugroups.c (getgrent): Use "void" in prototype.
29747         * lib/mountlist.c: Mark unused parameters.
29748         (read_file_system_list): Declare a local with "const".
29749         * lib/nanosleep.c (getnow): Declare static.
29750         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
29751
29752         dirfd: set errno upon failure
29753         * lib/dirfd.c: Include <errno.h>.
29754         Set errno to ENOTSUP when returning -1.
29755         * modules/dirfd (Depends-on): Add errno.
29756         Suggested by John Kodis <kodis@comcast.net>.
29757
29758 2009-02-01  Bruno Haible  <bruno@clisp.org>
29759
29760         Don't assume sizeof (long) >= sizeof (void *).
29761         * lib/memcmp.c: Include stdint.h.
29762         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
29763         srcp2 to 'const byte *'.
29764         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
29765         types to uintptr_t.
29766         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
29767         * modules/memcmp (Depends-on): Add stdint.
29768         Reported by Ozkan Sezer <sezeroz@gmail.com>.
29769
29770 2009-01-30  Eric Blake  <ebb9@byu.net>
29771
29772         fix more require-before-expand issues
29773         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
29774         expand, AC_PROG_AWK.
29775         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
29776
29777 2009-01-28  Eric Blake  <ebb9@byu.net>
29778
29779         version-etc: use consistent URL formatting
29780         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
29781         Improve formatting.  Use fputs for string without %.
29782
29783 2009-01-28  Jim Meyering  <meyering@redhat.com>
29784
29785         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
29786         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
29787         "underquoted definition of NAME" from autoconf-2.59.
29788
29789 2009-01-28  Bruno Haible  <bruno@clisp.org>
29790
29791         * doc/gnulib.texi: Add "Obsolete modules" to index.
29792
29793 2009-01-28  Jim Meyering  <meyering@redhat.com>
29794
29795         useless-if-before-free: recognize more variants
29796         * build-aux/useless-if-before-free: Also recognize e.g.,
29797         if (NULL != p) free (p);
29798
29799 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
29800
29801         test-getaddrinfo: skip (don't fail) this test when there's no network
29802         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
29803         on the presumption that it means you lack network access.
29804
29805 2009-01-26  Jim Meyering  <meyering@redhat.com>
29806
29807         fflush: avoid warnings on modern systems
29808         * lib/fflush.c (rpl_fflush): Move declarations of locals,
29809         pos and result, into scopes where they're used.
29810
29811 2009-01-26  Eric Blake  <ebb9@byu.net>
29812
29813         Silence warning reintroduced by recent extensions patch.
29814         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
29815         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
29816         autoconf.
29817
29818         Backport improved autoconf semantics of AC_DEFUN_ONCE.
29819         * m4/00gnulib.m4: New file.
29820         * gnulib-tool (func_get_filelist): Always use it.
29821         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
29822         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
29823
29824 2009-01-25  Bruno Haible  <bruno@clisp.org>
29825
29826         Make test-quotearg work on MacOS X and AIX.
29827         * tests/test-quotearg.sh: New file.
29828         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
29829         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
29830         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
29831         include <libintl.h>.
29832         (fake_locale): Remove variable.
29833         (gettext, dgettext, dcgettext): Remove functions.
29834         (main): Instead of setting a fake locale, set a real locale. Call
29835         textdomain and bindtextdomain.
29836         * modules/quotearg-tests (Files): Add the new files.
29837         (Depends-on): Add gettext, setenv, unsetenv.
29838         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
29839         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
29840         Augment TESTS_ENVIRONMENT.
29841
29842 2009-01-25  Bruno Haible  <bruno@clisp.org>
29843
29844         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
29845         fr_FR.ISO8859-1 locale on MacOS X.
29846         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
29847         ja_JP.eucJP locale on MacOS X.
29848         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
29849         zh_CN.GB18030 locale on MacOS X.
29850
29851 2009-01-25  Bruno Haible  <bruno@clisp.org>
29852
29853         Avoid link errors on MacOS X 10.3.
29854         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
29855         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
29856
29857 2009-01-25  Bruno Haible  <bruno@clisp.org>
29858
29859         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
29860         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
29861         * modules/pipe (Files): Remove m4/posix_spawn.m4.
29862         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
29863         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
29864         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
29865         posix_spawnattr_init, posix_spawnattr_setsigmask,
29866         posix_spawnattr_setflags, posix_spawnattr_destroy.
29867
29868         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
29869         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
29870         * modules/execute (Files): Remove m4/posix_spawn.m4.
29871         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
29872         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
29873         posix_spawnattr_init, posix_spawnattr_setsigmask,
29874         posix_spawnattr_setflags, posix_spawnattr_destroy.
29875
29876 2009-01-25  Bruno Haible  <bruno@clisp.org>
29877
29878         * lib/glthread/threadlib.c: Include <stdlib.h>.
29879
29880 2009-01-25  Bruno Haible  <bruno@clisp.org>
29881
29882         * lib/glthread/threadlib.c (dummy): New declaration.
29883
29884 2009-01-25  Bruno Haible  <bruno@clisp.org>
29885
29886         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
29887         multibyte characters also for the GB18030 encoding. Don't crash when
29888         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
29889
29890 2009-01-25  Bruno Haible  <bruno@clisp.org>
29891
29892         Avoid redefining 'struct random_data' on OSF/1 5.1.
29893         * lib/stdlib.in.h: Include <random.h> if it exists.
29894         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
29895         HAVE_RANDOM_H. Include <random.h> when testing whether
29896         'struct random_data' exists.
29897         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
29898
29899 2009-01-25  Bruno Haible  <bruno@clisp.org>
29900
29901         Don't install charset.alias on MacOS X >= 10.3.
29902         * lib/localcharset.c (DARWIN7): New macro.
29903         (get_charset_aliases): Hardcode the result for Darwin7.
29904         * modules/localcharset (install-exec-local): Don't install
29905         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
29906
29907 2009-01-25  Bruno Haible  <bruno@clisp.org>
29908
29909         Don't install charset.alias on mingw and Cygwin.
29910         * modules/localcharset (install-exec-local): Don't install
29911         charset.alias on mingw and Cygwin, if the file does not yet exist.
29912         The result for these platforms is hardcoded in localcharset.c.
29913
29914 2009-01-25  Bruno Haible  <bruno@clisp.org>
29915
29916         Make it possible again to use AC_GNU_SOURCE together with gnulib.
29917         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
29918         before requiring AC_USE_SYSTEM_EXTENSIONS.
29919
29920 2009-01-25  Jim Meyering  <meyering@redhat.com>
29921
29922         c-strtod: avoid warnings
29923         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
29924         "assignment discards qualifiers from pointer target type" warnings.
29925
29926 2009-01-24  Bruno Haible  <bruno@clisp.org>
29927
29928         Add support for non-UTF-8 locales on MacOS X.
29929         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
29930         canonical encodings. For Darwin 7 and newer, don't map traditional
29931         encodings to UTF-8.
29932         Reported by Vincent Lefevre <vincent@vinc17.org>
29933         at <http://savannah.gnu.org/bugs/?25235>.
29934
29935 2009-01-24  Bruno Haible  <bruno@clisp.org>
29936
29937         * doc/gnulib.texi (Obsolete modules): New section.
29938         Reported by Mike Frysinger <vapier@gentoo.org>.
29939
29940 2009-01-24  Bruno Haible  <bruno@clisp.org>
29941
29942         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
29943         (%.dvi): New rule.
29944
29945 2009-01-24  Bruno Haible  <bruno@clisp.org>
29946
29947         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
29948         Reported by Eric Blake.
29949
29950 2009-01-24  Bruno Haible  <bruno@clisp.org>
29951
29952         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
29953         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
29954         Reported by Gary V. Vaughan <gary@gnu.org>.
29955
29956 2009-01-24  Bruno Haible  <bruno@clisp.org>
29957
29958         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
29959
29960 2009-01-23  Bruno Haible  <bruno@clisp.org>
29961
29962         Make c-strtod, c-strtold usable in libraries.
29963         * lib/c-strtod.c: Include string.h instead of xalloc.h.
29964         (C_STRTOD): Call strdup instead of xstrdup.
29965         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
29966         * modules/c-strtold (Depends-on): Likewise.
29967         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
29968         * NEWS: Mention the change.
29969         Reported by Michael Gold <mgold@ncf.ca>.
29970
29971 2009-01-23  Jim Meyering  <meyering@redhat.com>
29972
29973         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
29974         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
29975         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
29976
29977 2009-01-23  Simon Josefsson  <simon@josefsson.org>
29978
29979         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
29980         GNU CoreUtils.
29981         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
29982         * modules/version-etc (Description): Update.
29983
29984 2009-01-22  Bruno Haible  <bruno@clisp.org>
29985
29986         Cache the C locale object.
29987         * lib/c-strtod.c (c_locale_cache): New variable.
29988         (c_locale): New function.
29989         (C_STRTOD): Use it, and don't call freelocale.
29990         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
29991         Suggested by Paolo Bonzini.
29992
29993 2009-01-21  Bruno Haible  <bruno@clisp.org>
29994
29995         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
29996         conditions other than overflow.
29997
29998 2009-01-21  Bruno Haible  <bruno@clisp.org>
29999
30000         * lib/c-strtod.c: Include errno.h.
30001         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
30002         value from STRTOD_L and STRTOD.
30003
30004 2009-01-21  Bruno Haible  <bruno@clisp.org>
30005         and Jim Meyering  <meyering@redhat.com>
30006
30007         nanosleep: skip configure test (fail it) for apple universal builds
30008         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
30009         universal builds, assume that nanosleep does not work.
30010         * modules/nanosleep (Depends-on): Add multiarch.
30011
30012         mktime: skip configure test (fail it) for apple universal builds
30013         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
30014         universal builds, assume that mktime does not work.
30015         * modules/mktime (Depends-on): Add multiarch.
30016
30017 2009-01-21  Eric Blake  <ebb9@byu.net>
30018
30019         multiarch: avoid expand-before-require warning
30020         * modules/multiarch (configure.ac): Require, rather than expand,
30021         gl_MULTIARCH.
30022         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
30023         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
30024         enforce that all clients require it.  Partial reversion of
30025         2008-12-29 patch.
30026
30027         error: avoid expand-before-require warning
30028         * modules/errno (configure.ac): Require, rather than expand,
30029         gl_HEADER_ERRNO_H.
30030         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
30031         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
30032         enforce that all clients require it.
30033
30034         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
30035         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
30036         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
30037         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
30038
30039 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
30040
30041         Revert:
30042         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
30043
30044         regex: do not depend on obsolete modules.
30045         * modules/regex: Remove memcmp and memmove.
30046
30047 2009-01-20  Bruno Haible  <bruno@clisp.org>
30048
30049         Make the 'link' module link on Windows NT 4.
30050         * lib/link.c (_WIN32_WINNT): Don't define.
30051         (CreateHardLinkFuncType): New type.
30052         (CreateHardLinkFunc, initialized): New variables.
30053         (initialize): New function.
30054         (link): Invoke CreateHardLink indirectly through the function pointer.
30055
30056 2009-01-20  Bruno Haible  <bruno@clisp.org>
30057
30058         Fix compilation failure on mingw.
30059         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
30060
30061 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
30062
30063         * doc/c-strtod.texi: Mention a couple of restrictions.
30064
30065 2009-01-20  Jim Meyering  <meyering@redhat.com>
30066
30067         gettimeofday: move more declarations out of functions
30068         * lib/gettimeofday.c: Move extern declarations of tzset and
30069         gmtime out of containing functions.  Prompted by Bruno Haible.
30070
30071 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
30072
30073         regex: do not depend on obsolete modules.
30074         * modules/regex: Remove memcmp and memmove.
30075
30076 2009-01-19  Bruno Haible  <bruno@clisp.org>
30077
30078         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
30079         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
30080         gl_BIGENDIAN, not AC_C_BIGENDIAN.
30081         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
30082         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
30083
30084 2009-01-19  Bruno Haible  <bruno@clisp.org>
30085
30086         * tests/test-link.c: Include <errno.h>.
30087         (main): Exit with code 77 when a hard link cannot be created due to
30088         the file system.
30089         * tests/test-link.sh: Skip test when a hard link cannot be created due
30090         to the file system.
30091         Suggested by Eric Blake.
30092
30093 2009-01-19  Martin Lambers  <marlam@marlam.de>
30094
30095         * modules/link-tests: New file.
30096         * tests/test-link.sh: New file.
30097         * tests/test-link.c: New file.
30098
30099 2009-01-19  Eric Blake  <ebb9@byu.net>
30100
30101         doc: mention another function added in cygwin 1.7.0
30102         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
30103         Another new function in cygwin 1.7.
30104
30105 2009-01-19  Bruno Haible  <bruno@clisp.org>
30106
30107         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
30108         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
30109         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
30110         gl_BIGENDIAN, not AC_C_BIGENDIAN.
30111         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
30112         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
30113         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
30114         * m4/md4.m4 (gl_MD4): Likewise.
30115         * m4/md5.m4 (gl_MD5): Likewise.
30116         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
30117         * m4/sha1.m4 (gl_SHA1): Likewise.
30118         * m4/sha256.m4 (gl_SHA256): Likewise.
30119         * m4/sha512.m4 (gl_SHA512): Likewise.
30120
30121 2009-01-19  Bruno Haible  <bruno@clisp.org>
30122
30123         * modules/uniname/uniname-tests (Depends-on): Add progname.
30124         * tests/uniname/test-uninames.c: Include progname.h.
30125         (main): Call set_program_name.
30126
30127         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
30128         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
30129         (main): Call set_program_name.
30130
30131         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
30132         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
30133         (main): Call set_program_name.
30134
30135         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
30136         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
30137         (main): Call set_program_name.
30138
30139         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
30140         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
30141         (main): Call set_program_name.
30142
30143         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
30144         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
30145         (main): Call set_program_name.
30146
30147         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
30148         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
30149         (main): Call set_program_name.
30150
30151         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
30152         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
30153         (main): Call set_program_name.
30154
30155         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
30156         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
30157         (main): Call set_program_name.
30158
30159 2009-01-19  Eric Blake  <ebb9@byu.net>
30160
30161         test-unistd: test previous patch
30162         * tests/test-unistd.c: Test *_FILENO macros.
30163
30164         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
30165         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30166         Guarantee a definition.
30167         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
30168         * modules/unistd-safer (Depends-on): Add dependency on unistd.
30169         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
30170         * lib/dup-safer.c (STDERR_FILENO): Likewise.
30171         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30172         Likewise.
30173         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
30174         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
30175         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30176         Likewise.
30177         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
30178         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
30179         (STDERR_FILENO): Likewise.
30180         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
30181         (STDERR_FILENO): Likewise.
30182         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
30183         (STDERR_FILENO): Likewise.
30184         Reported by Elbert Pol.
30185
30186 2009-01-19  Eric Blake  <ebb9@byu.net>
30187
30188         doc: mention more functions added in cygwin 1.7.0
30189         * doc/posix-functions/abort.texi (abort): Update wording related
30190         to cygwin.
30191         * doc/posix-functions/daylight.texi (daylight): Likewise.
30192         * doc/posix-functions/optarg.texi (optarg): Likewise.
30193         * doc/posix-functions/optarg.texi (opterr): Likewise.
30194         * doc/posix-functions/optarg.texi (optind): Likewise.
30195         * doc/posix-functions/optarg.texi (optopt): Likewise.
30196         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
30197         worked in 1.5.x, and was withdrawn in 1.7.
30198         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
30199         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
30200         cygwin versions.
30201         * doc/posix-functions/perror.texi (perror): Likewise.
30202         * doc/posix-functions/printf.texi (printf): Likewise.
30203         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
30204         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
30205         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
30206         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
30207         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
30208         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
30209         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
30210         Likewise.
30211         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
30212         Likewise.
30213         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
30214         this function.
30215         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
30216         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
30217         Likewise.
30218         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
30219         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
30220         * doc/posix-functions/confstr.texi (confstr): Likewise.
30221         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
30222         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
30223         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
30224         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
30225         * doc/posix-functions/fputws.texi (fputws): Likewise.
30226         * doc/posix-functions/fwide.texi (fwide): Likewise.
30227         * doc/posix-functions/getwc.texi (getwc): Likewise.
30228         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
30229         * doc/posix-functions/putwc.texi (putwc): Likewise.
30230         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
30231         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
30232         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
30233         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
30234         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
30235         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
30236         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
30237         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
30238         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
30239         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
30240         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
30241
30242 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
30243
30244         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
30245         * lib/ioctl.c: Include <sys/ioctl.h>.
30246
30247 2009-01-19  Simon Josefsson  <simon@josefsson.org>
30248
30249         * modules/getdate-tests (Depends-on): Add progname.
30250         * tests/test-getdate.c: Use progname module, to avoid link errors
30251         on non-glibc systems.
30252
30253 2009-01-18  Simon Josefsson  <simon@josefsson.org>
30254
30255         * modules/filenamecat-tests (Depends-on): Add progname.
30256         * modules/fstrcmp-tests (Depends-on): Likewise.
30257
30258         * tests/test-filenamecat.c: Use progname module, to avoid link
30259         errors on non-glibc systems.
30260         * tests/test-fstrcmp.c: Likewise.
30261
30262 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
30263
30264         gettimeofday: avoid warning: nested extern declaration of 'localtime'
30265         * lib/gettimeofday.c: Move extern declaration out of function.
30266
30267 2009-01-18  Bruno Haible  <bruno@clisp.org>
30268
30269         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
30270         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
30271         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
30272
30273 2009-01-18  Bruno Haible  <bruno@clisp.org>
30274
30275         * lib/strftime.c (MEMPCPY): Remove unused macro.
30276         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
30277
30278 2009-01-18  Martin Lambers  <marlam@marlam.de>
30279
30280         New module 'link'.
30281         * lib/unistd.in.h (link): New declaration.
30282         * lib/link.c: New file.
30283         * m4/link.m4: New file.
30284         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
30285         HAVE_LINK.
30286         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
30287         * modules/link: New file.
30288         * doc/posix-functions/link.texi: Mention the new module.
30289
30290 2009-01-18  Bruno Haible  <bruno@clisp.org>
30291
30292         * tests/test-avltree_list.c (main): Call set_program_name.
30293         * tests/test-avltree_oset.c (main): Likewise.
30294         * tests/test-obstack-printf.c: Include progname.h.
30295         (main): Call set_program_name.
30296         * tests/test-quotearg.c: Include progname.h.
30297         (main): Call set_program_name.
30298         * tests/test-xmemdup0.c: Include progname.h.
30299         (main): Call set_program_name.
30300
30301 2009-01-18  Bruno Haible  <bruno@clisp.org>
30302
30303         New module 'alphasort'.
30304         * lib/dirent.in.h (alphasort): New declaration.
30305         * lib/alphasort.c: New file, from glibc with modifications.
30306         * m4/alphasort.m4: New file.
30307         * modules/alphasort: New file.
30308         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
30309         HAVE_ALPHASORT.
30310         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
30311         HAVE_ALPHASORT.
30312         * doc/posix-functions/alphasort.texi: Mention the new module and the
30313         portability problems.
30314
30315 2009-01-18  Bruno Haible  <bruno@clisp.org>
30316
30317         New module 'scandir'.
30318         * lib/dirent.in.h (scandir): New declaration.
30319         * lib/scandir.c: New file, from glibc with modifications.
30320         * m4/scandir.m4: New file.
30321         * modules/scandir: New file.
30322         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
30323         HAVE_SCANDIR.
30324         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
30325         HAVE_SCANDIR.
30326         * doc/posix-functions/scandir.texi: Mention the new module and the
30327         portability problems.
30328
30329 2009-01-17  Bruno Haible  <bruno@clisp.org>
30330
30331         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
30332         Update documentation.
30333         (func_remove_suffix): Escape all dots in the suffix. Update
30334         documentation.
30335         (func_filter_filelist): Update documentation.
30336         Reported by Ralf Wildenhues.
30337
30338 2009-01-17  Bruno Haible  <bruno@clisp.org>
30339
30340         * modules/dprintf-posix-tests: New file.
30341         * tests/test-dprintf-posix.sh: New file.
30342         * tests/test-dprintf-posix.c: New file.
30343
30344         New modules 'dprintf', 'dprintf-posix'.
30345         * lib/stdio.in.h (dprintf): New declaration.
30346         * lib/dprintf.c: New file.
30347         * m4/dprintf.m4: New file.
30348         * m4/dprintf-posix.m4: New file.
30349         * modules/dprintf: New file.
30350         * modules/dprintf-posix: New file.
30351         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
30352         HAVE_DPRINTF, REPLACE_DPRINTF.
30353         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
30354         HAVE_DPRINTF, REPLACE_DPRINTF.
30355         * doc/posix-functions/dprintf.texi: Mention the new modules.
30356
30357 2009-01-17  Bruno Haible  <bruno@clisp.org>
30358
30359         * modules/vdprintf-posix-tests: New file.
30360         * tests/test-vdprintf-posix.sh: New file.
30361         * tests/test-vdprintf-posix.c: New file.
30362
30363         New modules 'vdprintf', 'vdprintf-posix'.
30364         * lib/stdio.in.h (vdprintf): New declaration.
30365         * lib/vdprintf.c: New file.
30366         * m4/vdprintf.m4: New file.
30367         * m4/vdprintf-posix.m4: New file.
30368         * modules/vdprintf: New file.
30369         * modules/vdprintf-posix: New file.
30370         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
30371         HAVE_VDPRINTF, REPLACE_VDPRINTF.
30372         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
30373         HAVE_VDPRINTF, REPLACE_VDPRINTF.
30374         * doc/posix-functions/vdprintf.texi: Mention the new modules.
30375
30376 2009-01-17  Bruno Haible  <bruno@clisp.org>
30377
30378         Fix replacement of fopen on mingw.
30379         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
30380         mingw.
30381
30382 2009-01-17  Bruno Haible  <bruno@clisp.org>
30383
30384         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
30385         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
30386
30387 2009-01-17  Bruno Haible  <bruno@clisp.org>
30388
30389         Avoid test-fflush2.sh failure on mingw.
30390         * tests/test-fflush2.c: Include binary-io.h.
30391         (main): Put standard input into binary mode.
30392         * modules/fflush-tests (Depends-on): Add binary-io.
30393
30394 2009-01-17  Bruno Haible  <bruno@clisp.org>
30395
30396         * lib/wchar.in.h: In another particular situation, include only the
30397         system's <wchar.h> file.
30398         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
30399         Reported by Albert Chin-A-Young <china@thewrittenword.com>
30400         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
30401
30402 2009-01-17  Bruno Haible  <bruno@clisp.org>
30403
30404         Support for stripping executables in --enable-relocatable.
30405         * build-aux/install-reloc: Expect one more argument, or an environment
30406         variable RELOC_STRIP_PROG. If set, strip the destination program and
30407         its wrapper.
30408         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
30409         RELOC_STRIP_PROG.
30410         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
30411         to set RELOCATABLE_STRIP.
30412         * NEWS: Mention the new Makefile requirement.
30413
30414 2009-01-17  Bruno Haible  <bruno@clisp.org>
30415
30416         * build-aux/install-reloc: Remove debugging information left over by
30417         C compiler on MacOS X.
30418
30419 2009-01-17  Bruno Haible  <bruno@clisp.org>
30420
30421         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
30422         * lib/progreloc.c (find_executable): Fix type of pointer passed to
30423         _NSGetExecutablePath.
30424
30425 2009-01-16  Jim Meyering  <meyering@redhat.com>
30426
30427         strerror: avoid warnings about discarding "const"
30428         * lib/strerror.c (rpl_strerror): Instead of returning a const
30429         string from each and every "case", use a variable, and add a single
30430         cast after the switch.
30431
30432 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
30433
30434         * lib/arpa_inet.in.h: Add extern "C" block for C++.
30435
30436 2009-01-16  Bruno Haible  <bruno@clisp.org>
30437
30438         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
30439         array initializer syntax that also works in C++ mode.
30440         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30441
30442 2009-01-16  Jim Meyering  <meyering@redhat.com>
30443
30444         poll: suppress a warning
30445         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
30446         to ignore "...unsigned expression < 0 is always false" warnings.
30447
30448 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
30449
30450         poll: remove declarations of unused variables
30451         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
30452         sockbuf and optlen.
30453
30454 2009-01-15  Bruno Haible  <bruno@clisp.org>
30455
30456         Make fflush-after-ungetc POSIX compliant on BSD systems.
30457         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
30458         (clear_ungetc_buffer): Implement also for other systems.
30459         (rpl_fflush): On glibc systems, invoke
30460         clear_ungetc_buffer_preserving_position. Otherwise, invoke
30461         clear_ungetc_buffer after fetching the stream's position, not before.
30462
30463 2009-01-15  Bruno Haible  <bruno@clisp.org>
30464
30465         Make fflush-after-ungetc POSIX compliant on glibc systems.
30466         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
30467         after ungetc.
30468         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
30469         (rpl_fflush): On glibc systems, simply call the system's fflush
30470         function after clearing the ungetc buffer.
30471         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
30472         Instead, lseek only to the end of file, then use the system's fseeko
30473         for the rest. On glibc systems, reset the EOF indicator bit.
30474
30475 2009-01-15  Jim Meyering  <meyering@redhat.com>
30476
30477         openmp.m4: revert quote-adding change, for portability to older autoconf
30478         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
30479         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
30480         Simon Josefsson noticed the problem when using autoconf-2.61.
30481
30482 2009-01-15  Bruno Haible  <bruno@clisp.org>
30483
30484         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
30485         * tests/test-fflush2.c (ASSERT): Always fail.
30486         (main): Add two tests for fflush() after ungetc(), taking into account
30487         the Austin Group's clarification.
30488         Suggested by Eric Blake.
30489
30490 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
30491
30492         mktime.m4: remove K&R-style function prototypes
30493         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
30494         for the Sun C++ compiler.
30495
30496 2009-01-14  Bruno Haible  <bruno@clisp.org>
30497
30498         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
30499         while including <wchar.h>.
30500         * lib/wchar.in.h: In two particular situations on HP-UX, include only
30501         the system's <wchar.h> file.
30502         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30503
30504 2009-01-14  Bruno Haible  <bruno@clisp.org>
30505
30506         * m4/csharp.m4: Don't mention gettext on the serial number line.
30507         * m4/csharpexec.m4: Likewise.
30508         * m4/eaccess.m4: Likewise.
30509         * m4/javaexec.m4: Likewise.
30510         * m4/sig_atomic_t.m4: Likewise.
30511         * m4/tmpdir.m4: Likewise.
30512         * m4/intldir.m4: Bump gettext version.
30513         * m4/lib-ld.m4: Likewise.
30514
30515 2009-01-14  Bruno Haible  <bruno@clisp.org>
30516
30517         * lib/progname.c (set_program_name): Add more comments.
30518         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
30519
30520 2009-01-14  Simon Josefsson  <simon@josefsson.org>
30521
30522         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
30523         were sys/stat.h does not define it.
30524
30525 2009-01-14  Jim Meyering  <meyering@redhat.com>
30526
30527         many *.m4 files: improve m4 quoting
30528         99% of this change was performed by running the following commands:
30529         git ls-files | grep '\.m4$' | xargs perl -pi \
30530           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
30531           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
30532           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
30533           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
30534         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
30535         The remainder were to add Copyright dates, increment serial numbers,
30536         undo some changes in comments, exclude m4/intl.m4, and add quotes
30537         around the "1" in ",1" where the unusual spacing prohibited the
30538         above regexps from doing the job.  For more details, see
30539         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
30540         * m4/acl.m4: Modified.
30541         * m4/afs.m4: Likewise.
30542         * m4/alloca.m4: Likewise.
30543         * m4/argp.m4: Likewise.
30544         * m4/argz.m4: Likewise.
30545         * m4/atexit.m4: Likewise.
30546         * m4/bison-i18n.m4: Likewise.
30547         * m4/bison.m4: Likewise.
30548         * m4/byteswap.m4: Likewise.
30549         * m4/c-stack.m4: Likewise.
30550         * m4/c-strtod.m4: Likewise.
30551         * m4/calloc.m4: Likewise.
30552         * m4/canonicalize-lgpl.m4: Likewise.
30553         * m4/chown.m4: Likewise.
30554         * m4/clock_time.m4: Likewise.
30555         * m4/codeset.m4: Likewise.
30556         * m4/copy-file.m4: Likewise.
30557         * m4/csharp.m4: Likewise.
30558         * m4/csharpcomp.m4: Likewise.
30559         * m4/csharpexec.m4: Likewise.
30560         * m4/d-ino.m4: Likewise.
30561         * m4/d-type.m4: Likewise.
30562         * m4/dirfd.m4: Likewise.
30563         * m4/double-slash-root.m4: Likewise.
30564         * m4/eaccess.m4: Likewise.
30565         * m4/eealloc.m4: Likewise.
30566         * m4/environ.m4: Likewise.
30567         * m4/errno_h.m4: Likewise.
30568         * m4/euidaccess.m4: Likewise.
30569         * m4/execute.m4: Likewise.
30570         * m4/fatal-signal.m4: Likewise.
30571         * m4/fchdir.m4: Likewise.
30572         * m4/fcntl_h.m4: Likewise.
30573         * m4/fileblocks.m4: Likewise.
30574         * m4/filenamecat.m4: Likewise.
30575         * m4/findprog.m4: Likewise.
30576         * m4/flexmember.m4: Likewise.
30577         * m4/fnmatch.m4: Likewise.
30578         * m4/fopen.m4: Likewise.
30579         * m4/fpending.m4: Likewise.
30580         * m4/fprintf-posix.m4: Likewise.
30581         * m4/free.m4: Likewise.
30582         * m4/frexp.m4: Likewise.
30583         * m4/frexpl.m4: Likewise.
30584         * m4/fsusage.m4: Likewise.
30585         * m4/ftruncate.m4: Likewise.
30586         * m4/gc-camellia.m4: Likewise.
30587         * m4/gc-random.m4: Likewise.
30588         * m4/gc.m4: Likewise.
30589         * m4/getaddrinfo.m4: Likewise.
30590         * m4/getcwd-abort-bug.m4: Likewise.
30591         * m4/getcwd-path-max.m4: Likewise.
30592         * m4/getdate.m4: Likewise.
30593         * m4/getdomainname.m4: Likewise.
30594         * m4/getgroups.m4: Likewise.
30595         * m4/gethostname.m4: Likewise.
30596         * m4/gethrxtime.m4: Likewise.
30597         * m4/getline.m4: Likewise.
30598         * m4/getloadavg.m4: Likewise.
30599         * m4/getndelim2.m4: Likewise.
30600         * m4/getpass.m4: Likewise.
30601         * m4/gettext.m4: Likewise.
30602         * m4/gettime.m4: Likewise.
30603         * m4/gettimeofday.m4: Likewise.
30604         * m4/gnulib-common.m4: Likewise.
30605         * m4/group-member.m4: Likewise.
30606         * m4/host-os.m4: Likewise.
30607         * m4/iconv.m4: Likewise.
30608         * m4/iconv_open.m4: Likewise.
30609         * m4/inet_ntop.m4: Likewise.
30610         * m4/inet_pton.m4: Likewise.
30611         * m4/inline.m4: Likewise.
30612         * m4/intldir.m4: Likewise.
30613         * m4/intlmacosx.m4: Likewise.
30614         * m4/intmax.m4: Likewise.
30615         * m4/intmax_t.m4: Likewise.
30616         * m4/inttypes.m4: Likewise.
30617         * m4/inttypes_h.m4: Likewise.
30618         * m4/inttypes-pri.m4: Likewise.
30619         * m4/isapipe.m4: Likewise.
30620         * m4/isnand.m4: Likewise.
30621         * m4/isnanf.m4: Likewise.
30622         * m4/isnanl.m4: Likewise.
30623         * m4/javacomp.m4: Likewise.
30624         * m4/javaexec.m4: Likewise.
30625         * m4/jm-winsz1.m4: Likewise.
30626         * m4/jm-winsz2.m4: Likewise.
30627         * m4/lchown.m4: Likewise.
30628         * m4/lcmessage.m4: Likewise.
30629         * m4/ldexpl.m4: Likewise.
30630         * m4/lib-ld.m4: Likewise.
30631         * m4/lib-link.m4: Likewise.
30632         * m4/libsigsegv.m4: Likewise.
30633         * m4/link-follow.m4: Likewise.
30634         * m4/localcharset.m4: Likewise.
30635         * m4/locale-fr.m4: Likewise.
30636         * m4/locale-ja.m4: Likewise.
30637         * m4/locale-tr.m4: Likewise.
30638         * m4/locale-zh.m4: Likewise.
30639         * m4/lock.m4: Likewise.
30640         * m4/longlong.m4: Likewise.
30641         * m4/ls-mntd-fs.m4: Likewise.
30642         * m4/lstat.m4: Likewise.
30643         * m4/malloc.m4: Likewise.
30644         * m4/mathl.m4: Likewise.
30645         * m4/mbrtowc.m4: Likewise.
30646         * m4/mbstate_t.m4: Likewise.
30647         * m4/mbswidth.m4: Likewise.
30648         * m4/memchr.m4: Likewise.
30649         * m4/memcmp.m4: Likewise.
30650         * m4/memcpy.m4: Likewise.
30651         * m4/memmem.m4: Likewise.
30652         * m4/memmove.m4: Likewise.
30653         * m4/mempcpy.m4: Likewise.
30654         * m4/memrchr.m4: Likewise.
30655         * m4/memset.m4: Likewise.
30656         * m4/minmax.m4: Likewise.
30657         * m4/mkdir-slash.m4: Likewise.
30658         * m4/mkdtemp.m4: Likewise.
30659         * m4/mktime.m4: Likewise.
30660         * m4/mmap-anon.m4: Likewise.
30661         * m4/mountlist.m4: Likewise.
30662         * m4/nanosleep.m4: Likewise.
30663         * m4/nls.m4: Likewise.
30664         * m4/nocrash.m4: Likewise.
30665         * m4/open.m4: Likewise.
30666         * m4/openat.m4: Likewise.
30667         * m4/openmp.m4: Likewise.
30668         * m4/pathmax.m4: Likewise.
30669         * m4/perl.m4: Likewise.
30670         * m4/physmem.m4: Likewise.
30671         * m4/pipe.m4: Likewise.
30672         * m4/po.m4: Likewise.
30673         * m4/poll.m4: Likewise.
30674         * m4/posixtm.m4: Likewise.
30675         * m4/posixver.m4: Likewise.
30676         * m4/printf-frexp.m4: Likewise.
30677         * m4/printf-frexpl.m4: Likewise.
30678         * m4/printf-posix.m4: Likewise.
30679         * m4/printf-posix-rpl.m4: Likewise.
30680         * m4/printf.m4: Likewise.
30681         * m4/progtest.m4: Likewise.
30682         * m4/putenv.m4: Likewise.
30683         * m4/readline.m4: Likewise.
30684         * m4/readlink.m4: Likewise.
30685         * m4/readutmp.m4: Likewise.
30686         * m4/realloc.m4: Likewise.
30687         * m4/regex.m4: Likewise.
30688         * m4/relocatable.m4: Likewise.
30689         * m4/relocatable-lib.m4: Likewise.
30690         * m4/rename-dest-slash.m4: Likewise.
30691         * m4/rename.m4: Likewise.
30692         * m4/rmdir-errno.m4: Likewise.
30693         * m4/rmdir.m4: Likewise.
30694         * m4/roundf.m4: Likewise.
30695         * m4/roundl.m4: Likewise.
30696         * m4/rpmatch.m4: Likewise.
30697         * m4/save-cwd.m4: Likewise.
30698         * m4/selinux-selinux-h.m4: Likewise.
30699         * m4/setenv.m4: Likewise.
30700         * m4/settime.m4: Likewise.
30701         * m4/sig2str.m4: Likewise.
30702         * m4/sig_atomic_t.m4: Likewise.
30703         * m4/signalblocking.m4: Likewise.
30704         * m4/signbit.m4: Likewise.
30705         * m4/sigpipe.m4: Likewise.
30706         * m4/sockets.m4: Likewise.
30707         * m4/sockpfaf.m4: Likewise.
30708         * m4/st_dm_mode.m4: Likewise.
30709         * m4/stat-time.m4: Likewise.
30710         * m4/stdbool.m4: Likewise.
30711         * m4/stdint.m4: Likewise.
30712         * m4/stdint_h.m4: Likewise.
30713         * m4/stpcpy.m4: Likewise.
30714         * m4/stpncpy.m4: Likewise.
30715         * m4/strcase.m4: Likewise.
30716         * m4/strchrnul.m4: Likewise.
30717         * m4/strcspn.m4: Likewise.
30718         * m4/strdup.m4: Likewise.
30719         * m4/strftime.m4: Likewise.
30720         * m4/strndup.m4: Likewise.
30721         * m4/strnlen.m4: Likewise.
30722         * m4/strpbrk.m4: Likewise.
30723         * m4/strptime.m4: Likewise.
30724         * m4/strsep.m4: Likewise.
30725         * m4/strtod.m4: Likewise.
30726         * m4/strtoimax.m4: Likewise.
30727         * m4/strtok_r.m4: Likewise.
30728         * m4/strtol.m4: Likewise.
30729         * m4/strtoll.m4: Likewise.
30730         * m4/strtoul.m4: Likewise.
30731         * m4/strtoull.m4: Likewise.
30732         * m4/strtoumax.m4: Likewise.
30733         * m4/strverscmp.m4: Likewise.
30734         * m4/threadlib.m4: Likewise.
30735         * m4/timegm.m4: Likewise.
30736         * m4/tm_gmtoff.m4: Likewise.
30737         * m4/tmpdir.m4: Likewise.
30738         * m4/tmpfile.m4: Likewise.
30739         * m4/tzset.m4: Likewise.
30740         * m4/uintmax_t.m4: Likewise.
30741         * m4/unlinkdir.m4: Likewise.
30742         * m4/unlocked-io.m4: Likewise.
30743         * m4/uptime.m4: Likewise.
30744         * m4/userspec.m4: Likewise.
30745         * m4/utimbuf.m4: Likewise.
30746         * m4/utime.m4: Likewise.
30747         * m4/utimes-null.m4: Likewise.
30748         * m4/utimes.m4: Likewise.
30749         * m4/vararrays.m4: Likewise.
30750         * m4/vasnprintf.m4: Likewise.
30751         * m4/vfprintf-posix.m4: Likewise.
30752         * m4/vprintf-posix.m4: Likewise.
30753         * m4/wait-process.m4: Likewise.
30754         * m4/wchar_t.m4: Likewise.
30755         * m4/wint_t.m4: Likewise.
30756         * m4/write-any-file.m4: Likewise.
30757         * m4/yield.m4: Likewise.
30758
30759 2009-01-13  Bruno Haible  <bruno@clisp.org>
30760
30761         Avoid test-copy-file.sh failures when ACL support insufficient.
30762         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
30763         TESTS_ENVIRONMENT.
30764         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
30765         Reported by Jim Meyering.
30766
30767 2009-01-13  Bruno Haible  <bruno@clisp.org>
30768
30769         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
30770         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
30771         * modules/unistdio/u8-printf-parse (Files): Likewise.
30772         * modules/unistdio/u32-printf-parse (Files): Likewise.
30773         * modules/unistdio/ulc-printf-parse (Files): Likewise.
30774
30775 2009-01-13  Simon Josefsson  <simon@josefsson.org>
30776
30777         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
30778         and m4/inttypes_h.m4 too.
30779
30780 2009-01-12  Eric Blake  <ebb9@byu.net>
30781
30782         tests: IRIX 6.2 cc can't compile -0.0 into .data
30783         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
30784         rather than at compile-time.
30785         * tests/test-floorl.c (minus_zero): Likewise.
30786         * tests/test-frexpl.c (minus_zero): Likewise.
30787         * tests/test-isnan.c (minus_zerol): Likewise.
30788         * tests/test-isnanl.h (minus_zero): Likewise.
30789         * tests/test-ldexpl.c (minus_zero): Likewise.
30790         * tests/test-roundl.c (minus_zero): Likewise.
30791         * tests/test-signbit.c (minus_zerol): Likewise.
30792         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
30793         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
30794         * tests/test-truncl.c (minus_zero): Likewise.
30795         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
30796         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
30797         Reported by Tom G. Christensen and Nelson H. F. Beebe.
30798
30799 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
30800
30801         regex: fix glibc bug 9697
30802         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
30803         handling.
30804
30805 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
30806
30807         regex: fix glibc bug 697
30808         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
30809         being NULL also if there are no backreferences.
30810
30811 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
30812
30813         regex: merge glibc changes
30814         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
30815         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
30816         re_string_skip_chars, re_string_reconstruct): Likewise.
30817         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
30818
30819 2009-01-07  Jim Meyering  <meyering@redhat.com>
30820
30821         poll: filter through cppi
30822         * lib/poll.c: Indent cpp directives to reflect nesting.
30823
30824 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
30825
30826         poll: don't return uninitialized
30827         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
30828
30829 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
30830
30831         avoid compile failure on AIX 6.1
30832         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
30833         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
30834
30835 2009-01-04  Jim Meyering  <meyering@redhat.com>
30836
30837         remove duplicate inclusion of <stdio.h>
30838         * tests/test-fprintf-posix.c: Likewise.
30839         * tests/test-printf-posix.c: Likewise.
30840         * tests/test-snprintf-posix.c: Likewise.
30841         * tests/test-sprintf-posix.c: Likewise.
30842         * tests/test-vasprintf-posix.c: Likewise.
30843         * tests/test-vfprintf-posix.c: Likewise.
30844         * tests/test-vprintf-posix.c: Likewise.
30845         * tests/test-vsnprintf-posix.c: Likewise.
30846         * tests/test-vsprintf-posix.c: Likewise.
30847
30848 2009-01-03  Jim Meyering  <meyering@redhat.com>
30849
30850         gnulib-tool: fix sed-based filtering
30851         * gnulib-tool (func_filter_filelist): Remove extra backslash
30852         in sed_fff_filter definition.
30853
30854 2009-01-02  Jim Meyering  <meyering@redhat.com>
30855
30856         strftime: avoid compilation failure on Solaris 2.6
30857         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
30858         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
30859         Don't #define mbrlen or mbsinit, since now they're guaranteed to
30860         be available.  Reported by Tom G. Christensen.  Details in
30861         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
30862
30863 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30864             Bruno Haible  <bruno@clisp.org>
30865
30866         Speed up gnulib-tool by doing more string processing through shell
30867         built-ins.
30868         * gnulib-tool (fast_func_append): New variable.
30869         (func_remove_prefix, func_remove_suffix): New functions.
30870         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
30871         (func_filter_filelist): New function.
30872         (func_get_dependencies): Use func_remove_suffix instead of sed.
30873         (func_get_automake_snippet): Use func_filter_filelist instead of a
30874         subshell and sed invocation.
30875
30876 2009-01-01  Bruno Haible  <bruno@clisp.org>
30877
30878         Fix a security bug.
30879         * gnulib-tool (func_import, import, update): Don't allow the characters
30880         '"', '$', '`', '\' in macro arguments that become part of commands that
30881         are evaluated.
30882
30883 2009-01-01  Bruno Haible  <bruno@clisp.org>
30884
30885         * gnulib-tool (func_reset_sigpipe): Add more comments.
30886
30887 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30888
30889         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
30890         func_emit_tests_Makefile_am, func_import): Abort loops early if we
30891         already know the answer.
30892
30893 2009-01-01  Jim Meyering  <meyering@redhat.com>
30894
30895         * lib/version-etc.c (version_etc_va): Update copyright year.
30896
30897 2008-12-30  Bruno Haible  <bruno@clisp.org>
30898
30899         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
30900         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
30901         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
30902
30903 2008-12-29  Eric Blake  <ebb9@byu.net>
30904
30905         multiarch: avoid autoconf AC_REQUIRE bug
30906         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
30907         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
30908         2.63 and older.
30909         Reported by Bruno Haible, and analyzed in
30910         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
30911
30912 2008-12-29  Bruno Haible  <bruno@clisp.org>
30913
30914         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
30915         files in subdirectories correctly.
30916         Reported by Ralf Wildenhues.
30917
30918 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30919
30920         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
30921         rather than 'join FILE -', for Solaris join.
30922
30923 2008-12-29  Bruno Haible  <bruno@clisp.org>
30924
30925         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
30926         quoting.
30927         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
30928         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
30929         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
30930         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
30931         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
30932         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
30933         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
30934         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
30935         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
30936         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
30937         * m4/nls.m4 (AM_NLS): Likewise.
30938         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
30939         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
30940         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
30941         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
30942         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
30943         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30944         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
30945         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
30946         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
30947         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
30948         * m4/xsize.m4 (gl_XSIZE): Likewise.
30949         Suggested by Jim Meyering.
30950
30951 2008-11-17  Bruce Korb  <bkorb@gnu.org>
30952
30953         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
30954         * lib/parse-duration.c: use a switch instead of cascading if's.
30955
30956 2008-12-29  Eric Blake  <ebb9@byu.net>
30957
30958         wchar.h: supply WEOF on Irix 5.3
30959         * lib/wchar.in.h (wint_t): Also supply WEOF.
30960         * lib/wctype.in.h (wint_t): Likewise.
30961         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
30962         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
30963         Reported by Tom G. Christensen.
30964
30965 2008-12-26  Bruno Haible  <bruno@clisp.org>
30966
30967         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
30968         i486, i586, i686.
30969
30970 2008-12-26  Bruno Haible  <bruno@clisp.org>
30971
30972         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
30973
30974 2008-12-26  Bruno Haible  <bruno@clisp.org>
30975
30976         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
30977         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
30978         not __STDC_CONSTANT_MACROS.
30979         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
30980
30981 2008-12-25  Bruno Haible  <bruno@clisp.org>
30982
30983         Add support for universal builds to vasnprintf.
30984         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
30985         universal builds, guess no.
30986         * modules/vasnprintf-posix (Depends-on): Add multiarch.
30987         * modules/vasprintf-posix (Depends-on): Likewise.
30988         * modules/fprintf-posix (Depends-on): Likewise.
30989         * modules/vfprintf-posix (Depends-on): Likewise.
30990         * modules/snprintf-posix (Depends-on): Likewise.
30991         * modules/vsnprintf-posix (Depends-on): Likewise.
30992         * modules/sprintf-posix (Depends-on): Likewise.
30993         * modules/vsprintf-posix (Depends-on): Likewise.
30994         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30995         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30996         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30997         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30998         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30999         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31000         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31001
31002         Add support for universal builds to <inttypes.h>.
31003         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
31004         _SCNu64_PREFIX): In Apple
31005         universal builds, define directly, using _LP64.
31006         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
31007         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
31008         * modules/inttypes (Depends-on): Add multiarch.
31009         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
31010
31011         Add support for universal builds to <stdint.h>.
31012         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
31013         universal builds, define directly, using _LP64.
31014         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
31015         Apple universal builds, don't test for the size and suffix of ptrdiff_t
31016         and size_t.
31017         * modules/stdint (Depends-on): Add multiarch.
31018         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
31019
31020         New module 'multiarch'.
31021         * modules/multiarch: New file.
31022         * m4/multiarch.m4: New file.
31023
31024 2008-12-25  Bruno Haible  <bruno@clisp.org>
31025
31026         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
31027
31028 2008-12-25  Bruno Haible  <bruno@clisp.org>
31029
31030         * modules/btowc (License): Relicense under LGPLv2+.
31031         * modules/mbsinit (License): Likewise.
31032         * modules/mbrtowc (License): Likewise.
31033         * modules/wcrtomb (License): Likewise.
31034         * modules/streq (License): Likewise.
31035         Reported by David Lutterkort <lutter@redhat.com>.
31036
31037 2008-12-23  Bruno Haible  <bruno@clisp.org>
31038
31039         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
31040
31041 2008-12-23  Bruno Haible  <bruno@clisp.org>
31042
31043         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
31044         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
31045         GETADDRINFO_LIB, not in LIBS.
31046         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
31047         * modules/canon-host (Link): Likewise.
31048         * NEWS: Mention the change.
31049         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
31050         GETADDRINFO_LIB.
31051
31052 2008-12-22  Bruno Haible  <bruno@clisp.org>
31053
31054         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
31055         * doc/posix-functions/iswalpha_l.texi: Likewise.
31056         * doc/posix-functions/iswblank_l.texi: Likewise.
31057         * doc/posix-functions/iswcntrl_l.texi: Likewise.
31058         * doc/posix-functions/iswctype_l.texi: Likewise.
31059         * doc/posix-functions/iswdigit_l.texi: Likewise.
31060         * doc/posix-functions/iswgraph_l.texi: Likewise.
31061         * doc/posix-functions/iswlower_l.texi: Likewise.
31062         * doc/posix-functions/iswprint_l.texi: Likewise.
31063         * doc/posix-functions/iswpunct_l.texi: Likewise.
31064         * doc/posix-functions/iswspace_l.texi: Likewise.
31065         * doc/posix-functions/iswupper_l.texi: Likewise.
31066         * doc/posix-functions/iswxdigit_l.texi: Likewise.
31067         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
31068         * doc/posix-functions/open_wmemstream.texi: Likewise.
31069         * doc/posix-functions/swscanf.texi: Likewise.
31070         * doc/posix-functions/towctrans_l.texi: Likewise.
31071         * doc/posix-functions/towlower.texi: Likewise.
31072         * doc/posix-functions/towlower_l.texi: Likewise.
31073         * doc/posix-functions/towupper.texi: Likewise.
31074         * doc/posix-functions/towupper_l.texi: Likewise.
31075         * doc/posix-functions/vfwprintf.texi: Likewise.
31076         * doc/posix-functions/vfwscanf.texi: Likewise.
31077         * doc/posix-functions/vswscanf.texi: Likewise.
31078         * doc/posix-functions/vwprintf.texi: Likewise.
31079         * doc/posix-functions/vwscanf.texi: Likewise.
31080         * doc/posix-functions/wcpcpy.texi: Likewise.
31081         * doc/posix-functions/wcpncpy.texi: Likewise.
31082         * doc/posix-functions/wcscasecmp.texi: Likewise.
31083         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
31084         * doc/posix-functions/wcscoll_l.texi: Likewise.
31085         * doc/posix-functions/wcsdup.texi: Likewise.
31086         * doc/posix-functions/wcsncasecmp.texi: Likewise.
31087         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
31088         * doc/posix-functions/wcsnlen.texi: Likewise.
31089         * doc/posix-functions/wcsnrtombs.texi: Likewise.
31090         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
31091         * doc/posix-functions/wctrans_l.texi: Likewise.
31092         * doc/posix-functions/wctype_l.texi: Likewise.
31093         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
31094         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
31095         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
31096         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
31097         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
31098         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
31099         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
31100         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
31101         * doc/glibc-functions/wcschrnul.texi: Likewise.
31102         * doc/glibc-functions/wcsftime_l.texi: Likewise.
31103         * doc/glibc-functions/wcstod_l.texi: Likewise.
31104         * doc/glibc-functions/wcstof_l.texi: Likewise.
31105         * doc/glibc-functions/wcstol_l.texi: Likewise.
31106         * doc/glibc-functions/wcstold_l.texi: Likewise.
31107         * doc/glibc-functions/wcstoll_l.texi: Likewise.
31108         * doc/glibc-functions/wcstoq.texi: Likewise.
31109         * doc/glibc-functions/wcstoul_l.texi: Likewise.
31110         * doc/glibc-functions/wcstoull_l.texi: Likewise.
31111         * doc/glibc-functions/wcstouq.texi: Likewise.
31112         * doc/glibc-functions/wmempcpy.texi: Likewise.
31113
31114 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
31115             Eric Blake  <ebb9@byu.net>
31116             Paolo Bonzini  <bonzini@gnu.org>
31117             Bruno Haible  <bruno@clisp.org>
31118
31119         Make c-stack work on Haiku.
31120         * lib/c-stack.c (SA_ONSTACK): Define fallback.
31121         (c_stack_action): Use SA_ONSTACK flag.
31122
31123 2008-12-22  Bruno Haible  <bruno@clisp.org>
31124
31125         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
31126
31127 2008-12-22  Bruno Haible  <bruno@clisp.org>
31128
31129         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
31130         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
31131         being overridden.
31132         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
31133         New macros.
31134         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
31135         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
31136         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
31137         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
31138
31139 2008-12-22  Bruno Haible  <bruno@clisp.org>
31140
31141         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
31142         from test code.
31143
31144 2008-12-22  Eric Blake  <ebb9@byu.net>
31145
31146         Avoid gcc warnings on cygwin.
31147         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
31148         Avoid unused variable.
31149         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
31150         Likewise.
31151
31152 2008-12-22  Bruno Haible  <bruno@clisp.org>
31153
31154         Remove HAVE_MBRTOWC conditionals.
31155         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
31156         (mbscasecmp): Assume mbrtowc function.
31157         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
31158         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
31159         * lib/mbschr.c: Include mbuiter.h unconditionally.
31160         (mbschr): Assume mbrtowc function.
31161         * lib/mbscspn.c: Include mbuiter.h unconditionally.
31162         (mbscspn): Assume mbrtowc function.
31163         * lib/mbslen.c: Include mbuiter.h unconditionally.
31164         (mbslen): Assume mbrtowc function.
31165         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
31166         (mbsncasecmp): Assume mbrtowc function.
31167         * lib/mbsnlen.c: Include mbiter.h unconditionally.
31168         (mbsnlen): Assume mbrtowc function.
31169         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
31170         (mbspbrk): Assume mbrtowc function.
31171         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
31172         (mbspcasecmp): Assume mbrtowc function.
31173         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
31174         (mbsrchr): Assume mbrtowc function.
31175         * lib/mbssep.c: Include mbuiter.h unconditionally.
31176         (mbssep): Assume mbrtowc function.
31177         * lib/mbsspn.c: Include mbuiter.h unconditionally.
31178         (mbsspn): Assume mbrtowc function.
31179         * lib/mbsstr.c: Include mbuiter.h unconditionally.
31180         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
31181         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
31182         (mbstok_r): Assume mbrtowc function.
31183         * lib/propername.c: Include mbuiter.h unconditionally.
31184         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
31185         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
31186         (trim2): Assume mbrtowc function.
31187         * lib/mbswidth.c (mbsinit): Remove fallback definition.
31188         (mbsnwidth): Assume mbrtowc function.
31189         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
31190         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
31191         fallback definitions.
31192         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
31193
31194 2008-12-22  Bruno Haible  <bruno@clisp.org>
31195
31196         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
31197
31198 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
31199
31200         * modules/regex: Request emulations for the mb*/wc* functions we need.
31201         * m4/regex.m4: Don't look for those functions here.
31202         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
31203
31204 2008-12-22  Bruno Haible  <bruno@clisp.org>
31205
31206         * modules/fnmatch (Depends-on): Remove duplicated dependency.
31207
31208 2008-12-21  Bruno Haible  <bruno@clisp.org>
31209
31210         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
31211         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
31212         (Include): Remove conditionalization.
31213         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
31214         (Include): Remove conditionalization.
31215         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
31216         (Include): Remove conditionalization.
31217         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
31218         * m4/mbfile.m4 (gl_MBFILE): Likewise.
31219         * NEWS: Mention the change.
31220         Reported by Alan Hourihane <alanh@fairlite.co.uk>
31221         via Sergey Poznyakoff <gray@gnu.org.ua>.
31222
31223 2008-12-21  Bruno Haible  <bruno@clisp.org>
31224
31225         * MODULES.html.sh (Extended multibyte and wide character utilities
31226         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
31227         wcrtomb, wcsrtombs.
31228         (Support for systems lacking POSIX:2008): Add accept, bind, close,
31229         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
31230         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
31231         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
31232
31233 2008-12-21  Bruno Haible  <bruno@clisp.org>
31234
31235         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
31236
31237 2008-12-21  Bruno Haible  <bruno@clisp.org>
31238
31239         * modules/wcsnrtombs-tests: New file.
31240         * tests/test-wcsnrtombs1.sh: New file.
31241         * tests/test-wcsnrtombs2.sh: New file.
31242         * tests/test-wcsnrtombs3.sh: New file.
31243         * tests/test-wcsnrtombs4.sh: New file.
31244         * tests/test-wcsnrtombs.c: New file.
31245
31246         New module 'wcsnrtombs'.
31247         * lib/wchar.in.h (wcsnrtombs): New declaration.
31248         * lib/wcsnrtombs.c: New file.
31249         * lib/wcsrtombs-state.c: New file.
31250         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
31251         (internal_state): Remove variable.
31252         * m4/wcsnrtombs.m4: New file.
31253         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
31254         compilation units.
31255         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
31256         HAVE_WCSNRTOMBS.
31257         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
31258         HAVE_WCSNRTOMBS.
31259         * modules/wcsnrtombs: New file.
31260         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
31261         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
31262
31263 2008-12-21  Bruno Haible  <bruno@clisp.org>
31264
31265         * modules/wcsrtombs-tests: New file.
31266         * tests/test-wcsrtombs1.sh: New file.
31267         * tests/test-wcsrtombs2.sh: New file.
31268         * tests/test-wcsrtombs3.sh: New file.
31269         * tests/test-wcsrtombs4.sh: New file.
31270         * tests/test-wcsrtombs.c: New file.
31271
31272         New module 'wcsrtombs'.
31273         * lib/wchar.in.h (wcsrtombs): New declaration.
31274         * lib/wcsrtombs.c: New file.
31275         * m4/wcsrtombs.m4: New file.
31276         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
31277         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
31278         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
31279         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
31280         * modules/wcsrtombs: New file.
31281         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
31282         bugs.
31283
31284 2008-12-21  Bruno Haible  <bruno@clisp.org>
31285
31286         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
31287         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
31288         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
31289         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
31290         if not correct.
31291         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
31292         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
31293         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
31294         m4/locale-zh.m4, m4/codeset.m4.
31295         * doc/posix-functions/wcrtomb.texi: Document the bug.
31296
31297 2008-12-21  Bruno Haible  <bruno@clisp.org>
31298
31299         Work around a btowc() bug on IRIX 6.5.
31300         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
31301         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
31302         REPLACE_WTOBC if not.
31303         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
31304         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
31305         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
31306
31307 2008-12-21  Bruno Haible  <bruno@clisp.org>
31308
31309         * modules/wcrtomb-tests: New file.
31310         * tests/test-wcrtomb.sh: New file.
31311         * tests/test-wcrtomb.c: New file.
31312
31313         New module 'wcrtomb'.
31314         * lib/wchar.in.h (wcrtomb): New declaration.
31315         * lib/wcrtomb.c: New file.
31316         * m4/wcrtomb.m4: New file.
31317         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
31318         HAVE_WCRTOMB.
31319         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
31320         HAVE_WCRTOMB.
31321         * modules/wcrtomb: New file.
31322         * doc/posix-functions/wcrtomb.texi: Mention the new module.
31323
31324 2008-12-21  Bruno Haible  <bruno@clisp.org>
31325
31326         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
31327         * modules/mbsrtowcs (Files): Likewise.
31328         * modules/wctob (Files): Likewise.
31329         * modules/c-strcase-tests (Files): Likewise.
31330         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
31331         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
31332         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
31333         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
31334         * modules/vasnprintf-posix-tests (Files): Likewise.
31335
31336 2008-12-21  William Pursell  <bill.pursell@gmail.com>
31337
31338         gitlog-to-changelog: pass all command-line arguments to git-log
31339         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
31340         it is sometimes convenient to filter the commits in various ways.
31341         gitlog-to-changelog only allows --since to specify a start date,
31342         but git-log itself supports many other filtering mechanisms.
31343         At the moment, I want to filter by branch name.  Rather than
31344         adding a --branch option to gitlog-to-changelog, it seems more
31345         flexible to simply pass all options directly to git-log and let
31346         git do the work.  Notice that this effectively makes --since a
31347         redundant option for gitlog-to-changelog, but removing it would
31348         require current usage to change since calls would then require
31349         an additional '--'.
31350
31351 2008-12-21  Bruno Haible  <bruno@clisp.org>
31352
31353         * modules/mbsnrtowcs-tests: New file.
31354         * tests/test-mbsnrtowcs1.sh: New file.
31355         * tests/test-mbsnrtowcs2.sh: New file.
31356         * tests/test-mbsnrtowcs3.sh: New file.
31357         * tests/test-mbsnrtowcs4.sh: New file.
31358         * tests/test-mbsnrtowcs.c: New file.
31359
31360         New module 'mbsnrtowcs'.
31361         * lib/wchar.in.h (mbsnrtowcs): New declaration.
31362         * lib/mbsnrtowcs.c: New file.
31363         * lib/mbsrtowcs-state.c: New file.
31364         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
31365         (internal_state): Remove variable.
31366         * m4/mbsnrtowcs.m4: New file.
31367         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
31368         compilation units.
31369         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
31370         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
31371         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
31372         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
31373         * modules/mbsnrtowcs: New file.
31374         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
31375         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
31376         portability problem.
31377
31378 2008-12-21  Bruno Haible  <bruno@clisp.org>
31379
31380         Work around mbsrtowcs bug.
31381         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
31382         (gl_FUNC_MBSRTOWCS): Invoke it.
31383         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
31384         m4/locale-zh.m4.
31385         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
31386
31387 2008-12-21  Bruno Haible  <bruno@clisp.org>
31388
31389         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
31390
31391 2008-12-21  Bruno Haible  <bruno@clisp.org>
31392
31393         Update doc for AIX.
31394         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
31395         16-bit wchar_t type.
31396         * doc/posix-functions/btowc.texi: Likewise.
31397         * doc/posix-functions/fgetwc.texi: Likewise.
31398         * doc/posix-functions/fgetws.texi: Likewise.
31399         * doc/posix-functions/fputwc.texi: Likewise.
31400         * doc/posix-functions/fputws.texi: Likewise.
31401         * doc/posix-functions/fwide.texi: Likewise.
31402         * doc/posix-functions/fwprintf.texi: Likewise.
31403         * doc/posix-functions/fwscanf.texi: Likewise.
31404         * doc/posix-functions/getwchar.texi: Likewise.
31405         * doc/posix-functions/getwc.texi: Likewise.
31406         * doc/posix-functions/iswalnum.texi: Likewise.
31407         * doc/posix-functions/iswalpha.texi: Likewise.
31408         * doc/posix-functions/iswblank.texi: Likewise.
31409         * doc/posix-functions/iswcntrl.texi: Likewise.
31410         * doc/posix-functions/iswctype.texi: Likewise.
31411         * doc/posix-functions/iswdigit.texi: Likewise.
31412         * doc/posix-functions/iswgraph.texi: Likewise.
31413         * doc/posix-functions/iswlower.texi: Likewise.
31414         * doc/posix-functions/iswprint.texi: Likewise.
31415         * doc/posix-functions/iswpunct.texi: Likewise.
31416         * doc/posix-functions/iswspace.texi: Likewise.
31417         * doc/posix-functions/iswupper.texi: Likewise.
31418         * doc/posix-functions/iswxdigit.texi: Likewise.
31419         * doc/posix-functions/mbrtowc.texi: Likewise.
31420         * doc/posix-functions/mbsrtowcs.texi: Likewise.
31421         * doc/posix-functions/mbstowcs.texi: Likewise.
31422         * doc/posix-functions/mbtowc.texi: Likewise.
31423         * doc/posix-functions/putwchar.texi: Likewise.
31424         * doc/posix-functions/putwc.texi: Likewise.
31425         * doc/posix-functions/swprintf.texi: Likewise.
31426         * doc/posix-functions/tolower.texi: Likewise.
31427         * doc/posix-functions/toupper.texi: Likewise.
31428         * doc/posix-functions/towctrans.texi: Likewise.
31429         * doc/posix-functions/ungetwc.texi: Likewise.
31430         * doc/posix-functions/vswprintf.texi: Likewise.
31431         * doc/posix-functions/wcrtomb.texi: Likewise.
31432         * doc/posix-functions/wcscat.texi: Likewise.
31433         * doc/posix-functions/wcschr.texi: Likewise.
31434         * doc/posix-functions/wcscmp.texi: Likewise.
31435         * doc/posix-functions/wcscoll.texi: Likewise.
31436         * doc/posix-functions/wcscpy.texi: Likewise.
31437         * doc/posix-functions/wcscspn.texi: Likewise.
31438         * doc/posix-functions/wcsftime.texi: Likewise.
31439         * doc/posix-functions/wcslen.texi: Likewise.
31440         * doc/posix-functions/wcsncat.texi: Likewise.
31441         * doc/posix-functions/wcsncmp.texi: Likewise.
31442         * doc/posix-functions/wcsncpy.texi: Likewise.
31443         * doc/posix-functions/wcspbrk.texi: Likewise.
31444         * doc/posix-functions/wcsrchr.texi: Likewise.
31445         * doc/posix-functions/wcsrtombs.texi: Likewise.
31446         * doc/posix-functions/wcsspn.texi: Likewise.
31447         * doc/posix-functions/wcsstr.texi: Likewise.
31448         * doc/posix-functions/wcstod.texi: Likewise.
31449         * doc/posix-functions/wcstof.texi: Likewise.
31450         * doc/posix-functions/wcstoimax.texi: Likewise.
31451         * doc/posix-functions/wcstok.texi: Likewise.
31452         * doc/posix-functions/wcstold.texi: Likewise.
31453         * doc/posix-functions/wcstoll.texi: Likewise.
31454         * doc/posix-functions/wcstol.texi: Likewise.
31455         * doc/posix-functions/wcstombs.texi: Likewise.
31456         * doc/posix-functions/wcstoull.texi: Likewise.
31457         * doc/posix-functions/wcstoul.texi: Likewise.
31458         * doc/posix-functions/wcstoumax.texi: Likewise.
31459         * doc/posix-functions/wcswidth.texi: Likewise.
31460         * doc/posix-functions/wcsxfrm.texi: Likewise.
31461         * doc/posix-functions/wctob.texi: Likewise.
31462         * doc/posix-functions/wctomb.texi: Likewise.
31463         * doc/posix-functions/wctrans.texi: Likewise.
31464         * doc/posix-functions/wctype.texi: Likewise.
31465         * doc/posix-functions/wcwidth.texi: Likewise.
31466         * doc/posix-functions/wmemchr.texi: Likewise.
31467         * doc/posix-functions/wmemcmp.texi: Likewise.
31468         * doc/posix-functions/wmemcpy.texi: Likewise.
31469         * doc/posix-functions/wmemmove.texi: Likewise.
31470         * doc/posix-functions/wmemset.texi: Likewise.
31471         * doc/posix-functions/wprintf.texi: Likewise.
31472         * doc/posix-functions/wscanf.texi: Likewise.
31473
31474 2008-12-21  Bruno Haible  <bruno@clisp.org>
31475
31476         Update doc for HP-UX 11.11.
31477         * doc/posix-functions/btowc.texi: Clarify that the function is missing
31478         in HP-UX version 11.00, not in all versions of HP-UX 11.
31479         * doc/posix-functions/fwide.texi: Likewise.
31480         * doc/posix-functions/fwprintf.texi: Likewise.
31481         * doc/posix-functions/fwscanf.texi: Likewise.
31482         * doc/posix-functions/inet_ntop.texi: Likewise.
31483         * doc/posix-functions/inet_pton.texi: Likewise.
31484         * doc/posix-functions/mbrlen.texi: Likewise.
31485         * doc/posix-functions/mbrtowc.texi: Likewise.
31486         * doc/posix-functions/mbsinit.texi: Likewise.
31487         * doc/posix-functions/mbsrtowcs.texi: Likewise.
31488         * doc/posix-functions/swprintf.texi: Likewise.
31489         * doc/posix-functions/swscanf.texi: Likewise.
31490         * doc/posix-functions/towctrans.texi: Likewise.
31491         * doc/posix-functions/vfwprintf.texi: Likewise.
31492         * doc/posix-functions/vswprintf.texi: Likewise.
31493         * doc/posix-functions/vwprintf.texi: Likewise.
31494         * doc/posix-functions/wcrtomb.texi: Likewise.
31495         * doc/posix-functions/wcsrtombs.texi: Likewise.
31496         * doc/posix-functions/wcsstr.texi: Likewise.
31497         * doc/posix-functions/wctob.texi: Likewise.
31498         * doc/posix-functions/wctrans.texi: Likewise.
31499         * doc/posix-functions/wmemchr.texi: Likewise.
31500         * doc/posix-functions/wmemcmp.texi: Likewise.
31501         * doc/posix-functions/wmemcpy.texi: Likewise.
31502         * doc/posix-functions/wmemmove.texi: Likewise.
31503         * doc/posix-functions/wmemset.texi: Likewise.
31504         * doc/posix-functions/wprintf.texi: Likewise.
31505         * doc/posix-functions/wscanf.texi: Likewise.
31506
31507 2008-12-21  Bruno Haible  <bruno@clisp.org>
31508
31509         Work around a portability problem.
31510         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
31511         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
31512
31513 2008-12-20  Bruno Haible  <bruno@clisp.org>
31514
31515         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
31516         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
31517         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
31518         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
31519         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
31520
31521         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
31522         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
31523         set.
31524         (GNULIB_defined_mbstate_t): New macro.
31525         (mbsinit): Redefine if REPLACE_MBSINIT is set.
31526         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
31527         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
31528         reuses the system's mbrtowc function but works around the bugs.
31529         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
31530         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
31531         macros.
31532         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
31533         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
31534         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
31535         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
31536         REPLACE_MBSINIT if mbsinit needs to be overridden.
31537         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
31538         REPLACE_MBSINIT, REPLACE_MBRTOWC.
31539         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
31540         REPLACE_MBSINIT, REPLACE_MBRTOWC.
31541         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
31542         m4/locale-zh.m4.
31543         (Depends): Add mbsinit.
31544         * modules/mbsinit (Depends): Add mbrtowc.
31545         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
31546
31547 2008-12-20  Bruno Haible  <bruno@clisp.org>
31548
31549         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
31550         so that there are no conversion errors on AIX.
31551         * tests/test-mbsrtowcs.c (main): LIkewise.
31552
31553 2008-12-20  Bruno Haible  <bruno@clisp.org>
31554
31555         Work around wctob bug on Solaris <= 9.
31556         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
31557         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
31558         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
31559         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
31560         * modules/wctob (Files): Add m4/locale-fr.m4.
31561         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
31562
31563 2008-12-20  Bruno Haible  <bruno@clisp.org>
31564
31565         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
31566         /dev/null.
31567         * tests/test-select-in.sh: Likewise.
31568         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31569
31570 2008-12-20  Bruno Haible  <bruno@clisp.org>
31571
31572         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
31573         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
31574         Cygwin 1.5.x.
31575
31576 2008-12-20  Bruno Haible  <bruno@clisp.org>
31577
31578         Ensure mbstate_t is defined on HP-UX 11.11.
31579         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
31580         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
31581         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
31582         AC_USE_SYSTEM_EXTENSIONS.
31583         * modules/fnmatch (Depends-on): Add extensions.
31584         * modules/mbrlen (Depends-on): Likewise.
31585         * modules/mbrtowc (Depends-on): Likewise.
31586         * modules/mbsinit (Depends-on): Likewise.
31587         * modules/mbsrtowcs (Depends-on): Likewise.
31588         * modules/mbswidth (Depends-on): Likewise.
31589         * modules/quotearg (Depends-on): Likewise.
31590         * modules/strftime (Depends-on): Likewise.
31591
31592 2008-12-20  Bruno Haible  <bruno@clisp.org>
31593
31594         Ensure wctob is declared on IRIX 6.5.
31595         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
31596         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
31597         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
31598         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
31599         of HAVE_WCTOB.
31600         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
31601         HAVE_WCTOB.
31602         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
31603
31604 2008-12-19  Bruno Haible  <bruno@clisp.org>
31605
31606         * modules/mbsrtowcs-tests: New file.
31607         * tests/test-mbsrtowcs1.sh: New file.
31608         * tests/test-mbsrtowcs2.sh: New file.
31609         * tests/test-mbsrtowcs3.sh: New file.
31610         * tests/test-mbsrtowcs4.sh: New file.
31611         * tests/test-mbsrtowcs.c: New file.
31612
31613         New module 'mbsrtowcs'.
31614         * lib/wchar.in.h (mbsrtowcs): New declaration.
31615         * lib/mbsrtowcs.c: New file.
31616         * m4/mbsrtowcs.m4: New file.
31617         * modules/mbsrtowcs: New file.
31618         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
31619         HAVE_MBSRTOWCS.
31620         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
31621         HAVE_MBSRTOWCS.
31622         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
31623
31624 2008-12-19  Bruno Haible  <bruno@clisp.org>
31625
31626         New module 'mbrlen'.
31627         * lib/wchar.in.h (mbrlen): New declaration.
31628         * lib/mbrlen.c: New file.
31629         * m4/mbrlen.m4: New file.
31630         * modules/mbrlen: New file.
31631         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
31632         HAVE_MBRLEN.
31633         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
31634         HAVE_MBRLEN.
31635         * doc/posix-functions/mbrlen.texi: Document the new module.
31636
31637 2008-12-19  Bruno Haible  <bruno@clisp.org>
31638
31639         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
31640         * modules/mbrtowc (Depends-on): Add verify.
31641         Suggested by Paul Eggert.
31642
31643 2008-12-18  Bruno Haible  <bruno@clisp.org>
31644
31645         * modules/mbsinit-tests: New file.
31646         * tests/test-mbsinit.sh: New file.
31647         * tests/test-mbsinit.c: New file.
31648
31649 2008-12-18  Bruno Haible  <bruno@clisp.org>
31650
31651         * modules/mbrtowc-tests: New file.
31652         * tests/test-mbrtowc1.sh: New file.
31653         * tests/test-mbrtowc2.sh: New file.
31654         * tests/test-mbrtowc3.sh: New file.
31655         * tests/test-mbrtowc4.sh: New file.
31656         * tests/test-mbrtowc.c: New file.
31657
31658         New module 'mbrtowc'.
31659         * lib/wchar.in.h (mbstate_t): Override when the system does not have
31660         mbsinit and mbrtowc.
31661         (mbrtowc): New declaration.
31662         * lib/mbrtowc.c: New file.
31663         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
31664         * modules/mbrtowc: New file.
31665         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
31666         HAVE_MBRTOWC.
31667         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
31668         HAVE_MBRTOWC.
31669         * doc/posix-functions/mbrtowc.texi: Document the new module.
31670
31671 2008-12-18  Bruno Haible  <bruno@clisp.org>
31672
31673         New module 'wctob'.
31674         * lib/wchar.in.h (wctob): New declaration.
31675         * lib/wctob.c: New file.
31676         * m4/wctob.m4: New file.
31677         * modules/wctob: New file.
31678         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
31679         HAVE_WCTOB.
31680         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
31681         * doc/posix-functions/wctob.texi: Document the new module.
31682
31683 2008-12-18  Bruno Haible  <bruno@clisp.org>
31684
31685         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
31686         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
31687
31688 2008-12-18  Simon Josefsson  <simon@josefsson.org>
31689
31690         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
31691         G. Christensen" <tgc@jupiterrise.com>.
31692
31693         * lib/flock.c: Need to include errno.h.  Reported by "Tom
31694         G. Christensen" <tgc@jupiterrise.com>.
31695
31696         * lib/flock.c: Need to include string.h.  Reported by "Tom
31697         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
31698         <ebb9@byu.net>.
31699
31700 2008-12-18  Bruno Haible  <bruno@clisp.org>
31701
31702         * m4/locale-ja.m4: New file, from GNU gettext.
31703
31704 2008-12-17  Bruno Haible  <bruno@clisp.org>
31705
31706         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
31707         Suggested by Eric Blake.
31708
31709 2008-12-17  Bruno Haible  <bruno@clisp.org>
31710
31711         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
31712
31713 2008-12-17  Bruno Haible  <bruno@clisp.org>
31714
31715         * lib/mbsinit.c: Include verify.h. Verify an assumption.
31716         * modules/mbsinit (Depends-on): Add verify.
31717         Suggested by Paul Eggert.
31718
31719 2008-12-17  Bruno Haible  <bruno@clisp.org>
31720
31721         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
31722         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
31723         gl_FUNC_MBRTOWC.
31724         * m4/mbiter.m4 (gl_MBITER): LIkewise.
31725         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
31726         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
31727         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
31728         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
31729         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
31730         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
31731         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
31732         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
31733         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
31734         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
31735         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
31736         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
31737         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
31738         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
31739         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31740         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
31741         * modules/trim (configure.ac): Likewise.
31742
31743 2008-12-17  Bruno Haible  <bruno@clisp.org>
31744
31745         * modules/btowc-tests: New file.
31746         * tests/test-btowc1.sh: New file.
31747         * tests/test-btowc2.sh: New file.
31748         * tests/test-btowc.c: New file.
31749
31750         New module 'btowc'.
31751         * lib/wchar.in.h (btowc): New declaration.
31752         * lib/btowc.c: New file.
31753         * m4/btowc.m4: New file.
31754         * modules/btowc: New file.
31755         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
31756         HAVE_BTOWC.
31757         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
31758         * doc/posix-functions/btowc.texi: Document the new module.
31759
31760 2008-12-17  Bruno Haible  <bruno@clisp.org>
31761
31762         New module 'mbsinit'.
31763         * lib/wchar.in.h (mbsinit): New declaration.
31764         * lib/mbsinit.c: New file.
31765         * m4/mbsinit.m4: New file.
31766         * modules/mbsinit: New file.
31767         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
31768         HAVE_MBSINIT.
31769         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
31770         HAVE_MBSINIT.
31771         * doc/posix-functions/mbsinit.texi: Document the new module.
31772
31773 2008-12-16  Bruno Haible  <bruno@clisp.org>
31774
31775         * lib/unistd.in.h: Add comment.
31776         * tests/test-environ.c: Don't include <stdlib.h>.
31777
31778 2008-12-16  Bruno Haible  <bruno@clisp.org>
31779
31780         * lib/parse-duration.h (parse_duration): Document return value
31781         convention.
31782         * lib/parse-duration.c: Include specification header first. Add
31783         comments.
31784         (_): Remove macro.
31785         (parse_year_month_day, parse_hour_minute_second): Move side effects
31786         outside of strchr call.
31787         (parse_non_iso8601): Move side effects outside of isspace call.
31788         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
31789         call.
31790
31791 2008-12-16  Bruno Haible  <bruno@clisp.org>
31792
31793         * tests/test-parse-duration.sh: Produce no output when the test
31794         succeeds.
31795
31796 2008-12-16  Bruno Haible  <bruno@clisp.org>
31797
31798         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
31799         expressions.
31800
31801 2008-12-15  Bruno Haible  <bruno@clisp.org>
31802
31803         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
31804         * doc/glibc-functions/flistxattr.texi: Likewise.
31805         * doc/glibc-functions/fopencookie.texi: Likewise.
31806         * doc/glibc-functions/fremovexattr.texi: Likewise.
31807         * doc/glibc-functions/fsetxattr.texi: Likewise.
31808         * doc/glibc-functions/getxattr.texi: Likewise.
31809         * doc/glibc-functions/lgetxattr.texi: Likewise.
31810         * doc/glibc-functions/listxattr.texi: Likewise.
31811         * doc/glibc-functions/llistxattr.texi: Likewise.
31812         * doc/glibc-functions/lremovexattr.texi: Likewise.
31813         * doc/glibc-functions/lsetxattr.texi: Likewise.
31814         * doc/glibc-functions/removexattr.texi: Likewise.
31815         * doc/glibc-functions/setxattr.texi: Likewise.
31816         * doc/posix-functions/open_memstream.texi: Likewise.
31817
31818 2008-12-15  Eric Blake  <ebb9@byu.net>
31819
31820         Update doc for cygwin 1.7.
31821         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
31822         functions.
31823         * doc/posix-functions/fchmodat.texi: Likewise.
31824         * doc/posix-functions/fchownat.texi: Likewise.
31825         * doc/posix-functions/fdopendir.texi: Likewise.
31826         * doc/posix-functions/fmemopen.texi: Likewise.
31827         * doc/posix-functions/freeaddrinfo.texi: Likewise.
31828         * doc/posix-functions/fstatat.texi: Likewise.
31829         * doc/posix-functions/futimens.texi: Likewise.
31830         * doc/posix-functions/gai_strerror.texi: Likewise.
31831         * doc/posix-functions/getaddrinfo.texi: Likewise.
31832         * doc/posix-functions/getnameinfo.texi: Likewise.
31833         * doc/posix-functions/if_freenameindex.texi: Likewise.
31834         * doc/posix-functions/if_indextoname.texi: Likewise.
31835         * doc/posix-functions/if_nameindex.texi: Likewise.
31836         * doc/posix-functions/if_nametoindex.texi: Likewise.
31837         * doc/posix-functions/insque.texi: Likewise.
31838         * doc/posix-functions/linkat.texi: Likewise.
31839         * doc/posix-functions/llrint.texi: Likewise.
31840         * doc/posix-functions/llrintf.texi: Likewise.
31841         * doc/posix-functions/llrintl.texi: Likewise.
31842         * doc/posix-functions/lockf.texi: Likewise.
31843         * doc/posix-functions/lrintl.texi: Likewise.
31844         * doc/posix-functions/mkdirat.texi: Likewise.
31845         * doc/posix-functions/mkfifoat.texi: Likewise.
31846         * doc/posix-functions/mknodat.texi: Likewise.
31847         * doc/posix-functions/mq_close.texi: Likewise.
31848         * doc/posix-functions/mq_getattr.texi: Likewise.
31849         * doc/posix-functions/mq_notify.texi: Likewise.
31850         * doc/posix-functions/mq_open.texi: Likewise.
31851         * doc/posix-functions/mq_receive.texi: Likewise.
31852         * doc/posix-functions/mq_send.texi: Likewise.
31853         * doc/posix-functions/mq_setattr.texi: Likewise.
31854         * doc/posix-functions/mq_timedreceive.texi: Likewise.
31855         * doc/posix-functions/mq_timedsend.texi: Likewise.
31856         * doc/posix-functions/mq_unlink.texi: Likewise.
31857         * doc/posix-functions/open_memstream.texi: Likewise.
31858         * doc/posix-functions/openat.texi: Likewise.
31859         * doc/posix-functions/posix_fadvise.texi: Likewise.
31860         * doc/posix-functions/posix_fallocate.texi: Likewise.
31861         * doc/posix-functions/posix_madvise.texi: Likewise.
31862         * doc/posix-functions/posix_memalign.texi: Likewise.
31863         * doc/posix-functions/posix_openpt.texi: Likewise.
31864         * doc/posix-functions/readlinkat.texi: Likewise.
31865         * doc/posix-functions/remque.texi: Likewise.
31866         * doc/posix-functions/renameat.texi: Likewise.
31867         * doc/posix-functions/rintl.texi: Likewise.
31868         * doc/posix-functions/sem_unlink.texi: Likewise.
31869         * doc/posix-functions/shm_open.texi: Likewise.
31870         * doc/posix-functions/shm_unlink.texi: Likewise.
31871         * doc/posix-functions/signgam.texi: Likewise.
31872         * doc/posix-functions/sigset.texi: Likewise.
31873         * doc/posix-functions/stpcpy.texi: Likewise.
31874         * doc/posix-functions/stpncpy.texi: Likewise.
31875         * doc/posix-functions/strerror.texi: Likewise.
31876         * doc/posix-functions/strtod.texi: Likewise.
31877         * doc/posix-functions/symlinkat.texi: Likewise.
31878         * doc/posix-functions/unlinkat.texi: Likewise.
31879         * doc/posix-functions/utimensat.texi: Likewise.
31880         * doc/glibc-functions/bindresvport.texi: Likewise.
31881         * doc/glibc-functions/dn_expand.texi: Likewise.
31882         * doc/glibc-functions/exp10.texi: Likewise.
31883         * doc/glibc-functions/exp10f.texi: Likewise.
31884         * doc/glibc-functions/fgetxattr.texi: Likewise.
31885         * doc/glibc-functions/flistxattr.texi: Likewise.
31886         * doc/glibc-functions/fopencookie.texi: Likewise.
31887         * doc/glibc-functions/freeifaddrs.texi: Likewise.
31888         * doc/glibc-functions/fremovexattr.texi: Likewise.
31889         * doc/glibc-functions/fsetxattr.texi: Likewise.
31890         * doc/glibc-functions/getifaddrs.texi: Likewise.
31891         * doc/glibc-functions/getxattr.texi: Likewise.
31892         * doc/glibc-functions/lgetxattr.texi: Likewise.
31893         * doc/glibc-functions/listxattr.texi: Likewise.
31894         * doc/glibc-functions/llistxattr.texi: Likewise.
31895         * doc/glibc-functions/lremovexattr.texi: Likewise.
31896         * doc/glibc-functions/lsetxattr.texi: Likewise.
31897         * doc/glibc-functions/pow10.texi: Likewise.
31898         * doc/glibc-functions/pow10f.texi: Likewise.
31899         * doc/glibc-functions/rcmd_af.texi: Likewise.
31900         * doc/glibc-functions/removexattr.texi: Likewise.
31901         * doc/glibc-functions/res_init.texi: Likewise.
31902         * doc/glibc-functions/res_mkquery.texi: Likewise.
31903         * doc/glibc-functions/res_query.texi: Likewise.
31904         * doc/glibc-functions/res_querydomain.texi: Likewise.
31905         * doc/glibc-functions/res_send.texi: Likewise.
31906         * doc/glibc-functions/rresvport_af.texi: Likewise.
31907         * doc/glibc-functions/setxattr.texi: Likewise.
31908         * doc/glibc-functions/strcasestr.texi: Likewise.
31909
31910 2008-12-15  Bruno Haible  <bruno@clisp.org>
31911
31912         Fix compilation error on OSF/1 4.0.
31913         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
31914         <sys/time.h>, simply delegate to the system header.
31915         Reported by Daniel Richard G. <oss@teragram.com>.
31916
31917 2008-12-15  Bruno Haible  <bruno@clisp.org>
31918
31919         * doc/posix-functions/openat.texi: Mention the 'openat' module.
31920         * doc/posix-functions/fchmodat.texi: Likewise.
31921         * doc/posix-functions/fchownat.texi: Likewise.
31922         * doc/posix-functions/fdopendir.texi: Likewise.
31923         * doc/posix-functions/fstatat.texi: Likewise.
31924         * doc/posix-functions/mkdirat.texi: Likewise.
31925         * doc/posix-functions/unlinkat.texi: Likewise.
31926
31927 2008-12-14  Bruno Haible  <bruno@clisp.org>
31928
31929         Update doc for POSIX:2008.
31930         * doc/posix-functions/faccessat.texi: New file.
31931         * doc/posix-functions/fchmodat.texi: New file.
31932         * doc/posix-functions/fchownat.texi: New file.
31933         * doc/posix-functions/fdopendir.texi: New file.
31934         * doc/posix-functions/fstatat.texi: New file.
31935         * doc/posix-functions/futimens.texi: New file.
31936         * doc/posix-functions/linkat.texi: New file.
31937         * doc/posix-functions/mkdirat.texi: New file.
31938         * doc/posix-functions/mkfifoat.texi: New file.
31939         * doc/posix-functions/mknodat.texi: New file.
31940         * doc/posix-functions/open_wmemstream.texi: New file.
31941         * doc/posix-functions/openat.texi: New file.
31942         * doc/posix-functions/psiginfo.texi: New file.
31943         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
31944         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
31945         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
31946         * doc/posix-functions/readlinkat.texi: New file.
31947         * doc/posix-functions/renameat.texi: New file.
31948         * doc/posix-functions/strerror_l.texi: New file.
31949         * doc/posix-functions/symlinkat.texi: New file.
31950         * doc/posix-functions/unlinkat.texi: New file.
31951         * doc/posix-functions/utimensat.texi: New file.
31952         * doc/gnulib.texi (Function Substitutes): Add these subsections.
31953
31954 2008-12-14  Bruno Haible  <bruno@clisp.org>
31955
31956         Update doc for POSIX:2008.
31957         * doc/posix-functions/alphasort.texi: Renamed from
31958         doc/glibc-functions/alphasort.texi.
31959         * doc/posix-functions/dirfd.texi: Renamed from
31960         doc/glibc-functions/dirfd.texi.
31961         * doc/posix-functions/dprintf.texi: Renamed from
31962         doc/glibc-functions/dprintf.texi.
31963         * doc/posix-functions/duplocale.texi: Renamed from
31964         doc/glibc-functions/duplocale.texi.
31965         * doc/posix-functions/fexecve.texi: Renamed from
31966         doc/glibc-functions/fexecve.texi.
31967         * doc/posix-functions/fmemopen.texi: Renamed from
31968         doc/glibc-functions/fmemopen.texi.
31969         * doc/posix-functions/freelocale.texi: Renamed from
31970         doc/glibc-functions/freelocale.texi.
31971         * doc/posix-functions/getdate_err.texi: Renamed from
31972         doc/glibc-functions/getdate_err.texi.
31973         * doc/posix-functions/isalnum_l.texi: Renamed from
31974         doc/glibc-functions/isalnum_l.texi.
31975         * doc/posix-functions/isalpha_l.texi: Renamed from
31976         doc/glibc-functions/isalpha_l.texi.
31977         * doc/posix-functions/isblank_l.texi: Renamed from
31978         doc/glibc-functions/isblank_l.texi.
31979         * doc/posix-functions/iscntrl_l.texi: Renamed from
31980         doc/glibc-functions/iscntrl_l.texi.
31981         * doc/posix-functions/isdigit_l.texi: Renamed from
31982         doc/glibc-functions/isdigit_l.texi.
31983         * doc/posix-functions/isgraph_l.texi: Renamed from
31984         doc/glibc-functions/isgraph_l.texi.
31985         * doc/posix-functions/islower_l.texi: Renamed from
31986         doc/glibc-functions/islower_l.texi.
31987         * doc/posix-functions/isprint_l.texi: Renamed from
31988         doc/glibc-functions/isprint_l.texi.
31989         * doc/posix-functions/ispunct_l.texi: Renamed from
31990         doc/glibc-functions/ispunct_l.texi.
31991         * doc/posix-functions/isspace_l.texi: Renamed from
31992         doc/glibc-functions/isspace_l.texi.
31993         * doc/posix-functions/isupper_l.texi: Renamed from
31994         doc/glibc-functions/isupper_l.texi.
31995         * doc/posix-functions/iswalnum_l.texi: Renamed from
31996         doc/glibc-functions/iswalnum_l.texi.
31997         * doc/posix-functions/iswalpha_l.texi: Renamed from
31998         doc/glibc-functions/iswalpha_l.texi.
31999         * doc/posix-functions/iswblank_l.texi: Renamed from
32000         doc/glibc-functions/iswblank_l.texi.
32001         * doc/posix-functions/iswcntrl_l.texi: Renamed from
32002         doc/glibc-functions/iswcntrl_l.texi.
32003         * doc/posix-functions/iswctype_l.texi: Renamed from
32004         doc/glibc-functions/iswctype_l.texi.
32005         * doc/posix-functions/iswdigit_l.texi: Renamed from
32006         doc/glibc-functions/iswdigit_l.texi.
32007         * doc/posix-functions/iswgraph_l.texi: Renamed from
32008         doc/glibc-functions/iswgraph_l.texi.
32009         * doc/posix-functions/iswlower_l.texi: Renamed from
32010         doc/glibc-functions/iswlower_l.texi.
32011         * doc/posix-functions/iswprint_l.texi: Renamed from
32012         doc/glibc-functions/iswprint_l.texi.
32013         * doc/posix-functions/iswpunct_l.texi: Renamed from
32014         doc/glibc-functions/iswpunct_l.texi.
32015         * doc/posix-functions/iswspace_l.texi: Renamed from
32016         doc/glibc-functions/iswspace_l.texi.
32017         * doc/posix-functions/iswupper_l.texi: Renamed from
32018         doc/glibc-functions/iswupper_l.texi.
32019         * doc/posix-functions/iswxdigit_l.texi: Renamed from
32020         doc/glibc-functions/iswxdigit_l.texi.
32021         * doc/posix-functions/isxdigit_l.texi: Renamed from
32022         doc/glibc-functions/isxdigit_l.texi.
32023         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
32024         doc/glibc-functions/mbsnrtowcs.texi.
32025         * doc/posix-functions/mkdtemp.texi: Renamed from
32026         doc/glibc-functions/mkdtemp.texi.
32027         * doc/posix-functions/newlocale.texi: Renamed from
32028         doc/glibc-functions/newlocale.texi.
32029         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
32030         doc/glibc-functions/nl_langinfo_l.texi.
32031         * doc/posix-functions/open_memstream.texi: Renamed from
32032         doc/glibc-functions/open_memstream.texi.
32033         * doc/posix-functions/opterr.texi: Renamed from
32034         doc/glibc-functions/opterr.texi.
32035         * doc/posix-functions/optind.texi: Renamed from
32036         doc/glibc-functions/optind.texi.
32037         * doc/posix-functions/optopt.texi: Renamed from
32038         doc/glibc-functions/optopt.texi.
32039         * doc/posix-functions/psignal.texi: Renamed from
32040         doc/glibc-functions/psignal.texi.
32041         * doc/posix-functions/scandir.texi: Renamed from
32042         doc/glibc-functions/scandir.texi.
32043         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
32044         doc/glibc-functions/sched_get_priority_min.texi.
32045         * doc/posix-functions/signgam.texi: Renamed from
32046         doc/glibc-functions/signgam.texi.
32047         * doc/posix-functions/stpcpy.texi: Renamed from
32048         doc/glibc-functions/stpcpy.texi.
32049         * doc/posix-functions/stpncpy.texi: Renamed from
32050         doc/glibc-functions/stpncpy.texi.
32051         * doc/posix-functions/strcasecmp_l.texi: Renamed from
32052         doc/glibc-functions/strcasecmp_l.texi.
32053         * doc/posix-functions/strcoll_l.texi: Renamed from
32054         doc/glibc-functions/strcoll_l.texi.
32055         * doc/posix-functions/strfmon_l.texi: Renamed from
32056         doc/glibc-functions/strfmon_l.texi.
32057         * doc/posix-functions/strftime_l.texi: Renamed from
32058         doc/glibc-functions/strftime_l.texi.
32059         * doc/posix-functions/strncasecmp_l.texi: Renamed from
32060         doc/glibc-functions/strncasecmp_l.texi.
32061         * doc/posix-functions/strndup.texi: Renamed from
32062         doc/glibc-functions/strndup.texi.
32063         * doc/posix-functions/strnlen.texi: Renamed from
32064         doc/glibc-functions/strnlen.texi.
32065         * doc/posix-functions/strsignal.texi: Renamed from
32066         doc/glibc-functions/strsignal.texi.
32067         * doc/posix-functions/strxfrm_l.texi: Renamed from
32068         doc/glibc-functions/strxfrm_l.texi.
32069         * doc/posix-functions/timer_gettime.texi: Renamed from
32070         doc/glibc-functions/timer_gettime.texi.
32071         * doc/posix-functions/tolower_l.texi: Renamed from
32072         doc/glibc-functions/tolower_l.texi.
32073         * doc/posix-functions/toupper_l.texi: Renamed from
32074         doc/glibc-functions/toupper_l.texi.
32075         * doc/posix-functions/towctrans_l.texi: Renamed from
32076         doc/glibc-functions/towctrans_l.texi.
32077         * doc/posix-functions/towlower_l.texi: Renamed from
32078         doc/glibc-functions/towlower_l.texi.
32079         * doc/posix-functions/towupper_l.texi: Renamed from
32080         doc/glibc-functions/towupper_l.texi.
32081         * doc/posix-functions/uselocale.texi: Renamed from
32082         doc/glibc-functions/uselocale.texi.
32083         * doc/posix-functions/vdprintf.texi: Renamed from
32084         doc/glibc-functions/vdprintf.texi.
32085         * doc/posix-functions/wcpcpy.texi:
32086         Renamed from doc/glibc-functions/wcpcpy.texi.
32087         * doc/posix-functions/wcpncpy.texi: Renamed from
32088         doc/glibc-functions/wcpncpy.texi.
32089         * doc/posix-functions/wcscasecmp.texi: Renamed from
32090         doc/glibc-functions/wcscasecmp.texi.
32091         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
32092         doc/glibc-functions/wcscasecmp_l.texi.
32093         * doc/posix-functions/wcscoll_l.texi: Renamed from
32094         doc/glibc-functions/wcscoll_l.texi.
32095         * doc/posix-functions/wcsdup.texi: Renamed from
32096         doc/glibc-functions/wcsdup.texi.
32097         * doc/posix-functions/wcsncasecmp.texi: Renamed from
32098         doc/glibc-functions/wcsncasecmp.texi.
32099         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
32100         doc/glibc-functions/wcsncasecmp_l.texi.
32101         * doc/posix-functions/wcsnlen.texi: Renamed from
32102         doc/glibc-functions/wcsnlen.texi.
32103         * doc/posix-functions/wcsnrtombs.texi: Renamed from
32104         doc/glibc-functions/wcsnrtombs.texi.
32105         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
32106         doc/glibc-functions/wcsxfrm_l.texi.
32107         * doc/posix-functions/wctrans_l.texi: Renamed from
32108         doc/glibc-functions/wctrans_l.texi.
32109         * doc/posix-functions/wctype_l.texi: Renamed from
32110         doc/glibc-functions/wctype_l.texi.
32111         * doc/gnulib.texi (Function Substitutes): Add these subsections.
32112         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
32113         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
32114         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
32115         these subsections.
32116         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
32117         Remove sections.
32118
32119 2008-12-14  Bruno Haible  <bruno@clisp.org>
32120
32121         Update doc for POSIX:2008.
32122         * doc/posix-functions/*.texi: Update URL of POSIX specification.
32123
32124 2008-12-14  Bruno Haible  <bruno@clisp.org>
32125
32126         Update doc for POSIX:2008.
32127         * doc/pastposix-functions/bcmp.texi: Renamed from
32128         doc/posix-functions/bcmp.texi.
32129         * doc/pastposix-functions/bcopy.texi: Renamed from
32130         doc/posix-functions/bcopy.texi.
32131         * doc/pastposix-functions/bsd_signal.texi: Renamed from
32132         doc/posix-functions/bsd_signal.texi.
32133         * doc/pastposix-functions/bzero.texi: Renamed from
32134         doc/posix-functions/bzero.texi.
32135         * doc/pastposix-functions/ecvt.texi: Renamed from
32136         doc/posix-functions/ecvt.texi.
32137         * doc/pastposix-functions/fcvt.texi: Renamed from
32138         doc/posix-functions/fcvt.texi.
32139         * doc/pastposix-functions/ftime.texi: Renamed from
32140         doc/posix-functions/ftime.texi.
32141         * doc/pastposix-functions/gcvt.texi: Renamed from
32142         doc/posix-functions/gcvt.texi.
32143         * doc/pastposix-functions/getcontext.texi: Renamed from
32144         doc/posix-functions/getcontext.texi.
32145         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
32146         doc/posix-functions/gethostbyaddr.texi.
32147         * doc/pastposix-functions/gethostbyname.texi: Renamed from
32148         doc/posix-functions/gethostbyname.texi.
32149         * doc/pastposix-functions/getwd.texi: Renamed from
32150         doc/posix-functions/getwd.texi.
32151         * doc/pastposix-functions/h_errno.texi: Renamed from
32152         doc/posix-functions/h_errno.texi.
32153         * doc/pastposix-functions/index.texi: Renamed from
32154         doc/posix-functions/index.texi.
32155         * doc/pastposix-functions/makecontext.texi: Renamed from
32156         doc/posix-functions/makecontext.texi.
32157         * doc/pastposix-functions/mktemp.texi: Renamed from
32158         doc/posix-functions/mktemp.texi.
32159         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
32160         doc/posix-functions/pthread_attr_getstackaddr.texi.
32161         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
32162         doc/posix-functions/pthread_attr_setstackaddr.texi.
32163         * doc/pastposix-functions/rindex.texi: Renamed from
32164         doc/posix-functions/rindex.texi.
32165         * doc/pastposix-functions/scalb.texi: Renamed from
32166         doc/posix-functions/scalb.texi.
32167         * doc/pastposix-functions/setcontext.texi: Renamed from
32168         doc/posix-functions/setcontext.texi.
32169         * doc/pastposix-functions/swapcontext.texi: Renamed from
32170         doc/posix-functions/swapcontext.texi.
32171         * doc/pastposix-functions/ualarm.texi: Renamed from
32172         doc/posix-functions/ualarm.texi.
32173         * doc/pastposix-functions/usleep.texi: Renamed from
32174         doc/posix-functions/usleep.texi.
32175         * doc/pastposix-functions/vfork.texi: Renamed from
32176         doc/posix-functions/vfork.texi.
32177         * doc/pastposix-functions/wcswcs.texi: Renamed from
32178         doc/posix-functions/wcswcs.texi.
32179         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
32180         (Function Substitutes): Update.
32181
32182 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32183
32184         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
32185         m4/strerror.m4.
32186
32187 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32188             Bruno Haible  <bruno@clisp.org>
32189
32190         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
32191
32192 2008-12-13  Bruno Haible  <bruno@clisp.org>
32193
32194         * modules/strtoull (Depends-on): Remove unistd.
32195
32196 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32197
32198         * modules/strtoull (Depends-on): Add stdlib.
32199
32200 2008-12-11  Simon Josefsson  <simon@josefsson.org>
32201
32202         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
32203
32204 2008-12-10  Jim Meyering  <meyering@redhat.com>
32205
32206         gl_ASSERT: don't say assertions are disabled when they're not
32207         * m4/assert.m4 (gl_ASSERT): Do not make configure report
32208         "checking whether to enable assertions... no", when they are in
32209         fact enabled.  This is solely a bug in the output of configure.
32210         In spite of saying "no", NDEBUG was not defined in that case.
32211         Also, as noted by Eric Blake, leave assertions enabled upon
32212         --enable-assert=INVALID.
32213
32214 2008-12-10  Bruno Haible  <bruno@clisp.org>
32215
32216         Change MODULES.html to refer to POSIX:2008 where possible.
32217         * MODULES.html.sh (POSIX2008_URL): New variable.
32218         (posix_headers): Remove sys/timeb, ucontext.
32219         (posix2001_headers): New variable.
32220         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
32221         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
32222         index, makecontext, mktemp, pthread_attr_getstackaddr,
32223         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
32224         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
32225         (posix2001_functions): New variable.
32226         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
32227         otherwise.
32228
32229 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32230
32231         add missing include to parse-duration.c
32232         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
32233         * modules/parse-duration (Depends-on): Add xalloc.
32234
32235         fix sed script reading maint.mk
32236         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
32237         (syntax-check-rules): Use it.
32238
32239 2008-12-09  Bruno Haible  <bruno@clisp.org>
32240
32241         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
32242         MacOS X 10.4/PowerPC.
32243         Reported by Simon Josefsson.
32244
32245 2008-12-08  Jim Meyering  <meyering@redhat.com>
32246
32247         work around mingw's lack of some S_IF definitions
32248         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
32249         Reported by Simon Josefsson.
32250
32251 2008-12-08  Bruno Haible  <bruno@clisp.org>
32252
32253         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
32254         applied to variables. Needed on MacOS X 10.4/PowerPC.
32255         Reported by Simon Josefsson.
32256
32257 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
32258         and Eric Blake  <ebb9@byu.net>
32259
32260         assert: honor --enable-assert
32261         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
32262         order to honor --enable-assert, rather than treating it as a
32263         synonym for --disable-assert.
32264
32265 2008-12-08  Jim Meyering  <meyering@redhat.com>
32266
32267         * lib/posixtm.c: Remove now-useless declaration of mktime.
32268
32269         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
32270
32271 2008-12-07  Bruno Haible  <bruno@clisp.org>
32272
32273         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
32274         test_once): Mark functions as static.
32275         * tests/test-tls.c (test_tls): Likewise.
32276
32277 2008-12-07  Bruno Haible  <bruno@clisp.org>
32278
32279         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
32280         iconv_register_autodetect.
32281
32282 2008-12-07  Jim Meyering  <meyering@redhat.com>
32283
32284         posixtm.c: avoid a warning
32285         * lib/posixtm.c (posixtime): Don't initialize tm0.
32286         It's no longer needed to placate gcc4's -Wuninitialized,
32287         and the attempt to placate would elicit a new warning.
32288
32289         unicodeio.c: mark unused parameters
32290         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
32291         (fallback_failure_callback): Likewise.
32292
32293 2008-12-07  Bruno Haible  <bruno@clisp.org>
32294
32295         * gnulib-tool (func_create_testdir): When building the tests
32296         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
32297         Reported by Simon Josefsson.
32298
32299 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32300
32301         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
32302
32303 2008-12-06  Bruno Haible  <bruno@clisp.org>
32304
32305         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
32306         Suggested by Eric Blake.
32307
32308 2008-12-06  Bruno Haible  <bruno@clisp.org>
32309
32310         Fix a c-stack test failure on MacOS X.
32311         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
32312         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
32313         handler for SIGBUS as well.
32314         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
32315         install a signal handler for SIGBUS as well.
32316         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
32317
32318 2008-12-06  Bruno Haible  <bruno@clisp.org>
32319
32320         Advocacy documentation.
32321         * doc/gnulib-intro.texi (Benefits): New section.
32322         * doc/gnulib.texi: Update.
32323
32324 2008-12-06  Bruno Haible  <bruno@clisp.org>
32325
32326         Document the 'manywarnings' module.
32327         * doc/manywarnings.texi: New file.
32328         * doc/gnulib.texi: Include it.
32329
32330 2008-12-05  Eric Blake  <ebb9@byu.net>
32331
32332         tests: silence some gcc warnings
32333         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
32334         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
32335         type mismatches.
32336
32337 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32338             Bruno Haible  <bruno@clisp.org>
32339
32340         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
32341
32342 2008-11-29  Jim Meyering  <meyering@redhat.com>
32343
32344         unicodeio.c: mark unused parameters
32345         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
32346         (fallback_failure_callback): Likewise.
32347
32348         fts: fix a thinko
32349         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
32350         (set_stat_type): Return S_IF*-valued "type" directly.
32351         Prompted by James Youngman's spotting a related bug.
32352         Confirmed by further testing through find.
32353
32354         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
32355         * lib/fts.c (D_TYPE): Define.
32356         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
32357         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
32358         (s_ifmt_shift_bits): New function.
32359         (set_stat_type): New function.
32360         (fts_build): When not calling fts_stat, call set_stat_type
32361         to propagate dirent.d_type info to fts_read caller.
32362         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
32363         fts_statp->st_mode type information may be valid.
32364
32365 2008-11-28  Simon Josefsson  <simon@josefsson.org>
32366
32367         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
32368         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
32369         <sds@gnu.org>.
32370
32371 2008-11-20  Bruno Haible  <bruno@clisp.org>
32372
32373         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
32374         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
32375         INCLUDE_NEXT.
32376         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
32377         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
32378         * modules/math (Makefile.am): Substitute
32379         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
32380         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32381
32382 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
32383             Bruno Haible  <bruno@clisp.org>
32384
32385         * lib/stdint.in.h: Define all type macros so that their expansion is
32386         a single typedef'ed token. Fixes a compilation failure in Boost which
32387         does "using ::int8_t;".
32388
32389 2008-11-18  Simon Josefsson  <simon@josefsson.org>
32390
32391         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
32392         gl_MANYWARN_ALL_GCC.
32393         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
32394         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
32395         * modules/manywarnings: New file.
32396         * MODULES.html.sh: Mention manywarnings module.
32397
32398 2008-11-18  Bruno Haible  <bruno@clisp.org>
32399
32400         * doc/gnulib-tool.texi (Unit tests): New section.
32401
32402 2008-11-18  Simon Josefsson  <simon@josefsson.org>
32403
32404         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
32405         paths like 'lib/po/foo.po'.
32406
32407 2008-11-17  Simon Josefsson  <simon@josefsson.org>
32408
32409         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
32410         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
32411
32412 2008-11-17  Simon Josefsson  <simon@josefsson.org>
32413
32414         * m4/warnings.m4: Use CPPFLAGS to really check whether the
32415         parameter works.
32416
32417 2008-11-17  Simon Josefsson  <simon@josefsson.org>
32418
32419         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
32420
32421 2008-11-17  Bruce Korb  <bkorb@gnu.org>
32422
32423         * modules/parse-duration-tests: New file.
32424         * tests/test-parse-duration.sh: New file.
32425         * tests/test-parse-duration.c: New file.
32426
32427         New module 'parse-duration'.
32428         * lib/parse-duration.h: New file.
32429         * lib/parse-duration.c: New file.
32430         * modules/parse-duration: New file.
32431
32432 2008-11-17  Bruno Haible  <bruno@clisp.org>
32433
32434         * tests/test-select-out.sh: Comment out the first pipe test.
32435         Reported by Simon Josefsson.
32436
32437 2008-11-17  Bruno Haible  <bruno@clisp.org>
32438
32439         * modules/getaddrinfo (Depends-on): Add servent, hostent.
32440         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
32441         gl_HOSTENT.
32442
32443 2008-11-17  Bruno Haible  <bruno@clisp.org>
32444
32445         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
32446         -lnetwork and -lnet. Needed for Haiku and BeOS.
32447
32448 2008-11-16  Bruno Haible  <bruno@clisp.org>
32449
32450         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
32451
32452 2008-11-16  Bruno Haible  <bruno@clisp.org>
32453
32454         Avoid test failure on Haiku.
32455         * tests/test-fsync.c: Include <errno.h>.
32456         (main): Don't require that fsync (0) fails.
32457
32458 2008-11-15  Bruno Haible  <bruno@clisp.org>
32459
32460         New module 'hostent'.
32461         * modules/hostent: New file.
32462         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
32463
32464 2008-11-15  Bruno Haible  <bruno@clisp.org>
32465
32466         New module 'servent'.
32467         * modules/servent: New file.
32468         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
32469
32470 2008-11-15  Bruno Haible  <bruno@clisp.org>
32471
32472         Avoid generating same test program with two different rules.
32473         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
32474         test-frexp to test-frexp-nolibm.
32475         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
32476         test-frexpl to test-frexpl-nolibm.
32477
32478 2008-11-15  Bruno Haible  <bruno@clisp.org>
32479
32480         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
32481         $(FREXPL_LIBM).
32482
32483 2008-11-15  Bruno Haible  <bruno@clisp.org>
32484
32485         * lib/netdb.in.h: Activate the definitions also when the system's
32486         <netdb.h> has 'struct addrinfo'.
32487         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
32488         EAI_OVERFLOW or AI_NUMERICSERV.
32489         * doc/posix-headers/netdb.texi: Document the problem.
32490
32491 2008-11-15  Bruno Haible  <bruno@clisp.org>
32492
32493         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
32494
32495         Make the 'sched' module work on platforms where <sched.h> exists but
32496         is incomplete (such as Haiku).
32497         * lib/sched.in.h; Include the system's <sched.h> if it exists.
32498         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
32499         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
32500         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
32501         HAVE_STRUCT_SCHED_PARAM.
32502         * modules/sched (Depends-on): Add include_next.
32503         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
32504         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
32505         * doc/posix-headers/sched.texi: Document the issue.
32506
32507 2008-11-13  Jim Meyering  <meyering@redhat.com>
32508
32509         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
32510         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
32511         test would fail due to the difference in the Report bugs to ...
32512         line.  The expected address is empty, "<>", while the actual
32513         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
32514
32515 2008-11-12  Bruno Haible  <bruno@clisp.org>
32516
32517         lstat: don't compile lstat.c on systems lacking lstat
32518         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
32519         which don't have lstat; this is handled by lib/sys_stat.in.h already.
32520         Reported by Daniel P. Berrange via Jim Meyering.
32521
32522 2008-11-12  Jim Meyering  <meyering@redhat.com>
32523
32524         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
32525
32526 2008-11-12  Simon Josefsson  <simon@josefsson.org>
32527
32528         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
32529         instead.
32530
32531 2008-11-12  Bruno Haible  <bruno@clisp.org>
32532
32533         * lib/unicodeio.c: Include unistr.h.
32534         (utf8_wctomb): Remove function.
32535         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
32536
32537 2008-11-12  Simon Josefsson  <simon@josefsson.org>
32538
32539         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
32540         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
32541         <bruno@clisp.org>.
32542         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
32543
32544 2008-11-12  Simon Josefsson  <simon@josefsson.org>
32545
32546         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
32547         * doc/gnulib.texi: Add section for warnings.
32548
32549 2008-11-11  Bruno Haible  <bruno@clisp.org>
32550
32551         * lib/sockets.h: Add a comment.
32552
32553 2008-11-11  Karl Berry  <karl@gnu.org>
32554
32555         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
32556
32557 2008-11-11  Eric Blake  <ebb9@byu.net>
32558
32559         fdl.texi: avoid git symlinks
32560         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
32561
32562 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32563
32564         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
32565
32566 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32567
32568         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
32569         (gl_WARN_ADD): Substitute $2 if literal.
32570
32571 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32572
32573         * m4/warning.m4: Remove.
32574
32575 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32576
32577         * m4/warnings.m4: Almost complete rewrite. :-)
32578
32579 2008-11-10  Simon Josefsson  <simon@josefsson.org>
32580
32581         * modules/warnings: New module.
32582         * m4/warnings.m4: New file.
32583         * MODULES.html.sh: Mention warnings module.
32584         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
32585         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32586
32587 2008-11-10  Eric Blake  <ebb9@byu.net>
32588
32589         fdl.texi: make a symlink to the latest version
32590         * doc/standards.texi: Revert today's earlier change.
32591         * doc/fdl-1.2.texi: Rename from old fdl.texi...
32592         * doc/fdl.texi: ...and replace this with a symlink to the newer
32593         fdl-1.3.texi.
32594
32595 2008-11-10  Bruno Haible  <bruno@clisp.org>
32596
32597         * tests/test-select-fd.c (main): Accept the result file name as fourth
32598         argument.
32599         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
32600         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
32601
32602 2008-11-10  Bruno Haible  <bruno@clisp.org>
32603
32604         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
32605         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
32606         as autoconf-substituted macros.
32607         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
32608         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
32609         gl_NETDB_H_DEFAULTS. Set these variables.
32610         * modules/netdb (Makefile.am): Substitute these variables.
32611
32612 2008-11-10  Eric Blake  <ebb9@byu.net>
32613
32614         standards.texi: include correct file for FDL 1.3
32615         * doc/standards.texi (GNU Free Documentation License): Change
32616         include file to pull in FDL 1.3, not 1.2.
32617
32618         fdl.texi: revert accidental change to license
32619         * doc/fdl.texi: This is FDL 1.2, not 1.3.
32620
32621 2008-11-10  Bruno Haible  <bruno@clisp.org>
32622
32623         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
32624         cross-compiling guesses also when the native compile gives no result.
32625
32626 2008-11-10  Bruno Haible  <bruno@clisp.org>
32627
32628         * lib/spawni.c (__spawni): Force variable into the stack.
32629
32630 2008-11-10  Bruno Haible  <bruno@clisp.org>
32631
32632         Add support for Haiku.
32633         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
32634         glibc and BeOS, but also on Haiku.
32635         * lib/fpurge.c (fpurge): Likewise.
32636         * lib/freadable.c (freadable): Likewise.
32637         * lib/freadahead.c (freadahead): Likewise.
32638         * lib/freading.c (freading): Likewise.
32639         * lib/freadptr.c (freadptr): Likewise.
32640         * lib/freadseek.c (freadptrinc): Likewise.
32641         * lib/fseeko.c (rpl_fseeko): Likewise.
32642         * lib/fseterr.c (fseterr): Likewise.
32643         * lib/fwritable.c (fwritable): Likewise.
32644         * lib/fwriting.c (fwriting): Likewise.
32645         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
32646
32647 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
32648
32649         * lib/config.charset: Treat Haiku like BeOS.
32650
32651 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
32652
32653         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
32654         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
32655
32656 2008-11-08  Bruno Haible  <bruno@clisp.org>
32657
32658         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
32659         AC_CACHE_CHECK.
32660
32661 2008-11-08  Bruno Haible  <bruno@clisp.org>
32662
32663         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
32664
32665 2008-11-08  Bruno Haible  <bruno@clisp.org>
32666
32667         * tests/test-select-fd.c: New file.
32668         * tests/test-select-in.sh: New file.
32669         * tests/test-select-out.sh: New file.
32670         * tests/test-select-stdin.c: New file.
32671         * modules/select-tests (Files): Add the new files.
32672         (Depends-on): Add gettimeofday.
32673         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
32674         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
32675         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
32676
32677 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
32678             Bruno Haible  <bruno@clisp.org>
32679
32680         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
32681
32682 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
32683
32684         * build-aux/pmccabe2html: Added support for C++ source files.
32685
32686 2008-11-05  Ben Pfaff  <blp@gnu.org>
32687
32688         Fix lib/close.c build on Windows.
32689         * modules/close (Files): Add lib/w32sock.h.
32690
32691 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
32692
32693         Accept Bison's NEWS format.
32694         * build-aux/announce-gen (print_news_deltas): Tweak
32695         $re_prefix.
32696
32697 2008-11-04  Bruno Haible  <bruno@clisp.org>
32698
32699         * modules/random_r (Maintainer): Add glibc.
32700
32701 2008-11-04  Simon Josefsson  <simon@josefsson.org>
32702
32703         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
32704         by karl@freefriends.org (Karl Berry).
32705         * doc/alloca.texi: Likewise.
32706         * doc/c-ctype.texi: Likewise.
32707         * doc/c-strcase.texi: Likewise.
32708         * doc/c-strcaseeq.texi: Likewise.
32709         * doc/c-strcasestr.texi: Likewise.
32710         * doc/c-strstr.texi: Likewise.
32711         * doc/c-strtod.texi: Likewise.
32712         * doc/c-strtold.texi: Likewise.
32713         * doc/ctime.texi: Likewise.
32714         * doc/error.texi: Likewise.
32715         * doc/fdl.texi: Likewise.
32716         * doc/gcd.texi: Likewise.
32717         * doc/getdate.texi: Likewise.
32718         * doc/gnulib-intro.texi: Likewise.
32719         * doc/gnulib-tool.texi: Likewise.
32720         * doc/gnulib.texi: Likewise.
32721         * doc/inet_ntoa.texi: Likewise.
32722         * doc/maintain.texi: Likewise.
32723         * doc/make-stds.texi: Likewise.
32724         * doc/quote.texi: Likewise.
32725         * doc/regexprops-generic.texi: Likewise.
32726         * doc/standards.texi: Likewise.
32727         * doc/verify.texi: Likewise.
32728         * doc/visibility.texi: Likewise.
32729         * doc/gnulib.texi (GNU Free Documentation License): Include
32730         fdl-1.3.texi instead of fdl.texi.
32731
32732 2008-11-04  Simon Josefsson  <simon@josefsson.org>
32733
32734         * doc/fdl-1.3.texi: New file, from
32735         <http://www.gnu.org/licenses/fdl-1.3.texi>.
32736         * modules/fdl-1.3: Add.
32737         * MODULES.html.sh: Add fdl-1.3.
32738
32739 2008-11-03  Bruno Haible  <bruno@clisp.org>
32740
32741         Make determination of absolute name of header file work with AIX xlc.
32742         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
32743         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
32744         preprocessing.
32745         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32746         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
32747
32748 2008-11-03  Simon Josefsson  <simon@josefsson.org>
32749
32750         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
32751         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
32752         <ludo@gnu.org>.
32753
32754 2008-11-02  Bruno Haible  <bruno@clisp.org>
32755
32756         Mark 'strpbrk' obsolete.
32757         * modules/strpbrk (Status, Notice): New sections.
32758         * modules/strtok_r (Depends-on): Add strpbrk.
32759
32760 2008-11-02  Bruno Haible  <bruno@clisp.org>
32761
32762         Mark 'strdup' obsolete.
32763         * modules/strdup (Status, Notice): New sections.
32764         * modules/findprog (Depends-on): Add strdup.
32765         * modules/getaddrinfo (Depends-on): Likewise.
32766         * modules/localename (Depends-on): Likewise.
32767         * modules/relocatable-lib (Depends-on): Likewise.
32768         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
32769         * modules/relocatable-prog (Depends-on): Likewise.
32770         * modules/trim (Depends-on): Likewise.
32771         * modules/unictype/gen-ctype (Depends-on): Likewise.
32772         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
32773
32774 2008-11-02  Bruno Haible  <bruno@clisp.org>
32775
32776         Mark 'strcspn' obsolete.
32777         * modules/strcspn (Status, Notice): New sections.
32778
32779 2008-11-02  Bruno Haible  <bruno@clisp.org>
32780
32781         Mark 'rmdir' obsolete.
32782         * modules/rmdir (Status, Notice): New sections.
32783         * modules/clean-temp (Depends-on): Add rmdir.
32784         * modules/openat (Depends-on): Likewise.
32785
32786 2008-11-02  Bruno Haible  <bruno@clisp.org>
32787
32788         Mark 'raise' obsolete.
32789         * modules/raise (Status, Notice): New sections.
32790         (Include): Specify <signal.h>.
32791         * modules/stdio (Depends-on): Add raise.
32792         * modules/write (Depends-on): Likewise.
32793
32794 2008-11-02  Bruno Haible  <bruno@clisp.org>
32795
32796         Mark 'memset' obsolete.
32797         * modules/memset (Status, Notice): New sections.
32798
32799 2008-11-02  Bruno Haible  <bruno@clisp.org>
32800
32801         Mark 'memmove' obsolete.
32802         * modules/memmove (Status, Notice): New sections.
32803         * modules/argp (Depends-on): Add memmove.
32804         * modules/argz (Depends-on): Likewise.
32805         * modules/canonicalize (Depends-on): Likewise.
32806         * modules/canonicalize-lgpl (Depends-on): Likewise.
32807         * modules/fts (Depends-on): Likewise.
32808         * modules/getcwd (Depends-on): Likewise.
32809         * modules/human (Depends-on): Likewise.
32810         * modules/regex (Depends-on): Likewise.
32811         * modules/striconveh (Depends-on): Likewise.
32812         * modules/trim (Depends-on): Likewise.
32813         * modules/unistr/u8-move (Depends-on): Likewise.
32814         * modules/unistr/u16-move (Depends-on): Likewise.
32815         * modules/unistr/u32-move (Depends-on): Likewise.
32816
32817 2008-11-02  Bruno Haible  <bruno@clisp.org>
32818
32819         Mark 'memcpy' obsolete.
32820         * modules/memcpy (Status, Notice): New sections.
32821
32822 2008-11-02  Bruno Haible  <bruno@clisp.org>
32823
32824         Mark 'memcmp' obsolete.
32825         * modules/memcmp (Status, Notice): New sections.
32826         * modules/argmatch (Depends-on): Add memchr.
32827         * modules/backupfile (Depends-on): Likewise.
32828         * modules/c-strcasestr (Depends-on): Likewise.
32829         * modules/crypto/des (Depends-on): Likewise.
32830         * modules/csharpcomp (Depends-on): Likewise.
32831         * modules/fnmatch (Depends-on): Likewise.
32832         * modules/git-merge-changelog (Depends-on): Likewise.
32833         * modules/isnand (Depends-on): Likewise.
32834         * modules/isnand-nolibm (Depends-on): Likewise.
32835         * modules/isnanf (Depends-on): Likewise.
32836         * modules/isnanf-nolibm (Depends-on): Likewise.
32837         * modules/isnanl (Depends-on): Likewise.
32838         * modules/isnanl-nolibm (Depends-on): Likewise.
32839         * modules/mbchar (Depends-on): Likewise.
32840         * modules/memcoll (Depends-on): Likewise.
32841         * modules/quotearg (Depends-on): Likewise.
32842         * modules/regex (Depends-on): Likewise.
32843         * modules/relocatable-prog (Depends-on): Likewise.
32844         * modules/same (Depends-on): Likewise.
32845         * modules/signbit (Depends-on): Likewise.
32846         * modules/strcasestr-simple (Depends-on): Likewise.
32847         * modules/unictype/gen-ctype (Depends-on): Likewise.
32848         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
32849         * modules/uniname/uniname (Depends-on): Likewise.
32850         * modules/unistr/u8-cmp (Depends-on): Likewise.
32851
32852 2008-11-02  Bruno Haible  <bruno@clisp.org>
32853
32854         Mark 'memchr' obsolete.
32855         * modules/memchr (Status, Notice): New sections.
32856         * modules/argp (Depends-on): Add memchr.
32857         * modules/base64 (Depends-on): Likewise.
32858         * modules/c-strcasestr (Depends-on): Likewise.
32859         * modules/chdir-long (Depends-on): Likewise.
32860         * modules/fnmatch (Depends-on): Likewise.
32861         * modules/getsubopt (Depends-on): Likewise.
32862         * modules/git-merge-changelog (Depends-on): Likewise.
32863         * modules/glob (Depends-on): Likewise.
32864         * modules/strcasestr-simple (Depends-on): Likewise.
32865         * modules/strnlen (Depends-on): Likewise.
32866
32867 2008-11-02  Bruno Haible  <bruno@clisp.org>
32868
32869         Mark 'atexit' obsolete.
32870         * modules/atexit (Status, Notice): New sections.
32871         * modules/chdir-long (Depends-on): Add atexit.
32872         * modules/wait-process (Depends-on): Likewise.
32873
32874 2008-11-02  Bruno Haible  <bruno@clisp.org>
32875
32876         * gnulib-tool: New option --with-obsolete.
32877         (func_usage): Document it.
32878         (func_modules_transitive_closure): Drop obsolete dependencies if
32879         incobsolete is not true.
32880         (func_import): Read and save the incobsolete variable to the cache.
32881
32882 2008-11-02  Bruno Haible  <bruno@clisp.org>
32883
32884         * modules/TEMPLATE-EXTENDED: New field 'Status'.
32885         * gnulib-tool: New option --extract-status.
32886         (func_usage): Document it.
32887         (sed_extract_prog): Recognize it.
32888         (func_get_status): New function.
32889
32890 2008-10-30  Simon Josefsson  <simon@josefsson.org>
32891
32892         * modules/sockets (License): Change from LGPL to LGPLv2+.
32893
32894 2008-10-28  Simon Josefsson  <simon@josefsson.org>
32895
32896         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
32897
32898 2008-10-28  Simon Josefsson  <simon@josefsson.org>
32899
32900         * MODULES.html.sh (Support for systems lacking POSIX:2001):
32901         Mention times and sys_times.
32902         * modules/sys_times, modules/sys_times-tests: New modules.
32903         * modules/times, modules/times-tests: Likewise
32904         * m4/sys_times_h.m4: New file.
32905         * lib/sys_times.in.h: Likewise
32906         * lib/times.c: Likewise.
32907         * tests/test-sys_times.c: Likewise.
32908         * tests/test-times.c: Likewise.
32909         * doc/posix-headers/sys_times.texi: Update.
32910         * doc/posix-functions/times.texi: Update.
32911
32912 2008-10-28  Jim Meyering  <meyering@redhat.com>
32913
32914         * modules/tempname (Depends-on): Add lstat.
32915
32916         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
32917
32918 2008-10-28  Simon Josefsson  <simon@josefsson.org>
32919
32920         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
32921         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
32922         using idiom used elsewhere in gnulib.
32923
32924 2008-10-27  Jim Meyering  <meyering@redhat.com>
32925
32926         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
32927
32928 2008-10-27  Simon Josefsson  <simon@josefsson.org>
32929
32930         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
32931         TESTS_ENVIRONMENT, for shell scripts that needs to call built
32932         programs.
32933         * tests/test-argp-2.sh: Use $EXEEXT when needed.
32934
32935 2008-10-27  Simon Josefsson  <simon@josefsson.org>
32936
32937         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
32938
32939 2008-10-27  Bruno Haible  <bruno@clisp.org>
32940
32941         * tests/test-lstat.c: Include <stdio.h>.
32942
32943 2008-10-27  Simon Josefsson  <simon@josefsson.org>
32944
32945         * modules/lstat-tests: New module.
32946         * tests/test-lstat.c: New file.
32947
32948 2008-10-26  Jim Meyering  <meyering@redhat.com>
32949
32950         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
32951
32952 2008-10-26  Simon Josefsson  <simon@josefsson.org>
32953             Bruno Haible  <bruno@clisp.org>
32954
32955         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
32956         * modules/configmake (Include): Add a note that the include must come
32957         after all system headers.
32958         * lib/javaversion.c: Include configmake.h after all other includes.
32959
32960 2008-10-26  Bruno Haible  <bruno@clisp.org>
32961
32962         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
32963         HAVE_STRUCT_RANDOM_DATA to 1.
32964         (gl_STDLIB_H): Simplify.
32965
32966 2008-10-26  Simon Josefsson  <simon@josefsson.org>
32967
32968         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
32969         substitute HAVE_STRUCT_RANDOM_DATA.
32970         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
32971         random_data.
32972         * modules/stdlib (Makefile.am): Substitute
32973         HAVE_STRUCT_RANDOM_DATA.
32974
32975 2008-10-26  Simon Josefsson  <simon@josefsson.org>
32976
32977         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
32978         * doc/gnulib-intro.texi (Copyright): Likewise.
32979
32980 2008-10-26  Simon Josefsson  <simon@josefsson.org>
32981
32982         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
32983         findings.
32984
32985 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
32986             Bruno Haible  <bruno@clisp.org>
32987
32988         * lib/unistd.in.h: Include <winsock2.h>.
32989         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
32990         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
32991         Provide dummy declarations.
32992         (gethostname): Override.
32993         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
32994         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
32995         gl_PREREQ_SYS_H_WINSOCK2.
32996         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
32997         * doc/posix-functions/gethostname.texi: More details.
32998
32999 2008-10-25  Bruno Haible  <bruno@clisp.org>
33000
33001         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
33002         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
33003         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
33004
33005         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
33006         here ...
33007         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
33008         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
33009         gl_UNISTD_H_DEFAULTS.
33010
33011 2008-10-25  Eric Blake  <ebb9@byu.net>
33012
33013         signbit: avoid spurious compiler failure
33014         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
33015         declarations inside function.
33016
33017 2008-10-24  Simon Josefsson  <simon@josefsson.org>
33018             Bruno Haible  <bruno@clisp.org>
33019
33020         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
33021         * modules/random_r (Depends-on): Add stdint.
33022
33023 2008-10-24  Bruno Haible  <bruno@clisp.org>
33024
33025         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
33026         Eggert.
33027         * modules/strerror (License): Likewise.
33028
33029 2008-10-24  Jim Meyering  <meyering@redhat.com>
33030
33031         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
33032         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
33033
33034 2008-10-24  Eric Blake  <ebb9@byu.net>
33035
33036         getgroups: fix compilation when getgroups is available
33037         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
33038         but with <config.h> override of getgroups disabled.
33039
33040 2008-10-24  Simon Josefsson  <simon@josefsson.org>
33041
33042         * doc/gnulib.texi (Header files): Add note about C++ problems.
33043         Explained by Bruno Haible <bruno@clisp.org>.
33044
33045 2008-10-23  Bruno Haible  <bruno@clisp.org>
33046
33047         Define a dummy SA_NODEFER macro on Interix.
33048         * lib/signal.in.h (SA_NODEFER): Define fallback.
33049         Reported by Aleksey Cheusov <cheusov@tut.by> via
33050         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
33051
33052 2008-10-23  Bruno Haible  <bruno@clisp.org>
33053
33054         * modules/freadahead (License): Change to LGPLv2+.
33055         Suggested by Simon Josefsson.
33056
33057 2008-10-23  Jim Meyering  <meyering@redhat.com>
33058
33059         random_r: new module
33060         * modules/random_r: New file.
33061         * m4/random_r.m4: New file.
33062         * lib/random_r.c: New file, from glibc.
33063         * modules/random_r-tests: New file.
33064         * tests/test-random_r.c: New file.
33065         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
33066          Declare.
33067         (RAND_MAX): Define.
33068         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
33069         * modules/stdlib: Substitute them, too.
33070         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
33071         * doc/glibc-functions/initstate_r.texi: Mention the new module.
33072         * doc/glibc-functions/random_r.texi: Likewise.
33073         * doc/glibc-functions/setstate_r.texi: Likewise.
33074         * doc/glibc-functions/srandom_r.texi: Likewise.
33075         * config/srclist.txt: Mention it.
33076
33077 2008-10-23  David Lutterkort  <lutter@redhat.com>
33078
33079         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
33080         link requirement
33081
33082 2008-10-23  Jim Meyering  <meyering@redhat.com>
33083
33084         selinux-h: mark parameters of stub functions as intentionally unused
33085         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
33086         * lib/se-context.in.h: Likewise.
33087
33088 2008-10-22  Simon Josefsson  <simon@josefsson.org>
33089
33090         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
33091
33092 2008-10-22  Simon Josefsson  <simon@josefsson.org>
33093
33094         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
33095
33096 2008-10-22  Eric Blake  <ebb9@byu.net>
33097
33098         glthread/thread: avoid compiler warning
33099         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
33100         Add unreachable abort to silence compiler.
33101
33102 2008-10-22  Eric Blake  <ebb9@byu.net>
33103
33104         netdb: also supply struct addrinfo for cygwin 1.5.x
33105         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
33106         older cygwin.
33107         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
33108         cygwin.
33109         * doc/posix-headers/netdb.texi (netdb.h): Document this.
33110
33111 2008-10-22  Bruno Haible  <bruno@clisp.org>
33112
33113         * users.txt: Update entry about pspp.
33114
33115 2008-10-21  Bruno Haible  <bruno@clisp.org>
33116
33117         Simplification.
33118         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
33119         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
33120
33121         Simplification.
33122         * lib/ioctl.c (ioctl): Don't undefine.
33123         * lib/socket.c (socket): Don't undefine.
33124
33125         Remove unused module indicator macros.
33126         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
33127         GNULIB_$1 as a C macro.
33128
33129         * doc/posix-functions/close.texi: Undo last change.
33130         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
33131         Windows platforms.
33132
33133 2008-10-21  Bruno Haible  <bruno@clisp.org>
33134
33135         Add gethostname() declaration to <unistd.h>.
33136         * lib/unistd.in.h (gethostname): New declaration.
33137         * lib/gethostname.c: Include <unistd.h>.
33138         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
33139         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
33140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
33141         and HAVE_GETHOSTNAME.
33142         * modules/gethostname (Depends-on): Add unistd.
33143         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33144         (Include): Specify <unistd.h>.
33145         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
33146         HAVE_GETHOSTNAME.
33147         * tests/test-gethostname.c: Include <unistd.h> first.
33148
33149 2008-10-21  Bruno Haible  <bruno@clisp.org>
33150
33151         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
33152         * modules/select-tests (Depends-on): Likewise.
33153         Reported by Simon Josefsson.
33154
33155 2008-10-21  Simon Josefsson  <simon@josefsson.org>
33156
33157         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
33158         * lib/accept.c: New file, based on winsock.c.
33159         * lib/bind.c: New file, based on winsock.c.
33160         * lib/connect.c: New file, based on winsock.c.
33161         * lib/getpeername.c: New file, based on winsock.c.
33162         * lib/getsockname.c: New file, based on winsock.c.
33163         * lib/getsockopt.c: New file, based on winsock.c.
33164         * lib/ioctl.c: New file, based on winsock.c.
33165         * lib/listen.c: New file, based on winsock.c.
33166         * lib/recv.c: New file, based on winsock.c.
33167         * lib/recvfrom.c: New file, based on winsock.c.
33168         * lib/send.c: New file, based on winsock.c.
33169         * lib/sendto.c: New file, based on winsock.c.
33170         * lib/setsockopt.c: New file, based on winsock.c.
33171         * lib/shutdown.c: New file, based on winsock.c.
33172         * lib/socket.c: New file, based on winsock.c.
33173         * lib/w32sock.h: New file, based on winsock.c.
33174         * lib/winsock.c: Remove file.
33175         * modules/accept: Likewise.
33176         * modules/bind: Likewise.
33177         * modules/connect: Likewise.
33178         * modules/getpeername: Likewise.
33179         * modules/getsockname: Likewise.
33180         * modules/getsockopt: Likewise.
33181         * modules/ioctl: Likewise.
33182         * modules/listen: Likewise.
33183         * modules/recv: Likewise.
33184         * modules/recvfrom: Likewise.
33185         * modules/send: Likewise.
33186         * modules/sendto: Likewise.
33187         * modules/setsockopt: Likewise.
33188         * modules/shutdown: Likewise.
33189         * modules/socket: Use socket.c instead of winsock.c.
33190         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
33191         * doc/posix-functions/accept.texi: Doc fix.
33192         * doc/posix-functions/bind.texi: Doc fix.
33193         * doc/posix-functions/close.texi: Doc fix.
33194         * doc/posix-functions/connect.texi: Doc fix.
33195         * doc/posix-functions/getpeername.texi: Doc fix.
33196         * doc/posix-functions/getsockname.texi: Doc fix.
33197         * doc/posix-functions/getsockopt.texi: Doc fix.
33198         * doc/posix-functions/ioctl.texi: Doc fix.
33199         * doc/posix-functions/listen.texi: Doc fix.
33200         * doc/posix-functions/recv.texi: Doc fix.
33201         * doc/posix-functions/recvfrom.texi: Doc fix.
33202         * doc/posix-functions/send.texi: Doc fix.
33203         * doc/posix-functions/sendto.texi: Doc fix.
33204         * doc/posix-functions/setsockopt.texi: Doc fix.
33205         * doc/posix-functions/shutdown.texi: Doc fix.
33206         * doc/posix-functions/socket.texi: Doc fix.
33207
33208 2008-10-20  Bruno Haible  <bruno@clisp.org>
33209
33210         Take into account the role of SIGABRT_COMPAT on Windows 2008.
33211         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
33212         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
33213         as an alias for SIGABRT.
33214         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
33215         (sigaction): Map it to SIGABRT.
33216         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
33217
33218 2008-10-20  Bruno Haible  <bruno@clisp.org>
33219
33220         * lib/fts.c: Don't include lstat.h.
33221         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
33222
33223         Move the lstat() declaration to <sys/stat.h>.
33224         * lib/lstat.h: Remove file.
33225         * lib/sys_stat.in.h: Add special invocation convention.
33226         (lstat): New declaration.
33227         * lib/lstat.c (orig_lstat): New function.
33228         (rpl_lstat): Use orig_lstat instead of lstat.
33229         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
33230         AC_C_INLINE. Set REPLACE_LSTAT.
33231         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
33232         and REPLACE_LSTAT.
33233         * modules/lstat (Files): Remove lib/lstat.h.
33234         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
33235         (Include): Specify <sys/stat.h> instead of lstat.h.
33236         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
33237         REPLACE_LSTAT.
33238         * NEWS: Mention the change.
33239
33240 2008-10-20  Bruno Haible  <bruno@clisp.org>
33241
33242         * modules/posix_spawn-tests: New file.
33243         * tests/test-posix_spawn3.c: New file.
33244
33245 2008-10-20  Bruno Haible  <bruno@clisp.org>
33246
33247         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
33248         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
33249         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
33250         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
33251         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
33252
33253 2008-10-20  Bruno Haible  <bruno@clisp.org>
33254
33255         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
33256         of posix_spawn on AIX 5.3.
33257
33258 2008-10-20  Bruno Haible  <bruno@clisp.org>
33259
33260         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
33261
33262 2008-10-20  Bruno Haible  <bruno@clisp.org>
33263
33264         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
33265         of AC_LANG_PROGRAM.
33266
33267 2008-10-20  Simon Josefsson  <simon@josefsson.org>
33268
33269         * lib/netdb.in.h: Don't define GNU specific constants until they
33270         are supported or needed.  Reported by Bruno Haible
33271         <bruno@clisp.org>.
33272
33273 2008-10-20  Simon Josefsson  <simon@josefsson.org>
33274
33275         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
33276
33277 2008-10-20  Simon Josefsson  <simon@josefsson.org>
33278
33279         * lib/getaddrinfo.h: Remove file.
33280         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
33281         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
33282         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
33283         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
33284         * modules/netdb: Substitute GNULIB_GETADDRINFO.
33285         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
33286         * tests/test-getaddrinfo.c: Likewise.
33287         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
33288         * NEWS: Mention change.
33289
33290 2008-10-19  Bruno Haible  <bruno@clisp.org>
33291
33292         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
33293
33294 2008-10-19  Bruno Haible  <bruno@clisp.org>
33295
33296         * lib/wait-process.c: Include simply <sys/wait.h>.
33297         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
33298         WIFSTOPPED): Remove fallback definitions.
33299         * modules/wait-process (Depends-on): Add sys_wait.
33300
33301         New module 'sys_wait'.
33302         * modules/sys_wait: New file.
33303         * lib/sys_wait.in.h: New file, partially copied from
33304         lib/wait-process.c.
33305         * m4/sys_wait_h.m4: New file.
33306         * doc/posix-headers/sys_wait.texi: Mention the new module.
33307
33308 2008-10-19  Bruno Haible  <bruno@clisp.org>
33309
33310         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
33311
33312 2008-10-19  Bruno Haible  <bruno@clisp.org>
33313
33314         Assume that waitpid() fills an 'int' status, not a 'union wait'.
33315         * lib/wait-process.c (WAIT_T): Remove type.
33316         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
33317         (wait_subprocess): Update.
33318
33319 2008-10-19  Bruno Haible  <bruno@clisp.org>
33320
33321         New module 'atoll'.
33322         * modules/atoll: New file.
33323         * lib/stdlib.in.h (atoll): New declaration.
33324         * lib/atoll.c: New file, from glibc with modifications.
33325         * m4/atoll.m4: New file.
33326         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
33327         HAVE_ATOLL.
33328         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
33329         * doc/posix-functions/atoll.texi: Mention the new module.
33330
33331 2008-10-19  Bruno Haible  <bruno@clisp.org>
33332
33333         Add strtoull() declaration to <stdlib.h>.
33334         * lib/stdlib.in.h (strtoull): New declaration.
33335         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
33336         Set HAVE_STRTOULL.
33337         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
33338         HAVE_STRTOULL.
33339         * modules/strtoull (Depends-on): Add stdlib.
33340         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33341         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
33342         HAVE_STRTOULL.
33343
33344 2008-10-19  Bruno Haible  <bruno@clisp.org>
33345
33346         Add strtoll() declaration to <stdlib.h>.
33347         * lib/stdlib.in.h (strtoll): New declaration.
33348         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
33349         Set HAVE_STRTOLL.
33350         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
33351         HAVE_STRTOLL.
33352         * modules/strtoll (Depends-on): Add stdlib.
33353         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33354         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
33355
33356 2008-10-19  Bruno Haible  <bruno@clisp.org>
33357
33358         * modules/bcopy (Depends-on): Add strings.
33359         (Include): Specify <strings.h>.
33360
33361 2008-10-19  Bruno Haible  <bruno@clisp.org>
33362
33363         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
33364
33365 2008-10-19  Bruno Haible  <bruno@clisp.org>
33366
33367         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
33368         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
33369         mingw.
33370
33371 2008-10-19  Bruno Haible  <bruno@clisp.org>
33372
33373         * lib/atanl.c: Don't include isnanl.h.
33374         * lib/cosl.c: Likewise.
33375         * lib/ldexpl.c: Likewise.
33376         * lib/logl.c: Likewise.
33377         * lib/sinl.c: Likewise.
33378         * lib/sqrtl.c: Likewise.
33379         * lib/tanl.c: Likewise.
33380
33381         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
33382         * lib/isnanf.h: Remove file.
33383         * lib/isnand.h: Remove file.
33384         * lib/isnanl.h: Remove file.
33385         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
33386         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
33387         macros.
33388         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
33389         HAVE_ISNANF, don't define it as a C macro.
33390         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
33391         HAVE_ISNAND, don't define it as a C macro.
33392         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
33393         HAVE_ISNANL, don't define it as a C macro.
33394         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
33395         HAVE_ISNAN[FDL].
33396         * modules/isnanf (Files): Remove lib/isnanf.h.
33397         (Depends-on): Add math.
33398         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
33399         (Include): Specify <math.h> instead of isnanf.h.
33400         * modules/isnand (Files): Remove lib/isnand.h.
33401         (Depends-on): Add math.
33402         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
33403         (Include): Specify <math.h> instead of isnand.h.
33404         * modules/isnanl (Files): Remove lib/isnanl.h.
33405         (Depends-on): Add math.
33406         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
33407         (Include): Specify <math.h> instead of isnanl.h.
33408         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
33409         HAVE_ISNAN[FDL].
33410         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
33411         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
33412         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
33413         * NEWS: Mention the change.
33414
33415 2008-10-18  Bruno Haible  <bruno@clisp.org>
33416
33417         Add getusershell(), setusershell(), endusershell() declarations to
33418         <unistd.h>.
33419         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
33420         declarations.
33421         * lib/getusershell.c: Include unistd.h.
33422         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
33423         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
33424         HAVE_GETUSERSHELL.
33425         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
33426         and HAVE_GETUSERSHELL.
33427         * modules/getusershell (Depends-on): Add unistd, extensions.
33428         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33429         (Include): Specify <unistd.h>.
33430         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
33431         HAVE_GETUSERSHELL.
33432
33433 2008-10-18  Bruno Haible  <bruno@clisp.org>
33434
33435         Add a getloadavg() declaration to <stdlib.h>.
33436         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
33437         getloadavg declaration.
33438         (getloadavg): New declaration.
33439         * lib/getloadavg.c: Include <stdlib.h> first.
33440         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
33441         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
33442         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
33443         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
33444         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
33445         * modules/getloadavg (Depends-on): Add stdlib, extensions.
33446         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33447         (Include): Specify <stdlib.h>.
33448         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
33449         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
33450
33451 2008-10-18  Bruno Haible  <bruno@clisp.org>
33452
33453         * lib/dirchownmod.c: Don't include lchmod.h.
33454
33455         Move the lchmod() declaration to <sys/stat.h>.
33456         * lib/lchmod.h: Remove file.
33457         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
33458         (lchmod): New declaration, moved here from lib/lchown.h.
33459         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
33460         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
33461         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
33462         and HAVE_LCHMOD.
33463         * modules/lchmod (Files): Remove lib/lchmod.h.
33464         (Depends-on): Add sys_stat, extensions.
33465         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
33466         (Include): Specify <sys/stat.h> instead of lchmod.h.
33467         * modules/sys_stat (Depends-on): Add link-warning.
33468         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
33469         definition of GL_LINK_WARNING.
33470         * NEWS: Mention the change.
33471
33472 2008-10-18  Bruno Haible  <bruno@clisp.org>
33473
33474         * lib/fchdir.c: Don't include dirfd.h.
33475         * lib/fts.c: Likewise.
33476         * lib/getcwd.c: Likewise.
33477         * lib/glob.c: Likewise.
33478
33479         Move the dirfd() declaration to <dirent.h>.
33480         * lib/dirfd.h: Remove file.
33481         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
33482         (dirfd): New declaration.
33483         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
33484         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
33485         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
33486         HAVE_DECL_DIRFD.
33487         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
33488         HAVE_DECL_DIRFD.
33489         * modules/dirfd (Files): Remove lib/dirfd.h.
33490         (Depends-on): Add dirent, extensions.
33491         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
33492         (Include): Specify <dirent.h> instead of dirfd.h.
33493         * modules/dirent (Depends-on): Add link-warning.
33494         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
33495         definition of GL_LINK_WARNING.
33496         * NEWS: Mention the change.
33497
33498 2008-10-18  Bruno Haible  <bruno@clisp.org>
33499
33500         Move the euidaccess() declaration to <unistd.h>.
33501         * lib/euidaccess.h: Remove file.
33502         * lib/unistd.in.h (euidaccess): New declaration.
33503         * lib/euidaccess.c: Don't include euidaccess.h.
33504         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
33505         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
33506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
33507         and HAVE_EUIDACCESS.
33508         * modules/euidaccess (Files): Remove lib/euidaccess.h.
33509         (Depends-on): Add unistd.
33510         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33511         (Include): Specify <unistd.h> instead of euidaccess.h.
33512         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
33513         HAVE_EUIDACCESS.
33514         * NEWS: Mention the change.
33515
33516 2008-10-18  Bruno Haible  <bruno@clisp.org>
33517
33518         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
33519
33520         Move the getdomainname() declaration to <unistd.h>.
33521         * lib/getdomainname.h: Remove file.
33522         * lib/unistd.in.h (getdomainname): New declaration.
33523         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
33524         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
33525         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
33526         HAVE_GETDOMAINNAME.
33527         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33528         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
33529         * modules/getdomainname (Files): Remove lib/getdomainname.h.
33530         (Depends-on): Add unistd, extensions.
33531         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33532         (Includes): Specify <unistd.h> instead of getdomainname.h.
33533         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
33534         HAVE_GETDOMAINNAME.
33535         * NEWS: Mention the change.
33536
33537 2008-10-18  Bruno Haible  <bruno@clisp.org>
33538
33539         * modules/dirent: New file.
33540         * m4/dirent_h.m4: New file.
33541         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
33542         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
33543         * modules/fchdir (Files): Remove lib/dirent.in.h.
33544         (Depends-on): Add dirent.
33545         (Makefile.am): Move rules to modules/dirent.
33546         * doc/posix-headers/dirent.texi: Mention the new module.
33547
33548 2008-10-18  Bruno Haible  <bruno@clisp.org>
33549
33550         Avoid -Wunused-parameter warnings in public gnulib header files.
33551         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
33552         macro.
33553         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
33554
33555 2008-10-18  Bruno Haible  <bruno@clisp.org>
33556
33557         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
33558         * doc/glibc-functions/error.texi: Mention the module 'error'.
33559         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
33560         * doc/glibc-functions/getdomainname.texi: Mention the module
33561         'getdomainname'.
33562         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
33563         * doc/glibc-functions/getpagesize.texi: Mention the module
33564         'getpagesize'.
33565         * doc/glibc-functions/getusershell.texi: Mention the module
33566         'getusershell'.
33567         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
33568         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
33569         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
33570         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
33571         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
33572         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
33573         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
33574         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
33575         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
33576         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
33577         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
33578         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
33579         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
33580         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
33581
33582 2008-10-17  Bruno Haible  <bruno@clisp.org>
33583
33584         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
33585         HP-UX and IRIX, use -0.0L.
33586         * tests/test-ceill.c (minus_zero): Likewise.
33587         * tests/test-floorl.c (minus_zero): Likewise.
33588         * tests/test-frexpl.c (minus_zero): Likewise.
33589         * tests/test-isnan.c (minus_zerol): Likewise.
33590         * tests/test-isnanl.h (minus_zero): Likewise.
33591         * tests/test-ldexpl.c (minus_zero): Likewise.
33592         * tests/test-roundl.c (minus_zero): Likewise.
33593         * tests/test-signbit.c (minus_zerol): Likewise.
33594         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
33595         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
33596         * tests/test-truncl.c (minus_zero): Likewise.
33597         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
33598         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
33599         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
33600         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
33601
33602 2008-10-17  Bruno Haible  <bruno@clisp.org>
33603
33604         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
33605         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
33606         that it gets activated only for gcc >= 3.0.
33607         * lib/dirent.in.h: Likewise.
33608         * lib/errno.in.h: Likewise.
33609         * lib/fcntl.in.h: Likewise.
33610         * lib/float.in.h: Likewise.
33611         * lib/iconv.in.h: Likewise.
33612         * lib/inttypes.in.h: Likewise.
33613         * lib/locale.in.h: Likewise.
33614         * lib/math.in.h: Likewise.
33615         * lib/netdb.in.h: Likewise.
33616         * lib/netinet_in.in.h: Likewise.
33617         * lib/search.in.h: Likewise.
33618         * lib/signal.in.h: Likewise.
33619         * lib/spawn.in.h: Likewise.
33620         * lib/stdarg.in.h: Likewise.
33621         * lib/stdint.in.h: Likewise.
33622         * lib/stdio.in.h: Likewise.
33623         * lib/stdlib.in.h: Likewise.
33624         * lib/string.in.h: Likewise.
33625         * lib/strings.in.h: Likewise.
33626         * lib/sys_file.in.h: Likewise.
33627         * lib/sys_ioctl.in.h: Likewise.
33628         * lib/sys_select.in.h: Likewise.
33629         * lib/sys_socket.in.h: Likewise.
33630         * lib/sys_stat.in.h: Likewise.
33631         * lib/sys_time.in.h: Likewise.
33632         * lib/sysexits.in.h: Likewise.
33633         * lib/time.in.h: Likewise.
33634         * lib/unistd.in.h: Likewise.
33635         * lib/wchar.in.h: Likewise.
33636         * lib/wctype.in.h: Likewise.
33637         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33638
33639 2008-10-17  Jim Meyering  <meyering@redhat.com>
33640
33641         ignore-value: don't depend on inline module
33642         * modules/ignore-value (Depends-on): Remove 'inline'.
33643         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
33644         Suggestion from Bruno Haible.
33645
33646 2008-10-17  Bruno Haible  <bruno@clisp.org>
33647
33648         New implementation of condition variables for Win32.
33649         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
33650         (gl_linked_waitqueue_t): New type.
33651         (gl_cond_t): Use it.
33652         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
33653         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
33654         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
33655         (glthread_cond_init_func, glthread_cond_wait_func,
33656         glthread_cond_timedwait_func, glthread_cond_signal_func,
33657         glthread_cond_broadcast_func, glthread_cond_destroy_func):
33658         Reimplemented on the basis of gl_linked_waitqueue_t.
33659         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
33660         gl_waitqueue_t.
33661         (gl_rwlock_t): Update.
33662         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
33663
33664 2008-10-17  Simon Josefsson  <simon@josefsson.org>
33665
33666         * modules/recvfrom (Depends-on): Add dependency on getpeername.
33667         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33668
33669 2008-10-17  Jim Meyering  <meyering@redhat.com>
33670
33671         ignore-value: new module
33672         * modules/ignore-value: New file.
33673         * lib/ignore-value.h: New file.
33674         * MODULES.html.sh (Compiler warning management): New section,
33675         just for this module.  More to come.
33676
33677 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33678
33679         open-safer.c: avoid 'signed and unsigned in conditional...' warning
33680         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
33681         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
33682
33683 2008-10-16  Jim Meyering  <meyering@redhat.com>
33684
33685         openat-die.c: avoid 'no previous prototype' warning
33686         * lib/openat-die.c: Include "openat.h".
33687         Reported by Reuben Thomas <rrt@sc3d.org>.
33688
33689 2008-10-16  Simon Josefsson  <simon@josefsson.org>
33690
33691         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
33692         * lib/netdb.in.h: Fix typo.
33693         Reported by Bruno Haible  <bruno@clisp.org>
33694
33695         * lib/netdb.in.h: Include sys/socket.h for platforms without
33696         netdb.h, to get structures like hostent on MinGW.
33697         * modules/netdb (Depends-on): Add sys_socket.
33698
33699 2008-10-15  Simon Josefsson  <simon@josefsson.org>
33700
33701         * modules/netdb, modules/netdb-tests: New file.
33702         * m4/netdb_h.m4: New file.
33703         * lib/netdb.in.h: Add, currently just an empty file pending
33704         definitions.
33705         * tests/test-netdb.c: New file.
33706         * doc/posix-headers/netdb.texi: Mention that we replace it if
33707         needed.
33708         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33709         netdb.
33710
33711 2008-10-15  Simon Josefsson  <simon@josefsson.org>
33712
33713         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
33714         with code.
33715
33716 2008-10-13  Bruno Haible  <bruno@clisp.org>
33717
33718         * lib/glthread/cond.c (glthread_cond_wait_func,
33719         glthread_cond_timedwait_func): Add a comment.
33720
33721 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33722
33723         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
33724         * tests/test-select.c: Likewise,
33725
33726 2008-10-13  Bruno Haible  <bruno@clisp.org>
33727
33728         * lib/glthread/cond.c (glthread_cond_wait_func,
33729         glthread_cond_timedwait_func): Fix variable name.
33730         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33731
33732 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
33733
33734         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
33735         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
33736         struct sockaddr.sa_len.
33737         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
33738
33739 2008-10-13  Simon Josefsson  <simon@josefsson.org>
33740
33741         * build-aux/pmccabe2html: Add css and css_url parameters.
33742
33743 2008-10-12  Bruno Haible  <bruno@clisp.org>
33744
33745         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
33746         calling aclx_get.
33747         Reported by Rainer Tammer <tammer@tammer.net>.
33748
33749 2008-10-12  Bruno Haible  <bruno@clisp.org>
33750
33751         Use msvcrt aware primitives for creation/termination of Win32 threads.
33752         * lib/glthread/thread.c: Include <process.h>.
33753         (glthread_create_func): Use _beginthreadex instead of CreateThread.
33754         (wrapper_func): Update signature.
33755         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
33756
33757 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33758             Bruno Haible  <bruno@clisp.org>
33759
33760         Provide a Win32 implementation of the 'cond' module.
33761         * lib/glthread/cond.h [USE_WIN32]: New implementation.
33762         * lib/glthread/cond.c (glthread_cond_init_func,
33763         glthread_cond_wait_func, glthread_cond_timedwait_func,
33764         glthread_cond_signal_func, glthread_cond_broadcast_func,
33765         glthread_cond_destroy_func) [USE_WIN32]: New functions.
33766         * modules/cond (Dependencies): Add gettimeofday.
33767
33768 2008-10-11  Bruno Haible  <bruno@clisp.org>
33769
33770         Make sleep work on older versions of mingw.
33771         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
33772         only whether it exists.
33773         * doc/posix-functions/sleep.texi: Mention the problem with older
33774         versions of mingw.
33775
33776 2008-10-11  Bruno Haible  <bruno@clisp.org>
33777
33778         New module 'shutdown'.
33779         * modules/shutdown: New file.
33780         * lib/sys_socket.in.h (shutdown): New declaration.
33781         * lib/winsock.c (shutdown): New function.
33782         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
33783         GNULIB_SHUTDOWN.
33784         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
33785         * doc/posix-functions/shutdown.texi: Document the new module.
33786
33787 2008-10-11  Jim Meyering  <meyering@redhat.com>
33788
33789         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
33790
33791 2008-10-11  Bruno Haible  <bruno@clisp.org>
33792
33793         New module 'fclose'.
33794         * modules/fclose: New file.
33795         * lib/stdio.in.h (fclose): New declaration.
33796         * lib/fclose.c: New file.
33797         * m4/fclose.m4: New file.
33798         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
33799         REPLACE_FCLOSE.
33800         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
33801         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
33802         REPLACE_FCLOSE.
33803         * modules/close (Depends-on): fclose.
33804         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
33805
33806 2008-10-11  Bruno Haible  <bruno@clisp.org>
33807
33808         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
33809         set errno and don't call _close.
33810
33811 2008-10-10  Bruno Haible  <bruno@clisp.org>
33812
33813         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
33814         ACL, not afterwards. Fixes test failure on Cygwin.
33815
33816 2008-10-09  Ben Pfaff  <blp@gnu.org>
33817
33818         * build-aux/announce-gen: Fix gnulib version related part of usage
33819         message.  Die with a useful error message if no tarballs are
33820         found.
33821
33822 2008-10-10  Jim Meyering  <meyering@redhat.com>
33823
33824         bootstrap: use git's --depth=N option only if it's supported
33825         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
33826         recognize the --depth option.  Reported by Pádraig Brady.
33827
33828 2008-10-09  Bruno Haible  <bruno@clisp.org>
33829
33830         New module 'ioctl'.
33831         * modules/ioctl: New file.
33832         * lib/sys_socket.in.h (ioctl): Remove declaration.
33833         * lib/winsock.c: Include <sys/ioctl.h>.
33834         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
33835         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
33836         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
33837         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
33838         * doc/posix-functions/ioctl.texi: Mention the new module.
33839
33840 2008-10-09  Bruno Haible  <bruno@clisp.org>
33841
33842         New module 'sys_ioctl'.
33843         * lib/sys_ioctl.in.h: New file.
33844         * m4/sys_ioctl_h.m4: New file.
33845         * modules/sys_ioctl: New file.
33846         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
33847
33848 2008-10-09  Bruno Haible  <bruno@clisp.org>
33849
33850         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
33851         * lib/winsock.c: Include <stdarg.h>.
33852         (rpl_ioctl): Change to second argument 'int' and then varargs.
33853
33854 2008-10-09  Bruno Haible  <bruno@clisp.org>
33855
33856         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
33857         when the sys_socket module is present and the system has <winsock2.h>.
33858
33859 2008-10-09  Bruno Haible  <bruno@clisp.org>
33860
33861         * doc/posix-functions/close.texi: Mention module 'close' instead of
33862         module 'sys_socket'.
33863
33864 2008-10-09  Bruno Haible  <bruno@clisp.org>
33865
33866         * doc/glibc-headers/sys_ioctl.texi: New file.
33867         * doc/gnulib.texi: Include it.
33868
33869 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33870             Bruno Haible  <bruno@clisp.org>
33871
33872         Combine the two replacements of 'close'.
33873         * lib/sys_socket.in.h (close): Define to a reminder to include
33874         <unistd.h>.
33875         (_gl_close_fd_maybe_socket): New declaration.
33876         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
33877         * lib/winsock.c (close): Remove undefinition.
33878         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
33879         needed for the gnulib module 'close'.
33880         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
33881         define to an error symbol or to a warning, if suitable.
33882         * lib/close.c: Include <sys/socket.h>.
33883         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
33884         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
33885         UNISTD_H_HAVE_WINSOCK2_H.
33886         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
33887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33888         UNISTD_H_HAVE_WINSOCK2_H.
33889         * modules/sys_socket (Files): Add m4/unistd_h.m4.
33890         (configure.ac): Set a module indicator.
33891         (Makefile.am): Substitute GNULIB_CLOSE.
33892         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
33893         * modules/poll-tests (Depends-on): Add close.
33894         * modules/select-tests (Depends-on): Likewise.
33895
33896 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33897             Bruno Haible  <bruno@clisp.org>
33898
33899         New module 'close'.
33900         * modules/close: New file.
33901         * lib/unistd.in.h (close): Move declaration out of the
33902         FCHDIR_REPLACEMENT scope.
33903         (_gl_unregister_fd): New declaration.
33904         * lib/close.c: New file.
33905         * lib/fchdir.c (rpl_close): Remove function.
33906         * m4/close.m4: New file.
33907         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
33908         close.
33909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
33910         REPLACE_CLOSE.
33911         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
33912         REPLACE_CLOSE.
33913         * modules/fchdir (Depends-on): Add close.
33914
33915 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33916             Bruno Haible  <bruno@clisp.org>
33917
33918         * lib/fcntl.in.h (open): Simplify conditionals.
33919         (_gl_register_fd): New declaration.
33920         * lib/fchdir.c (rpl_open): Remove function.
33921         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
33922         also.
33923         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
33924         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
33925         open.
33926
33927 2008-10-09  Jim Meyering  <meyering@redhat.com>
33928
33929         GNUmakefile: use the more name-space-friendly "_version"
33930         * top/GNUmakefile (_dummy): Update.
33931         (_version): Rename from "version".
33932
33933 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33934             Bruno Haible  <bruno@clisp.org>
33935
33936         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
33937         rpl_close.
33938         (_gl_register_fd): New function, extracted from rpl_open.
33939         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
33940         (rpl_open, rpl_opendir): Use _gl_register_fd.
33941
33942 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33943
33944         Fix organization of 'open' replacement.
33945         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
33946         (gl_FUNC_OPEN): Use it.
33947         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
33948
33949 2008-10-08  Bruno Haible  <bruno@clisp.org>
33950
33951         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
33952
33953 2008-10-08  Simon Josefsson  <simon@josefsson.org>
33954
33955         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
33956         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
33957         listen).
33958
33959 2008-10-08  Eric Blake  <ebb9@byu.net>
33960
33961         GNUmakefile: add 'make version' target
33962         * top/GNUmakefile (_curr-ver): Split version update rules...
33963         (version): ...into a target.
33964
33965 2008-10-07  Bruno Haible  <bruno@clisp.org>
33966
33967         Use a more portable replacement expression for -0.0L.
33968         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
33969         instead of -0.0L. Fix m4 quotation.
33970
33971         * tests/test-signbit.c: Include <float.h>.
33972         (minus_zero): New variable.
33973         (test_signbitl): Use minus_zero instead of -zero.
33974         * modules/signbit-tests (Depends-on): Add float.
33975
33976         * tests/test-ceill.c: Include <float.h>.
33977         (zero): Remove variable.
33978         (minus_zero): New variable.
33979         (main): Use minus_zero instead of -zero.
33980         * modules/ceill-tests (Depends-on): Add float.
33981
33982         * tests/test-floorl.c: Include <float.h>.
33983         (zero): Remove variable.
33984         (minus_zero): New variable.
33985         (main): Use minus_zero instead of -zero.
33986         * modules/floorl-tests (Depends-on): Add float.
33987
33988         * tests/test-roundl.c: Include <float.h>.
33989         (zero): Remove variable.
33990         (minus_zero): New variable.
33991         (main): Use minus_zero instead of -zero.
33992         * modules/roundl-tests (Depends-on): Add float.
33993
33994         * tests/test-truncl.c: Include <float.h>.
33995         (zero): Remove variable.
33996         (minus_zero): New variable.
33997         (main): Use minus_zero instead of -zero.
33998         * modules/truncl-tests (Depends-on): Add float.
33999
34000         * tests/test-frexpl.c (zero): Remove variable.
34001         (minus_zero): New variable.
34002         (main): Use minus_zero instead of -zero.
34003         * modules/frexpl-tests (Depends-on): Add float.
34004
34005         * tests/test-isnan.c (zerol): Remove variable.
34006         (minus_zerol): New variable.
34007         (test_long_double): Use minus_zerol instead of -zerol.
34008         * modules/isnan-tests (Depends-on): Add float.
34009
34010         * tests/test-isnanl.h (zero): Remove variable.
34011         (minus_zero): New variable.
34012         (main): Use minus_zero instead of -zero.
34013         * modules/isnanl-nolibm-tests (Depends-on): Add float.
34014         * modules/isnanl-tests (Depends-on): Add float.
34015
34016         * tests/test-ldexpl.c (zero): Remove variable.
34017         (minus_zero): New variable.
34018         (main): Use minus_zero instead of -zero.
34019         * modules/ldexpl-tests (Depends-on): Add float.
34020
34021         * tests/test-snprintf-posix.h (zerol): Remove variable.
34022         (minus_zerol): New variable.
34023         (test_function): Use minus_zerol instead of -zerol.
34024         * modules/snprintf-posix-tests (Depends-on): Add float.
34025         * modules/vsnprintf-posix-tests (Depends-on): Add float.
34026
34027         * tests/test-sprintf-posix.h (zerol): Remove variable.
34028         (minus_zerol): New variable.
34029         (test_function): Use minus_zerol instead of -zerol.
34030         * modules/sprintf-posix-tests (Depends-on): Add float.
34031         * modules/vsprintf-posix-tests (Depends-on): Add float.
34032
34033         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
34034         (minus_zerol): New variable.
34035         (test_function): Use minus_zerol instead of -zerol.
34036         * modules/vasnprintf-posix-tests (Depends-on): Add float.
34037
34038         * tests/test-vasprintf-posix.c (zerol): Remove variable.
34039         (minus_zerol): New variable.
34040         (test_function): Use minus_zerol instead of -zerol.
34041         * modules/vasprintf-posix-tests (Depends-on): Add float.
34042
34043 2008-10-07  Simon Josefsson  <simon@josefsson.org>
34044
34045         * MODULES.html.sh (Support for building documentation): Mention
34046         pmccabe2html.  Sort entries.
34047
34048         Add pmccabe2html module, from gnupdf.
34049         * build-aux/pmccabe.css: New file.
34050         * build-aux/pmccabe2html: New file.
34051         * m4/pmccabe2html.m4: New file.
34052         * modules/pmccabe2html: New file.
34053
34054 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
34055
34056         flock: new module
34057         * MODULES.html.sh: Add to list of modules.
34058         * lib/flock.c: flock implementation for Windows and Unix systems
34059         which have fcntl.
34060         * doc/glibc-functions/flock.texi: Update documentation.
34061         * lib/sys_file.in.h: <sys/file.h> header file.
34062         * m4/flock.m4: M4 macros.
34063         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
34064         * modules/flock: flock module.
34065         * modules/flock-tests: flock tests module.
34066         * modules/sys_file: sys/file.h module.
34067         * tests/test-flock.c: test suite for flock.
34068
34069 2008-10-06  Jim Meyering  <meyering@redhat.com>
34070
34071         bootstrap: check for LT_INIT more portably still ;-)
34072         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
34073         Spotted by Bruno Haible.
34074
34075 2008-10-06  Eric Blake  <ebb9@byu.net>
34076
34077         test-signbit: avoid tripping Irix cc bug on -0.0L
34078         * tests/test-signbit.c (minus_zerol): Delete, and replace with
34079         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
34080         entire testsuite consistent and avoids an Irix 6.2 bug.
34081
34082 2008-10-05  Bruno Haible  <bruno@clisp.org>
34083             Jim Meyering  <jim@meyering.net>
34084
34085         Add an option for ignoring EPIPE during close_stdout.
34086         * lib/closeout.h: Include <stdbool.h>.
34087         (close_stdout_set_ignore_EPIPE): New declaration.
34088         * lib/closeout.c: Include <stdbool.h>.
34089         (ignore_EPIPE): New variable.
34090         (close_stdout_set_ignore_EPIPE): New function.
34091         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
34092         * lib/close-stream.c (close_stream): Mention the possible EPIPE
34093         failure.
34094         * modules/closeout (Depends-on): Add stdbool.
34095
34096 2008-10-05  Bruno Haible  <bruno@clisp.org>
34097
34098         * modules/accept: New file.
34099         * modules/bind: New file.
34100         * modules/connect: New file.
34101         * modules/getpeername: New file.
34102         * modules/getsockname: New file.
34103         * modules/getsockopt: New file.
34104         * modules/listen: New file.
34105         * modules/recv: New file.
34106         * modules/recvfrom: New file.
34107         * modules/send: New file.
34108         * modules/sendto: New file.
34109         * modules/setsockopt: New file.
34110         * modules/socket: New file.
34111         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
34112         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
34113         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
34114         the particular module is requested. Add a link warning when the
34115         particular module is not requested.
34116         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
34117         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
34118         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
34119         the particular module is requested.
34120         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
34121         gl_SYS_SOCKET_H_DEFAULTS): New macros.
34122         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
34123         * modules/sys_socket (Depends-on): Add link-warning.
34124         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
34125         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
34126         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
34127         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
34128         GL_LINK_WARNING.
34129         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
34130         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
34131         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
34132         * doc/posix-functions/getpeername.texi: Mention the new module
34133         'getpeername'.
34134         * doc/posix-functions/getsockname.texi: Mention the new module
34135         'getsockname'.
34136         * doc/posix-functions/getsockopt.texi: Mention the new module
34137         'getsockopt'.
34138         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
34139         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
34140         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
34141         * doc/posix-functions/send.texi: Mention the new module 'send'.
34142         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
34143         * doc/posix-functions/setsockopt.texi: Mention the new module
34144         'setsockopt'.
34145         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
34146         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
34147         listen, connect, accept.
34148         * modules/select-tests (Depends-on): Likewise.
34149
34150 2008-10-05  Bruno Haible  <bruno@clisp.org>
34151
34152         * lib/winsock.c (strerror): Remove unused #undef.
34153         (rpl_close): Remove unused local variable.
34154
34155         * modules/sys_socket (Depends-on); Add errno.
34156
34157 2008-10-05  Bruno Haible  <bruno@clisp.org>
34158
34159         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
34160         (select): Add a link warning when the 'select' module is not used.
34161         * modules/sys_select (Depends-on): Add link-warning.
34162         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
34163         Suggested by Paolo Bonzini.
34164
34165 2008-10-05  Jim Meyering  <meyering@redhat.com>
34166
34167         bootstrap: check for LT_INIT more portably
34168         * build-aux/bootstrap: Avoid using grep -E, since it's not
34169         portable enough.  Suggestion from Bruno Haible.
34170
34171 2008-10-05  Bruno Haible  <bruno@clisp.org>
34172
34173         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
34174         as being fixed by gnulib.
34175
34176 2008-10-05  Bruno Haible  <bruno@clisp.org>
34177
34178         * modules/select-tests: New file, mostly copied from
34179         modules/sys_select-tests.
34180         * tests/test-select.c: New file, mostly copied from
34181         tests/test-sys_select.c.
34182         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
34183         * modules/sys_select-tests (Depends-on): Remove all dependencies.
34184         (Makefile.am): Remove test_sys_select_LDADD.
34185
34186         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
34187         to an undefined symbol, for an error message.
34188         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
34189         (gl_SYS_SELECT_H_DEFAULTS): New macro.
34190         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
34191         winsock-select.c here.
34192         * modules/sys_select (Files): Remove lib/winsock-select.c.
34193         (Depends-on): Remove alloca.
34194         (Makefile.am): Substitute GNULIB_SELECT.
34195         * modules/select: New file.
34196         * doc/posix-functions/select.texi: Update.
34197
34198 2008-10-05  Bruno Haible  <bruno@clisp.org>
34199
34200         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
34201         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
34202         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
34203         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
34204         getdtablesize.
34205         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
34206         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
34207
34208 2008-10-05  Bruno Haible  <bruno@clisp.org>
34209
34210         * modules/getdtablesize-tests: New file.
34211         * tests/test-getdtablesize.c: New file.
34212
34213         New module 'getdtablesize'.
34214         * lib/unistd.in.h (getdtablesize): New declaration.
34215         * lib/getdtablesize.c: New file.
34216         * m4/getdtablesize.m4: New file.
34217         * modules/getdtablesize: New file.
34218         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34219         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
34220         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
34221         HAVE_GETDTABLESIZE.
34222         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
34223
34224 2008-10-05  Bruno Haible  <bruno@clisp.org>
34225
34226         * modules/sched (Makefile.am): Fix typo.
34227         Reported by Simon Josefsson.
34228
34229 2008-10-05  Jim Meyering  <meyering@redhat.com>
34230
34231         bootstrap: check for LT_INIT, too
34232         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
34233         are deprecated.  Suggestion from Ralf Wildenhues.
34234
34235 2008-10-05  Bruno Haible  <bruno@clisp.org>
34236
34237         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
34238         overriding them by ours.
34239         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
34240
34241 2008-10-05  Jim Meyering  <meyering@redhat.com>
34242
34243         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
34244         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
34245         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
34246
34247 2008-10-04  Bruno Haible  <bruno@clisp.org>
34248
34249         * modules/dup2 (License): Change to LGPLv2+.
34250         * modules/sleep (License): Likewise.
34251         * modules/perror (License): Likewise.
34252         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
34253         Blake.
34254         * modules/signal (License): Likewise.
34255         * modules/sigprocmask (License): Likewise.
34256         * modules/raise (License): Change to LGPLv2+, with approval by Jim
34257         Meyering.
34258
34259 2008-10-04  Bruno Haible  <bruno@clisp.org>
34260
34261         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
34262         Reported by Rainer Tammer <tammer@tammer.net>.
34263
34264 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
34265             Bruno Haible  <bruno@clisp.org>
34266
34267         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
34268         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
34269         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
34270
34271 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
34272
34273         filevercmp: new module
34274         * lib/filevercmp.h: New function filevercmp comparing version strings.
34275         * lib/filevercmp.c: Implementation of filevercmp function.
34276         * modules/filevercmp: Module metadata.
34277         * tests/test-filevercmp.c: Unit test for new module.
34278         * modules/filevercmp-tests: Unit test metadata.
34279         * MODULES.html.sh: Add filevercmp module.
34280
34281 2008-10-03  Bruno Haible  <bruno@clisp.org>
34282
34283         * lib/c-ctype.h: Add comment.
34284         Reported by Jim Meyering.
34285
34286 2008-10-02  Bruno Haible  <bruno@clisp.org>
34287
34288         * modules/posix_spawn-internal (Depends-on): Add 'open'.
34289
34290 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
34291
34292         * build-aux/bootstrap: Allow renaming bootstrap, and change the
34293         name of bootstrap.conf accordingly.
34294
34295 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
34296
34297         * build-aux/bootstrap: Install git-merge-changelog configuration
34298         items into .gitconfig if needed.
34299
34300 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
34301
34302         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
34303         git repository, and initialize/update it accordingly.
34304
34305 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
34306
34307         * modules/fsync-tests: New file.
34308         * tests/test-fsync.c: New file.
34309
34310         New module 'fsync'.
34311         * lib/fsync.c: New file.
34312         * m4/fsync.m4: New file.
34313         * modules/fsync: New file.
34314         * lib/unistd.in.h (fsync): New declaration.
34315         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
34316         GNULIB_FSYNC and HAVE_FSYNC.
34317         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
34318         * MODULES.html.sh (posix_functions): Add fsync.
34319         * doc/posix-functions/fsync.texi: Mention the new module.
34320
34321 2008-10-02  Jim Meyering  <meyering@redhat.com>
34322
34323         fts.c: sync with similar code from coreutils' remove.c
34324         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
34325         Guard also with "#if defined __linux__", since for now at least,
34326         this code is Linux-kernel-specific.
34327
34328 2008-10-02  Jim Meyering  <meyering@redhat.com>
34329
34330         fts: bug fixes
34331         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
34332         Include <sys/vfs.h>, not <sys/statfs.h>.
34333
34334         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
34335         Include <sys/vfs.h>, not <sys/statfs.h>.
34336
34337 2008-10-01  Bruno Haible  <bruno@clisp.org>
34338
34339         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
34340         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
34341         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
34342         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
34343         * doc/posix-functions/posix_spawnp.texi: Likewise.
34344         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
34345         whether posix_spawn actually works.
34346         * m4/pipe.m4 (gl_PIPE): Likewise.
34347         * modules/execute (Files): Add m4/posix_spawn.m4.
34348         * modules/pipe (Files): Add m4/posix_spawn.m4.
34349         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
34350
34351 2008-10-01  Jim Meyering  <meyering@redhat.com>
34352
34353         remove trailing spaces
34354         * NEWS: Likewise.
34355         * lib/poll.c (poll): Likewise.
34356         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
34357         * lib/winsock.c (rpl_close): Likewise.
34358         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
34359         * modules/yield: Likewise.
34360         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
34361         * tests/test-sys_select.c (connect_to_socket): Likewise.
34362
34363         fts.c: adjust a new interface to be more generally useful
34364         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
34365         (fts_build): Adjust caller.
34366
34367 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34368
34369         * modules/cond-tests: New file.
34370         * tests/test-cond.c: New file.
34371
34372 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34373             Bruno Haible  <bruno@clisp.org>
34374
34375         * modules/cond (Dependencies): Add errno, time.
34376         * lib/glthread/cond.h: Include <time.h>.
34377         (gl_cond_define, gl_cond_define_initialized): Use the same definition
34378         across platforms.
34379
34380 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34381             Bruno Haible  <bruno@clisp.org>
34382
34383         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
34384
34385 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34386             Bruno Haible  <bruno@clisp.org>
34387
34388         * modules/tls-tests (Depends-on): Add thread, yield.
34389         (configure.ac): Remove all checks.
34390         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
34391         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
34392         gl_thread_self): Remove definitions. Include glthread/thread.h and
34393         glthread/yield.h instead.
34394         (test_tls): Pass an additional NULL argument to gl_thread_join.
34395
34396 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34397             Bruno Haible  <bruno@clisp.org>
34398
34399         * modules/lock-tests (Depends-on): Add thread, yield.
34400         (configure.ac): Remove all checks.
34401         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
34402         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
34403         gl_thread_self): Remove definitions. Include glthread/thread.h and
34404         glthread/yield.h instead.
34405         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
34406         additional NULL argument to gl_thread_join.
34407
34408 2008-09-30  Bruno Haible  <bruno@clisp.org>
34409
34410         Fix the Win32 implementation of the 'thread' module.
34411         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
34412         pointer type.
34413         (gl_thread_self): Invoke gl_thread_self_func.
34414         (gl_thread_self_func): New declaration.
34415         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
34416         (do_init_self_key, init_self_key): New functions.
34417         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
34418         Remove some fields.
34419         (running_threads, running_lock): Remove variables.
34420         (get_current_thread_handle): New function.
34421         (gl_thread_self_func, wrapper_func, glthread_create_func,
34422         glthread_join_func, gl_thread_exit_func): Largely rewritten and
34423         simplified.
34424
34425 2008-09-30  Bruno Haible  <bruno@clisp.org>
34426
34427         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
34428         files.
34429
34430 2008-09-30  Jim Meyering  <meyering@redhat.com>
34431
34432         fts.m4: correct the test for statfs.f_type
34433         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
34434         when checking for statfs.f_type.
34435
34436 2008-09-15  Simon Josefsson  <simon@josefsson.org>
34437
34438         tests: avoid some compiler warnings
34439         * tests/test-memchr.c (main): Pass NULL indirectly.
34440         * tests/test-getdate.c (main): Remove unused variable 'ret'.
34441
34442 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
34443
34444         getdate.y: disallow countable dayshifts like "4 yesterday ago"
34445         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
34446         exactly specified dayshifts.
34447         (dayshift): New rule.
34448         (rel): Add dayshift.
34449         (relative_time_table) [tomorrow, yesterday, today, now]:
34450         Use tDAY_SHIFT in place of tDAY_UNIT.
34451         * tests/test-getdate.c: Add tests for now-disallowed countable
34452         dayshifts, e.g., "4 yesterday ago".
34453
34454 2008-09-29  Bruno Haible  <bruno@clisp.org>
34455
34456         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
34457         * tests/test-posix_spawn1.in.sh: Renamed from
34458         tests/test-posix_spawn.in.sh.
34459         * tests/test-posix_spawn2.c: New file.
34460         * tests/test-posix_spawn2.in.sh: New file.
34461         * modules/posix_spawnp-tests (Files): Update.
34462         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
34463
34464 2008-09-29  Bruno Haible  <bruno@clisp.org>
34465
34466         Propagate effects of putenv/setenv/unsetenv to child processes.
34467         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
34468         * lib/pipe.c (create_pipe): Likewise.
34469
34470 2008-09-29  Bruno Haible  <bruno@clisp.org>
34471
34472         Enable use of shell scripts as executables in mingw.
34473         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
34474         run the program as a shell script.
34475         * lib/pipe.c (create_pipe): Likewise.
34476         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
34477         resulting array.
34478
34479 2008-09-29  Eric Blake  <ebb9@byu.net>
34480
34481         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
34482
34483 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
34484
34485         * doc/posix-functions/accept.texi: Update mingw problems.
34486         * doc/posix-functions/bind.texi: Update mingw problems.
34487         * doc/posix-functions/close.texi: Update mingw problems.
34488         * doc/posix-functions/connect.texi: Update mingw problems.
34489         * doc/posix-functions/getpeername.texi: Update mingw problems.
34490         * doc/posix-functions/getsockname.texi: Update mingw problems.
34491         * doc/posix-functions/getsockopt.texi: Update mingw problems.
34492         * doc/posix-functions/ioctl.texi: Update mingw problems.
34493         * doc/posix-functions/listen.texi: Update mingw problems.
34494         * doc/posix-functions/recv.texi: Update mingw problems.
34495         * doc/posix-functions/recvfrom.texi: Update mingw problems.
34496         * doc/posix-functions/select.texi: Update mingw problems.
34497         * doc/posix-functions/send.texi: Update mingw problems.
34498         * doc/posix-functions/sendto.texi: Update mingw problems.
34499         * doc/posix-functions/setsockopt.texi: Update mingw problems.
34500         * doc/posix-functions/socket.texi: Update mingw problems.
34501
34502 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
34503             Bruno Haible  <bruno@clisp.org>
34504
34505         * lib/sys_select.in.h: Include sys/time.h.
34506         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
34507         * modules/sys_select: Depend on sys_time.
34508         * tests/test-sys_select.c: Test that sys/select.h defines struct
34509         timeval fully.
34510
34511 2008-09-29  Bruno Haible  <bruno@clisp.org>
34512
34513         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
34514         * lib/sys_select.in.h: Likewise.
34515
34516 2008-09-29  Bruno Haible  <bruno@clisp.org>
34517
34518         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
34519
34520 2008-09-29  Bruno Haible  <bruno@clisp.org>
34521
34522         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
34523         Set LIBSOCKET instead of augmenting LIBS.
34524         * modules/sockets (Link): New section.
34525         * modules/sockets-tests (test_sockets_LDADD): New variable.
34526         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
34527         * modules/poll-tests (test_poll_LDADD): New variable.
34528         * NEWS: Document the change.
34529
34530 2008-09-29  Bruno Haible  <bruno@clisp.org>
34531
34532         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
34533         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
34534         ARPA_INET_H directly.
34535         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34536
34537 2008-09-28  Bruno Haible  <bruno@clisp.org>
34538
34539         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
34540         from gl_HEADER_SYS_SOCKET.
34541         (gl_HEADER_SYS_SOCKET): Invoke it.
34542         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34543
34544 2008-09-28  Bruno Haible  <bruno@clisp.org>
34545
34546         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
34547         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
34548         Needed on OSF/1 4.0.
34549
34550 2008-09-28  Bruno Haible  <bruno@clisp.org>
34551
34552         Override open more carefully.
34553         * lib/open.c (orig_open): New function.
34554         (rpl_open): Use orig_open instead of open.
34555         * lib/fcntl.in.h: Add special invocation convention.
34556         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
34557         (gl_FUNC_OPEN): Invoke it.
34558
34559         Override freopen more carefully.
34560         * lib/freopen.c (orig_freopen): New function.
34561         (rpl_freopen): Use orig_freopen instead of freopen.
34562         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
34563         (gl_FUNC_FREOPEN): Invoke it.
34564
34565         Override fopen more carefully.
34566         * lib/fopen.c (orig_fopen): New function.
34567         (rpl_fopen): Use orig_fopen instead of fopen.
34568         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
34569         (gl_FUNC_FOPEN): Invoke it.
34570         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
34571
34572 2008-09-28  Bruno Haible  <bruno@clisp.org>
34573
34574         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
34575         SIGPIPE.
34576
34577 2008-09-28  Bruno Haible  <bruno@clisp.org>
34578
34579         * tests/test-sigaction.c (handler, main): Disable the check whether
34580         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
34581         glibc systems with LinuxThreads.
34582
34583 2008-09-28  Bruno Haible  <bruno@clisp.org>
34584
34585         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
34586
34587         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
34588         with AIX xlc.
34589         * lib/fcntl.in.h (open): Likewise.
34590         Reported by Rainer Tammer <tammer@tammer.net>.
34591
34592 2008-09-28  Bruno Haible  <bruno@clisp.org>
34593
34594         * modules/posix_spawnp-tests: New file.
34595         * tests/test-posix_spawn.c: New file.
34596         * tests/test-posix_spawn.in.sh: New file.
34597
34598         New module 'posix_spawnp'.
34599         * modules/posix_spawnp: New file.
34600         * lib/spawnp.c: New file, from GNU libc with modifications.
34601         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
34602
34603         New module 'posix_spawn'.
34604         * modules/posix_spawn: New file.
34605         * lib/spawn.c: New file, from GNU libc with modifications.
34606         * doc/posix-functions/posix_spawn.texi: Mention the new module.
34607
34608         New module 'posix_spawnattr_destroy'.
34609         * modules/posix_spawnattr_destroy: New file.
34610         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
34611         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
34612         module.
34613
34614         New module 'posix_spawnattr_setsigmask'.
34615         * modules/posix_spawnattr_setsigmask: New file.
34616         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
34617         modifications.
34618         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
34619         new module.
34620
34621         New module 'posix_spawnattr_getsigmask'.
34622         * modules/posix_spawnattr_getsigmask: New file.
34623         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
34624         modifications.
34625         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
34626         new module.
34627
34628         New module 'posix_spawnattr_setsigdefault'.
34629         * modules/posix_spawnattr_setsigdefault: New file.
34630         * lib/spawnattr_setdefault.c: New file, from GNU libc with
34631         modifications.
34632         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
34633         new module.
34634
34635         New module 'posix_spawnattr_getsigdefault'.
34636         * modules/posix_spawnattr_getsigdefault: New file.
34637         * lib/spawnattr_getdefault.c: New file, from GNU libc with
34638         modifications.
34639         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
34640         new module.
34641
34642         New module 'posix_spawnattr_setschedpolicy'.
34643         * modules/posix_spawnattr_setschedpolicy: New file.
34644         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
34645         modifications.
34646         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
34647         new module.
34648
34649         New module 'posix_spawnattr_getschedpolicy'.
34650         * modules/posix_spawnattr_getschedpolicy: New file.
34651         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
34652         modifications.
34653         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
34654         new module.
34655
34656         New module 'posix_spawnattr_setschedparam'.
34657         * modules/posix_spawnattr_setschedparam: New file.
34658         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
34659         modifications.
34660         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
34661         new module.
34662
34663         New module 'posix_spawnattr_getschedparam'.
34664         * modules/posix_spawnattr_getschedparam: New file.
34665         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
34666         modifications.
34667         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
34668         new module.
34669
34670         New module 'posix_spawnattr_setpgroup'.
34671         * modules/posix_spawnattr_setpgroup: New file.
34672         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
34673         modifications.
34674         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
34675         module.
34676
34677         New module 'posix_spawnattr_getpgroup'.
34678         * modules/posix_spawnattr_getpgroup: New file.
34679         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
34680         modifications.
34681         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
34682         module.
34683
34684         New module 'posix_spawnattr_setflags'.
34685         * modules/posix_spawnattr_setflags: New file.
34686         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
34687         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
34688         module.
34689
34690         New module 'posix_spawnattr_getflags'.
34691         * modules/posix_spawnattr_getflags: New file.
34692         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
34693         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
34694         module.
34695
34696         New module 'posix_spawnattr_init'.
34697         * modules/posix_spawnattr_init: New file.
34698         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
34699         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
34700         module.
34701
34702         New module 'posix_spawn_file_actions_destroy'.
34703         * modules/posix_spawn_file_actions_destroy: New file.
34704         * lib/spawn_faction_destroy.c: New file, from GNU libc with
34705         modifications.
34706         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
34707         the new module.
34708
34709         New module 'posix_spawn_file_actions_addopen'.
34710         * modules/posix_spawn_file_actions_addopen: New file.
34711         * lib/spawn_faction_addopen.c: New file, from GNU libc with
34712         modifications.
34713         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
34714         the new module.
34715
34716         New module 'posix_spawn_file_actions_adddup2'.
34717         * modules/posix_spawn_file_actions_adddup2: New file.
34718         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
34719         modifications.
34720         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
34721         the new module.
34722
34723         New module 'posix_spawn_file_actions_addclose'.
34724         * modules/posix_spawn_file_actions_addclose: New file.
34725         * lib/spawn_faction_addclose.c: New file, from GNU libc with
34726         modifications.
34727         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
34728         the new module.
34729
34730         New module 'posix_spawn_file_actions_init'.
34731         * modules/posix_spawn_file_actions_init: New file.
34732         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
34733         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
34734         new module.
34735
34736         New module 'posix_spawn-internal'.
34737         * modules/posix_spawn-internal: New file.
34738         * lib/spawn_int.h: New file, from GNU libc with modifications.
34739         * lib/spawni.c: New file, from GNU libc with modifications.
34740         * m4/posix_spawn.m4: New file.
34741
34742         New module 'spawn'.
34743         * modules/spawn: New file.
34744         * lib/spawn.in.h: New file, from GNU libc with modifications.
34745         * m4/spawn_h.m4: New file.
34746         * doc/posix-headers/spawn.texi: Mention the new module.
34747
34748 2008-09-28  Bruno Haible  <bruno@clisp.org>
34749
34750         * modules/sched-tests: New file.
34751         * tests/test-sched.c: New file.
34752
34753         New module 'sched'.
34754         * modules/sched: New file.
34755         * lib/sched.in.h: New file.
34756         * m4/sched_h.m4: New file.
34757         * doc/posix-headers/sched.texi: Mention the new module.
34758
34759 2008-09-27  Eric Blake  <ebb9@byu.net>
34760
34761         Fix previous patch, and tweak references to $0.
34762         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
34763         (func_version, func_gnulib_dir): Don't call this program
34764         gnulib-tool.
34765         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
34766         with using $0 in function.
34767         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
34768         (func_fatal_error): Reuse the name the user invoked us with.
34769
34770 2008-09-27  Bruno Haible  <bruno@clisp.org>
34771
34772         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
34773         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
34774         (gl_ICONV_H): Not here.
34775         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
34776         instead of assigning ICONV_H directly.
34777
34778         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
34779         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
34780         WCHAR_H directly.
34781
34782 2008-09-27  Bruno Haible  <bruno@clisp.org>
34783
34784         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
34785         * modules/arpa_inet (Depends-on): Add link-warning.
34786         (Makefile.am): Insert the definition of GL_LINK-WARNING.
34787         * modules/unistd (Makefile.am): Likewise.
34788
34789 2008-09-26  Bruno Haible  <bruno@clisp.org>
34790
34791         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
34792         variables.
34793         (func_version): Essentially copied from gnulib-tool.
34794         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
34795         func_readlink): Copied from gnulib-tool.
34796
34797 2008-09-26  Bruno Haible  <bruno@clisp.org>
34798
34799         * gnulib-tool (func_version): Change directory to $gnulib_dir before
34800         invoking git-version-gen.
34801
34802 2008-09-26  Bruno Haible  <bruno@clisp.org>
34803
34804         * posix-modules: Update to directory names changed on 2008-01-19.
34805         Remove commas in output before splitting into words. No more need to
34806         avoid 'ftruncate' since 2007-02-19.
34807
34808 2008-09-26  Bruno Haible  <bruno@clisp.org>
34809
34810         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
34811
34812 2008-09-26  Bruno Haible  <bruno@clisp.org>
34813
34814         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
34815         * modules/fwriteerror (Depends-on): Add errno.
34816
34817 2008-09-26  Bruno Haible  <bruno@clisp.org>
34818
34819         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
34820         * tests/test-vc-list-files-cvs.sh: Likewise.
34821
34822 2008-09-26  Bruno Haible  <bruno@clisp.org>
34823
34824         * doc/posix-headers/sys_resource.texi: Reorder items.
34825
34826 2008-09-26  Jim Meyering  <meyering@redhat.com>
34827
34828         fts: tweak inode comparison function
34829         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
34830         inode numbers, as documented.
34831
34832         fts: sort dirent entries on inode number before traversing
34833         This avoids a quadratic, seek-related performance penalty when
34834         operating on a directory containing many entries (measurable at 10k;
34835         3.5 hours at 2 million entries with a cold cache) on certain types
34836         of file systems, including ext3 and ext4, but not tmpfs.
34837         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
34838         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
34839         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
34840         (fs_handles_readdir_ordered_dirents_efficiently): New function.
34841         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
34842         (fts_build): Set the stat.st_ino member from D_INO.
34843         If it is likely to be useful, sort dirent entries on inode number.
34844
34845         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
34846         and the struct statfs.f_type member.
34847         * modules/fts (Depends-on): Add d-ino.
34848
34849 2008-09-26  Bruno Haible  <bruno@clisp.org>
34850
34851         * modules/sigpipe-die (Depends-on): Add sigpipe.
34852
34853         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
34854         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
34855         and GNULIB_STDIO_H_SIGPIPE are set.
34856         * lib/stdio-write.c: New file.
34857         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
34858         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
34859         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
34860         REPLACE_STDIO_WRITE_FUNCS.
34861         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
34862         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
34863         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
34864         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
34865         * modules/stdio (Files): Add lib/stdio-write.c.
34866         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
34867         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
34868         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
34869         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
34870         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
34871         REPLACE_FPRINTF_POSIX.
34872         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
34873         REPLACE_PRINTF_POSIX.
34874         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
34875         REPLACE_VFPRINTF_POSIX.
34876         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
34877         REPLACE_VPRINTF_POSIX.
34878         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
34879         SIGPIPE issue.
34880         * doc/posix-functions/fputc.texi: Likewise.
34881         * doc/posix-functions/fputs.texi: Likewise.
34882         * doc/posix-functions/fwrite.texi: Likewise.
34883         * doc/posix-functions/printf.texi: Likewise.
34884         * doc/posix-functions/putc.texi: Likewise.
34885         * doc/posix-functions/putchar.texi: Likewise.
34886         * doc/posix-functions/puts.texi: Likewise.
34887         * doc/posix-functions/vfprintf.texi: Likewise.
34888         * doc/posix-functions/vprintf.texi: Likewise.
34889
34890         * modules/safe-write (Depends-on): Add write.
34891
34892         * modules/sigpipe-tests: New file.
34893         * tests/test-sigpipe.c: New file.
34894         * tests/test-sigpipe.sh: New file.
34895
34896         * modules/write: New file.
34897         * lib/unistd.in.h: Include <sys/types.h>.
34898         (write): New declaration.
34899         * lib/write.c: New file.
34900         * m4/write.m4: New file.
34901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34902         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
34903         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
34904         GNULIB_WRITE, REPLACE_WRITE.
34905         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
34906         and the SIGPIPE issue.
34907
34908         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
34909         (raise): New declaration.
34910         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
34911         (ext_signal): New function.
34912         (rpl_raise): New function.
34913         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
34914         GNULIB_SIGNAL_H_SIGPIPE.
34915         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
34916         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
34917
34918         * modules/sigpipe: New file.
34919         * m4/sigpipe.m4: New file.
34920
34921 2008-09-25  Derek Price  <derek@ximbiot.com>
34922             Bruno Haible  <bruno@clisp.org>
34923
34924         * gnulib-tool (func_import): Report all license incompatibilities, not
34925         just the first one.
34926
34927 2008-09-25  Bruno Haible  <bruno@clisp.org>
34928
34929         * gnulib-tool (func_import): When computing the edits, consider not
34930         only the Makefile.ams that exist but also those that will be generated.
34931
34932 2008-09-25  Simon Josefsson  <simon@josefsson.org>
34933
34934         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
34935         fixes gnulib-tool --test warning about duplicate dependency.
34936
34937 2008-09-25  Bruno Haible  <bruno@clisp.org>
34938
34939         * gnulib-tool: Don't ask the user to perform edits in the generated
34940         Makefile.ams.
34941         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
34942         apply to the Makefile.am being generated.
34943         (func_emit_tests_Makefile_am): Execute edits that apply to the
34944         Makefile.am being generated.
34945         (func_import): Setup list of Makefile.am edits before emitting the
34946         Makefile.ams, not at the end.
34947         (func_create_testdir): Update.
34948         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34949
34950 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34951
34952         * gnulib-tool (func_import): Store the --tests-base option in the
34953         comment in gnulib-cache.m4.
34954
34955 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
34956
34957         * NEWS: Document increased portability that sys_select now provides.
34958
34959         * lib/sys_select.in.h: Install select wrapper.
34960         * lib/sys_socket.in.h: Use more descriptive name when there is no
34961         select wrapper.
34962         * lib/winsock-select.c: New.
34963         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
34964         Require gl_HEADER_SYS_SOCKET.
34965         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
34966         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
34967         * tests/test-sys_select.c: Add functional tests.
34968
34969 2008-09-24  Eric Blake  <ebb9@byu.net>
34970
34971         open, fopen: close fd leak in last patch
34972         * lib/open.c (rpl_open): Close fd before returning error.
34973         * lib/fopen.c (rpl_fopen): Close fd before returning error.
34974         * doc/posix-functions/open.texi (open): Document that Irix also
34975         has the bug.
34976         * doc/posix-functions/fopen.texi (fopen): Likewise.
34977         Reported by Paolo Bonzini.
34978
34979 2008-09-24  Bruno Haible  <bruno@clisp.org>
34980
34981         Ensure that a filename ending in a slash cannot be used to access a
34982         non-directory.
34983         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
34984         to check whether it's really a directory.
34985         * lib/fopen.c: Include fcntl.h, unistd.h.
34986         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
34987         and fdopen().
34988         * modules/fopen (Depends-on): Add unistd.
34989         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
34990         * tests/test-fopen.c (main): Likewise.
34991         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
34992         * doc/posix-functions/fopen.texi: Likewise.
34993         Reported by Eric Blake.
34994
34995 2008-09-23  Eric Blake  <ebb9@byu.net>
34996
34997         c-stack: avoid compiler optimizations when provoking overflow
34998         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
34999         recursion harder to optimize, to ensure a stack overflow occurs.
35000         * tests/test-c-stack.c (recurse): Likewise.
35001         Borrowed from libsigsegv.
35002
35003         c-stack: work around Irix sigaltstack bug
35004         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
35005         whether sigaltstack uses wrong end of stack_t (copied in part from
35006         libsigsegv).
35007         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
35008         Irix bug, without requiring an over-allocation.
35009         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
35010         bug.
35011
35012         fopen: document mingw bug on directories
35013         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
35014         not allowing a stream visiting a directory, even though reading
35015         from such a stream is not portable.
35016
35017 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35018
35019         * lib/poll.c: Rewrite.
35020         * modules/poll: Depend on alloca.
35021
35022 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35023
35024         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
35025         instead define prototypes for a full set of wrappers.  Ensure
35026         that Cygwin does not use the compatibility code, which is only
35027         for MinGW.
35028         * lib/winsock.c: New.
35029         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
35030         * modules/sys_socket: Add lib/winsock.c.
35031
35032         * modules/poll-tests: Add errno and perror.
35033         * tests/test-poll.c: Use ioctl, not ioctlsocket.
35034
35035 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35036
35037         * tests/test-poll.c: Downgrade minimum needed Winsock version.
35038
35039 2008-09-23  Bruno Haible  <bruno@clisp.org>
35040
35041         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
35042         * doc/glibc-functions/*: Likewise.
35043
35044 2008-09-23  Simon Josefsson  <simon@josefsson.org>
35045
35046         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
35047         success.
35048
35049 2008-09-22  Eric Blake  <ebb9@byu.net>
35050             Bruno Haible  <bruno@clisp.org>
35051
35052         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
35053         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
35054         supply %A but mishandle pseudo-NaN.
35055         Reported by Simon Josefsson.
35056
35057 2008-09-21  Bruno Haible  <bruno@clisp.org>
35058
35059         * tests/test-lock.c (main): Tweak skip message.
35060         * tests/test-tls.c (main): Likewise.
35061
35062 2008-09-21  Bruno Haible  <bruno@clisp.org>
35063
35064         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
35065         whether 'struct sigaction' has sa_sigaction here...
35066         (gl_PREREQ_SIG_HANDLER_H): ... not here.
35067         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
35068
35069 2008-09-21  Bruno Haible  <bruno@clisp.org>
35070
35071         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
35072         section.
35073         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
35074         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
35075         the new section.
35076         (Support for obsolete systems lacking POSIX:2001): New section.
35077         (String handling <string.h>): Move strdup to the new section.
35078         Suggested by Simon Josefsson and Paolo Bonzini.
35079
35080 2008-09-21  Bruno Haible  <bruno@clisp.org>
35081
35082         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
35083         exponents in %e and %g results on 'long double'. Needed for mingw's
35084         improved *printf functions.
35085         * tests/test-vasprintf-posix.c (test_function): Likewise.
35086         * tests/test-snprintf-posix.h (test_function): Likewise.
35087         * tests/test-sprintf-posix.h (test_function): Likewise.
35088         Reported by Eric Blake.
35089
35090 2008-09-21  Bruno Haible  <bruno@clisp.org>
35091
35092         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
35093         * tests/test-sprintf-posix.h (test_function): Likewise.
35094
35095 2008-09-21  Bruno Haible  <bruno@clisp.org>
35096
35097         * modules/getpass (Depends-on): Add strdup-posix.
35098
35099         New module 'strdup-posix'.
35100         * modules/strdup-posix: New file.
35101         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
35102         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
35103         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35104         REPLACE_STRDUP.
35105         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
35106         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
35107         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35108         strdup-posix.
35109
35110         * modules/strdup (Depends-on): Remove malloc-posix.
35111
35112 2008-09-20  Bruno Haible  <bruno@clisp.org>
35113
35114         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
35115         Wildenhues.
35116
35117 2008-09-20  Bruno Haible  <bruno@clisp.org>
35118
35119         Ensure that wint_t gets defined on IRIX 5.3.
35120         * lib/wchar.in.h (wint_t): Define if not defined by the system.
35121         * lib/wctype.in.h (wint_t): Likewise.
35122         (__wctype_wint_t): Remove type.
35123         (isw*): Use wint_t instead of __wctype_wint_t.
35124         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
35125         * modules/wchar (Files): Add m4/wint_t.m4.
35126         (Makefile.am): Substitute HAVE_WINT_T.
35127         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
35128         * tests/test-wctype.c: Check that wint_t is defined.
35129         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
35130         * doc/posix-headers/wctype.texi: Likewise.
35131         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35132
35133 2008-09-18  Bruno Haible  <bruno@clisp.org>
35134
35135         * gnulib-tool (func_exit): Update comment.
35136
35137 2008-09-18  Simon Josefsson  <simon@josefsson.org>
35138
35139         * modules/getaddrinfo (Depends-on): Remove strdup, this module
35140         assumes strdup exists and does not depend on strdup to return
35141         ENOMEM on out of memory conditions.
35142
35143 2008-09-18  Bruno Haible  <bruno@clisp.org>
35144
35145         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
35146         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
35147         digits for the exponent.
35148
35149 2008-09-18  Jim Meyering  <meyering@redhat.com>
35150             Bruno Haible  <bruno@clisp.org>
35151
35152         * lib/vasnprintf.c (decimal_point_char): Define also if
35153         NEED_PRINTF_INFINITE_LONG_DOUBLE.
35154
35155 2008-09-16  Bruno Haible  <bruno@clisp.org>
35156         and Eric Blake  <ebb9@byu.net>
35157
35158         vasnprintf: support Irix 5.3
35159         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
35160         that mishandle long double infinity.
35161         Reported by Tom G. Christensen.
35162
35163 2008-09-16  Bruno Haible  <bruno@clisp.org>
35164
35165         * doc/glibc-functions/scandir.texi: Mention the function is missing on
35166         Solaris 9.
35167         * doc/glibc-functions/alphasort.texi: Likewise.
35168         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
35169
35170 2008-09-16  Jim Meyering  <meyering@redhat.com>
35171
35172         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
35173         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
35174         a umask modification leak out of a subshell.  Otherwise, the
35175         opensolaris /bin/sh would be accepted and thus cause unwarranted
35176         failures in the coreutils test suite.
35177
35178 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
35179
35180         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
35181         to succeed.
35182
35183 2008-09-16  Jim Meyering  <meyering@redhat.com>
35184
35185         avoid spurious test failure when library is built without ACL support
35186         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
35187         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
35188         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
35189         * tests/test-copy-acl.sh: Likewise.
35190
35191 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35192
35193         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
35194         based on character occurrence counts.
35195
35196 2008-09-15  Eric Blake  <ebb9@byu.net>
35197
35198         tests: avoid some compiler warnings
35199         * tests/test-memchr.c (main): Pass NULL indirectly.
35200         * tests/test-closein.c (main): Avoid unused variable.
35201
35202 2008-09-15  Bruno Haible  <bruno@clisp.org>
35203
35204         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
35205         are missing on OpenBSD 4.0 individually.
35206         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35207
35208 2008-09-15  Bruno Haible  <bruno@clisp.org>
35209
35210         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
35211         * doc/posix-functions/strerror.texi: Mention also Cygwin.
35212         * doc/posix-functions/perror.texi: Likewise.
35213         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
35214         is missing.
35215         Reported by Eric Blake.
35216
35217         * lib/errno.in.h: Use replacement values >= 2000.
35218         Reported by Eric Blake.
35219
35220 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35221
35222         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
35223         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
35224         limit.
35225         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
35226         compareseq was aborted.
35227
35228 2008-09-14  Bruno Haible  <bruno@clisp.org>
35229
35230         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
35231         yvec_edit_count.
35232         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
35233         (fstrcmp_bounded): Simplify result computation accordingly.
35234
35235 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35236
35237         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
35238         (fstrcmp): Define in terms of fstrcmp_bounded.
35239         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
35240         lower_bound argument.
35241         Return quickly if the result is certainly < lower_bound.
35242         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
35243
35244 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35245
35246         * lib/diffseq.h (EARLY_ABORT): New macro.
35247         (compareseq): Change return type to bool. Return true when EARLY_ABORT
35248         evaluates to true.
35249
35250 2008-09-14  Bruno Haible  <bruno@clisp.org>
35251
35252         * modules/perror-tests: New file.
35253         * tests/test-perror.sh: New file.
35254         * tests/test-perror.c: New file.
35255
35256         New module 'perror'.
35257         * lib/stdio.in.h (perror): New declaration.
35258         * lib/perror.c: New file.
35259         * m4/perror.m4: New file.
35260         * modules/perror: New file.
35261         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
35262         * doc/posix-functions/perror.texi: Mention the perror module.
35263         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
35264         REPLACE_PERROR.
35265         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
35266         REPLACE_PERROR.
35267
35268 2008-09-14  Bruno Haible  <bruno@clisp.org>
35269
35270         * modules/stdio (Makefile.am): Reorder to match the order in
35271         lib/stdio.in.h.
35272         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35273
35274 2008-09-13  Bruno Haible  <bruno@clisp.org>
35275
35276         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
35277
35278 2008-09-13  Bruno Haible  <bruno@clisp.org>
35279
35280         Extend strerror to cover the added errno values.
35281         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
35282         (rpl_strerror): Provide error messages for the added errno values and
35283         for the WSA* values.
35284         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
35285         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
35286         strerror.
35287         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
35288         * modules/strerror (Depends-on): Add errno.
35289         * doc/posix-functions/strerror.texi: Document the change.
35290         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
35291         and EOVERFLOW.
35292
35293 2008-09-13  Bruno Haible  <bruno@clisp.org>
35294
35295         * modules/EOVERFLOW: Remove file.
35296         * m4/eoverflow.m4: Remove file.
35297         * modules/EOVERFLOW-tests: Remove file.
35298         * tests/test-EOVERFLOW.c: Remove file.
35299         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
35300         * modules/ftell (Depends-on): Likewise.
35301         * modules/getdelim (Depends-on): Likewise.
35302         * modules/getugroups (Depends-on): Likewise.
35303         * modules/poll (Depends-on): Likewise.
35304         * modules/snprintf (Depends-on): Likewise.
35305         * modules/sprintf-posix (Depends-on): Likewise.
35306         * modules/vasnprintf (Depends-on): Likewise.
35307         * modules/vasprintf (Depends-on): Likewise.
35308         * modules/vfprintf-posix (Depends-on): Likewise.
35309         * modules/vsnprintf (Depends-on): Likewise.
35310         * modules/vsprintf-posix (Depends-on): Likewise.
35311         * modules/xvasprintf (Depends-on): Likewise.
35312         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35313         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
35314         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
35315         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
35316         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35317         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
35318         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
35319         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
35320         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35321         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
35322         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
35323         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
35324         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35325         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
35326         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
35327         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
35328         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35329         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
35330         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
35331         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
35332         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35333         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
35334         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
35335         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
35336         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
35337         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35338         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
35339         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
35340         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
35341         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
35342         * MODULES.html.sh: Remove EOVERFLOW.
35343         * NEWS: Mention the change.
35344
35345 2008-09-13  Bruno Haible  <bruno@clisp.org>
35346
35347         * modules/errno-tests: New file.
35348         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
35349
35350         * lib/errno.in.h: New file.
35351         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
35352         * modules/errno: New file.
35353         * doc/posix-headers/errno.texi: Update documentation.
35354         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
35355
35356 2008-09-13  Bruno Haible  <bruno@clisp.org>
35357
35358         * tests/test-poll.c: Use #if for native Windows, rather than testing
35359         __MSVCRT__.
35360
35361 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35362             Bruno Haible  <bruno@clisp.org>
35363
35364         * lib/glob.c: Don't include <pwd.h> on native Windows.
35365         (WINDOWS32): New macro.
35366         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
35367
35368 2008-09-13  Bruno Haible  <bruno@clisp.org>
35369
35370         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
35371         (ETIMEDOUT): Remove macro.
35372         (glthread_cond_timedwait_multithreaded): New declaration.
35373         (glthread_cond_timedwait): Use it.
35374         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
35375         (glthread_cond_timedwait_multithreaded): New function.
35376
35377 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
35378
35379         * modules/poll-tests: Do not check for io.h.
35380         * tests/test-poll.c: Check for __MSVCRT__ instead.
35381
35382 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
35383
35384         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
35385         * modules/poll-tests: Add inet_pton, stdbool, sockets.
35386         * tests/test-poll.c: Use them.  Use _pipe on Windows.
35387
35388 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
35389
35390         * modules/poll-tests: New.
35391         * tests/test-poll.c: New.
35392
35393 2008-09-12  Eric Blake  <ebb9@byu.net>
35394
35395         frexp: test for NetBSD failure on -0.0
35396         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
35397         not all, bugs from NetBSD 3.0 have been fixed.
35398         * doc/posix-functions/frexp.texi (frexp): Document bug.
35399         Reported by Thomas Klausner.
35400
35401         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
35402         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
35403         literal -0.0.
35404         Reported by Jonathan C. Patschke <jp@centtech.com>.
35405
35406 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35407
35408         * lib/glthread/cond.h: Use dummy implementation also if
35409         USE_WIN32_THREADS.
35410
35411 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35412
35413         * modules/fnmatch-posix (License): Change to LGPLv2+.
35414         * modules/fnmatch-gnu (License): Likewise.
35415
35416 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35417
35418         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
35419
35420 2008-09-11  Jim Meyering  <meyering@redhat.com>
35421
35422         * users.txt: Add gtk-vnc.
35423
35424 2008-09-08  Simon Josefsson  <simon@josefsson.org>
35425
35426         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
35427         rotate amounts.
35428
35429         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
35430         required for 16-bit and 8-bit rotates.
35431         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
35432         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
35433         UINT8_MAX instead of hard-coded constants.
35434         Suggested by Paul Eggert.
35435
35436 2008-09-07  Bruno Haible  <bruno@clisp.org>
35437
35438         * tests/test-striconveh.c (main): Check behaviour when converting from
35439         UTF-7.
35440
35441         Make striconveh work better with stateful encodings.
35442         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
35443         that iconv does not increment the inptr when returning -1/EINVAL.
35444
35445 2008-09-07  Bruno Haible  <bruno@clisp.org>
35446
35447         * build-aux/config.rpath: Update according to libtool-2.2.6.
35448         * build-aux/config.libpath: Likewise.
35449
35450 2008-09-06  Bruno Haible  <bruno@clisp.org>
35451
35452         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
35453         * lib/freadptr.c (freadptr): Likewise.
35454         * lib/freadseek.c (freadptrinc): Likewise.
35455         Reported by Simon Josefsson.
35456
35457 2008-09-06  Bruno Haible  <bruno@clisp.org>
35458
35459         * modules/freadptr (License): Change to LGPLv2+.
35460         * modules/freadseek (License): Likewise.
35461         Suggested by Eric Blake.
35462
35463         * modules/memchr2 (License): Change to LGPLv2+.
35464         Approved by Eric Blake.
35465
35466 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35467             Bruno Haible  <bruno@clisp.org>
35468
35469         Make gnulib-tool work with native 'sed' on AIX.
35470         * gnulib-tool (sed_noop): New variable.
35471         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
35472         func_add_or_update, func_create_testdir): Use it to initialize sed
35473         script variables.
35474         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35475
35476 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
35477             Bruno Haible  <bruno@clisp.org>
35478
35479         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
35480         also works after #include directives.
35481
35482 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
35483
35484         getdate.y: reject an out-of-range timezone value
35485         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
35486         the range [-24...+24].  When specified with only one or two digits,
35487         * tests/test-getdate.c: Tests for the fix.
35488         * doc/getdate.texi: Document this change.
35489
35490 2008-09-03  Bruno Haible  <bruno@clisp.org>
35491
35492         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
35493
35494 2008-09-02  Simon Josefsson  <simon@josefsson.org>
35495
35496         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
35497         <bruce.korb@gmail.com> with ideas from Ben Pfaff
35498         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
35499         Blake <ebb9@byu.net>.
35500
35501         * tests/test-bitrotate.c: Add more test vectors.
35502
35503 2008-09-02  Eric Blake  <ebb9@byu.net>
35504
35505         vasnprintf-posix: handle large precision via %.*d
35506         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
35507         when handling it ourselves.
35508         * tests/test-vasnprintf-posix.c (test_function): Add test.
35509         * tests/test-snprintf-posix.h (test_function): Likewise.
35510         * tests/test-sprintf-posix.h (test_function): Likewise.
35511         * tests/test-vasprintf-posix.c (test_function): Likewise.
35512         Reported by Alain Guibert.
35513
35514 2008-09-01  Eric Blake  <ebb9@byu.net>
35515
35516         c-stack: make configure-time check more robust
35517         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
35518         successful sigaction call.
35519         Reported by Tom G. Christensen.
35520
35521 2008-09-01  Bruno Haible  <bruno@clisp.org>
35522
35523         New module 'findprog-lgpl'.
35524         * modules/findprog-lgpl: New file.
35525         * lib/findprog-lgpl.c: New file.
35526         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
35527         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
35528         to decide whether to use strdup or xstrdup, concatenated_filename or
35529         xconcatenated_filename.
35530
35531 2008-09-01  Bruno Haible  <bruno@clisp.org>
35532
35533         Split module 'concat-filename' into 'concat-filename' (LGPL) and
35534         'xconcat-filename' (GPL).
35535         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
35536         (License): Change to LGPLv2+.
35537         * modules/xconcat-filename: New file.
35538         * lib/concat-filename.h (concatenated_filename): Change specification.
35539         (xconcatenated_filename): New declaration.
35540         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
35541         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
35542         memory situations.
35543         * lib/xconcat-filename.c: New file.
35544         * NEWS: Mention the change.
35545         * lib/findprog.c: Include concat-filename.h, not filename.h.
35546         (find_in_path): Use xconcatenated_filename instead of
35547         concatenated_filename.
35548         * lib/javacomp.c: Include concat-filename.h, not filename.h.
35549         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
35550         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
35551         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
35552         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
35553         instead of concatenated_filename.
35554         * lib/javaexec.c: Include concat-filename.h, not filename.h.
35555         (execute_java_class): Use xconcatenated_filename instead of
35556         concatenated_filename.
35557         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
35558         * modules/javacomp (Depends-on): Likewise.
35559         * modules/javaexec (Depends-on): Likewise.
35560
35561 2008-09-01  Bruno Haible  <bruno@clisp.org>
35562
35563         Split module 'filename' into 'filename' and 'concat-filename'.
35564         * modules/filename: Keep only lib/filename.h.
35565         (License): Change to LGPLv2+.
35566         * modules/concat-filename: New file, extracted from modules/filename.
35567         * lib/filename.h (concatenated_filename): Remove declaration.
35568         * lib/concat-filename.h: New file, extracted from lib/filename.h.
35569         * lib/concat-filename.c: Include concat-filename.h.
35570         * NEWS: Mention the change.
35571
35572 2008-09-01  Simon Josefsson  <simon@josefsson.org>
35573
35574         * lib/bitrotate.h (rotl8, rotr8): Add.
35575
35576         * modules/bitrotate (configure.ac): Need
35577         AC_REQUIRE([AC_C_INLINE]).
35578         (Description): Mention stdint.h.  Reported by Bruno Haible
35579         <bruno@clisp.org>.
35580
35581         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
35582         Paolo Bonzini <bonzini@gnu.org>.
35583
35584 2008-08-31  Bruno Haible  <bruno@clisp.org>
35585
35586         Assume Solaris specific bi-arch conventions on Solaris systems.
35587         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
35588         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
35589         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
35590         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
35591         like acl_libdirstem.
35592         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
35593         acl_libdirstem.
35594         * NEWS: Mention the change.
35595         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
35596
35597 2008-08-31  Jim Meyering  <meyering@redhat.com>
35598
35599         * lib/strftime.h: Add comments describing the two added arguments.
35600
35601         remove duplicate #include directives
35602         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
35603         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
35604
35605 2008-08-31  Bruno Haible  <bruno@clisp.org>
35606
35607         New module 'sigpipe-die'.
35608         * modules/sigpipe-die: New file.
35609         * lib/sigpipe-die.h: New file.
35610         * lib/sigpipe-die.c: New file.
35611         * MODULES.html.sh (Signal handling): Add sigpipe-die.
35612
35613 2008-08-31  Bruno Haible  <bruno@clisp.org>
35614
35615         Don't override previously installed signal handlers.
35616         * lib/fatal-signal.c (saved_sigactions): New variable.
35617         (uninstall_handlers): Reset the signal to the saved handler, not
35618         to SIG_DFL (except when ignored).
35619         (install_handlers): Save the previous handlers.
35620
35621 2008-08-30  Bruno Haible  <bruno@clisp.org>
35622
35623         * gnulib-tool (func_reset_sigpipe): New function.
35624         (func_get_automake_snippet, func_modules_transitive_closure,
35625         func_import): Invoke it before a join command that reads from stdin,
35626         to avoid "echo: write error: Broken pipe" error messages on stderr.
35627         Reported by Sam Steingold <sds@gnu.org>.
35628
35629 2008-08-30  Bruno Haible  <bruno@clisp.org>
35630
35631         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
35632         Code copied from m4/open.m4.
35633         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
35634         access and the filename ends in a slash. Code copied from lib/open.c.
35635         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
35636         * tests/test-fopen.c (main): Check against bug with trailing slash.
35637
35638 2008-08-29  Bruno Haible  <bruno@clisp.org>
35639
35640         Avoid some "gcc -pedantic" warnings.
35641         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
35642         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
35643         * lib/dirent.in.h: Likewise.
35644         * lib/fcntl.in.h: Likewise.
35645         * lib/float.in.h: Likewise.
35646         * lib/iconv.in.h: Likewise.
35647         * lib/inttypes.in.h: Likewise.
35648         * lib/locale.in.h: Likewise.
35649         * lib/math.in.h: Likewise.
35650         * lib/netinet_in.in.h: Likewise.
35651         * lib/search.in.h: Likewise.
35652         * lib/signal.in.h: Likewise.
35653         * lib/stdarg.in.h: Likewise.
35654         * lib/stdint.in.h: Likewise.
35655         * lib/stdio.in.h: Likewise.
35656         * lib/stdlib.in.h: Likewise.
35657         * lib/string.in.h: Likewise.
35658         * lib/strings.in.h: Likewise.
35659         * lib/sys_select.in.h: Likewise.
35660         * lib/sys_socket.in.h: Likewise.
35661         * lib/sys_stat.in.h: Likewise.
35662         * lib/sys_time.in.h: Likewise.
35663         * lib/sysexits.in.h: Likewise.
35664         * lib/time.in.h: Likewise.
35665         * lib/unistd.in.h: Likewise.
35666         * lib/wchar.in.h: Likewise.
35667         * lib/wctype.in.h: Likewise.
35668         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
35669         * modules/fchdir (Makefile.am): Likewise.
35670         * modules/fcntl (Makefile.am): Likewise.
35671         * modules/float (Makefile.am): Likewise.
35672         * modules/iconv_open (Makefile.am): Likewise.
35673         * modules/inttypes (Makefile.am): Likewise.
35674         * modules/locale (Makefile.am): Likewise.
35675         * modules/math (Makefile.am): Likewise.
35676         * modules/netinet_in (Makefile.am): Likewise.
35677         * modules/search (Makefile.am): Likewise.
35678         * modules/signal (Makefile.am): Likewise.
35679         * modules/stdarg (Makefile.am): Likewise.
35680         * modules/stdint (Makefile.am): Likewise.
35681         * modules/stdio (Makefile.am): Likewise.
35682         * modules/stdlib (Makefile.am): Likewise.
35683         * modules/string (Makefile.am): Likewise.
35684         * modules/strings (Makefile.am): Likewise.
35685         * modules/sys_select (Makefile.am): Likewise.
35686         * modules/sys_socket (Makefile.am): Likewise.
35687         * modules/sys_stat (Makefile.am): Likewise.
35688         * modules/sys_time (Makefile.am): Likewise.
35689         * modules/sysexits (Makefile.am): Likewise.
35690         * modules/time (Makefile.am): Likewise.
35691         * modules/unistd (Makefile.am): Likewise.
35692         * modules/wchar (Makefile.am): Likewise.
35693         * modules/wctype (Makefile.am): Likewise.
35694         Reported by Reuben Thomas <rrt@sc3d.org>.
35695
35696 2008-08-29  Bruno Haible  <bruno@clisp.org>
35697
35698         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
35699         any more.
35700
35701 2008-08-29  Simon Josefsson  <simon@josefsson.org>
35702
35703         * MODULES.html.sh (Misc): Add bitrotate.
35704
35705         * modules/bitrotate: New file.
35706
35707         * lib/bitrotate.h: New file.
35708
35709         * modules/bitrotate-tests: New file.
35710
35711         * tests/test-bitrotate.c: New file.
35712
35713         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
35714         on the bitrotate module.
35715
35716         * lib/arctwo.c: Use new bitrotate module.
35717
35718 2008-08-29  Jim Meyering  <meyering@redhat.com>
35719
35720         bootstrap: merge changes from coreutils
35721         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
35722         of copied files.  Remove a kludge, now that this is fixed.
35723         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
35724         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
35725         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
35726
35727 2008-08-29  Bruno Haible  <bruno@clisp.org>
35728
35729         * MODULES.html.sh: Remove --cvs-urls option.
35730
35731 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
35732
35733         maint.mk: adjust to file name change
35734         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
35735
35736 2008-08-28  Jim Meyering  <meyering@redhat.com>
35737
35738         * modules/getndelim2 (License): Relicense to LGPLv2+.
35739         Approved by Richard Stallman for the version of 1995, and by
35740         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
35741
35742 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
35743
35744         * lib/getdelim.c (flockfile, funlockfile): Make all of them
35745         dummy if one is not available.  Do not touch them if
35746         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
35747         (getc_maybe_unlocked): New.
35748         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
35749
35750 2008-08-26  Eric Blake  <ebb9@byu.net>
35751
35752         doc/INSTALL: resync from autoconf
35753         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
35754         (INSTALL_PRELUDE): Delete; this is done more efficiently by
35755         moving...
35756         * install.texi [!autoconf]: ...here.  Resync from autoconf.
35757         * INSTALL: Regenerate.
35758         * INSTALL.ISO: New file.
35759         * INSTALL.UTF-8: Likewise.
35760
35761 2008-08-26  Jim Meyering  <meyering@redhat.com>
35762
35763         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
35764         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
35765         these definitions conditional, so that they may be overridden, too.
35766
35767 2008-08-26  Bruno Haible  <bruno@clisp.org>
35768
35769         Generate INSTALL file variants with prettier quotes.
35770         * doc/Makefile (INSTALL_PRELUDE): New macro.
35771         (INSTALL): Use it.
35772         (INSTALL.ISO, INSTALL.UTF-8): New rules.
35773
35774 2008-08-26  Bruno Haible  <bruno@clisp.org>
35775
35776         Run makeinfo in an English locale.
35777         * doc/Makefile (MAKEINFO): New variable.
35778
35779 2008-08-26  Bruno Haible  <bruno@clisp.org>
35780
35781         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
35782         Suggested by Eric Blake.
35783
35784 2008-08-25  Bruno Haible  <bruno@clisp.org>
35785
35786         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
35787
35788 2008-08-25  Eric Blake  <ebb9@byu.net>
35789
35790         c-stack: test that stack overflow can be caught
35791         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
35792         that platform allows handling stack overflow; at least OS/2 EMX
35793         has sigaltstack, but crashes before transferring control to
35794         handler on stack overflow.
35795         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
35796         check for HAVE_STACK_OVERFLOW_HANDLING.
35797         Reported by Elbert Pol.
35798
35799 2008-08-25  Bruno Haible  <bruno@clisp.org>
35800
35801         * doc/posix-functions/strftime.texi: Fix description of strftime
35802         module.
35803
35804 2008-08-24  Bruno Haible  <bruno@clisp.org>
35805
35806         * tests/uniwidth/test-uc_width2.c: New file.
35807         * tests/uniwidth/test-uc_width2.sh: New file.
35808         * modules/uniwidth/width-tests (Files): Add the new files.
35809         (TESTS): Add uniwidth/test-uc_width2.sh.
35810         (TESTS_ENVIRONMENT): New variable.
35811         (check_PROGRAMS): Add test-uc_width2.
35812         (test_uc_width2_SOURCES): New variable.
35813
35814         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
35815         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
35816         not 0x00AB.
35817         Reported by Alexander V. Lukyanov <lav@netis.ru>.
35818
35819 2008-08-22  Eric Blake  <ebb9@byu.net>
35820
35821         test-lock, test-tls: mention why a test is skipped
35822         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
35823         skipped.
35824         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
35825
35826         count-one-bits: relax license
35827         * modules/count-one-bits (License): Relicense to LGPLv2+.
35828         Suggested by Ludovic Courtès, approved by Ben Pfaff.
35829
35830 2008-08-22  Andreas Schwab  <schwab@suse.de>
35831
35832         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
35833         Remove spurious space in assignment.
35834
35835 2008-08-21  Simon Josefsson  <simon@josefsson.org>
35836
35837         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
35838         Paul Eggert <eggert@CS.UCLA.EDU>.
35839
35840 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
35841
35842         * modules/gettext: Add m4/threadlib.m4.
35843
35844 2008-08-19  Eric Blake  <ebb9@byu.net>
35845
35846         test-c-stack: fix compilation failure on FreeBSD 5.0
35847         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
35848         headers before <sys/resource.h>.
35849         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
35850         the bug.
35851         Reported by Nelson H. F. Beebe.
35852
35853         strverscmp: migrate from "strverscmp.h" to <string.h>
35854         * modules/string (Makefile.am): Add new hooks.
35855         * modules/strverscmp (Files): Remove strverscmp.h.
35856         (Depends-on): Add string.
35857         (configure.ac): Add indicator.
35858         (Include): Mention new header.
35859         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
35860         defaults.
35861         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
35862         results.
35863         * lib/strverscmp.h: Delete.
35864         * lib/string.in.h (strverscmp): Provide declaration, when needed.
35865         * tests/test-strverscmp.c (includes): Adjust client.
35866         * lib/check-version.c (includes): Likewise.
35867         * NEWS: Document the change.
35868
35869         strverscmp: add unit test
35870         * modules/strverscmp-tests: New file.
35871         * tests/test-strverscmp.c: Likewise.
35872
35873 2008-08-19  Simon Josefsson  <simon@josefsson.org>
35874
35875         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
35876         regarding Windows crypto stuff, from Mono.
35877
35878 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
35879
35880         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
35881         if present, for intel RND.  Return error on failures.
35882
35883 2008-08-18  Ben Pfaff  <blp@gnu.org>
35884
35885         gitlog-to-changelog: give better diagnostic for failed pipe-open
35886         * build-aux/gitlog-to-changelog: Improve error message: suggest
35887         that the version of Git may be too old.
35888
35889 2008-08-18  Simon Josefsson  <simon@josefsson.org>
35890
35891         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
35892         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
35893
35894 2008-08-18  Bruno Haible  <bruno@clisp.org>
35895
35896         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
35897         pthread_in_use().
35898
35899 2008-08-18  Bruno Haible  <bruno@clisp.org>
35900
35901         * lib/glthread/threadlib.c: Include <pthread.h>.
35902
35903 2008-08-18  Bruno Haible  <bruno@clisp.org>
35904
35905         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
35906         glthread_recursive_lock_* macros.
35907         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
35908         Fix syntax error.
35909
35910 2008-08-18  Bruno Haible  <bruno@clisp.org>
35911
35912         * lib/glthread/thread.c: Avoid forcing a context switch right after
35913         thread creation.
35914
35915 2008-08-17  Bruno Haible  <bruno@clisp.org>
35916
35917         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
35918         * lib/glthread/thread.h: Provide Win32 specific implementation.
35919         * modules/thread (Files): Add lib/glthread/thread.c.
35920         (Depends-on): Add lock.
35921         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
35922
35923 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35924
35925         New module 'yield'.
35926         * modules/yield: New file.
35927         * lib/glthread/yield.h: New file.
35928         * m4/yield.m4: New file.
35929         * MODULES.html.sh (Multithreading): Add yield.
35930
35931 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35932
35933         New module 'thread'.
35934         * modules/thread: New file.
35935         * lib/glthread/thread.h: New file.
35936         * m4/thread.m4: New file.
35937         * MODULES.html.sh (Multithreading): Add thread.
35938
35939 2008-08-17  Bruno Haible  <bruno@clisp.org>
35940
35941         * lib/glthread/lock.h: Include <stdlib.h> always.
35942         * lib/glthread/tls.h: Likewise.
35943         * lib/glthread/cond.h: Likewise.
35944
35945 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35946
35947         New module 'cond'.
35948         * modules/cond: New file.
35949         * lib/glthread/cond.h: New file.
35950         * lib/glthread/cond.c: New file.
35951         * m4/cond.m4: New file.
35952         * MODULES.html.sh (Multithreading): Add cond.
35953
35954 2008-08-16  Eric Blake  <ebb9@byu.net>
35955
35956         c-stack: fix regression on Irix 5.3 from 2008-06-21
35957         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
35958         sa_sigaction...
35959         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
35960         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
35961         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
35962         * modules/signal (Makefile.am): Use the value.
35963         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
35964         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
35965         * doc/posix-headers/signal.texi (signal.h): Document this
35966         portability issue.
35967         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
35968         Reported by Tom G. Christensen.
35969
35970 2008-08-17  Bruno Haible  <bruno@clisp.org>
35971
35972         New module 'threadlib'.
35973         * modules/threadlib: New file.
35974         * lib/glthread/threadlib.c: New file, extracted from
35975         lib/glthread/lock.c.
35976         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
35977         functions.
35978         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
35979         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
35980         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
35981         macros.
35982         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
35983         (gl_DISABLE_THREADS): Remove macro.
35984         * modules/lock (Files): Remove build-aux/config.rpath.
35985         (Depends-on): Remove havelib. Add threadlib.
35986         (configure.ac-early): Remove section.
35987         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
35988         * modules/tls (Depends-on): Remove lock. Add threadlib.
35989         (Link): New section, copied from threadlib.
35990         * MODULES.html.sh (Multithreading): Add threadlib.
35991
35992 2008-08-14  Bruno Haible  <bruno@clisp.org>
35993
35994         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
35995         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
35996         glthread_rwlock_unlock, glthread_rwlock_destroy,
35997         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
35998         glthread_recursive_lock_destroy): Define as macros always.
35999         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
36000         glthread_lock_lock.
36001         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
36002         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
36003         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
36004         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
36005         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
36006         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
36007         (glthread_recursive_lock_lock_func): Renamed from
36008         glthread_recursive_lock_lock.
36009         (glthread_recursive_lock_unlock_func): Renamed from
36010         glthread_recursive_lock_unlock.
36011         (glthread_recursive_lock_destroy_func): Renamed from
36012         glthread_recursive_lock_destroy.
36013
36014 2008-08-14  Bruno Haible  <bruno@clisp.org>
36015
36016         * lib/glthread/lock.h: Renamed from lib/lock.h.
36017         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
36018         * lib/glthread/tls.h: Renamed from lib/tls.h.
36019         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
36020         * lib/fstrcmp.c: Update includes.
36021         * lib/strsignal.c: Update includes.
36022         * modules/lock (Files, Makefile.am): Update.
36023         (Include): Change to "glthread/lock.h".
36024         * modules/tls (Files, Makefile.am): Update.
36025         (Include): Change to "glthread/tls.h".
36026         * tests/test-lock.c: Update includes.
36027         * tests/test-tls.c: Update includes.
36028         * NEWS: Mention the renamed header files.
36029
36030 2008-08-11  Jim Meyering  <meyering@redhat.com>
36031
36032         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
36033
36034 2008-08-11  Eric Blake  <ebb9@byu.net>
36035
36036         test-c-stack: avoid C99-ism
36037         * tests/test-c-stack.c (main): Fix whitespace, move declaration
36038         before statement.
36039         Reported by Alain Guibert.
36040
36041 2008-08-10  Jim Meyering  <meyering@redhat.com>
36042
36043         ensure that return value of uinttostr et al are not ignored
36044         * lib/inttostr.h (__GNUC_PREREQ): Define.
36045         (__attribute_warn_unused_result__): Define.
36046         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
36047
36048 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
36049
36050         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
36051         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
36052
36053 2008-08-07  Jim Meyering  <meyering@redhat.com>
36054
36055         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
36056
36057         * modules/mkstemp (License): Relicense under LGPLv2+.
36058         * modules/tempname (License): Likewise.
36059
36060 2008-08-06  Bruno Haible  <bruno@clisp.org>
36061
36062         * lib/poll.c (poll): Further micro-optimization.
36063
36064 2008-08-06  Jim Meyering  <meyering@redhat.com>
36065
36066         inet_pton.c: use locale-independent tolower
36067         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
36068         (inet_pton6): Use c_tolower rather than tolower.
36069         * modules/inet_pton (Depends-on): Add c-ctype.
36070
36071 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
36072
36073         * lib/poll.c (poll): Avoid division when timeout is 0, cache
36074         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
36075
36076 2008-08-06  Jim Meyering  <meyering@redhat.com>
36077
36078         * modules/inet_pton (License): Relicense under LGPLv2+.
36079
36080 2008-08-03  Bruno Haible  <bruno@clisp.org>
36081
36082         Additional non-aborting API for lock and tls.
36083         * lib/lock.h: Include <errno.h>.
36084         (glthread_lock_init): New macro/function.
36085         (gl_lock_init): Define as wrapper around glthread_lock_init.
36086         (glthread_lock_lock): New macro/function.
36087         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
36088         (glthread_lock_unlock): New macro/function.
36089         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
36090         (glthread_lock_destroy): New macro/function.
36091         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
36092         (glthread_rwlock_init): New macro/function.
36093         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
36094         (glthread_rwlock_rdlock): New macro/function.
36095         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
36096         (glthread_rwlock_wrlock): New macro/function.
36097         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
36098         (glthread_rwlock_unlock): New macro/function.
36099         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
36100         (glthread_rwlock_destroy): New macro/function.
36101         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
36102         (glthread_recursive_lock_init): New macro/function.
36103         (gl_recursive_lock_init): Define as wrapper around
36104         glthread_recursive_lock_init.
36105         (glthread_recursive_lock_lock): New macro/function.
36106         (gl_recursive_lock_lock): Define as wrapper around
36107         glthread_recursive_lock_lock.
36108         (glthread_recursive_lock_unlock): New macro/function.
36109         (gl_recursive_lock_unlock): Define as wrapper around
36110         glthread_recursive_lock_unlock.
36111         (glthread_recursive_lock_destroy): New macro/function.
36112         (gl_recursive_lock_destroy): Define as wrapper around
36113         glthread_recursive_lock_destroy.
36114         (glthread_once): New macro/function.
36115         (gl_once): Define as wrapper around glthread_once.
36116         Update function declarations.
36117         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
36118         glthread_rwlock_init. Return error code.
36119         (glthread_rwlock_rdlock_multithreaded): Renamed from
36120         glthread_rwlock_rdlock. Return error code.
36121         (glthread_rwlock_wrlock_multithreaded): Renamed from
36122         glthread_rwlock_wrlock. Return error code.
36123         (glthread_rwlock_unlock_multithreaded): Renamed from
36124         glthread_rwlock_unlock. Return error code.
36125         (glthread_rwlock_destroy_multithreaded): Renamed from
36126         glthread_rwlock_destroy. Return error code.
36127         (glthread_recursive_lock_init_multithreaded): Renamed from
36128         glthread_recursive_lock_init. Return error code.
36129         (glthread_recursive_lock_lock_multithreaded): Renamed from
36130         glthread_recursive_lock_lock. Return error code.
36131         (glthread_recursive_lock_unlock_multithreaded): Renamed from
36132         glthread_recursive_lock_unlock. Return error code.
36133         (glthread_recursive_lock_destroy_multithreaded): Renamed from
36134         glthread_recursive_lock_destroy. Return error code.
36135         (glthread_once_call): Make static.
36136         (glthread_once_multithreaded): Renamed from glthread_once.
36137         * lib/tls.h: Include <errno.h>.
36138         (glthread_tls_key_init): New macro/function.
36139         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
36140         (glthread_tls_set): New macro/function.
36141         (gl_tls_set): Define as wrapper around glthread_tls_set.
36142         (glthread_tls_key_destroy): New macro/function.
36143         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
36144         Update function declarations.
36145         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
36146         glthread_tls_get.
36147         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36148
36149 2008-08-04  Eric Blake  <ebb9@byu.net>
36150
36151         gnumakefile: use space, not TAB, outside of targets
36152         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
36153
36154 2008-08-02  Jim Meyering  <meyering@redhat.com>
36155
36156         getdate.y: avoid locale-dependent date parsing failure
36157         In Turkish locales, getdate would fail to recognize keywords
36158         containing a lowercase "i".  The solution is not to rely on
36159         locale-sensitive case-conversion.
36160         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
36161         (lookup_word): Use c_toupper in place of toupper.
36162         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
36163         Reported by Vefa Bicakci <bicave@superonline.com> in
36164         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
36165         * modules/getdate (Depends-on): Add c-ctype.
36166
36167 2008-08-02  Bruno Haible  <bruno@clisp.org>
36168
36169         * gnulib-tool (func_import): When updating or creating a .gitignore
36170         file, prepend each added line with a slash, and ignore leading slashes
36171         from the existing lines.
36172         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
36173
36174 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36175
36176         Portability fix for GNU make 3.79.1.
36177         * top/GNUmakefile: Avoid 'else COND', which older GNU make
36178         versions do not understand.
36179
36180 2008-08-01  Bruno Haible  <bruno@clisp.org>
36181
36182         Work around bug of HP-UX 10.20 cc with -0.0 literal.
36183         * tests/test-isnanf.h (zero): New variable.
36184         (main): Avoid literal -0.0f.
36185         * tests/test-isnand.h (zero): New variable.
36186         (main): Avoid literal -0.0.
36187         * tests/test-isnanl.h (zero): New variable.
36188         (main): Avoid literal -0.0L.
36189         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
36190         (test_float, test_double, test_long_double): Avoid literals -0.0f,
36191         -0.0, -0.0L.
36192         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
36193         (test_signbitd): Avoid literal -0.0.
36194         (test_signbitl): Avoid literal -0.0L.
36195         * tests/test-ceilf1.c (zero): New variable.
36196         (main): Avoid literal -0.0f.
36197         * tests/test-ceill.c (zero): New variable.
36198         (main): Avoid literal -0.0L.
36199         * tests/test-floorf1.c (zero): New variable.
36200         (main): Avoid literal -0.0f.
36201         * tests/test-floorl.c (zero): New variable.
36202         (main): Avoid literal -0.0L.
36203         * tests/test-roundf1.c (zero): New variable.
36204         (main): Avoid literal -0.0f.
36205         * tests/test-round1.c (zero): New variable.
36206         (main): Avoid literal -0.0.
36207         * tests/test-roundl.c (zero): New variable.
36208         (main): Avoid literal -0.0L.
36209         * tests/test-truncf1.c (zero): New variable.
36210         (main): Avoid literal -0.0f.
36211         * tests/test-trunc1.c (zero): New variable.
36212         (main): Avoid literal -0.0.
36213         * tests/test-truncl.c (zero): New variable.
36214         (main): Avoid literal -0.0L.
36215         * tests/test-frexp.c (zero): New variable.
36216         (main): Avoid literal -0.0.
36217         * tests/test-frexpl.c (zero): New variable.
36218         (main): Avoid literal -0.0L.
36219         * tests/test-ldexpl.c (zero): New variable.
36220         (main): Avoid literal -0.0L.
36221         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
36222         (zerod, zerol): New variables.
36223         (test_function): Avoid literals -0.0, -0.0L.
36224         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
36225         (zerod, zerol): New variables.
36226         (test_function): Avoid literals -0.0, -0.0L.
36227         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
36228         (zerod, zerol): New variables.
36229         (test_function): Avoid literals -0.0, -0.0L.
36230         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
36231         (zerod, zerol): New variables.
36232         (test_function): Avoid literals -0.0, -0.0L.
36233         * tests/test-strtod.c (zero): New variable.
36234         (main): Avoid literal -0.0.
36235         Reported by Jonathan C. Patschke <jp@centtech.com>.
36236
36237 2008-07-31  Jim Meyering  <meyering@redhat.com>
36238
36239         sha256.h: correct definition of SHA224_DIGEST_SIZE
36240         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
36241         Reported by Paulie Pena IV <paulie4@gmail.com>.
36242         Define as 224 / 8, rather than as a literal.
36243         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
36244         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
36245         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
36246
36247 2008-07-31  Bruno Haible  <bruno@clisp.org>
36248
36249         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
36250         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
36251         Reported by Jonathan Patschke <jp@centtech.com>.
36252
36253 2008-07-31  Bruno Haible  <bruno@clisp.org>
36254
36255         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
36256         Reported by Paolo Bonzini <bonzini@gnu.org>.
36257
36258 2008-07-30  Eric Blake  <ebb9@byu.net>
36259
36260         test-strtod: allow compilation without -lm
36261         * tests/test-strtod.c (main): Avoid link dependence on fabs.
36262         Reported by Dennis Clarke <blastwave@gmail.com>.
36263
36264 2008-07-28  Jim Meyering  <meyering@redhat.com>
36265
36266         bootstrap: work also when there are no .po files in po/
36267         * build-aux/bootstrap (update_po_files): Complete the change
36268         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
36269
36270 2008-07-27  Jim Meyering  <meyering@redhat.com>
36271
36272         * users.txt: Add zile.
36273
36274 2008-07-26  Ben Pfaff  <blp@gnu.org>
36275
36276         Add missing dependencies on new m4/exponent[fdl].m4 files.
36277         * modules/isnanf-nolibm: Add m4/exponentf.m4.
36278         * modules/isnand-nolibm: Add m4/exponentd.m4.
36279         * modules/isnanl-nolibm: Add m4/exponentl.m4.
36280         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
36281         m4/isnan[fdl].m4, because the macros actually used moved.
36282         Reported by Jim Meyering.
36283
36284 2008-07-14  Ben Pfaff  <blp@gnu.org>
36285
36286         Add isinf module.
36287         * lib/isinf.c: New file.
36288         * lib/math.in.h: Define isinf macro if we have decided to replace
36289         it.
36290         * m4/isinf.m4: New file.
36291         * m4/math_h.m4: Initialize and substitute variables for isinf
36292         module.
36293         * modules/isinf: New file.
36294         * modules/isinf-tests: New file.
36295         * modules/math: Add substitutions for new module.
36296         * tests/test-isinf.c: New file.
36297         * doc/posix-functions/isinf.texi: Mention new module.
36298         * MODULES.html.sh: Mention new module.
36299
36300 2008-07-14  Ben Pfaff  <blp@gnu.org>
36301
36302         Factor out some macros for use by additional modules.
36303         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
36304         exponentf.m4.
36305         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
36306         exponentd.m4.
36307         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
36308         file exponentl.m4.
36309         * m4/exponentf.m4: New file.
36310         * m4/exponentd.m4: New file.
36311         * m4/exponentl.m4: New file.
36312         * modules/isnanf: Use new file m4/exponentf.m4.
36313         * modules/isnand: Use new file m4/exponentd.m4.
36314         * modules/isnanl: Use new file m4/exponentl.m4.
36315
36316 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
36317
36318         mktime.c: normalize tp->tm_isdst value to -1/0/1.
36319         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
36320         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
36321         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
36322
36323         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
36324         readlink on platforms without PATH_MAX.
36325
36326 2008-07-21  Eric Blake  <ebb9@byu.net>
36327
36328         Warn, not fail, on stale version.
36329         * top/GNUmakefile (_curr-ver): Tone down previous patch.
36330
36331         Don't allow installation with stale devel version number.
36332         * top/GNUmakefile (_is-install-target): New macro.
36333         (_curr-ver): Forbid installation with stale version number.
36334
36335 2008-07-20  Bruno Haible  <bruno@clisp.org>
36336
36337         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
36338         TESTS_ENVIRONMENT.
36339         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
36340
36341 2008-07-20  Bruno Haible  <bruno@clisp.org>
36342
36343         * lib/c-stack.h (c_stack_action): Add documentation.
36344         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
36345
36346 2008-07-20  Bruno Haible  <bruno@clisp.org>
36347
36348         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
36349         * modules/readlink (License): Likewise.
36350
36351 2008-07-17  Eric Blake  <ebb9@byu.net>
36352
36353         * modules/c-stack (Link): Fix typo.
36354
36355         Make c-stack use libsigsegv, when available.
36356         * modules/c-stack (Depends-on): Add libsigsegv.
36357         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
36358         needed.
36359         * lib/c-stack.c (SIGSTKSZ): Define fallback.
36360         (segv_handler, overflow_handler, c_stack_action)
36361         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
36362         implementation when libsigsegv is available, but only when using
36363         the library is necessary.
36364         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
36365         comment, explaining why XSI check fails on Linux.
36366         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
36367         * tests/test-c-stack2.sh: Tweak skip message.
36368         * NEWS: Document new link-time requirements.
36369
36370 2008-07-16  Eric Blake  <ebb9@byu.net>
36371
36372         c-stack: Expose false positives when not using libsigsegv.
36373         * modules/c-stack-tests (Files): Expand test.
36374         * tests/test-c-stack.c (main): Add means to conditionally trigger
36375         non-overflow SIGSEGV.
36376         * tests/test-c-stack2.sh: New file.
36377
36378 2008-07-14  Bruno Haible  <bruno@clisp.org>
36379
36380         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
36381         Reported by Eric Blake.
36382
36383 2008-07-14  Sam Steingold  <sds@gnu.org>
36384             Bruno Haible  <bruno@clisp.org>
36385
36386         New module libsigsegv.
36387         * modules/libsigsegv: New file.
36388         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
36389         modifications.
36390         * MODULES.html.sh (Signal handling): New section.
36391
36392 2008-07-14  Bruno Haible  <bruno@clisp.org>
36393
36394         * modules/unictype/ctype-* (Description): Add the word "function".
36395         Improves the resulting doc in MODULES.html.
36396
36397 2008-07-12  Ben Pfaff  <blp@gnu.org>
36398
36399         Add longlong module.
36400         * modules/longlong: New file.
36401
36402 2008-07-12  Bruno Haible  <bruno@clisp.org>
36403
36404         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
36405         to empty.
36406
36407 2008-07-10  Ben Pfaff  <blp@gnu.org>
36408
36409         Add isnan module.
36410         * doc/posix-functions/isnan.texi: Mention new module.
36411         * lib/math.in.h: Define isnan macro if we have decided to replace
36412         it.
36413         * m4/isnan.m4: New file.
36414         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
36415         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
36416         also.
36417         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
36418         redundancy.
36419         * m4/math_h.m4: Initialize and substitute variables for isnan
36420         module.
36421         * modules/isnan: New file.
36422         * modules/isnan-tests: New file.
36423         * modules/math: Add substitutions for new module.
36424         * tests/test-isnan.c: New file.
36425         * MODULES.html.sh: Mention new module.
36426
36427 2008-07-10  Ben Pfaff  <blp@gnu.org>
36428
36429         Add isnanf module.
36430         * lib/isnanf.m4: New file.
36431         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
36432         (gl_HAVE_ISNANF_IN_LIBM): New macro.
36433         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
36434         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
36435         * modules/isnanf: New file.
36436         * modules/isnanf-tests: New file.
36437         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
36438         files.
36439         * tests/test-isnanf-nolibm.c: factored most of its contents into
36440         new file tests/test-isnanf.h.
36441         * tests/test-isnanf.h: New file.
36442         * tests/test-isnanf.c: New file.
36443         * MODULES.html.sh: Mention new module.
36444         * doc/glibc-functions/isnanf.texi: Mention new module.
36445
36446 2008-07-10  Ben Pfaff  <blp@gnu.org>
36447
36448         Add isnand module.
36449         * lib/isnand.h: New file.
36450         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
36451         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
36452         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
36453         functionality also.
36454         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
36455         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
36456         (gl_HAVE_ISNAND_IN_LIBM): New macro.
36457         * modules/isnand: New file.
36458         * modules/isnand-tests: New file.
36459         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
36460         files.
36461         * tests/test-isnand-nolibm.c: factored most of its contents into
36462         new file tests/test-isnand.h.
36463         * tests/test-isnand.h: New file.
36464         * tests/test-isnand.c: New file.
36465         * MODULES.html.sh: Mention new module.
36466
36467 2008-07-10  Ben Pfaff  <blp@gnu.org>
36468
36469         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
36470         * lib/isnand.h: Rename lib/isnand-nolibm.h.
36471         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
36472         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
36473         * modules/isnanf-nolibm: Update references to renamed files.
36474         * modules/isnand-nolibm: Likewise.
36475         * modules/isnanf-nolibm-tests: Likewise.
36476         * modules/isnand-nolibm-tests: Likewise.
36477         * lib/frexp.c: Likewise.
36478         * lib/isfinite.c: Likewise.
36479         * lib/signbitd.c: Likewise.
36480         * lib/signbitf.c: Likewise.
36481         * lib/vasnprintf.c: Likewise.
36482         * tests/test-ceilf1.c: Likewise.
36483         * tests/test-ceilf2.c: Likewise.
36484         * tests/test-floorf1.c: Likewise.
36485         * tests/test-floorf2.c: Likewise.
36486         * tests/test-frexp.c: Likewise.
36487         * tests/test-round1.c: Likewise.
36488         * tests/test-round2.c: Likewise.
36489         * tests/test-roundf1.c: Likewise.
36490         * tests/test-strtod.c: Likewise.
36491         * tests/test-trunc1.c: Likewise.
36492         * tests/test-trunc2.c: Likewise.
36493         * tests/test-truncf1.c: Likewise.
36494         * tests/test-truncf2.c: Likewise.
36495         * NEWS: Mention the renamed header files.
36496
36497 2008-07-11  Jim Meyering  <meyering@redhat.com>
36498
36499         vc-list-files: make the last-resort awk code more portable
36500         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
36501         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
36502         does not support it.
36503
36504 2008-07-10  Eric Blake  <ebb9@byu.net>
36505
36506         Work with tar's bootstrap.
36507         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
36508         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
36509         an m4 comment.
36510
36511 2008-07-09  Jim Meyering  <meyering@redhat.com>
36512
36513         posix-shell.m4: fix typo that made this test malfunction
36514         * m4/posix-shell.m4: Remove capitalization in variable name.
36515
36516 2008-07-08  Bruno Haible  <bruno@clisp.org>
36517
36518         * m4/onceonly.m4: Update comments.
36519         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36520
36521 2008-07-04  Jim Meyering  <meyering@redhat.com>
36522
36523         * users.txt: Add vc-dwim.
36524         (bison, coreutils): Use the gitweb URL.
36525
36526 2008-07-03  Jim Meyering  <meyering@redhat.com>
36527
36528         * users.txt: Add libffcall.  From Sam Steingold.
36529
36530 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
36531
36532         getdate.y: do not ignore TZ with relative day, month or year offset
36533         * lib/getdate.y (get_date): Move the tz-handling block to follow the
36534         relative-date-handling, since otherwise, the latter would clobber the
36535         sole output (an updated Start value) of the tz-handling block.
36536         * tests/test-getdate.c: Tests for the fix
36537
36538 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36539
36540         Recognize 'foo_LIBRARIES += libgnu.a'.
36541         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
36542         makefile snippet has already specified an installation location,
36543         also using '+='.
36544
36545 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
36546
36547         getdate.y: factor out common actions
36548         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
36549         Use them in place of open-coded actions.
36550
36551 2008-07-01  Simon Josefsson  <simon@josefsson.org>
36552
36553         Add self-test for getdate module.
36554         * modules/getdate-tests: New file.
36555         * tests/test-getdate.c: New file.
36556
36557 2008-06-29  Bruno Haible  <bruno@clisp.org>
36558
36559         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
36560         .gitignore.
36561         Reported by Sylvain Beucler <beuc@beuc.net>.
36562
36563 2008-06-29  Bruno Haible  <bruno@clisp.org>
36564
36565         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
36566         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
36567
36568 2008-06-29  Bruno Haible  <bruno@clisp.org>
36569
36570         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
36571         EXTRA_DIST.
36572         Reported by Sylvain Beucler <beuc@beuc.net>.
36573
36574 2008-06-26  Jim Meyering  <meyering@redhat.com>
36575
36576         make several modules depend on the "open" module
36577         This provides slightly increased consistency when opening-for-write
36578         the name of a non-directory spelled with a trailing slash.
36579         * modules/chdir-safer: Likewise.
36580         * modules/chown: Likewise.
36581         * modules/clean-temp: Likewise.
36582         * modules/copy-file: Likewise.
36583         * modules/fchdir: Likewise.
36584         * modules/fcntl-safer: Likewise.
36585         * modules/pipe: Likewise.
36586         * modules/utime: Likewise.
36587         Prompted by Eric Blake and Bruno Haible.
36588
36589 2008-06-24  Andreas Schwab  <schwab@suse.de>
36590
36591         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
36592         literals can be used as initializers for global variables.
36593
36594 2008-06-23  Eric Blake  <ebb9@byu.net>
36595
36596         Make gnulib-cache.m4 easier to diff.
36597         * gnulib-tool (func_import): Allow newlines when reading cached
36598         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
36599
36600 2008-06-23  Bruno Haible  <bruno@clisp.org>
36601
36602         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
36603         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
36604         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
36605         m4/signalblocking.m4.
36606         (gl_PREREQ_SIGACTION): Don't invoke it.
36607         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
36608         gl_PREREQ_SIG_HANDLER_H.
36609         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
36610         Don't check for sigaction here.
36611
36612 2008-06-23  Bruno Haible  <bruno@clisp.org>
36613
36614         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
36615         (install_handlers): Don't set the SA_RESETHAND flag.
36616
36617 2008-06-23  Bruno Haible  <bruno@clisp.org>
36618
36619         * m4/sigaction.m4: Comment fixes.
36620         * lib/signal.in.h: Likewise.
36621
36622 2008-06-23  Eric Blake  <ebb9@byu.net>
36623
36624         Fix typo.
36625         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
36626
36627         Avoid SA_ namespace.
36628         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
36629         Reported by Ralf Wildenhues.
36630
36631         Avoid test failure due to SA_RESTORER.
36632         * tests/test-sigaction.c (SA_MASK): New macro.
36633         (main): Avoid failing due to extension flags being set.
36634         Reported by Jim Meyering.
36635
36636         Revert use of sig-handler.h in sigprocmask.c.
36637         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
36638         it requires the existence of struct sigaction.
36639         * lib/sigprocmask.c (handler_t): Restore typedef.
36640         (rpl_signal, old_handlers): Use local type.
36641
36642 2008-06-22  Bruno Haible  <bruno@clisp.org>
36643
36644         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
36645         conditionally.
36646         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36647
36648 2008-06-22  Bruno Haible  <bruno@clisp.org>
36649
36650         * doc/posix-functions/siginterrupt.texi: Move note.
36651
36652         * lib/signal.in.h (SA_RESTART): New macro.
36653         * lib/sigaction.c: Update comment.
36654
36655         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
36656
36657         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
36658         (gl_PREREQ_SIGPROCMASK): Invoke it.
36659         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
36660
36661         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
36662
36663         * lib/sigprocmask.c: Update a comment.
36664
36665 2008-06-21  Eric Blake  <ebb9@byu.net>
36666
36667         Use sigaction module rather than signal().
36668         * modules/c-stack (Depends-on): Add sigaction.
36669         * modules/fatal-signal (Depends-on): Likewise.
36670         * modules/nanosleep (Depends-on): Likewise.
36671         * modules/sigprocmask (Files): Add sig-handler.h.
36672         * modules/sigaction (Files): Likewise.
36673         * lib/sig-handler.h (get_handler): New file, suggested by Paul
36674         Eggert.
36675         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
36676         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
36677         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
36678         (init_fatal_signals): Likewise.
36679         * lib/nanosleep.c (rpl_nanosleep): Likewise.
36680         (siginterrupt): Delete fallback.
36681         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
36682         instead.
36683         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
36684         siginterrupt.
36685
36686         New module sigaction, for mingw.
36687         * modules/sigaction: New module...
36688         * modules/sigaction-tests: ...and its test.
36689         * m4/sigaction.m4: New file.
36690         * lib/sigaction.c: Likewise.
36691         * tests/test-sigaction.c: Likewise.
36692         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
36693         * modules/signal (Makefile.am): Likewise.
36694         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
36695         needed.
36696         * doc/posix-headers/signal.texi (signal.h): Mention provided
36697         types.
36698         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
36699         that sigaction is preferable.
36700         * doc/posix-functions/sigaction.texi (sigaction): Mention new
36701         module.
36702         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36703         sigaction.
36704
36705         Improve robustness of sigprocmask by overriding signal.
36706         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
36707         is in use.
36708         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
36709         (SIGKILL, SIGSTOP): Provide fallbacks.
36710         (rpl_signal): Implement.
36711         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
36712         signal can be called inside handlers.
36713
36714         Fix nanosleep module on mingw.
36715         * modules/nanosleep (Depends-on): Add sys_select.
36716         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
36717
36718         Fix licensing of sigprocmask.
36719         * modules/raise (License): Relicense as LGPL.
36720
36721 2008-06-21  Bruno Haible  <bruno@clisp.org>
36722
36723         * lib/propername.c (proper_name_utf8): Don't use the transliterated
36724         result if it contains question marks.
36725         Reported by Michael Geng <linux@michaelgeng.de>.
36726
36727 2008-06-19  Bruno Haible  <bruno@clisp.org>
36728
36729         Fix CVS-ism.
36730         * doc/gnulib.texi: Include updated-stamp.texi.
36731         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
36732         (updated-stamp.texi): New rule.
36733         (gnulib.info): Depend on it.
36734         * doc/.gitignore: Add updated-stamp.texi.
36735         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
36736
36737 2008-06-19  Bruno Haible  <bruno@clisp.org>
36738
36739         * doc/Makefile (gnulib.info): Update and simplify dependencies.
36740         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36741
36742 2008-06-19  Eric Blake  <ebb9@byu.net>
36743
36744         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
36745         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
36746         Reported by Stepan Kasal.
36747
36748 2008-06-18  Bruno Haible  <bruno@clisp.org>
36749
36750         * lib/fatal-signal.c (init_fatal_signals): Add comment.
36751         Reported by Eric Blake.
36752
36753 2008-06-18  Eric Blake  <ebb9@byu.net>
36754
36755         Work around cygwin 1.5.25 strsignal bug.
36756         * tests/test-strsignal.c: Allow for const char *.
36757         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
36758
36759 2008-06-18  Simon Josefsson  <simon@josefsson.org>
36760
36761         * users.txt: Update URL to article and add author/date
36762         information.
36763
36764 2008-06-17  Bruno Haible  <bruno@clisp.org>
36765
36766         New macro gl_DISABLE_THREADS.
36767         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
36768         if the user did not pass --enable-threads or --disable-threads option.
36769         (gl_DISABLE_THREADS): New macro.
36770         Reported by Eric Blake <ebb9@byu.net>.
36771
36772 2008-06-17  Bruno Haible  <bruno@clisp.org>
36773
36774         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
36775         when the macro ignores it.
36776         Based on a patch by Eric Blake <ebb9@byu.net>.
36777
36778 2008-06-17  Bruno Haible  <bruno@clisp.org>
36779
36780         * modules/tls (License): Change to LGPLv2+.
36781         Reported by Eric Blake.
36782
36783 2008-06-17  Eric Blake  <ebb9@byu.net>
36784
36785         Simplify c-stack prerequisites.
36786         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
36787         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
36788         no longer requires <ucontext.h> to exist.  Optimize setrlimit
36789         check.
36790         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
36791         <sys/resource.h>.
36792
36793         Move c-stack test into testsuite.
36794         * modules/c-stack-tests: New file.
36795         * lib/c-stack.c [DEBUG]: Move test program...
36796         * tests/test-c-stack.c: ...into this new file.  Skip rather than
36797         fail test if sigaltstack is lacking.
36798         * tests/test-c-stack.sh: New driver file.
36799
36800 2008-06-16  Eric Blake  <ebb9@byu.net>
36801
36802         Use raise module consistently.
36803         * modules/fatal-signal (Depends-on): Add raise.
36804         * modules/sigprocmask (Depends-on): Likewise.
36805         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
36806         * lib/sigprocmask.c (sigprocmask): Likewise.
36807         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
36808         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
36809
36810         Fix compliance bug in sigpending.
36811         * lib/sigprocmask.c (sigpending): Return pending array via
36812         parameter, not return value.
36813
36814 2008-06-14  Eric Blake  <ebb9@byu.net>
36815
36816         Improve obstack-printf test code.
36817         * tests/test-obstack-printf.c (test_function): Fix comment, and
36818         simplify usage of obstack_* in macros.  Add a test for coverage.
36819         Reported by Bruno Haible.
36820
36821 2008-06-14  Bruno Haible  <bruno@clisp.org>
36822
36823         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
36824         array size as a constant, not as a const variable.
36825         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
36826         AC_USE_SYSTEM_EXTENSIONS.
36827         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
36828         Test whether the obstack_printf function actually exists.
36829         * modules/obstack-printf (Depends-on): Add extensions.
36830         (Include): Remove obstack.h.
36831         * modules/obstack-printf-posix (Depends-on): Add extensions.
36832         (Include): Remove obstack.h.
36833
36834 2008-06-13  Eric Blake  <ebb9@byu.net>
36835
36836         Add obstack-printf and obstack-printf-posix modules.
36837         * modules/obstack-printf: New file.
36838         * modules/obstack-printf-posix: Likewise.
36839         * MODULES.html.sh (Misc): Mention them.
36840         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
36841         Likewise.
36842         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
36843         Likewise.
36844         * modules/stdio (Makefile.am): Accomodate new modules.
36845         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36846         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
36847         Declare.
36848         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
36849         functions.
36850         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
36851         (gl_REPLACE_OBSTACK_PRINTF): New macros
36852         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
36853         * tests/test-obstack-printf.c: New file.
36854         * modules/obstack-printf-tests: Likewise.
36855         * modules/obstack-printf-posix-tests: Likewise.
36856
36857 2008-06-11  Bruno Haible  <bruno@clisp.org>
36858
36859         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
36860         * lib/open.c: Include errno.h.
36861         (open): Fail when attempting to write to a file that has a trailing
36862         slash.
36863         * tests/test-open.c (main): Test against trailing slash bug.
36864         * doc/posix-functions/open.texi: Mention the trailing slash bug.
36865
36866 2008-06-10  Bruno Haible  <bruno@clisp.org>
36867
36868         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
36869         for $? to work inside the trap command, with various /bin/sh-s.
36870         * tests/test-vc-list-files-cvs.sh: Likewise.
36871
36872 2008-06-10  Bruno Haible  <bruno@clisp.org>
36873
36874         * lib/acl-internal.h: Don't include gettext.h here.
36875         * lib/set-mode-acl.c: Include gettext.h here.
36876         * lib/copy-acl.c: Likewise.
36877
36878 2008-06-10  Bruno Haible  <bruno@clisp.org>
36879
36880         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
36881         * lib/wait-process.c (wait_subprocess): Likewise.
36882         * lib/execute.h (execute): Add termsigp argument.
36883         * lib/execute.c (execute): Likewise.
36884         * lib/csharpcomp.c (compile_csharp_using_pnet,
36885         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
36886         * lib/csharpexec.c (execute_csharp_using_pnet,
36887         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
36888         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
36889         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
36890         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
36891         is_jikes_present): Update.
36892         * lib/javaexec.c (execute_java_class): Update.
36893         * lib/javaversion.c (execute_and_read_line): Update.
36894         * NEWS: Document the changes.
36895         Reported by Eric Blake.
36896
36897 2008-06-10  Eric Blake  <ebb9@byu.net>
36898
36899         Add missing include.
36900         * tests/test-strstr.c (includes): Add <signal.h>.
36901         * tests/test-strcasestr.c (includes): Likewise.
36902         * tests/test-memmem.c (includes): Likewise.
36903
36904 2008-06-10  Bruno Haible  <bruno@clisp.org>
36905
36906         * lib/wait-process.c (wait_subprocess): Add an assertion.
36907
36908 2008-06-10  Bruno Haible  <bruno@clisp.org>
36909
36910         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
36911
36912 2008-06-10  Bruno Haible  <bruno@clisp.org>
36913
36914         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
36915         using alarm().
36916         * tests/test-strcasestr.c (main): Likewise.
36917         * tests/test-strstr.c (main): Likewise.
36918
36919 2008-06-09  Bruno Haible  <bruno@clisp.org>
36920
36921         Work around the Solaris 10 ACE ACLs ABI change.
36922         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
36923         declare if ACL_NO_TRIVIAL is present.
36924         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
36925         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
36926         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
36927         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
36928         define if ACL_NO_TRIVIAL is present.
36929         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
36930         and use the current ABI.
36931         (file_has_acl): Use same #if condition as elsewhere.
36932         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
36933         in use, and use the current ABI.
36934         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
36935         Reported by Jim Meyering.
36936
36937 2008-06-09  Eric Blake  <ebb9@byu.net>
36938
36939         Work around environments that (stupidly) ignore SIGALRM.
36940         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
36941         before using alarm().
36942         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
36943         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
36944         Reported by Ian Beckwith <ianb@erislabs.net>.
36945
36946         Produce autobuild blurb earlier in log.
36947         * modules/autobuild (configure.ac-early): Move AB_INIT here.
36948
36949 2008-06-09  Jim Meyering  <meyering@redhat.com>
36950         and OndÅ™ej Vašík  <ovasik@redhat.com>
36951
36952         utimens.c: correct kernel bug work-around
36953         OndÅ™ej Vašík found that the invalid return value of 280 indicates
36954         failure, not success, and the kernel bug we're trying to work
36955         around affects not just the utimensat call, but also the fallback
36956         futimens call.
36957         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
36958         not success.
36959         [HAVE_FUTIMENS]: Use the same work-around, here.
36960
36961 2008-06-09  Jim Meyering  <meyering@redhat.com>
36962
36963         add more guards around definition of ACE_-related code
36964         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
36965         ALLOW and ACE_OWNER are also defined.
36966
36967 2008-06-08  Bruno Haible  <bruno@clisp.org>
36968
36969         * lib/acl-internal.h: Add me as co-author.
36970         * lib/file-has-acl.c: Likewise.
36971         * lib/set-mode-acl.c: Likewise.
36972         * lib/copy-acl.c: Likewise.
36973
36974 2008-06-08  Bruno Haible  <bruno@clisp.org>
36975
36976         Add support for AIX ACLs.
36977         * lib/acl-internal.h (acl_nontrivial): New declaration.
36978         * lib/file-has-acl.c (acl_nontrivial): New function.
36979         (file_has_acl): Add implementation using AIX 4 ACL API.
36980         * lib/set-mode-acl.c (qset_acl): Likewise.
36981         * lib/copy-acl.c (qcopy_acl): Likewise.
36982
36983 2008-06-08  Bruno Haible  <bruno@clisp.org>
36984
36985         Add support for HP-UX ACLs.
36986         * lib/acl-internal.h (acl_nontrivial): New declaration.
36987         * lib/file-has-acl.c (acl_nontrivial): New function.
36988         (file_has_acl): Add implementation using HP-UX 11 ACL API.
36989         * lib/set-mode-acl.c (qset_acl): Likewise.
36990         * lib/copy-acl.c (qcopy_acl): Likewise.
36991
36992 2008-06-08  Bruno Haible  <bruno@clisp.org>
36993
36994         Add support for Cygwin ACLs.
36995         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
36996         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
36997         the chmod_or_fchmod call.
36998         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
36999
37000 2008-06-08  Bruno Haible  <bruno@clisp.org>
37001
37002         Fix bug with setuid modes in Solaris 10+ code.
37003         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
37004         succeeded, when the mode contains some special bits.
37005
37006 2008-06-08  Bruno Haible  <bruno@clisp.org>
37007
37008         Add support for Solaris 7..10 ACLs.
37009         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
37010         declarations.
37011         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
37012         functions.
37013         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
37014         * lib/set-mode-acl.c (qset_acl): Likewise.
37015         * lib/copy-acl.c (qcopy_acl): Likewise.
37016
37017 2008-06-08  Bruno Haible  <bruno@clisp.org>
37018
37019         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
37020         declaration.
37021         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
37022         (acl_access_nontrivial): Remove MacOS X case.
37023         (file_has_acl): Use acl_extended_nontrivial.
37024         * lib/copy-acl.c (qcopy_acl): Likewise.
37025
37026 2008-06-08  Bruno Haible  <bruno@clisp.org>
37027
37028         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
37029
37030 2008-06-08  Jim Meyering  <meyering@redhat.com>
37031
37032         * modules/acl (Maintainer): Add Bruno Haible.
37033
37034 2008-06-07  Bruno Haible  <bruno@clisp.org>
37035
37036         Improve support for Tru64 ACLs.
37037         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
37038         ACL on OSF/1.
37039
37040 2008-06-07  Bruno Haible  <bruno@clisp.org>
37041
37042         Add support for MacOS X ACLs.
37043         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
37044         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
37045         * lib/set-mode-acl.c (qset_acl): Likewise.
37046         * lib/copy-acl.c (qcopy_acl): Likewise.
37047
37048 2008-06-07  Bruno Haible  <bruno@clisp.org>
37049
37050         Fix memory leak introduced on 2008-05-22.
37051         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
37052         use.
37053
37054 2008-06-07  Bruno Haible  <bruno@clisp.org>
37055
37056         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
37057         to construct an empty ACL.
37058
37059 2008-06-07  Bruno Haible  <bruno@clisp.org>
37060
37061         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
37062         precisely.
37063         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
37064
37065 2008-06-07  Bruno Haible  <bruno@clisp.org>
37066
37067         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
37068         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
37069
37070 2008-06-07  Bruno Haible  <bruno@clisp.org>
37071
37072         * doc/posix-functions/_setjmp.texi: Explain the use of this function
37073         regardless of POSIX.
37074         * doc/posix-functions/_longjmp.texi: Likewise.
37075         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
37076         SystemV platform in this case.
37077
37078 2008-06-06  Eric Blake  <ebb9@byu.net>
37079
37080         Document abort() bugs.
37081         * doc/posix-functions/abort.texi (abort): Mention anomalies.
37082
37083         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
37084         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
37085         sigsetjmp.
37086         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
37087         siglongjmp, but only as a macro.
37088         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
37089         is obsolete.
37090         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
37091
37092         Tweak documentation to cover cygwin argz bugs.
37093         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
37094         argz bug fix; no code change needed since no cygwin releases
37095         occurred between the last fix and the bug being tested.
37096         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
37097         module and recently fixed cygwin bugs.
37098         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
37099         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
37100         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
37101         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
37102         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
37103         Likewise.
37104         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
37105         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
37106         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
37107         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
37108         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
37109         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
37110         Likewise.
37111
37112         Avoid gcc warning on cygwin.
37113         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
37114         !ACL_NO_TRIVIAL]: Avoid unused variable.
37115
37116 2008-06-05  Eric Blake  <ebb9@byu.net>
37117
37118         Be tolerant of UNKNOWN version in gnulib-tool test dir.
37119         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
37120         git-version-gen fails to come up with a version.
37121         Reported by Simon Josefsson.
37122
37123 2008-06-05  Jim Meyering  <meyering@redhat.com>
37124             Paul Eggert  <eggert@cs.ucla.edu>
37125
37126         utimens.c: work around a probable Linux kernel bug
37127         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
37128         appears to be a kernel bug that causes utimensat to return 280
37129         instead of 0, indicating success.
37130
37131 2008-06-04  Bruno Haible  <bruno@clisp.org>
37132
37133         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
37134         2008-06-01 commit.
37135
37136 2008-06-04  Bruno Haible  <bruno@clisp.org>
37137
37138         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
37139         * lib/file-has-acl.c (acl_access_nontrivial): New function.
37140         (file_has_acl): Use it. Save errno afterwards.
37141         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
37142
37143 2008-06-03  Bruno Haible  <bruno@clisp.org>
37144
37145         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
37146         draft code. Simplify #ifs.
37147         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
37148         Put Solaris code after POSIX-draft code. Fix comments regarding
37149         Solaris 10, HP-UX. Mention Cygwin.
37150         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
37151
37152 2008-06-03  Eric Blake  <ebb9@byu.net>
37153
37154         Provide fallback for older kernels.
37155         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
37156         Provide runtime fallback if kernel lacks support.
37157         Reported by Mike Frysinger.
37158
37159 2008-06-02  Bruno Haible  <bruno@clisp.org>
37160
37161         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
37162         it exists.
37163
37164 2008-06-02  Bruno Haible  <bruno@clisp.org>
37165
37166         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
37167         * lib/copy-acl.c (qcopy_acl): Update comment.
37168
37169 2008-06-02  Bruno Haible  <bruno@clisp.org>
37170
37171         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
37172         like ACL APIs.
37173
37174 2008-06-02  Bruno Haible  <bruno@clisp.org>
37175
37176         * tests/test-file-has-acl.sh: Use different code for Cygwin.
37177         * tests/test-set-mode-acl.sh: Likewise.
37178         * tests/test-copy-acl.sh: Likewise.
37179         * tests/test-copy-file.sh: Likewise.
37180
37181 2008-06-02  Bruno Haible  <bruno@clisp.org>
37182
37183         * tests/test-file-has-acl.sh: Remove unused code.
37184
37185 2008-06-01  Bruno Haible  <bruno@clisp.org>
37186
37187         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
37188         (copy_acl): Just a wrapper around qcopy_acl that emits the error
37189         messages.
37190         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
37191
37192 2008-06-01  Bruno Haible  <bruno@clisp.org>
37193
37194         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
37195         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
37196         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
37197         APIs.
37198         * modules/acl-tests (configure.ac): Remove tests now contained in
37199         m4/acl.m4.
37200
37201 2008-06-02  Jim Meyering  <meyering@redhat.com>
37202
37203         announce-gen: use a better key-server host name
37204         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
37205         it may be more consistently reliable.  Suggested by Werner Koch
37206         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
37207
37208 2008-06-01  Bruno Haible  <bruno@clisp.org>
37209
37210         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
37211         Reported by Voroskoi Andras <voroskoi@gmail.com>.
37212
37213 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
37214
37215         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
37216
37217 2008-06-01  Bruno Haible  <bruno@clisp.org>
37218
37219         New ACL tests.
37220         * tests/test-file-has-acl.sh: New file.
37221         * tests/test-file-has-acl.c: New file.
37222         * tests/test-set-mode-acl.sh: New file.
37223         * tests/test-set-mode-acl.c: New file.
37224         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
37225         * tests/test-copy-acl.c: New file.
37226         * modules/acl-tests: New file, based on modules/copy-file-tests.
37227         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
37228         (Depends-on): Add acl-tests.
37229         (configure.ac): Remove checks.
37230         (Makefile.am): Don't create test-sameacls program here any more.
37231
37232 2008-06-01  Bruno Haible  <bruno@clisp.org>
37233
37234         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
37235         * tests/test-sameacls.c: Include progname.h.
37236         (main): Invoke set_program_name. Portability fixes for MacOS X,
37237         Solaris, HP-UX.
37238
37239 2008-06-01  Bruno Haible  <bruno@clisp.org>
37240
37241         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
37242         function.
37243         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
37244
37245 2008-06-01  Bruno Haible  <bruno@clisp.org>
37246
37247         * modules/rpmatch (Depends-on): Add strdup.
37248
37249 2008-06-01  Bruno Haible  <bruno@clisp.org>
37250
37251         * lib/pipe.c: Include unistd-safer.h.
37252         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
37253         * modules/pipe (Depends-on): Add unistd-safer.
37254
37255 2008-05-30  Simon Josefsson  <simon@josefsson.org>
37256
37257         * modules/autobuild (configure.ac): Call AB_INIT.
37258
37259 2008-05-30  Simon Josefsson  <simon@josefsson.org>
37260
37261         * tests/test-getaddrinfo.c: Don't print debug messages by default.
37262         Suggested by Bruno Haible <bruno@clisp.org>.
37263
37264 2008-05-30  Simon Josefsson  <simon@josefsson.org>
37265
37266         * tests/test-base64.c: Cast size_t to unsigned long when invoking
37267         printf.  Use %lu instead of %d.  Reported by Bruno Haible
37268         <bruno@clisp.org>.
37269
37270 2008-05-29  Eric Blake  <ebb9@byu.net>
37271
37272         Prefer new POSIX 200x interfaces over futimesat.
37273         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
37274         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
37275         when available.
37276         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
37277
37278 2008-05-28  Bruno Haible  <bruno@clisp.org>
37279
37280         * modules/stpcpy (License): Change to LGPLv2+.
37281         Requested by David Lutterkort <dlutter@redhat.com>.
37282
37283 2008-05-27  Bruno Haible  <bruno@clisp.org>
37284
37285         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
37286         current mingw.
37287         Reported by Jose E. Marchesi <jemarch@gnu.org>.
37288
37289 2008-05-27  Bruno Haible  <bruno@clisp.org>
37290
37291         * modules/iconv_open (Link): New section, from module 'iconv'.
37292         * modules/striconv (Link): Likewise.
37293         * modules/striconveh (Link): Likewise.
37294         * modules/xstriconv (Link): Likewise.
37295         * modules/unicodeio (Link): Likewise.
37296         * modules/propername (Link): Likewise.
37297         Reported by Jim Meyering.
37298
37299 2008-05-26  Jim Meyering  <meyering@redhat.com>
37300
37301         sha256: do not artificially restrict buffer length to be < 2^32
37302         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
37303         uint32_t to size_t.
37304         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
37305         to match.
37306
37307         avoid unaligned access errors, e.g., on sparc
37308         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
37309         direct access through a possibly-unaligned uint64* pointer.
37310         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
37311         direct access through a possibly-unaligned uint32* pointer.
37312         Prompted by this patch from Tom "spot" Callaway:
37313         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
37314
37315         sha512.c: fix typo in comment
37316         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
37317
37318 2008-05-25  Bruno Haible  <bruno@clisp.org>
37319
37320         * lib/set-mode-acl.c: Renamed from lib/acl.c.
37321         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
37322         (Makefile.am): Update lib_SOURCES.
37323
37324 2008-05-25  Bruno Haible  <bruno@clisp.org>
37325
37326         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
37327
37328 2008-05-25  Jim Meyering  <meyering@redhat.com>
37329
37330         useless-if-before-free: freed expr may have white-space differences
37331         * build-aux/useless-if-before-free: Recognize cases in which the
37332         freed expression differs from the tested one in embedded white
37333         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
37334         $1 was used, so we can't make any regexp shy.  Improved tests now
37335         detect this.
37336
37337         useless-if-before-free: accept white space in the expression.
37338         * build-aux/useless-if-before-free: For now, any white space
37339         in the expression must be identical in the free argument.
37340
37341         useless-if-before-free: efficiency tweak
37342         * build-aux/useless-if-before-free: Make the expression-matching
37343         regexp "shy".
37344         Make the *outer* regexp shy, not the expr-matching one.
37345
37346         update code-in-comment to accept cast of free arg
37347         * build-aux/useless-if-before-free: Update regexp.
37348
37349 2008-05-25  Bruno Haible  <bruno@clisp.org>
37350
37351         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
37352         * modules/copy-file-tests (Files, Makefile.am): Update.
37353         * tests/test-copy-file.c (func_test_copy): Update.
37354
37355 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
37356
37357         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
37358
37359 2008-05-23  Bruno Haible  <bruno@clisp.org>
37360
37361         Improve support for ACLs on OSF/1.
37362         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
37363         Remove fallback for unknown flavors of ACLs.
37364
37365 2008-05-22  Bruno Haible  <bruno@clisp.org>
37366
37367         Add support for ACLs on OSF/1.
37368         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
37369         replacements.
37370         (acl_free_text): New macro fallback.
37371         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
37372         acl_free.
37373         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
37374         acl_free_text function. Require AC_C_INLINE.
37375
37376 2008-05-22  Bruno Haible  <bruno@clisp.org>
37377
37378         Make copy_acl work on MacOS X 10.5.
37379         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
37380         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
37381         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
37382         If MODE_INSIDE_ACL, don't assume that every system has the same text
37383         representation for ACLs as FreeBSD.
37384         * lib/copy-acl.c (copy_acl): Add support for platforms with
37385         !MODE_INSIDE_ACL.
37386         * lib/file-has-acl.c (file_has_acl): Likewise.
37387         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
37388         FreeBSD, MacOS X, or IRIX, respectively.
37389
37390 2008-05-22  Bruno Haible  <bruno@clisp.org>
37391
37392         * lib/acl.h: Don't include <sys/acl.h>.
37393         (GETACLCNT): Move fallback to lib/acl-internal.h.
37394         * lib/acl-internal.h: Include <sys/acl.h> here.
37395         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
37396
37397 2008-05-22  Bruno Haible  <bruno@clisp.org>
37398
37399         Split off copy_acl function to separate file.
37400         * lib/copy-acl.c: New file, extracted from lib/acl.c.
37401         * lib/acl.c (copy_acl): Moved function to separate file.
37402         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
37403         * modules/acl (Files): Add lib/copy-acl.c.
37404         (Makefiles.am): Augment lib_SOURCES.
37405
37406 2008-05-22  Bruno Haible  <bruno@clisp.org>
37407
37408         * modules/copy-file-tests: New file.
37409         * tests/test-copy-file.sh: New file.
37410         * tests/test-copy-file.c: New file.
37411         * tests/test-copy-file-sameacls.c: New file.
37412
37413 2008-05-22  Eric Blake  <ebb9@byu.net>
37414
37415         Avoid gcc warning.
37416         * tests/test-memcmp.c (main): Pass NULL indirectly.
37417
37418 2008-05-21  Bruno Haible  <bruno@clisp.org>
37419
37420         Add reference doc about ACLs.
37421         * doc/acl-resources.txt: New file.
37422         * doc/acl-cygwin.txt: New file.
37423
37424 2008-05-21  Bruno Haible  <bruno@clisp.org>
37425
37426         Avoid one more warning from gcc.
37427         * lib/vasnprintf.c (IF_LINT): Update comments.
37428         (VASNPRINTF): Use it also for the 'prefix' array initializer.
37429
37430 2008-05-21  Jim Meyering  <meyering@redhat.com>
37431
37432         avoid a warning from gcc
37433         * lib/vasnprintf.c (IF_LINT): Define.
37434         (scale10_round_decimal_long_double):
37435         Use it to avoid a "may be used uninitialized" warning.
37436         (scale10_round_decimal_double): Likewise.
37437
37438 2008-05-21  Simon Josefsson  <simon@josefsson.org>
37439
37440         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
37441         declared.
37442
37443 2008-05-20  Bruno Haible  <bruno@clisp.org>
37444
37445         * tests/test-memcmp.c (main): Test also the sign of the result. Test
37446         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
37447
37448 2008-05-20  Simon Josefsson  <simon@josefsson.org>
37449
37450         * modules/memcmp-tests: New file.
37451         * tests/test-memcmp.c: New file.
37452
37453 2008-05-19  Bruno Haible  <bruno@clisp.org>
37454
37455         * modules/propername (Notice, configure.ac): Put quoted "..." into
37456         --keyword option.
37457         * lib/propername.h: Update comments accordingly.
37458         Reported by Eric Blake.
37459
37460 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
37461
37462         * modules/getpass-gnu (Depends-on): Add fseeko.
37463
37464 2008-05-19  Simon Josefsson  <simon@josefsson.org>
37465
37466         * modules/base64-tests: New file.
37467
37468 2008-05-19  Bo Borgerson <gigabo@gmail.com>
37469
37470         * lib/base64.c (base64_decode_ctx): If a decode context structure
37471         was passed in use it to ignore newlines.  If a context structure
37472         was _not_ passed in, continue to treat newlines as garbage (this
37473         is the historical behavior).  Formerly base64_decode.
37474         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
37475         takes a decode context structure.
37476         * lib/base64.h (base64_decode): Macro for four-argument calls.
37477         (base64_decode_alloc): Likewise.
37478         * lib/base64.c (base64_decode_ctx): If a decode context structure
37479         was passed in use it to ignore newlines.  If a context structure
37480         was _not_ passed in, continue to treat newlines as garbage (this
37481         is the historical behavior).  Formerly base64_decode.
37482         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
37483         takes a decode context structure.
37484         * lib/base64.h (base64_decode): Macro for four-argument calls.
37485         (base64_decode_alloc): Likewise.
37486
37487 2008-05-19  Jim Meyering  <meyering@redhat.com>
37488
37489         avoid a warning from gcc
37490         * lib/trim.c (IF_LINT): Define.
37491         (trim2): Use it to avoid a "may be used uninitialized" warning.
37492
37493         Fix doc typo.
37494         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
37495
37496 2008-05-19  Bruno Haible  <bruno@clisp.org>
37497
37498         * doc/glibc-functions/getpass.texi: Document limits of other
37499         implementations.
37500
37501 2008-05-19  Simon Josefsson  <simon@josefsson.org>
37502             Bruno Haible <bruno@clisp.org>
37503
37504         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
37505
37506 2008-05-18  Bruno Haible  <bruno@clisp.org>
37507
37508         * modules/propername: New file, from GNU gettext.
37509         * lib/propername.h: New file, from GNU gettext.
37510         * lib/propername.c: New file, from GNU gettext.
37511         * MODULES.html.sh (Internationalization functions): Add propername.
37512
37513 2008-05-16  Jim Meyering  <meyering@redhat.com>
37514             Bruno Haible  <bruno@clisp.org>
37515
37516         Avoid some warnings from "gcc -Wshadow".
37517         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
37518
37519 2008-05-15  Eric Blake  <ebb9@byu.net>
37520
37521         Extend previous patch to cygwin 1.7.0.
37522         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
37523         fast implementation in cygwin >= 1.7.0.
37524         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37525         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37526
37527 2008-05-15  Bruno Haible  <bruno@clisp.org>
37528
37529         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
37530         implementation in glibc >= 2.9.
37531         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37532         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37533
37534 2008-05-15  Bruno Haible  <bruno@clisp.org>
37535
37536         * MODULES.html.sh (Internationalization functions): Remove linebreak.
37537         (Unicode string functions): Add unilbrk/*.
37538         Reported by Karl Berry.
37539
37540 2008-05-15  Eric Blake  <ebb9@byu.net>
37541
37542         Fix violation of <stdbool.h> replacement in regex.
37543         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
37544         * lib/regexec.c (re_search_internal): Likewise.
37545         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
37546
37547 2008-05-15  Jim Meyering  <meyering@redhat.com>
37548
37549         avoid distracting test output when git or cvs is not found
37550         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
37551         * tests/test-vc-list-files-git.sh: Likewise.
37552
37553 2008-05-15  Eric Blake  <ebb9@byu.net>
37554
37555         Glibc finally accepted the memmem speedup code, bugzilla #5514.
37556         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
37557         glibc version.
37558         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
37559         * doc/posix-functions/strstr.texi (strstr): Likewise.
37560         * lib/str-two-way.h (MAX): Sychronize with glibc.
37561
37562 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
37563
37564         * lib/regcomp.c (optimize_utf8): Add a note on why we test
37565         opr.ctx_type.
37566         (calc_first): Initialize constraint field.
37567         (duplicate_node_closure): Use it instead of special casing ANCHORS.
37568         Fix grammar.
37569         (duplicate_node): Merge constraint field for all node types.
37570         (calc_eclosure_iter): Look at constraint field for all node types.
37571         * lib/regex_internal.c (create_cd_newstate): Don't look at
37572         opr.ctx_type.
37573
37574 2008-05-14  Bruno Haible  <bruno@clisp.org>
37575
37576         Help GCC to do better code generation.
37577         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
37578         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
37579         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
37580         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
37581         Declare with attribute 'malloc' if supported.
37582
37583 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
37584
37585         use "echo STR|wc -c" rather than unportable "expr length STR"
37586         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
37587         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
37588
37589 2008-05-14  Jim Meyering  <meyering@redhat.com>
37590
37591         use dd ibs=$n count=1 ... rather than less-portable head -c$n
37592         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
37593         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
37594         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
37595         via Collin Lasse.
37596
37597 2008-05-14  Eric Blake  <ebb9@byu.net>
37598
37599         Avoid quadratic growth in gl_LIBSOURCES.
37600         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
37601         Suggested by Bruno Haible.
37602
37603         Test xmemdup0.
37604         * modules/xmemdup0-tests: New file.
37605         * tests/test-xmemdup0.c: Likewise.
37606
37607 2008-05-13  Eric Blake  <ebb9@byu.net>
37608
37609         Split xmemdup0 into its own module.
37610         * modules/xmemdup0: New file.
37611         * lib/xmemdup0.h: Likewise.
37612         * lib/xmemdup0.c: Likewise.
37613         * MODULES.html.sh (Memory management functions): Add xmemdup0.
37614         * lib/xalloc.h (xmemdup0): Remove.
37615         * lib/xmalloc.c (xmemdup0): Likewise.
37616
37617 2008-05-13  Eric Blake  <ebb9@byu.net>
37618             Bruno Haible  <bruno@clisp.org>
37619
37620         Reduce number of forks required during autoconf.
37621         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
37622         and gl_LIBSOURCES_DIR.
37623         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
37624         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
37625         m4_syscmd per file.
37626         <m4_foreach_w>: Move...
37627         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
37628
37629 2008-05-13  Eric Blake  <ebb9@byu.net>
37630
37631         * gnulib-tool: Fix various comment typos.
37632
37633 2008-05-12  Bruno Haible  <bruno@clisp.org>
37634
37635         Tailor the linebreaking algorithm.
37636         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
37637
37638 2008-05-12  Bruno Haible  <bruno@clisp.org>
37639
37640         Update to Unicode 5.0.0.
37641         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
37642         LBP_JV, LBP_JT. Redistribute values.
37643         (unilbrk_table): Change size.
37644         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
37645         Unicode TR#14 rev. 22.
37646         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
37647         LBP_JV, LBP_JT. Redistribute values.
37648         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
37649         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
37650         Update.
37651         * lib/unilbrk/lbrkprop1.h: Regenerated.
37652         * lib/unilbrk/lbrkprop2.h: Regenerated.
37653         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
37654         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
37655         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
37656         Likewise.
37657         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
37658         Likewise.
37659         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
37660         result.
37661         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
37662         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
37663         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
37664         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
37665         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
37666         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
37667
37668 2008-05-11  Bruno Haible  <bruno@clisp.org>
37669
37670         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
37671
37672 2008-05-11  Bruno Haible  <bruno@clisp.org>
37673
37674         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
37675         * modules/unilbrk/gen-lbrk: New file.
37676
37677 2008-05-11  Bruno Haible  <bruno@clisp.org>
37678
37679         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
37680         * m4/sha512.m4 (gl_SHA512): Likewise.
37681
37682 2008-05-11  Jim Meyering  <meyering@redhat.com>
37683
37684         New modules: crypto/sha256, crypto/sha512 (from coreutils)
37685         * modules/crypto/sha256: New file.
37686         * modules/crypto/sha512: Likewise.
37687         * lib/sha256.c: Likewise.
37688         * lib/sha256.h: Likewise.
37689         * lib/sha512.c: Likewise.
37690         * lib/sha512.h: Likewise.
37691         * lib/u64.h: Likewise.
37692         * m4/sha256.m4: Likewise.
37693         * m4/sha512.m4: Likewise.
37694         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
37695
37696 2008-05-10  Bruno Haible  <bruno@clisp.org>
37697
37698         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
37699         (Input/Output <stdio.h>): Add xprintf.
37700         (Signal handling <signal.h>): Add strsignal.
37701         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
37702         (Core language properties): Add func.
37703         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
37704         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
37705         strings.
37706         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
37707         (Input/output): New section.
37708         (File system functions): Add openat-die, stat-macros.
37709         (Networking functions): Add sockets.
37710         (Unicode string functions): Add unictype/*.
37711         (Support for building libraries and executables): Add gperf.
37712         (Support for building documentation): Add agpl-3.0.
37713         (Misc): Add nocrash.
37714
37715 2008-05-10  Bruno Haible  <bruno@clisp.org>
37716
37717         * modules/unictype/gen-ctype: New file.
37718
37719 2008-05-10  Jim Meyering  <meyering@redhat.com>
37720
37721         Make chdir-safer.c more efficient on a system with no symlinks.
37722         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
37723         also if ELOOP is zero.  Suggested by Bruno Haible.
37724
37725         Make chdir-safer.c slightly safer.
37726         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
37727         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
37728
37729         Avoid compile failure on systems without ELOOP (like mingw).
37730         * lib/chdir-safer.c (ELOOP): Define if not already defined.
37731         Reported by Bruno Haible.
37732
37733 2008-05-10  Bruno Haible  <bruno@clisp.org>
37734
37735         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
37736         (is_utf8_encoding): Use a case-insensitive comparison.
37737         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
37738         streq.
37739
37740 2008-05-10  Bruno Haible  <bruno@clisp.org>
37741
37742         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
37743         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
37744         * lib/unilbrk/ulc-common.h (iconv_string_length,
37745         iconv_string_keeping_offsets): Remove declarations.
37746         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
37747         Don't include <iconv.h>, streq.h, xsize.h.
37748         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
37749         conversion.
37750         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
37751         <iconv.h>, streq.h, xsize.h.
37752         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
37753         conversion.
37754         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
37755         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
37756         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
37757         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
37758
37759 2008-05-10  Bruno Haible  <bruno@clisp.org>
37760
37761         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
37762         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
37763
37764         * modules/unilbrk/u32-width-linebreaks-tests: New file.
37765         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
37766
37767         * modules/unilbrk/u16-width-linebreaks-tests: New file.
37768         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
37769
37770         * modules/unilbrk/u8-width-linebreaks-tests: New file.
37771         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
37772
37773         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
37774         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
37775
37776         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
37777         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
37778
37779         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
37780         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
37781
37782         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
37783         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
37784
37785 2008-05-10  Bruno Haible  <bruno@clisp.org>
37786
37787         Split up 'linebreak' module.
37788         * lib/unilbrk.h: New file, based on lib/linebreak.h.
37789         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
37790         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
37791         modifications.
37792         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
37793         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
37794         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
37795         lib/linebreak.c.
37796         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
37797         lib/linebreak.c.
37798         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
37799         lib/linebreak.c.
37800         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
37801         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
37802         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
37803         lib/linebreak.c.
37804         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
37805         lib/linebreak.c.
37806         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
37807         lib/linebreak.c.
37808         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
37809         lib/linebreak.c.
37810         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
37811         lib/linebreak.c.
37812         * modules/unilbrk/base: New file.
37813         * modules/unilbrk/tables: New file.
37814         * modules/unilbrk/u8-possible-linebreaks: New file.
37815         * modules/unilbrk/u16-possible-linebreaks: New file.
37816         * modules/unilbrk/u32-possible-linebreaks: New file.
37817         * modules/unilbrk/ulc-common: New file.
37818         * modules/unilbrk/ulc-possible-linebreaks: New file.
37819         * modules/unilbrk/u8-width-linebreaks: New file.
37820         * modules/unilbrk/u16-width-linebreaks: New file.
37821         * modules/unilbrk/u32-width-linebreaks: New file.
37822         * modules/unilbrk/ulc-width-linebreaks: New file.
37823         * lib/linebreak.h: Remove file.
37824         * lib/linebreak.c: Remove file.
37825         * m4/linebreak.m4: Remove file.
37826         * modules/linebreak: Remove file.
37827         * NEWS: Mention the changes.
37828
37829 2008-05-09  Eric Blake  <ebb9@byu.net>
37830
37831         Add xmemdup0.
37832         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
37833         implementation.
37834         * lib/xmalloc.c (xmemdup0): New C implementation.
37835
37836 2008-05-08  Bruno Haible  <bruno@clisp.org>
37837
37838         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
37839
37840 2008-05-07  Eric Blake  <ebb9@byu.net>
37841
37842         Support cross-compilation of <wctype.h>.
37843         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
37844         AC_CACHE_CHECK.
37845
37846 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
37847
37848         * build-aux/vc-list-files: Add support for bzr.
37849
37850 2008-05-03  Jim Meyering  <meyering@redhat.com>
37851
37852         avoid failed assertion with tight malloc
37853         * tests/test-getndelim2.c: Correct an off-by-one assertion.
37854
37855 2008-05-03  Simon Josefsson  <simon@josefsson.org>
37856
37857         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
37858         are needed from arpa/inet.h.
37859         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
37860         Reported by Bruno Haible.
37861
37862 2008-05-02  Jim Meyering  <meyering@redhat.com>
37863
37864         avoid compilation error on FreeBSD 6
37865         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
37866
37867 2008-05-01  Jim Meyering  <meyering@redhat.com>
37868
37869         useless-if-before-free: correct --help's exit status description
37870         * build-aux/useless-if-before-free (usage): Like grep, exit 0
37871         for one or more matches, etc.  Reported by Bruno Haible.
37872
37873         vc-list-files: make the stand-alone gnulib test work
37874         * modules/vc-list-files-tests (configure.ac):
37875         Define and AC_SUBST abs_aux_dir.
37876         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
37877         $(abs_top_srcdir) to each script and having each of them
37878         duplicate the work of setting PATH, set PATH here, using
37879         the new variable, abs_aux_dir instead.
37880         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
37881         * tests/test-vc-list-files-git.sh: Likewise.
37882         Reported by Bruno Haible.
37883
37884 2008-05-01  Bruno Haible  <bruno@clisp.org>
37885
37886         * lib/getndelim2.c (getndelim2): Fix newsize computation during
37887         reallocation. Rename 'done' to 'found_delimiter'.
37888
37889 2008-05-01  Jim Meyering  <meyering@redhat.com>
37890
37891         vc-list-files: accommodate /bin/sh like the one from Solaris 10
37892         * build-aux/vc-list-files: Use `...`, not $(...).
37893
37894 2008-04-30  Jim Meyering  <meyering@redhat.com>
37895
37896         add tests for vc-list-files
37897         * modules/vc-list-files-tests: New module.
37898         * tests/test-vc-list-files-cvs.sh: New file.
37899         * tests/test-vc-list-files-git.sh: New file.
37900
37901         avoid a warning from gcc
37902         * lib/getndelim2.c (IF_LINT): Define.
37903         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
37904
37905         vc-list-files: work properly with build-aux/cvsu, too
37906         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
37907         to all cvs-based clauses.
37908
37909         vc-list-files: work properly in the CVS+awk case, too
37910         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
37911
37912         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
37913         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
37914         take more than one file argument, so .  Add quotes, just in case $dir
37915         ever contains a shell meta-character.  Prompted by Soren Hansen in
37916         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
37917
37918 2008-04-29  Eric Blake  <ebb9@byu.net>
37919
37920         Optimize getndelim2 to use block operations when possible.
37921         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
37922         freadseek, and memchr2.
37923         * lib/getndelim2.c (getndelim2): Use them for block reads.
37924
37925 2008-04-29  Bruno Haible  <bruno@clisp.org>
37926
37927         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
37928         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37929         * modules/inet_ntop (Depends-on): Add extensions.
37930         * modules/inet_pton (Depends-on): Likewise.
37931         Reported by Simon Josefsson.
37932
37933 2008-04-29  Jim Meyering  <meyering@redhat.com>
37934
37935         When the is more than one match in a block, match all of them.
37936         * build-aux/useless-if-before-free: Iterate through each block
37937         until there are no more matches.
37938
37939         Fix broken useless-if-before-free script.
37940         * build-aux/useless-if-before-free: Fix typo: missing "?" after
37941         the expression to match cast of argument to free-like function.
37942
37943 2008-04-29  Eric Blake  <ebb9@byu.net>
37944
37945         Use new header.
37946         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
37947
37948 2008-04-29  Jim Meyering  <meyering@redhat.com>
37949
37950         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
37951         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
37952         by gnulib to exist and to declare e.g., inet_ntop.
37953         Don't include "inet_ntop.h", now removed.
37954
37955         * m4/arpa_inet_h.m4: Remove trailing blanks.
37956
37957 2008-04-29  Eric Blake  <ebb9@byu.net>
37958
37959         Silence valgrind on safe reads beyond potential array bounds.
37960         * lib/rawmemchr.valgrind: New file.
37961         * lib/strchrnul.valgrind: Likewise.
37962         * modules/rawmemchr (Files): Distribute new file.
37963         * modules/strchrnul (Files): Likewise.
37964         Suggested by Bruno Haible.
37965
37966 2008-04-29  Bruno Haible  <bruno@clisp.org>
37967
37968         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
37969         (inet_ntop, inet_pton): Change portability warning's wording.
37970         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
37971         Invoke gl_CHECK_NEXT_HEADERS.
37972         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
37973         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
37974         set ARPA_INET_H.
37975         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37976         * modules/arpa_inet (Description): No longer only for systems that
37977         lack it.
37978         (Depends-on): Add include_next.
37979         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
37980         HAVE_ARPA_INET_H.
37981
37982 2008-04-29  Jim Meyering  <meyering@redhat.com>
37983
37984         * modules/mkdir (License): Re-license as LGPLv2+.
37985
37986 2008-04-29  Bruno Haible  <bruno@clisp.org>
37987
37988         * modules/rawmemchr (Maintainer): Set to Eric.
37989         * modules/strchrnul (Maintainer): Likewise.
37990
37991 2008-04-29  Simon Josefsson  <simon@josefsson.org>
37992
37993         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
37994         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
37995
37996         * modules/arpa_inet (arpa/inet.h): Use them.
37997
37998 2008-04-28  Eric Blake  <ebb9@byu.net>
37999
38000         Test getndelim2.
38001         * modules/getndelim2-tests: New file.
38002         * tests/test-getndelim2.c: Likewise.
38003         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
38004         stream.
38005         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
38006
38007         * MODULES.html.sh: Document new module.
38008
38009 2008-04-20  Bruno Haible  <bruno@clisp.org>
38010
38011         * lib/c-stack.c (die): Use raise.
38012         * modules/c-stack (Depends-on): Add raise.
38013
38014 2008-04-28  Bruno Haible  <bruno@clisp.org>
38015
38016         Expect rpmatch to be declared.
38017         * lib/yesno.c (rpmatch): Remove declaration.
38018
38019         Declare rpmatch.
38020         * lib/stdlib.in.h (rpmatch): New declaration.
38021         * lib/rpmatch.c: Include <stdlib.h> first.
38022         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
38023         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
38024         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
38025         HAVE_RPMATCH.
38026         * modules/rpmatch (Depends-on): Add stdlib, extensions.
38027         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38028         (Include): Set to <stdlib.h>.
38029         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
38030         HAVE_RPMATCH.
38031         * NEWS: Document the change.
38032
38033 2008-04-28  Bruno Haible  <bruno@clisp.org>
38034
38035         Change rpmatch to use nl_langinfo when appropriate.
38036         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
38037         (N_): New macro.
38038         (localized_pattern): New function/macro.
38039         (try): Remove match, nomatch arguments. Copy the pattern into safe
38040         memory before caching it.
38041         (rpmatch): Use localized_pattern. Add translator comments.
38042         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
38043         Suggested by Eric Blake.
38044         * modules/rpmatch (Depends-on): Add stdbool.
38045
38046 2008-04-28  Eric Blake  <ebb9@byu.net>
38047
38048         Add rawmemchr module, matching glibc.
38049         * modules/string (Makefile.am): New indicator.
38050         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
38051         * lib/string.in.h (rawmemchr): Declare when appropriate.
38052         * modules/rawmemchr: New file.
38053         * m4/rawmemchr.m4: Likewise.
38054         * lib/rawmemchr.c: Likewise.
38055         * modules/rawmemchr-tests: Likewise.
38056         * tests/test-rawmemchr.c: Likewise.
38057         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
38058         module.
38059         * modules/strchrnul (Depends-on): Add rawmemchr.
38060         * lib/strchrnul.c (strchrnul): Optimize a corner case.
38061
38062         Whitespace cleanup.
38063         * tests/test-strchrnul.c: Reindent.
38064         * lib/strchrnul.c: Likewise.
38065
38066         Optimize and test strchrnul.
38067         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
38068         * modules/strchrnul-tests: New file.
38069         * tests/test-strchrnul.c: Likewise.
38070
38071         Remove intprops dependency.
38072         * modules/memchr (Depends-on): Remove intprops.
38073         * modules/memrchr (Depends-on): Likewise.
38074         * modules/memchr2 (Depends-on): Likewise.
38075         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
38076         * lib/memrchr.c (__memrchr): Likewise.
38077         * lib/memrchr2.c (memchr2): Likewise.
38078         Reported by Simon Josefsson.
38079
38080 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38081
38082         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
38083         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38084
38085 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38086
38087         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
38088
38089         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
38090
38091         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
38092
38093         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
38094         declarations.
38095         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
38096
38097         * m4/inet_pton.m4: Don't check for header files.
38098
38099         * m4/inet_ntop.m4: Don't check for header files.
38100
38101 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38102
38103         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
38104         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
38105         trigger for cygwin).
38106         Reported by Bruno Haible  <bruno@clisp.org>.
38107
38108 2008-04-28  Bruno Haible  <bruno@clisp.org>
38109
38110         * doc/posix-functions/strdup.texi: Mention mingw problem.
38111
38112 2008-04-27  Bruno Haible  <bruno@clisp.org>
38113
38114         * modules/stat-time-tests (Depends-on): Add sleep.
38115         * tests/test-stat-time.c (force_unlink): New function.
38116         (cleanup): Use it.
38117         (test_mtime): Remove the ctime related tests.
38118         (test_ctime): New function, containing the ctime related tests.
38119         (main): Call test_ctime, except on native Windows platforms.
38120
38121 2008-04-27  Bruno Haible  <bruno@clisp.org>
38122
38123         * lib/rpmatch.c (rpmatch): Add some comments.
38124         Reported by James Youngman <jay@gnu.org>.
38125
38126 2008-04-27  Bruno Haible  <bruno@clisp.org>
38127
38128         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
38129         quiet NaNs.
38130
38131 2008-04-27  Bruno Haible  <bruno@clisp.org>
38132
38133         Make test-yesno.sh work on mingw.
38134         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
38135         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
38136         (main): Set stdin to binary mode.
38137         * modules/yesno-tests (Depends-on): Add binary-io.
38138
38139 2008-04-27  Bruno Haible  <bruno@clisp.org>
38140
38141         Fix 'isfinite' on x86, x86_64, ia64 platforms.
38142         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
38143         argument that lie outside the IEEE 854 domain.
38144         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
38145         (gl_ISFINITE): Use it.
38146         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
38147
38148 2008-04-27  Bruno Haible  <bruno@clisp.org>
38149
38150         Allow local renaming in config.h.
38151         * lib/memrchr.c (memrchr): Don't undefine outside libc.
38152
38153 2008-04-27  Bruno Haible  <bruno@clisp.org>
38154
38155         * lib/memchr.c (__memchr): Change type of 'i'.
38156         * lib/memchr2.c (memchr2): Likewise.
38157
38158 2008-04-26  Eric Blake  <ebb9@byu.net>
38159         and Bruno Haible  <bruno@clisp.org>
38160
38161         Optimize and test memrchr.
38162         * modules/memrchr (Depends-on): Add intprops.
38163         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
38164         * modules/memrchr-tests: New file.
38165         * tests/test-memrchr.c: New file.
38166
38167 2008-04-26  Bruno Haible  <bruno@clisp.org>
38168
38169         Add tentative support for DragonFly BSD.
38170         * lib/stdio-impl.h: Add macros for DragonFly BSD.
38171         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
38172         fp.
38173         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
38174         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
38175         * lib/fpurge.c (fpurge): Likewise.
38176         * lib/freadable.c (freaadable): Likewise.
38177         * lib/freadahead.c (freadahead): Likewise.
38178         * lib/freading.c (freading): Likewise.
38179         * lib/freadptr.c (freadptr): Likewise.
38180         * lib/freadseek.c (freadptrinc): Likewise.
38181         * lib/fseeko.c (fseeko): Likewise.
38182         * lib/fseterr.c (fseterr): Likewise.
38183         * lib/fwritable.c (fwritable): Likewise.
38184         * lib/fwriting.c (fwriting): Likewise.
38185
38186 2008-04-26  Bruno Haible  <bruno@clisp.org>
38187
38188         * lib/stdio-impl.h: New file.
38189         * lib/fbufmode.c: Include stdio-impl.h.
38190         (fbufmode): Use fp_, remove redundant #defines.
38191         * lib/fflush.c: Include stdio-impl.h.
38192         (clear_ungetc_buffer): Remove redundant #defines.
38193         * lib/fpurge.c: Include stdio-impl.h.
38194         (fpurge): Remove redundant #defines.
38195         * lib/freadable.c: Include stdio-impl.h.
38196         (freadable): Remove redundant #defines.
38197         * lib/freadahead.c: Include stdio-impl.h.
38198         (freadahead): Remove redundant #defines.
38199         * lib/freading.c: Include stdio-impl.h.
38200         (freading): Remove redundant #defines.
38201         * lib/freadptr.c: Include stdio-impl.h.
38202         (freadptr): Remove redundant #defines.
38203         * lib/freadseek.c: Include stdio-impl.h.
38204         (freadptrinc): Remove redundant #defines.
38205         * lib/fseeko.c: Include stdio-impl.h.
38206         (rpl_fseeko): Remove redundant #defines.
38207         * lib/fseterr.c: Include stdio-impl.h.
38208         (fseterr): Remove redundant #defines.
38209         * lib/fwritable.c: Include stdio-impl.h.
38210         (fwritable: Remove redundant #defines.
38211         * lib/fwriting.c: Include stdio-impl.h.
38212         (fwriting): Remove redundant #defines.
38213         * modules/fbufmode (Files): Add lib/stdio-impl.h.
38214         * modules/fflush (Files): Likewise.
38215         * modules/fpurge (Files): Likewise.
38216         * modules/freadable (Files): Likewise.
38217         * modules/freadahead (Files): Likewise.
38218         * modules/freading (Files): Likewise.
38219         * modules/freadptr (Files): Likewise.
38220         * modules/freadseek (Files): Likewise.
38221         * modules/fseeko (Files): Likewise.
38222         * modules/fseterr (Files): Likewise.
38223         * modules/fwritable (Files): Likewise.
38224         * modules/fwriting (Files): Likewise.
38225
38226 2008-04-26  Bruno Haible  <bruno@clisp.org>
38227
38228         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
38229         restore_seek_optimization, update_fpos_cache): New functions, extracted
38230         from rpl_fflush.
38231         (rpl_fflush): Use them.
38232         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
38233         (gl_REPLACE_FFLUSH): Use it.
38234
38235 2008-04-26  Bruno Haible  <bruno@clisp.org>
38236
38237         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
38238         on Solaris.
38239         * tests/test-xstrtoimax.sh: Likewise.
38240         * tests/test-xstrtoumax.sh: Likewise.
38241         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38242
38243 2008-04-26  Bruno Haible  <bruno@clisp.org>
38244
38245         * modules/memchr-tests: New file.
38246         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
38247
38248 2008-04-26  Eric Blake  <ebb9@byu.net>
38249             Bruno Haible  <bruno@clisp.org>
38250
38251         * lib/memchr.c: Include intprops.h.
38252         (__memchr): Optimize parallel detection of matching bytes. Rename local
38253         variables. Add explanatory comments.
38254
38255 2008-04-26  Bruno Haible  <bruno@clisp.org>
38256
38257         Fix module 'memchr', broken since 2000-10-28.
38258         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
38259
38260 2008-04-26  Bruno Haible  <bruno@clisp.org>
38261
38262         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
38263         comments.
38264
38265 2008-04-25  Eric Blake  <ebb9@byu.net>
38266
38267         Use native fstatat on cygwin 1.7.0.
38268         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
38269         first.
38270
38271 2008-04-23  Eric Blake  <ebb9@byu.net>
38272
38273         Improve memchr2 performance.
38274         * lib/memchr2.c (memchr2): Further optimize parallel detection of
38275         NUL bytes.
38276         * modules/memchr2 (Depends-on): Use intprops.h.
38277
38278 2008-04-23  Simon Josefsson  <simon@josefsson.org>
38279
38280         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
38281         an inline function instead of a CPP macro.  Patch by Ben Pfaff
38282         <blp@cs.stanford.edu>.
38283
38284 2008-04-23  Simon Josefsson  <simon@josefsson.org>
38285
38286         * lib/arpa_inet.in.h: New file.
38287
38288         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
38289         (Makefile.am): Sed in substitute header file.
38290
38291         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
38292         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
38293
38294         * modules/inet_ntop (configure.ac): Use
38295         gl_ARPA_INET_MODULE_INDICATOR.
38296
38297         * modules/inet_pton (configure.ac): Use
38298         gl_ARPA_INET_MODULE_INDICATOR.
38299
38300 2008-04-22  Jim Meyering  <meyering@redhat.com>
38301
38302         * modules/verify (License): Re-license as LGPLv2+.
38303
38304 2008-04-22  Simon Josefsson  <simon@josefsson.org>
38305
38306         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
38307         parameter to void* as per POSIX standard (MinGW uses char*).
38308
38309 2008-04-21  Bruno Haible  <bruno@clisp.org>
38310
38311         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
38312         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
38313         Define to replacements if REPLACE_ISWCNTRL is 1.
38314         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
38315         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
38316         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
38317         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
38318         what it fixes.
38319         * doc/posix-functions/iswalpha.texi: Likewise.
38320         * doc/posix-functions/iswblank.texi: Likewise.
38321         * doc/posix-functions/iswcntrl.texi: Likewise.
38322         * doc/posix-functions/iswdigit.texi: Likewise.
38323         * doc/posix-functions/iswgraph.texi: Likewise.
38324         * doc/posix-functions/iswlower.texi: Likewise.
38325         * doc/posix-functions/iswprint.texi: Likewise.
38326         * doc/posix-functions/iswpunct.texi: Likewise.
38327         * doc/posix-functions/iswspace.texi: Likewise.
38328         * doc/posix-functions/iswupper.texi: Likewise.
38329         * doc/posix-functions/iswxdigit.texi: Likewise.
38330         Reported by Alain Guibert.
38331
38332 2008-04-21  Bruno Haible  <bruno@clisp.org>
38333
38334         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
38335         Patch by Alain Guibert.
38336
38337 2008-04-21  Bruno Haible  <bruno@clisp.org>
38338
38339         Fix test failures on mingw.
38340         * tests/test-xstrtol.c (print_no_progname): New function.
38341         (main): Install it in error_print_progname hook.
38342         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
38343         * tests/test-xstrtoimax.sh: Likewise.
38344         * tests/test-xstrtoumax.sh: Likewise.
38345
38346 2008-04-21  Bruno Haible  <bruno@clisp.org>
38347
38348         Fix test failure on mingw.
38349         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
38350
38351 2008-04-21  Bruno Haible  <bruno@clisp.org>
38352
38353         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
38354         Actually assign a value.
38355
38356 2008-04-20  Bruno Haible  <bruno@clisp.org>
38357
38358         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
38359         take 2.
38360         * lib/canonicalize.c (canonicalize_file_name): Elide if the
38361         'canonicalize-lgpl' module is also used.
38362         * lib/canonicalize-lgpl.c: Undo last change.
38363         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
38364
38365 2008-04-20  Bruno Haible  <bruno@clisp.org>
38366
38367         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
38368         config.h. Provide _mkdir based fallback for mingw.
38369         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
38370         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
38371         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
38372         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
38373         rather than defining mkdir in config.h.
38374         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
38375         (gl_SYS_STAT_H_DEFAULTS): New macro.
38376         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
38377         HAVE_IO_H any more.
38378         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
38379         HAVE_DECL_MKDIR and HAVE_IO_H.
38380
38381 2008-04-20  Bruno Haible  <bruno@clisp.org>
38382
38383         * lib/isapipe.c: Port to native Windows platforms.
38384
38385 2008-04-20  Bruno Haible  <bruno@clisp.org>
38386
38387         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
38388
38389 2008-04-21  Eric Blake  <ebb9@byu.net>
38390
38391         Work around preprocessors that don't handle UINTMAX_MAX.
38392         * lib/memchr2.c (memchr2): Avoid embedded #if.
38393         Reported by Alain Guibert, fix suggested by Bruno Haible.
38394
38395 2008-04-21  Simon Josefsson  <simon@josefsson.org>
38396
38397         * doc/posix-functions/strftime.texi (strftime): Explain better
38398         Windows incompatibility.  Suggested by Micah Cowan
38399         <micah@cowan.name>.
38400
38401 2008-04-20  Bruno Haible  <bruno@clisp.org>
38402
38403         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
38404         unistr/u8-mblen.
38405
38406 2008-04-20  Bruno Haible  <bruno@clisp.org>
38407
38408         Fix test failure on platforms with non-GNU iconv.
38409         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
38410         (U_TO_U8): Use it, rather than u16_to_u8.
38411         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
38412         units at the end of the input string.
38413         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
38414
38415 2008-04-20  Bruno Haible  <bruno@clisp.org>
38416
38417         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
38418         when the resulting length is 0.
38419         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
38420
38421 2008-04-20  Bruno Haible  <bruno@clisp.org>
38422
38423         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
38424         works.
38425         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
38426
38427 2008-04-20  Bruno Haible  <bruno@clisp.org>
38428
38429         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
38430         * modules/tsearch-tests (configure.ac): Test for initstate function.
38431
38432 2008-04-20  Bruno Haible  <bruno@clisp.org>
38433
38434         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
38435         for nlink_t if missing.
38436         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
38437
38438 2008-04-19  Bruno Haible  <bruno@clisp.org>
38439
38440         Work around snprintf bug on Linux libc5.
38441         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
38442         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38443         gl_SNPRINTF_SIZE1.
38444         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38445         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
38446         that test failed.
38447         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
38448         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
38449         * modules/snprintf (Files): Add m4/printf.m4.
38450         * modules/vsnprintf (Files): Likewise.
38451         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
38452         * doc/posix-functions/vsnprintf.texi: Likewise.
38453
38454 2008-04-19  Bruno Haible  <bruno@clisp.org>
38455
38456         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
38457         from 0.0058 to less than 10^-7.
38458
38459 2008-04-19  Bruno Haible  <bruno@clisp.org>
38460
38461         Fix rounding when a precision is given.
38462         * lib/vasnprintf.c (is_borderline): New function.
38463         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
38464         9...9x.
38465         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
38466         %e, %g.
38467         * tests/test-vasprintf-posix.c (test_function): Likewise.
38468         * tests/test-snprintf-posix.h (test_function): Likewise.
38469         * tests/test-sprintf-posix.h (test_function): Likewise.
38470         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
38471         * tests/test-printf-posix.h (test_function): Likewise.
38472         * tests/test-printf-posix.output: Update.
38473         Reported by John Darrington <john@darrington.wattle.id.au> via
38474         Ben Pfaff <blp@cs.stanford.edu>.
38475
38476 2008-04-18  Simon Josefsson  <simon@josefsson.org>
38477
38478         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
38479         Suggested by Bruno Haible <bruno@clisp.org>.
38480
38481 2008-04-17  Bruno Haible  <bruno@clisp.org>
38482
38483         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
38484         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
38485         implementation.
38486         Patch by Bruce Merry <bmerry@gmail.com>.
38487
38488 2008-04-17  Simon Josefsson  <simon@josefsson.org>
38489
38490         * doc/posix-functions/strftime.texi (strftime): Mention that %e
38491         doesn't work under Windows.
38492
38493 2008-04-16  Bruno Haible  <bruno@clisp.org>
38494
38495         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
38496         New macros.
38497         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
38498         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
38499         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
38500         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
38501         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
38502         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
38503         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
38504         macros.
38505         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
38506         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
38507         Northern Sotho, Uighur.
38508
38509 2008-04-16  Bruno Haible  <bruno@clisp.org>
38510
38511         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
38512         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
38513         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
38514         Reported by Daniel Bergström <daniel@octocode.com>.
38515
38516 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
38517             Bruno Haible  <bruno@clisp.org>
38518
38519         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
38520         function.
38521         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
38522         New functions, mostly extracted from gl_locale_name_default.
38523         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
38524
38525 2008-04-16  Eric Blake  <ebb9@byu.net>
38526
38527         Adjust strtod detection to catch glibc 2.7 bug.
38528         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
38529         Reported by John Gatewood Ham.
38530
38531 2008-04-16  Bruno Haible  <bruno@clisp.org>
38532
38533         Add tentative support for Linux libc5.
38534         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
38535         * lib/fpurge.c (fpurge): Likewise.
38536         * lib/freadable.c (freadable): Likewise.
38537         * lib/freadahead.c (freadahead): Likewise.
38538         * lib/freading.c (freading): Likewise.
38539         * lib/freadptr.c (freadptr): Likewise.
38540         * lib/freadseek.c (freadptrinc): Likewise.
38541         * lib/fseeko.c (rpl_fseeko): Likewise.
38542         * lib/fseterr.c (fseterr): Likewise.
38543         * lib/fwritable.c (fwritable): Likewise.
38544         * lib/fwriting.c (fwriting): Likewise.
38545         Reported by Alain Guibert <alguibert+bts@free.fr>.
38546
38547 2008-04-15  Bruno Haible  <bruno@clisp.org>
38548
38549         * modules/mathl (configure.ac): Define module indicator.
38550
38551 2008-04-15  Bruno Haible  <bruno@clisp.org>
38552
38553         * lib/logl.c (logl): Remove unused variables.
38554
38555 2008-04-15  Bruno Haible  <bruno@clisp.org>
38556
38557         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
38558         fails.
38559
38560 2008-04-15  Bruno Haible  <bruno@clisp.org>
38561
38562         * lib/trim.c (trim2): Fix argument of isspace() macro.
38563
38564 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
38565
38566         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
38567         to 0.
38568         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
38569
38570 2008-04-14  Bruno Haible  <bruno@clisp.org>
38571
38572         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
38573         AC_LANG_PROGRAM argument.
38574         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
38575         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
38576         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
38577         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38578         * m4/math_h.m4 (gl_MATH_H): Likewise.
38579         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
38580         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38581         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
38582         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
38583         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
38584         * m4/regex.m4 (gl_REGEX): Likewise.
38585         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
38586         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
38587         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38588         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
38589         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38590         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38591         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38592         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38593
38594 2008-04-14  Jim Meyering  <meyering@redhat.com>
38595
38596         test-strtod: fix typos: s/abs/fabs/
38597         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
38598
38599 2008-04-13  Bruno Haible  <bruno@clisp.org>
38600
38601         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
38602         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
38603         module is also used and while not building the reloc-wrapper.
38604
38605 2008-04-13  Bruno Haible  <bruno@clisp.org>
38606
38607         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
38608
38609 2008-04-13  Bruno Haible  <bruno@clisp.org>
38610
38611         Fix AIX compilation failure introduced on 2008-04-02.
38612         * tests/test-frexp.c (exp): Undefine before redefining.
38613         * tests/test-frexpl.c (exp): Likewise.
38614
38615 2008-04-13  Bruno Haible  <bruno@clisp.org>
38616
38617         Work around a HP-UX stdio bug.
38618         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
38619         * tests/test-ftello.c (main): Likewise.
38620         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
38621         * doc/posix-functions/ftello.texi: Likewise.
38622
38623 2008-04-13  Bruno Haible  <bruno@clisp.org>
38624
38625         Make test-signbit pass on HP-UX/hppa.
38626         * tests/test-signbit.c (minus_zerol): New variable.
38627         (test_signbitl): Use it.
38628
38629 2008-04-13  Bruno Haible  <bruno@clisp.org>
38630
38631         Make truncl work on OSF/1 4.0.
38632         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
38633         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
38634         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
38635         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
38636         HAVE_DECL_TRUNCL.
38637         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
38638         HAVE_DECL_TRUNCL.
38639         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
38640
38641 2008-04-13  Bruno Haible  <bruno@clisp.org>
38642
38643         * lib/unictype.h: Remove trailing comma from enumeration definitions.
38644
38645 2008-04-13  Bruno Haible  <bruno@clisp.org>
38646
38647         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
38648         expression, so as to avoid HP-UX 11 cc compiler bug.
38649
38650 2008-04-13  Bruno Haible  <bruno@clisp.org>
38651
38652         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
38653
38654 2008-04-13  Bruno Haible  <bruno@clisp.org>
38655
38656         * lib/git-merge-changelog.c: Remove empty declaration outside of
38657         functions.
38658
38659 2008-04-13  Bruno Haible  <bruno@clisp.org>
38660
38661         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
38662
38663 2008-04-13  Bruno Haible  <bruno@clisp.org>
38664
38665         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
38666         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
38667         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
38668         also if it exists but lacks definitions of the SHUT_* macros.
38669         * modules/sys_socket (Description): Update.
38670         Reported by Elbert Pol <e.pol@chello.nl>.
38671
38672 2008-04-13  Bruno Haible  <bruno@clisp.org>
38673
38674         * lib/localcharset.c (OS2): Don't redefine if already defined.
38675         Reported by Elbert Pol <e.pol@chello.nl>.
38676
38677 2008-04-13  Bruno Haible  <bruno@clisp.org>
38678
38679         * lib/binary-io.h [__EMX__]: Include <io.h>.
38680         Reported by Elbert Pol <e.pol@chello.nl>.
38681
38682 2008-04-12  Bruno Haible  <bruno@clisp.org>
38683
38684         * lib/fpucw.h: Enable the definitions also for x86_64.
38685         Needed for NetBSD/x86_64.
38686         Reported by Thomas Klausner <tk@giga.or.at>.
38687
38688 2008-04-12  Bruno Haible  <bruno@clisp.org>
38689
38690         * tests/test-strtod.c: Include isnand.h.
38691         (main): Use isnand instead of isnan.
38692         Reported by Jim Meyering.
38693
38694 2008-04-12  Bruno Haible  <bruno@clisp.org>
38695
38696         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
38697         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38698
38699 2008-04-12  Jim Meyering  <meyering@redhat.com>
38700
38701         * m4/math_h.m4 (gl_MATH_H): Fix typos.
38702
38703 2008-04-12  Bruno Haible  <bruno@clisp.org>
38704
38705         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
38706         Reported by Elbert Pol <e.pol@chello.nl>.
38707
38708 2008-04-12  Eric Blake  <ebb9@byu.net>
38709
38710         Work around Solaris 10 math.h bug.
38711         * m4/math_h.m4 (gl_MATH_H): Check for bug.
38712         (gl_MATH_H_DEFAULTS): Set up default.
38713         * modules/math (Makefile.am): Replace new indicators.
38714         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
38715         * tests/test-math.c (main): Test this.
38716         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
38717         * doc/posix-headers/math.texi (math.h): Mention bug.
38718         Reported by Nelson H. F. Beebe and Jim Meyering.
38719
38720 2008-04-11  Bruno Haible  <bruno@clisp.org>
38721
38722         Adapt to future versions of Apple GCC.
38723         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
38724         Reported by Peter O'Gorman <peter@pogma.com>.
38725
38726 2008-04-11  Bruno Haible  <bruno@clisp.org>
38727
38728         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
38729
38730 2008-04-11  Bruno Haible  <bruno@clisp.org>
38731
38732         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
38733
38734         * modules/getaddrinfo-tests (Makefile.am): Define
38735         test_getaddrinfo_LDADD.
38736
38737 2008-04-11  Bruno Haible  <bruno@clisp.org>
38738
38739         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
38740         (init): Fix syntax error.
38741         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
38742         is declared.
38743
38744 2008-04-11  Bruno Haible  <bruno@clisp.org>
38745
38746         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
38747         * modules/glob (Depends-on): Add stdbool.
38748
38749 2008-04-11  Bruno Haible  <bruno@clisp.org>
38750
38751         * lib/trim.c: Include <string.h>.
38752
38753 2008-04-11  Eric Blake  <ebb9@byu.net>
38754
38755         Avoid compile failure on OS/2.
38756         * lib/regex_internal.h (internal_function): Disable optimization
38757         on OS/2 (__EMX__), where it caused compiler error.
38758         Reported by Elbert Pol.
38759
38760 2008-04-11  Bruno Haible  <bruno@clisp.org>
38761
38762         Flush the standard error stream before aborting. Needed on mingw.
38763         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
38764         * tests/test-array_list.c (ASSERT): Likewise.
38765         * tests/test-array_oset.c (ASSERT): Likewise.
38766         * tests/test-avltree_list.c (ASSERT): Likewise.
38767         * tests/test-avltree_oset.c (ASSERT): Likewise.
38768         * tests/test-avltreehash_list.c (ASSERT): Likewise.
38769         * tests/test-binary-io.c (ASSERT): Likewise.
38770         * tests/test-byteswap.c (ASSERT): Likewise.
38771         * tests/test-c-ctype.c (ASSERT): Likewise.
38772         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
38773         * tests/test-c-strcasestr.c (ASSERT): Likewise.
38774         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
38775         * tests/test-c-strstr.c (ASSERT): Likewise.
38776         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
38777         * tests/test-canonicalize.c (ASSERT): Likewise.
38778         * tests/test-carray_list.c (ASSERT): Likewise.
38779         * tests/test-ceilf1.c (ASSERT): Likewise.
38780         * tests/test-ceilf2.c (ASSERT): Likewise.
38781         * tests/test-ceill.c (ASSERT): Likewise.
38782         * tests/test-count-one-bits.c (ASSERT): Likewise.
38783         * tests/test-fbufmode.c (ASSERT): Likewise.
38784         * tests/test-fflush2.c (ASSERT): Likewise.
38785         * tests/test-floorf1.c (ASSERT): Likewise.
38786         * tests/test-floorf2.c (ASSERT): Likewise.
38787         * tests/test-floorl.c (ASSERT): Likewise.
38788         * tests/test-fopen.c (ASSERT): Likewise.
38789         * tests/test-fpending.c (ASSERT): Likewise.
38790         * tests/test-fprintf-posix.c (ASSERT): Likewise.
38791         * tests/test-fpurge.c (ASSERT): Likewise.
38792         * tests/test-freadable.c (ASSERT): Likewise.
38793         * tests/test-freadahead.c (ASSERT): Likewise.
38794         * tests/test-freading.c (ASSERT): Likewise.
38795         * tests/test-freadptr.c (ASSERT): Likewise.
38796         * tests/test-freadptr2.c (ASSERT): Likewise.
38797         * tests/test-freadseek.c (ASSERT): Likewise.
38798         * tests/test-freopen.c (ASSERT): Likewise.
38799         * tests/test-frexp.c (ASSERT): Likewise.
38800         * tests/test-frexpl.c (ASSERT): Likewise.
38801         * tests/test-fseek.c (ASSERT): Likewise.
38802         * tests/test-fseeko.c (ASSERT): Likewise.
38803         * tests/test-fstrcmp.c (ASSERT): Likewise.
38804         * tests/test-ftell.c (ASSERT): Likewise.
38805         * tests/test-ftello.c (ASSERT): Likewise.
38806         * tests/test-func.c (ASSERT): Likewise.
38807         * tests/test-fwritable.c (ASSERT): Likewise.
38808         * tests/test-fwriting.c (ASSERT): Likewise.
38809         * tests/test-getdelim.c (ASSERT): Likewise.
38810         * tests/test-getline.c (ASSERT): Likewise.
38811         * tests/test-i-ring.c (ASSERT): Likewise.
38812         * tests/test-iconv-utf.c (ASSERT): Likewise.
38813         * tests/test-iconv.c (ASSERT): Likewise.
38814         * tests/test-isfinite.c (ASSERT): Likewise.
38815         * tests/test-isnand.c (ASSERT): Likewise.
38816         * tests/test-isnanf.c (ASSERT): Likewise.
38817         * tests/test-isnanl.h (ASSERT): Likewise.
38818         * tests/test-ldexpl.c (ASSERT): Likewise.
38819         * tests/test-linked_list.c (ASSERT): Likewise.
38820         * tests/test-linkedhash_list.c (ASSERT): Likewise.
38821         * tests/test-localename.c (ASSERT): Likewise.
38822         * tests/test-lseek.c (ASSERT): Likewise.
38823         * tests/test-mbscasecmp.c (ASSERT): Likewise.
38824         * tests/test-mbscasestr1.c (ASSERT): Likewise.
38825         * tests/test-mbscasestr2.c (ASSERT): Likewise.
38826         * tests/test-mbscasestr3.c (ASSERT): Likewise.
38827         * tests/test-mbscasestr4.c (ASSERT): Likewise.
38828         * tests/test-mbschr.c (ASSERT): Likewise.
38829         * tests/test-mbscspn.c (ASSERT): Likewise.
38830         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
38831         * tests/test-mbspbrk.c (ASSERT): Likewise.
38832         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
38833         * tests/test-mbsrchr.c (ASSERT): Likewise.
38834         * tests/test-mbsspn.c (ASSERT): Likewise.
38835         * tests/test-mbsstr1.c (ASSERT): Likewise.
38836         * tests/test-mbsstr2.c (ASSERT): Likewise.
38837         * tests/test-mbsstr3.c (ASSERT): Likewise.
38838         * tests/test-memchr2.c (ASSERT): Likewise.
38839         * tests/test-memmem.c (ASSERT): Likewise.
38840         * tests/test-open.c (ASSERT): Likewise.
38841         * tests/test-printf-frexp.c (ASSERT): Likewise.
38842         * tests/test-printf-frexpl.c (ASSERT): Likewise.
38843         * tests/test-printf-posix.c (ASSERT): Likewise.
38844         * tests/test-quotearg.c (ASSERT): Likewise.
38845         * tests/test-rbtree_list.c (ASSERT): Likewise.
38846         * tests/test-rbtree_oset.c (ASSERT): Likewise.
38847         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
38848         * tests/test-round1.c (ASSERT): Likewise.
38849         * tests/test-roundf1.c (ASSERT): Likewise.
38850         * tests/test-roundl.c (ASSERT): Likewise.
38851         * tests/test-signbit.c (ASSERT): Likewise.
38852         * tests/test-sleep.c (ASSERT): Likewise.
38853         * tests/test-snprintf-posix.c (ASSERT): Likewise.
38854         * tests/test-snprintf.c (ASSERT): Likewise.
38855         * tests/test-sprintf-posix.c (ASSERT): Likewise.
38856         * tests/test-stat-time.c (ASSERT): Likewise.
38857         * tests/test-strcasestr.c (ASSERT): Likewise.
38858         * tests/test-strerror.c (ASSERT): Likewise.
38859         * tests/test-striconv.c (ASSERT): Likewise.
38860         * tests/test-striconveh.c (ASSERT): Likewise.
38861         * tests/test-striconveha.c (ASSERT): Likewise.
38862         * tests/test-strsignal.c (ASSERT): Likewise.
38863         * tests/test-strstr.c (ASSERT): Likewise.
38864         * tests/test-strtod.c (ASSERT): Likewise.
38865         * tests/test-trunc1.c (ASSERT): Likewise.
38866         * tests/test-trunc2.c (ASSERT): Likewise.
38867         * tests/test-truncf1.c (ASSERT): Likewise.
38868         * tests/test-truncf2.c (ASSERT): Likewise.
38869         * tests/test-truncl.c (ASSERT): Likewise.
38870         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
38871         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
38872         * tests/test-vasnprintf.c (ASSERT): Likewise.
38873         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
38874         * tests/test-vasprintf.c (ASSERT): Likewise.
38875         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
38876         * tests/test-vprintf-posix.c (ASSERT): Likewise.
38877         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
38878         * tests/test-vsnprintf.c (ASSERT): Likewise.
38879         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
38880         * tests/test-wcwidth.c (ASSERT): Likewise.
38881         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
38882         * tests/test-xprintf-posix.c (ASSERT): Likewise.
38883         * tests/test-xvasprintf.c (ASSERT): Likewise.
38884         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
38885         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
38886         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
38887         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
38888         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
38889         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
38890         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
38891         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
38892         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
38893         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
38894         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
38895         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
38896         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
38897         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
38898         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
38899         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
38900         * tests/unictype/test-block_list.c (ASSERT): Likewise.
38901         * tests/unictype/test-block_of.c (ASSERT): Likewise.
38902         * tests/unictype/test-block_test.c (ASSERT): Likewise.
38903         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
38904         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
38905         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
38906         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
38907         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
38908         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
38909         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
38910         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
38911         * tests/unictype/test-combining.c (ASSERT): Likewise.
38912         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
38913         * tests/unictype/test-digit.c (ASSERT): Likewise.
38914         * tests/unictype/test-mirror.c (ASSERT): Likewise.
38915         * tests/unictype/test-numeric.c (ASSERT): Likewise.
38916         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
38917         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
38918         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
38919         * tests/unictype/test-scripts.c (ASSERT): Likewise.
38920         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
38921         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
38922         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
38923         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
38924         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
38925         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
38926         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
38927         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
38928         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
38929         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
38930         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
38931         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
38932         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
38933         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
38934         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
38935         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
38936         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
38937         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
38938         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
38939         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
38940         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
38941         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
38942         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
38943         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
38944         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
38945         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
38946         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
38947         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
38948         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
38949         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
38950         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
38951         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
38952         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
38953         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
38954         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
38955         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
38956         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
38957         Reported by Eric Blake.
38958
38959 2008-04-11  Bruno Haible  <bruno@clisp.org>
38960
38961         * lib/wchar.in.h: Tweak comment.
38962
38963 2008-04-11  Bruno Haible  <bruno@clisp.org>
38964
38965         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
38966         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
38967         gl_COMMON.
38968         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
38969
38970 2008-04-11  Bruno Haible  <bruno@clisp.org>
38971
38972         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
38973
38974 2008-04-11  Simon Josefsson  <simon@josefsson.org>
38975
38976         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
38977         of attempting to use non-existing /dev/*random.  Based on patch
38978         from Adam Strzelecki <ono@java.pl> in
38979         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
38980
38981 2008-04-08  Bruno Haible  <bruno@clisp.org>
38982
38983         Add tentative support for emx+gcc.
38984         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
38985         * lib/fpurge.c (fpurge): Likewise.
38986         * lib/freadable.c (freadable): Likewise.
38987         * lib/freadahead.c (freadahead): Likewise.
38988         * lib/freading.c (freading): Likewise.
38989         * lib/freadptr.c (freadptr): Likewise.
38990         * lib/freadseek.c (freadptrinc): Likewise.
38991         * lib/fseeko.c (rpl_fseeko): Likewise.
38992         * lib/fseterr.c (fseterr): Likewise.
38993         * lib/fwritable.c (fwritable): Likewise.
38994         * lib/fwriting.c (fwriting): Likewise.
38995         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
38996
38997 2008-04-09  Eric Blake  <ebb9@byu.net>
38998
38999         Avoid some autoconf warnings.
39000         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
39001         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
39002         * m4/afs.m4 (gl_AFS): Likewise.
39003         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
39004         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
39005         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39006         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
39007         (gl_INTEGER_TYPE_SUFFIX): Likewise.
39008         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
39009         (AC_CHECK_DECLS_ONCE): Likewise.
39010         Rename file...
39011         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
39012         gnulib-tool requires autoconf 2.59 or better.
39013         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
39014
39015 2008-04-08  Eric Blake  <ebb9@byu.net>
39016
39017         Use 'git describe --match' if present (added in git 1.5.5).
39018         * build-aux/git-version-gen: Limit result to tags that match 'v*'
39019         if possible.
39020
39021 2008-04-08  Bruno Haible  <bruno@clisp.org>
39022
39023         Add tentative support for OpenServer.
39024         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
39025         _ptr, _cnt.
39026         * lib/fpurge.c (fpurge): Likewise.
39027         * lib/freadable.c (freadable): Likewise.
39028         * lib/freadahead.c (freadahead): Likewise.
39029         * lib/freading.c (freading): Likewise.
39030         * lib/freadptr.c (freadptr): Likewise.
39031         * lib/freadseek.c (freadptrinc): Likewise.
39032         * lib/fseeko.c (rpl_fseeko): Likewise.
39033         * lib/fseterr.c (fseterr): Likewise.
39034         * lib/fwritable.c (fwritable): Likewise.
39035         * lib/fwriting.c (fwriting): Likewise.
39036         Reported by Roger Cornelius <rac@tenzing.org> and
39037         Brian K. White <brian@aljex.com>.
39038
39039 2008-04-06  Jim Meyering  <meyering@redhat.com>
39040
39041         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
39042
39043 2008-04-06  Bruno Haible  <bruno@clisp.org>
39044
39045         Avoid possible error with non-ASCII bytes in UTF-8 locales.
39046         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
39047         * tests/test-printf-posix.sh: Likewise.
39048         * tests/test-vfprintf-posix.sh: Likewise.
39049         * tests/test-vprintf-posix.sh: Likewise.
39050         * tests/test-xprintf-posix.sh: Likewise.
39051
39052 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39053
39054         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
39055         hide error from 'ls', needed on OS/2.
39056         Report by Elbert Pol <elbert.pol@gmail.com>.
39057
39058 2008-04-04  Eric Blake  <ebb9@byu.net>
39059
39060         Make test-fseeko.c failures meaningful.
39061         * tests/test-fseeko.c: Print line number on failure.
39062         * tests/test-fseek.c: Likewise.
39063         Reported by Nelson H. F. Beebe.
39064
39065         Improve strtod bug detection check.
39066         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
39067         required for Solaris 10.
39068         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
39069
39070 2008-04-04  Bruno Haible  <bruno@clisp.org>
39071
39072         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
39073         by m4/setenv.m4.
39074
39075 2008-04-03  Eric Blake  <ebb9@byu.net>
39076
39077         Ensure sane .version contents.
39078         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
39079         version string.
39080         * build-aux/git-version-gen: Improve documentation.
39081
39082         Make GNU make output nicer.
39083         * top/GNUmakefile [!_have-Makefile]: Add dependency on
39084         MAKECMDGOALS to enforce message for all command line targets.  Set
39085         srcdir for use in maint.mk.
39086
39087         Another maintainer tweak.
39088         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
39089         a target that regenerates version.
39090
39091 2008-04-03  Jim Meyering  <meyering@redhat.com>
39092
39093         vc-list-files: don't cause coreutils "make po-check" failure
39094         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
39095
39096 2008-04-03  Eric Blake  <ebb9@byu.net>
39097
39098         Allow VPATH usage of vc-list-files.
39099         * build-aux/vc-list-files (scriptversion): Add timestamp.
39100         (options): Add --help, --version, -C.
39101         (CVS): Support installed cvsu.
39102
39103 2008-04-02  Bruno Haible  <bruno@clisp.org>
39104
39105         Avoid some "statement with no effect" warnings from gcc.
39106         * tests/test-wctype.c (main): Explicitly ignore unused values.
39107         Reported by Jim Meyering.
39108
39109 2008-04-02  Jim Meyering  <meyering@redhat.com>
39110
39111         Avoid some warnings from "gcc -Wshadow".
39112         * tests/test-frexp.c (exp): Define to a different identifier.
39113         * tests/test-frexpl.c (exp): Likewise.
39114
39115 2008-04-03  Jim Meyering  <meyering@redhat.com>
39116
39117         bootstrap: remove dangling *.[ch] symlinks from lib
39118         * build-aux/bootstrap [dangling symlink removal]: Move find's
39119         -depth option to precede all others, to avoid a warning.
39120         Remove *.[ch] files too, and from "$source_base" (usually lib/).
39121
39122 2008-04-02  Bruno Haible  <bruno@clisp.org>
39123
39124         Avoid some warnings from "gcc -Wshadow".
39125         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
39126         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
39127         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
39128         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
39129         Reported by Jim Meyering.
39130
39131 2008-04-01  Bruno Haible  <bruno@clisp.org>
39132
39133         Fix test to work on IRIX 6.5 with cc.
39134         * tests/test-math.c (numeric_equal): New function.
39135         (main): Use it.
39136
39137 2008-04-01  Bruno Haible  <bruno@clisp.org>
39138
39139         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
39140
39141 2008-04-01  Bruno Haible  <bruno@clisp.org>
39142
39143         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
39144         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39145         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
39146         (Depends-on): Remove math.
39147
39148         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
39149         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39150         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
39151         (Depends-on): Remove math.
39152
39153         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
39154         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39155         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
39156         (Depends-on): Remove math.
39157         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
39158         (Depends-on): Remove math.
39159
39160         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
39161         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39162         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
39163         (Depends-on): Remove math.
39164         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
39165         (Depends-on): Remove math.
39166
39167         * tests/test-round1.c: Include nan.h.
39168         (main): Use NaNd instead of NAN.
39169         * modules/round-tests (Files): Add tests/nan.h.
39170
39171         * tests/test-trunc1.c: Include nan.h.
39172         (main): Use NaNd instead of NAN.
39173         * modules/trunc-tests (Files): Add tests/nan.h.
39174
39175         * tests/test-roundf1.c: Include nan.h.
39176         (main): Use NaNf instead of NAN.
39177         * modules/roundf-tests (Files): Add tests/nan.h.
39178
39179         * tests/test-truncf1.c: Include nan.h.
39180         (main): Use NaNf instead of NAN.
39181         * modules/truncf-tests (Files): Add tests/nan.h.
39182
39183         * tests/test-ceilf1.c: Include nan.h.
39184         (main): Use NaNf instead of NAN.
39185         * modules/ceilf-tests (Files): Add tests/nan.h.
39186
39187         * tests/test-floorf1.c: Include nan.h.
39188         (main): Use NaNf instead of NAN.
39189         * modules/floorf-tests (Files): Add tests/nan.h.
39190
39191         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
39192         (main): Use NaNf instead of NAN.
39193         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
39194
39195         * tests/test-isnand.c: Include nan.h instead of <math.h>.
39196         (main): Use NaNd instead of NAN.
39197         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
39198
39199         * tests/test-frexp.c: Include nan.h.
39200         (main): Use NaNd instead of NAN.
39201         * modules/frexp-tests (Files): Add tests/nan.h.
39202
39203         * lib/isnan.c: Don't include <math.h>.
39204         (FUNC): Don't use NAN macro.
39205         * modules/isnand-nolibm (Depends-on): Remove math.
39206         * modules/isnanf-nolibm (Depends-on): Remove math.
39207         * modules/isnanl (Depends-on): Remove math.
39208         * modules/isnanl-nolibm (Depends-on): Remove math.
39209
39210         * tests/nan.h: New file.
39211
39212 2008-04-01  Eric Blake  <ebb9@byu.net>
39213
39214         Fix typos.
39215         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
39216         values to be the right type.
39217
39218         For now, cater to gnulib strtod inaccuracies.
39219         * tests/test-strtod.c (main): Allow 1-ulp error on expected
39220         fractional results.  While not as nice from a QoI perspective, it
39221         is a quicker patch than correctly implementing decimal to binary
39222         rounding.
39223
39224 2008-03-31  Eric Blake  <ebb9@byu.net>
39225
39226         Guarantee a definition of NAN.
39227         * lib/math.in.h (NAN): Define if missing.
39228         * tests/test-math.c (main): Test it.
39229         * doc/posix-headers/math.texi (math.h): Document this.
39230         * lib/isnan.c (rpl_isnand): Use it.
39231         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
39232         * tests/test-floorf1.c (NaN): Likewise.
39233         * tests/test-frexp.c (NaN): Likewise.
39234         * tests/test-isnand.c (NaN): Likewise.
39235         * tests/test-isnanf.c (NaN): Likewise.
39236         * tests/test-round1.c (NaN): Likewise.
39237         * tests/test-roundf1.c (NaN): Likewise.
39238         * tests/test-snprintf-posix.h (NaN): Likewise.
39239         * tests/test-sprintf-posix.h (NaN): Likewise.
39240         * tests/test-trunc1.c (NaN): Likewise.
39241         * tests/test-truncf1.c (NaN): Likewise.
39242         * tests/test-vasnprintf-posix.c (NaN): Likewise.
39243         * tests/test-vasprintf-posix.c (NaN): Likewise.
39244         * modules/isnand-nolibm (Depends-on): Add math.
39245         * modules/isnanf-nolibm (Depends-on): Likewise.
39246         * modules/isnanl (Depends-on): Likewise.
39247         * modules/isnanl-nolibm (Depends-on): Likewise.
39248         * modules/snprintf-posix-tests (Depends-on): Likewise.
39249         * modules/sprintf-posix-tests (Depends-on): Likewise.
39250         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
39251         * modules/vsprintf-posix-tests (Depends-on): Likewise.
39252         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
39253         * modules/vasprintf-posix-tests (Depends-on): Likewise.
39254
39255 2008-03-31  Bruno Haible  <bruno@clisp.org>
39256
39257         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
39258         * doc/posix-functions/strtod.texi: Likewise.
39259
39260 2008-03-31  Bruno Haible  <bruno@clisp.org>
39261
39262         * tests/test-strtod.c (main): Don't use C99 syntax.
39263
39264 2008-03-31  Bruno Haible  <bruno@clisp.org>
39265
39266         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
39267         Reported by Eric Blake.
39268
39269 2008-03-31  Jim Meyering  <meyering@redhat.com>
39270
39271         Don't compare actual signbit return values.
39272         * tests/test-strtod.c (main): Rather, compare only their
39273         zero/non-zero nature.
39274
39275 2008-03-31  Eric Blake  <ebb9@byu.net>
39276
39277         More strtod documentation.
39278         * doc/posix-functions/strtod.texi (strtod): Interpret more test
39279         failures as distinct bugs.
39280
39281 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
39282
39283         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
39284         Problem reported by Erik Benada in
39285         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
39286
39287 2008-03-30  Bruno Haible  <bruno@clisp.org>
39288
39289         * tests/test-strtod.c: Add comments about which assertion fails on which
39290         platform.
39291         * doc/posix-functions/strtod.texi: Add info about many more platforms.
39292
39293 2008-03-30  Eric Blake  <ebb9@byu.net>
39294
39295         Test signbit behavior on zeros.
39296         * tests/test-signbit.c (test_signbitf): Add tests for zero.
39297         (test_signbitd, test_signbitl): Likewise.
39298
39299         More strtod touchups.
39300         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
39301         sign of negative underflow, for now.  Use .5, not .1.
39302         * doc/posix-functions/strtod.texi (strtod): Mention these
39303         limitations.
39304         Reported by Jim Meyering.
39305
39306 2008-03-30  Bruno Haible  <bruno@clisp.org>
39307
39308         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
39309         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
39310
39311 2008-03-30  Bruno Haible  <bruno@clisp.org>
39312
39313         Avoid failure when attempting to return empty iconv results on some
39314         platforms.
39315         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
39316         allocation, don't report ENOMEM when the resulting string is empty.
39317
39318 2008-03-30  Bruno Haible  <bruno@clisp.org>
39319
39320         Fix buffer overrun.
39321         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
39322         Don't consider the width for tmp_length. Check count against tmp_length
39323         before doing the padding. Ensure enough allocation during padding.
39324
39325 2008-03-30  Eric Blake  <ebb9@byu.net>
39326
39327         strtod touchups.
39328         * lib/strtod.c (strtod): Avoid compiler warnings.
39329         Reported by Jim Meyering.
39330
39331 2008-03-30  Bruno Haible  <bruno@clisp.org>
39332
39333         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
39334         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
39335         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
39336         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
39337         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
39338         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
39339         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
39340         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
39341
39342         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
39343         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
39344         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
39345         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
39346         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
39347         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
39348         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
39349         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
39350
39351         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
39352         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
39353         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
39354         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
39355         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
39356         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
39357         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
39358         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
39359
39360         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
39361         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
39362
39363         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
39364         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
39365
39366         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
39367         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
39368
39369         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
39370         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
39371         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
39372
39373         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
39374         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
39375         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
39376
39377         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
39378         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
39379         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
39380
39381         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
39382         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
39383         * modules/vasprintf (Depends-on): Add EOVERFLOW.
39384
39385         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
39386         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
39387         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
39388         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
39389         (Depends-on): Add EOVERFLOW.
39390         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
39391         (Depends-on): Add EOVERFLOW.
39392         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
39393         (Depends-on): Add EOVERFLOW.
39394         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
39395         (Depends-on): Add EOVERFLOW.
39396         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
39397         (Depends-on): Add EOVERFLOW.
39398         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
39399         (Depends-on): Add EOVERFLOW.
39400         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
39401         (Depends-on): Add EOVERFLOW.
39402         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
39403         (Depends-on): Add EOVERFLOW.
39404
39405         * lib/sprintf.c (EOVERFLOW): Remove fallback.
39406         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
39407         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
39408
39409         * lib/snprintf.c (EOVERFLOW): Remove fallback.
39410         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
39411         * modules/snprintf (Depends-on): Add EOVERFLOW.
39412
39413         * lib/poll.c (EOVERFLOW): Remove fallback.
39414         * modules/poll (Depends-on): Add EOVERFLOW.
39415
39416         * lib/getugroups.c (EOVERFLOW): Remove fallback.
39417         * modules/getugroups (Depends-on): Add EOVERFLOW.
39418
39419         * lib/getdelim.c (EOVERFLOW): Remove fallback.
39420         * modules/getdelim (Depends-on): Add EOVERFLOW.
39421
39422         * lib/ftell.c (EOVERFLOW): Remove fallback.
39423         * modules/ftell (Depends-on): Add EOVERFLOW.
39424
39425         * lib/fprintf.c (EOVERFLOW): Remove fallback.
39426         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
39427         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
39428
39429         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
39430
39431         * modules/EOVERFLOW-tests: New file.
39432         * tests/test-EOVERFLOW.c: New file.
39433
39434         * modules/EOVERFLOW: New file.
39435         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
39436
39437 2008-03-30  Bruno Haible  <bruno@clisp.org>
39438
39439         Fix bug introduced on 2007-06-10.
39440         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
39441         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
39442
39443 2008-03-30  Bruno Haible  <bruno@clisp.org>
39444
39445         Improve freadseek's efficiency after ungetc.
39446         * lib/freadseek.c: Include freadahead.h.
39447         (freadptrinc): New function, extracted from freadseek.
39448         (freadseek): Use it in a loop. Use freadahead to determine the number
39449         of loop iterations.
39450         * modules/freadseek (Depends-on): Add freadahead.
39451         (configure.ac): Require AC_C_INLINE.
39452
39453 2008-03-30  Bruno Haible  <bruno@clisp.org>
39454
39455         * lib/freadseek.c (freadseek): Don't ignore the return value of
39456         freadptr.
39457
39458 2008-03-29  Eric Blake  <ebb9@byu.net>
39459
39460         Add hex float support.
39461         * modules/strtod (Depends-on): Add c-ctype.
39462         (Link): Mention POW_LIB.
39463         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
39464         whitespace between 'e' and exponent.
39465         * tests/test-strtod.c (main): Enable hex float tests.
39466         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
39467         now provides.
39468
39469         Document various strtod bugs, with some fixes.
39470         * doc/posix-functions/strtod.texi (strtod): Document bugs with
39471         "-0x", "inf", "nan", and hex constants.
39472         * doc/posix-functions/atof.texi (atof): Likewise.
39473         * modules/stdlib (Makefile.am): Support strtod.
39474         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
39475         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
39476         detect additional strtod bugs.
39477         * lib/stdlib.in.h (rpl_strtod): Add declarations.
39478         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
39479         bool where appropriate.  Parse 'inf' and 'nan'.
39480         * tests/test-strtod.c: New file.
39481         * modules/strtod (Depends-on): Add stdbool, stdlib.
39482         (configure.ac): Turn on module indicator.
39483         * modules/strtod-tests: New module.
39484
39485 2008-03-29  Eric Blake  <ebb9@byu.net>
39486
39487         Fix ftell on mingw.
39488         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
39489         * modules/ftell-tests (Depends-on): Add binary-io.
39490         * modules/ftello-tests (Depends-on): Likewise.
39491         * tests/test-ftell.c (main): Enhance test to cover behavior after
39492         ungetc.  Enforce binary mode.
39493         * tests/test-ftello.c (main): Likewise.
39494
39495         Pass test-freadseek on cygwin.
39496         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
39497         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
39498         ungetc buffer.
39499
39500         * tests/test-fflush2.c (main): Fix typo.
39501
39502 2008-03-29  Bruno Haible  <bruno@clisp.org>
39503
39504         * tests/test-fflush2.c (main): Temporarily disable the contents of
39505         this test.
39506         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
39507         Reported by Eric Blake.
39508
39509 2008-03-28  Simon Josefsson  <simon@josefsson.org>
39510
39511         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
39512         (GC_SHA224_DIGEST_SIZE): Add.
39513
39514         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
39515         (gc_hash_digest_length): Likewise.
39516         (gc_hash_buffer): Likewise.
39517
39518 2008-03-25  Bruno Haible  <bruno@clisp.org>
39519
39520         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
39521         detail which gettext release to use.
39522         Reported by Simon Josefsson.
39523
39524 2008-03-26  Jim Meyering  <meyering@redhat.com>
39525
39526         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
39527         * modules/gnumakefile (clean-GNUmakefile): Also, use
39528         test ... && ... || : syntax rather than if-then ... fi.
39529
39530         gnumakefile: Don't double-quote-expand $(VPATH) value.
39531         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
39532
39533 2008-03-24  Eric Blake  <ebb9@byu.net>
39534
39535         Alter GNUmakefile to install into top directory.
39536         * modules/maintainer-makefile: Split, and add dependency...
39537         * modules/gnumakefile: to this new module.
39538         * build-aux/GNUmakefile: Move...
39539         * top/GNUmakefile: ...here.
39540         * build-aux/maint.mk: Move...
39541         * top/maint.mk: ...here.
39542         * MODULES.html.sh (Support for maintaining...): Document new
39543         module.
39544
39545 2008-03-23  Bruno Haible  <bruno@clisp.org>
39546
39547         * gnulib-tool: New options --vc-files, --no-vc-files.
39548         (func_usage): Document them.
39549         (vc_files): New variable.
39550         (func_import): Consider vc_files.
39551         (func_create_testdir): Set vc_files to empty.
39552         Suggested by Jim Meyering and Karl Berry.
39553
39554 2008-03-23  Bruno Haible  <bruno@clisp.org>
39555
39556         Fix regex compilation error on HP-UX 11.
39557         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
39558         * modules/regex (Files): Add m4/mbstate_t.m4.
39559         Reported by Ton Voon <ton.voon@altinity.com>.
39560
39561 2008-03-23  Bruno Haible  <bruno@clisp.org>
39562
39563         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
39564
39565 2008-03-23  Eric Blake  <ebb9@byu.net>
39566             Bruno Haible  <bruno@clisp.org>
39567
39568         Install files from top/ in the destination directory.
39569         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
39570         augmentation also for the files from top/.
39571         (func_import, func_create_testdir): Rewrite file names:
39572         top/filename -> filename.
39573
39574 2008-03-23  Bruno Haible  <bruno@clisp.org>
39575
39576         Tweak "gnulib --version" output.
39577         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
39578
39579 2008-03-23  Bruno Haible  <bruno@clisp.org>
39580
39581         Tweak "gnulib --version" output.
39582         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
39583         rather than contents of ChangeLog, when possible.
39584
39585 2008-03-21  Eric Blake  <ebb9@byu.net>
39586
39587         More --version tweaks.
39588         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
39589         date of last ChangeLog entry.
39590
39591 2008-03-21  Jim Meyering  <meyering@redhat.com>
39592
39593         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
39594
39595 2008-03-20  Eric Blake  <ebb9@byu.net>
39596
39597         VPATH fix.
39598         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
39599
39600 2008-03-20  Simon Josefsson  <simon@josefsson.org>
39601
39602         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
39603         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
39604
39605 2008-03-20  Eric Blake  <ebb9@byu.net>
39606
39607         Sync GNUmakefile with coreutils.
39608         * build-aux/GNUmakefile (have-Makefile): Rename...
39609         (_have-Makefile): ...to this, for namespace consideration.
39610         (GNUmakefile.cfg): Include, if present.
39611         (_autoreconf): Define a default.
39612         (_is-dist-target): New rule for rebuilds to pick up intra-release
39613         version.
39614         (maint-cfg.mk): Rename...
39615         (cfg.mk): ...to this.
39616
39617 2008-03-18  Jim Meyering  <meyering@redhat.com>
39618
39619         New script and module: mktempd
39620         * MODULES.html.sh (maint+release support): Add mktempd.
39621         * build-aux/mktempd: New file.
39622         * modules/mktempd: New file.
39623
39624 2008-03-15  Jim Meyering  <meyering@redhat.com>
39625
39626         Undo last change.
39627         * lib/sha1.c, lib/md5.c: 63 != ~63.
39628         Reported by Andreas Schwab.
39629
39630         sha1.c, md5.c: Hoist a redundant expression.
39631         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
39632         "ctx->buflen" only once, before calling *_process_block.
39633         * lib/md5.c (md5_process_bytes): Likewise.
39634
39635 2008-03-14  Eric Blake  <ebb9@byu.net>
39636
39637         Bump copyright year in files generated by gnulib-tool.
39638         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
39639         gnulib-tool, rather than hard-coding it.
39640
39641         Fix 'gnulib-tool --version' output to work with git.
39642         * gnulib-tool (func_gnulib_dir): New function, extracted from...
39643         (startup): ...here.
39644         (func_version): Use it to invoke git-version-gen, rather than
39645         relying on CVS keyword expansion.  Modernize wording.
39646         (cvsdatestamp, last_checkin_date, version): Kill unused
39647         variables.
39648
39649 2008-03-12  Jim Meyering  <meyering@redhat.com>
39650
39651         Recognize optional cast of the argument to free.
39652         * build-aux/useless-if-before-free: Update regexps.
39653
39654         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
39655
39656 2008-03-11  Bruno Haible  <bruno@clisp.org>
39657
39658         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
39659         by a single package.
39660         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
39661         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
39662         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
39663         Reported by Sam Steingold <sds@gnu.org>.
39664
39665 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39666
39667         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
39668         repositories.
39669
39670 2008-03-11  Bruno Haible  <bruno@clisp.org>
39671
39672         Avoid conflicts between local macro definitions.
39673         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
39674         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
39675
39676 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
39677             Bruno Haible  <bruno@clisp.org>
39678
39679         Make va_copy work with some version of xlc on AIX 5.1.
39680         * lib/stdarg.in.h: New file.
39681         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
39682         On AIX, use a <stdarg.h> file substitute.
39683         * modules/stdarg (Files): Add lib/stdarg.in.h.
39684         (Depends-on): Add include_next.
39685         (Makefile.am): Build a stdarg.h substitute if requested.
39686         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
39687
39688 2008-03-10  Bruno Haible  <bruno@clisp.org>
39689
39690         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
39691         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39692         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
39693
39694 2008-03-10  Bruno Haible  <bruno@clisp.org>
39695
39696         * modules/stdlib (Depends-on): Add include_next, remove
39697         absolute-header.
39698
39699 2008-03-09  Bruno Haible  <bruno@clisp.org>
39700
39701         * lib/freadahead.h (freadahead): Document more precisely.
39702         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
39703         the sum of both buffer sizes.
39704         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
39705         * NEWS: Document the change.
39706
39707 2008-03-09  Bruno Haible  <bruno@clisp.org>
39708
39709         Extend freadptr to return also the buffer size.
39710         * lib/freadptr.h (freadptr): Add sizep argument.
39711         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
39712         (freadptr): Add sizep argument. Determine buffer size like freadahead
39713         does.
39714         * tests/test-freadptr.c: Don't include freadahead.h.
39715         (main): Adapt for new calling convention of freadptr.
39716         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
39717         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
39718         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
39719         tests/test-freadptr2.sh.
39720         (Depends): Remove freadahead.
39721         (TESTS): Add test-freadptr2.sh.
39722         (check_PROGRAMS): Add test-freadptr2.
39723
39724 2008-03-09  Bruno Haible  <bruno@clisp.org>
39725
39726         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
39727         Report and solution by Simon Josefsson.
39728
39729 2008-03-06  Bruno Haible  <bruno@clisp.org>
39730
39731         Make fflush after ungetc work on BSD platforms.
39732         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
39733         * tests/test-fflush2.c: New file.
39734         * tests/test-fflush2.sh: New file.
39735         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
39736         tests/test-fflush2.c.
39737         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
39738         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
39739
39740 2008-03-06  Eric Blake  <ebb9@byu.net>
39741
39742         Likewise for ftello.
39743         * modules/ftello (Dependencies): Add extensions.
39744         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
39745
39746 2008-03-06  Bruno Haible  <bruno@clisp.org>
39747
39748         * modules/fseeko (Dependencies): Add extensions.
39749         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
39750         Needed on glibc systems.
39751
39752 2008-03-06  Bruno Haible  <bruno@clisp.org>
39753
39754         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
39755         email address.
39756         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39757
39758 2008-03-06  Bruno Haible  <bruno@clisp.org>
39759
39760         * users.txt: Add libgnupdf.
39761
39762 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
39763
39764         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
39765         (Header File Substitutes, Function Substitutes,
39766         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
39767         (Build robot for gnulib): Fix typo.
39768
39769 2008-03-06  Bruno Haible  <bruno@clisp.org>
39770
39771         * doc/gnulib-tool.texi (VCS Issues): Small updates.
39772         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39773
39774 2008-03-06  Bruno Haible  <bruno@clisp.org>
39775
39776         * doc/func.texi: New file, extracted from doc/gnulib.texi.
39777         * doc/gnulib.texi: Include it.
39778
39779 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39780
39781         * modules/func (License): Change license to unlimited; there was
39782         no LGPL parts in the module anyway.
39783
39784 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39785
39786         * modules/__func__: Renamed to modules/func.
39787         * modules/__func__-tests: Renamed to modules/func-tests.
39788         * tests/test-__func__.c: Renamed to tests/test-func.c.
39789         * m4/__func__.m4: Renamed to m4/func.m4.
39790         * doc/gnulib.texi (__func__): Section renamed to func.
39791         Suggested by Eric Blake <ebb9@byu.net>.
39792
39793 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39794
39795         * doc/gnulib.texi (__func__): Use C99 terminology when talking
39796         about __func__.  Make example self-contained.  Suggested by Eric
39797         Blake <ebb9@byu.net>.
39798
39799         * tests/test-__func__.c (main): Avoid extraneous () around __func.
39800         Suggested by Eric Blake <ebb9@byu.net>.
39801
39802 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39803
39804         * modules/__func__: New file.
39805         * modules/__func__-tests: New file.
39806         * tests/test-__func__.c: New file.
39807         * m4/__func__.m4: New file.
39808         * doc/gnulib.texi (__func__): Document __func__ module.
39809
39810 2008-03-05  Simon Josefsson  <simon@josefsson.org>
39811
39812         * modules/byteswap (License): Re-license as LGPLv2+.
39813
39814 2008-03-05  Simon Josefsson  <simon@josefsson.org>
39815
39816         * doc/Makefile: Add pdf target.
39817
39818 2008-03-05  Simon Josefsson  <simon@josefsson.org>
39819
39820         * modules/inline (License): Use 'unlimited', since there are only
39821         *.m4 files in this module.
39822
39823 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
39824             Bruno Haible  <bruno@clisp.org>
39825
39826         Add support for HP C 7.1 on OpenVMS 8.3.
39827         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
39828
39829 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
39830
39831         Update VMS specifics.
39832         * lib/getopt.c [VMS]: Remove include of unixlib.h.
39833
39834 2008-03-02  Jim Meyering  <meyering@redhat.com>
39835
39836         Remove the last dependency on the "free" module.
39837         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
39838         Reported by Bob Proulx.
39839
39840         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
39841
39842         Remove useless "if" tests before free.  Deprecate "free" module.
39843         * doc/posix-functions/free.texi: Mention that this
39844         module is no longer useful.
39845         * modules/free (Notice): Say this module is obsolete.
39846         * modules/readutmp (Depends-on): Remove free.
39847         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
39848         * lib/putenv.c (putenv): Likewise.
39849         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
39850         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
39851         * tests/test-c-strcasestr.c (main): Likewise.
39852         * tests/test-c-strstr.c (main): Likewise.
39853         * tests/test-mbscasestr1.c (main): Likewise.
39854         * tests/test-mbscasestr2.c (main): Likewise.
39855         * tests/test-mbsstr1.c (main): Likewise.
39856         * tests/test-mbsstr2.c (main): Likewise.
39857         * tests/test-memmem.c (main): Likewise.
39858         * tests/test-strcasestr.c (main): Likewise.
39859         * tests/test-striconv.c (main): Likewise.
39860         * tests/test-striconveh.c (main): Likewise.
39861         * tests/test-striconveha.c (main): Likewise.
39862         * tests/test-strstr.c (main): Likewise.
39863
39864         * build-aux/git-version-gen: Adjust a comment and the Usage string.
39865
39866         bootstrap: sync from coreutils again
39867         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
39868
39869 2008-03-01  Jim Meyering  <meyering@redhat.com>
39870
39871         bootstrap: sync from coreutils
39872         * build-aux/bootstrap (update_po_files): Copy a .po file into place
39873         also when the target doesn't exist.
39874
39875 2008-03-01  Eric Blake  <ebb9@byu.net>
39876
39877         Fix bugs in last patch.
39878         * lib/memchr2.c (memchr2): Fix typo.
39879         * tests/test-memchr2.c: Test previous bug, and don't use GNU
39880         extension.
39881         Reported by Bruce Korb.
39882
39883         New module 'memchr2'.
39884         * modules/memchr2: New file.
39885         * modules/memchr2-tests: Likewise.
39886         * lib/memchr2.h: Likewise.
39887         * lib/memchr2.c: Likewise, based on memchr.c.
39888         * tests/test-memchr2.c: New test.
39889         * MODULES.html.sh (String handling): Add memchr2.
39890
39891 2008-02-29  Bruno Haible  <bruno@clisp.org>
39892
39893         * modules/freadseek-tests: New file.
39894         * tests/test-freadseek.sh: New file.
39895         * tests/test-freadseek.c: New file.
39896
39897         New module 'freadseek'.
39898         * modules/freadseek: New file.
39899         * lib/freadseek.h: New file.
39900         * lib/freadseek.c: New file.
39901         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
39902
39903 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
39904
39905         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
39906         wydawca.
39907
39908         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
39909         program_invocation_name and program_invocation_short_name are
39910         present.
39911
39912 2008-02-28  Bruno Haible  <bruno@clisp.org>
39913
39914         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
39915         * tests/test-freadptr.sh: Also test non-seekable stdin.
39916
39917 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
39918
39919         * build-aux/bootstrap (source_base, m4_base)
39920         (doc_base, tests_base): New variables.
39921         (gnulib_tool_options): Do not hardcode base directories, use
39922         the above variables instead.
39923
39924 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
39925
39926         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
39927
39928 2008-02-28  Bruno Haible  <bruno@clisp.org>
39929
39930         * modules/freadptr-tests: New file.
39931         * tests/test-freadptr.sh: New file.
39932         * tests/test-freadptr.c: New file.
39933
39934         New module 'freadptr'.
39935         * modules/freadptr: New file.
39936         * lib/freadptr.h: New file.
39937         * lib/freadptr.c: New file.
39938         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
39939
39940 2008-02-26  Karl Berry  <karl@freefriends.org>
39941
39942         Sync from Libtool:
39943         * libltdl/argz.c (argz_add, argz_count): New functions.
39944         * libltdl/argz.in.h: Declare them.
39945         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
39946
39947 2008-02-22  Bruno Haible  <bruno@clisp.org>
39948
39949         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
39950         is a pointer type.  Needed for HP-UX 10.
39951         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
39952         * doc/posix-functions/gmtime_r.texi: Likewise.
39953         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
39954
39955 2008-02-24  Bruno Haible  <bruno@clisp.org>
39956
39957         * modules/environ-tests: New file.
39958         * tests/test-environ.c: New file.
39959
39960         New module 'environ'.
39961         * modules/environ: New file.
39962         * lib/unistd.in.h (environ): New declaration.
39963         * m4/environ.m4: New file.
39964         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
39965         after use.
39966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
39967         HAVE_DECL_ENVIRON.
39968         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
39969         HAVE_DECL_ENVIRON.
39970         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
39971         wrong claim that 'environ' is missing on some systems.
39972         * modules/execute (Depends-on): Add environ.
39973         * lib/execute.c (environ): Remove fallback declaration.
39974         * modules/pipe (Depends-on): Add environ.
39975         * lib/pipe.c (environ): Remove fallback declaration.
39976         * modules/setenv (Depends-on): Add environ.
39977         * lib/setenv.c (environ): Remove fallback declaration.
39978         * modules/unsetenv (Depends-on): Add environ.
39979         * lib/unsetenv.c (environ): Remove fallback declaration.
39980         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
39981         m4/environ.m4.
39982         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
39983         (gl_PREREQ_UNSETENV): Likewise.
39984
39985 2008-02-24  Bruno Haible  <bruno@clisp.org>
39986
39987         * doc/posix-functions/environ.texi: Document the MacOS X problem.
39988
39989 2008-02-20  Bob Proulx  <bob@proulx.com>
39990
39991         Enable use of older two part flavor 'git describe'.
39992         * build-aux/git-version-gen: If using the older two part flavor of
39993         git version then recreate the third part now present in the
39994         newer three part flavor of git describe.
39995
39996 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
39997
39998         * lib/fts.c (fts_build): Typo correction to comment.
39999
40000 2008-02-17  Bruno Haible  <bruno@clisp.org>
40001
40002         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
40003         generating no-op conflicts.
40004
40005 2008-02-17  Bruno Haible  <bruno@clisp.org>
40006
40007         Speed up by 10%.
40008         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
40009         result_entries, rather than an index-based loop.
40010
40011 2008-02-17  Bruno Haible  <bruno@clisp.org>
40012
40013         Speed up by 25%.
40014         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
40015         'hashcode_cached'.
40016         (entry_create): New function.
40017         (entry_hashcode): Use the cached hashcode if possible.
40018         (read_changelog_file, try_split_merged_entry): Use entry_create.
40019
40020 2008-02-17  Bruno Haible  <bruno@clisp.org>
40021
40022         Speed up from O(n^2) to O(n) for long ChangeLog files.
40023         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
40024         (read_changelog_file): Change implementation of entries_reversed list
40025         to rbtreehash.
40026         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
40027
40028 2008-02-17  Bruno Haible  <bruno@clisp.org>
40029
40030         New option --split-merged-entry.
40031         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
40032         (find_paragraph_end, try_split_merged_entry): New functions.
40033         (long_options): Add option --split-merged-entry.
40034         (usage): Document option --split-merged-entry.
40035         (main): Implement option --split-merged-entry.
40036         Reported by Eric Blake.
40037
40038 2008-02-17  Bruno Haible  <bruno@clisp.org>
40039
40040         * lib/git-merge-changelog.c: Include c-strstr.h.
40041         (main): Support the "git pull --rebase" situation.
40042         * modules/git-merge-changelog (Depends-on): Add c-strstr.
40043         Reported by Eric Blake.
40044
40045 2008-02-16  Eric Blake  <ebb9@byu.net>
40046
40047         Avoid doubling \ in common case of "c-maybe" quoting style.
40048         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
40049         eliding outer quotes.
40050         * lib/quotearg.h: Document this.
40051         * tests/test-quotearg.c (result_strings, inputs, results_g)
40052         (flag_results, locale_results): Test it by adding a new string to
40053         each test group.
40054         (compare_strings): Test new string.
40055
40056 2008-02-13  Eric Blake  <ebb9@byu.net>
40057
40058         Avoid trigraph quoting in default output.
40059         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
40060         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
40061         unless explicitly requested.
40062         * tests/test-quotearg.c (flag_results, main): Add additional tests.
40063
40064 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
40065
40066         Don't rely on signed integer overflowing to negative value.
40067         * lib/getugroups.c (getugroups): Include <limits.h>.
40068         Instead, compare against INT_MAX, and increment only if the test passes.
40069
40070 2008-02-13  Jim Meyering  <meyering@redhat.com>
40071         and Eric Blake  <ebb9@byu.net>
40072
40073         Avoid shadowing warning and compile errors on Linux.
40074         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
40075         forwarding macros on Linux.
40076         (dcgettext): Define a stub, for Linux.
40077         (results_g, main): Avoid warnings.
40078
40079 2008-02-12  Eric Blake  <ebb9@byu.net>
40080
40081         Silence warning in last patch.
40082         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
40083
40084         Quotearg part 4: add tests, fix c-maybe colon quoting.
40085         * lib/quotearg.h: Improve documentation.
40086         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
40087         escapes when adding outer quotes.  When quoting trigraphs, use
40088         valid C notation.  When quoting NUL, omit extra characters if next
40089         character is not digit.  Alter prototype.
40090         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
40091         callers.
40092         * modules/quotearg-tests: New module.
40093         * tests/test-quotearg.c: New test.
40094
40095 2008-02-07  Eric Blake  <ebb9@byu.net>
40096
40097         Quotearg part 3: add flag to control outer quote elision.
40098         * lib/quotearg.h (c_maybe_quoting_style): New style.
40099         (enum quoting_flags): Better documentation of flags.
40100         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
40101         c-maybe style.
40102         (quotearg_buffer_restyled): Handle new flag to elide outer
40103         quotes.
40104
40105         Quotearg part 2: add flag that can control NUL elision.
40106         * lib/quotearg.h (set_quoting_flags): New prototype.
40107         * lib/quotearg.c (struct quoting_options): Add flag field.
40108         (set_quoting_flags): New function.
40109         (quotearg_buffer_restyled): Add flags parameter.
40110         (quotearg_alloc_mem): Set the flag if length cannot be returned.
40111         (quotearg_n_options): Set the flag, since length cannot be
40112         returned.
40113         (quoting_options_from_style): Default flags correctly.
40114
40115         Quotearg part 1: more wrappers, restore quotearg_char state.
40116         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
40117         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
40118         (quotearg_colon_mem): New wrappers.
40119         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
40120         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
40121         functions.
40122         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
40123         (quotearg_colon_mem): New functions.
40124
40125 2008-02-11  Bruno Haible  <bruno@clisp.org>
40126
40127         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
40128         library in the current directory: it does not work with parallel make.
40129         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40130
40131 2008-02-11  Bruno Haible  <bruno@clisp.org>
40132
40133         * .gitattributes: New file.
40134
40135 2008-02-11  Jim Meyering  <meyering@redhat.com>
40136
40137         useless-if-before-free: Fix reversed exit values.
40138         * build-aux/useless-if-before-free: Use correct values
40139         for EXIT_MATCH and EXIT_NO_MATCH.
40140
40141         * build-aux/useless-if-before-free: Close stdout carefully.
40142
40143 2008-02-10  Bruno Haible  <bruno@clisp.org>
40144
40145         New module 'git-merge-changelog'.
40146         * modules/git-merge-changelog: New file.
40147         * lib/git-merge-changelog.c: New file.
40148
40149 2008-02-10  Jim Meyering  <meyering@redhat.com>
40150
40151         useless-if-before-free: New option: --list (-l).
40152
40153         useless-if-before-free: Don't exit immediately upon open failure.
40154         * build-aux/useless-if-before-free: Exit 2 for errors.
40155         Upon failure to open a file, don't exit immediately.
40156         Rather, just warn and continue with any remaining files.
40157
40158 2008-02-10  Bruno Haible  <bruno@clisp.org>
40159
40160         New abstract list operation 'node_set_value'.
40161         * lib/gl_list.h (gl_list_node_set_value): New function.
40162         (struct gl_list_implementation): New field node_set_value.
40163         * lib/gl_list.c (gl_list_node_set_value): New function.
40164         * lib/gl_array_list.c (gl_array_node_set_value): New function.
40165         (gl_array_list_implementation): Update.
40166         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
40167         (gl_carray_list_implementation): Update.
40168         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
40169         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
40170         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
40171         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
40172         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
40173         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
40174         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
40175         Update.
40176         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
40177         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
40178         (gl_sublist_list_implementation): Update.
40179
40180 2008-02-10  Bruno Haible  <bruno@clisp.org>
40181
40182         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
40183         Needed when ELEMENT is #defined to 'some_type *'.
40184
40185 2008-02-10  Jim Meyering  <meyering@redhat.com>
40186
40187         New script and module: useless-if-before-free
40188         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
40189         * build-aux/useless-if-before-free: New file.
40190         * modules/useless-if-before-free: New file.
40191
40192         * build-aux/gitlog-to-changelog: Use committer date, not author date.
40193
40194         xstrtol_error: Fix typo.
40195         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
40196         s/exit_failure/exit_status/.
40197
40198 2008-02-09  Jim Meyering  <meyering@redhat.com>
40199
40200         New script and module: gitlog-to-changelog
40201         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
40202         * modules/gitlog-to-changelog: New file.
40203         * build-aux/gitlog-to-changelog: New file.
40204
40205 2008-02-08  Jim Meyering  <meyering@redhat.com>
40206
40207         Avoid two "parameter unused" warnings.
40208         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
40209         Mark "st" as used.
40210
40211         Use "git COMMAND", not "git-COMMAND".
40212         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
40213         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
40214         * build-aux/git-version-gen: Use "git status", not "git-status".
40215
40216 2008-02-07  Bruno Haible  <bruno@clisp.org>
40217
40218         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
40219         Avoids a crash on Windows Vista.
40220         Reported by Adam Strzelecki <ono@java.pl> via
40221         Simon Josefsson <simon@josefsson.org>.
40222
40223 2008-02-06  Bruno Haible  <bruno@clisp.org>
40224
40225         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
40226         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
40227         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
40228         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
40229         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40230         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40231         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
40232         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
40233         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40234         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40235         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40236         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40237         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40238         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40239         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40240         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
40241         left-adjust flag.
40242         * tests/test-snprintf-posix.h (test_function): Likewise.
40243         * tests/test-sprintf-posix.h (test_function): Likewise.
40244         * tests/test-vasprintf-posix.c (test_function): Likewise.
40245         * doc/posix-functions/fprintf.texi: Update.
40246         * doc/posix-functions/printf.texi: Update.
40247         * doc/posix-functions/snprintf.texi: Update.
40248         * doc/posix-functions/sprintf.texi: Update.
40249         * doc/posix-functions/vfprintf.texi: Update.
40250         * doc/posix-functions/vprintf.texi: Update.
40251         * doc/posix-functions/vsnprintf.texi: Update.
40252         * doc/posix-functions/vsprintf.texi: Update.
40253         Reported by Peter Fales <psfales@alcatel-lucent.com>.
40254
40255 2008-02-06  Bruno Haible  <bruno@clisp.org>
40256
40257         Fix bug introduced on 2008-01-26.
40258         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
40259
40260 2008-02-06  Bruno Haible  <bruno@clisp.org>
40261
40262         Fix bug introduced on 2007-06-10.
40263         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
40264         !NEED_PRINTF_FLAG_ZERO.
40265
40266 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
40267
40268         getloadavg: use libperfstat on AIX5
40269         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
40270
40271 2008-02-03  Bruno Haible  <bruno@clisp.org>
40272
40273         * lib/diffseq.h: Add comments about required #includes.
40274         Reported by Michael Biggs <gnulib@doubleplum.net>.
40275
40276 2008-02-01  Bruno Haible  <bruno@clisp.org>
40277
40278         * users.txt: Add gnuit.
40279
40280 2008-01-31  Bruno Haible  <bruno@clisp.org>
40281
40282         * lib/md4.c (set_uint32): Mark as inline.
40283         * lib/md5.c (set_uint32): Likewise.
40284         * lib/sha1.c (set_uint32): Likewise.
40285         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
40286         * m4/md5.m4 (gl_MD5): Likewise.
40287         * m4/sha1.m4 (gl_SHA1): Likewise.
40288
40289 2008-01-31  Jim Meyering  <meyering@redhat.com>
40290
40291         Use "sizeof VAR", rather than a literal "4".
40292         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
40293         * lib/md4.c (md4_read_ctx): Likewise.
40294         * lib/sha1.c (sha1_read_ctx): Likewise.
40295
40296 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40297
40298         * tests/test-sha1.c: New file, based on test-md5.c.
40299
40300         * modules/crypto/sha1-tests: New file.
40301
40302 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40303
40304         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
40305
40306 2008-01-31  Jim Meyering  <meyering@redhat.com>
40307
40308         Prefer "sizeof v" over the equivalent "4".
40309         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
40310         * lib/md5.c (set_uint32): Likewise.
40311         * lib/sha1.c (set_uint32): Likewise.
40312
40313 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40314
40315         * lib/sha1.c (set_uint32): Mark function as static.
40316
40317 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40318
40319         md2: clarify comments to say that alignment is not required.
40320         * lib/md2.h: Remove warning about alignment in comment.
40321         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
40322         never been required.
40323
40324 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40325
40326         md4: adapt alignment constraint fix from sha1.
40327         * lib/md4.c (set_uint32): New function, from sha1.c
40328         (md4_read_ctx): Use it.
40329         (md4_finish_ctx): Doc fix.
40330         * lib/md4.h: Doc fix.
40331
40332 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40333
40334         md5: adapt alignment constraint fix from sha1.
40335         * lib/md5.c (set_uint32): New function, from sha1.c
40336         (md5_read_ctx): Use it.
40337         (md5_finish_ctx): Doc fix.
40338         * lib/md5.h: Doc fix.
40339
40340 2008-01-30  Peter Palfrader  <weasel@debian.org>
40341
40342         sha1: remove the result buffer alignment constraint
40343         * lib/sha1.c (set_uint32): New function.
40344         (sha1_read_ctx): Rewrite to remove the result buffer alignment
40345         constraint.
40346         (sha1_finish_ctx): Remove comment warning about alignment constraint.
40347         * lib/sha1.h: Likewise.
40348
40349 2008-01-30  Andreas Schwab  <schwab@suse.de>
40350             Bruno Haible  <bruno@clisp.org>
40351
40352         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
40353         correct definition of LDBL_MIN_EXP.
40354
40355 2008-01-30  Karl Berry  <karl@gnu.org>
40356
40357         * config/srclist-update: try to preserve x bit on updates.
40358         * config/srclistvars.sh: update for karl.
40359
40360 2008-01-29  Jim Meyering  <meyering@redhat.com>
40361
40362         vasnprintf.c: Avoid warning about unused label
40363         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
40364         "overflow" label definition and associated code with the
40365         same cpp condition that guards the sole use of that label.
40366
40367 2008-01-26  Bruno Haible  <bruno@clisp.org>
40368
40369         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
40370         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
40371         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
40372         * lib/isnanl-nolibm.h (isnanl): Likewise.
40373         Reported by Paul Eggert <eggert@cs.ucla.edu>.
40374
40375 2008-01-26  Bruno Haible  <bruno@clisp.org>
40376
40377         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
40378         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
40379
40380 2008-01-26  Bruno Haible  <bruno@clisp.org>
40381
40382         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
40383         GCC >= 4.0 built-in.
40384         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
40385
40386 2008-01-26  Bruno Haible  <bruno@clisp.org>
40387
40388         Rename isnan, applicable to 'double' only, to isnand.
40389         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
40390         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
40391         (configure.ac): Update.
40392         (Include): Replace "isnan.h" with "isnand.h".
40393         * m4/isnand.m4: Renamed from m4/isnan.m4.
40394         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
40395         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
40396         instead of isnan.c.
40397         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
40398         instead of HAVE_ISNAN_IN_LIBC.
40399         (isnand): Renamed from isnan.
40400         * lib/isnand.c: New file.
40401         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
40402         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
40403         (Makefile.am): Update.
40404         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
40405         Include isnand.h instead of isnan.h.
40406         (main): Test isnand instead of isnan.
40407         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
40408         isnan-nolibm.
40409         * modules/frexp (Depends-on): Likewise.
40410         * modules/frexp-tests (Depends-on): Likewise.
40411         * modules/frexp-nolibm (Depends-on): Likewise.
40412         * modules/frexp-nolibm-tests (Depends-on): Likewise.
40413         * modules/isfinite (Depends-on): Likewise.
40414         * modules/round-tests (Depends-on): Likewise.
40415         * modules/signbit (Depends-on): Likewise.
40416         * modules/signbit-tests (Depends-on): Likewise.
40417         * modules/snprintf-posix (Depends-on): Likewise.
40418         * modules/sprintf-posix (Depends-on): Likewise.
40419         * modules/trunc-tests (Depends-on): Likewise.
40420         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40421         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40422         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40423         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40424         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40425         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40426         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40427         * modules/vasnprintf-posix (Depends-on): Likewise.
40428         * modules/vasprintf-posix (Depends-on): Likewise.
40429         * modules/vfprintf-posix (Depends-on): Likewise.
40430         * modules/vsnprintf-posix (Depends-on): Likewise.
40431         * modules/vsprintf-posix (Depends-on): Likewise.
40432         * lib/frexp.c: Include isnand.h instead of isnan.h.
40433         (ISNAN): Set to isnand instead of isnan.
40434         * lib/isfinite.c: Include isnand.h instead of isnan.h.
40435         (gl_isfinited): Use isnand instead of isnan.
40436         * lib/signbitd.c: Include isnand.h instead of isnan.h.
40437         (gl_signbitd): Use isnand instead of isnan.
40438         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
40439         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
40440         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
40441         (main): Use isnand instead of isnan.
40442         * tests/test-round1.c: Include isnand.h.
40443         (main): Use isnand instead of isnan.
40444         * tests/test-round2.c: Include isnand.h instead of isnan.h.
40445         (ISNAN): Set to isnand instead of isnan.
40446         * tests/test-trunc1.c: Include isnand.h.
40447         (main): Use isnand instead of isnan.
40448         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
40449         (equal): Use isnand instead of isnan.
40450         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
40451         isnand-nolibm.
40452         * NEWS: Mention the change.
40453
40454 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
40455             Bruno Haible  <bruno@clisp.org>
40456
40457         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
40458         the GCC builtins for signbits are present and set
40459         REPLACE_SIGNBIT_USING_GCC if so.
40460         * lib/math.in.h (signbit): Define using GCC builtins if
40461         REPLACE_SIGNBIT_USING_GCC is set.
40462         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
40463         REPLACE_SIGNBIT_USING_GCC.
40464         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
40465
40466 2008-01-25  Jim Meyering  <meyering@redhat.com>
40467
40468         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
40469         * lib/poll.c: Include <config.h>, not "config.h".
40470         * tests/test-getaddrinfo.c: Likewise.
40471
40472 2008-01-25  Simon Josefsson  <simon@josefsson.org>
40473
40474         * modules/sockets-tests: New file.
40475
40476 2008-01-24  Simon Josefsson  <simon@josefsson.org>
40477
40478         * modules/sockets: New module, can be used to call WSA_Startup and
40479         WSA_Cleanup when needed.
40480
40481         * lib/sockets.h, lib/sockets.c: New files.
40482
40483         * m4/sockets.m4: New file.
40484
40485         * tests/test-sockets.c: New file.
40486
40487 2008-01-19  Bruno Haible  <bruno@clisp.org>
40488
40489         * doc/posix-headers: Renamed from doc/headers.
40490         * doc/posix-functions: Renamed from doc/functions.
40491         * doc/gnulib.texi: Update.
40492
40493 2008-01-19  Bruno Haible  <bruno@clisp.org>
40494
40495         * doc/glibc-functions/strcasestr.texi: Include contents of
40496         doc/functions/strcasestr.texi, fixing the list of platforms.
40497         * doc/functions/strcasestr.texi: Remove file.
40498
40499 2008-01-19  Bruno Haible  <bruno@clisp.org>
40500
40501         * doc/glibc-functions/memmem.texi: Include contents of
40502         doc/functions/memmem.texi.
40503         * doc/functions/memmem.texi: Remove file.
40504
40505 2008-01-18  Bruno Haible  <bruno@clisp.org>
40506
40507         * doc/glibc-functions/*.texi: New files.
40508         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
40509         to use the new files.
40510
40511 2008-01-17  Bruno Haible  <bruno@clisp.org>
40512
40513         * tests/test-gethostname.c (main): Fix printf statement.
40514
40515 2008-01-17  Simon Josefsson  <simon@josefsson.org>
40516
40517         * modules/gethostname-tests: New file.
40518
40519         * tests/test-gethostname.c: New file.
40520
40521 2008-01-17  Simon Josefsson  <simon@josefsson.org>
40522
40523         * lib/gethostname.c: Include string.h unconditionally, strncpy is
40524         used by the UNAME case.  Reported by Bruno Haible
40525         <bruno@clisp.org>.
40526
40527 2008-01-17  Eric Blake  <ebb9@byu.net>
40528
40529         Convert c-strcasestr to be more efficient.
40530         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
40531         (Depends-on): Add c-strcase, remove malloca, strnlen.
40532         * tests/test-c-strcasestr.c (main): Enhance test.
40533         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
40534
40535 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
40536
40537         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
40538         Use it in creating po/Makevars.
40539
40540 2008-01-15  Simon Josefsson  <simon@josefsson.org>
40541
40542         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
40543         Applications that requires it should initialize libgcrypt
40544         manually.
40545
40546 2008-01-16  Simon Josefsson  <simon@josefsson.org>
40547
40548         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
40549
40550 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
40551
40552         Fix problem with getdate on mingw32 reported by Simon Josefsson
40553         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
40554         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
40555         tzname", when deciding whether to declare tzname.
40556         * lib/strftime.c (tzname): Likewise.
40557
40558 2008-01-15  Bruno Haible  <bruno@clisp.org>
40559
40560         Work around a MacOS X 10.5 bug in frexpl().
40561         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
40562         * doc/functions/frexpl.texi: Document the bug.
40563         Reported by Elias Pipping <pipping@gentoo.org>.
40564
40565 2008-01-14  Eric Blake  <ebb9@byu.net>
40566
40567         Touch up previous patch.
40568         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
40569         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
40570
40571         Convert strcasestr module to use Two-Way algorithm.
40572         * modules/strcasestr-simple: New module, based on the old
40573         strcasestr, but with Two-Way rather than KMP.
40574         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
40575         * lib/string.in.h (rpl_strcasestr): Declare.
40576         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
40577         performance.
40578         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
40579         * modules/string (Makefile.am): Support strcasestr.
40580         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
40581         * modules/strcasestr-tests (Depends-on): Check for alarm.
40582         * tests/test-strcasestr.c: Augment test.
40583         * lib/str-two-way.h: Clean up stray macro.
40584         * NEWS: Document new module.
40585         * MODULES.html.sh (string handling): Likewise.
40586         * doc/functions/strcasestr.texi: New file.
40587         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
40588         here, since it is not a POSIX function.
40589
40590 2008-01-14  Colin Watson  <cjwatson@debian.org>
40591             Bruno Haible  <bruno@clisp.org>
40592
40593         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
40594         works fine; if not, set REPLACE_STRSIGNAL.
40595         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
40596         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40597         REPLACE_STRSIGNAL.
40598         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
40599         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
40600         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
40601
40602 2008-01-14  Bruno Haible  <bruno@clisp.org>
40603
40604         * modules/strsignal (Include): Change to <string.h>.
40605
40606 2008-01-14  Colin Watson  <cjwatson@debian.org>
40607
40608         * modules/argp (Notice): Add a notice recommending to change
40609         XGETTEXT_OPTIONS.
40610         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
40611
40612 2008-01-13  Colin Watson  <cjwatson@debian.org>
40613
40614         * modules/strsignal-tests: New file.
40615         * tests/test-strsignal.c: New file.
40616
40617         * lib/strsignal.c: New file, from glibc with modifications.
40618         * lib/siglist.h: New file, from glibc with modifications.
40619         * lib/string.in.h (strsignal): New declaration.
40620         * m4/strsignal.m4: New file.
40621         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40622         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
40623         * modules/strsignal: New file.
40624         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
40625         HAVE_DECL_STRSIGNAL.
40626
40627 2008-01-13  Bruno Haible  <bruno@clisp.org>
40628
40629         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
40630         locale encoding is not ASCII. Needed for OpenBSD 4.0.
40631         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
40632         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
40633
40634 2008-01-13  Bruno Haible  <bruno@clisp.org>
40635
40636         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
40637         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
40638         * lib/argp.h (__attribute__): Likewise.
40639         * lib/c-stack.c (__attribute__): Likewise.
40640         * lib/error.h (__attribute__): Likewise.
40641         * lib/fts.c (__attribute__): Likewise.
40642         * lib/openat.h (__attribute__): Likewise.
40643         * lib/stdio.in.h (__attribute__): Likewise.
40644         * lib/string.in.h (__attribute__): Likewise.
40645         * lib/utimens.c (__attribute__): Likewise.
40646         * lib/vasnprintf.h (__attribute__): Likewise.
40647         * lib/xalloc.h (__attribute__): Likewise.
40648         * lib/xprintf.h (__attribute__): Likewise.
40649         * lib/xstrtol.h (__attribute__): Likewise.
40650         * lib/xvasprintf.h (__attribute__): Likewise.
40651
40652 2008-01-12  Bruno Haible  <bruno@clisp.org>
40653
40654         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
40655         * doc/glibc-headers/a.out.texi: New file.
40656         * doc/glibc-headers/aliases.texi: New file.
40657         * doc/glibc-headers/alloca.texi: New file.
40658         * doc/glibc-headers/ar.texi: New file.
40659         * doc/glibc-headers/argp.texi: New file.
40660         * doc/glibc-headers/argz.texi: New file.
40661         * doc/glibc-headers/byteswap.texi: New file.
40662         * doc/glibc-headers/crypt.texi: New file.
40663         * doc/glibc-headers/endian.texi: New file.
40664         * doc/glibc-headers/envz.texi: New file.
40665         * doc/glibc-headers/err.texi: New file.
40666         * doc/glibc-headers/error.texi: New file.
40667         * doc/glibc-headers/execinfo.texi: New file.
40668         * doc/glibc-headers/fpu_control.texi: New file.
40669         * doc/glibc-headers/fstab.texi: New file.
40670         * doc/glibc-headers/fts.texi: New file.
40671         * doc/glibc-headers/getopt.texi: New file.
40672         * doc/glibc-headers/ieee754.texi: New file.
40673         * doc/glibc-headers/ifaddrs.texi: New file.
40674         * doc/glibc-headers/libintl.texi: New file.
40675         * doc/glibc-headers/mcheck.texi: New file.
40676         * doc/glibc-headers/mntent.texi: New file.
40677         * doc/glibc-headers/obstack.texi: New file.
40678         * doc/glibc-headers/paths.texi: New file.
40679         * doc/glibc-headers/printf.texi: New file.
40680         * doc/glibc-headers/pty.texi: New file.
40681         * doc/glibc-headers/resolv.texi: New file.
40682         * doc/glibc-headers/shadow.texi: New file.
40683         * doc/glibc-headers/sysexits.texi: New file.
40684         * doc/glibc-headers/ttyent.texi: New file.
40685
40686 2008-01-12  Jim Meyering  <meyering@redhat.com>
40687
40688         announce-gen: emit Gnulib's git-based version string.
40689         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
40690         New option --gnulib-version=V, where V is expected to be
40691         the output of running git describe in the gnulib directory.
40692         (get_tool_versions): Request feedback on xdelta.  I suspect it's
40693         not useful, and plan to stop publishing an xdelta file with each
40694         coreutils release.
40695
40696         * build-aux/announce-gen: Also check for lzma-compressed files.
40697
40698 2008-01-11  Bruno Haible  <bruno@clisp.org>
40699
40700         * tests/test-memmem.c (main): Increase maximum allowed time.
40701         * tests/test-strstr.c (main): Likewise.
40702
40703 2008-01-11  Bruno Haible  <bruno@clisp.org>
40704
40705         * doc/functions/memmem.texi: Add more precisions about platforms.
40706         * doc/functions/strstr.texi: Likewise.
40707
40708 2008-01-10  Eric Blake  <ebb9@byu.net>
40709
40710         * m4/strstr.m4: Delete cruft from copy-n-paste.
40711         Reported by Bruno Haible.
40712
40713 2008-01-10  Bruno Haible  <bruno@clisp.org>
40714
40715         Make c-strstr rely on strstr.
40716         * lib/c-strstr.c: Don't include str-kmp.h.
40717         (c_strstr): Define in terms of strstr.
40718         * modules/c-strstr (Files): Remove lib/str-kmp.h.
40719         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
40720
40721 2008-01-10  Bruno Haible  <bruno@clisp.org>
40722
40723         * doc/gnulib.texi (String Functions in C Locale): New section.
40724         * doc/c-ctype.texi: New file.
40725         * doc/c-strcase.texi: New file.
40726         * doc/c-strcaseeq.texi: New file.
40727         * doc/c-strcasestr.texi: New file.
40728         * doc/c-strstr.texi: New file.
40729         * doc/c-strtod.texi: New file.
40730         * doc/c-strtold.texi: New file.
40731
40732 2008-01-10  Eric Blake  <ebb9@byu.net>
40733
40734         * lib/relocatable.h: Fix a comment.
40735
40736 2008-01-10  Eric Blake  <ebb9@byu.net>
40737
40738         Share two-way algorithm.
40739         * lib/str-two-way.h: New file, merged from...
40740         * lib/memmem.c: ...here...
40741         * lib/strstr.c: ...and here.
40742         * modules/memmem (Files): Use it.
40743         * modules/strstr (Files): Likewise.
40744
40745         Avoid quadratic strstr implementations.
40746         * lib/strstr.c: New file.
40747         * m4/strstr.m4: Likewise.
40748         * modules/strstr: Likewise.
40749         * modules/strstr-tests: Likewise.
40750         * tests/test-strstr.c: Likewise.
40751         * lib/string.in.h (rpl_strstr): Declare.
40752         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
40753         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
40754         * modules/string (Makefile.am): Likewise.
40755         * MODULES.html.sh (string handling): Mention new module.
40756         * doc/functions/strstr.texi (strstr): Document the bug.
40757
40758 2008-01-10  Bruno Haible  <bruno@clisp.org>
40759
40760         * lib/relocatable.h (relocate): State whether result is freshly
40761         allocated or not.
40762         * lib/relocatable.c (relocate): Return a freshly allocated string
40763         instead of a pointer to a privately held string.
40764         Reported by Sylvain Beucler <beuc@gnu.org>.
40765
40766 2008-01-10  Colin Watson  <cjwatson@debian.org>
40767
40768         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
40769         s/S_ISNLK/S_ISLNK/.
40770
40771 2008-01-09  Bruno Haible  <bruno@clisp.org>
40772
40773         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
40774         and other files.
40775         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
40776         if it's only a guess.
40777         * modules/memmem: Simplify by depending on memmem-simple.
40778
40779 2008-01-09  Bruno Haible  <bruno@clisp.org>
40780
40781         Work around OpenBSD 4.0 tdelete() bug.
40782         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
40783         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
40784         macros and don't redefine the enum values.
40785         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
40786         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
40787         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
40788
40789 2008-01-09  Bruno Haible  <bruno@clisp.org>
40790
40791         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
40792         (main): Don't perform the tests if setlocale did not install a UTF-8
40793         locale. Needed on OpenBSD 4.0.
40794         * modules/wcwidth-tests (Depends-on): Add localcharset.
40795
40796 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
40797
40798         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
40799         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
40800         * NEWS: announce this.
40801         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
40802
40803 2008-01-09  Simon Josefsson  <simon@josefsson.org>
40804         and Eric Blake  <ebb9@byu.net>
40805
40806         Add memmem-simple module.
40807         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
40808         (gl_FUNC_MEMMEM): Separate performance from presence checks.
40809         * modules/memmem-simple: New file.
40810         * modules/memmem (Description): Tweak.
40811         * MODULES.html.sh (string handling): Mention new module.
40812         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
40813         addressed by memmem-simple.
40814         * NEWS: Document the difference.
40815
40816 2008-01-09  Eric Blake  <ebb9@byu.net>
40817
40818         Give gcc some memmem optimization hints.
40819         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
40820         (strcasestr): Declare as pure.
40821         * modules/memmem (Maintainer): Claim my implementation.
40822
40823 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40824
40825         Support AIX 6.1 and higher.
40826         * build-aux/config.libpath: Likewise.
40827         * build-aux/config.rpath: Likewise.
40828
40829 2008-01-08  Jim Meyering  <meyering@redhat.com>
40830             Bruno Haible  <bruno@clisp.org>
40831
40832         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
40833         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
40834         Reported by Peter Fales in
40835         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
40836
40837 2008-01-08  Bruno Haible  <bruno@clisp.org>
40838
40839         * modules/unictype/category-of (Depends-on): Add
40840         unictype/category-none.
40841         * modules/unictype/category-and-tests (Depends-on): Add
40842         unictype/category-{L,N,Lu,Nd}.
40843         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
40844         * modules/unictype/category-or-tests (Depends-on): Add
40845         unictype/category-{L,N}.
40846         * modules/unictype/category-name-tests (Depends-on): Add
40847         unictype/category-{Z,Nl}.
40848         Reported by Simon Josefsson.
40849
40850 2008-01-08  Bruno Haible  <bruno@clisp.org>
40851
40852         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
40853         convention better.
40854         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
40855         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
40856         Reported by Peter Miller <millerp@canb.auug.org.au>.
40857
40858 2008-01-08  Eric Blake  <ebb9@byu.net>
40859
40860         Rewrite memmem to guarantee linear complexity without malloc.
40861         * lib/memmem.c (memmem): Use Two-Way rather than
40862         Knuth-Morris-Pratt, to allow O(1) space usage.
40863         (critical_factorization, two_way_short_needle)
40864         (two_way_long_needle): New functions.
40865         (knuth_morris_pratt): Delete.
40866         * modules/memmem (Depends-on): No longer need malloca or stdbool.
40867         Add stdint.
40868         * tests/test-memmem.c (main): Add tests for periodic needle and
40869         sublinear performance.
40870         * doc/functions/memmem.texi (memmem): Document other deficiencies
40871         in cygwin and older glibc.
40872
40873 2008-01-08  Bruno Haible  <bruno@clisp.org>
40874
40875         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
40876         augmentation.
40877
40878 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
40879
40880         Add a configure time option: --disable-acl.
40881         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
40882         AC_ARG_ENABLE(acl).
40883
40884 2008-01-06  Simon Josefsson  <simon@josefsson.org>
40885
40886         * tests/test-localename.c: Don't include obsolete "setenv.h".
40887
40888         * modules/localename-tests (Depends-on): Need unsetenv.
40889
40890 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40891
40892         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
40893
40894 2008-01-06  Colin Watson  <cjwatson@debian.org>
40895
40896         * users.txt: Add man-db.
40897
40898 2008-01-07  Bruno Haible  <bruno@clisp.org>
40899
40900         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
40901         previous section name.
40902
40903 2008-01-07  Bruno Haible  <bruno@clisp.org>
40904
40905         * lib/progname.c (set_program_name): Don't strip off a leading
40906         "lt-" prefix outside a .libs directory.
40907         Suggested by Paul Eggert.
40908
40909 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
40910             Bruno Haible  <bruno@clisp.org>
40911
40912         Improve memory cleanup in 'relocatable' module.
40913         * lib/relocatable.h (compute_curr_prefix): Change return type to
40914         'char *'.
40915         * lib/relocatable.c (compute_curr_prefix): Change return type to
40916         'char *'. Free curr_installdir after use.
40917         (relocate): Free curr_prefix_better after use.
40918         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
40919
40920 2008-01-01  Bruno Haible  <bruno@clisp.org>
40921
40922         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
40923         failure on older glibc systems.
40924         Reported by Peter Fales <psfales@alcatel-lucent.com>.
40925
40926 2008-01-05  Eric Blake  <ebb9@byu.net>
40927
40928         Avoid quadratic system memmem.
40929         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
40930         Reported by Ralf Wildenhues.
40931
40932         Fix memmem test for mingw.
40933         * modules/memmem-tests (configure.ac): Check for alarm.
40934         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
40935         it.
40936         * doc/functions/memmem.texi: New file.
40937         * doc/gnulib.texi (Function Substitutes): Add memmem.
40938         Reported by Bruno Haible.
40939
40940 2008-01-04  Bruno Haible  <bruno@clisp.org>
40941
40942         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
40943         Require gl_HEADER_STRINGS_H_DEFAULTS, not
40944         gl_HEADER_STRING_H_DEFAULTS.
40945
40946 2008-01-04  Eric Blake  <ebb9@byu.net>
40947
40948         Shorten duration of memmem test.
40949         * tests/test-memmem.c (main): Use alarm to declare failure if test
40950         is taking too long.
40951         Reported by Ralf Wildenhues.
40952
40953 2007-12-21  Simon Josefsson  <simon@josefsson.org>
40954
40955         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
40956         string, needed by strerror.
40957
40958 2008-01-03  Colin Watson  <cjwatson@debian.org>
40959             Bruno Haible  <bruno@clisp.org>
40960
40961         * doc/gnulib-tool.texi (Localization): New section.
40962
40963 2008-01-02  Bruno Haible  <bruno@clisp.org>
40964
40965         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
40966         variables to 'unsigned char *' type.
40967         Reported by Paul Eggert.
40968
40969 2008-01-02  Jim Meyering  <jim@meyering.net>
40970
40971         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
40972
40973 2007-12-31  Jim Meyering  <jim@meyering.net>
40974
40975         Avoid use of private FTS type name.
40976         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
40977
40978 2007-12-30  Karl Berry  <karl@gnu.org>
40979
40980         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
40981         work around defect in Texinfo and/or the standalone Info browser.
40982
40983 2007-12-30  Bruno Haible  <bruno@clisp.org>
40984
40985         Unify 5 copies of the KMP code.
40986         * lib/str-kmp.h: New file.
40987         * lib/c-strcasestr.c: Include str-kmp.h.
40988         (knuth_morris_pratt): Remove function.
40989         (c_strcasestr): Update.
40990         * lib/c-strstr.c: Include str-kmp.h.
40991         (knuth_morris_pratt): Remove function.
40992         (c_strcasestr): Update.
40993         * lib/mbscasestr.c: Include str-kmp.h.
40994         (knuth_morris_pratt_unibyte): Remove function.
40995         * lib/mbsstr.c: Include str-kmp.h.
40996         (knuth_morris_pratt_unibyte): Remove function.
40997         * lib/strcasestr.c: Include str-kmp.h.
40998         (knuth_morris_pratt): Remove function.
40999         (strcasestr): Update.
41000         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
41001         * modules/c-strstr (Files): Likewise.
41002         * modules/mbscasestr (Files): Likewise.
41003         * modules/mbsstr (Files): Likewise.
41004         * modules/strcasestr (Files): Likewise.
41005         Suggested by Paul Eggert.
41006
41007 2007-12-30  Bruno Haible  <bruno@clisp.org>
41008
41009         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
41010         defined.
41011
41012 2007-12-30  Bruno Haible  <bruno@clisp.org>
41013
41014         * lib/xmalloca.h: Include xalloc.h.
41015         (xnmalloca): New macro.
41016
41017 2007-12-30  Bruno Haible  <bruno@clisp.org>
41018
41019         * lib/malloca.h (nmalloca): New macro.
41020         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
41021         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
41022         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
41023         knuth_morris_pratt_multibyte): Likewise.
41024         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
41025         knuth_morris_pratt_multibyte): Likewise.
41026         * lib/memmem.c (knuth_morris_pratt): Likewise.
41027         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
41028
41029 2007-12-25  Bruno Haible  <bruno@clisp.org>
41030
41031         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
41032         * lib/glob.c: Don't include openat.h.
41033         (link_exists2_p): Add back the code that deals with the
41034         !GLOB_ALTDIRFUNC case.
41035         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
41036         let it do the filename concatenation.
41037         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
41038         * modules/glob (Depends-on): Remove openat.
41039
41040 2007-12-31  Bruno Haible  <bruno@clisp.org>
41041
41042         * modules/dirfd (License): Change to LGPLv2+.
41043         Approved by Jim Meyering.
41044
41045 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
41046
41047         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
41048         when multiplying M by sizeof (size_t).
41049
41050 2007-12-10  Martin Lambers  <marlam@marlam.de>
41051
41052         Override getpagesize on mingw.
41053         * lib/getpagesize.c: New file.
41054         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
41055         * modules/getpagesize (Files): Add lib/getpagesize.c.
41056         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
41057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41058         REPLACE_GETPAGESIZE.
41059         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
41060
41061 2007-12-25  Bruno Haible  <bruno@clisp.org>
41062
41063         * modules/localcharset (Notice): New field.
41064         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
41065         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
41066
41067 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41068             Bruno Haible  <bruno@clisp.org>
41069
41070         Avoid using the syntax symbol() in formatted documentation.
41071         * MODULES.html.sh (func_module): When replacing symbol() with a
41072         hyperlink, remove the parentheses. Show an error if some remain.
41073         Recognize and render the '...' syntax.
41074         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
41075         Rework. Add paragraph about GCC's inlining.
41076         * doc/alloca.texi: Likewise.
41077         * doc/error.texi: Remove parentheses from symbol reference.
41078         * doc/gnulib-intro.texi: Likewise.
41079         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
41080         * modules/fnmatch (Description): Reword to say "the ... function".
41081         * modules/full-read (Description): Likewise.
41082         * modules/full-write (Description): Likewise.
41083         * modules/safe-read (Description): Likewise.
41084         * modules/safe-write (Description): Likewise.
41085         * modules/strchrnul (Description): Likewise.
41086         * modules/trim (Description): Likewise.
41087         * modules/error (Description): Remove parentheses from symbol
41088         references.
41089         * modules/verror (Description): Likewise.
41090         Reported by Karl Berry.
41091
41092 2007-12-25  Bruno Haible  <bruno@clisp.org>
41093
41094         Fixup after 2007-10-16 commit.
41095         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
41096
41097 2007-12-24  Bruno Haible  <bruno@clisp.org>
41098
41099         Make --enable-relocatable work with DESTDIR.
41100         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
41101         to compute installdir from destprog.
41102         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
41103         also set the RELOC_DESTDIR variable.
41104         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
41105
41106 2007-12-24  Bruno Haible  <bruno@clisp.org>
41107
41108         Fix link error due to xalloc_die().
41109         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
41110         of xreadlink.
41111         * lib/relocwrapper.c: Update comments.
41112         * build-aux/install-reloc: Remove xreadlink.c from file list.
41113         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
41114         xreadlink.c.
41115         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
41116
41117 2007-12-24  Bruno Haible  <bruno@clisp.org>
41118
41119         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
41120         * lib/setenv.h: Remove file.
41121         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
41122         lib/setenv.h.
41123         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
41124         (Depends-on): Add stdlib.
41125         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
41126         gl_FUNC_UNSETENV.
41127         (Include): Replace setenv.h with <stdlib.h>.
41128         * modules/unsetenv: New file.
41129         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
41130         * lib/unsetenv.c: Include <stdlib.h> first.
41131         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
41132         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
41133         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
41134         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
41135         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
41136         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
41137         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
41138         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
41139         * doc/functions/unsetenv.texi: Update.
41140         * modules/xsetenv (Depends-on): Add unsetenv.
41141         * modules/getdate (Depends-on): Likewise.
41142         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
41143         * lib/xsetenv.c: Don't include setenv.h.
41144         * lib/getdate.y: Likewise.
41145         * lib/relocwrapper.c: Likewise.
41146         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
41147         (Depends-on): Add stdlib.
41148         * NEWS: Mention the changes.
41149         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
41150
41151 2007-12-23  Bruno Haible  <bruno@clisp.org>
41152
41153         * lib/memmem.c (memmem): Use lowercase variable names. Tab
41154         indentation.
41155
41156 2007-12-23  Bruno Haible  <bruno@clisp.org>
41157
41158         * lib/c-strcasestr.c: Add more comments.
41159         * lib/c-strstr.c: Likewise.
41160         * lib/mbscasestr.c: Likewise.
41161         * lib/mbsstr.c: Likewise.
41162         * lib/strcasestr.c: Likewise.
41163         * lib/memmem.c: Likewise.
41164
41165 2007-12-23  Bruno Haible  <bruno@clisp.org>
41166
41167         * tests/test-memmem.c: Include <string.h> first.
41168
41169 2007-12-22  Bruno Haible  <bruno@clisp.org>
41170
41171         * gnulib-tool (func_create_testdir): Change $auxdir while generating
41172         the contents of $testsbase.
41173         Reported by Ralf Wildenhues.
41174
41175 2007-12-22  Bruno Haible  <bruno@clisp.org>
41176
41177         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
41178         two variables local_ldadd_before, local_ldadd_last.
41179
41180 2007-12-20  Eric Blake  <ebb9@byu.net>
41181
41182         Work around circular library issue when cross-compiling.
41183         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
41184         that progname.o does not need to pull in rpl_memcmp.
41185
41186 2007-12-19  Eric Blake  <ebb9@byu.net>
41187
41188         Fix memmem to avoid O(n^2) worst-case complexity.
41189         * lib/memmem.c (knuth_morris_pratt): New function.
41190         (memmem): Use it if first few naive iterations fail.
41191         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
41192         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
41193         * modules/memchr (License): Likewise.
41194         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
41195         malloca.
41196         * tests/test-memmem.c: Rewrite, borrowing ideas from
41197         test-mbsstr1.c; the old version wouldn't even compile!
41198         * modules/memmem-tests: New file.
41199         * lib/string.in.h (rpl_memmem): Add declaration.
41200         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
41201         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
41202         REPLACE_MEMMEM.
41203
41204 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41205
41206         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
41207         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
41208         before any system include files, and undef after them all.  This
41209         should fix a problem on VMS reported by John E. Malmberg in
41210         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
41211
41212 2007-12-17  Eric Blake  <ebb9@byu.net>
41213
41214         Revert addition of verify, for BSD/OS.
41215         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
41216         can't handle large files, for the sake of obsolete platforms.
41217         * modules/fseeko (Depends-on): Remove verify.
41218         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
41219         * doc/functions/ftello.texi (ftello): Likewise.
41220         * doc/functions/fgetpos.texi (fgetpos): Likewise.
41221         Reported by Larry Jones.
41222
41223 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
41224
41225         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
41226         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
41227
41228 2007-12-17  Jim Meyering  <meyering@redhat.com>
41229
41230         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
41231         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
41232         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
41233         * modules/getcwd (Depends-on): Add openat.
41234         Reported by Petr Salinger.
41235
41236 2007-12-17  Bruno Haible  <bruno@clisp.org>
41237
41238         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
41239         avoid a segmentation fault of the configure test on x86_64 systems.
41240
41241 2007-12-15  Jim Meyering  <meyering@redhat.com>
41242
41243         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
41244
41245 2007-12-13  Eric Blake  <ebb9@byu.net>
41246
41247         Another fseek test.
41248         * tests/test-fseek.c (main): Also test ungetc handling.
41249         * tests/test-fseeko.c (main): Likewise.
41250         * modules/fseeko (Depends-on): Add verify.
41251         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
41252         large.
41253         Reported by Larry Jones.
41254
41255         Fix fseeko on mingw.
41256         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
41257         seek.
41258
41259         Beef up fseek tests.
41260         * tests/test-fseek.c (main): Also test eof handling.
41261         * tests/test-fseeko.c (main): Likewise.
41262         Reported by Larry Jones.
41263
41264 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
41265
41266         Fix fseeko on BSD-based platforms.
41267         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
41268         successful seek.
41269
41270 2007-12-12  Eric Blake  <ebb9@byu.net>
41271
41272         Allow circular dependency of separate libtests.a
41273         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
41274         when use_libtests.
41275
41276 2007-12-11  Eric Blake  <ebb9@byu.net>
41277
41278         Fix bug with -0.0L in previous patch.
41279         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
41280         * tests/test-isnan.c (main): Also test on zeroes.
41281         * tests/test-isnanf.c (main): Likewise.
41282         * tests/test-isnanl.h (main): Likewise.
41283
41284         Detect pseudo-denormals on x86 even when cross-compiling.
41285         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
41286         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
41287         invalid bit patterns that happen to satisfy ==.
41288
41289         Avoid link failures with separate libtests.a.
41290         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
41291         last, to satisfy circular dependencies.
41292
41293 2007-12-11  Eric Blake  <ebb9@byu.net>
41294         and Bruno Haible  <bruno@clisp.org>
41295
41296         Fix OpenBSD 4.0 <float.h> handling of long double.
41297         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
41298         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
41299         * doc/headers/float.texi (float.h): Document OpenBSD bug.
41300
41301 2007-12-11  Jim Meyering  <meyering@redhat.com>
41302
41303         * users.txt: Add libvirt.
41304
41305         Support versions of autoconf prior to 2.59c.
41306         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
41307         if it is not already defined.
41308
41309 2007-12-09  Bruno Haible  <bruno@clisp.org>
41310
41311         Let 'gnulib-tool --import' collect sources needed for the tests in
41312         tests/ rather than in lib/.
41313         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
41314         argument. If true, add rules to generate libtests.a, and put libtests.a
41315         into $(LDADD). Consider source files in subdirectories and set
41316         uses_subdirs.
41317         (func_emit_initmacro_start, func_emit_initmacro_end,
41318         func_emit_initmacro_done): Pass all arguments explicitly.
41319         (func_import): Determine two module lists main_modules,
41320         testsrelated_modules. Determine use_libtests. Determine two variables
41321         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
41322         instead of just sed_transform_lib_file. Determine two variables
41323         main_files and testsrelated_files. Compute 'files' as the union of
41324         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
41325         func_add_or_update. In the generated gnulib-comp.m4, collect the
41326         object files for tests/ in different variables than those for lib/.
41327         Substitute LIBTESTS_LIBDEPS.
41328         (func_create_testdir): Combine the uses_subdirs results from
41329         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
41330
41331 2007-12-09  Bruno Haible  <bruno@clisp.org>
41332
41333         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
41334         the build-aux directory.
41335
41336 2007-12-09  Bruno Haible  <bruno@clisp.org>
41337
41338         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
41339         introduced on 2006-09-09.
41340
41341 2007-12-07  Jim Meyering  <meyering@redhat.com>
41342
41343         Let these macros work also with autoconf-2.59.
41344         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
41345         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
41346         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
41347
41348 2007-12-06  Jim Meyering  <meyering@redhat.com>
41349
41350         Avoid a configure-time syntax error in gl_FUNC_ACL.
41351         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
41352         function in each branch, before testing the cache variable.
41353
41354 2007-12-04  Eric Blake  <ebb9@byu.net>
41355
41356         Make scripts executable.
41357         * build-aux/config.guess: Add execute permissions.
41358         * build-aux/config.sub: Likewise.
41359         * build-aux/gendocs.sh: Likewise.
41360
41361         Fix frexp on mingw.
41362         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
41363         cross-compiling.
41364         * doc/functions/frexp.texi (frexp): Document the bug.
41365
41366         Make cygwin fseeko check more reliable.
41367         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
41368         version numbers, rather than unrelated feature check.
41369         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
41370         * doc/functions/ftello.texi (ftello): Likewise.
41371         Reported by Bruno Haible.
41372
41373         * m4/strerror.m4: Bump version number.
41374
41375 2007-12-03  Bruno Haible  <bruno@clisp.org>
41376
41377         * doc/functions/mprotect.texi: Mention the mingw problem.
41378
41379 2007-12-03  Eric Blake  <ebb9@byu.net>
41380
41381         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
41382         REPLACE_STRERROR is initialized before this macro.
41383
41384 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
41385
41386         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
41387         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
41388         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
41389         put -lsec in even for programs other than 'ls'.  This fixes a problem
41390         for gettext reported by Bruno Haible in
41391         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
41392         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
41393         Add support for Solaris 10.  This isn't efficient, but should get the
41394         job done for now.
41395
41396 2007-12-03  James Youngman  <jay@gnu.org>
41397
41398         * doc/regexprops-generic.texi: change "an close-group" to "a
41399         close-group" and "illegal" to "not allowed".
41400
41401 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41402
41403         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
41404         pr_byname.h. Needed for the rare case when the maintainer has done
41405         "make maintainer-clean" in the source directory and then attempts a
41406         build outside the source directory.
41407         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
41408         scripts_byname.h.
41409
41410 2007-12-02  Martin Lambers <marlam@marlam.de>
41411             Bruno Haible  <bruno@clisp.org>
41412
41413         * lib/getpagesize.h: Remove file.
41414         * lib/unistd.in.h: Include declaration of getpagesize here.
41415         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
41416         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
41417         HAVE_SYS_PARAM_H.
41418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
41419         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
41420         * modules/getpagesize (Files): Remove lib/getpagesize.h.
41421         (Depends-on): Add unistd.
41422         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41423         (Include): Use <unistd.h> instead of getpagesize.h.
41424         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
41425         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
41426         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
41427         gl_GETPAGESIZE invocation, already handled by module dependency.
41428         * lib/pagealign_alloc.c: Don't include getpagesize.h.
41429
41430 2007-12-02  Bruno Haible  <bruno@clisp.org>
41431
41432         * modules/strings-tests: New file.
41433         * tests/test-strings.c: New file.
41434
41435         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
41436         * lib/strings.in.h: New file.
41437         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
41438         * m4/strings_h.m4: New file.
41439         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
41440         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
41441         * modules/strings: New file.
41442         * modules/string (Makefile.am): Update.
41443         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
41444         Reported by Karl Berry.
41445
41446 2007-12-01  Eric Blake  <ebb9@byu.net>
41447
41448         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
41449         accomodate fix in cygwin 1.5.25.
41450
41451 2007-12-01  Jim Meyering  <meyering@redhat.com>
41452
41453         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
41454         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
41455         that would inhibit utf8-optimization of a regexp containing line-
41456         or buffer-anchors, e.g., `^', `$'.
41457
41458 2007-11-30  Bruno Haible  <bruno@clisp.org>
41459
41460         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
41461         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
41462         glthread_recursive_lock_init.
41463         * lib/lock.c (glthread_recursive_lock_init)
41464         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
41465         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41466
41467 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
41468
41469         New function qset_acl, like set_acl but with syscall semantics.
41470         * lib/acl.h (qset_acl): New decl.
41471         * lib/acl.c (qset_acl): New function.
41472         (set_acl): Use new function.  Use more-consistent diagnostics.
41473
41474 2007-11-28  Jim Meyering  <meyering@redhat.com>
41475
41476         * modules/physmem (License): Change from GPL to LGPLv2+.
41477
41478 2007-11-26  Bruno Haible  <bruno@clisp.org>
41479
41480         * lib/vasnprintf.c (decode_long_double): Don't abort if the
41481         'long double' type has excess precision.
41482         Reported by Jim Meyering in
41483         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
41484
41485 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41486
41487         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
41488         Sync from <http://gnu.org/licenses>.
41489         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
41490         with license text from same location.
41491         * doc/maintain.texi, doc/standards.texi:  Sync from
41492         <http://savannah.gnu.org/projects/gnustandards>.
41493
41494 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
41495         and Jim Meyering  <meyering@redhat.com>
41496
41497         Adjust getdate' grammar to accept a slightly more regular language.
41498         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
41499         Before, the former was rejected.
41500         * lib/getdate.y (digits_to_date_time): New function, factored
41501         out of ...
41502         (number): ...here.  Just call digits_to_date_time.
41503         (hybrid): New non-terminal to handle an <unsigned number,
41504         signed relative offset> sequence consistently.
41505
41506 2007-11-18  Jim Meyering  <meyering@redhat.com>
41507
41508         Pull my changes from coreutils:
41509         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
41510         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
41511         use of $gnulib_tool_option_extras, so that it's separated from the
41512         preceding argument.
41513
41514         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
41515         * build-aux/bootstrap (cp_mark_as_generated): Create any required
41516         parent destination directories before copying a file into place.
41517
41518 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
41519
41520         bootstrap: work also with 4-argument variant of AC_INIT
41521         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
41522
41523 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41524
41525         Port test-getaddrinfo to Solaris.
41526         Problem reported by Bruno Haible in
41527         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
41528         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
41529         explanation of setting 'hints'.
41530         Don't reject an implementation merely because it returns EAI_SERVICE.
41531         (EAI_SERVICE): Define to 0 if not defined.
41532
41533 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
41534
41535         The license of gnu-make and posix-shell is now "GPLed build tool".
41536         * modules/gnu-make (License): Likewise.
41537         * modules/posix-shell (License): Likewise.
41538
41539         New module posix-shell, for determining a POSIX shell
41540         or perhaps something that is close enough to a POSIX shell.
41541         * m4/posix-shell.m4: New file.
41542         * modules/posix-shell: New file.
41543
41544         * MODULES.html.sh: Mention new module.
41545
41546         New module gnu-make, for determining whether we're using GNU Make.
41547         * m4/gnu-make.m4: New file.
41548         * modules/gnu-make: New file.
41549         * MODULES.html.sh: Mention new module.
41550
41551 2007-11-14  Jim Meyering  <meyering@redhat.com>
41552
41553         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
41554         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
41555         use this macro to create a function _definition_.
41556         Remove useless "#undef ARGMATCH_DIE".
41557
41558 2007-11-14  Bruno Haible  <bruno@clisp.org>
41559
41560         * lib/config.charset: Update for OpenBSD 4.1.
41561         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
41562
41563 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
41564
41565         Document 64-bit #if problems in stdint.texi.
41566         * doc/headers/stdint.texi (stdint.h): Mention problems with
41567         64-bit-#if, and how to work around them.
41568
41569         Don't insist on 'long long int' support in the preprocessor.  It
41570         breaks too many things.  For example, PRIdMAX still uses a 'long
41571         long int' format with the latest Sun compiler, even though
41572         HAVE_LONG_LONG_INT isn't defined due to that compiler's
41573         preprocessor problem.  This causes the latest coreutils to dump
41574         core on Solaris 10 sparc with the Sun C compiler.
41575         Instead, fix the 2007-10-16 problem in a different way, by evaluating
41576         the troublesome expressions at configure-time, not at #if-time.
41577         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
41578         preprocessor.
41579         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
41580         compile-time C checks, done at 'configure'-time.
41581         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
41582         * modules/inttypes (Makefile): Substitute the new symbols that
41583         gl_INTTYPES_H now generates.
41584         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
41585
41586 2007-11-12  Bruno Haible  <bruno@clisp.org>
41587
41588         Tests for Unicode character classification functions.
41589
41590         * modules/unictype/bidicategory-byname-tests: New file.
41591         * modules/unictype/bidicategory-name-tests: New file.
41592         * modules/unictype/bidicategory-of-tests: New file.
41593         * modules/unictype/bidicategory-test-tests: New file.
41594         * modules/unictype/block-list-tests: New file.
41595         * modules/unictype/block-of-tests: New file.
41596         * modules/unictype/block-test-tests: New file.
41597         * modules/unictype/category-C-tests: New file.
41598         * modules/unictype/category-Cc-tests: New file.
41599         * modules/unictype/category-Cf-tests: New file.
41600         * modules/unictype/category-Cn-tests: New file.
41601         * modules/unictype/category-Co-tests: New file.
41602         * modules/unictype/category-Cs-tests: New file.
41603         * modules/unictype/category-L-tests: New file.
41604         * modules/unictype/category-Ll-tests: New file.
41605         * modules/unictype/category-Lm-tests: New file.
41606         * modules/unictype/category-Lo-tests: New file.
41607         * modules/unictype/category-Lt-tests: New file.
41608         * modules/unictype/category-Lu-tests: New file.
41609         * modules/unictype/category-M-tests: New file.
41610         * modules/unictype/category-Mc-tests: New file.
41611         * modules/unictype/category-Me-tests: New file.
41612         * modules/unictype/category-Mn-tests: New file.
41613         * modules/unictype/category-N-tests: New file.
41614         * modules/unictype/category-Nd-tests: New file.
41615         * modules/unictype/category-Nl-tests: New file.
41616         * modules/unictype/category-No-tests: New file.
41617         * modules/unictype/category-P-tests: New file.
41618         * modules/unictype/category-Pc-tests: New file.
41619         * modules/unictype/category-Pd-tests: New file.
41620         * modules/unictype/category-Pe-tests: New file.
41621         * modules/unictype/category-Pf-tests: New file.
41622         * modules/unictype/category-Pi-tests: New file.
41623         * modules/unictype/category-Po-tests: New file.
41624         * modules/unictype/category-Ps-tests: New file.
41625         * modules/unictype/category-S-tests: New file.
41626         * modules/unictype/category-Sc-tests: New file.
41627         * modules/unictype/category-Sk-tests: New file.
41628         * modules/unictype/category-Sm-tests: New file.
41629         * modules/unictype/category-So-tests: New file.
41630         * modules/unictype/category-Z-tests: New file.
41631         * modules/unictype/category-Zl-tests: New file.
41632         * modules/unictype/category-Zp-tests: New file.
41633         * modules/unictype/category-Zs-tests: New file.
41634         * modules/unictype/category-and-not-tests: New file.
41635         * modules/unictype/category-and-tests: New file.
41636         * modules/unictype/category-byname-tests: New file.
41637         * modules/unictype/category-name-tests: New file.
41638         * modules/unictype/category-none-tests: New file.
41639         * modules/unictype/category-of-tests: New file.
41640         * modules/unictype/category-or-tests: New file.
41641         * modules/unictype/category-test-withtable-tests: New file.
41642         * modules/unictype/combining-class-tests: New file.
41643         * modules/unictype/ctype-alnum-tests: New file.
41644         * modules/unictype/ctype-alpha-tests: New file.
41645         * modules/unictype/ctype-blank-tests: New file.
41646         * modules/unictype/ctype-cntrl-tests: New file.
41647         * modules/unictype/ctype-digit-tests: New file.
41648         * modules/unictype/ctype-graph-tests: New file.
41649         * modules/unictype/ctype-lower-tests: New file.
41650         * modules/unictype/ctype-print-tests: New file.
41651         * modules/unictype/ctype-punct-tests: New file.
41652         * modules/unictype/ctype-space-tests: New file.
41653         * modules/unictype/ctype-upper-tests: New file.
41654         * modules/unictype/ctype-xdigit-tests: New file.
41655         * modules/unictype/decimal-digit-tests: New file.
41656         * modules/unictype/digit-tests: New file.
41657         * modules/unictype/mirror-tests: New file.
41658         * modules/unictype/numeric-tests: New file.
41659         * modules/unictype/property-alphabetic-tests: New file.
41660         * modules/unictype/property-ascii-hex-digit-tests: New file.
41661         * modules/unictype/property-bidi-arabic-digit-tests: New file.
41662         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
41663         * modules/unictype/property-bidi-block-separator-tests: New file.
41664         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
41665         * modules/unictype/property-bidi-common-separator-tests: New file.
41666         * modules/unictype/property-bidi-control-tests: New file.
41667         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
41668         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
41669         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
41670         * modules/unictype/property-bidi-european-digit-tests: New file.
41671         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
41672         * modules/unictype/property-bidi-left-to-right-tests: New file.
41673         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
41674         * modules/unictype/property-bidi-other-neutral-tests: New file.
41675         * modules/unictype/property-bidi-pdf-tests: New file.
41676         * modules/unictype/property-bidi-segment-separator-tests: New file.
41677         * modules/unictype/property-bidi-whitespace-tests: New file.
41678         * modules/unictype/property-byname-tests: New file.
41679         * modules/unictype/property-combining-tests: New file.
41680         * modules/unictype/property-composite-tests: New file.
41681         * modules/unictype/property-currency-symbol-tests: New file.
41682         * modules/unictype/property-dash-tests: New file.
41683         * modules/unictype/property-decimal-digit-tests: New file.
41684         * modules/unictype/property-default-ignorable-code-point-tests: New file.
41685         * modules/unictype/property-deprecated-tests: New file.
41686         * modules/unictype/property-diacritic-tests: New file.
41687         * modules/unictype/property-extender-tests: New file.
41688         * modules/unictype/property-format-control-tests: New file.
41689         * modules/unictype/property-grapheme-base-tests: New file.
41690         * modules/unictype/property-grapheme-extend-tests: New file.
41691         * modules/unictype/property-grapheme-link-tests: New file.
41692         * modules/unictype/property-hex-digit-tests: New file.
41693         * modules/unictype/property-hyphen-tests: New file.
41694         * modules/unictype/property-id-continue-tests: New file.
41695         * modules/unictype/property-id-start-tests: New file.
41696         * modules/unictype/property-ideographic-tests: New file.
41697         * modules/unictype/property-ids-binary-operator-tests: New file.
41698         * modules/unictype/property-ids-trinary-operator-tests: New file.
41699         * modules/unictype/property-ignorable-control-tests: New file.
41700         * modules/unictype/property-iso-control-tests: New file.
41701         * modules/unictype/property-join-control-tests: New file.
41702         * modules/unictype/property-left-of-pair-tests: New file.
41703         * modules/unictype/property-line-separator-tests: New file.
41704         * modules/unictype/property-logical-order-exception-tests: New file.
41705         * modules/unictype/property-lowercase-tests: New file.
41706         * modules/unictype/property-math-tests: New file.
41707         * modules/unictype/property-non-break-tests: New file.
41708         * modules/unictype/property-not-a-character-tests: New file.
41709         * modules/unictype/property-numeric-tests: New file.
41710         * modules/unictype/property-other-alphabetic-tests: New file.
41711         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
41712         * modules/unictype/property-other-grapheme-extend-tests: New file.
41713         * modules/unictype/property-other-id-continue-tests: New file.
41714         * modules/unictype/property-other-id-start-tests: New file.
41715         * modules/unictype/property-other-lowercase-tests: New file.
41716         * modules/unictype/property-other-math-tests: New file.
41717         * modules/unictype/property-other-uppercase-tests: New file.
41718         * modules/unictype/property-paired-punctuation-tests: New file.
41719         * modules/unictype/property-paragraph-separator-tests: New file.
41720         * modules/unictype/property-pattern-syntax-tests: New file.
41721         * modules/unictype/property-pattern-white-space-tests: New file.
41722         * modules/unictype/property-private-use-tests: New file.
41723         * modules/unictype/property-punctuation-tests: New file.
41724         * modules/unictype/property-quotation-mark-tests: New file.
41725         * modules/unictype/property-radical-tests: New file.
41726         * modules/unictype/property-sentence-terminal-tests: New file.
41727         * modules/unictype/property-soft-dotted-tests: New file.
41728         * modules/unictype/property-space-tests: New file.
41729         * modules/unictype/property-terminal-punctuation-tests: New file.
41730         * modules/unictype/property-test-tests: New file.
41731         * modules/unictype/property-titlecase-tests: New file.
41732         * modules/unictype/property-unassigned-code-value-tests: New file.
41733         * modules/unictype/property-unified-ideograph-tests: New file.
41734         * modules/unictype/property-uppercase-tests: New file.
41735         * modules/unictype/property-variation-selector-tests: New file.
41736         * modules/unictype/property-white-space-tests: New file.
41737         * modules/unictype/property-xid-continue-tests: New file.
41738         * modules/unictype/property-xid-start-tests: New file.
41739         * modules/unictype/property-zero-width-tests: New file.
41740         * modules/unictype/scripts-tests: New file.
41741         * modules/unictype/syntax-c-ident-tests: New file.
41742         * modules/unictype/syntax-c-whitespace-tests: New file.
41743         * modules/unictype/syntax-java-ident-tests: New file.
41744         * modules/unictype/syntax-java-whitespace-tests: New file.
41745         * tests/unictype/test-bidi_byname.c: New file.
41746         * tests/unictype/test-bidi_name.c: New file.
41747         * tests/unictype/test-bidi_of.c: New file.
41748         * tests/unictype/test-bidi_test.c: New file.
41749         * tests/unictype/test-block_list.c: New file.
41750         * tests/unictype/test-block_of.c: New file.
41751         * tests/unictype/test-block_test.c: New file.
41752         * tests/unictype/test-categ_and.c: New file.
41753         * tests/unictype/test-categ_and_not.c: New file.
41754         * tests/unictype/test-categ_byname.c: New file.
41755         * tests/unictype/test-categ_name.c: New file.
41756         * tests/unictype/test-categ_none.c: New file.
41757         * tests/unictype/test-categ_of.c: New file.
41758         * tests/unictype/test-categ_or.c: New file.
41759         * tests/unictype/test-categ_test_withtable.c: New file.
41760         * tests/unictype/test-combining.c: New file.
41761         * tests/unictype/test-decdigit.c: New file.
41762         * tests/unictype/test-digit.c: New file.
41763         * tests/unictype/test-mirror.c: New file.
41764         * tests/unictype/test-numeric.c: New file.
41765         * tests/unictype/test-pr_byname.c: New file.
41766         * tests/unictype/test-pr_test.c: New file.
41767         * tests/unictype/test-predicate-part1.h: New file.
41768         * tests/unictype/test-predicate-part2.h: New file.
41769         * tests/unictype/test-scripts.c: New file.
41770         * tests/unictype/test-sy_c_ident.c: New file.
41771         * tests/unictype/test-sy_java_ident.c: New file.
41772
41773         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
41774         for Unicode 5.0.0.
41775         * tests/unictype/test-categ_Cc.c: Likewise.
41776         * tests/unictype/test-categ_Cf.c: Likewise.
41777         * tests/unictype/test-categ_Cn.c: Likewise.
41778         * tests/unictype/test-categ_Co.c: Likewise.
41779         * tests/unictype/test-categ_Cs.c: Likewise.
41780         * tests/unictype/test-categ_L.c: Likewise.
41781         * tests/unictype/test-categ_Ll.c: Likewise.
41782         * tests/unictype/test-categ_Lm.c: Likewise.
41783         * tests/unictype/test-categ_Lo.c: Likewise.
41784         * tests/unictype/test-categ_Lt.c: Likewise.
41785         * tests/unictype/test-categ_Lu.c: Likewise.
41786         * tests/unictype/test-categ_M.c: Likewise.
41787         * tests/unictype/test-categ_Mc.c: Likewise.
41788         * tests/unictype/test-categ_Me.c: Likewise.
41789         * tests/unictype/test-categ_Mn.c: Likewise.
41790         * tests/unictype/test-categ_N.c: Likewise.
41791         * tests/unictype/test-categ_Nd.c: Likewise.
41792         * tests/unictype/test-categ_Nl.c: Likewise.
41793         * tests/unictype/test-categ_No.c: Likewise.
41794         * tests/unictype/test-categ_P.c: Likewise.
41795         * tests/unictype/test-categ_Pc.c: Likewise.
41796         * tests/unictype/test-categ_Pd.c: Likewise.
41797         * tests/unictype/test-categ_Pe.c: Likewise.
41798         * tests/unictype/test-categ_Pf.c: Likewise.
41799         * tests/unictype/test-categ_Pi.c: Likewise.
41800         * tests/unictype/test-categ_Po.c: Likewise.
41801         * tests/unictype/test-categ_Ps.c: Likewise.
41802         * tests/unictype/test-categ_S.c: Likewise.
41803         * tests/unictype/test-categ_Sc.c: Likewise.
41804         * tests/unictype/test-categ_Sk.c: Likewise.
41805         * tests/unictype/test-categ_Sm.c: Likewise.
41806         * tests/unictype/test-categ_So.c: Likewise.
41807         * tests/unictype/test-categ_Z.c: Likewise.
41808         * tests/unictype/test-categ_Zl.c: Likewise.
41809         * tests/unictype/test-categ_Zp.c: Likewise.
41810         * tests/unictype/test-categ_Zs.c: Likewise.
41811         * tests/unictype/test-ctype_alnum.c: Likewise.
41812         * tests/unictype/test-ctype_alpha.c: Likewise.
41813         * tests/unictype/test-ctype_blank.c: Likewise.
41814         * tests/unictype/test-ctype_cntrl.c: Likewise.
41815         * tests/unictype/test-ctype_digit.c: Likewise.
41816         * tests/unictype/test-ctype_graph.c: Likewise.
41817         * tests/unictype/test-ctype_lower.c: Likewise.
41818         * tests/unictype/test-ctype_print.c: Likewise.
41819         * tests/unictype/test-ctype_punct.c: Likewise.
41820         * tests/unictype/test-ctype_space.c: Likewise.
41821         * tests/unictype/test-ctype_upper.c: Likewise.
41822         * tests/unictype/test-ctype_xdigit.c: Likewise.
41823         * tests/unictype/test-decdigit.h: Likewise.
41824         * tests/unictype/test-digit.h: Likewise.
41825         * tests/unictype/test-numeric.h: Likewise.
41826         * tests/unictype/test-pr_alphabetic.c: Likewise.
41827         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
41828         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
41829         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
41830         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
41831         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
41832         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
41833         * tests/unictype/test-pr_bidi_control.c: Likewise.
41834         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
41835         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
41836         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
41837         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
41838         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
41839         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
41840         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
41841         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
41842         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
41843         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
41844         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
41845         * tests/unictype/test-pr_combining.c: Likewise.
41846         * tests/unictype/test-pr_composite.c: Likewise.
41847         * tests/unictype/test-pr_currency_symbol.c: Likewise.
41848         * tests/unictype/test-pr_dash.c: Likewise.
41849         * tests/unictype/test-pr_decimal_digit.c: Likewise.
41850         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
41851         * tests/unictype/test-pr_deprecated.c: Likewise.
41852         * tests/unictype/test-pr_diacritic.c: Likewise.
41853         * tests/unictype/test-pr_extender.c: Likewise.
41854         * tests/unictype/test-pr_format_control.c: Likewise.
41855         * tests/unictype/test-pr_grapheme_base.c: Likewise.
41856         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
41857         * tests/unictype/test-pr_grapheme_link.c: Likewise.
41858         * tests/unictype/test-pr_hex_digit.c: Likewise.
41859         * tests/unictype/test-pr_hyphen.c: Likewise.
41860         * tests/unictype/test-pr_id_continue.c: Likewise.
41861         * tests/unictype/test-pr_id_start.c: Likewise.
41862         * tests/unictype/test-pr_ideographic.c: Likewise.
41863         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
41864         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
41865         * tests/unictype/test-pr_ignorable_control.c: Likewise.
41866         * tests/unictype/test-pr_iso_control.c: Likewise.
41867         * tests/unictype/test-pr_join_control.c: Likewise.
41868         * tests/unictype/test-pr_left_of_pair.c: Likewise.
41869         * tests/unictype/test-pr_line_separator.c: Likewise.
41870         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
41871         * tests/unictype/test-pr_lowercase.c: Likewise.
41872         * tests/unictype/test-pr_math.c: Likewise.
41873         * tests/unictype/test-pr_non_break.c: Likewise.
41874         * tests/unictype/test-pr_not_a_character.c: Likewise.
41875         * tests/unictype/test-pr_numeric.c: Likewise.
41876         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
41877         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
41878         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
41879         * tests/unictype/test-pr_other_id_continue.c: Likewise.
41880         * tests/unictype/test-pr_other_id_start.c: Likewise.
41881         * tests/unictype/test-pr_other_lowercase.c: Likewise.
41882         * tests/unictype/test-pr_other_math.c: Likewise.
41883         * tests/unictype/test-pr_other_uppercase.c: Likewise.
41884         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
41885         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
41886         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
41887         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
41888         * tests/unictype/test-pr_private_use.c: Likewise.
41889         * tests/unictype/test-pr_punctuation.c: Likewise.
41890         * tests/unictype/test-pr_quotation_mark.c: Likewise.
41891         * tests/unictype/test-pr_radical.c: Likewise.
41892         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
41893         * tests/unictype/test-pr_soft_dotted.c: Likewise.
41894         * tests/unictype/test-pr_space.c: Likewise.
41895         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
41896         * tests/unictype/test-pr_titlecase.c: Likewise.
41897         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
41898         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
41899         * tests/unictype/test-pr_uppercase.c: Likewise.
41900         * tests/unictype/test-pr_variation_selector.c: Likewise.
41901         * tests/unictype/test-pr_white_space.c: Likewise.
41902         * tests/unictype/test-pr_xid_continue.c: Likewise.
41903         * tests/unictype/test-pr_xid_start.c: Likewise.
41904         * tests/unictype/test-pr_zero_width.c: Likewise.
41905         * tests/unictype/test-sy_c_whitespace.c: Likewise.
41906         * tests/unictype/test-sy_java_whitespace.c: Likewise.
41907
41908 2007-11-12  Bruno Haible  <bruno@clisp.org>
41909
41910         Unicode character classification functions.
41911         * lib/unictype.h: New file.
41912         * modules/unictype/base: New file.
41913         * modules/unictype/category-L: New file.
41914         * modules/unictype/category-Lu: New file.
41915         * modules/unictype/category-Ll: New file.
41916         * modules/unictype/category-Lt: New file.
41917         * modules/unictype/category-Lm: New file.
41918         * modules/unictype/category-Lo: New file.
41919         * modules/unictype/category-M: New file.
41920         * modules/unictype/category-Mn: New file.
41921         * modules/unictype/category-Mc: New file.
41922         * modules/unictype/category-Me: New file.
41923         * modules/unictype/category-N: New file.
41924         * modules/unictype/category-Nd: New file.
41925         * modules/unictype/category-Nl: New file.
41926         * modules/unictype/category-No: New file.
41927         * modules/unictype/category-P: New file.
41928         * modules/unictype/category-Pc: New file.
41929         * modules/unictype/category-Pd: New file.
41930         * modules/unictype/category-Ps: New file.
41931         * modules/unictype/category-Pe: New file.
41932         * modules/unictype/category-Pi: New file.
41933         * modules/unictype/category-Pf: New file.
41934         * modules/unictype/category-Po: New file.
41935         * modules/unictype/category-S: New file.
41936         * modules/unictype/category-Sm: New file.
41937         * modules/unictype/category-Sc: New file.
41938         * modules/unictype/category-Sk: New file.
41939         * modules/unictype/category-So: New file.
41940         * modules/unictype/category-Z: New file.
41941         * modules/unictype/category-Zs: New file.
41942         * modules/unictype/category-Zl: New file.
41943         * modules/unictype/category-Zp: New file.
41944         * modules/unictype/category-C: New file.
41945         * modules/unictype/category-Cc: New file.
41946         * modules/unictype/category-Cf: New file.
41947         * modules/unictype/category-Cs: New file.
41948         * modules/unictype/category-Co: New file.
41949         * modules/unictype/category-Cn: New file.
41950         * modules/unictype/category-or: New file.
41951         * modules/unictype/category-of: New file.
41952         * modules/unictype/category-test: New file.
41953         * modules/unictype/category-test-withtable: New file.
41954         * modules/unictype/category-byname: New file.
41955         * modules/unictype/category-none: New file.
41956         * modules/unictype/category-and: New file.
41957         * modules/unictype/category-and-not: New file.
41958         * modules/unictype/category-name: New file.
41959         * modules/unictype/combining-class: New file.
41960         * modules/unictype/category-all: New file.
41961         * modules/unictype/bidicategory-all: New file.
41962         * modules/unictype/bidicategory-byname: New file.
41963         * modules/unictype/bidicategory-name: New file.
41964         * modules/unictype/bidicategory-of: New file.
41965         * modules/unictype/bidicategory-test: New file.
41966         * modules/unictype/decimal-digit: New file.
41967         * modules/unictype/digit: New file.
41968         * modules/unictype/numeric: New file.
41969         * modules/unictype/mirror: New file.
41970         * modules/unictype/property-white-space: New file.
41971         * modules/unictype/property-alphabetic: New file.
41972         * modules/unictype/property-other-alphabetic: New file.
41973         * modules/unictype/property-not-a-character: New file.
41974         * modules/unictype/property-default-ignorable-code-point: New file.
41975         * modules/unictype/property-other-default-ignorable-code-point: New
41976         file.
41977         * modules/unictype/property-deprecated: New file.
41978         * modules/unictype/property-logical-order-exception: New file.
41979         * modules/unictype/property-variation-selector: New file.
41980         * modules/unictype/property-private-use: New file.
41981         * modules/unictype/property-unassigned-code-value: New file.
41982         * modules/unictype/property-uppercase: New file.
41983         * modules/unictype/property-other-uppercase: New file.
41984         * modules/unictype/property-lowercase: New file.
41985         * modules/unictype/property-other-lowercase: New file.
41986         * modules/unictype/property-titlecase: New file.
41987         * modules/unictype/property-soft-dotted: New file.
41988         * modules/unictype/property-id-start: New file.
41989         * modules/unictype/property-other-id-start: New file.
41990         * modules/unictype/property-id-continue: New file.
41991         * modules/unictype/property-other-id-continue: New file.
41992         * modules/unictype/property-xid-start: New file.
41993         * modules/unictype/property-xid-continue: New file.
41994         * modules/unictype/property-pattern-white-space: New file.
41995         * modules/unictype/property-pattern-syntax: New file.
41996         * modules/unictype/property-join-control: New file.
41997         * modules/unictype/property-grapheme-base: New file.
41998         * modules/unictype/property-grapheme-extend: New file.
41999         * modules/unictype/property-other-grapheme-extend: New file.
42000         * modules/unictype/property-grapheme-link: New file.
42001         * modules/unictype/property-bidi-control: New file.
42002         * modules/unictype/property-bidi-left-to-right: New file.
42003         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
42004         * modules/unictype/property-bidi-arabic-right-to-left: New file.
42005         * modules/unictype/property-bidi-european-digit: New file.
42006         * modules/unictype/property-bidi-eur-num-separator: New file.
42007         * modules/unictype/property-bidi-eur-num-terminator: New file.
42008         * modules/unictype/property-bidi-arabic-digit: New file.
42009         * modules/unictype/property-bidi-common-separator: New file.
42010         * modules/unictype/property-bidi-block-separator: New file.
42011         * modules/unictype/property-bidi-segment-separator: New file.
42012         * modules/unictype/property-bidi-whitespace: New file.
42013         * modules/unictype/property-bidi-non-spacing-mark: New file.
42014         * modules/unictype/property-bidi-boundary-neutral: New file.
42015         * modules/unictype/property-bidi-pdf: New file.
42016         * modules/unictype/property-bidi-embedding-or-override: New file.
42017         * modules/unictype/property-bidi-other-neutral: New file.
42018         * modules/unictype/property-hex-digit: New file.
42019         * modules/unictype/property-ascii-hex-digit: New file.
42020         * modules/unictype/property-ideographic: New file.
42021         * modules/unictype/property-unified-ideograph: New file.
42022         * modules/unictype/property-radical: New file.
42023         * modules/unictype/property-ids-binary-operator: New file.
42024         * modules/unictype/property-ids-trinary-operator: New file.
42025         * modules/unictype/property-zero-width: New file.
42026         * modules/unictype/property-space: New file.
42027         * modules/unictype/property-non-break: New file.
42028         * modules/unictype/property-iso-control: New file.
42029         * modules/unictype/property-format-control: New file.
42030         * modules/unictype/property-dash: New file.
42031         * modules/unictype/property-hyphen: New file.
42032         * modules/unictype/property-punctuation: New file.
42033         * modules/unictype/property-line-separator: New file.
42034         * modules/unictype/property-paragraph-separator: New file.
42035         * modules/unictype/property-quotation-mark: New file.
42036         * modules/unictype/property-sentence-terminal: New file.
42037         * modules/unictype/property-terminal-punctuation: New file.
42038         * modules/unictype/property-currency-symbol: New file.
42039         * modules/unictype/property-math: New file.
42040         * modules/unictype/property-other-math: New file.
42041         * modules/unictype/property-paired-punctuation: New file.
42042         * modules/unictype/property-left-of-pair: New file.
42043         * modules/unictype/property-combining: New file.
42044         * modules/unictype/property-composite: New file.
42045         * modules/unictype/property-decimal-digit: New file.
42046         * modules/unictype/property-numeric: New file.
42047         * modules/unictype/property-diacritic: New file.
42048         * modules/unictype/property-extender: New file.
42049         * modules/unictype/property-ignorable-control: New file.
42050         * modules/unictype/property-test: New file.
42051         * modules/unictype/property-byname: New file.
42052         * modules/unictype/property-all: New file.
42053         * modules/unictype/scripts: New file.
42054         * modules/unictype/scripts-all: New file.
42055         * modules/unictype/block-of: New file.
42056         * modules/unictype/block-test: New file.
42057         * modules/unictype/block-list: New file.
42058         * modules/unictype/block-all: New file.
42059         * modules/unictype/syntax-c-whitespace: New file.
42060         * modules/unictype/syntax-java-whitespace: New file.
42061         * modules/unictype/syntax-c-ident: New file.
42062         * modules/unictype/syntax-java-ident: New file.
42063         * modules/unictype/ctype-alnum: New file.
42064         * modules/unictype/ctype-alpha: New file.
42065         * modules/unictype/ctype-cntrl: New file.
42066         * modules/unictype/ctype-digit: New file.
42067         * modules/unictype/ctype-graph: New file.
42068         * modules/unictype/ctype-lower: New file.
42069         * modules/unictype/ctype-print: New file.
42070         * modules/unictype/ctype-punct: New file.
42071         * modules/unictype/ctype-space: New file.
42072         * modules/unictype/ctype-upper: New file.
42073         * modules/unictype/ctype-xdigit: New file.
42074         * modules/unictype/ctype-blank: New file.
42075         * lib/unictype/bidi_byname.c: New file.
42076         * lib/unictype/bidi_name.c: New file.
42077         * lib/unictype/bidi_of.c: New file.
42078         * lib/unictype/bidi_test.c: New file.
42079         * lib/unictype/bitmap.h: New file.
42080         * lib/unictype/block_test.c: New file.
42081         * lib/unictype/blocks.c: New file.
42082         * lib/unictype/categ_C.c: New file.
42083         * lib/unictype/categ_Cc.c: New file.
42084         * lib/unictype/categ_Cf.c: New file.
42085         * lib/unictype/categ_Cn.c: New file.
42086         * lib/unictype/categ_Co.c: New file.
42087         * lib/unictype/categ_Cs.c: New file.
42088         * lib/unictype/categ_L.c: New file.
42089         * lib/unictype/categ_Ll.c: New file.
42090         * lib/unictype/categ_Lm.c: New file.
42091         * lib/unictype/categ_Lo.c: New file.
42092         * lib/unictype/categ_Lt.c: New file.
42093         * lib/unictype/categ_Lu.c: New file.
42094         * lib/unictype/categ_M.c: New file.
42095         * lib/unictype/categ_Mc.c: New file.
42096         * lib/unictype/categ_Me.c: New file.
42097         * lib/unictype/categ_Mn.c: New file.
42098         * lib/unictype/categ_N.c: New file.
42099         * lib/unictype/categ_Nd.c: New file.
42100         * lib/unictype/categ_Nl.c: New file.
42101         * lib/unictype/categ_No.c: New file.
42102         * lib/unictype/categ_P.c: New file.
42103         * lib/unictype/categ_Pc.c: New file.
42104         * lib/unictype/categ_Pd.c: New file.
42105         * lib/unictype/categ_Pe.c: New file.
42106         * lib/unictype/categ_Pf.c: New file.
42107         * lib/unictype/categ_Pi.c: New file.
42108         * lib/unictype/categ_Po.c: New file.
42109         * lib/unictype/categ_Ps.c: New file.
42110         * lib/unictype/categ_S.c: New file.
42111         * lib/unictype/categ_Sc.c: New file.
42112         * lib/unictype/categ_Sk.c: New file.
42113         * lib/unictype/categ_Sm.c: New file.
42114         * lib/unictype/categ_So.c: New file.
42115         * lib/unictype/categ_Z.c: New file.
42116         * lib/unictype/categ_Zl.c: New file.
42117         * lib/unictype/categ_Zp.c: New file.
42118         * lib/unictype/categ_Zs.c: New file.
42119         * lib/unictype/categ_and.c: New file.
42120         * lib/unictype/categ_and_not.c: New file.
42121         * lib/unictype/categ_byname.c: New file.
42122         * lib/unictype/categ_name.c: New file.
42123         * lib/unictype/categ_none.c: New file.
42124         * lib/unictype/categ_of.c: New file.
42125         * lib/unictype/categ_or.c: New file.
42126         * lib/unictype/categ_test.c: New file.
42127         * lib/unictype/combining.c: New file.
42128         * lib/unictype/ctype_alnum.c: New file.
42129         * lib/unictype/ctype_alpha.c: New file.
42130         * lib/unictype/ctype_blank.c: New file.
42131         * lib/unictype/ctype_cntrl.c: New file.
42132         * lib/unictype/ctype_digit.c: New file.
42133         * lib/unictype/ctype_graph.c: New file.
42134         * lib/unictype/ctype_lower.c: New file.
42135         * lib/unictype/ctype_print.c: New file.
42136         * lib/unictype/ctype_punct.c: New file.
42137         * lib/unictype/ctype_space.c: New file.
42138         * lib/unictype/ctype_upper.c: New file.
42139         * lib/unictype/ctype_xdigit.c: New file.
42140         * lib/unictype/decdigit.c: New file.
42141         * lib/unictype/digit.c: New file.
42142         * lib/unictype/identsyntaxmap.h: New file.
42143         * lib/unictype/mirror.c: New file.
42144         * lib/unictype/numeric.c: New file.
42145         * lib/unictype/pr_alphabetic.c: New file.
42146         * lib/unictype/pr_ascii_hex_digit.c: New file.
42147         * lib/unictype/pr_bidi_arabic_digit.c: New file.
42148         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
42149         * lib/unictype/pr_bidi_block_separator.c: New file.
42150         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
42151         * lib/unictype/pr_bidi_common_separator.c: New file.
42152         * lib/unictype/pr_bidi_control.c: New file.
42153         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
42154         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
42155         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
42156         * lib/unictype/pr_bidi_european_digit.c: New file.
42157         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
42158         * lib/unictype/pr_bidi_left_to_right.c: New file.
42159         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
42160         * lib/unictype/pr_bidi_other_neutral.c: New file.
42161         * lib/unictype/pr_bidi_pdf.c: New file.
42162         * lib/unictype/pr_bidi_segment_separator.c: New file.
42163         * lib/unictype/pr_bidi_whitespace.c: New file.
42164         * lib/unictype/pr_byname.c: New file.
42165         * lib/unictype/pr_byname.gperf: New file.
42166         * lib/unictype/pr_combining.c: New file.
42167         * lib/unictype/pr_composite.c: New file.
42168         * lib/unictype/pr_currency_symbol.c: New file.
42169         * lib/unictype/pr_dash.c: New file.
42170         * lib/unictype/pr_decimal_digit.c: New file.
42171         * lib/unictype/pr_default_ignorable_code_point.c: New file.
42172         * lib/unictype/pr_deprecated.c: New file.
42173         * lib/unictype/pr_diacritic.c: New file.
42174         * lib/unictype/pr_extender.c: New file.
42175         * lib/unictype/pr_format_control.c: New file.
42176         * lib/unictype/pr_grapheme_base.c: New file.
42177         * lib/unictype/pr_grapheme_extend.c: New file.
42178         * lib/unictype/pr_grapheme_link.c: New file.
42179         * lib/unictype/pr_hex_digit.c: New file.
42180         * lib/unictype/pr_hyphen.c: New file.
42181         * lib/unictype/pr_id_continue.c: New file.
42182         * lib/unictype/pr_id_start.c: New file.
42183         * lib/unictype/pr_ideographic.c: New file.
42184         * lib/unictype/pr_ids_binary_operator.c: New file.
42185         * lib/unictype/pr_ids_trinary_operator.c: New file.
42186         * lib/unictype/pr_ignorable_control.c: New file.
42187         * lib/unictype/pr_iso_control.c: New file.
42188         * lib/unictype/pr_join_control.c: New file.
42189         * lib/unictype/pr_left_of_pair.c: New file.
42190         * lib/unictype/pr_line_separator.c: New file.
42191         * lib/unictype/pr_logical_order_exception.c: New file.
42192         * lib/unictype/pr_lowercase.c: New file.
42193         * lib/unictype/pr_math.c: New file.
42194         * lib/unictype/pr_non_break.c: New file.
42195         * lib/unictype/pr_not_a_character.c: New file.
42196         * lib/unictype/pr_numeric.c: New file.
42197         * lib/unictype/pr_other_alphabetic.c: New file.
42198         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
42199         * lib/unictype/pr_other_grapheme_extend.c: New file.
42200         * lib/unictype/pr_other_id_continue.c: New file.
42201         * lib/unictype/pr_other_id_start.c: New file.
42202         * lib/unictype/pr_other_lowercase.c: New file.
42203         * lib/unictype/pr_other_math.c: New file.
42204         * lib/unictype/pr_other_uppercase.c: New file.
42205         * lib/unictype/pr_paired_punctuation.c: New file.
42206         * lib/unictype/pr_paragraph_separator.c: New file.
42207         * lib/unictype/pr_pattern_syntax.c: New file.
42208         * lib/unictype/pr_pattern_white_space.c: New file.
42209         * lib/unictype/pr_private_use.c: New file.
42210         * lib/unictype/pr_punctuation.c: New file.
42211         * lib/unictype/pr_quotation_mark.c: New file.
42212         * lib/unictype/pr_radical.c: New file.
42213         * lib/unictype/pr_sentence_terminal.c: New file.
42214         * lib/unictype/pr_soft_dotted.c: New file.
42215         * lib/unictype/pr_space.c: New file.
42216         * lib/unictype/pr_terminal_punctuation.c: New file.
42217         * lib/unictype/pr_test.c: New file.
42218         * lib/unictype/pr_titlecase.c: New file.
42219         * lib/unictype/pr_unassigned_code_value.c: New file.
42220         * lib/unictype/pr_unified_ideograph.c: New file.
42221         * lib/unictype/pr_uppercase.c: New file.
42222         * lib/unictype/pr_variation_selector.c: New file.
42223         * lib/unictype/pr_white_space.c: New file.
42224         * lib/unictype/pr_xid_continue.c: New file.
42225         * lib/unictype/pr_xid_start.c: New file.
42226         * lib/unictype/pr_zero_width.c: New file.
42227         * lib/unictype/scripts.c: New file.
42228         * lib/unictype/sy_c_ident.c: New file.
42229         * lib/unictype/sy_c_whitespace.c: New file.
42230         * lib/unictype/sy_java_ident.c: New file.
42231         * lib/unictype/sy_java_whitespace.c: New file.
42232
42233         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
42234         Unicode 5.0.0.
42235         * lib/unictype/blocks.h: Likewise.
42236         * lib/unictype/categ_C.h: Likewise.
42237         * lib/unictype/categ_Cc.h: Likewise.
42238         * lib/unictype/categ_Cf.h: Likewise.
42239         * lib/unictype/categ_Cn.h: Likewise.
42240         * lib/unictype/categ_Co.h: Likewise.
42241         * lib/unictype/categ_Cs.h: Likewise.
42242         * lib/unictype/categ_L.h: Likewise.
42243         * lib/unictype/categ_Ll.h: Likewise.
42244         * lib/unictype/categ_Lm.h: Likewise.
42245         * lib/unictype/categ_Lo.h: Likewise.
42246         * lib/unictype/categ_Lt.h: Likewise.
42247         * lib/unictype/categ_Lu.h: Likewise.
42248         * lib/unictype/categ_M.h: Likewise.
42249         * lib/unictype/categ_Mc.h: Likewise.
42250         * lib/unictype/categ_Me.h: Likewise.
42251         * lib/unictype/categ_Mn.h: Likewise.
42252         * lib/unictype/categ_N.h: Likewise.
42253         * lib/unictype/categ_Nd.h: Likewise.
42254         * lib/unictype/categ_Nl.h: Likewise.
42255         * lib/unictype/categ_No.h: Likewise.
42256         * lib/unictype/categ_P.h: Likewise.
42257         * lib/unictype/categ_Pc.h: Likewise.
42258         * lib/unictype/categ_Pd.h: Likewise.
42259         * lib/unictype/categ_Pe.h: Likewise.
42260         * lib/unictype/categ_Pf.h: Likewise.
42261         * lib/unictype/categ_Pi.h: Likewise.
42262         * lib/unictype/categ_Po.h: Likewise.
42263         * lib/unictype/categ_Ps.h: Likewise.
42264         * lib/unictype/categ_S.h: Likewise.
42265         * lib/unictype/categ_Sc.h: Likewise.
42266         * lib/unictype/categ_Sk.h: Likewise.
42267         * lib/unictype/categ_Sm.h: Likewise.
42268         * lib/unictype/categ_So.h: Likewise.
42269         * lib/unictype/categ_Z.h: Likewise.
42270         * lib/unictype/categ_Zl.h: Likewise.
42271         * lib/unictype/categ_Zp.h: Likewise.
42272         * lib/unictype/categ_Zs.h: Likewise.
42273         * lib/unictype/categ_of.h: Likewise.
42274         * lib/unictype/combining.h: Likewise.
42275         * lib/unictype/ctype_alnum.h: Likewise.
42276         * lib/unictype/ctype_alpha.h: Likewise.
42277         * lib/unictype/ctype_blank.h: Likewise.
42278         * lib/unictype/ctype_cntrl.h: Likewise.
42279         * lib/unictype/ctype_digit.h: Likewise.
42280         * lib/unictype/ctype_graph.h: Likewise.
42281         * lib/unictype/ctype_lower.h: Likewise.
42282         * lib/unictype/ctype_print.h: Likewise.
42283         * lib/unictype/ctype_punct.h: Likewise.
42284         * lib/unictype/ctype_space.h: Likewise.
42285         * lib/unictype/ctype_upper.h: Likewise.
42286         * lib/unictype/ctype_xdigit.h: Likewise.
42287         * lib/unictype/decdigit.h: Likewise.
42288         * lib/unictype/digit.h: Likewise.
42289         * lib/unictype/mirror.h: Likewise.
42290         * lib/unictype/numeric.h: Likewise.
42291         * lib/unictype/pr_alphabetic.h: Likewise.
42292         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
42293         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
42294         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
42295         * lib/unictype/pr_bidi_block_separator.h: Likewise.
42296         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
42297         * lib/unictype/pr_bidi_common_separator.h: Likewise.
42298         * lib/unictype/pr_bidi_control.h: Likewise.
42299         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
42300         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
42301         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
42302         * lib/unictype/pr_bidi_european_digit.h: Likewise.
42303         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
42304         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
42305         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
42306         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
42307         * lib/unictype/pr_bidi_pdf.h: Likewise.
42308         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
42309         * lib/unictype/pr_bidi_whitespace.h: Likewise.
42310         * lib/unictype/pr_combining.h: Likewise.
42311         * lib/unictype/pr_composite.h: Likewise.
42312         * lib/unictype/pr_currency_symbol.h: Likewise.
42313         * lib/unictype/pr_dash.h: Likewise.
42314         * lib/unictype/pr_decimal_digit.h: Likewise.
42315         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
42316         * lib/unictype/pr_deprecated.h: Likewise.
42317         * lib/unictype/pr_diacritic.h: Likewise.
42318         * lib/unictype/pr_extender.h: Likewise.
42319         * lib/unictype/pr_format_control.h: Likewise.
42320         * lib/unictype/pr_grapheme_base.h: Likewise.
42321         * lib/unictype/pr_grapheme_extend.h: Likewise.
42322         * lib/unictype/pr_grapheme_link.h: Likewise.
42323         * lib/unictype/pr_hex_digit.h: Likewise.
42324         * lib/unictype/pr_hyphen.h: Likewise.
42325         * lib/unictype/pr_id_continue.h: Likewise.
42326         * lib/unictype/pr_id_start.h: Likewise.
42327         * lib/unictype/pr_ideographic.h: Likewise.
42328         * lib/unictype/pr_ids_binary_operator.h: Likewise.
42329         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
42330         * lib/unictype/pr_ignorable_control.h: Likewise.
42331         * lib/unictype/pr_iso_control.h: Likewise.
42332         * lib/unictype/pr_join_control.h: Likewise.
42333         * lib/unictype/pr_left_of_pair.h: Likewise.
42334         * lib/unictype/pr_line_separator.h: Likewise.
42335         * lib/unictype/pr_logical_order_exception.h: Likewise.
42336         * lib/unictype/pr_lowercase.h: Likewise.
42337         * lib/unictype/pr_math.h: Likewise.
42338         * lib/unictype/pr_non_break.h: Likewise.
42339         * lib/unictype/pr_not_a_character.h: Likewise.
42340         * lib/unictype/pr_numeric.h: Likewise.
42341         * lib/unictype/pr_other_alphabetic.h: Likewise.
42342         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
42343         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
42344         * lib/unictype/pr_other_id_continue.h: Likewise.
42345         * lib/unictype/pr_other_id_start.h: Likewise.
42346         * lib/unictype/pr_other_lowercase.h: Likewise.
42347         * lib/unictype/pr_other_math.h: Likewise.
42348         * lib/unictype/pr_other_uppercase.h: Likewise.
42349         * lib/unictype/pr_paired_punctuation.h: Likewise.
42350         * lib/unictype/pr_paragraph_separator.h: Likewise.
42351         * lib/unictype/pr_pattern_syntax.h: Likewise.
42352         * lib/unictype/pr_pattern_white_space.h: Likewise.
42353         * lib/unictype/pr_private_use.h: Likewise.
42354         * lib/unictype/pr_punctuation.h: Likewise.
42355         * lib/unictype/pr_quotation_mark.h: Likewise.
42356         * lib/unictype/pr_radical.h: Likewise.
42357         * lib/unictype/pr_sentence_terminal.h: Likewise.
42358         * lib/unictype/pr_soft_dotted.h: Likewise.
42359         * lib/unictype/pr_space.h: Likewise.
42360         * lib/unictype/pr_terminal_punctuation.h: Likewise.
42361         * lib/unictype/pr_titlecase.h: Likewise.
42362         * lib/unictype/pr_unassigned_code_value.h: Likewise.
42363         * lib/unictype/pr_unified_ideograph.h: Likewise.
42364         * lib/unictype/pr_uppercase.h: Likewise.
42365         * lib/unictype/pr_variation_selector.h: Likewise.
42366         * lib/unictype/pr_white_space.h: Likewise.
42367         * lib/unictype/pr_xid_continue.h: Likewise.
42368         * lib/unictype/pr_xid_start.h: Likewise.
42369         * lib/unictype/pr_zero_width.h: Likewise.
42370         * lib/unictype/scripts.h: Likewise.
42371         * lib/unictype/scripts_byname.gperf: Likewise.
42372         * lib/unictype/sy_c_ident.h: Likewise.
42373         * lib/unictype/sy_c_whitespace.h: Likewise.
42374         * lib/unictype/sy_java_ident.h: Likewise.
42375         * lib/unictype/sy_java_whitespace.h: Likewise.
42376
42377         * lib/unictype/Makefile: New file.
42378         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
42379         glibc.
42380         * lib/unictype/3level.h: New file, copied from glibc.
42381         * lib/unictype/3levelbit.h: New file.
42382
42383 2007-11-11  Bruno Haible  <bruno@clisp.org>
42384
42385         * modules/gperf: New file.
42386         * modules/iconv_open (Depends-on): Add it.
42387         (Makefile.am): Remove the GPERF definition.
42388
42389 2007-11-11  Bruno Haible  <bruno@clisp.org>
42390
42391         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
42392         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
42393
42394 2007-11-11  Bruno Haible  <bruno@clisp.org>
42395
42396         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
42397         (usage): Remove function.
42398
42399 2007-11-11  Bruno Haible  <bruno@clisp.org>
42400
42401         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
42402         gl_FUNC_CEILF_LIBS.
42403         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
42404         gl_FUNC_CEIL_LIBS.
42405         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
42406         gl_FUNC_CEILL_LIBS.
42407         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
42408         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
42409         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
42410
42411 2007-11-11  Bruno Haible  <bruno@clisp.org>
42412
42413         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
42414         roundf were declared but do not exist on functions.
42415         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
42416         roundl were declared but do not exist on functions.
42417         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
42418         HAVE_FLOORL_AND_CEILL, respectively.
42419         Needed for Sun C on Solaris 10.
42420
42421 2007-11-11  Bruno Haible  <bruno@clisp.org>
42422
42423         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
42424         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
42425         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
42426         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
42427         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
42428         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
42429         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
42430         HAVE_DECL_ROUNDF.
42431         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
42432         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
42433         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
42434         of HAVE_DECL_ROUND*.
42435         * modules/math (Makefile.am): Update.
42436
42437 2007-11-10  Bruno Haible  <bruno@clisp.org>
42438
42439         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
42440         ptrdiff_t as m4/intl.m4.
42441
42442 2007-11-10  Jim Meyering  <meyering@redhat.com>
42443
42444         Avoid link failure for the argmatch test.
42445         * tests/test-argmatch.c (usage): Define function to avoid a link
42446         failure: argmatch_die requires a usage function.
42447
42448 2007-11-09  Bruno Haible  <bruno@clisp.org>
42449
42450         * doc/functions/snprintf.texi: Mention BeOS deficiency.
42451         * doc/functions/vsnprintf.texi: Likewise.
42452         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
42453         with a size argument < 2.
42454
42455 2007-11-09  Bruno Haible  <bruno@clisp.org>
42456
42457         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
42458         buffer. Fixes an inefficiency introduced on 2007-11-03.
42459
42460 2007-11-09  Bruno Haible  <bruno@clisp.org>
42461
42462         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
42463         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
42464
42465 2007-11-08  Jim Meyering  <meyering@redhat.com>
42466
42467         Change cache variable name prefix "jm_" to "gl_" everywhere.
42468         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
42469         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
42470         * m4/uptime.m4: s/gl_/jm_/
42471
42472 2007-11-07  Bruno Haible  <bruno@clisp.org>
42473
42474         Update to GNU gettext 0.17.
42475         * m4/intl.m4: Update to GNU gettext 0.17.
42476         * m4/po.m4: Likewise.
42477         * modules/gettext (Files): Remove m4/ulonglong.m4.
42478         (configure.ac): Require gettext infrastructure from version 0.17.
42479
42480 2007-11-06  Bruno Haible  <bruno@clisp.org>
42481
42482         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
42483         symbolic values are not defined in a public header.
42484         * lib/freadable.c (freadable) [QNX]: Likewise.
42485         * lib/freadahead.c (freadahead) [QNX]: Likewise.
42486         * lib/freading.c (freading) [QNX]: Likewise.
42487         * lib/fseterr.c (fseterr) [QNX]: Likewise.
42488         * lib/fwritable.c (fwritable) [QNX]: Likewise.
42489         * lib/fwriting.c (fwriting) [QNX]: Likewise.
42490         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
42491         Reported by Alain Magloire.
42492
42493         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
42494
42495 2007-11-05  Bruno Haible  <bruno@clisp.org>
42496
42497         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
42498         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
42499         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
42500         Reported by Eric Blake.
42501
42502 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42503             Bruno Haible  <bruno@clisp.org>
42504
42505         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
42506         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
42507         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
42508         (malloc): Undefine also before including <stdlib.h>.
42509         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
42510         Needed on OSF/1 4.0.
42511
42512 2007-11-05  Jim Meyering  <meyering@redhat.com>
42513
42514         git-version-gen: sync from coreutils.
42515         * build-aux/git-version-gen: Add comments.
42516         Change the first '-' to '.' in the snapshot version string,
42517         e.g., 6.9-377-08144 -> 6.9.377-08144
42518         Remove first parameter.
42519         Don't declare a version "-dirty" merely because a time
42520         stamp has changed.
42521
42522 2007-11-04  Bruno Haible  <bruno@clisp.org>
42523
42524         * lib/lock.h: Protect all macro definitions containing an 'if'
42525         statement through a "do { ... } while (0)".
42526         * lib/tls.h: Likewise.
42527
42528 2007-11-04  Bruno Haible  <bruno@clisp.org>
42529
42530         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
42531
42532 2007-11-04  Bruno Haible  <bruno@clisp.org>
42533
42534         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
42535         * modules/fprintf-posix (Depends-on): Add nocrash.
42536         * modules/snprintf-posix (Depends-on): Likewise.
42537         * modules/sprintf-posix (Depends-on): Likewise.
42538         * modules/vasnprintf-posix (Depends-on): Likewise.
42539         * modules/vasprintf-posix (Depends-on): Likewise.
42540         * modules/vfprintf-posix (Depends-on): Likewise.
42541         * modules/vsnprintf-posix (Depends-on): Likewise.
42542         * modules/vsprintf-posix (Depends-on): Likewise.
42543         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42544         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42545         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42546         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42547         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42548         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42549         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42550
42551 2007-11-04  Bruno Haible  <bruno@clisp.org>
42552
42553         * modules/nocrash: New file.
42554         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
42555         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
42556
42557 2007-11-04  Bruno Haible  <bruno@clisp.org>
42558
42559         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
42560         precision handling.
42561         * tests/test-vasprintf-posix.c (test_function): Likewise.
42562         * tests/test-snprintf-posix.h (test_function): Likewise.
42563         * tests/test-sprintf-posix.h (test_function): Likewise.
42564
42565         Fix *printf behaviour for large precisions on mingw and BeOS.
42566         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
42567         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
42568         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
42569         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42570         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42571         gl_PRINTF_PRECISION and test its result. Invoke
42572         gl_PREREQ_VASNPRINTF_PRECISION.
42573         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42574         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42575         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42576         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42577         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42578         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42579         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42580         * doc/functions/fprintf.texi: Update.
42581         * doc/functions/printf.texi: Update.
42582         * doc/functions/snprintf.texi: Update.
42583         * doc/functions/sprintf.texi: Update.
42584         * doc/functions/vfprintf.texi: Update.
42585         * doc/functions/vprintf.texi: Update.
42586         * doc/functions/vsnprintf.texi: Update.
42587         * doc/functions/vsprintf.texi: Update.
42588
42589 2007-11-04  Bruno Haible  <bruno@clisp.org>
42590
42591         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
42592
42593 2007-11-04  Bruno Haible  <bruno@clisp.org>
42594
42595         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
42596         Reported by Sylvain Beucler <beuc@gnu.org>.
42597
42598 2007-11-03  Bruno Haible  <bruno@clisp.org>
42599
42600         * tests/test-fprintf-posix2.sh: New file.
42601         * tests/test-fprintf-posix2.c: New file.
42602         * modules/fprintf-posix-tests (Files): Add them.
42603         (TESTS): Add test-fprintf-posix2.sh.
42604         (configure.ac): Check for getrlimit and setrlimit.
42605         (check_PROGRAMS): Add test-fprintf-posix2.
42606
42607         * tests/test-printf-posix2.sh: New file.
42608         * tests/test-printf-posix2.c: New file.
42609         * modules/printf-posix-tests (Files): Add them.
42610         (TESTS): Add test-printf-posix2.sh.
42611         (configure.ac): Check for getrlimit and setrlimit.
42612         (check_PROGRAMS): Add test-printf-posix2.
42613
42614         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
42615         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
42616         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
42617         (decode_double): New function, copied from decode_long_double.
42618         (scale10_round_decimal_decoded): New function, extracted from
42619         scale10_round_decimal_long_double.
42620         (scale10_round_decimal_long_double): Use it.
42621         (scale10_round_decimal_double): New function.
42622         (floorlog10): New function.
42623         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
42624         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
42625         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42626         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42627         gl_PRINTF_ENOMEM and test its result. Invoke
42628         gl_PREREQ_VASNPRINTF_ENOMEM.
42629         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42630         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42631         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42632         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42633         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42634         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42635         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42636         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
42637         * modules/snprintf-posix (Depends-on): Likewise.
42638         * modules/sprintf-posix (Depends-on): Likewise.
42639         * modules/vasnprintf-posix (Depends-on): Likewise.
42640         * modules/vasprintf-posix (Depends-on): Likewise.
42641         * modules/vfprintf-posix (Depends-on): Likewise.
42642         * modules/vsnprintf-posix (Depends-on): Likewise.
42643         * modules/vsprintf-posix (Depends-on): Likewise.
42644         * doc/functions/fprintf.texi: Update.
42645         * doc/functions/printf.texi: Update.
42646         * doc/functions/snprintf.texi: Update.
42647         * doc/functions/sprintf.texi: Update.
42648         * doc/functions/vfprintf.texi: Update.
42649         * doc/functions/vprintf.texi: Update.
42650         * doc/functions/vsnprintf.texi: Update.
42651         * doc/functions/vsprintf.texi: Update.
42652
42653 2007-11-03  Bruno Haible  <bruno@clisp.org>
42654
42655         * modules/frexp-nolibm-tests: New file.
42656
42657         * modules/frexp-nolibm: New file.
42658         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
42659
42660 2007-11-03  Bruno Haible  <bruno@clisp.org>
42661
42662         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
42663         value is C99 compliant.
42664         Needed for OSF/1 5.1.
42665
42666 2007-11-03  Bruno Haible  <bruno@clisp.org>
42667
42668         Fix out-of-memory handling of vasnprintf.
42669         * lib/printf-parse.c: Include <errno.h>.
42670         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
42671         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
42672         is already set.
42673
42674 2007-11-02  Eric Blake  <ebb9@byu.net>
42675
42676         Fix tests on cygwin.
42677         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
42678
42679 2007-11-01  Bruno Haible  <bruno@clisp.org>
42680
42681         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
42682         warning.
42683         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
42684         needed for POSIX compatibility.
42685
42686 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
42687
42688         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
42689         for compatibility with GNU.
42690
42691 2007-11-01  Bruno Haible  <bruno@clisp.org>
42692
42693         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
42694         (putenv): Renamed from rpl_putenv. Change argument type from
42695         'const char *' to 'char *'.
42696         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
42697         of defining putenv in config.h, just set REPLACE_PUTENV.
42698         * modules/putenv (Depends-on): Add stdlib.
42699         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42700         (Include): Use <stdlib.h>.
42701         * lib/stdlib.in.h (putenv): New declaration.
42702         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
42703         REPLACE_PUTENV.
42704         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
42705         REPLACE_PUTENV.
42706         Needed for MacOS X 10.5.0.
42707         Reported by Peter O'Gorman <peter@pogma.com>.
42708
42709 2007-11-01  Jim Meyering  <meyering@redhat.com>
42710
42711         Treat an empty date string exactly like "0".
42712         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
42713         if the remaining date string (to be parsed) is empty, use "0".
42714         Reported by Mischa Molhoek and discussed in this thread:
42715         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
42716
42717 2007-10-31  Bruno Haible  <bruno@clisp.org>
42718
42719         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
42720         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
42721         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
42722         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
42723         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
42724         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
42725
42726 2007-10-31  Bruno Haible  <bruno@clisp.org>
42727
42728         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
42729         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
42730         (AC_TYPE_LONG_LONG_INT): Use it.
42731         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
42732         it as well.
42733         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
42734         to m4/longlong.m4.
42735         * modules/stdint (Files): Remove m4/ulonglong.m4.
42736         * modules/strtoull (Files): Use m4/longlong.m4 instead of
42737         m4/ulonglong.m4.
42738         * modules/strtoumax (Files): Likewise.
42739
42740 2007-10-30  Bruno Haible  <bruno@clisp.org>
42741
42742         * modules/xvasprintf-posix: New file.
42743         Suggested by Eric Blake.
42744
42745 2007-10-30  Bruno Haible  <bruno@clisp.org>
42746
42747         * modules/xprintf-posix-tests: New file.
42748         * tests/test-xprintf-posix.sh: New file.
42749         * tests/test-xprintf-posix.c: New file.
42750         * tests/test-xfprintf-posix.c: New file.
42751
42752         * modules/xprintf-posix: New file.
42753
42754 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42755
42756         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
42757         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
42758         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
42759
42760 2007-10-29  Bruno Haible  <bruno@clisp.org>
42761
42762         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
42763         contain the special marker '_cv_'.
42764         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
42765         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
42766         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
42767         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
42768         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
42769         Reported by Ralf Wildenhues.
42770
42771 2007-10-29  Bruno Haible  <bruno@clisp.org>
42772
42773         * gnulib-tool (func_import): When --lgpl is not specified, set
42774         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
42775         GPLv3.
42776         Reported by Simon Josefsson.
42777
42778 2007-10-28  Bruno Haible  <bruno@clisp.org>
42779
42780         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
42781         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
42782         HAVE_DECL_ISFINITE.
42783         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
42784         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
42785         HAVE_DECL_ISFINITE.
42786
42787 2007-10-28  Bruno Haible  <bruno@clisp.org>
42788
42789         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
42790         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
42791
42792 2007-10-28  Bruno Haible  <bruno@clisp.org>
42793
42794         Fix link errors with Sun C 5.0 on Solaris 10.
42795         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
42796         function is declared but not present in the compiler's libm.
42797         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
42798         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
42799         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
42800         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
42801         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
42802         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
42803         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
42804         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
42805         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
42806         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
42807         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
42808         HAVE_DECL_FLOORL.
42809
42810 2007-10-28  Bruno Haible  <bruno@clisp.org>
42811
42812         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
42813         gl_FUNC_FLOORL. Cache the result.
42814         (gl_FUNC_FLOORL): Use it.
42815         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
42816         gl_FUNC_CEILL. Cache the result.
42817         (gl_FUNC_CEILL): Use it.
42818
42819         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
42820         gl_FUNC_FLOOR. Cache the result.
42821         (gl_FUNC_FLOOR): Use it.
42822         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
42823         gl_FUNC_CEIL. Cache the result.
42824         (gl_FUNC_CEIL): Use it.
42825
42826         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
42827         gl_FUNC_FLOORF. Cache the result.
42828         (gl_FUNC_FLOORF): Use it.
42829         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
42830         gl_FUNC_CEILF. Cache the result.
42831         (gl_FUNC_CEILF): Use it.
42832
42833 2007-10-28  Bruno Haible  <bruno@clisp.org>
42834
42835         * gnulib-tool: Allow specifying the LGPL version number through
42836         --lgpl=2 or --lgpl=3.
42837         (func_usage): Document --lgpl with argument.
42838         Handle --lgpl=... arguments.
42839         (func_import): Recognize also gl_LGPL calls with an argument. When
42840         --lgpl=2 is used and the module's license is just LGPL, report an
42841         error. Set sed_transform_lib_file according to the lgpl variable. In
42842         the generated files, use --lgpl or gl_LGPL invocations with argument,
42843         if necessary.
42844         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
42845         an LGPv2+ license.
42846         * doc/gnulib-tool.texi (Modified imports): Update explanation of
42847         gl_LGPL macro.
42848
42849 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42850             Bruno Haible  <bruno@clisp.org>
42851
42852         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
42853         (u16_uctomb_aux): Likewise.
42854         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
42855         !HAVE_INLINE.
42856         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
42857
42858 2007-10-28  Bruno Haible  <bruno@clisp.org>
42859
42860         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
42861         Invoke AM_GETTEXT_OPTION if it exists.
42862         * modules/vasprintf: Likewise.
42863         * modules/verror: Likewise.
42864         * modules/xprintf: Likewise.
42865         * modules/xvasprintf: Likewise.
42866
42867 2007-10-27  Ben Pfaff  <blp@gnu.org>
42868
42869         * lib/math.in.h: Define isfinite macro and prototypes for
42870         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
42871         implementations.
42872         * m4/math_h.m4: New substitutions for isfinite module.
42873         * lib/isfinite.c: New file.
42874         * m4/isfinite.m4: New file.
42875         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
42876         * modules/isfinite: New file.
42877         * modules/isfinite-tests: New file.
42878         * tests/tests-isfinite.c: New file.
42879         * doc/functions/isfinite.texi: Mention isfinite module.
42880         * MODULES.html.sh: Mention new module.
42881
42882 2007-10-27  Ben Pfaff  <blp@gnu.org>
42883
42884         Ralf Wildenhues reported that Tru64 4.0D declares the round
42885         functions but does not have definitions.
42886         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
42887         cannot be found in any library, set the output variable to
42888         "missing" instead of "".
42889         * m4/round.m4: Also use our substitute if we cannot find round in
42890         any library, even if it is declared.
42891         * m4/roundf.m4: Likewise for roundf.
42892         * m4/roundl.m4: Likewise for roundl.
42893         * lib/math.in.h: Undefine roundf, round, roundl before defining
42894         their replacements, to allow for hypothetical systems where these
42895         may be defined as macros but not available in libraries.
42896
42897 2007-10-27  Bruno Haible  <bruno@clisp.org>
42898
42899         * doc/gnulib.texi: Invoke @firstparagraphindent.
42900         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
42901         changes in gnulib.
42902         (Source changes): New section.
42903
42904 2007-10-26  Bruno Haible  <bruno@clisp.org>
42905
42906         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
42907         borrowed from autoconf.
42908
42909 2007-10-26  Bruno Haible  <bruno@clisp.org>
42910
42911         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
42912         strerror returned the empty string. Needed on HP-UX 11.00.
42913
42914 2007-10-24  Micah Cowan  <micah@cowan.name>
42915
42916         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
42917         * build-aux/bootstrap: Remove support for now-unnecessary option,
42918         --cvs-user, and envvars CVS_USER, CVS_RSH.
42919
42920 2007-10-24  Jim Meyering  <meyering@redhat.com>
42921
42922         Avoid diagnostics from sha1sum when there is no cached checksum.
42923         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
42924         if the po.s1 file hasn't been created yet.
42925
42926         * build-aux/bootstrap: Sync from coreutils:
42927         2007-10-24  Jim Meyering  <meyering@redhat.com>
42928         Get gnulib from the git repository, not from an obsolete cvs one.
42929         * build-aux/bootstrap: Suggestion from Micah Cowan.
42930         2007-10-04  Jim Meyering  <jim@meyering.net>
42931         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
42932         (update_po_files): Work also when there are no .po files in po/.
42933
42934 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42935
42936         * README: Append ".git" to git and cg examples.
42937         Problem reported by Benoit Sigoure.
42938
42939 2007-10-23  Micah Cowan  <micah@cowan.name>
42940
42941         * users.txt: Add wget.
42942
42943 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42944
42945         Fix linking of some unistdio tests on FreeBSD.
42946         * modules/unistdio/u16-vsnprintf-tests
42947         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
42948         * modules/unistdio/u16-vsprintf-tests
42949         (test_u16_vsnprintf1_LDADD): Likewise.
42950         * modules/unistdio/u32-vsnprintf-tests
42951         (test_u32_vsnprintf1_LDADD): Likewise.
42952         * modules/unistdio/u32-vsprintf-tests
42953         (test_u32_vsprintf1_LDADD): Likewise.
42954         * modules/unistdio/u8-vsnprintf-tests
42955         (test_u8_vsnprintf1_LDADD): Likewise.
42956         * modules/unistdio/u8-vsprintf-tests
42957         (test_u8_vsprintf1_LDADD): Likewise.
42958         * modules/unistdio/ulc-vsnprintf-tests
42959         (test_ulc_vsnprintf1_LDADD): Likewise.
42960         * modules/unistdio/ulc-vsprintf-tests
42961         (test_ulc_vsprintf1_LDADD): Likewise.
42962
42963         Fix linking of some uniconv tests on FreeBSD.
42964         * modules/uniconv/u16-conv-from-enc-tests
42965         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
42966         * modules/uniconv/u16-conv-to-enc-tests
42967         (test_u16_conv_to_enc_LDADD): Likewise.
42968         * modules/uniconv/u16-strconv-from-enc-tests
42969         (test_u16_strconv_from_enc_LDADD): Likewise.
42970         * modules/uniconv/u16-strconv-to-enc-tests
42971         (test_u16_strconv_to_enc_LDADD): Likewise.
42972         * modules/uniconv/u32-conv-from-enc-tests
42973         (test_u32_conv_from_enc_LDADD): Likewise.
42974         * modules/uniconv/u32-conv-to-enc-tests
42975         (test_u32_conv_to_enc_LDADD): Likewise.
42976         * modules/uniconv/u32-strconv-from-enc-tests
42977         (test_u32_strconv_from_enc_LDADD): Likewise.
42978         * modules/uniconv/u32-strconv-to-enc-tests
42979         (test_u32_strconv_to_enc_LDADD): Likewise.
42980         * modules/uniconv/u8-conv-from-enc-tests
42981         (test_u8_conv_from_enc_LDADD): Likewise.
42982         * modules/uniconv/u8-conv-to-enc-tests
42983         (test_u8_conv_to_enc_LDADD): Likewise.
42984         * modules/uniconv/u8-strconv-from-enc-tests
42985         (test_u8_strconv_from_enc_LDADD): Likewise.
42986         * modules/uniconv/u8-strconv-to-enc-tests
42987         (test_u8_strconv_to_enc_LDADD): Likewise.
42988
42989 2007-10-22  Bruno Haible  <bruno@clisp.org>
42990
42991         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
42992         size.
42993
42994 2007-10-22  Eric Blake  <ebb9@byu.net>
42995
42996         Tweak x*printf documentation.
42997         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
42998         variable name and comments.
42999         Suggested by Bruno Haible.
43000
43001 2007-10-22  Bruno Haible  <bruno@clisp.org>
43002
43003         * lib/acl.c (copy_acl): Fix file name in comment.
43004
43005 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43006
43007         Fix Tru64 problem with stdbool.h.
43008         * lib/stdbool.in.h (false, true):
43009         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
43010         Don't declare as an enum in this situation; it runs afoul of Tru64.
43011         Problem reported by Steven M. Schweda in
43012         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
43013
43014 2007-10-22  Eric Blake  <ebb9@byu.net>
43015
43016         Also wrap vf?printf.
43017         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
43018         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
43019         (xvprintf, xvfprintf): New functions.
43020
43021 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43022
43023         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
43024         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
43025
43026         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
43027         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
43028
43029 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43030
43031         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
43032         by Bruno Haible.
43033
43034 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43035
43036         * lib/getloadavg.c
43037         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
43038         Undef `sys' after including sys/table.h, for Tru64 4.0D.
43039
43040         * tests/test-i-ring.c: Work for C89.
43041
43042 2007-10-22  Bruno Haible  <bruno@clisp.org>
43043
43044         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
43045         -1u, in preprocessor expression, so that we don't test for the bug
43046         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
43047         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
43048
43049 2007-10-22  Eric Blake  <ebb9@byu.net>
43050
43051         * tests/test-yesno.sh: Silence stderr during test.
43052
43053 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43054
43055         * modules/crypto/gc-camellia: New file.
43056
43057         * m4/gc-camellia.m4: New file.
43058
43059         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
43060
43061         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
43062
43063 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43064
43065         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
43066         --help to stdout.  Reported by sms@antinode.org (Steven
43067         M. Schweda).
43068
43069 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43070
43071         * users.txt: Fix link to libksba.
43072
43073 2007-10-21  Ben Pfaff  <blp@gnu.org>
43074
43075         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
43076         round.c roundf implementation that depends on floorf and ceilf to
43077         be tested unconditionally.
43078
43079 2007-10-21  Ben Pfaff  <blp@gnu.org>
43080
43081         * m4/check-libm-func.m4: Removed.
43082         * m4/check-math-lib.m4: New file.
43083         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
43084         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
43085         definition and lack of AC_LIBOBJ([roundf]).
43086         * m4/roundl.m4: Ditto, and similarly for roundl.
43087         * modules/round: Reference new m4 file.
43088         * modules/roundf: Ditto.
43089         * modules/roundl: Ditto.
43090         * tests/test-round2.c (main): Use ROUND instead of round.
43091         Bug report from Bruno Haible.
43092
43093 2007-10-21  Bruno Haible  <bruno@clisp.org>
43094
43095         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
43096         context.
43097
43098 2007-10-21  Bruno Haible  <bruno@clisp.org>
43099
43100         * tests/test-wcwidth.c (main): Allow negative result for some control
43101         characters.
43102
43103         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
43104         Needed on OSF/1 5.1.
43105
43106 2007-10-21  Bruno Haible  <bruno@clisp.org>
43107
43108         * tests/test-floorf1.c: Include isnanf.h.
43109         (main): Use isnanf() instead of isnan().
43110         * tests/test-ceilf1.c: Include isnanf.h.
43111         (main): Use isnanf() instead of isnan().
43112         * tests/test-truncf1.c: Include isnanf.h.
43113         (main): Use isnanf() instead of isnan().
43114         * tests/test-roundf1.c: Include isnanf.h.
43115         (main): Use isnanf() instead of isnan().
43116
43117 2007-10-21  Eric Blake  <ebb9@byu.net>
43118
43119         * users.txt: Update URL for m4.
43120
43121 2007-10-21  Bruno Haible  <bruno@clisp.org>
43122
43123         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
43124
43125 2007-10-21  Bruno Haible  <bruno@clisp.org>
43126
43127         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
43128         Git's management files if the CVS files are not present.
43129
43130 2007-10-20  Bruno Haible  <bruno@clisp.org>
43131
43132         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
43133         gcc-3.4.x.
43134
43135 2007-10-20  Ben Pfaff  <blp@gnu.org>
43136
43137         * lib/math.in.h: Declare round, roundf, roundl if we are providing
43138         implementations.
43139         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
43140         * lib/round.c: New file.
43141         * lib/roundf.c: New file.
43142         * lib/roundl.c: New file.
43143         * m4/round.m4: New file.
43144         * m4/roundf.m4: New file.
43145         * m4/roundl.m4: New file.
43146         * m4/check-libm-func-m4: New file.
43147         * modules/math: Replace round, roundf, roundl related @VARS@ in
43148         math.in.h.
43149         * modules/round: New file.
43150         * modules/round-tests: New file.
43151         * modules/roundf: New file.
43152         * modules/roundf-tests: New file.
43153         * modules/roundl: New file.
43154         * modules/roundl-tests: New file.
43155         * tests/test-round1.c: New file.
43156         * tests/test-round2.c: New file.
43157         * tests/test-roundf1.c: New file.
43158         * tests/test-roundf2.c: New file.
43159         * tests/test-roundl.c: New file.
43160         * doc/functions/round.texi: Mention round module.
43161         * doc/functions/roundf.texi: Mention roundf module.
43162         * doc/functions/roundl.texi: Mention roundl module.
43163         * MODULES.html.sh: Mention new modules.
43164         Thanks to Bruno Haible for suggestions.
43165
43166 2007-10-20  Jim Meyering  <meyering@redhat.com>
43167
43168         * lib/xprintf.c: Include <config.h> unconditionally.
43169
43170         Change xprintf's license to GPL.
43171         * modules/xprintf (License): s/LGPL/GPL/, since this module
43172         depends on modules (exit and exitfail) which are GPL.
43173         Suggestion from Bruno Haible.
43174
43175         xprintf fixes.
43176         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
43177         Use a clearer diagnostic.
43178         Patch from Bruno Haible.
43179
43180 2007-10-20  Bruno Haible  <bruno@clisp.org>
43181
43182         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
43183         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
43184         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43185
43186 2007-10-20  Bruno Haible  <bruno@clisp.org>
43187
43188         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
43189         precision in the comparison result > x - 1 or similar.
43190         * tests/test-ceilf2.c (correct_result_p): Likewise.
43191         * tests/test-truncf2.c (correct_result_p): Likewise.
43192         * tests/test-trunc2.c (correct_result_p): Likewise.
43193         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43194
43195 2007-10-20  Bruno Haible  <bruno@clisp.org>
43196
43197         * modules/ceil: New file.
43198         * m4/ceil.m4: New file.
43199         * doc/functions/ceil.texi: Mention the 'ceil' module.
43200
43201 2007-10-20  Bruno Haible  <bruno@clisp.org>
43202
43203         * modules/floor: New file.
43204         * m4/floor.m4: New file.
43205         * doc/functions/floor.texi: Mention the 'floor' module.
43206
43207 2007-10-20  Bruno Haible  <bruno@clisp.org>
43208
43209         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
43210         of %a.
43211         * modules/floorf-tests (Depends-on): Likewise.
43212         * modules/truncf-tests (Depends-on): Likewise.
43213         * modules/trunc-tests (Depends-on): Likewise.
43214         Reported by Ben Pfaff.
43215
43216 2007-10-19  Jim Meyering  <meyering@redhat.com>
43217
43218         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
43219         Don't bother testing specific errno values.  Just test ferror.
43220
43221         New module: xprintf
43222         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
43223
43224 2007-10-19  Bruno Haible  <bruno@clisp.org>
43225
43226         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
43227         syntax.
43228         * modules/javaexec (Makefile.am): Likewise.
43229         * modules/relocatable-prog (Makefile.am): Likewise.
43230         Suggested by Jim Meyering.
43231
43232 2007-10-18  Bruno Haible  <bruno@clisp.org>
43233
43234         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
43235         Reported by Jim Meyering.
43236
43237 2007-10-18  Eric Blake  <ebb9@byu.net>
43238
43239         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
43240
43241 2007-10-18  Bruno Haible  <bruno@clisp.org>
43242
43243         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
43244         the format string into writable memory. Needed in Fortify conditions.
43245
43246 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
43247             Bruno Haible  <bruno@clisp.org>
43248
43249         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
43250         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
43251         * modules/trim (Depends-on): Add mbchar.
43252         (configure.ac): Add gl_FUNC_MBRTOWC.
43253         (Makefile.am): Augment lib_SOURCES.
43254
43255 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
43256
43257         Modify glob.c to use fstatat and dirfd, to simplify it.
43258         Suggested by Eric Blake.
43259         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
43260         Don't include <stdbool.h>; not used.
43261         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
43262         (link_exists_p): Simplify implementation, since we can now assume
43263         dirfd and fstatat.
43264         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
43265
43266 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43267
43268         * gnulib-tool (func_get_dependencies): Fix sed script to
43269         match only tests.
43270
43271 2007-10-17  Bruno Haible  <bruno@clisp.org>
43272
43273         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
43274         allow locale names without encoding suffix.
43275         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43276         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43277
43278 2007-10-16  Bruno Haible  <bruno@clisp.org>
43279
43280         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
43281         * lib/getgroups.c (getgroups): Likewise.
43282         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
43283
43284 2007-10-16  Bruno Haible  <bruno@clisp.org>
43285
43286         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
43287         * modules/malloc-posix (License): Likewise.
43288         * modules/realloc-posix (License): Likewise.
43289         * modules/calloc-posix (License): Likewise.
43290         * modules/intprops (License): Change from GPL to LGPL, with
43291         Paul Eggert's approval.
43292
43293 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
43294
43295         Merge glibc changes into lib/glob.c.
43296
43297         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
43298         2007-10-15 04:59:03 UTC.  Here are the changes:
43299
43300         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
43301
43302         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
43303
43304         * lib/glob.c: Add some branch prediction throughout.
43305
43306         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
43307
43308         [BZ #5103]
43309         * lib/glob.c (glob): Recognize patterns starting \/.
43310
43311         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
43312
43313         [BZ #3996]
43314         * lib/glob.c (attribute_hidden): Define if not defined.
43315         (glob): Unescape dirname, filename or username when needed and not
43316         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
43317         is NULL.  Handle unescaped [ in pattern without closing ].
43318         Don't pass GLOB_CHECK down to recursive glob for directories.
43319         (__glob_pattern_type): New function.
43320         (__glob_pattern_p): Implement using __glob_pattern_type.
43321         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
43322         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
43323         Remove unreachable code.
43324
43325         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
43326
43327         * lib/glob.c (glob_in_dir): Add some comments and asserts to
43328         explain why there are no leaks.
43329
43330         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
43331
43332         [BZ #3253]
43333         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
43334         time, rather allocate increasingly bigger arrays of pointers, if
43335         possible with alloca, if too large with malloc.
43336
43337 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
43338
43339         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
43340         Problem reported by H.Merijn Brand in
43341         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
43342         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
43343         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
43344
43345 2007-10-15  Bruno Haible  <bruno@clisp.org>
43346
43347         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
43348         with explicit rpl_ prefix.
43349         * lib/fopen.c (fopen): Likewise.
43350         * lib/freopen.c (freopen): Likewise.
43351         * lib/iconv.c (iconv): Likewise.
43352         * lib/iconv_close.c (iconv_close): Likewise.
43353
43354 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43355
43356         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
43357
43358 2007-10-15  Bruno Haible  <bruno@clisp.org>
43359
43360         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
43361         <stddef.h> instead of <stdlib.h> since we only need NULL.
43362         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43363
43364 2007-10-15  Bruno Haible  <bruno@clisp.org>
43365
43366         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
43367         Replace paragraph talking about LIBOBJS.
43368         Reported by Colin Watson <cjwatson@debian.org>.
43369
43370 2007-10-15  Bruno Haible  <bruno@clisp.org>
43371
43372         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
43373         <stdlib.h> before using NULL.
43374
43375 2007-10-15  Simon Josefsson  <simon@josefsson.org>
43376
43377         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
43378         Reported by Albert Chin <china@thewrittenword.com>.
43379
43380 2007-10-14  Bruno Haible  <bruno@clisp.org>
43381
43382         * modules/iconv_open-utf-tests: New file.
43383         * tests/test-iconv-utf.c: New file.
43384
43385         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
43386         * modules/iconv_open-utf: New file.
43387         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
43388         (iconv, iconv_close): New declarations.
43389         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
43390         be defined.
43391         (iconv_open): Add special handling of conversion between UTF-8 and
43392         UTF-{16,32}{BE,LE}.
43393         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
43394         * lib/iconv_close.c: New file.
43395         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
43396         gl_FUNC_ICONV_OPEN.
43397         (gl_FUNC_ICONV_OPEN): Use it.
43398         (gl_FUNC_ICONV_OPEN_UTF): New macro.
43399         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
43400         and REPLACE_ICONV_UTF.
43401         * modules/iconv_open (Depends-on): Add c-strcase.
43402         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
43403         ICONV_CONST.
43404         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
43405
43406 2007-10-13  Albert Chin  <china@thewrittenword.com>
43407             Bruno Haible  <bruno@clisp.org>
43408
43409         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
43410         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
43411
43412 2007-10-13  Bruno Haible  <bruno@clisp.org>
43413
43414         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
43415         defined, use the ISO C99 inline semantics.
43416         * lib/argp.h (ARGP_EI): Likewise.
43417
43418 2007-10-13  Bruno Haible  <bruno@clisp.org>
43419
43420         Handle 'inline' change in gcc 4.3.0.
43421         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
43422         argp_fmtstream_write, argp_fmtstream_set_lmargin,
43423         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
43424         argp_fmtstream_point): Disable 'extern' declaration if the function
43425         definition is going to be provided inline.
43426         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
43427         semantics, not the ISO C99 inline semantics.
43428         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
43429         'extern' declaration if the function definition is going to be provided
43430         inline.
43431         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
43432         the GNU C inline semantics, not the ISO C99 inline semantics. With
43433         GCC 4.2, avoid a warning.
43434
43435 2007-10-13  Bruno Haible  <bruno@clisp.org>
43436
43437         * lib/freading.h (freading): Enable the use of __freading for
43438         glibc >= 2.7.
43439         * lib/freading.c (freading): Likewise.
43440
43441 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
43442
43443         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
43444         "warning: C99 inline functions are not supported; using GNU89".
43445
43446 2007-10-12  Bruno Haible  <bruno@clisp.org>
43447
43448         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
43449         of 2.
43450         * tests/test-ceilf2.c: New file.
43451         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
43452
43453         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
43454         * modules/ceilf-tests: Update.
43455
43456 2007-10-12  Bruno Haible  <bruno@clisp.org>
43457
43458         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
43459         of 2.
43460         * tests/test-floorf2.c: New file.
43461         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
43462
43463         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
43464         * modules/floorf-tests: Update.
43465
43466 2007-10-12  Bruno Haible  <bruno@clisp.org>
43467
43468         * tests/test-trunc2.c: New file.
43469         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
43470
43471         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
43472         * modules/trunc-tests: Update.
43473
43474 2007-10-12  Bruno Haible  <bruno@clisp.org>
43475
43476         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
43477         of 2.
43478         * tests/test-truncf2.c: New file.
43479         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
43480
43481         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
43482         * modules/truncf-tests: Update.
43483
43484 2007-10-11  Eric Blake  <ebb9@byu.net>
43485
43486         Don't claim strerror is broken on Interix.
43487         * doc/functions/strerror.texi (strerror): Known broken systems are
43488         now Solaris 8, and not Interix.
43489         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
43490         Interix on cross-compile.
43491         Reported by Martin Koeppe in
43492         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
43493
43494 2007-10-11  Bruno Haible  <bruno@clisp.org>
43495
43496         * modules/i-ring-tests: New file.
43497         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
43498         instead of assert.
43499
43500 2007-10-11  Bruno Haible  <bruno@clisp.org>
43501
43502         * modules/filenamecat-tests: New file.
43503         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
43504         * lib/filenamecat.c: Remove test code.
43505
43506 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
43507
43508         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
43509
43510         * lib/strerror.c: Include <string.h> always, to test interface,
43511         and to remove the need for the dummy.
43512         Include intprops.h to compute width instead of doing it ourselves
43513         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
43514         (strerror): Define it to return NULL if there's no system strerror.
43515         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
43516         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
43517         ancient pre-strerror Unix systems well any more.  Saying "unknown
43518         system error" is enough.
43519         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
43520         simpler strerror.c implementation.
43521         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
43522         Simplify the tests to reflect the simpler strerror implementation.
43523         * modules/strerror (Depends-on): Add intprops.
43524
43525 2007-10-09  Eric Blake  <ebb9@byu.net>
43526
43527         Silence test-fpending.
43528         * modules/fpending-tests (Files): Add wrapper script.
43529         * tests/test-fpending.sh: New file.
43530
43531 2007-10-09  Bruno Haible  <bruno@clisp.org>
43532
43533         * MODULES.html.sh (func_module): Don't create a hyperlink for
43534         function names like 'printf_frexp'.
43535         (Misc): Add crc, memxor.
43536         (Characteristics of floating types): New section.
43537         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
43538         isnanf-nolibm, signbit, trunc, truncf, truncl.
43539         (Enhancements for ISO C 99 functions): New subsection Input/output.
43540         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
43541         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
43542         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
43543         (Compatibility checks for POSIX:2001 functions): Add clock-time.
43544         (Enhancements for POSIX:2001 functions): Add chdir-long.
43545         (File system functions): Add areadlink, chdir-safer, read-file.
43546         Remove cycle-check.
43547         (File system as inode set): New section.
43548         (Date and time): Add gethrxtime.
43549         (Multithreading): Add openmp.
43550         (Internationalization functions): Add localename.
43551         (Unicode string functions): Add unistr/u*-mbsnlen.
43552         (Support for maintaining and releasing projects): Add git-version-gen.
43553         (Lone files): Remove directories.
43554
43555 2007-10-08  Ben Pfaff  <blp@gnu.org>
43556
43557         * lib/xmalloca.h: Fix typo in comment.
43558
43559 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
43560
43561         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
43562         when avoiding problems with integer overflow.  Use a portable test
43563         instead.
43564
43565 2007-10-08  Simon Josefsson  <simon@josefsson.org>
43566
43567         * modules/dummy (License): Change to LGPLv2+.
43568         * modules/float (License): Likewise
43569         * modules/realloc (License): Likewise
43570         * modules/stdlib (License): Likewise
43571
43572 2007-10-07  Bruno Haible  <bruno@clisp.org>
43573
43574         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
43575         * floor.c (TWO_MANT_DIG): Likewise.
43576         * ceil.c (TWO_MANT_DIG): Likewise.
43577         Reported by Ben Pfaff.
43578
43579 2007-10-07  Bruno Haible  <bruno@clisp.org>
43580
43581         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
43582         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
43583         * lib/frexp.c (FUNC): Likewise.
43584         * lib/printf-frexp.h (printf_frexp): Likewise.
43585         * lib/printf-frexpl.h (printf_frexpl): Likewise.
43586         * lib/printf-frexp.c (FUNC): Likewise.
43587         Suggested by Jim Meyering.
43588
43589 2007-10-07  Jim Meyering  <meyering@redhat.com>
43590
43591         Make xnanosleep's integer overflow test more robust.
43592         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
43593         so that gcc-4.3.0 doesn't optimize away this test for overflow.
43594
43595 2007-10-07  Bruno Haible  <bruno@clisp.org>
43596
43597         * NEWS: Mention the license change.
43598
43599         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
43600         abbreviations in the modules files.
43601
43602         Change copyright notice from GPLv2+ to GPLv3+.
43603         * README: Change copyright notice.
43604         * MODULES.html.sh: Likewise.
43605         * build-aux/bootstrap.conf: Likewise.
43606         * build-aux/config.libpath: Likewise.
43607         * build-aux/csharpcomp.sh.in: Likewise.
43608         * build-aux/csharpexec.sh.in: Likewise.
43609         * build-aux/install-reloc: Likewise.
43610         * build-aux/javacomp.sh.in: Likewise.
43611         * build-aux/javaexec.sh.in: Likewise.
43612         * build-aux/ldd.sh.in: Likewise.
43613         * build-aux/reloc-ldflags: Likewise.
43614         * build-aux/relocatable.sh.in: Likewise.
43615         * build-aux/x-to-1.in: Likewise.
43616         * check-module: Likewise.
43617         * config/srclistvars.sh: Likewise.
43618         * gnulib-tool: Likewise.
43619         * lib/acl-internal.h: Likewise.
43620         * lib/acl.c: Likewise.
43621         * lib/acl.h: Likewise.
43622         * lib/acl_entries.c: Likewise.
43623         * lib/areadlink-with-size.c: Likewise.
43624         * lib/areadlink.c: Likewise.
43625         * lib/areadlink.h: Likewise.
43626         * lib/argmatch.c: Likewise.
43627         * lib/argmatch.h: Likewise.
43628         * lib/argp-ba.c: Likewise.
43629         * lib/argp-eexst.c: Likewise.
43630         * lib/argp-fmtstream.c: Likewise.
43631         * lib/argp-fmtstream.h: Likewise.
43632         * lib/argp-fs-xinl.c: Likewise.
43633         * lib/argp-help.c: Likewise.
43634         * lib/argp-namefrob.h: Likewise.
43635         * lib/argp-parse.c: Likewise.
43636         * lib/argp-pin.c: Likewise.
43637         * lib/argp-pv.c: Likewise.
43638         * lib/argp-pvh.c: Likewise.
43639         * lib/argp-xinl.c: Likewise.
43640         * lib/argp.h: Likewise.
43641         * lib/at-func.c: Likewise.
43642         * lib/atanl.c: Likewise.
43643         * lib/backupfile.c: Likewise.
43644         * lib/backupfile.h: Likewise.
43645         * lib/basename.c: Likewise.
43646         * lib/binary-io.h: Likewise.
43647         * lib/byteswap.in.h: Likewise.
43648         * lib/c-stack.c: Likewise.
43649         * lib/c-stack.h: Likewise.
43650         * lib/c-strcasestr.c: Likewise.
43651         * lib/c-strcasestr.h: Likewise.
43652         * lib/c-strstr.c: Likewise.
43653         * lib/c-strstr.h: Likewise.
43654         * lib/c-strtod.c: Likewise.
43655         * lib/calloc.c: Likewise.
43656         * lib/canon-host.c: Likewise.
43657         * lib/canon-host.h: Likewise.
43658         * lib/canonicalize-lgpl.c: Likewise.
43659         * lib/canonicalize.c: Likewise.
43660         * lib/canonicalize.h: Likewise.
43661         * lib/ceil.c: Likewise.
43662         * lib/ceilf.c: Likewise.
43663         * lib/ceill.c: Likewise.
43664         * lib/chdir-long.c: Likewise.
43665         * lib/chdir-long.h: Likewise.
43666         * lib/chdir-safer.c: Likewise.
43667         * lib/chdir-safer.h: Likewise.
43668         * lib/chown.c: Likewise.
43669         * lib/classpath.c: Likewise.
43670         * lib/classpath.h: Likewise.
43671         * lib/clean-temp.c: Likewise.
43672         * lib/clean-temp.h: Likewise.
43673         * lib/cloexec.c: Likewise.
43674         * lib/close-stream.c: Likewise.
43675         * lib/closein.c: Likewise.
43676         * lib/closein.h: Likewise.
43677         * lib/closeout.c: Likewise.
43678         * lib/closeout.h: Likewise.
43679         * lib/concat-filename.c: Likewise.
43680         * lib/copy-file.c: Likewise.
43681         * lib/copy-file.h: Likewise.
43682         * lib/count-one-bits.h: Likewise.
43683         * lib/crc.c: Likewise.
43684         * lib/crc.h: Likewise.
43685         * lib/creat-safer.c: Likewise.
43686         * lib/csharpcomp.c: Likewise.
43687         * lib/csharpcomp.h: Likewise.
43688         * lib/csharpexec.c: Likewise.
43689         * lib/csharpexec.h: Likewise.
43690         * lib/cycle-check.c: Likewise.
43691         * lib/cycle-check.h: Likewise.
43692         * lib/diacrit.c: Likewise.
43693         * lib/diacrit.h: Likewise.
43694         * lib/diffseq.h: Likewise.
43695         * lib/dirchownmod.c: Likewise.
43696         * lib/dirent.in.h: Likewise.
43697         * lib/dirfd.c: Likewise.
43698         * lib/dirfd.h: Likewise.
43699         * lib/dirname.c: Likewise.
43700         * lib/dirname.h: Likewise.
43701         * lib/dummy.c: Likewise.
43702         * lib/dup-safer.c: Likewise.
43703         * lib/dup2.c: Likewise.
43704         * lib/eealloc.h: Likewise.
43705         * lib/error.c: Likewise.
43706         * lib/error.h: Likewise.
43707         * lib/euidaccess.c: Likewise.
43708         * lib/exclude.c: Likewise.
43709         * lib/exclude.h: Likewise.
43710         * lib/execute.c: Likewise.
43711         * lib/execute.h: Likewise.
43712         * lib/exitfail.c: Likewise.
43713         * lib/exitfail.h: Likewise.
43714         * lib/expl.c: Likewise.
43715         * lib/fatal-signal.c: Likewise.
43716         * lib/fatal-signal.h: Likewise.
43717         * lib/fbufmode.c: Likewise.
43718         * lib/fbufmode.h: Likewise.
43719         * lib/fchdir.c: Likewise.
43720         * lib/fchmodat.c: Likewise.
43721         * lib/fchownat.c: Likewise.
43722         * lib/fcntl--.h: Likewise.
43723         * lib/fcntl-safer.h: Likewise.
43724         * lib/fcntl.in.h: Likewise.
43725         * lib/fd-safer.c: Likewise.
43726         * lib/fflush.c: Likewise.
43727         * lib/file-has-acl.c: Likewise.
43728         * lib/file-set.c: Likewise.
43729         * lib/file-type.c: Likewise.
43730         * lib/file-type.h: Likewise.
43731         * lib/fileblocks.c: Likewise.
43732         * lib/filemode.c: Likewise.
43733         * lib/filemode.h: Likewise.
43734         * lib/filename.h: Likewise.
43735         * lib/filenamecat.c: Likewise.
43736         * lib/filenamecat.h: Likewise.
43737         * lib/findprog.c: Likewise.
43738         * lib/findprog.h: Likewise.
43739         * lib/float.in.h: Likewise.
43740         * lib/floor.c: Likewise.
43741         * lib/floorf.c: Likewise.
43742         * lib/floorl.c: Likewise.
43743         * lib/fopen-safer.c: Likewise.
43744         * lib/fopen.c: Likewise.
43745         * lib/fpending.c: Likewise.
43746         * lib/fpending.h: Likewise.
43747         * lib/fprintf.c: Likewise.
43748         * lib/fprintftime.h: Likewise.
43749         * lib/fpucw.h: Likewise.
43750         * lib/fpurge.c: Likewise.
43751         * lib/fpurge.h: Likewise.
43752         * lib/freadable.c: Likewise.
43753         * lib/freadable.h: Likewise.
43754         * lib/freadahead.c: Likewise.
43755         * lib/freadahead.h: Likewise.
43756         * lib/freading.c: Likewise.
43757         * lib/freading.h: Likewise.
43758         * lib/free.c: Likewise.
43759         * lib/freopen.c: Likewise.
43760         * lib/frexp.c: Likewise.
43761         * lib/frexpl.c: Likewise.
43762         * lib/fseek.c: Likewise.
43763         * lib/fseterr.c: Likewise.
43764         * lib/fseterr.h: Likewise.
43765         * lib/fstatat.c: Likewise.
43766         * lib/fstrcmp.c: Likewise.
43767         * lib/fstrcmp.h: Likewise.
43768         * lib/fsusage.c: Likewise.
43769         * lib/fsusage.h: Likewise.
43770         * lib/ftell.c: Likewise.
43771         * lib/ftello.c: Likewise.
43772         * lib/fts-cycle.c: Likewise.
43773         * lib/fts.c: Likewise.
43774         * lib/fts_.h: Likewise.
43775         * lib/full-read.c: Likewise.
43776         * lib/full-read.h: Likewise.
43777         * lib/full-write.c: Likewise.
43778         * lib/full-write.h: Likewise.
43779         * lib/fwritable.c: Likewise.
43780         * lib/fwritable.h: Likewise.
43781         * lib/fwriteerror.c: Likewise.
43782         * lib/fwriteerror.h: Likewise.
43783         * lib/fwriting.c: Likewise.
43784         * lib/fwriting.h: Likewise.
43785         * lib/gcd.c: Likewise.
43786         * lib/gcd.h: Likewise.
43787         * lib/getcwd.c: Likewise.
43788         * lib/getdate.h: Likewise.
43789         * lib/getdate.y: Likewise.
43790         * lib/getdomainname.c: Likewise.
43791         * lib/getdomainname.h: Likewise.
43792         * lib/getgroups.c: Likewise.
43793         * lib/gethostname.c: Likewise.
43794         * lib/gethrxtime.c: Likewise.
43795         * lib/gethrxtime.h: Likewise.
43796         * lib/getloadavg.c: Likewise.
43797         * lib/getndelim2.c: Likewise.
43798         * lib/getndelim2.h: Likewise.
43799         * lib/getnline.c: Likewise.
43800         * lib/getnline.h: Likewise.
43801         * lib/getopt.c: Likewise.
43802         * lib/getopt.in.h: Likewise.
43803         * lib/getopt1.c: Likewise.
43804         * lib/getopt_int.h: Likewise.
43805         * lib/getpagesize.h: Likewise.
43806         * lib/getsubopt.c: Likewise.
43807         * lib/gettime.c: Likewise.
43808         * lib/getugroups.c: Likewise.
43809         * lib/getugroups.h: Likewise.
43810         * lib/getusershell.c: Likewise.
43811         * lib/gl_anyavltree_list1.h: Likewise.
43812         * lib/gl_anyavltree_list2.h: Likewise.
43813         * lib/gl_anyhash_list1.h: Likewise.
43814         * lib/gl_anyhash_list2.h: Likewise.
43815         * lib/gl_anylinked_list1.h: Likewise.
43816         * lib/gl_anylinked_list2.h: Likewise.
43817         * lib/gl_anyrbtree_list1.h: Likewise.
43818         * lib/gl_anyrbtree_list2.h: Likewise.
43819         * lib/gl_anytree_list1.h: Likewise.
43820         * lib/gl_anytree_list2.h: Likewise.
43821         * lib/gl_anytree_oset.h: Likewise.
43822         * lib/gl_anytreehash_list1.h: Likewise.
43823         * lib/gl_anytreehash_list2.h: Likewise.
43824         * lib/gl_array_list.c: Likewise.
43825         * lib/gl_array_list.h: Likewise.
43826         * lib/gl_array_oset.c: Likewise.
43827         * lib/gl_array_oset.h: Likewise.
43828         * lib/gl_avltree_list.c: Likewise.
43829         * lib/gl_avltree_list.h: Likewise.
43830         * lib/gl_avltree_oset.c: Likewise.
43831         * lib/gl_avltree_oset.h: Likewise.
43832         * lib/gl_avltreehash_list.c: Likewise.
43833         * lib/gl_avltreehash_list.h: Likewise.
43834         * lib/gl_carray_list.c: Likewise.
43835         * lib/gl_carray_list.h: Likewise.
43836         * lib/gl_linked_list.c: Likewise.
43837         * lib/gl_linked_list.h: Likewise.
43838         * lib/gl_linkedhash_list.c: Likewise.
43839         * lib/gl_linkedhash_list.h: Likewise.
43840         * lib/gl_list.c: Likewise.
43841         * lib/gl_list.h: Likewise.
43842         * lib/gl_oset.c: Likewise.
43843         * lib/gl_oset.h: Likewise.
43844         * lib/gl_rbtree_list.c: Likewise.
43845         * lib/gl_rbtree_list.h: Likewise.
43846         * lib/gl_rbtree_oset.c: Likewise.
43847         * lib/gl_rbtree_oset.h: Likewise.
43848         * lib/gl_rbtreehash_list.c: Likewise.
43849         * lib/gl_rbtreehash_list.h: Likewise.
43850         * lib/gl_sublist.c: Likewise.
43851         * lib/gl_sublist.h: Likewise.
43852         * lib/group-member.c: Likewise.
43853         * lib/group-member.h: Likewise.
43854         * lib/hard-locale.c: Likewise.
43855         * lib/hard-locale.h: Likewise.
43856         * lib/hash-pjw.c: Likewise.
43857         * lib/hash-pjw.h: Likewise.
43858         * lib/hash-triple.c: Likewise.
43859         * lib/hash.c: Likewise.
43860         * lib/hash.h: Likewise.
43861         * lib/human.c: Likewise.
43862         * lib/human.h: Likewise.
43863         * lib/i-ring.c: Likewise.
43864         * lib/i-ring.h: Likewise.
43865         * lib/idcache.c: Likewise.
43866         * lib/imaxabs.c: Likewise.
43867         * lib/imaxdiv.c: Likewise.
43868         * lib/inet_pton.c: Likewise.
43869         * lib/inet_pton.h: Likewise.
43870         * lib/intprops.h: Likewise.
43871         * lib/inttostr.c: Likewise.
43872         * lib/inttostr.h: Likewise.
43873         * lib/inttypes.in.h: Likewise.
43874         * lib/isapipe.c: Likewise.
43875         * lib/isdir.c: Likewise.
43876         * lib/isnan.c: Likewise.
43877         * lib/isnan.h: Likewise.
43878         * lib/isnanf.c: Likewise.
43879         * lib/isnanf.h: Likewise.
43880         * lib/isnanl-nolibm.h: Likewise.
43881         * lib/isnanl.c: Likewise.
43882         * lib/isnanl.h: Likewise.
43883         * lib/javacomp.c: Likewise.
43884         * lib/javacomp.h: Likewise.
43885         * lib/javaexec.c: Likewise.
43886         * lib/javaexec.h: Likewise.
43887         * lib/javaversion.c: Likewise.
43888         * lib/javaversion.h: Likewise.
43889         * lib/javaversion.java: Likewise.
43890         * lib/lbrkprop.h: Likewise.
43891         * lib/lchmod.h: Likewise.
43892         * lib/lchown.c: Likewise.
43893         * lib/ldexpl.c: Likewise.
43894         * lib/linebreak.c: Likewise.
43895         * lib/linebreak.h: Likewise.
43896         * lib/linebuffer.c: Likewise.
43897         * lib/linebuffer.h: Likewise.
43898         * lib/locale.in.h: Likewise.
43899         * lib/logl.c: Likewise.
43900         * lib/long-options.c: Likewise.
43901         * lib/long-options.h: Likewise.
43902         * lib/lstat.c: Likewise.
43903         * lib/lstat.h: Likewise.
43904         * lib/math.in.h: Likewise.
43905         * lib/mbchar.c: Likewise.
43906         * lib/mbchar.h: Likewise.
43907         * lib/mbfile.h: Likewise.
43908         * lib/mbiter.h: Likewise.
43909         * lib/mbscasecmp.c: Likewise.
43910         * lib/mbscasestr.c: Likewise.
43911         * lib/mbschr.c: Likewise.
43912         * lib/mbscspn.c: Likewise.
43913         * lib/mbslen.c: Likewise.
43914         * lib/mbsncasecmp.c: Likewise.
43915         * lib/mbsnlen.c: Likewise.
43916         * lib/mbspbrk.c: Likewise.
43917         * lib/mbspcasecmp.c: Likewise.
43918         * lib/mbsrchr.c: Likewise.
43919         * lib/mbssep.c: Likewise.
43920         * lib/mbsspn.c: Likewise.
43921         * lib/mbsstr.c: Likewise.
43922         * lib/mbstok_r.c: Likewise.
43923         * lib/mbswidth.c: Likewise.
43924         * lib/mbswidth.h: Likewise.
43925         * lib/mbuiter.h: Likewise.
43926         * lib/memcasecmp.c: Likewise.
43927         * lib/memcasecmp.h: Likewise.
43928         * lib/memchr.c: Likewise.
43929         * lib/memcmp.c: Likewise.
43930         * lib/memcoll.c: Likewise.
43931         * lib/memcoll.h: Likewise.
43932         * lib/memcpy.c: Likewise.
43933         * lib/memrchr.c: Likewise.
43934         * lib/mkancesdirs.c: Likewise.
43935         * lib/mkdir-p.c: Likewise.
43936         * lib/mkdir-p.h: Likewise.
43937         * lib/mkdir.c: Likewise.
43938         * lib/mkdirat.c: Likewise.
43939         * lib/mkdtemp.c: Likewise.
43940         * lib/mkstemp-safer.c: Likewise.
43941         * lib/mkstemp.c: Likewise.
43942         * lib/modechange.c: Likewise.
43943         * lib/modechange.h: Likewise.
43944         * lib/mountlist.c: Likewise.
43945         * lib/mountlist.h: Likewise.
43946         * lib/mpsort.c: Likewise.
43947         * lib/nanosleep.c: Likewise.
43948         * lib/obstack.c: Likewise.
43949         * lib/obstack.h: Likewise.
43950         * lib/open-safer.c: Likewise.
43951         * lib/open.c: Likewise.
43952         * lib/openat-die.c: Likewise.
43953         * lib/openat-priv.h: Likewise.
43954         * lib/openat-proc.c: Likewise.
43955         * lib/openat.c: Likewise.
43956         * lib/openat.h: Likewise.
43957         * lib/pagealign_alloc.c: Likewise.
43958         * lib/pagealign_alloc.h: Likewise.
43959         * lib/physmem.c: Likewise.
43960         * lib/physmem.h: Likewise.
43961         * lib/pipe-safer.c: Likewise.
43962         * lib/pipe.c: Likewise.
43963         * lib/pipe.h: Likewise.
43964         * lib/posixtm.c: Likewise.
43965         * lib/posixtm.h: Likewise.
43966         * lib/posixver.c: Likewise.
43967         * lib/printf-frexp.c: Likewise.
43968         * lib/printf-frexp.h: Likewise.
43969         * lib/printf-frexpl.c: Likewise.
43970         * lib/printf-frexpl.h: Likewise.
43971         * lib/printf.c: Likewise.
43972         * lib/progname.c: Likewise.
43973         * lib/progname.h: Likewise.
43974         * lib/progreloc.c: Likewise.
43975         * lib/putenv.c: Likewise.
43976         * lib/quote.c: Likewise.
43977         * lib/quote.h: Likewise.
43978         * lib/quotearg.c: Likewise.
43979         * lib/quotearg.h: Likewise.
43980         * lib/raise.c: Likewise.
43981         * lib/readline.c: Likewise.
43982         * lib/readline.h: Likewise.
43983         * lib/readlink.c: Likewise.
43984         * lib/readtokens.c: Likewise.
43985         * lib/readtokens.h: Likewise.
43986         * lib/readtokens0.c: Likewise.
43987         * lib/readtokens0.h: Likewise.
43988         * lib/readutmp.c: Likewise.
43989         * lib/readutmp.h: Likewise.
43990         * lib/realloc.c: Likewise.
43991         * lib/relocwrapper.c: Likewise.
43992         * lib/rename-dest-slash.c: Likewise.
43993         * lib/rename.c: Likewise.
43994         * lib/rmdir.c: Likewise.
43995         * lib/rpmatch.c: Likewise.
43996         * lib/safe-read.c: Likewise.
43997         * lib/safe-read.h: Likewise.
43998         * lib/safe-write.c: Likewise.
43999         * lib/safe-write.h: Likewise.
44000         * lib/same-inode.h: Likewise.
44001         * lib/same.c: Likewise.
44002         * lib/same.h: Likewise.
44003         * lib/save-cwd.c: Likewise.
44004         * lib/save-cwd.h: Likewise.
44005         * lib/savedir.c: Likewise.
44006         * lib/savedir.h: Likewise.
44007         * lib/savewd.c: Likewise.
44008         * lib/savewd.h: Likewise.
44009         * lib/search.in.h: Likewise.
44010         * lib/setenv.c: Likewise.
44011         * lib/setenv.h: Likewise.
44012         * lib/settime.c: Likewise.
44013         * lib/sh-quote.c: Likewise.
44014         * lib/sh-quote.h: Likewise.
44015         * lib/sig2str.c: Likewise.
44016         * lib/sig2str.h: Likewise.
44017         * lib/signal.in.h: Likewise.
44018         * lib/signbitd.c: Likewise.
44019         * lib/signbitf.c: Likewise.
44020         * lib/signbitl.c: Likewise.
44021         * lib/sigprocmask.c: Likewise.
44022         * lib/sincosl.c: Likewise.
44023         * lib/sleep.c: Likewise.
44024         * lib/sprintf.c: Likewise.
44025         * lib/sqrtl.c: Likewise.
44026         * lib/stat-time.h: Likewise.
44027         * lib/stdio--.h: Likewise.
44028         * lib/stdio-safer.h: Likewise.
44029         * lib/stdlib--.h: Likewise.
44030         * lib/stdlib-safer.h: Likewise.
44031         * lib/stdlib.in.h: Likewise.
44032         * lib/stpcpy.c: Likewise.
44033         * lib/stpncpy.c: Likewise.
44034         * lib/strchrnul.c: Likewise.
44035         * lib/strcspn.c: Likewise.
44036         * lib/strerror.c: Likewise.
44037         * lib/strftime.c: Likewise.
44038         * lib/strftime.h: Likewise.
44039         * lib/striconveh.c: Likewise.
44040         * lib/striconveh.h: Likewise.
44041         * lib/striconveha.c: Likewise.
44042         * lib/striconveha.h: Likewise.
44043         * lib/stripslash.c: Likewise.
44044         * lib/strnlen1.c: Likewise.
44045         * lib/strnlen1.h: Likewise.
44046         * lib/strtod.c: Likewise.
44047         * lib/strtoimax.c: Likewise.
44048         * lib/strtok_r.c: Likewise.
44049         * lib/strtol.c: Likewise.
44050         * lib/strtoll.c: Likewise.
44051         * lib/strtoul.c: Likewise.
44052         * lib/strtoull.c: Likewise.
44053         * lib/sysexits.in.h: Likewise.
44054         * lib/tempname.c: Likewise.
44055         * lib/tempname.h: Likewise.
44056         * lib/timespec.h: Likewise.
44057         * lib/tls.c: Likewise.
44058         * lib/tls.h: Likewise.
44059         * lib/tmpdir.c: Likewise.
44060         * lib/tmpdir.h: Likewise.
44061         * lib/tmpfile-safer.c: Likewise.
44062         * lib/tmpfile.c: Likewise.
44063         * lib/trigl.c: Likewise.
44064         * lib/trigl.h: Likewise.
44065         * lib/trim.c: Likewise.
44066         * lib/trim.h: Likewise.
44067         * lib/trunc.c: Likewise.
44068         * lib/truncf.c: Likewise.
44069         * lib/truncl.c: Likewise.
44070         * lib/tsearch.c: Likewise.
44071         * lib/unicodeio.c: Likewise.
44072         * lib/unicodeio.h: Likewise.
44073         * lib/unistd--.h: Likewise.
44074         * lib/unistd-safer.h: Likewise.
44075         * lib/unistdio/ulc-fprintf.c: Likewise.
44076         * lib/unistdio/ulc-vfprintf.c: Likewise.
44077         * lib/unlinkdir.c: Likewise.
44078         * lib/unlinkdir.h: Likewise.
44079         * lib/unlocked-io.h: Likewise.
44080         * lib/unsetenv.c: Likewise.
44081         * lib/userspec.c: Likewise.
44082         * lib/utime.c: Likewise.
44083         * lib/utimecmp.c: Likewise.
44084         * lib/utimecmp.h: Likewise.
44085         * lib/utimens.c: Likewise.
44086         * lib/verify.h: Likewise.
44087         * lib/verror.c: Likewise.
44088         * lib/verror.h: Likewise.
44089         * lib/version-etc-fsf.c: Likewise.
44090         * lib/version-etc.c: Likewise.
44091         * lib/version-etc.h: Likewise.
44092         * lib/vfprintf.c: Likewise.
44093         * lib/vprintf.c: Likewise.
44094         * lib/vsprintf.c: Likewise.
44095         * lib/w32spawn.h: Likewise.
44096         * lib/wait-process.c: Likewise.
44097         * lib/wait-process.h: Likewise.
44098         * lib/wcwidth.c: Likewise.
44099         * lib/write-any-file.c: Likewise.
44100         * lib/xalloc-die.c: Likewise.
44101         * lib/xalloc.h: Likewise.
44102         * lib/xasprintf.c: Likewise.
44103         * lib/xgetcwd.c: Likewise.
44104         * lib/xgetcwd.h: Likewise.
44105         * lib/xgetdomainname.c: Likewise.
44106         * lib/xgetdomainname.h: Likewise.
44107         * lib/xgethostname.c: Likewise.
44108         * lib/xmalloc.c: Likewise.
44109         * lib/xmalloca.c: Likewise.
44110         * lib/xmalloca.h: Likewise.
44111         * lib/xmemcoll.c: Likewise.
44112         * lib/xnanosleep.c: Likewise.
44113         * lib/xreadlink.c: Likewise.
44114         * lib/xreadlink.h: Likewise.
44115         * lib/xsetenv.c: Likewise.
44116         * lib/xsetenv.h: Likewise.
44117         * lib/xstriconv.c: Likewise.
44118         * lib/xstriconv.h: Likewise.
44119         * lib/xstrndup.c: Likewise.
44120         * lib/xstrndup.h: Likewise.
44121         * lib/xstrtod.c: Likewise.
44122         * lib/xstrtod.h: Likewise.
44123         * lib/xstrtol-error.c: Likewise.
44124         * lib/xstrtol.c: Likewise.
44125         * lib/xstrtol.h: Likewise.
44126         * lib/xtime.h: Likewise.
44127         * lib/xvasprintf.c: Likewise.
44128         * lib/xvasprintf.h: Likewise.
44129         * lib/yesno.c: Likewise.
44130         * lib/yesno.h: Likewise.
44131         * posix-modules: Likewise.
44132         * tests/test-alloca-opt.c: Likewise.
44133         * tests/test-arcfour.c: Likewise.
44134         * tests/test-arctwo.c: Likewise.
44135         * tests/test-argmatch.c: Likewise.
44136         * tests/test-argp-2.sh: Likewise.
44137         * tests/test-argp.c: Likewise.
44138         * tests/test-arpa_inet.c: Likewise.
44139         * tests/test-array_list.c: Likewise.
44140         * tests/test-array_oset.c: Likewise.
44141         * tests/test-atexit.c: Likewise.
44142         * tests/test-avltree_list.c: Likewise.
44143         * tests/test-avltree_oset.c: Likewise.
44144         * tests/test-avltreehash_list.c: Likewise.
44145         * tests/test-base64.c: Likewise.
44146         * tests/test-binary-io.c: Likewise.
44147         * tests/test-byteswap.c: Likewise.
44148         * tests/test-c-ctype.c: Likewise.
44149         * tests/test-c-strcasecmp.c: Likewise.
44150         * tests/test-c-strcasestr.c: Likewise.
44151         * tests/test-c-strncasecmp.c: Likewise.
44152         * tests/test-c-strstr.c: Likewise.
44153         * tests/test-canonicalize-lgpl.c: Likewise.
44154         * tests/test-canonicalize.c: Likewise.
44155         * tests/test-carray_list.c: Likewise.
44156         * tests/test-ceilf.c: Likewise.
44157         * tests/test-ceill.c: Likewise.
44158         * tests/test-count-one-bits.c: Likewise.
44159         * tests/test-crc.c: Likewise.
44160         * tests/test-dirname.c: Likewise.
44161         * tests/test-fbufmode.c: Likewise.
44162         * tests/test-fcntl.c: Likewise.
44163         * tests/test-fflush.c: Likewise.
44164         * tests/test-floorf.c: Likewise.
44165         * tests/test-floorl.c: Likewise.
44166         * tests/test-fopen.c: Likewise.
44167         * tests/test-fprintf-posix.c: Likewise.
44168         * tests/test-fprintf-posix.h: Likewise.
44169         * tests/test-fpurge.c: Likewise.
44170         * tests/test-freadable.c: Likewise.
44171         * tests/test-freadahead.c: Likewise.
44172         * tests/test-freading.c: Likewise.
44173         * tests/test-freopen.c: Likewise.
44174         * tests/test-frexp.c: Likewise.
44175         * tests/test-frexpl.c: Likewise.
44176         * tests/test-fseek.c: Likewise.
44177         * tests/test-fseeko.c: Likewise.
44178         * tests/test-fseterr.c: Likewise.
44179         * tests/test-fstrcmp.c: Likewise.
44180         * tests/test-ftell.c: Likewise.
44181         * tests/test-ftello.c: Likewise.
44182         * tests/test-fwritable.c: Likewise.
44183         * tests/test-fwriting.c: Likewise.
44184         * tests/test-getaddrinfo.c: Likewise.
44185         * tests/test-getpass.c: Likewise.
44186         * tests/test-gettimeofday.c: Likewise.
44187         * tests/test-hmac-md5.c: Likewise.
44188         * tests/test-hmac-sha1.c: Likewise.
44189         * tests/test-iconv.c: Likewise.
44190         * tests/test-iconvme.c: Likewise.
44191         * tests/test-inttypes.c: Likewise.
44192         * tests/test-isnan.c: Likewise.
44193         * tests/test-isnanf.c: Likewise.
44194         * tests/test-isnanl-nolibm.c: Likewise.
44195         * tests/test-isnanl.c: Likewise.
44196         * tests/test-isnanl.h: Likewise.
44197         * tests/test-ldexpl.c: Likewise.
44198         * tests/test-linked_list.c: Likewise.
44199         * tests/test-linkedhash_list.c: Likewise.
44200         * tests/test-locale.c: Likewise.
44201         * tests/test-localename.c: Likewise.
44202         * tests/test-lock.c: Likewise.
44203         * tests/test-lseek.c: Likewise.
44204         * tests/test-malloca.c: Likewise.
44205         * tests/test-math.c: Likewise.
44206         * tests/test-mbscasecmp.c: Likewise.
44207         * tests/test-mbscasestr1.c: Likewise.
44208         * tests/test-mbscasestr2.c: Likewise.
44209         * tests/test-mbscasestr3.c: Likewise.
44210         * tests/test-mbscasestr4.c: Likewise.
44211         * tests/test-mbschr.c: Likewise.
44212         * tests/test-mbscspn.c: Likewise.
44213         * tests/test-mbsncasecmp.c: Likewise.
44214         * tests/test-mbspbrk.c: Likewise.
44215         * tests/test-mbspcasecmp.c: Likewise.
44216         * tests/test-mbsrchr.c: Likewise.
44217         * tests/test-mbsspn.c: Likewise.
44218         * tests/test-mbsstr1.c: Likewise.
44219         * tests/test-mbsstr2.c: Likewise.
44220         * tests/test-mbsstr3.c: Likewise.
44221         * tests/test-md5.c: Likewise.
44222         * tests/test-memmem.c: Likewise.
44223         * tests/test-netinet_in.c: Likewise.
44224         * tests/test-open.c: Likewise.
44225         * tests/test-printf-frexp.c: Likewise.
44226         * tests/test-printf-frexpl.c: Likewise.
44227         * tests/test-printf-posix.c: Likewise.
44228         * tests/test-printf-posix.h: Likewise.
44229         * tests/test-rbtree_list.c: Likewise.
44230         * tests/test-rbtree_oset.c: Likewise.
44231         * tests/test-rbtreehash_list.c: Likewise.
44232         * tests/test-read-file.c: Likewise.
44233         * tests/test-rijndael.c: Likewise.
44234         * tests/test-search.c: Likewise.
44235         * tests/test-signbit.c: Likewise.
44236         * tests/test-sleep.c: Likewise.
44237         * tests/test-snprintf-posix.c: Likewise.
44238         * tests/test-snprintf-posix.h: Likewise.
44239         * tests/test-snprintf.c: Likewise.
44240         * tests/test-sprintf-posix.c: Likewise.
44241         * tests/test-sprintf-posix.h: Likewise.
44242         * tests/test-stat-time.c: Likewise.
44243         * tests/test-stdbool.c: Likewise.
44244         * tests/test-stdint.c: Likewise.
44245         * tests/test-stdio.c: Likewise.
44246         * tests/test-stdlib.c: Likewise.
44247         * tests/test-stpncpy.c: Likewise.
44248         * tests/test-strcasestr.c: Likewise.
44249         * tests/test-striconv.c: Likewise.
44250         * tests/test-striconveh.c: Likewise.
44251         * tests/test-striconveha.c: Likewise.
44252         * tests/test-string.c: Likewise.
44253         * tests/test-sys_select.c: Likewise.
44254         * tests/test-sys_socket.c: Likewise.
44255         * tests/test-sys_stat.c: Likewise.
44256         * tests/test-sys_time.c: Likewise.
44257         * tests/test-sysexits.c: Likewise.
44258         * tests/test-time.c: Likewise.
44259         * tests/test-tls.c: Likewise.
44260         * tests/test-trunc.c: Likewise.
44261         * tests/test-truncf.c: Likewise.
44262         * tests/test-truncl.c: Likewise.
44263         * tests/test-unistd.c: Likewise.
44264         * tests/test-vasnprintf-posix.c: Likewise.
44265         * tests/test-vasnprintf-posix2.c: Likewise.
44266         * tests/test-vasnprintf.c: Likewise.
44267         * tests/test-vasprintf-posix.c: Likewise.
44268         * tests/test-vasprintf.c: Likewise.
44269         * tests/test-verify.c: Likewise.
44270         * tests/test-vfprintf-posix.c: Likewise.
44271         * tests/test-vprintf-posix.c: Likewise.
44272         * tests/test-vsnprintf-posix.c: Likewise.
44273         * tests/test-vsnprintf.c: Likewise.
44274         * tests/test-vsprintf-posix.c: Likewise.
44275         * tests/test-wchar.c: Likewise.
44276         * tests/test-wctype.c: Likewise.
44277         * tests/test-wcwidth.c: Likewise.
44278         * tests/test-xstrtol.c: Likewise.
44279         * tests/test-xvasprintf.c: Likewise.
44280         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
44281         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
44282         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
44283         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
44284         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
44285         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
44286         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
44287         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
44288         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
44289         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
44290         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
44291         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
44292         * tests/uniname/test-uninames.c: Likewise.
44293         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
44294         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
44295         * tests/unistdio/test-u16-printf1.h: Likewise.
44296         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
44297         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
44298         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
44299         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
44300         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
44301         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
44302         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
44303         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
44304         * tests/unistdio/test-u32-printf1.h: Likewise.
44305         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
44306         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
44307         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
44308         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
44309         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
44310         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
44311         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
44312         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
44313         * tests/unistdio/test-u8-printf1.h: Likewise.
44314         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
44315         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
44316         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
44317         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
44318         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
44319         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
44320         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
44321         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
44322         * tests/unistdio/test-ulc-printf1.h: Likewise.
44323         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
44324         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
44325         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
44326         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
44327         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
44328         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
44329         * tests/uniwidth/test-u16-strwidth.c: Likewise.
44330         * tests/uniwidth/test-u16-width.c: Likewise.
44331         * tests/uniwidth/test-u32-strwidth.c: Likewise.
44332         * tests/uniwidth/test-u32-width.c: Likewise.
44333         * tests/uniwidth/test-u8-strwidth.c: Likewise.
44334         * tests/uniwidth/test-u8-width.c: Likewise.
44335         * tests/uniwidth/test-uc_width.c: Likewise.
44336         * config/srclist-update: Likewise.
44337         (fixlicense): Update to GPLv3+.
44338
44339         Change copyright notice from LGPLv2.1+ to LGPLv3+.
44340         * tests/test-tsearch.c: Change copyright notice.
44341
44342         Change copyright notice from LGPLv2.0+ to LGPLv3+.
44343         * lib/c-strcaseeq.h: Change copyright notice.
44344         * lib/streq.h: Likewise.
44345         * lib/uniconv.h: Likewise.
44346         * lib/uniconv/u-conv-from-enc.h: Likewise.
44347         * lib/uniconv/u-conv-to-enc.h: Likewise.
44348         * lib/uniconv/u-strconv-from-enc.h: Likewise.
44349         * lib/uniconv/u-strconv-to-enc.h: Likewise.
44350         * lib/uniconv/u16-conv-from-enc.c: Likewise.
44351         * lib/uniconv/u16-conv-to-enc.c: Likewise.
44352         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
44353         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
44354         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
44355         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
44356         * lib/uniconv/u32-conv-from-enc.c: Likewise.
44357         * lib/uniconv/u32-conv-to-enc.c: Likewise.
44358         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
44359         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
44360         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
44361         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
44362         * lib/uniconv/u8-conv-from-enc.c: Likewise.
44363         * lib/uniconv/u8-conv-to-enc.c: Likewise.
44364         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
44365         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
44366         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
44367         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
44368         * lib/uniname.h: Likewise.
44369         * lib/uniname/uniname.c: Likewise.
44370         * lib/unistdio.h: Likewise.
44371         * lib/unistdio/u-asnprintf.h: Likewise.
44372         * lib/unistdio/u-asprintf.h: Likewise.
44373         * lib/unistdio/u-printf-args.c: Likewise.
44374         * lib/unistdio/u-printf-args.h: Likewise.
44375         * lib/unistdio/u-printf-parse.h: Likewise.
44376         * lib/unistdio/u-snprintf.h: Likewise.
44377         * lib/unistdio/u-sprintf.h: Likewise.
44378         * lib/unistdio/u-vasprintf.h: Likewise.
44379         * lib/unistdio/u-vsnprintf.h: Likewise.
44380         * lib/unistdio/u-vsprintf.h: Likewise.
44381         * lib/unistdio/u16-asnprintf.c: Likewise.
44382         * lib/unistdio/u16-asprintf.c: Likewise.
44383         * lib/unistdio/u16-printf-parse.c: Likewise.
44384         * lib/unistdio/u16-snprintf.c: Likewise.
44385         * lib/unistdio/u16-sprintf.c: Likewise.
44386         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
44387         * lib/unistdio/u16-u16-asprintf.c: Likewise.
44388         * lib/unistdio/u16-u16-snprintf.c: Likewise.
44389         * lib/unistdio/u16-u16-sprintf.c: Likewise.
44390         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
44391         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
44392         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
44393         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
44394         * lib/unistdio/u16-vasnprintf.c: Likewise.
44395         * lib/unistdio/u16-vasprintf.c: Likewise.
44396         * lib/unistdio/u16-vsnprintf.c: Likewise.
44397         * lib/unistdio/u16-vsprintf.c: Likewise.
44398         * lib/unistdio/u32-asnprintf.c: Likewise.
44399         * lib/unistdio/u32-asprintf.c: Likewise.
44400         * lib/unistdio/u32-printf-parse.c: Likewise.
44401         * lib/unistdio/u32-snprintf.c: Likewise.
44402         * lib/unistdio/u32-sprintf.c: Likewise.
44403         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
44404         * lib/unistdio/u32-u32-asprintf.c: Likewise.
44405         * lib/unistdio/u32-u32-snprintf.c: Likewise.
44406         * lib/unistdio/u32-u32-sprintf.c: Likewise.
44407         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
44408         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
44409         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
44410         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
44411         * lib/unistdio/u32-vasnprintf.c: Likewise.
44412         * lib/unistdio/u32-vasprintf.c: Likewise.
44413         * lib/unistdio/u32-vsnprintf.c: Likewise.
44414         * lib/unistdio/u32-vsprintf.c: Likewise.
44415         * lib/unistdio/u8-asnprintf.c: Likewise.
44416         * lib/unistdio/u8-asprintf.c: Likewise.
44417         * lib/unistdio/u8-printf-parse.c: Likewise.
44418         * lib/unistdio/u8-snprintf.c: Likewise.
44419         * lib/unistdio/u8-sprintf.c: Likewise.
44420         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
44421         * lib/unistdio/u8-u8-asprintf.c: Likewise.
44422         * lib/unistdio/u8-u8-snprintf.c: Likewise.
44423         * lib/unistdio/u8-u8-sprintf.c: Likewise.
44424         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
44425         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
44426         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
44427         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
44428         * lib/unistdio/u8-vasnprintf.c: Likewise.
44429         * lib/unistdio/u8-vasprintf.c: Likewise.
44430         * lib/unistdio/u8-vsnprintf.c: Likewise.
44431         * lib/unistdio/u8-vsprintf.c: Likewise.
44432         * lib/unistdio/ulc-asnprintf.c: Likewise.
44433         * lib/unistdio/ulc-asprintf.c: Likewise.
44434         * lib/unistdio/ulc-printf-parse.c: Likewise.
44435         * lib/unistdio/ulc-snprintf.c: Likewise.
44436         * lib/unistdio/ulc-sprintf.c: Likewise.
44437         * lib/unistdio/ulc-vasnprintf.c: Likewise.
44438         * lib/unistdio/ulc-vasprintf.c: Likewise.
44439         * lib/unistdio/ulc-vsnprintf.c: Likewise.
44440         * lib/unistdio/ulc-vsprintf.c: Likewise.
44441         * lib/unistr.h: Likewise.
44442         * lib/unistr/u-cpy-alloc.h: Likewise.
44443         * lib/unistr/u-cpy.h: Likewise.
44444         * lib/unistr/u-endswith.h: Likewise.
44445         * lib/unistr/u-move.h: Likewise.
44446         * lib/unistr/u-set.h: Likewise.
44447         * lib/unistr/u-startswith.h: Likewise.
44448         * lib/unistr/u-stpcpy.h: Likewise.
44449         * lib/unistr/u-stpncpy.h: Likewise.
44450         * lib/unistr/u-strcat.h: Likewise.
44451         * lib/unistr/u-strcpy.h: Likewise.
44452         * lib/unistr/u-strcspn.h: Likewise.
44453         * lib/unistr/u-strdup.h: Likewise.
44454         * lib/unistr/u-strlen.h: Likewise.
44455         * lib/unistr/u-strncat.h: Likewise.
44456         * lib/unistr/u-strncpy.h: Likewise.
44457         * lib/unistr/u-strnlen.h: Likewise.
44458         * lib/unistr/u-strpbrk.h: Likewise.
44459         * lib/unistr/u-strspn.h: Likewise.
44460         * lib/unistr/u-strstr.h: Likewise.
44461         * lib/unistr/u-strtok.h: Likewise.
44462         * lib/unistr/u16-check.c: Likewise.
44463         * lib/unistr/u16-chr.c: Likewise.
44464         * lib/unistr/u16-cmp.c: Likewise.
44465         * lib/unistr/u16-cpy-alloc.c: Likewise.
44466         * lib/unistr/u16-cpy.c: Likewise.
44467         * lib/unistr/u16-endswith.c: Likewise.
44468         * lib/unistr/u16-mblen.c: Likewise.
44469         * lib/unistr/u16-mbsnlen.c: Likewise.
44470         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44471         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44472         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44473         * lib/unistr/u16-mbtouc.c: Likewise.
44474         * lib/unistr/u16-mbtoucr.c: Likewise.
44475         * lib/unistr/u16-move.c: Likewise.
44476         * lib/unistr/u16-next.c: Likewise.
44477         * lib/unistr/u16-prev.c: Likewise.
44478         * lib/unistr/u16-set.c: Likewise.
44479         * lib/unistr/u16-startswith.c: Likewise.
44480         * lib/unistr/u16-stpcpy.c: Likewise.
44481         * lib/unistr/u16-stpncpy.c: Likewise.
44482         * lib/unistr/u16-strcat.c: Likewise.
44483         * lib/unistr/u16-strchr.c: Likewise.
44484         * lib/unistr/u16-strcmp.c: Likewise.
44485         * lib/unistr/u16-strcpy.c: Likewise.
44486         * lib/unistr/u16-strcspn.c: Likewise.
44487         * lib/unistr/u16-strdup.c: Likewise.
44488         * lib/unistr/u16-strlen.c: Likewise.
44489         * lib/unistr/u16-strmblen.c: Likewise.
44490         * lib/unistr/u16-strmbtouc.c: Likewise.
44491         * lib/unistr/u16-strncat.c: Likewise.
44492         * lib/unistr/u16-strncmp.c: Likewise.
44493         * lib/unistr/u16-strncpy.c: Likewise.
44494         * lib/unistr/u16-strnlen.c: Likewise.
44495         * lib/unistr/u16-strpbrk.c: Likewise.
44496         * lib/unistr/u16-strrchr.c: Likewise.
44497         * lib/unistr/u16-strspn.c: Likewise.
44498         * lib/unistr/u16-strstr.c: Likewise.
44499         * lib/unistr/u16-strtok.c: Likewise.
44500         * lib/unistr/u16-to-u32.c: Likewise.
44501         * lib/unistr/u16-to-u8.c: Likewise.
44502         * lib/unistr/u16-uctomb-aux.c: Likewise.
44503         * lib/unistr/u16-uctomb.c: Likewise.
44504         * lib/unistr/u32-check.c: Likewise.
44505         * lib/unistr/u32-chr.c: Likewise.
44506         * lib/unistr/u32-cmp.c: Likewise.
44507         * lib/unistr/u32-cpy-alloc.c: Likewise.
44508         * lib/unistr/u32-cpy.c: Likewise.
44509         * lib/unistr/u32-endswith.c: Likewise.
44510         * lib/unistr/u32-mblen.c: Likewise.
44511         * lib/unistr/u32-mbsnlen.c: Likewise.
44512         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44513         * lib/unistr/u32-mbtouc.c: Likewise.
44514         * lib/unistr/u32-mbtoucr.c: Likewise.
44515         * lib/unistr/u32-move.c: Likewise.
44516         * lib/unistr/u32-next.c: Likewise.
44517         * lib/unistr/u32-prev.c: Likewise.
44518         * lib/unistr/u32-set.c: Likewise.
44519         * lib/unistr/u32-startswith.c: Likewise.
44520         * lib/unistr/u32-stpcpy.c: Likewise.
44521         * lib/unistr/u32-stpncpy.c: Likewise.
44522         * lib/unistr/u32-strcat.c: Likewise.
44523         * lib/unistr/u32-strchr.c: Likewise.
44524         * lib/unistr/u32-strcmp.c: Likewise.
44525         * lib/unistr/u32-strcpy.c: Likewise.
44526         * lib/unistr/u32-strcspn.c: Likewise.
44527         * lib/unistr/u32-strdup.c: Likewise.
44528         * lib/unistr/u32-strlen.c: Likewise.
44529         * lib/unistr/u32-strmblen.c: Likewise.
44530         * lib/unistr/u32-strmbtouc.c: Likewise.
44531         * lib/unistr/u32-strncat.c: Likewise.
44532         * lib/unistr/u32-strncmp.c: Likewise.
44533         * lib/unistr/u32-strncpy.c: Likewise.
44534         * lib/unistr/u32-strnlen.c: Likewise.
44535         * lib/unistr/u32-strpbrk.c: Likewise.
44536         * lib/unistr/u32-strrchr.c: Likewise.
44537         * lib/unistr/u32-strspn.c: Likewise.
44538         * lib/unistr/u32-strstr.c: Likewise.
44539         * lib/unistr/u32-strtok.c: Likewise.
44540         * lib/unistr/u32-to-u16.c: Likewise.
44541         * lib/unistr/u32-to-u8.c: Likewise.
44542         * lib/unistr/u32-uctomb.c: Likewise.
44543         * lib/unistr/u8-check.c: Likewise.
44544         * lib/unistr/u8-chr.c: Likewise.
44545         * lib/unistr/u8-cmp.c: Likewise.
44546         * lib/unistr/u8-cpy-alloc.c: Likewise.
44547         * lib/unistr/u8-cpy.c: Likewise.
44548         * lib/unistr/u8-endswith.c: Likewise.
44549         * lib/unistr/u8-mblen.c: Likewise.
44550         * lib/unistr/u8-mbsnlen.c: Likewise.
44551         * lib/unistr/u8-mbtouc-aux.c: Likewise.
44552         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44553         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44554         * lib/unistr/u8-mbtouc.c: Likewise.
44555         * lib/unistr/u8-mbtoucr.c: Likewise.
44556         * lib/unistr/u8-move.c: Likewise.
44557         * lib/unistr/u8-next.c: Likewise.
44558         * lib/unistr/u8-prev.c: Likewise.
44559         * lib/unistr/u8-set.c: Likewise.
44560         * lib/unistr/u8-startswith.c: Likewise.
44561         * lib/unistr/u8-stpcpy.c: Likewise.
44562         * lib/unistr/u8-stpncpy.c: Likewise.
44563         * lib/unistr/u8-strcat.c: Likewise.
44564         * lib/unistr/u8-strchr.c: Likewise.
44565         * lib/unistr/u8-strcmp.c: Likewise.
44566         * lib/unistr/u8-strcpy.c: Likewise.
44567         * lib/unistr/u8-strcspn.c: Likewise.
44568         * lib/unistr/u8-strdup.c: Likewise.
44569         * lib/unistr/u8-strlen.c: Likewise.
44570         * lib/unistr/u8-strmblen.c: Likewise.
44571         * lib/unistr/u8-strmbtouc.c: Likewise.
44572         * lib/unistr/u8-strncat.c: Likewise.
44573         * lib/unistr/u8-strncmp.c: Likewise.
44574         * lib/unistr/u8-strncpy.c: Likewise.
44575         * lib/unistr/u8-strnlen.c: Likewise.
44576         * lib/unistr/u8-strpbrk.c: Likewise.
44577         * lib/unistr/u8-strrchr.c: Likewise.
44578         * lib/unistr/u8-strspn.c: Likewise.
44579         * lib/unistr/u8-strstr.c: Likewise.
44580         * lib/unistr/u8-strtok.c: Likewise.
44581         * lib/unistr/u8-to-u16.c: Likewise.
44582         * lib/unistr/u8-to-u32.c: Likewise.
44583         * lib/unistr/u8-uctomb-aux.c: Likewise.
44584         * lib/unistr/u8-uctomb.c: Likewise.
44585         * lib/unitypes.h: Likewise.
44586         * lib/uniwidth.h: Likewise.
44587         * lib/uniwidth/cjk.h: Likewise.
44588         * lib/uniwidth/u16-strwidth.c: Likewise.
44589         * lib/uniwidth/u16-width.c: Likewise.
44590         * lib/uniwidth/u32-strwidth.c: Likewise.
44591         * lib/uniwidth/u32-width.c: Likewise.
44592         * lib/uniwidth/u8-strwidth.c: Likewise.
44593         * lib/uniwidth/u8-width.c: Likewise.
44594         * lib/uniwidth/width.c: Likewise.
44595
44596 2007-10-07  Bruno Haible  <bruno@clisp.org>
44597
44598         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
44599         The file is still under LGPL (see modules/inttypes).
44600
44601 2007-10-06  Bruno Haible  <bruno@clisp.org>
44602
44603         * modules/trunc (Dependencies): Add 'extensions'.
44604         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
44605         Reported by Ben Pfaff <blp@gnu.org>.
44606
44607 2007-10-06  Bruno Haible  <bruno@clisp.org>
44608
44609         * modules/freopen-tests: New file.
44610         * tests/test-freopen.c: New file.
44611
44612         * modules/fopen-tests: New file.
44613         * tests/test-fopen.c: New file.
44614
44615         * modules/fopen: New file.
44616         * lib/fopen.c: New file.
44617         * m4/fopen.m4: New file.
44618         * modules/freopen: New file.
44619         * lib/freopen.c: New file.
44620         * m4/freopen.m4: New file.
44621         * lib/stdio.in.h (fopen, freopen): New declarations.
44622         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
44623         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
44624         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
44625         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
44626         * doc/functions/fopen.texi: Mention the 'fopen' module.
44627         * doc/functions/freopen.texi: Mention the 'freopen' module.
44628
44629 2007-10-06  Bruno Haible  <bruno@clisp.org>
44630
44631         * modules/open-tests: New file.
44632         * tests/test-open.c: New file.
44633
44634         * modules/open: New file.
44635         * lib/open.c: New file.
44636         * m4/open.m4: New file.
44637         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
44638         lib/open.c does.
44639         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
44640         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
44641         macros.
44642         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
44643         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
44644         REPLACE_OPEN.
44645         * doc/functions/open.texi: Mention the 'open' module.
44646
44647 2007-10-04  Bruno Haible  <bruno@clisp.org>
44648
44649         * modules/ceill-tests: New file.
44650         * tests/test-ceill.c: New file.
44651
44652         * modules/ceill: New file.
44653         * lib/ceill.c: Replace entire file.
44654         * m4/ceill.m4: New file.
44655         * lib/math.in.h (ceill): Replace declaration.
44656         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
44657         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
44658         * doc/functions/ceill.texi: Mention the 'ceill' module.
44659         * modules/mathl (Files): Remove lib/ceill.c.
44660         (Depends-on): Add ceill.
44661
44662 2007-10-04  Bruno Haible  <bruno@clisp.org>
44663
44664         * modules/ceilf-tests: New file.
44665         * tests/test-ceilf.c: New file.
44666
44667         * modules/ceilf: New file.
44668         * lib/ceil.c: New file.
44669         * lib/ceilf.c: New file.
44670         * m4/ceilf.m4: New file.
44671         * lib/math.in.h (ceilf): New declaration.
44672         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
44673         HAVE_DECL_CEILF.
44674         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
44675         HAVE_DECL_CEILF.
44676         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
44677
44678 2007-10-04  Bruno Haible  <bruno@clisp.org>
44679
44680         * modules/floorl-tests: New file.
44681         * tests/test-floorl.c: New file.
44682
44683         * modules/floorl: New file.
44684         * lib/floorl.c: Replace entire file.
44685         * m4/floorl.m4: New file.
44686         * lib/math.in.h (floorl): Replace declaration.
44687         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
44688         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
44689         * doc/functions/floorl.texi: Mention the 'floorl' module.
44690         * modules/mathl (Files): Remove lib/floorl.c.
44691         (Depends-on): Add floorl.
44692
44693 2007-10-04  Bruno Haible  <bruno@clisp.org>
44694
44695         * modules/floorf-tests: New file.
44696         * tests/test-floorf.c: New file.
44697
44698         * modules/floorf: New file.
44699         * lib/floor.c: New file.
44700         * lib/floorf.c: New file.
44701         * m4/floorf.m4: New file.
44702         * lib/math.in.h (floorf): New declaration.
44703         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
44704         HAVE_DECL_FLOORF.
44705         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
44706         HAVE_DECL_FLOORF.
44707         * doc/functions/floorf.texi: Mention the 'floorf' module.
44708
44709 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
44710             Bruno Haible  <bruno@clisp.org>
44711
44712         Advertise for the Git server instead of the CVS server.
44713         * doc/gnulib-intro.texi (Steady Development): Mention the Git
44714         repository instead of the CVS one.
44715         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
44716         about all VCS systems generically.
44717         * doc/gnulib.texi (Introduction): Capitalize `Git'.
44718
44719 2007-10-04  Bruno Haible  <bruno@clisp.org>
44720
44721         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
44722         means.
44723         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
44724
44725 2007-10-04  Bruno Haible  <bruno@clisp.org>
44726
44727         * modules/truncl-tests: New file.
44728         * tests/test-truncl.c: New file.
44729
44730         * modules/truncl: New file.
44731         * lib/truncl.c: New file.
44732         * m4/truncl.m4: New file.
44733         * lib/math.in.h (truncl): New declaration.
44734         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
44735         HAVE_DECL_TRUNCL.
44736         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
44737         HAVE_DECL_TRUNCL.
44738         * doc/functions/truncl.texi: Mention the 'truncl' module.
44739
44740 2007-10-04  Bruno Haible  <bruno@clisp.org>
44741
44742         * modules/truncf-tests: New file.
44743         * tests/test-truncf.c: New file.
44744
44745         * modules/truncf: New file.
44746         * lib/trunc.c: Make paramerizable through USE_* macros.
44747         * lib/truncf.c: New file.
44748         * m4/truncf.m4: New file.
44749         * lib/math.in.h (truncf): New declaration.
44750         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
44751         HAVE_DECL_TRUNCF.
44752         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
44753         HAVE_DECL_TRUNCF.
44754         * doc/functions/truncf.texi: Mention the 'truncf' module.
44755
44756 2007-10-03  Bruno Haible  <bruno@clisp.org>
44757
44758         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
44759         augmentation also for tests modules.
44760         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
44761         * modules/atexit-tests (Makefile.am): Likewise.
44762         * modules/binary-io-tests (Makefile.am): Likewise.
44763         * modules/c-strcase-tests (Makefile.am): Likewise.
44764         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
44765         * modules/canonicalize-tests (Makefile.am): Likewise.
44766         * modules/closein-tests (Makefile.am): Likewise.
44767         * modules/fprintf-posix-tests (Makefile.am): Likewise.
44768         * modules/freadahead-tests (Makefile.am): Likewise.
44769         * modules/fseek-tests (Makefile.am): Likewise.
44770         * modules/fseeko-tests (Makefile.am): Likewise.
44771         * modules/ftell-tests (Makefile.am): Likewise.
44772         * modules/ftello-tests (Makefile.am): Likewise.
44773         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
44774         * modules/isnanl-tests (Makefile.am): Likewise.
44775         * modules/lseek-tests (Makefile.am): Likewise.
44776         * modules/mbscasecmp-tests (Makefile.am): Likewise.
44777         * modules/mbscasestr-tests (Makefile.am): Likewise.
44778         * modules/mbschr-tests (Makefile.am): Likewise.
44779         * modules/mbscspn-tests (Makefile.am): Likewise.
44780         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
44781         * modules/mbspbrk-tests (Makefile.am): Likewise.
44782         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
44783         * modules/mbsrchr-tests (Makefile.am): Likewise.
44784         * modules/mbsspn-tests (Makefile.am): Likewise.
44785         * modules/mbsstr-tests (Makefile.am): Likewise.
44786         * modules/printf-posix-tests (Makefile.am): Likewise.
44787         * modules/snprintf-posix-tests (Makefile.am): Likewise.
44788         * modules/sprintf-posix-tests (Makefile.am): Likewise.
44789         * modules/tsearch-tests (Makefile.am): Likewise.
44790         * modules/uniname/uniname-tests (Makefile.am): Likewise.
44791         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
44792         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
44793         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
44794         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
44795         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
44796         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
44797         * modules/vprintf-posix-tests (Makefile.am): Likewise.
44798         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
44799         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
44800         * modules/xstrtoimax-tests (Makefile.am): Likewise.
44801         * modules/xstrtol-tests (Makefile.am): Likewise.
44802         * modules/xstrtoumax-tests (Makefile.am): Likewise.
44803         * modules/yesno-tests (Makefile.am): Likewise.
44804
44805 2007-10-03  Bruno Haible  <bruno@clisp.org>
44806
44807         * modules/trunc-tests: New file.
44808         * tests/test-trunc.c: New file.
44809
44810         * modules/trunc: New file.
44811         * lib/trunc.c: New file.
44812         * m4/trunc.m4: New file.
44813         * lib/math.in.h (trunc): New declaration.
44814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
44815         HAVE_DECL_TRUNC.
44816         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
44817         HAVE_DECL_TRUNC.
44818         * doc/functions/trunc.texi: Mention the 'trunc' module.
44819
44820 2007-10-03  Bruno Haible  <bruno@clisp.org>
44821
44822         * tests/test-fpending.c: New file, mostly copied
44823         from coreutils/lib/t-fpending.c.
44824         * modules/fpending-tests: New file.
44825
44826 2007-10-03  Bruno Haible  <bruno@clisp.org>
44827
44828         Port the stdio extensions to QNX (untested).
44829         * lib/fseterr.c (fseterr): Add support for QNX.
44830         * lib/fbufmode.c (fbufmode): Likewise.
44831         * lib/freadable.c (freadable): Likewise.
44832         * lib/fwritable.c (fwritable): Likewise.
44833         * lib/freading.c (freading): Likewise.
44834         * lib/fwriting.c (fwriting): Likewise.
44835         * lib/freadahead.c (freadahed): Likewise.
44836         * lib/fpurge.c (fpurge): Likewise.
44837         * lib/fseeko.c (rpl_fseeko): Likewise.
44838
44839 2007-10-03  Bruno Haible  <bruno@clisp.org>
44840             Jim Meyering  <jim@meyering.net>
44841             Eric Blake  <ebb9@byu.net>
44842
44843         * doc/relocatable.texi: Use @command instead of @program.
44844
44845 2007-10-02  Jim Meyering  <jim@meyering.net>
44846
44847         Perform one more "_.h" -> ".in.h" substitution.
44848         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
44849         instead of unistd_.h here, too.
44850
44851 2007-10-01  Bruno Haible  <bruno@clisp.org>
44852
44853         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
44854         Needed for the alloca-opt module.
44855
44856 2007-09-30  Bruno Haible  <bruno@clisp.org>
44857
44858         * lib/alloca.in.h: Renamed from lib/alloca_.h.
44859         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
44860         alloca_.h.
44861         * lib/argz.in.h: Renamed from lib/argz_.h.
44862         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
44863         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
44864         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
44865         byteswap_.h.
44866         * lib/dirent.in.h: Renamed from lib/dirent_.h.
44867         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
44868         dirent_.h.
44869         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
44870         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
44871         fcntl_.h.
44872         * lib/float.in.h: Renamed from lib/float_.h.
44873         * modules/float (Files, Makefile.am): Use float.in.h instead of
44874         float_.h.
44875         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
44876         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
44877         fnmatch_.h.
44878         * lib/getopt.in.h: Renamed from lib/getopt_.h.
44879         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
44880         getopt_.h.
44881         * lib/glob.in.h: Renamed from lib/glob_.h.
44882         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
44883         * lib/iconv.in.h: Renamed from lib/iconv_.h.
44884         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
44885         iconv_.h.
44886         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
44887         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
44888         inttypes_.h.
44889         * lib/locale.in.h: Renamed from lib/locale_.h.
44890         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
44891         locale_.h.
44892         * lib/math.in.h: Renamed from lib/math_.h.
44893         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
44894         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
44895         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
44896         of netinet_in_.h. Add dependency.
44897         * lib/poll.in.h: Renamed from lib/poll_.h.
44898         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
44899         * lib/search.in.h: Renamed from lib/search_.h.
44900         * modules/search (Files, Makefile.am): Use search.in.h instead of
44901         search_.h.
44902         * lib/signal.in.h: Renamed from lib/signal_.h.
44903         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
44904         _signal.h.
44905         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
44906         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
44907         stdbool_.h.
44908         * lib/stdint.in.h: Renamed from lib/stdint_.h.
44909         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
44910         stdint_.h.
44911         * lib/stdio.in.h: Renamed from lib/stdio_.h.
44912         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
44913         stdio_.h.
44914         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
44915         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
44916         stdlib_.h.
44917         * lib/string.in.h: Renamed from lib/string_.h.
44918         * modules/string (Files, Makefile.am): Use string.in.h instead of
44919         string_.h.
44920         * doc/gnulib-tool.texi (Initial import): Update.
44921         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
44922         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
44923         of sys_select_.h. Add dependency.
44924         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
44925         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
44926         of sys_socket_.h.
44927         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
44928         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
44929         sys_stat_.h.
44930         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
44931         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
44932         sys_time_.h.
44933         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
44934         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
44935         sysexits_.h.
44936         * lib/time.in.h: Renamed from lib/time_.h.
44937         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
44938         * lib/unistd.in.h: Renamed from lib/unistd_.h.
44939         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
44940         unistd_.h.
44941         * lib/wchar.in.h: Renamed from lib/wchar_.h.
44942         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
44943         wchar_.h.
44944         * lib/wctype.in.h: Renamed from lib/wctype_.h.
44945         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
44946         wctype_.h.
44947         * build-aux/bootstrap (slurp): Update.
44948         * lib/.cppi-disable: Update.
44949
44950 2007-09-30  Bruno Haible  <bruno@clisp.org>
44951
44952         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
44953         Needed on BeOS.
44954
44955 2007-09-30  Bruno Haible  <bruno@clisp.org>
44956
44957         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
44958
44959 2007-09-29  Bruno Haible  <bruno@clisp.org>
44960
44961         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
44962
44963 2007-09-29  Bruno Haible  <bruno@clisp.org>
44964
44965         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
44966         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
44967         * build-aux/install-reloc: Compile also areadlink.c.
44968         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
44969
44970 2007-09-29  Bruno Haible  <bruno@clisp.org>
44971
44972         * gnulib-tool (func_emit_initmacro_done): Indentation.
44973
44974 2007-09-29  Bruno Haible  <bruno@clisp.org>
44975
44976         * README: Add CVS checkout update instructions.
44977         Info from Bob Proulx <bob@proulx.com>.
44978
44979 2007-09-28  Eric Blake  <ebb9@byu.net>
44980
44981         Provide move-if-change.
44982         * build-aux/move-if-change: New file, based on best practice
44983         rather than any canonical upstream location.
44984
44985 2007-09-28  Jim Meyering  <jim@meyering.net>
44986
44987         Fix canonicalize loop-detection corner case.
44988         Do not attempt to stat the symlink values stored via seen_triple.
44989         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
44990         on linux-2.6.18, (but not 2.6.22).
44991         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
44992         triple_compare.  The former compares dev,ino,filename, while the latter
44993         would actually stat dirname(filename) when dev and ino were equal.
44994         * lib/hash-triple.c: Install <string.h>.
44995         (STREQ): Define.
44996         (triple_compare_ino_str): New function.
44997         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
44998
44999 2007-09-28  Eric Blake  <ebb9@byu.net>
45000
45001         Enforce that AC_REPLACE_FUNCS files exist.
45002         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
45003         override check for typos.
45004
45005         Fix test-closein on Solaris 10.
45006         * tests/test-closein.c (main): Don't assume stdin can be inherited
45007         closed on all systems.
45008         * tests/test-closein.sh: Likewise.
45009         Reported by Piotr Tarnowski.
45010
45011 2007-09-28  Jim Meyering  <jim@meyering.net>
45012
45013         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
45014
45015 2007-09-27  Jim Meyering  <jim@meyering.net>
45016
45017         canonicalize: Avoid a false-positive cycle failure.
45018         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
45019         Sort.  Remove cycle-check.
45020         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
45021         not cycle-check.h.
45022         (seen_triple): New function.
45023         (canonicalize_filename_mode): Use it instead of cycle-check.
45024         * tests/test-canonicalize.c: Add a test for this bug.
45025         * tests/test-canonicalize.sh: Set up and run the test.
45026
45027         New module, file-set, from coreutils.
45028         * modules/file-set: Define it.
45029         * lib/file-set.c, lib/file-set.h: Implement.
45030
45031         New module, hash-triple, from coreutils.
45032         * modules/hash-triple: Define it.
45033         * lib/hash-triple.c, lib/hash-triple.h: Implement.
45034
45035 2007-09-25  Eric Blake  <ebb9@byu.net>
45036
45037         Fix strerror on Interix.
45038         * lib/string_.h (strerror): Declare replacement.
45039         * doc/functions/strerror.texi (strerror): Document the Interix
45040         shortcoming.
45041         * modules/string (Makefile.am): Support new hooks.
45042         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
45043         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
45044         gl_FUNC_STRERROR_SEPARATE.
45045         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
45046         * lib/strerror.c (rpl_strerror): Provide replacement.
45047         * modules/strerror (Depends-on): Add string.
45048         (configure.ac): Detect use of module.
45049         * tests/test-strerror.c: New file.
45050         * modules/strerror-tests: New test module.
45051         * modules/argp (Depends-on): Add strerror.
45052         * modules/error (Depends-on): Likewise.
45053         Reported by Martin Koeppe.
45054
45055 2007-09-24  Bruno Haible  <bruno@clisp.org>
45056
45057         * README: Update git instructions.
45058
45059 2007-09-24  Eric Blake  <ebb9@byu.net>
45060
45061         Revert fpending breakage from 2007-09-08.
45062         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
45063         __fpending.c.
45064
45065 2007-09-24  Jim Meyering  <jim@meyering.net>
45066
45067         filenamecat.c: Add a test.
45068         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
45069         showing how the function works when DIR is the empty string.
45070
45071 2007-09-21  Simon Josefsson  <simon@josefsson.org>
45072
45073         * tests/test-canonicalize.sh: Turn on executable bit.
45074
45075 2007-09-19  Eric Blake  <ebb9@byu.net>
45076
45077         * README: Update CVS instructions.
45078
45079 2007-09-18  Bruno Haible  <bruno@clisp.org>
45080
45081         * modules/areadlink: New file.
45082         * lib/areadlink.h (areadlink): New declaration.
45083         * lib/areadlink.c: New file, based on lib/xreadlink.c.
45084
45085 2007-09-17  Jim Meyering  <jim@meyering.net>
45086
45087         * lib/savewd.c (ESTALE) [!defined]: Define.
45088         Reported to be required on Interix by Martin Koeppe.
45089
45090 2007-09-17  Bruno Haible  <bruno@clisp.org>
45091
45092         * gnulib-tool (func_version): Use $version.
45093
45094 2007-09-16  Bruno Haible  <bruno@clisp.org>
45095
45096         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
45097         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
45098         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
45099         Reported by Greg Schafer <gschafer@zip.com.au>.
45100
45101 2007-09-15  Bruno Haible  <bruno@clisp.org>
45102
45103         * gnulib-tool (sed): Try a little harder to make bash understand the
45104         alias.
45105         Reported by Bruce Korb <bruce.korb@gmail.com>.
45106
45107 2007-09-13  Eric Blake  <ebb9@byu.net>
45108
45109         * ChangeLog: Remove conflict markers.
45110
45111 2007-09-13  Simon Josefsson  <simon@josefsson.org>
45112
45113         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
45114         Reported by Bruno Haible <bruno@clisp.org>.
45115
45116 2007-09-12  Bruno Haible  <bruno@clisp.org>
45117
45118         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
45119         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
45120         is not defined.
45121
45122 2007-09-12  Eric Blake  <ebb9@byu.net>
45123
45124         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
45125         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
45126         Autoconf definition.
45127         * modules/euidaccess (Depends-on): Add extensions, for
45128         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
45129         * modules/fnmatch (Depends-on): Likewise.
45130         * modules/getaddrinfo (Depends-on): Likewise.
45131         * modules/getdelim (Depends-on): Likewise.
45132         * modules/getline (Depends-on): Likewise.
45133         * modules/getsubopt (Depends-on): Likewise.
45134         * modules/gettext (Depends-on): Likewise.
45135         * modules/group-member (Depends-on): Likewise.
45136         * modules/mbchar (Depends-on): Likewise.
45137         * modules/memmem (Depends-on): Likewise.
45138         * modules/mempcpy (Depends-on): Likewise.
45139         * modules/memrchr (Depends-on): Likewise.
45140         * modules/pagealign_alloc (Depends-on): Likewise.
45141         * modules/readutmp (Depends-on): Likewise.
45142         * modules/stpcpy (Depends-on): Likewise.
45143         * modules/stpncpy (Depends-on): Likewise.
45144         * modules/strchrnul (Depends-on): Likewise.
45145         * modules/strndup (Depends-on): Likewise.
45146         * modules/strsep (Depends-on): Likewise.
45147         * modules/strverscmp (Depends-on): Likewise.
45148         * modules/vasprintf (Depends-on): Likewise.
45149         * modules/wcwidth (Depends-on): Likewise.
45150         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
45151         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
45152         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
45153         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
45154         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
45155         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45156         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
45157         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45158         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
45159         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
45160         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45161         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
45162         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
45163         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
45164         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
45165         * m4/readutmp.m4 (gl_READUTMP): Likewise.
45166         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45167         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
45168         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45169         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
45170         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
45171         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
45172         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
45173         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
45174         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
45175         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45176         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
45177         so that lock.m4 can be used in gettext without extensions module.
45178
45179 2007-09-11  Bruno Haible  <bruno@clisp.org>
45180
45181         * m4/isc-posix.m4: Remove file.
45182         Suggested by Eric Blake.
45183
45184 2007-09-11  Eric Blake  <ebb9@byu.net>
45185
45186         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
45187
45188 2007-09-10  Bruno Haible  <bruno@clisp.org>
45189
45190         * posix-modules: Fix typo in error message.
45191         Reported by Matt <mkraai@beckman.com>.
45192
45193 2007-09-09  Bruno Haible  <bruno@clisp.org>
45194
45195         * doc/functions/getdelim.texi: Update list of platforms lacking the
45196         function.
45197         * doc/functions/getline.texi: Likewise.
45198
45199 2007-09-09  Jim Meyering  <jim@meyering.net>
45200
45201         * lib/hash.c (hash_initialize): Detect calloc failure.
45202         Reported by Bruno Haible.
45203
45204 2007-09-09  Bruno Haible  <bruno@clisp.org>
45205
45206         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
45207         malloc or realloc fails.
45208
45209 2007-09-09  Bruno Haible  <bruno@clisp.org>
45210
45211         * modules/getcwd (Depends-on): Add malloc-posix.
45212         * modules/glob (Depends-on): Likewise.
45213         * modules/putenv (Depends-on): Likewise.
45214         * modules/strdup (Depends-on): Likewise.
45215         * modules/getdelim (Depends-on): Add realloc-posix.
45216         * modules/read-file (Depends-on): Likewise.
45217
45218 2007-09-09  Bruno Haible  <bruno@clisp.org>
45219
45220         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
45221         (gl_FUNC_MALLOC_POSIX): Require it.
45222         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
45223         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
45224         * modules/realloc (Files): Add m4/malloc.m4.
45225         * modules/calloc (Files): Likewise.
45226
45227 2007-09-09  Bruno Haible  <bruno@clisp.org>
45228
45229         * modules/malloc-posix: New file.
45230         * modules/malloc (Depends-on): Add malloc-posix.
45231         * lib/malloc.c: Include errno.h.
45232         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
45233         and a POSIX-compatible malloc into a single function. Set ENOMEM
45234         when returning NULL.
45235         * m4/malloc.m4: New file.
45236         * doc/functions/malloc.texi: Mention the malloc-posix module.
45237         * lib/stdlib_.h (malloc): New declaration.
45238         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
45239         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
45240         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
45241         and HAVE_MALLOC_POSIX.
45242
45243 2007-09-09  Bruno Haible  <bruno@clisp.org>
45244
45245         * modules/realloc-posix: New file.
45246         * modules/realloc (Depends-on): Add realloc-posix.
45247         * lib/realloc.c: Include errno.h.
45248         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
45249         and a POSIX-compatible realloc into a single function. Set ENOMEM
45250         when returning NULL.
45251         * m4/realloc.m4: New file.
45252         * doc/functions/realloc.texi: Mention the realloc-posix module.
45253         * lib/stdlib_.h (realloc): New declaration.
45254         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
45255         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
45256         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
45257         and HAVE_REALLOC_POSIX.
45258
45259 2007-09-09  Bruno Haible  <bruno@clisp.org>
45260
45261         * modules/calloc-posix: New file.
45262         * modules/calloc (Depends-on): Add calloc-posix.
45263         * lib/calloc.c: Include errno.h.
45264         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
45265         and a POSIX-compatible calloc into a single function. Set ENOMEM
45266         when returning NULL.
45267         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
45268         * doc/functions/calloc.texi: Mention the calloc-posix module.
45269         * lib/stdlib_.h (calloc): New declaration.
45270         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
45271         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
45272         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
45273         and HAVE_CALLOC_POSIX.
45274
45275 2007-09-09  Bruno Haible  <bruno@clisp.org>
45276
45277         Allow for modules to show an arbitrary notice.
45278         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
45279         * gnulib-tool: New option --extract-notice.
45280         (func_usage): Document it.
45281         (sed_extract_prog): Update.
45282         (func_get_notice): New function.
45283         (func_modules_notice): New function.
45284         (func_import, func_create_testdir): Invoke it.
45285         Suggested by Jim Meyering.
45286
45287 2007-09-09  Bruno Haible  <bruno@clisp.org>
45288
45289         * gnulib-tool: New options --verbose, --quiet.
45290         (func_usage): Document them.
45291         (verbose): New variable.
45292         (func_execute_command): New function.
45293         (func_import): Don't show the module list and the file list if
45294         $verbose < 0.
45295         (func_create_testdir): Likewise. Use func_execute_command.
45296         (func_create_megatestdir): Use func_execute_command.
45297
45298 2007-09-08  Bruno Haible  <bruno@clisp.org>
45299
45300         * gnulib-tool (func_import): Prefer rsync over wget when available,
45301         for fetching the PO files.
45302
45303 2007-09-08  Bruno Haible  <bruno@clisp.org>
45304
45305         * posix-modules: New file. Portions copied from gnulib-tool.
45306         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
45307
45308 2007-09-08  Jim Meyering  <jim@meyering.net>
45309
45310         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
45311         * lib/fpending.h: Rename from __fpending.h.
45312         * lib/fpending.c: Rename from __fpending.c.
45313         Include "fpending.h", not "__fpending.h".
45314         * lib/__fpending.h, lib/__fpending.c: Remove files.
45315         * modules/fpending (Files): Reflect new file names.
45316         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
45317
45318 2007-09-08  Bruno Haible  <bruno@clisp.org>
45319
45320         * m4/inttypes-h.m4: Remove stub file.
45321
45322 2007-09-07  Simon Josefsson  <simon@josefsson.org>
45323
45324         * doc/headers/stdint.texi: Discuss #include_next issue.
45325
45326 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
45327
45328         * build-aux/bootstrap: Remove obsolete comment about wget --help.
45329
45330 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45331
45332         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
45333         in variable name.
45334
45335 2007-09-03  Jim Meyering  <jim@meyering.net>
45336
45337         New module: git-version-gen.
45338         * modules/git-version-gen: New file.
45339
45340         Import changes from coreutils for bootstrap script.
45341
45342         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
45343
45344         bootstrap: uses rsync to download the .po files
45345         * build-aux/bootstrap (po_download_command_format): New global.
45346         (download_po_files): Use rsync.
45347         (update_po_files): Don't remove .po files after download,
45348         so future rsync runs can take advantage of the copies.
45349
45350         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
45351
45352         Solve the unnecessary-.po-file-regeneration problem once and for all.
45353         * build-aux/bootstrap (download_po_files): New function, renamed from
45354         get_translations.  Now, downloads, but doesn't update LINGUAS.
45355         (update_po_files): New function.
45356
45357         bootstrap: Ignore more.
45358         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
45359         uniwidth to e.g., lib/.gitignore.
45360         (slurp): Handle the sys_stat_.h -> sys mapping, too.
45361
45362         * build-aux/bootstrap: New setting: vc_ignore.
45363         (insert_sorted_if_absent): Create $file if absent.
45364         Adapt to new, possibly empty, list: $vc_ignore.
45365
45366         bootstrap: generate more ignorable names
45367         * build-aux/bootstrap (slurp): When generating ignorable names,
45368         also map .sin to .sed, .gperf to .c, and .y to .c.
45369
45370 2007-09-03  Jim Meyering  <jim@meyering.net>
45371
45372         * build-aux/git-version-gen: New file, from coreutils.  For details, see
45373         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
45374
45375 2007-09-02  Bruno Haible  <bruno@clisp.org>
45376
45377         Fix mis-recognition of 'mcs' on QNX 6.
45378         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
45379         output contains the string "Mono".
45380         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
45381         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
45382
45383 2007-09-01  Bruno Haible  <bruno@clisp.org>
45384
45385         Fix collision between uniwidth/* and linebreak modules.
45386         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
45387         u32_width): Remove declarations.
45388         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
45389         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
45390         streq3, streq2, streq1, streq0): Remove functions.
45391         (STREQ): Remove macro.
45392         (is_cjk_encoding): Remove function.
45393         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
45394         (uc_width, u8_width, u16_width, u32_width): Remove functions.
45395         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
45396         * NEWS: Document the change.
45397
45398 2007-09-01  Bruno Haible  <bruno@clisp.org>
45399
45400         * lib/streq.h: Add double-inclusion guard.
45401
45402 2007-09-01  Karl Berry  <karl@gnu.org>
45403
45404         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
45405
45406 2007-08-28  Jim Meyering  <jim@meyering.net>
45407
45408         Rename mreadlink_with_size to areadlink_with_size.
45409         * NEWS: Document the change.
45410         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
45411         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
45412         * lib/mreadlink.h: Rename this to...
45413         * lib/areadlink.h: ...this.
45414         * modules/mreadlink-with-size: Rename this to...
45415         * modules/areadlink-with-size: ...this.
45416         * lib/canonicalize.c: Reflect the renaming.
45417         * modules/canonicalize: Likewise.
45418
45419 2007-08-26  Bruno Haible  <bruno@clisp.org>
45420
45421         * gnulib-tool (func_import): When deciding which files to remove,
45422         consider also dangling symbolic links.
45423         Reported by Eric Blake.
45424
45425 2007-08-26  Bruno Haible  <bruno@clisp.org>
45426
45427         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
45428
45429 2007-08-23  Simon Josefsson  <simon@josefsson.org>
45430
45431         * lib/readline.c: Don't include getline.h, the prototype is now
45432         found in stdio.h.
45433
45434 2007-08-23  Jim Meyering  <jim@meyering.net>
45435
45436         Getdelim touchup.
45437         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
45438         around the funlockfile call, since funlockfile never sets errno.
45439         Don't set errno upon failed realloc.
45440
45441 2007-08-22  Eric Blake  <ebb9@byu.net>
45442
45443         Getline touchups.
45444         * lib/getdelim.c (getdelim): Revert regression that required *n to
45445         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
45446         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
45447         getdelim, rather than whether implementation is missing.
45448         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
45449         * lib/stdio_.h (getline): Also declare if replacement is
45450         required.
45451         * doc/functions/getdelim.texi: New file.
45452         * doc/functions/getline.texi: Likewise.
45453         * doc/gnulib.texi (Function Substitutes): Add new files.
45454         Reported by Bruno Haible.
45455
45456 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
45457
45458         * users.txt: Add Guile.
45459
45460 2007-08-22  Eric Blake  <ebb9@byu.net>
45461
45462         * tests/test-getdelim.c (main): Use remove, not unlink.
45463         * tests/test-getline.c (main): Likewise.
45464
45465         Move getline and getdelim into stdio.h, per POSIX 200x.
45466         * modules/getline (Files): Remove getline.h.
45467         (Depends-on): Add stdio.
45468         (configure.ac): Add module indicator.
45469         * modules/getdelim (Files): Remove getdelim.h.
45470         (Depends-on): Add stdio.
45471         (configure.ac): Add module indicator.
45472         * modules/stdio (Makefile.am): Work with new indicators.
45473         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
45474         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
45475         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45476         * lib/getdelim.h: Delete.
45477         * lib/getline.h: Delete.
45478         * lib/stdio_.h (getdelim, getline): Declare.
45479         * modules/getdelim-tests: New module.
45480         * modules/getline-tests: Likewise.
45481         * tests/test-getdelim.c: New file.
45482         * tests/test-getline.c: Likewise.
45483         * NEWS: Document the change.
45484         * lib/getline.c: Update choice of header.
45485         * lib/csharpcomp.c: Likewise.
45486         * lib/getpass.c: Likewise.
45487         * lib/javacomp.c: Likewise.
45488         * lib/javaversion.c: Likewise.
45489         * lib/yesno.c: Likewise.
45490         * lib/getdelim.c: Likewise.
45491         (getdelim): Set errno on failure, and avoid memory leak.
45492
45493 2007-08-19  Bruno Haible  <bruno@clisp.org>
45494
45495         * modules/closein (Depends-on): Add freadahead.
45496         * lib/closein.c: Include freadahead.h.
45497         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
45498         is zero.
45499
45500 2007-08-19  Bruno Haible  <bruno@clisp.org>
45501
45502         * modules/freadahead-tests: New file.
45503         * tests/test-freadahead.sh: New file.
45504         * tests/test-freadahead.c: New file.
45505
45506         * modules/freadahead: New file.
45507         * lib/freadahead.h: New file.
45508         * lib/freadahead.c: New file.
45509         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
45510         fbufmode, fpurge, freadable, fwritable.
45511
45512 2007-08-19  Eric Blake  <ebb9@byu.net>
45513
45514         Test yesno in combination with closein.
45515         * lib/yesno.c (yesno): Document use of stdin.
45516         * modules/yesno-tests (Files): New module.
45517         * tests/test-yesno.c (main): New file.
45518         * tests/test-yesno.sh: Likewise.
45519
45520 2007-08-19  Bruno Haible  <bruno@clisp.org>
45521
45522         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
45523         * lib/fseeko.c (rpl_fseeko): Likewise.
45524         * lib/fseterr.c (fseterr): Likewise.
45525
45526 2007-08-19  Bruno Haible  <bruno@clisp.org>
45527
45528         * tests/test-lseek.c (main): Disable a test for BeOS.
45529         * doc/functions/lseek.texi: Document the BeOS bug.
45530
45531 2007-08-19  Bruno Haible  <bruno@clisp.org>
45532             Eric Blake  <ebb9@byu.net>
45533
45534         * lib/lseek.c: Include <sys/stat.h>.
45535         (rpl_lseek): Add workaround code also for Unix platforms.
45536         Needed for BeOS.
45537         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
45538         * doc/functions/lseek.texi: Document BeOS definiency.
45539
45540 2007-08-18  Bruno Haible  <bruno@clisp.org>
45541
45542         * modules/fstrcmp-tests: New file.
45543         * tests/test-fstrcmp.c: New file.
45544
45545 2007-08-18  Bruno Haible  <bruno@clisp.org>
45546
45547         * modules/fstrcmp: New file, from GNU gettext with modifications.
45548         * lib/fstrcmp.h: New file, from GNU gettext.
45549         * lib/fstrcmp.c: New file, from GNU gettext.
45550         * MODULES.html.sh (String handling): Add fstrcmp.
45551
45552 2007-08-18  Bruno Haible  <bruno@clisp.org>
45553
45554         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
45555         'bool'.
45556         (diag, compareseq): Remove const from the ctxt argument.
45557         (USE_HEURISTIC): Undefine at the end.
45558
45559 2007-08-18  Jim Meyering  <jim@meyering.net>
45560
45561         New file: lib/idcache.h
45562         * NEWS: Mention the addition.
45563         * modules/idcache (Files): Add lib/idcache.h
45564         * lib/idcache.c: Include "idcache.h".
45565         Don't include <sys/types.h>.
45566         Add a FIXME comment.
45567         Move file-scoped "static" declarations to the top.
45568         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
45569
45570 2007-08-17  Bruno Haible  <bruno@clisp.org>
45571         and Paul Eggert  <eggert@cs.ucla.edu>
45572
45573         * MODULES.html.sh: Add diffseq.
45574         * modules/diffseq: New file.
45575         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
45576         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
45577
45578 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45579
45580         Import changes from coreutils for bootstrap script.
45581
45582         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
45583
45584         * build-aux/bootstrap (slurp): Work even in environments where
45585         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
45586         current code does not slurp files whose names start with ".", and
45587         this looks like it might be a troublesome area.
45588
45589         2007-07-11  Jim Meyering  <jim@meyering.net>
45590
45591         If there's a GPL vN copyright comment, require that N == 3.
45592
45593         2007-07-08  Jim Meyering  <jim@meyering.net>
45594
45595         Run the coreutils-specific code only if tests/Makefile.am.in exists.
45596         * build-aux/bootstrap (mam_template): Move definition out of loop.
45597
45598         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
45599
45600         * build-aux/bootstrap (symlink_to_dir): Rename function from
45601         symlink_to_gnulib.  Add a directory parameter.  Update all
45602         callers.
45603         (cp_mark_as_generated): Also check for -- and link to -- files in
45604         gl/.
45605
45606         2007-07-08  Jim Meyering  <jim@meyering.net>
45607
45608         Adapt to deeper hierarchy in gnulib.
45609         * build-aux/bootstrap (symlink_to_dir): If the destination
45610         directory doesn't exist, create it. This is required at least for
45611         "lib/uniwidth/cjk.h".
45612
45613         2007-05-15  Jim Meyering  <jim@meyering.net>
45614
45615         * build-aux/bootstrap: Now that generated Makefile.am files
45616         are no longer under version control, they must be created at
45617         bootstrap time.
45618
45619 2007-08-14  Ben Pfaff  <blp@gnu.org>
45620
45621         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
45622
45623 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45624
45625         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
45626         given the changes below.
45627         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
45628         even on hosts that have padding bits beyond the supported 64.
45629
45630 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45631
45632         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
45633         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
45634         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
45635         depends on it.
45636         (xstrtol_error): Remove.
45637         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
45638         but with a different signature.
45639         (ATTRIBUTE_NORETURN, __attribute__): New macros.
45640         * lib/xstrtol-error.c: Include exitfail.h.
45641         (xstrtol_fatal): New function, with a different signature from the
45642         old xstrtol_error, so that the caller need not worry about passing
45643         in an exit status, or about storage management of the option argument.
45644         (xstrtol_error): Now a static function.  Redo signature to
45645         implement xstrtol_fatal.  Output the correct number of hyphens in
45646         front of the option so that the caller need not worry about
45647         storage management.
45648         (N_): New macro.
45649         (_): Remove; not used now.
45650         * modules/xstrtol: Depend on getopt.
45651         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
45652         of old STRTOL_FATAL_ERROR macro.
45653         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
45654         of test program.
45655         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
45656         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
45657
45658 2007-08-08  Eric Blake  <ebb9@byu.net>
45659
45660         * lib/xstrtol-error.c: Add missing include.
45661
45662         Move xstrtol messages into gnulib domain, when --pobase is used.
45663         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
45664         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
45665         * modules/xstrtol (Files): Distribute new file.
45666         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
45667         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
45668         * tests/test-xstrtol.c: ...into new file.
45669         * tests/test-xstrtoul.c: Also test xstrtoul.
45670         * tests/test-xstrtoimax.c: Also test xstrtoimax.
45671         * tests/test-xstrtoumax.c: Also test xstrtoumax.
45672         * tests/test-xstrtol.sh: Drive the tests.
45673         * tests/test-xstrtoimax.sh: Likewise.
45674         * tests/test-xstrtoumax.sh: Likewise.
45675         * modules/xstrtol-tests: New module.
45676         * modules/xstrtoimax-tests: Likewise.
45677         * modules/xstrtoumax-tests: Likewise.
45678
45679 2007-08-08  Jim Meyering  <jim@meyering.net>
45680
45681         New function: mfile_name_concat.
45682         * lib/filenamecat.c (mfile_name_concat): New function, just like
45683         file_name_concat, but return NULL upon failure rather than exiting
45684         with a diagnostic.
45685         * lib/filenamecat.h: Declare it.
45686
45687 2007-08-07  Bruno Haible  <bruno@clisp.org>
45688
45689         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
45690         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
45691         warning from gcc.
45692         Reported by Eric Blake.
45693
45694 2007-08-07  Simon Josefsson  <simon@josefsson.org>
45695
45696         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
45697         * modules/crypto/arcfour (License): Likewise.
45698         * modules/crypto/des-tests (License): Likewise.
45699         * modules/crypto/gc-arctwo-tests (License): Likewise.
45700         * modules/crypto/gc-des-tests (License): Likewise.
45701         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
45702         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
45703         * modules/crypto/gc-md2-tests (License): Likewise.
45704         * modules/crypto/gc-md4-tests (License): Likewise.
45705         * modules/crypto/gc-md5-tests (License): Likewise.
45706         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
45707         * modules/crypto/gc-rijndael-tests (License): Likewise.
45708         * modules/crypto/gc-sha1-tests (License): Likewise.
45709         * modules/crypto/gc-tests (License): Likewise.
45710         * modules/crypto/hmac-md5 (License): Likewise.
45711         * modules/crypto/hmac-sha1 (License): Likewise.
45712         * modules/crypto/md2-tests (License): Likewise.
45713         * modules/crypto/md4-tests (License): Likewise.
45714         * modules/crypto/md5 (License): Likewise.
45715         * modules/crypto/rijndael (License): Likewise.
45716         * modules/crypto/sha1 (License): Likewise.
45717         * modules/memxor (License): Likewise.
45718
45719 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
45720         and Bruno Haible  <bruno@clisp.org>
45721
45722         * NEWS: Describe interface changes to human, xstrtol.
45723         * lib/human.h: Include <xstrtol.h>.
45724         (human_options): Return enum strtol_error, not int.  Remove
45725         bool arg; take int * instead.
45726         * lib/human.c: Don't include "gettext.h".
45727         (_): Remove; no longer used.
45728         Don't include <xstrtol.h>, since human.h does it.
45729         (human_options): Adjust to abovementioned interface changes.
45730         Do not report error to stderr; that's now the caller's
45731         responsibility.
45732         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
45733         interface change.
45734         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
45735         Str, Argument_type_string.  All uses changed.  Put " argument"
45736         in diagnostics to make them clearer.  Change wording of suffix
45737         message for clarity.
45738         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
45739         Argument_type_string.
45740         (STRTOL_FATAL_WARN): Remove; no longer used.
45741         * modules/human (Depends-on): Remove gettext-h.
45742
45743 2007-08-06  Simon Josefsson  <simon@josefsson.org>
45744
45745         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
45746
45747 2007-07-31  Bruno Haible  <bruno@clisp.org>
45748
45749         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
45750         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
45751         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
45752
45753 2007-07-31  Bruno Haible  <bruno@clisp.org>
45754
45755         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
45756         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
45757
45758 2007-07-30  Bruno Haible  <bruno@clisp.org>
45759
45760         * modules/base64 (License): Use the synonymous term "LGPLv2+".
45761         * modules/c-ctype (License): Likewise.
45762         * modules/c-strcase (License): Likewise.
45763         * modules/check-version (License): Likewise.
45764         * modules/iconv (License): Likewise.
45765         * modules/iconv_open (License): Likewise.
45766         * modules/read-file (License): Likewise.
45767         * modules/striconv (License): Likewise.
45768         * modules/strverscmp (License): Likewise.
45769         * modules/vasprintf (License): Likewise.
45770         * modules/crypto/des (License): Likewise.
45771         * modules/crypto/gc (License): Likewise.
45772         * modules/crypto/gc-arcfour (License): Likewise.
45773         * modules/crypto/gc-arctwo (License): Likewise.
45774         * modules/crypto/gc-des (License): Likewise.
45775         * modules/crypto/gc-hmac-md5 (License): Likewise.
45776         * modules/crypto/gc-hmac-sha1 (License): Likewise.
45777         * modules/crypto/gc-md2 (License): Likewise.
45778         * modules/crypto/gc-md4 (License): Likewise.
45779         * modules/crypto/gc-md5 (License): Likewise.
45780         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
45781         * modules/crypto/gc-random (License): Likewise.
45782         * modules/crypto/gc-rijndael (License): Likewise.
45783         * modules/crypto/gc-sha1 (License): Likewise.
45784         * modules/crypto/md2 (License): Likewise.
45785         * modules/crypto/md4 (License): Likewise.
45786
45787 2007-07-30  Jim Meyering  <jim@meyering.net>
45788
45789         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
45790         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
45791         it has valid stat data.  This bug would cause du not to count the
45792         sizes of inaccessible directories.
45793         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
45794         in <http://bugzilla.redhat.com/250077>.
45795
45796 2007-07-25  Peter O'Gorman  <peter@pogma.com>
45797             Bruno Haible  <bruno@clisp.org>
45798
45799         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
45800         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
45801         #include_next, gives a diagnostic about it, but reports no error in
45802         the exit code.
45803         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
45804
45805 2007-07-24  Ben Pfaff  <blp@gnu.org>
45806
45807         Improve name: "count-one-bits" is better than "popcount".
45808         * MODULES.html.sh: Update name.
45809         * lib/popcount.h: Renamed lib/count-one-bits.h.
45810         (popcount): Renamed count_one_bits.
45811         (popcountl): Renamed count_one_bits_l.
45812         (popcountll): Renamed count_one_bits_ll.
45813         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
45814         * modules/popcount: Renamed module/count-one-bits.
45815         * modules/popcount-tests: Renamed module/count-one-bits-tests.
45816         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
45817
45818 2007-07-23  Ben Pfaff  <blp@gnu.org>
45819
45820         * lib/popcount.h (popcount32): Reduce size of constants, to allow
45821         better code generation, and add U to large constants to avoid
45822         warnings, in non-GCC case.
45823         Suggested by Bruno Haible.
45824
45825 2007-07-23  Ben Pfaff  <blp@gnu.org>
45826
45827         * lib/popcount.h: Use verify_true instead of if...abort.
45828         * modules/popcount: Depend on verify module.
45829         Suggested by Jim Meyering.
45830
45831 2007-07-23  Bruno Haible  <bruno@clisp.org>
45832
45833         * gnulib-tool (func_import): Create a .cvsignore file also when the
45834         directory is not yet in CVS but the toplevel directory is. When
45835         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
45836         Reported by Karl Berry.
45837
45838 2007-07-22  Ben Pfaff  <blp@gnu.org>
45839
45840         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
45841         case.
45842         Suggested by Eric Blake.
45843
45844 2007-07-22  Ben Pfaff  <blp@gnu.org>
45845
45846         New module: popcount.
45847         * MODULES.html.sh: Add popcount.
45848         * modules/popcount: New file.
45849         * modules/popcount-tests: New file.
45850         * tests/test-popcount.c: New file.
45851         * lib/popcount.h: New file.
45852         * m4/popcount.m4: New file.
45853
45854 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45855
45856         * build-aux/announce-gen: Update to GPLv3.
45857
45858         * build-aux/config.guess: Update from config.
45859
45860 2007-07-21  Bruno Haible  <bruno@clisp.org>
45861
45862         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
45863         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
45864
45865 2007-07-20  Jim Meyering  <jim@meyering.net>
45866
45867         * check-module: Diagnose a self-dependency.
45868
45869 2007-07-19  Bruno Haible  <bruno@clisp.org>
45870
45871         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
45872         empty.
45873         Reported by Eric Blake.
45874
45875 2007-07-18  Bruno Haible  <bruno@clisp.org>
45876
45877         * gnulib-tool: New options --po-base, --po-domain.
45878         (func_usage): Document them.
45879         (pobase, po_domain): New variables.
45880         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
45881         DEFAULT_TEXT_DOMAIN.
45882         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
45883         (func_import): Consider pobase and po_domain. Create a po/ directory.
45884         (func_create_testdir): Set pobase and po_domain to empty.
45885         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
45886         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
45887
45888 2007-07-18  Bruno Haible  <bruno@clisp.org>
45889
45890         * gnulib-tool (func_get_automake_snippet): Synthesize also an
45891         EXTRA_DIST augmentation for files in build-aux/.
45892
45893 2007-07-16  Bruno Haible  <bruno@clisp.org>
45894
45895         * modules/lseek (License): Use the synonymous term "LGPLv2+".
45896         * modules/getdelim (License): Likewise.
45897
45898 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45899
45900         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
45901         * modules/d-type (License): Likewise.
45902         * modules/extensions (License): Likewise.
45903         * modules/fnmatch (License): Likewise.
45904         * modules/fseeko (License): Likewise.
45905         * modules/getaddrinfo (License): Likewise.
45906         * modules/getline (License): Likewise.
45907         * modules/getlogin_r (License): Likewise.
45908         * modules/getpass (License): Likewise.
45909         * modules/gettimeofday (License): Likewise.
45910         * modules/glob (License): Likewise.
45911         * modules/inet_ntop (License): Likewise.
45912         * modules/malloc (License): Likewise.
45913         * modules/malloca (License): Likewise.
45914         * modules/memmem (License): Likewise.
45915         * modules/mempcpy (License): Likewise.
45916         * modules/memset (License): Likewise.
45917         * modules/minmax (License): Likewise.
45918         * modules/mktime (License): Likewise.
45919         * modules/netinet_in (License): Likewise.
45920         * modules/pathmax (License): Likewise.
45921         * modules/poll (License): Likewise.
45922         * modules/regex (License): Likewise.
45923         * modules/snprintf (License): Likewise.
45924         * modules/stdbool (License): Likewise.
45925         * modules/stdint (License): Likewise.
45926         * modules/stdio (License): Likewise.
45927         * modules/strcase (License): Likewise.
45928         * modules/strcasestr (License): Likewise.
45929         * modules/strdup (License): Likewise.
45930         * modules/string (License): Likewise.
45931         * modules/strndup (License): Likewise.
45932         * modules/strnlen (License): Likewise.
45933         * modules/strpbrk (License): Likewise.
45934         * modules/strptime (License): Likewise.
45935         * modules/strsep (License): Likewise.
45936         * modules/sys_select (License): Likewise.
45937         * modules/sys_socket (License): Likewise.
45938         * modules/sys_stat (License): Likewise.
45939         * modules/sys_time (License): Likewise.
45940         * modules/time (License): Likewise.
45941         * modules/time_r (License): Likewise.
45942         * modules/timegm (License): Likewise.
45943         * modules/unistd (License): Likewise.
45944         * modules/vsnprintf (License): Likewise.
45945         * modules/wctype (License): Likewise.
45946
45947 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45948
45949         * modules/argz (License): LGPLv2+.
45950
45951 2007-07-15  Karl Berry  <karl@gnu.org>
45952
45953         * doc/gnulib.texi: revise node structure per new fdl.texi.
45954
45955 2007-07-14  Bruno Haible  <bruno@clisp.org>
45956
45957         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
45958         the output file.
45959         * lib/uniname/uninames.h: Regenerated.
45960
45961 2007-07-14  Karl Berry  <karl@gnu.org>
45962
45963         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
45964         omitting sectioning and index commands.
45965
45966 2007-07-13  Bruno Haible  <bruno@clisp.org>
45967
45968         New gnulib-tool option --more-symlinks.
45969         * gnulib-tool (func_usage): Document --more-symlinks.
45970         (do_copyrights): New variable.
45971         Recognize option --more-symlinks.
45972         (func_import): Don't add a copyright notice transform to
45973         sed_transform_lib_file if do_copyrights is empty.
45974
45975 2007-07-13  Bruno Haible  <bruno@clisp.org>
45976
45977         * lib/vasnprintf.c (decimal_point_char): Define also if
45978         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
45979         && !NEED_PRINTF_DIRECTIVE_A.
45980         Reported by Clemens Koller <clemens.koller@anagramm.de> via
45981         Gary V. Vaughan <gary@gnu.org>.
45982
45983 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
45984
45985         * lib/inttypes_.h: Undo previous change, since it was fixed
45986         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
45987
45988 2007-07-13  Bruno Haible  <bruno@clisp.org>
45989
45990         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
45991         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
45992
45993 2007-07-13  Jim Meyering  <jim@meyering.net>
45994
45995         df: Don't fail for Tru64's "file-on-file mount".
45996         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
45997         so we fall through and use statfs instead.  Details here:
45998         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
45999         Reported by Albert Chin.
46000
46001 2007-07-13  Bruno Haible  <bruno@clisp.org>
46002
46003         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
46004         * modules/configmake (License): Likewise.
46005         * modules/gettext (License): Likewise.
46006         * modules/gettext-h (License): Likewise.
46007         * modules/include_next (License): Likewise.
46008         * modules/link-warning (License): Likewise.
46009         * modules/localcharset (License): Likewise.
46010         * modules/localename (License): Likewise.
46011         * modules/lock (License): Likewise.
46012         * modules/relocatable-lib-lgpl (License): Likewise.
46013         * modules/size_max (License): Likewise.
46014         * modules/vasnprintf (License): Likewise.
46015         * modules/wchar (License): Likewise.
46016         * modules/xsize (License): Likewise.
46017
46018 2007-07-13  Bruno Haible  <bruno@clisp.org>
46019
46020         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
46021         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
46022
46023 2007-07-12  Bruno Haible  <bruno@clisp.org>
46024
46025         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
46026         in the modules files.
46027
46028 2007-07-11  Karl Berry  <karl@gnu.org>
46029
46030         * MODULES.html.sh (func_module): use
46031          sed -e '\|^'"${includefile}"'$|d'
46032          instead of /.../d, to avoid errors on $includefile's containing /.
46033
46034 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46035
46036         * gnulib-tool (func_import): Avoid duplication of --avoid
46037         statements
46038         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
46039         names to `_' in variable names.
46040
46041 2007-07-10  Eric Blake  <ebb9@byu.net>
46042
46043         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
46044         * NEWS: Document this change.
46045
46046 2007-07-08  Bruno Haible  <bruno@clisp.org>
46047
46048         Update to Unicode 5.0.
46049         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
46050         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
46051         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
46052         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
46053         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
46054         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
46055         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
46056         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
46057         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
46058         U+10A3F, U+1D242..U+1D244.
46059         (nonspacing_table_ind): Update.
46060         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
46061         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
46062
46063 2007-07-08  Bruno Haible  <bruno@clisp.org>
46064
46065         Update to Unicode 5.0.
46066         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
46067         code transform. Extend the name index field of unicode_name_to_code and
46068         unicode_code_to_name from 16 to 24 bits.
46069         * lib/uniname/uniname.c (unicode_character_name,
46070         unicode_name_character): Add the range 0x12xxx to the code transform.
46071         * lib/uniname/uninames.h: Regenerated.
46072         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
46073
46074 2007-07-07  Bruno Haible  <bruno@clisp.org>
46075
46076         * modules/wcwidth-tests: New file.
46077         * tests/test-wcwidth.c: New file.
46078
46079         Work around MacOS X wcwidth() bug.
46080         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
46081         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
46082         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
46083         original wcwidth in non-UTF-8 locales.
46084         * modules/wcwidth (Depends-on): Add localcharset, streq,
46085         uniwidth/width.
46086         * doc/functions/wcwidth.texi: Update.
46087
46088 2007-07-07  Bruno Haible  <bruno@clisp.org>
46089
46090         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
46091         (wcwidth): New declaration.
46092         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
46093         macros.
46094         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
46095         here. Prepare for creating <wchar.h> unconditionally.
46096         * modules/wchar (Depends-on): Add link-warning.
46097         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
46098         REPLACE_WCWIDTH, and GL_LINK_WARNING.
46099         * lib/wcwidth.h: Remove file.
46100         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
46101         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
46102         * modules/wcwidth (Files): Remove lib/wcwidth.h.
46103         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
46104         (Include): Replace wcwidth.h with <wchar.h>.
46105         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
46106         * lib/mbchar.h: Don't include wcwidth.h.
46107         * lib/mbswidth.c: Likewise.
46108         * NEWS: Mention the change.
46109
46110 2007-07-07  Bruno Haible  <bruno@clisp.org>
46111
46112         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
46113         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
46114         definition with an external declaration.
46115         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
46116         defined as a function. Remove AC_C_INLINE requirement.
46117         * modules/wcwidth (Files): Add lib/wcwidth.c.
46118         (Makefile.am): Remove redundant statement.
46119
46120 2007-07-07  Bruno Haible  <bruno@clisp.org>
46121
46122         * MODULES.html.sh (Unicode string functions): Add the new modules.
46123
46124         * tests/uniwidth/test-u32-strwidth.c: New file.
46125         * modules/uniwidth/u32-strwidth-tests: New file.
46126
46127         * lib/uniwidth/u32-strwidth.c: New file.
46128         * modules/uniwidth/u32-strwidth: New file.
46129
46130         * tests/uniwidth/test-u16-strwidth.c: New file.
46131         * modules/uniwidth/u16-strwidth-tests: New file.
46132
46133         * lib/uniwidth/u16-strwidth.c: New file.
46134         * modules/uniwidth/u16-strwidth: New file.
46135
46136         * tests/uniwidth/test-u8-strwidth.c: New file.
46137         * modules/uniwidth/u8-strwidth-tests: New file.
46138
46139         * lib/uniwidth/u8-strwidth.c: New file.
46140         * modules/uniwidth/u8-strwidth: New file.
46141
46142         * tests/uniwidth/test-u32-width.c: New file.
46143         * modules/uniwidth/u32-width-tests: New file.
46144
46145         * lib/uniwidth/u32-width.c: New file.
46146         * modules/uniwidth/u32-width: New file.
46147
46148         * tests/uniwidth/test-u16-width.c: New file.
46149         * modules/uniwidth/u16-width-tests: New file.
46150
46151         * lib/uniwidth/u16-width.c: New file.
46152         * modules/uniwidth/u16-width: New file.
46153
46154         * tests/uniwidth/test-u8-width.c: New file.
46155         * modules/uniwidth/u8-width-tests: New file.
46156
46157         * lib/uniwidth/u8-width.c: New file.
46158         * modules/uniwidth/u8-width: New file.
46159
46160         * tests/uniwidth/test-uc_width.c: New file.
46161         * modules/uniwidth/width-tests: New file.
46162
46163         * lib/uniwidth/width.c: New file, from GNU libiconv.
46164         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
46165         * modules/uniwidth/width: New file.
46166
46167         * lib/uniwidth.h: New file, from GNU libiconv.
46168         * modules/uniwidth/base: New file.
46169
46170 2007-07-07  Bruno Haible  <bruno@clisp.org>
46171
46172         * lib/uniname.h: New file, from GNU gettext.
46173         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
46174         * lib/uniname/uninames.h: New file, from GNU gettext.
46175         * lib/uniname/uniname.c: New file, from GNU gettext.
46176         * tests/uniname/test-uninames.sh: New file.
46177         * tests/uniname/test-uninames.c: New file, from GNU gettext.
46178         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
46179         * modules/uniname/base: New file.
46180         * modules/uniname/uniname: New file.
46181         * modules/uniname/uniname-tests: New file.
46182         * MODULES.html.sh (Unicode string functions): Add the new modules.
46183
46184 2007-07-06  Bruno Haible  <bruno@clisp.org>
46185
46186         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
46187
46188 2007-07-06  Bruno Haible  <bruno@clisp.org>
46189
46190         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
46191         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
46192         includes <cygwin/sys_time.h> which includes <sys/select.h> which
46193         include <sys/time.h>.
46194         Reported by Eric Blake.
46195
46196 2007-07-06  Eric Blake  <ebb9@byu.net>
46197
46198         Fix testing canonicalize on cygwin.
46199         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
46200         Revert patch from 2007-06-19.
46201         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
46202         canonicalize module is also in use.
46203         * tests/test-canonicalize.c: New file.
46204         * tests/test-canonicalize.sh: Likewise.
46205         * modules/canonicalize-tests: Likewise.
46206
46207 2007-07-06  Jim Meyering  <jim@meyering.net>
46208
46209         * lib/getugroups.c (getugroups): Detect getgrent failure.
46210         Adjust comment to reflect reality: this function may return -1.
46211
46212 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
46213
46214         * build-aux/bootstrap (TP_URL,get_translations): Update to use
46215         the new TP address.
46216         (usage): Fix typo
46217         (gnulib_mk): New variable.
46218
46219 2007-07-05  Jim Meyering  <jim@meyering.net>
46220
46221         Don't let endgrent clobber errno, no matter how improbable.
46222         * lib/getugroups.c (getugroups): Save and restore errno around
46223         endgrent call.
46224
46225         Close the group DB even when failing with 2^31 or more members.
46226         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
46227
46228 2007-07-04  Jim Meyering  <jim@meyering.net>
46229
46230         * lib/getugroups.h: New file.
46231         * lib/getugroups.c: Include "getugroups.h".
46232         Remove uses of "register" keyword.
46233         Move local variable, "cp", down into scope where used.
46234         Give "username" parameter the "const" attribute.
46235         * modules/getugroups (Files): Add lib/getugroups.h
46236
46237 2007-07-04  Karl Berry  <karl@gnu.org>
46238
46239         * MODULES.html.sh (func_all_modules): Complete rename of
46240         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
46241
46242 2007-07-02  Bruno Haible  <bruno@clisp.org>
46243
46244         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
46245         mode, when inttypes.h comes from gnulib.
46246         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46247
46248 2007-07-02  Simon Josefsson  <simon@josefsson.org>
46249
46250         * NEWS: Mention lgpl module name change.
46251
46252         * modules/lgpl-2.1: Renamed from lgpl.
46253
46254         * NEWS: Mention gpl module name change.
46255
46256         * modules/gpl-3.0: New file, based on gpl-2.0.
46257
46258         * modules/gpl-2.0: Renamed from gpl.
46259
46260         * modules/gpl: Fix filename, doc/gpl.texi is now found at
46261         doc/gpl-2.0.texi.
46262
46263 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46264
46265         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
46266         #define __STDC_LIMIT_MACROS temporarily while including
46267         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
46268         Problem reported by Joel E. Denny in
46269         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
46270
46271 2007-07-01  Bruno Haible  <bruno@clisp.org>
46272
46273         * lib/unistdio.h: New file.
46274         * lib/unistdio/u-asnprintf.h: New file.
46275         * lib/unistdio/u-asprintf.h: New file.
46276         * lib/unistdio/u-printf-args.c: New file.
46277         * lib/unistdio/u-printf-args.h: New file.
46278         * lib/unistdio/u-printf-parse.h: New file.
46279         * lib/unistdio/u-snprintf.h: New file.
46280         * lib/unistdio/u-sprintf.h: New file.
46281         * lib/unistdio/u-vasprintf.h: New file.
46282         * lib/unistdio/u-vsnprintf.h: New file.
46283         * lib/unistdio/u-vsprintf.h: New file.
46284         * lib/unistdio/ulc-asnprintf.c: New file.
46285         * lib/unistdio/ulc-asprintf.c: New file.
46286         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
46287         * lib/unistdio/ulc-printf-parse.c: New file.
46288         * lib/unistdio/ulc-snprintf.c: New file.
46289         * lib/unistdio/ulc-sprintf.c: New file.
46290         * lib/unistdio/ulc-vasnprintf.c: New file.
46291         * lib/unistdio/ulc-vasprintf.c: New file.
46292         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
46293         * lib/unistdio/ulc-vsnprintf.c: New file.
46294         * lib/unistdio/ulc-vsprintf.c: New file.
46295         * lib/unistdio/u8-asnprintf.c: New file.
46296         * lib/unistdio/u8-asprintf.c: New file.
46297         * lib/unistdio/u8-printf-parse.c: New file.
46298         * lib/unistdio/u8-snprintf.c: New file.
46299         * lib/unistdio/u8-sprintf.c: New file.
46300         * lib/unistdio/u8-vasnprintf.c: New file.
46301         * lib/unistdio/u8-vasprintf.c: New file.
46302         * lib/unistdio/u8-vsnprintf.c: New file.
46303         * lib/unistdio/u8-vsprintf.c: New file.
46304         * lib/unistdio/u8-u8-asnprintf.c: New file.
46305         * lib/unistdio/u8-u8-asprintf.c: New file.
46306         * lib/unistdio/u8-u8-snprintf.c: New file.
46307         * lib/unistdio/u8-u8-sprintf.c: New file.
46308         * lib/unistdio/u8-u8-vasnprintf.c: New file.
46309         * lib/unistdio/u8-u8-vasprintf.c: New file.
46310         * lib/unistdio/u8-u8-vsnprintf.c: New file.
46311         * lib/unistdio/u8-u8-vsprintf.c: New file.
46312         * lib/unistdio/u16-asnprintf.c: New file.
46313         * lib/unistdio/u16-asprintf.c: New file.
46314         * lib/unistdio/u16-printf-parse.c: New file.
46315         * lib/unistdio/u16-snprintf.c: New file.
46316         * lib/unistdio/u16-sprintf.c: New file.
46317         * lib/unistdio/u16-vasnprintf.c: New file.
46318         * lib/unistdio/u16-vasprintf.c: New file.
46319         * lib/unistdio/u16-vsnprintf.c: New file.
46320         * lib/unistdio/u16-vsprintf.c: New file.
46321         * lib/unistdio/u16-u16-asnprintf.c: New file.
46322         * lib/unistdio/u16-u16-asprintf.c: New file.
46323         * lib/unistdio/u16-u16-snprintf.c: New file.
46324         * lib/unistdio/u16-u16-sprintf.c: New file.
46325         * lib/unistdio/u16-u16-vasnprintf.c: New file.
46326         * lib/unistdio/u16-u16-vasprintf.c: New file.
46327         * lib/unistdio/u16-u16-vsnprintf.c: New file.
46328         * lib/unistdio/u16-u16-vsprintf.c: New file.
46329         * lib/unistdio/u32-asnprintf.c: New file.
46330         * lib/unistdio/u32-asprintf.c: New file.
46331         * lib/unistdio/u32-printf-parse.c: New file.
46332         * lib/unistdio/u32-snprintf.c: New file.
46333         * lib/unistdio/u32-sprintf.c: New file.
46334         * lib/unistdio/u32-vasnprintf.c: New file.
46335         * lib/unistdio/u32-vasprintf.c: New file.
46336         * lib/unistdio/u32-vsnprintf.c: New file.
46337         * lib/unistdio/u32-vsprintf.c: New file.
46338         * lib/unistdio/u32-u32-asnprintf.c: New file.
46339         * lib/unistdio/u32-u32-asprintf.c: New file.
46340         * lib/unistdio/u32-u32-snprintf.c: New file.
46341         * lib/unistdio/u32-u32-sprintf.c: New file.
46342         * lib/unistdio/u32-u32-vasnprintf.c: New file.
46343         * lib/unistdio/u32-u32-vasprintf.c: New file.
46344         * lib/unistdio/u32-u32-vsnprintf.c: New file.
46345         * lib/unistdio/u32-u32-vsprintf.c: New file.
46346         * tests/unistdio/test-ulc-asnprintf1.c: New file.
46347         * tests/unistdio/test-ulc-asnprintf1.h: New file.
46348         * tests/unistdio/test-ulc-printf1.h: New file.
46349         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
46350         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
46351         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
46352         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
46353         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
46354         * tests/unistdio/test-ulc-vasprintf1.c: New file.
46355         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
46356         * tests/unistdio/test-ulc-vsprintf1.c: New file.
46357         * tests/unistdio/test-u8-asnprintf1.c: New file.
46358         * tests/unistdio/test-u8-asnprintf1.h: New file.
46359         * tests/unistdio/test-u8-printf1.h: New file.
46360         * tests/unistdio/test-u8-vasnprintf1.c: New file.
46361         * tests/unistdio/test-u8-vasnprintf2.c: New file.
46362         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
46363         * tests/unistdio/test-u8-vasnprintf3.c: New file.
46364         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
46365         * tests/unistdio/test-u8-vasprintf1.c: New file.
46366         * tests/unistdio/test-u8-vsnprintf1.c: New file.
46367         * tests/unistdio/test-u8-vsprintf1.c: New file.
46368         * tests/unistdio/test-u16-asnprintf1.c: New file.
46369         * tests/unistdio/test-u16-asnprintf1.h: New file.
46370         * tests/unistdio/test-u16-printf1.h: New file.
46371         * tests/unistdio/test-u16-vasnprintf1.c: New file.
46372         * tests/unistdio/test-u16-vasnprintf2.c: New file.
46373         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
46374         * tests/unistdio/test-u16-vasnprintf3.c: New file.
46375         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
46376         * tests/unistdio/test-u16-vasprintf1.c: New file.
46377         * tests/unistdio/test-u16-vsnprintf1.c: New file.
46378         * tests/unistdio/test-u16-vsprintf1.c: New file.
46379         * tests/unistdio/test-u32-asnprintf1.c: New file.
46380         * tests/unistdio/test-u32-asnprintf1.h: New file.
46381         * tests/unistdio/test-u32-printf1.h: New file.
46382         * tests/unistdio/test-u32-vasnprintf1.c: New file.
46383         * tests/unistdio/test-u32-vasnprintf2.c: New file.
46384         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
46385         * tests/unistdio/test-u32-vasnprintf3.c: New file.
46386         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
46387         * tests/unistdio/test-u32-vasprintf1.c: New file.
46388         * tests/unistdio/test-u32-vsnprintf1.c: New file.
46389         * tests/unistdio/test-u32-vsprintf1.c: New file.
46390         * modules/unistdio/base: New file.
46391         * modules/unistdio/u-printf-args: New file.
46392         * modules/unistdio/ulc-asnprintf: New file.
46393         * modules/unistdio/ulc-asprintf: New file.
46394         * modules/unistdio/ulc-fprintf: New file.
46395         * modules/unistdio/ulc-printf-parse: New file.
46396         * modules/unistdio/ulc-snprintf: New file.
46397         * modules/unistdio/ulc-sprintf: New file.
46398         * modules/unistdio/ulc-vasnprintf: New file.
46399         * modules/unistdio/ulc-vasprintf: New file.
46400         * modules/unistdio/ulc-vfprintf: New file.
46401         * modules/unistdio/ulc-vsnprintf: New file.
46402         * modules/unistdio/ulc-vsprintf: New file.
46403         * modules/unistdio/u8-asnprintf: New file.
46404         * modules/unistdio/u8-asprintf: New file.
46405         * modules/unistdio/u8-printf-parse: New file.
46406         * modules/unistdio/u8-snprintf: New file.
46407         * modules/unistdio/u8-sprintf: New file.
46408         * modules/unistdio/u8-vasnprintf: New file.
46409         * modules/unistdio/u8-vasprintf: New file.
46410         * modules/unistdio/u8-vsnprintf: New file.
46411         * modules/unistdio/u8-vsprintf: New file.
46412         * modules/unistdio/u8-u8-asnprintf: New file.
46413         * modules/unistdio/u8-u8-asprintf: New file.
46414         * modules/unistdio/u8-u8-snprintf: New file.
46415         * modules/unistdio/u8-u8-sprintf: New file.
46416         * modules/unistdio/u8-u8-vasnprintf: New file.
46417         * modules/unistdio/u8-u8-vasprintf: New file.
46418         * modules/unistdio/u8-u8-vsnprintf: New file.
46419         * modules/unistdio/u8-u8-vsprintf: New file.
46420         * modules/unistdio/u16-asnprintf: New file.
46421         * modules/unistdio/u16-asprintf: New file.
46422         * modules/unistdio/u16-printf-parse: New file.
46423         * modules/unistdio/u16-snprintf: New file.
46424         * modules/unistdio/u16-sprintf: New file.
46425         * modules/unistdio/u16-vasnprintf: New file.
46426         * modules/unistdio/u16-vasprintf: New file.
46427         * modules/unistdio/u16-vsnprintf: New file.
46428         * modules/unistdio/u16-vsprintf: New file.
46429         * modules/unistdio/u16-u16-asnprintf: New file.
46430         * modules/unistdio/u16-u16-asprintf: New file.
46431         * modules/unistdio/u16-u16-snprintf: New file.
46432         * modules/unistdio/u16-u16-sprintf: New file.
46433         * modules/unistdio/u16-u16-vasnprintf: New file.
46434         * modules/unistdio/u16-u16-vasprintf: New file.
46435         * modules/unistdio/u16-u16-vsnprintf: New file.
46436         * modules/unistdio/u16-u16-vsprintf: New file.
46437         * modules/unistdio/u32-asnprintf: New file.
46438         * modules/unistdio/u32-asprintf: New file.
46439         * modules/unistdio/u32-printf-parse: New file.
46440         * modules/unistdio/u32-snprintf: New file.
46441         * modules/unistdio/u32-sprintf: New file.
46442         * modules/unistdio/u32-vasnprintf: New file.
46443         * modules/unistdio/u32-vasprintf: New file.
46444         * modules/unistdio/u32-vsnprintf: New file.
46445         * modules/unistdio/u32-vsprintf: New file.
46446         * modules/unistdio/u32-u32-asnprintf: New file.
46447         * modules/unistdio/u32-u32-asprintf: New file.
46448         * modules/unistdio/u32-u32-snprintf: New file.
46449         * modules/unistdio/u32-u32-sprintf: New file.
46450         * modules/unistdio/u32-u32-vasnprintf: New file.
46451         * modules/unistdio/u32-u32-vasprintf: New file.
46452         * modules/unistdio/u32-u32-vsnprintf: New file.
46453         * modules/unistdio/u32-u32-vsprintf: New file.
46454         * modules/unistdio/ulc-asnprintf-tests: New file.
46455         * modules/unistdio/ulc-vasnprintf-tests: New file.
46456         * modules/unistdio/ulc-vasprintf-tests: New file.
46457         * modules/unistdio/ulc-vsnprintf-tests: New file.
46458         * modules/unistdio/ulc-vsprintf-tests: New file.
46459         * modules/unistdio/u8-asnprintf-tests: New file.
46460         * modules/unistdio/u8-vasnprintf-tests: New file.
46461         * modules/unistdio/u8-vasprintf-tests: New file.
46462         * modules/unistdio/u8-vsnprintf-tests: New file.
46463         * modules/unistdio/u8-vsprintf-tests: New file.
46464         * modules/unistdio/u16-asnprintf-tests: New file.
46465         * modules/unistdio/u16-vasnprintf-tests: New file.
46466         * modules/unistdio/u16-vasprintf-tests: New file.
46467         * modules/unistdio/u16-vsnprintf-tests: New file.
46468         * modules/unistdio/u16-vsprintf-tests: New file.
46469         * modules/unistdio/u32-asnprintf-tests: New file.
46470         * modules/unistdio/u32-vasnprintf-tests: New file.
46471         * modules/unistdio/u32-vasprintf-tests: New file.
46472         * modules/unistdio/u32-vsnprintf-tests: New file.
46473         * modules/unistdio/u32-vsprintf-tests: New file.
46474         * MODULES.html.sh (Unicode string functions): Add the new modules.
46475
46476 2007-07-01  Bruno Haible  <bruno@clisp.org>
46477
46478         * lib/sprintf.c (sprintf): Limit the available length estimation,
46479         to avoid address wraparound.
46480         * lib/vsprintf.c (vsprintf): Likewise.
46481         * modules/sprintf-posix (Dependencies): Add stdint.
46482         * modules/vsprintf-posix (Dependencies): Likewise.
46483
46484 2007-07-01  Bruno Haible  <bruno@clisp.org>
46485
46486         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
46487         Windows PATH as well. Conservative double-quoting. Comments.
46488
46489 2007-07-01  Bruno Haible  <bruno@clisp.org>
46490             Eric Blake  <ebb9@byu.net>
46491             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46492
46493         * gnulib-tool (self_abspathname): Fix algorithm to cope with
46494         empty components in $PATH, denoting '.'.
46495
46496 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46497
46498         * gnulib-tool: Fix indentation.
46499         (func_create_megatestdir): Likewise.
46500         Report by Bruno Haible.
46501
46502 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46503
46504         Sync from Automake.
46505         * build-aux/gnupload: Fix shell portability issues with for loops.
46506         Report by Karl Berry.
46507
46508 2007-06-29  Simon Josefsson  <simon@josefsson.org>
46509
46510         * build-aux/maint.mk (POURL): Use translationproject.org.
46511
46512 2007-06-27  Simon Josefsson  <simon@josefsson.org>
46513             Bruno Haible  <bruno@clisp.org>
46514
46515         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
46516         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
46517         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
46518         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
46519         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
46520
46521 2007-06-27  Bruno Haible  <bruno@clisp.org>
46522
46523         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
46524         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
46525
46526 2007-06-26  Karl Berry  <karl@gnu.org>
46527
46528         * MODULES.html.sh: remove xreadlink-with-size.
46529
46530 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
46531
46532         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
46533         method that I hope also handles the double-include problem noted
46534         by Bruno Haible in
46535         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
46536
46537 2007-06-23  Bruno Haible  <bruno@clisp.org>
46538
46539         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46540         Don't let the 'mostlyclean' target fail if the last subdirectory could
46541         not be removed.
46542         Reported by Karl Berry.
46543
46544 2007-06-23  Bruno Haible  <bruno@clisp.org>
46545
46546         * gnulib-tool (echo): Add a speedier workaround for ksh.
46547         * tests/test-echo.sh: Likewise.
46548
46549 2007-06-23  Bruno Haible  <bruno@clisp.org>
46550
46551         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
46552         * tests/test-echo.sh: Likewise.
46553
46554 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46555
46556         * gnulib-tool (IFS): Initialize early, so we don't set it to
46557         empty later.
46558         (self_abspathname): Rewrite algorithm to set it, reindent.
46559         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
46560         (func_create_megatestdir): Merge some sed scripts.
46561
46562 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
46563
46564         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
46565         exposed by Sun Studio 11 cc on Solaris 8.
46566
46567 2007-06-22  Bruno Haible  <bruno@clisp.org>
46568
46569         * gnulib-tool (echo): Ensure the echo primitive does not interpret
46570         backslashes.
46571         * tests/test-echo.sh: New file.
46572
46573 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46574
46575         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
46576         simplify `sed_replace_build_aux' scripts, they are portable but
46577         echoing them with `echo' is not.
46578         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
46579
46580 2007-06-21  Karl Berry  <karl@gnu.org>
46581
46582         * config/srclist.txt: guess we can't handle the licenses via
46583         srclist at the moment.
46584
46585 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
46586
46587         * MODULES.html.sh: Add include_next.
46588         * modules/include_next: New file.
46589
46590 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
46591
46592         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
46593         INCLUDE_NEXT.
46594         (gl_CHECK_NEXT_HEADERS): New macro.
46595         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
46596         the obsolescent gl_ABSOLUTE_HEADER.
46597         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
46598         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
46599         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
46600         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
46601         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
46602         * m4/math_h.m4 (gl_MATH_H): Likewise.
46603         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
46604         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
46605         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
46606         * m4/stdint.m4 (gl_STDINT_H): Likewise.
46607         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
46608         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
46609         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
46610         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46611         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
46612         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
46613         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
46614         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
46615         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
46616         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
46617         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
46618         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46619         * m4/inttypes.m4 (gl_INTTYPES_H): Define
46620         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
46621         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
46622         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
46623         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
46624         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
46625         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
46626         * lib/float_.h: Likewise.
46627         * lib/inttypes_.h: Likewise.
46628         * lib/math_.h: Likewise.
46629         * lib/search_.h: Likewise.
46630         * lib/signal_.h: Likewise.
46631         * lib/stdint_.h: Likewise.
46632         * lib/stdio_.h: Likewise.
46633         * lib/stdlib_.h: Likewise.
46634         * lib/string_.h: Likewise.
46635         * lib/sys_stat_.h: Likewise.
46636         * lib/sys_time_.h: Likewise.
46637         * lib/time_.h: Likewise.
46638         * lib/unistd_.h: Likewise.
46639         * lib/wchar_.h: Likewise.
46640         * lib/wctype_.h: Likewise.
46641         * lib/dirent_.h: Likewise.
46642         * lib/iconv_.h: Likewise.
46643         * lib/locale_.h: Likewise.
46644         * lib/netinet_in_.h: Likewise.
46645         * lib/sys_select_.h: Likewise.
46646         * lib/sys_socket_.h: Likewise.
46647         * lib/sysexits_.h: Likewise.
46648         * modules/fcntl (Depends-on): Depend on include_next, not
46649         absolute_header.
46650         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
46651         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
46652         * modules/fchdir: Likewise.
46653         * modules/float: Likewise.
46654         * modules/iconv_open: Likewise.
46655         * modules/inttypes: Likewise.
46656         * modules/locale: Likewise.
46657         * modules/math: Likewise.
46658         * modules/netinet_in: Likewise.
46659         * modules/search: Likewise.
46660         * modules/signal: Likewise.
46661         * modules/stdint: Likewise.
46662         * modules/stdio: Likewise.
46663         * modules/stdlib: Likewise.
46664         * modules/string: Likewise.
46665         * modules/sys_select: Likewise.
46666         * modules/sys_socket: Likewise.
46667         * modules/sys_stat: Likewise.
46668         * modules/sys_time: Likewise.
46669         * modules/sysexits: Likewise.
46670         * modules/time: Likewise.
46671         * modules/unistd: Likewise.
46672         * modules/wchar: Likewise.
46673         * modules/wctype: Likewise.
46674         * modules/sys_stat: Change maintainer to "all".
46675         * modules/unistd: Likewise.
46676
46677 2007-06-20  Karl Berry  <karl@gnu.org>
46678
46679         * config/srclist.txt: track www changes in license files.
46680
46681 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
46682
46683         * build-aux/bootstrap: Remove stray dot.
46684         Make sure build_aux settings are honored when linking
46685         gnulib_extra_files.
46686
46687 2007-06-19  Eric Blake  <ebb9@byu.net>
46688
46689         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
46690         Allow compilation on cygwin.
46691
46692 2007-06-19  Jim Meyering  <jim@meyering.net>
46693
46694         xreadlink-with-size: Remove module.  No longer used.
46695         Ex-callers now use xreadlink or mreadlink-with-size.
46696         * modules/xreadlink-with-size: Remove module.
46697         * lib/xreadlink-with-size.c: Remove file.
46698         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
46699         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
46700         just before the function definition *is* accurate.
46701
46702         Eliminate one way canonicalize_filename_mode could exit.
46703         * lib/canonicalize.c (canonicalize_filename_mode):
46704         Use mreadlink_with_size, not xreadlink_with_size.
46705
46706 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
46707
46708         Detect porting problems to FreeBSD/arm, which has time_t wider than
46709         long int.  Original problem reported for GNU diff by Xin Li in
46710         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
46711         * modules/getdate (Depends-on): Add intprops, verify.
46712         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
46713         is an integer type no wider than long int.
46714
46715 2007-06-18  Jim Meyering  <jim@meyering.net>
46716
46717         New module: mreadlink-with-size.
46718         * MODULES.html.sh: Add mreadlink-with-size.
46719         * modules/mreadlink-with-size: New module
46720         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
46721         not xreadlink-with-size.
46722         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
46723
46724 2007-06-16  Bruno Haible  <bruno@clisp.org>
46725
46726         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
46727         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
46728         Reported by Gary V. Vaughan <gary@gnu.org>.
46729
46730 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
46731
46732         Revamp lchown so that it lives in unistd.h where it belongs.
46733         * lib/lchown.h: Remove.
46734         * lib/dirchownmod.c: Don't include lib/lchown.h.
46735         * lib/fchownat.c: Likewise.
46736         * lib/openat.c: Likewise.
46737         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
46738         does not follow symlinks.
46739         (EOPNOTSUPP): Define if not defined.
46740         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
46741         is defined to 0.
46742         (lchown): New decl.
46743         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
46744         Do not check for lchown decl.
46745         Set REPLACE_LCHOWN.
46746         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
46747         REPLACE_LCHOWN.
46748         * modules/chown: Make it clear it follows symlinks.
46749         * modules/lchown: Make it clear it doesn't follow symlinks.
46750         (Files): Remove lib/lchown.h
46751         (Depends-on): Add unistd.
46752         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
46753         (Include): Include <unistd.h>, not "lchown.h".
46754         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
46755         REPLACE_LCHOWN.
46756
46757 2007-06-15  Jim Meyering  <jim@meyering.net>
46758
46759         Change license (GPL to LGPL) of fsusage and dependents.
46760         * modules/fsusage (License): Change to LGPL.
46761         * modules/full-read (License): Likewise.
46762         * modules/full-write (License): Likewise.
46763         * modules/safe-read (License): Likewise.
46764         * modules/safe-write (License): Likewise.
46765
46766 2007-06-14  Ben Pfaff  <blp@gnu.org>
46767
46768         Missing part of allocsa -> malloca transition.
46769         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
46770         gl_MALLOCA.
46771
46772 2007-06-12  Bruno Haible  <bruno@clisp.org>
46773
46774         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
46775         to ia64, x86_64, i386.
46776         Reported by Eric Blake.
46777
46778 2007-06-12  Bruno Haible  <bruno@clisp.org>
46779
46780         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
46781         cross-compiling to x86_64.
46782
46783 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
46784
46785         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
46786         glitch reported by Ralf Wildenhues in
46787         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
46788
46789         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
46790         Vin Shelton.
46791
46792 2007-06-11  Bruno Haible  <bruno@clisp.org>
46793
46794         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
46795         replacement string.
46796         Reported by Eric Blake.
46797
46798 2007-06-10  Bruno Haible  <bruno@clisp.org>
46799
46800         Prepare vasnprintf code for use with Unicode strings.
46801         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
46802         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
46803         TYPE_U32_STRING.
46804         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
46805         a_u32_string variants.
46806         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
46807         * lib/printf-args.c: Don't include config.h and the specification
46808         header if PRINTF_FETCHARGS is already defined.
46809         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
46810         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
46811         TYPE_U16_STRING, TYPE_U32_STRING.
46812         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
46813         u16_directive, u16_directives, u32_directive, u32_directives): New
46814         types.
46815         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
46816         New declarations.
46817         * lib/printf-parse.c: Don't include config.h and the specification
46818         header if PRINTF_PARSE is already defined. Eliminate the set of
46819         parameters for WIDE_CHAR_VERSION; the user of this file must provide
46820         them now. Include c-ctype.h.
46821         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
46822         directive and CHAR_T_ONLY_ASCII.
46823         * lib/vasnprintf.c: Don't include config.h and the specification header
46824         if VASNPRINTF is already defined.
46825         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
46826         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
46827         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
46828         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
46829         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
46830         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
46831         code accordingly.
46832         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
46833         pad_ourselves also in this case, with the 'c' and 's' directives, and
46834         with a different notion of "width".
46835         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
46836
46837 2007-06-10  Bruno Haible  <bruno@clisp.org>
46838
46839         * modules/unistr/u32-mbsnlen: New file.
46840         * lib/unistr/u32-mbsnlen.c: New file.
46841
46842         * modules/unistr/u16-mbsnlen: New file.
46843         * lib/unistr/u16-mbsnlen.c: New file.
46844
46845         * modules/unistr/u8-mbsnlen: New file.
46846         * lib/unistr/u8-mbsnlen.c: New file.
46847
46848         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
46849         declarations.
46850
46851 2007-06-10  Bruno Haible  <bruno@clisp.org>
46852
46853         * lib/string_.h (mbsnlen): New declaration.
46854         * lib/mbsnlen.c: New file.
46855         * m4/mbsnlen.m4: New file.
46856         * modules/mbsnlen: New file.
46857         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
46858         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
46859         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
46860
46861 2007-06-10  Bruno Haible  <bruno@clisp.org>
46862
46863         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
46864
46865 2007-06-10  Bruno Haible  <bruno@clisp.org>
46866
46867         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
46868         * lib/mbuiter.h: Likewise.
46869
46870 2007-06-10  Bruno Haible  <bruno@clisp.org>
46871
46872         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
46873         declaration.
46874
46875 2007-06-10  Karl Berry  <karl@gnu.org>
46876
46877         * config/srclist.txt: remove gettext entries, Bruno prefers
46878         to update individually.
46879
46880 2007-06-10  Bruno Haible  <bruno@clisp.org>
46881
46882         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
46883         'maxlen'. Ensure only length + width bytes are allocated, not
46884         length + 1 + width.
46885
46886 2007-06-09  Bruno Haible  <bruno@clisp.org>
46887
46888         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
46889         (CHAR_T): Remove macro.
46890         (VASNPRINTF): Update.
46891
46892 2007-06-09  Bruno Haible  <bruno@clisp.org>
46893
46894         * MODULES.html.sh (Unicode string functions): Add the new modules.
46895
46896         * modules/uniconv/u32-conv-to-enc: New file.
46897         * lib/uniconv/u32-conv-to-enc.c: New file.
46898         * modules/uniconv/u32-conv-to-enc-tests: New file.
46899         * tests/uniconv/test-u32-conv-to-enc.c: New file.
46900
46901         * modules/uniconv/u16-conv-to-enc: New file.
46902         * lib/uniconv/u16-conv-to-enc.c: New file.
46903         * lib/uniconv/u-conv-to-enc.h: New file.
46904         * modules/uniconv/u16-conv-to-enc-tests: New file.
46905         * tests/uniconv/test-u16-conv-to-enc.c: New file.
46906
46907         * modules/uniconv/u8-conv-to-enc: New file.
46908         * lib/uniconv/u8-conv-to-enc.c: New file.
46909         * modules/uniconv/u8-conv-to-enc-tests: New file.
46910         * tests/uniconv/test-u8-conv-to-enc.c: New file.
46911
46912         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
46913         u32_conv_to_encoding): New declarations.
46914
46915 2007-06-09  Bruno Haible  <bruno@clisp.org>
46916
46917         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
46918
46919 2007-06-09  Bruno Haible  <bruno@clisp.org>
46920
46921         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
46922         * modules/malloca: Renamed from modules/allocsa, updated.
46923         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
46924         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
46925         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
46926         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
46927         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
46928         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
46929         * modules/xmalloca: Renamed from modules/xallocsa, updated.
46930         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
46931         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
46932         * modules/c-strcasestr (Depends-on): Update.
46933         * lib/c-strcasestr.c: Update.
46934         * modules/c-strstr (Depends-on): Update.
46935         * lib/c-strstr.c: Update.
46936         * modules/canonicalize-lgpl (Depends-on): Update.
46937         * lib/canonicalize-lgpl.c: Update.
46938         * modules/clean-temp (Depends-on): Update.
46939         * lib/clean-temp.c: Update.
46940         * modules/csharpcomp (Depends-on): Update.
46941         * lib/csharpcomp.c: Update.
46942         * modules/csharpexec (Depends-on): Update.
46943         * lib/csharpexec.c: Update.
46944         * modules/javacomp (Depends-on): Update.
46945         * lib/javacomp.c: Update.
46946         * modules/javaexec (Depends-on): Update.
46947         * lib/javaexec.c: Update.
46948         * modules/mbscasestr (Depends-on): Update.
46949         * lib/mbscasestr.c: Update.
46950         * modules/mbsstr (Depends-on): Update.
46951         * lib/mbsstr.c: Update.
46952         * modules/setenv (Depends-on): Update.
46953         * lib/setenv.c: Update.
46954         * modules/strcasestr (Depends-on): Update.
46955         * lib/strcasestr.c: Update.
46956         * modules/striconveha (Depends-on): Update.
46957         * lib/striconveha.c: Update.
46958         * modules/relocatable-prog-wrapper (Files): Update.
46959         * lib/relocwrapper.c: Update.
46960         * build-aux/install-reloc: Update.
46961         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
46962
46963 2007-06-08  Bruno Haible  <bruno@clisp.org>
46964
46965         Port to uClibc.
46966         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
46967         * lib/fpurge.c (fpurge): Likewise.
46968         * lib/freading.c (freading): Likewise.
46969         * lib/fseeko.c (rpl_fseeko): Likewise.
46970         * lib/fseterr.c (fseterr): Likewise.
46971         * lib/fwriting.c (fwriting): Likewise.
46972         * tests/test-fflush.c (main): Avoid a failure on uClibc.
46973
46974 2007-06-08  Bruno Haible  <bruno@clisp.org>
46975
46976         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
46977         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
46978         * modules/gettext (Files): Add m4/intlmacosx.m4.
46979
46980 2007-06-07  Bruno Haible  <bruno@clisp.org>
46981
46982         * modules/localename-tests: New file.
46983         * tests/test-localename.c: New file.
46984
46985         New module 'localename'.
46986         * lib/localename.h: New file.
46987         * lib/localename.c: New file, from GNU gettext.
46988         * m4/localename.m4: New file.
46989         * modules/localename: New file.
46990
46991 2007-06-07  Bruno Haible  <bruno@clisp.org>
46992
46993         Work around the lack of <wchar.h> on some builds of uClibc.
46994         * doc/headers/wchar.texi: Update.
46995         * lib/wchar_.h: Include <wchar.h> only if it exists.
46996         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
46997         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
46998         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
46999         doesn't exist.
47000         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
47001         * modules/mbfile (Depends-on): Add wchar.
47002         * modules/mbiter (Depends-on): Likewise.
47003         * modules/mbuiter (Depends-on): Likewise.
47004         Reported by Simon Josefsson.
47005
47006 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
47007
47008         Work around problem reported by Steven M. Schweda in
47009         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
47010         Tru64 5.1B with the Compaq compiler environment installed declares
47011         an 'isblank' function but does not define it in the C library.
47012         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
47013         * lib/regex_internal.h (isblank): Likewise.
47014         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
47015         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47016
47017 2007-06-05  Bruno Haible  <bruno@clisp.org>
47018
47019         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
47020         ia64.
47021         * modules/printf-safe: New file.
47022         * modules/fprintf-posix (Depends-on): Add printf-safe.
47023         * modules/printf-posix (Depends-on): Likewise.
47024         * modules/snprintf-posix (Depends-on): Likewise.
47025         * modules/sprintf-posix (Depends-on): Likewise.
47026         * modules/vasnprintf-posix (Depends-on): Likewise.
47027         * modules/vasprintf-posix (Depends-on): Likewise.
47028         * modules/vfprintf-posix (Depends-on): Likewise.
47029         * modules/vprintf-posix (Depends-on): Likewise.
47030         * modules/vsnprintf-posix (Depends-on): Likewise.
47031         * modules/vsprintf-posix (Depends-on): Likewise.
47032         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
47033         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
47034         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
47035         "no" on i386, x86_64, ia64.
47036         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
47037         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47038         on i386, x86_64, ia64.
47039         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
47040         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47041         on i386, x86_64, ia64.
47042         * tests/test-vasnprintf-posix.c: Include float.h.
47043         (LDBL80_WORDS): New macro.
47044         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47045         on i386, x86_64, ia64.
47046         * tests/test-vasprintf-posix.c: Include float.h.
47047         (LDBL80_WORDS): New macro.
47048         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47049         on i386, x86_64, ia64.
47050         * tests/test-snprintf-posix.c: Include float.h.
47051         * tests/test-sprintf-posix.c: Likewise.
47052         * tests/test-vsnprintf-posix.c: Likewise.
47053         * tests/test-vsprintf-posix.c: Likewise.
47054
47055 2007-06-05  Bruno Haible  <bruno@clisp.org>
47056
47057         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
47058         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
47059         non-IEEE numbers on i386, x86_64, ia64.
47060         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
47061         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
47062         * tests/test-isnanl.h: Include float.h.
47063         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
47064
47065 2007-06-05  Bruno Haible  <bruno@clisp.org>
47066
47067         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
47068         also the %a / %A. Handle the %a / %A code before this extra handling.
47069
47070 2007-06-05  Bruno Haible  <bruno@clisp.org>
47071
47072         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
47073         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
47074
47075 2007-06-05  Bruno Haible  <bruno@clisp.org>
47076
47077         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
47078         typo in variable name.
47079
47080 2007-06-05  Eric Blake  <ebb9@byu.net>
47081
47082         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
47083         Reported by Simon Josefsson.
47084
47085 2007-06-04  Bruno Haible  <bruno@clisp.org>
47086
47087         Avoid test failures on some PowerPC platforms.
47088         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
47089         Define differently for PowerPC.
47090         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
47091         Reported by Gary V. Vaughan <gary@gnu.org>.
47092
47093 2007-06-02  Bruno Haible  <bruno@clisp.org>
47094
47095         Fix test-stdint failure on FreeBSD/ia64.
47096         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
47097         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
47098         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
47099         * doc/headers/stdint.texi: Update.
47100
47101 2007-06-01  Bruno Haible  <bruno@clisp.org>
47102
47103         * tests/test-binary-io.c (main): Pass a third argument to open().
47104         Reported by Gary V. Vaughan <gary@gnu.org>.
47105
47106 2007-06-01  Bruno Haible  <bruno@clisp.org>
47107
47108         * doc/functions/frexpl.texi: Update for mingw.
47109
47110 2007-06-01  Bruno Haible  <bruno@clisp.org>
47111
47112         * tests/test-lseek.c (main): Disable test of errno for invalid third
47113         argument.
47114         * doc/functions/lseek.texi: Update.
47115         Reported by Gary V. Vaughan <gary@gnu.org>.
47116
47117 2007-05-28  Bruno Haible  <bruno@clisp.org>
47118
47119         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
47120
47121 2007-05-31  Eric Blake  <ebb9@byu.net>
47122
47123         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
47124         cross compiling.
47125
47126 2007-05-30  Eric Blake  <ebb9@byu.net>
47127         and Bruno Haible  <bruno@clisp.org>
47128
47129         Work around mingw test failures exposed by m4-1.4.9b.
47130         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
47131         * tests/test-unistd.c: Disable uid_t and git_t tests for the
47132         moment.
47133
47134 2007-05-30  Bruno Haible  <bruno@clisp.org>
47135
47136         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
47137         assuming that they are closed. Needed on HP-UX 11.
47138
47139 2007-05-29  Bruno Haible  <bruno@clisp.org>
47140
47141         Fix a problem with #include_next.
47142         * lib/dirent_.h: Split the double-inclusion guard.
47143         * lib/fcntl_.h: Likewise.
47144         * lib/float_.h: Likewise.
47145         * lib/iconv_.h: Likewise.
47146         * lib/inttypes_.h: Likewise.
47147         * lib/locale_.h: Likewise.
47148         * lib/math_.h: Likewise.
47149         * lib/netinet_in_.h: Likewise.
47150         * lib/search_.h: Likewise.
47151         * lib/signal_.h: Likewise.
47152         * lib/stdint_.h: Likewise.
47153         * lib/stdio_.h: Likewise.
47154         * lib/stdlib_.h: Likewise.
47155         * lib/string_.h: Likewise.
47156         * lib/sys_select_.h: Likewise.
47157         * lib/sys_socket_.h: Likewise.
47158         * lib/sys_stat_.h: Likewise.
47159         * lib/sys_time_.h: Likewise.
47160         * lib/sysexits_.h: Likewise.
47161         * lib/time_.h: Likewise.
47162         * lib/unistd_.h: Likewise.
47163         * lib/wchar_.h: Likewise.
47164         * lib/wctype_.h: Likewise.
47165
47166 2007-05-29  Bruno Haible  <bruno@clisp.org>
47167
47168         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
47169         for the moment.
47170
47171 2007-05-29  Bruno Haible  <bruno@clisp.org>
47172
47173         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
47174         invocation.
47175         Reported by Eric Blake.
47176
47177 2007-05-29  Bruno Haible  <bruno@clisp.org>
47178
47179         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
47180         compiling case.
47181
47182 2007-05-29  Eric Blake  <ebb9@byu.net>
47183             Bruno Haible  <bruno@clisp.org>
47184
47185         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
47186         cross compiles.
47187
47188 2007-05-28  Eric Blake  <ebb9@byu.net>
47189
47190         * modules/closein-tests (test_closein_LDADD): Support test on
47191         cygwin with libtool.
47192
47193 2007-05-28  Bruno Haible  <bruno@clisp.org>
47194
47195         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
47196         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
47197         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
47198         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
47199         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
47200         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
47201         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
47202         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
47203         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
47204
47205 2007-05-28  Eric Blake  <ebb9@byu.net>
47206
47207         Unconditionally include <config.h> in unit tests.
47208         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
47209         * tests/test-allocsa.c, tests/test-arcfour.c,
47210         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
47211         tests/test-array_list.c, tests/test-array_oset.c,
47212         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
47213         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
47214         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
47215         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
47216         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
47217         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
47218         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
47219         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
47220         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
47221         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
47222         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
47223         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
47224         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
47225         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
47226         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
47227         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
47228         test-md5.c, test-memmem.c, test-printf-posix.c,
47229         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
47230         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
47231         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
47232         test-strcasestr.c, test-striconv.c, test-striconveh.c,
47233         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
47234         test-vasnprintf-posix2.c, test-vasnprintf.c,
47235         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
47236         test-vfprintf-posix.c, test-vprintf-posix.c,
47237         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
47238         test-xvasprintf.c: Likewise.
47239
47240 2007-05-28  Bruno Haible  <bruno@clisp.org>
47241
47242         * gnulib-tool (func_import): Remember the --with-tests command-line
47243         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
47244         Reported by Eric Blake.
47245
47246 2007-05-28  Bruno Haible  <bruno@clisp.org>
47247
47248         * modules/ftell-tests: New file.
47249         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
47250         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
47251
47252         * lib/ftell.c: New file.
47253         * modules/ftell: New file.
47254         * m4/ftell.m4: New file.
47255         * doc/functions/ftell.texi: Update.
47256         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
47257         REPLACE_FTELL.
47258         * lib/stdio_.h (rpl_ftell): New declaration.
47259         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
47260         REPLACE_FTELL.
47261
47262 2007-05-28  Eric Blake  <ebb9@byu.net>
47263
47264         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
47265
47266 2007-05-28  Bruno Haible  <bruno@clisp.org>
47267
47268         * modules/fseek-tests: New file.
47269         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
47270         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
47271
47272         * lib/fseek.c: New file.
47273         * modules/fseek: New file.
47274         * m4/fseek.m4: New file.
47275         * doc/functions/fseek.texi: Update.
47276         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
47277         REPLACE_FSEEK.
47278         * lib/stdio_.h (rpl_fseek): New declaration.
47279         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
47280         REPLACE_FSEEK.
47281
47282 2007-05-28  Bruno Haible  <bruno@clisp.org>
47283
47284         * lib/stdio_.h (fflush): More comments.
47285
47286 2007-05-28  Bruno Haible  <bruno@clisp.org>
47287
47288         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
47289         runtime test.
47290
47291 2007-05-28  Eric Blake  <ebb9@byu.net>
47292
47293         Improve lseek module.
47294         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
47295         * lib/unistd_.h (lseek): Scale back link warning message.
47296         * tests/test-lseek.c: Beef up test.
47297         * tests/test-lseek.sh: Exercise more facets of lseek.
47298         Reported by Bruno Haible.
47299
47300 2007-05-28  Bruno Haible  <bruno@clisp.org>
47301
47302         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
47303         to define.
47304
47305 2007-05-27  Bruno Haible  <bruno@clisp.org>
47306
47307         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
47308
47309 2007-05-27  Bruno Haible  <bruno@clisp.org>
47310
47311         * modules/openmp: New file.
47312         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
47313         Noah Misch.
47314
47315 2007-05-26  Bruno Haible  <bruno@clisp.org>
47316
47317         * modules/chdir-long (Depends-on): Add fchdir.
47318         * modules/chdir-safer (Depends-on): Likewise.
47319         * modules/fts (Depends-on): Likewise.
47320         * modules/fts-lgpl (Depends-on): Likewise.
47321         * modules/openat (Depends-on): Likewise.
47322         * modules/savewd (Depends-on): Likewise.
47323
47324 2007-05-24  Eric Blake  <ebb9@byu.net>
47325
47326         Fix lseek on mingw.
47327         * modules/lseek: New module.
47328         * m4/lseek.m4: New file.
47329         * lib/lseek.c: New file.
47330         * modules/lseek-tests: New file.
47331         * tests/test-lseek.c: New file.
47332         * tests/test-lseek.sh: New file.
47333         * MODULES.html.sh: Document lseek module.
47334         * modules/fflush (Depends-on): Add lseek, fseeko.
47335         * modules/fseeko (Depends-on): Likewise.
47336         * modules/ftello (Depends-on): Likewise.
47337         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
47338         broken.
47339         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
47340         broken.
47341         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
47342         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
47343         * lib/ftello.c (rpl_ftello): Likewise.
47344         * tests/test-fseeko.c (main): Test this.
47345         * tests/test-fseeko.sh: Likewise.
47346         * tests/test-ftello.c (main): Likewise.
47347         * tests/test-ftello.sh: Likewise.
47348         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
47349         implies replacing fseek.
47350         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
47351         HAVE_FTELLO.
47352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
47353         * modules/unistd (Makefile.am): Likewise.
47354         * lib/unistd_.h (lseek): Declare a replacement.
47355         * doc/functions/lseek.texi (lseek): Document this fix.
47356         * doc/functions/fseek.texi (fseek): Likewise.
47357         * doc/functions/ftell.texi (ftell): Likewise.
47358
47359 2007-05-24  Bruno Haible  <bruno@clisp.org>
47360
47361         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
47362         in the printed representation of a NaN.
47363         * tests/test-vasprintf-posix.c (test_function): Likewise.
47364         * tests/test-snprintf-posix.h (test_function): Likewise.
47365         * tests/test-sprintf-posix.h (test_function): Likewise.
47366         Reported by Eric Blake.
47367
47368 2007-05-23  Eric Blake  <ebb9@byu.net>
47369
47370         Fix fseeko/ftello on cygwin 1.5.24.
47371         * doc/functions/fseeko.texi (fseeko): Document the fix.
47372         * doc/functions/ftello.texi (ftello): Document the fix.
47373         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
47374         * doc/functions/stdout.text (stdout): New file.
47375         * doc/functions/stderr.text (stderr): New file.
47376         * doc/gnulib.texi (Function Substitutes): Use new files.
47377         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
47378         prior to 1.7.0.
47379         * tests/test-ftello.c (main): Likewise for ftello.
47380         * tests/test-fseeko.sh: New file.
47381         * tests/test-ftello.sh: New file.
47382         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
47383         with seekable stdin.
47384         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
47385         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
47386         (gl_REPLACE_FSEEKO): New macro.
47387         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
47388         * modules/fseeko (Files): Distribute fseeko.c.
47389         * modules/ftello (Files): Distribute ftello.c.
47390         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
47391         mode.
47392         * lib/ftello.c (rpl_ftello): New file.
47393         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
47394         fseeko, ftello.
47395         (gl_STDIN_LARGE_OFFSET): New macro.
47396         * modules/stdio (Makefile.am): Perform the replacement.
47397         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
47398
47399 2007-05-23  Bruno Haible  <bruno@clisp.org>
47400
47401         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
47402         GNULIB_POSIXCHECK is defined.
47403
47404 2007-05-21  Bruno Haible  <bruno@clisp.org>
47405
47406         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
47407         Check also the output for NaN arguments. When cross-compiling, guess
47408         no on IRIX.
47409         * lib/vasnprintf.c: Update comments.
47410         * tests/test-vasnprintf-posix.c (strisnan): New function.
47411         (test_function): Use it.
47412         * tests/test-vasprintf-posix.c (strisnan): New function.
47413         (test_function): Use it.
47414         * tests/test-snprintf-posix.h (strisnan): New function.
47415         (test_function): Use it.
47416         * tests/test-sprintf-posix.h (strisnan): New function.
47417         (test_function): Use it.
47418         Reported by Eric Blake.
47419
47420 2007-05-20  Bruno Haible  <bruno@clisp.org>
47421
47422         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
47423         numbers that fails on BeOS.
47424         * doc/functions/frexpl.texi: Update.
47425
47426 2007-05-20  Jim Meyering  <jim@meyering.net>
47427
47428         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
47429         forced upon us by glibc-2.6.
47430
47431 2007-05-20  Bruno Haible  <bruno@clisp.org>
47432
47433         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
47434         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
47435         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
47436         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
47437         NEED_PRINTF_INFINITE.
47438         (is_infinitel): New function.
47439         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
47440         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
47441         gl_PREREQ_VASNPRINTF_INFINITE.
47442         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
47443         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47444         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
47445         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
47446         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
47447         gl_PREREQ_VASNPRINTF_INFINITE.
47448         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47449         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47450         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47451         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47452         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47453         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47454         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47455         * doc/functions/fprintf.texi: Update.
47456         * doc/functions/printf.texi: Update.
47457         * doc/functions/snprintf.texi: Update.
47458         * doc/functions/sprintf.texi: Update.
47459         * doc/functions/vfprintf.texi: Update.
47460         * doc/functions/vprintf.texi: Update.
47461         * doc/functions/vsnprintf.texi: Update.
47462         * doc/functions/vsprintf.texi: Update.
47463
47464 2007-05-20  Bruno Haible  <bruno@clisp.org>
47465
47466         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
47467         was not found in libc.
47468         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
47469
47470 2007-05-20  Bruno Haible  <bruno@clisp.org>
47471
47472         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
47473         printed as "-nan" instead of "nan".
47474         * tests/test-vasprintf-posix.c (test_function): Likewise.
47475         * tests/test-snprintf-posix.h (test_function): Likewise.
47476         * tests/test-sprintf-posix.h (test_function): Likewise.
47477         Needed for HP-UX 11.
47478
47479 2007-05-20  Jim Meyering  <jim@meyering.net>
47480
47481         Fix buggy test for the fchownat-deref bug.
47482         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
47483         symlink required for the run-test.  Without it, this test would
47484         always declare that fchownat doesn't work, and client code would
47485         unnecessarily use the replacement function with fixed libc.
47486         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
47487         Reported by Greg Schafer.
47488
47489 2007-05-19  Bruno Haible  <bruno@clisp.org>
47490
47491         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
47492         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
47493         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
47494         Needed for IRIX 6.5 and Solaris 2.5.1.
47495
47496 2007-05-19  Bruno Haible  <bruno@clisp.org>
47497
47498         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
47499         (test_function): Skip tests involving -0.0 on platforms where
47500         -0.0 = 0.0.
47501         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
47502         (test_function): Skip tests involving -0.0 on platforms where
47503         -0.0 = 0.0.
47504         * tests/test-snprintf-posix.h (have_minus_zero): New function.
47505         (test_function): Skip tests involving -0.0 on platforms where
47506         -0.0 = 0.0.
47507         * tests/test-sprintf-posix.h (have_minus_zero): New function.
47508         (test_function): Skip tests involving -0.0 on platforms where
47509         -0.0 = 0.0.
47510         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
47511         tests.
47512         * tests/test-printf-posix.h (test_function): Likewise.
47513         * tests/test-printf-posix.output: Remove all -0.0 related results.
47514         Needed for IRIX 6.5.
47515
47516 2007-05-19  Bruno Haible  <bruno@clisp.org>
47517
47518         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
47519         printed as "nan0x7fffffff" instead of "nan".
47520         * tests/test-vasprintf-posix.c (test_function): Likewise.
47521         * tests/test-snprintf-posix.h (test_function): Likewise.
47522         * tests/test-sprintf-posix.h (test_function): Likewise.
47523         * tests/test-fprintf-posix.h (NaN): Remove macro.
47524         (test_function): Remove all NaN related tests.
47525         * tests/test-printf-posix.h (NaN): Remove macro.
47526         (test_function): Remove all NaN related tests.
47527         * tests/test-printf-posix.output: Remove all NaN related results.
47528         Needed for IRIX 6.5.
47529
47530 2007-05-19  Bruno Haible  <bruno@clisp.org>
47531
47532         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
47533         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
47534
47535 2007-05-19  Bruno Haible  <bruno@clisp.org>
47536
47537         * lib/float_.h: New file.
47538         * m4/float_h.m4: New file.
47539         * modules/float: New file.
47540         * modules/isnanl (Dependencies): Add float.
47541         * modules/isnanl-nolibm (Dependencies): Likewise.
47542         * modules/mathl (Dependencies): Likewise.
47543         * modules/printf-frexpl (Dependencies): Likewise.
47544         * modules/signbit (Dependencies): Likewise.
47545         * modules/vasnprintf (Dependencies): Likewise.
47546         * doc/headers/float.texi: Update.
47547
47548 2007-05-19  Jim Meyering  <jim@meyering.net>
47549
47550         * lib/utimens.c (gl_futimens): Rename from futimens,
47551         now that glibc-2.6 declares futimens.
47552         * lib/utimens.h: Likewise.
47553
47554 2007-05-19  Bruno Haible  <bruno@clisp.org>
47555
47556         Avoid test failures on mingw.
47557         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
47558         * tests/test-printf-posix.sh: Likewise.
47559         * tests/test-vfprintf-posix.sh: Likewise.
47560         * tests/test-vprintf-posix.sh: Likewise.
47561
47562 2007-05-19  Bruno Haible  <bruno@clisp.org>
47563
47564         Fix *printf result for NaN, Inf, -0.0 on mingw.
47565         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
47566         * lib/vasnprintf.c: Include math.h and isnan.h.
47567         (is_infinite_or_zero): New function.
47568         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
47569         values in the %f, %F, %e, %E, %g, %G directives.
47570         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
47571         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47572         gl_PRINTF_INFINITE and test its result. Invoke
47573         gl_PREREQ_VASNPRINTF_INFINITE.
47574         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47575         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47576         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47577         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47578         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47579         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47580         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47581         * doc/functions/fprintf.texi: Update.
47582         * doc/functions/printf.texi: Update.
47583         * doc/functions/snprintf.texi: Update.
47584         * doc/functions/sprintf.texi: Update.
47585         * doc/functions/vfprintf.texi: Update.
47586         * doc/functions/vprintf.texi: Update.
47587         * doc/functions/vsnprintf.texi: Update.
47588         * doc/functions/vsprintf.texi: Update.
47589
47590 2007-05-19  Bruno Haible  <bruno@clisp.org>
47591
47592         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
47593         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
47594         Instead of multiplying with 10^k, set extra_zeroes to k.
47595         (scale10_round_long_double): Remove function.
47596
47597 2007-05-18  Bruno Haible  <bruno@clisp.org>
47598
47599         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
47600         introduced on 2007-05-06.
47601
47602 2007-05-18  Bruno Haible  <bruno@clisp.org>
47603
47604         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
47605         %g directives.
47606         * tests/test-vasprintf-posix.c (test_function): Likewise.
47607         * tests/test-snprintf-posix.h (test_function): Likewise.
47608         * tests/test-sprintf-posix.h (test_function): Likewise.
47609
47610 2007-05-18  Bruno Haible  <bruno@clisp.org>
47611
47612         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
47613         (strmatch): New function.
47614         (test_function): Test the %f directive on numbers of various exponents.
47615         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
47616         (strmatch): New function.
47617         (test_function): Test the %f directive on numbers of various exponents.
47618         * tests/test-snprintf-posix.h (strmatch): New function.
47619         (test_function): Test the %f directive on numbers of various exponents.
47620         * tests/test-sprintf-posix.h (strmatch): New function.
47621         (test_function): Test the %f directive on numbers of various exponents.
47622         * tests/test-snprintf-posix.c (SIZEOF): New macro.
47623         * tests/test-sprintf-posix.c (SIZEOF): New macro.
47624         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
47625         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
47626
47627 2007-05-18  Bruno Haible  <bruno@clisp.org>
47628
47629         Add support for 'long double' number output.
47630         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
47631         * lib/vasnprintf.c: Include math.h and float+.h.
47632         (mp_limb_t): New type.
47633         (GMP_LIMB_BITS): New macro.
47634         (mp_twolimb_t): New type.
47635         (GMP_TWOLIMB_BITS): New macro.
47636         (mpn_t): New type.
47637         (multiply, divide, convert_to_decimal, decode_long_double,
47638         scale10_round_long_double, scale10_round_decimal_long_double,
47639         floorlog10l): New functions.
47640         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
47641         for the %f, %F, %e, %E, %g, %G directives.
47642         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
47643         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47644         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
47645         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
47646         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47647         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47648         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47649         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47650         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47651         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47652         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47653         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
47654         * modules/snprintf-posix (Depends-on): Likewise.
47655         * modules/sprintf-posix (Depends-on): Likewise.
47656         * modules/vasnprintf-posix (Depends-on): Likewise.
47657         * modules/vasprintf-posix (Depends-on): Likewise.
47658         * modules/vfprintf-posix (Depends-on): Likewise.
47659         * modules/vsnprintf-posix (Depends-on): Likewise.
47660         * modules/vsprintf-posix (Depends-on): Likewise.
47661         * modules/vasnprintf (Files): Add lib/float+.h.
47662         * doc/functions/fprintf.texi: Update.
47663         * doc/functions/printf.texi: Update.
47664         * doc/functions/snprintf.texi: Update.
47665         * doc/functions/sprintf.texi: Update.
47666         * doc/functions/vfprintf.texi: Update.
47667         * doc/functions/vprintf.texi: Update.
47668         * doc/functions/vsnprintf.texi: Update.
47669         * doc/functions/vsprintf.texi: Update.
47670
47671 2007-05-18  Bruno Haible  <bruno@clisp.org>
47672
47673         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
47674
47675 2007-05-18  Bruno Haible  <bruno@clisp.org>
47676
47677         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
47678         for printing 64-bit integers. Needed for mingw.
47679
47680 2007-05-18  Bruno Haible  <bruno@clisp.org>
47681
47682         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
47683         gl_FUNC_FREXPL_WORKS.
47684         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
47685
47686 2007-05-18  Bruno Haible  <bruno@clisp.org>
47687
47688         * modules/frexpl-nolibm-tests: New file.
47689
47690         * modules/frexpl-nolibm: New file.
47691         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
47692
47693 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
47694
47695         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
47696         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
47697         GCC 4.2, which otherwise issues a lot of warnings.
47698         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
47699         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
47700         Likewise.
47701         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
47702         * modules/iconv_open (iconv.h): Likewise.
47703         * modules/locale (locale.h): Likewise.
47704         * modules/netinet_in (netinet/in.h): Likewise.
47705         * modules/sys_select (sys_select.h): Likewise.
47706         * modules/sys_socket (sys/socket.h): Likewise.
47707         * modules/sys_stat (sys/stat.h): Likewise.
47708         * modules/sysexits (sysexits.h): Likewise.
47709         * modules/unistd (unistd.h): Likewise.
47710
47711 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47712
47713         * modules/closein-tests (Makefile.am): Distribute
47714         `test-closein.sh'.
47715
47716 2007-05-17  Bruno Haible  <bruno@clisp.org>
47717
47718         * tests/test-printf-posix.output: Renamed from
47719         tests/test-fprintf-posix.out.
47720         * modules/fprintf-posix-tests: Update.
47721         * modules/printf-posix-tests: Update.
47722         * modules/vfprintf-posix-tests: Update.
47723         * modules/vprintf-posix-tests: Update.
47724         * tests/test-fprintf-posix.sh: Update.
47725         * tests/test-printf-posix.sh: Update.
47726         * tests/test-vfprintf-posix.sh: Update.
47727         * tests/test-vprintf-posix.sh: Update.
47728         Reported by Ralf Wildenhues.
47729
47730 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
47731
47732         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
47733         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
47734         GCC 4.2, which otherwise issues a lot of warnings.
47735         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
47736         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
47737         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
47738         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
47739         it should no longer be needed.
47740         * lib/string_.h: Likewise.
47741         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
47742         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
47743         * modules/inttypes (inttypes.h): Likewise.
47744         * modules/math (math.h): Likewise.
47745         * modules/search (search.h): Likewise.
47746         * modules/signal (signal.h): Likewise.
47747         * modules/stdint (stdint.h): Likewise.
47748         * modules/stdio (stdio.h): Likewise.
47749         * modules/stdlib (stdlib.h): Likewise.
47750         * modules/string (string.h): Likewise.
47751         * modules/sys_time (sys/time.h): Likewise.
47752         * modules/time (time.h): Likewise.
47753         * modules/wchar (wchar.h): Likewise.
47754         * modules/wctype (wtype.h): Likewise.
47755
47756 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47757
47758         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
47759
47760 2007-05-13  Bruno Haible  <bruno@clisp.org>
47761
47762         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
47763         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47764         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
47765         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
47766         (gl_PREREQ_STRTOK_R): Don't require it here.
47767
47768 2007-05-13  Bruno Haible  <bruno@clisp.org>
47769
47770         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
47771         when used in C++ mode.
47772
47773 2007-05-12  Bruno Haible  <bruno@clisp.org>
47774
47775         * lib/linebuffer.h: Tweak doc.
47776         * lib/linebuffer.c: Likewise.
47777
47778 2007-05-12  James Youngman  <jay@gnu.org>
47779
47780         * lib/linebuffer.c (readlinebuffer_delim): New function,
47781         like readlinebuffer, but use a caller-specified delimiter.
47782         (readlinebuffer): Just call readlinebuffer_delim with '\n'
47783         as the delimiter.
47784         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
47785
47786 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47787
47788         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
47789         * modules/openat (Files): Remove openat-die.c.
47790         (Depends-on): Add openat-die.
47791         * modules/openat-die: New module.
47792
47793 2007-05-06  Bruno Haible  <bruno@clisp.org>
47794
47795         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
47796         Update with info about Cygwin.
47797         * doc/functions/fprintf.texi: Update.
47798         * doc/functions/printf.texi: Update.
47799         * doc/functions/snprintf.texi: Update.
47800         * doc/functions/sprintf.texi: Update.
47801         * doc/functions/vfprintf.texi: Update.
47802         * doc/functions/vprintf.texi: Update.
47803         * doc/functions/vsnprintf.texi: Update.
47804         * doc/functions/vsprintf.texi: Update.
47805         Reported by Eric Blake.
47806
47807 2007-05-06  Bruno Haible  <bruno@clisp.org>
47808
47809         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
47810         padding ourselves for the floating-point directives.
47811         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
47812         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
47813         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47814         gl_PRINTF_FLAG_ZERO and test its result. Invoke
47815         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
47816         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47817         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
47818         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47819         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47820         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47821         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47822         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47823         * tests/test-snprintf-posix.h (test_function): Also check the width
47824         and some flags in the %f directive.
47825         * tests/test-sprintf-posix.h (test_function): Likewise.
47826         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47827         * tests/test-vasprintf-posix.c (test_function): Likewise.
47828         * doc/functions/fprintf.texi: Update.
47829         * doc/functions/printf.texi: Update.
47830         * doc/functions/snprintf.texi: Update.
47831         * doc/functions/sprintf.texi: Update.
47832         * doc/functions/vfprintf.texi: Update.
47833         * doc/functions/vprintf.texi: Update.
47834         * doc/functions/vsnprintf.texi: Update.
47835         * doc/functions/vsprintf.texi: Update.
47836
47837 2007-05-06  Bruno Haible  <bruno@clisp.org>
47838
47839         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
47840         pass the ' flag character to sprintf or snprintf.
47841         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
47842         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
47843         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47844         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
47845         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
47846         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47847         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
47848         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47849         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47850         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47851         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47852         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47853         * tests/test-snprintf-posix.h (test_function): Also check the grouping
47854         flag.
47855         * tests/test-sprintf-posix.h (test_function): Likewise.
47856         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47857         * tests/test-vasprintf-posix.c (test_function): Likewise.
47858         * doc/functions/fprintf.texi: Update.
47859         * doc/functions/printf.texi: Update.
47860         * doc/functions/snprintf.texi: Update.
47861         * doc/functions/sprintf.texi: Update.
47862         * doc/functions/vfprintf.texi: Update.
47863         * doc/functions/vprintf.texi: Update.
47864         * doc/functions/vsnprintf.texi: Update.
47865         * doc/functions/vsprintf.texi: Update.
47866
47867 2007-05-01  Bruno Haible  <bruno@clisp.org>
47868
47869         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
47870
47871 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
47872
47873         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
47874         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
47875
47876 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47877
47878         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
47879         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
47880         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
47881
47882 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
47883
47884         * lib/argp-help.c (struct hol_entry): New member `ord'.
47885         (HOL_ENTRY_PTRCMP): Use ord for comparison
47886         (hol_sort): Initialize ord.
47887
47888 2007-05-01  Bruno Haible  <bruno@clisp.org>
47889
47890         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
47891         Reported by Eric Blake.
47892         * doc/gnulib.texi (Function Substitutes): Update.
47893
47894 2007-05-01  Bruno Haible  <bruno@clisp.org>
47895
47896         * doc/functions.texi: Remove file, now redundant through
47897         doc/functions/*.texi.
47898
47899 2007-05-01  Bruno Haible  <bruno@clisp.org>
47900
47901         * modules/argp (Depends-on): Add sleep.
47902
47903 2007-05-01  Bruno Haible  <bruno@clisp.org>
47904
47905         * modules/sleep-tests: New file.
47906         * tests/test-sleep.c: New file.
47907
47908         * modules/sleep: New file.
47909         * lib/sleep.c: New file.
47910         * m4/sleep.m4: New file.
47911         * lib/unistd_.h (sleep): New declaration.
47912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
47913         HAVE_SLEEP.
47914         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
47915         * doc/functions/sleep.texi: Document the sleep module.
47916
47917 2007-05-01  Bruno Haible  <bruno@clisp.org>
47918
47919         * lib/sigprocmask.h: Remove file.
47920         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
47921         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
47922         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
47923         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
47924         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
47925         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
47926         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
47927         HAVE_SIGSET_T as a shell variable.
47928         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
47929         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
47930         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
47931         (Depends-on): Add signal. Remove verify.
47932         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
47933         (Include): Mention <signal.h> instead of sigprocmask.h.
47934         * NEWS: Mention the change.
47935         * lib/fatal-signal.c: Don't include sigprocmask.h.
47936
47937 2007-05-01  Bruno Haible  <bruno@clisp.org>
47938
47939         * modules/signal: New file.
47940         * lib/signal_.h: New file.
47941         * m4/signal_h.m4: New file.
47942
47943 2007-05-01  Bruno Haible  <bruno@clisp.org>
47944
47945         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
47946         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
47947         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
47948         HAVE_WCTYPE_CTMP_BUG into wctype.h.
47949
47950 2007-05-01  Bruno Haible  <bruno@clisp.org>
47951
47952         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
47953         configure time.
47954         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
47955         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
47956         * modules/sys_stat (Makefile.am): Substitute their values into
47957         sys/stat.h.
47958
47959 2007-05-01  Bruno Haible  <bruno@clisp.org>
47960
47961         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
47962         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
47963         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
47964
47965 2007-05-01  Bruno Haible  <bruno@clisp.org>
47966
47967         * doc/header/assert.texi: Undo last change: don't mention the gnulib
47968         'assert' module here.
47969
47970 2007-05-01  Bruno Haible  <bruno@clisp.org>
47971
47972         * doc/functions/*.texi: New files.
47973         * doc/functions/google-ranking.txt: New file.
47974         * doc/gnulib.texi (Function Substitutes): New chapter.
47975         (ctime, inet_ntoa): Remove sections.
47976         * doc/ctime.texi: Remove file.
47977         * doc/inet_ntoa.texi: Remove file.
47978         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
47979         dependencies.
47980         (%.info): New rule, specifying a --reference-limit.
47981
47982 2007-05-01  Bruno Haible  <bruno@clisp.org>
47983
47984         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
47985
47986 2007-05-01  Bruno Haible  <bruno@clisp.org>
47987
47988         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
47989         the portability of 'mkdir' to mingw systems.
47990
47991 2007-05-01  Bruno Haible  <bruno@clisp.org>
47992
47993         * doc/headers/google-ranking.txt: New file.
47994
47995 2007-04-30  Eric Blake  <ebb9@byu.net>
47996
47997         Prefer fseeko to fseek.
47998         * modules/getpass (Depends-on): Add fseeko.
47999         * lib/getpass.c (getpass): Use fseeko, not fseek.
48000
48001 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
48002
48003         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
48004         assumes the sorting is stable, while most qsort implementations
48005         are not.  Use argument addresses to ensure they never compare as
48006         equal.
48007
48008         * tests/test-argp-2.sh (usage-indent test): Fix output
48009         (func_compare): Restore diff options
48010         * tests/test-argp.c: Restore #include "progname.h"
48011
48012 2007-04-29  Bruno Haible  <bruno@clisp.org>
48013
48014         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
48015         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48016         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
48017         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48018         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
48019         (configure.ac): Define CHECK_SNPRINTF_POSIX.
48020         (TESTS, check_PROGRAMS): Add test-snprintf.
48021         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
48022         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
48023         (TESTS, check_PROGRAMS): Add test-vsnprintf.
48024         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
48025         assertions that fail on HP-UX, OSF/1, or IRIX.
48026         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
48027
48028 2007-04-29  Bruno Haible  <bruno@clisp.org>
48029
48030         * MODULES.html.sh (posix_functions): Remove 'contents'.
48031
48032 2007-04-29  Karl Berry  <karl@gnu.org>
48033
48034         * config/srclist.txt (gendocs_template_min): new entry.
48035
48036 2007-04-29  Bruno Haible  <bruno@clisp.org>
48037
48038         Work around fpurge bug on BSD systems.
48039         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
48040         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
48041         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
48042         fpurge to rpl_fpurge if the system already has this function.
48043         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
48044         the case where the system already has this function. Correct invariants
48045         on BSD systems.
48046         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
48047         BSD systems.
48048
48049 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
48050
48051         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
48052         proposed by Sven Verdoolaege.
48053
48054         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
48055         options.
48056         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
48057         (usage and help tests): Update
48058
48059 2007-04-29  Bruno Haible  <bruno@clisp.org>
48060
48061         * tests/test-fflush.c (main): Use a file of size 17, not 10.
48062         Print more information in case of failure. Disable a test on BeOS.
48063
48064 2007-04-29  Bruno Haible  <bruno@clisp.org>
48065
48066         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
48067         This helps debugging on systems on which no gdb is available.
48068
48069 2007-04-29  Bruno Haible  <bruno@clisp.org>
48070
48071         * lib/freading.h: Improve comments.
48072         * lib/fwriting.h: Likewise.
48073         * tests/test-freading.c (main): Don't check freading immediately after
48074         repositioning. Needed for glibc.
48075
48076 2007-04-29  Bruno Haible  <bruno@clisp.org>
48077
48078         * lib/freading.c (freading): Trivial simplification.
48079
48080 2007-04-28  Bruno Haible  <bruno@clisp.org>
48081
48082         * tests/test-fwriting.c (main): Also test the interaction between
48083         fflush and fwriting.
48084         * modules/fwriting-tests (Depends-on): Add fflush.
48085
48086         * tests/test-freading.c (main): Also test the interaction between
48087         fflush and freading.
48088         * modules/freading-tests (Depends-on): Add fflush.
48089
48090 2007-04-28  Bruno Haible  <bruno@clisp.org>
48091
48092         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
48093         fseeko and ftello.
48094         Suggested by Eric Blake.
48095
48096 2007-04-28  Jim Meyering  <jim@meyering.net>
48097
48098         Avoid false-negative in gl_STDINT_H's C99 conformance test.
48099         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
48100         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
48101
48102 2007-04-27  Eric Blake  <ebb9@byu.net>
48103
48104         * doc/headers/assert.texi (assert.h): Document assert module use.
48105
48106 2007-04-27  Bruno Haible  <bruno@clisp.org>
48107
48108         * doc/headers/*.texi: New files.
48109         * doc/gnulib.texi (Header File Substitutes): New chapter.
48110         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
48111         dependencies.
48112         (standards.info ,standards.html, standards.dvi): Update dependencies.
48113         (mostlyclean, clean): New targets.
48114
48115 2007-04-27  Bruno Haible  <bruno@clisp.org>
48116
48117         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
48118         * modules/sysexits (Files, Makefile.am): Update.
48119
48120         * lib/sys_socket_.h: Renamed from lib/socket_.h.
48121         * modules/sys_socket (Files, Makefile.am): Update.
48122
48123         * lib/sys_stat_.h: Renamed from lib/stat_.h.
48124         * modules/sys_stat (Files, Makefile.am): Update.
48125
48126 2007-04-27  Eric Blake  <ebb9@byu.net>
48127
48128         * lib/freading.h: Improve comments.
48129         * lib/fwriting.h: Likewise.
48130         * lib/fflush.c: Likewise.
48131
48132         Fix closein for mingw.
48133         * modules/closein-tests: Add tests for closein.
48134         * tests/test-closein.c: New file.
48135         * tests/test-closein.sh: Likewise.
48136         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
48137         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
48138
48139 2007-04-27  Bruno Haible  <bruno@clisp.org>
48140
48141         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
48142         version is < 6.
48143         * lib/math_.h [__DECC]: Likewise.
48144         * lib/stdio_.h [__DECC]: Likewise.
48145         * lib/stdlib_.h [__DECC]: Likewise.
48146         * lib/string_.h [__DECC]: Likewise.
48147         * lib/time_.h [__DECC]: Likewise.
48148         * lib/wchar_.h [__DECC]: Likewise.
48149         * lib/wctype_.h [__DECC]: Likewise.
48150
48151 2007-04-27  Bruno Haible  <bruno@clisp.org>
48152
48153         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
48154
48155 2007-04-27  Bruno Haible  <bruno@clisp.org>
48156
48157         * lib/fflush.c: Add comments.
48158         * modules/fpurge-tests (Depends-on): Add fflush.
48159         * modules/freadable-tests (Depends-on): Likewise.
48160         * modules/fwritable-tests (Depends-on): Likewise.
48161
48162 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
48163
48164         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
48165         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
48166         Report by Bruno Haible <bruno@clisp.org>.
48167
48168 2007-04-26  Eric Blake  <ebb9@byu.net>
48169
48170         Fix fflush on mingw.
48171         * modules/fflush (Depends-on): Add freading.
48172         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
48173         but unread data.
48174
48175 2007-04-26  Eric Blake  <ebb9@byu.net>
48176         and Bruno Haible  <bruno@clisp.org>
48177
48178         Implement freading and fwriting.
48179         * lib/freading.c: New file.
48180         * lib/freading.h: Likewise.
48181         * m4/freading.m4: Likewise.
48182         * modules/freading: Likewise.
48183         * modules/freading-tests: Likewise.
48184         * tests/test-freading.c: Likewise.
48185         * lib/fwriting.c: New file.
48186         * lib/fwriting.h: Likewise.
48187         * m4/fwriting.m4: Likewise.
48188         * modules/fwriting: Likewise.
48189         * modules/fwriting-tests: Likewise.
48190         * tests/test-fwriting.c: Likewise.
48191         * MODULES.html.sh (File stream based Input/Output): Mention them.
48192
48193 2007-04-26  Bruno Haible  <bruno@clisp.org>
48194
48195         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
48196         'long' when we assume it.
48197         Suggested by Eric Blake.
48198
48199 2007-04-26  Bruno Haible  <bruno@clisp.org>
48200
48201         Ensure fseeko, ftello are declared on glibc systems.
48202         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
48203         * modules/fseeko (configure.ac-early): Likewise.
48204         * modules/ftello (configure.ac-early): Likewise.
48205         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
48206         AC_FUNC_FSEEKO for this.
48207         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
48208         (gl_CHECK_FSEEKO): Remove macro.
48209
48210 2007-04-26  Bruno Haible  <bruno@clisp.org>
48211
48212         * tests/test-fflush.c (main): Also check the ftell result after
48213         fflush and fseek/fseeko.
48214         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
48215         file descriptor position cache in the stream.
48216         * lib/fseeko.c (rpl_fseeko): Likewise.
48217
48218 2007-04-26  Bruno Haible  <bruno@clisp.org>
48219
48220         * modules/fflush-tests (Depends-on): Add fseeko.
48221
48222 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
48223             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48224
48225         * lib/argz_.h: ensure error_t definition is obtained in same
48226         mechanism system argz.h would have.
48227         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
48228         argz facilities are known bad.  Err on the side of caution if
48229         cross-compiling.
48230
48231 2007-04-25  Eric Blake  <ebb9@byu.net>
48232
48233         * lib/fpurge.c (includes): Use stdlib.h for free.
48234         * tests/test-fflush.c (main): Also test fflush-fseeko.
48235
48236 2007-04-25  Bruno Haible  <bruno@clisp.org>
48237
48238         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
48239         * lib/fseeko.c: New file.
48240         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
48241         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
48242         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
48243         gl_FUNC_FSEEKO.
48244         (gl_FUNC_FSEEKO): Invoke it.
48245         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
48246         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
48247         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
48248
48249 2007-04-25  Bruno Haible  <bruno@clisp.org>
48250
48251         * modules/fflush (Depends-on): Add ftello.
48252
48253 2007-04-25  Bruno Haible  <bruno@clisp.org>
48254
48255         * modules/ftello-tests: New file.
48256         * tests/test-ftello.c: New file.
48257
48258         * modules/ftello: New file.
48259         * m4/ftello.m4: New file.
48260         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
48261         HAVE_FTELLO.
48262         * lib/stdio_.h (ftello): New declaration.
48263         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
48264         HAVE_FTELLO.
48265
48266 2007-04-25  Bruno Haible  <bruno@clisp.org>
48267
48268         * modules/fseeko-tests: New file.
48269         * tests/test-fseeko.c: New file.
48270
48271         * modules/fseeko: New file.
48272         * m4/fseeko.m4: New file.
48273         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
48274         HAVE_FSEEKO.
48275         * lib/stdio_.h (fseeko): New declaration.
48276         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
48277         HAVE_FSEEKO.
48278
48279 2007-04-25  Bruno Haible  <bruno@clisp.org>
48280
48281         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
48282
48283 2007-04-25  Bruno Haible  <bruno@clisp.org>
48284
48285         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
48286         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
48287         * tests/test-unistd.c: Likewise.
48288         * tests/test-fcntl.c: Likewise.
48289
48290 2007-04-23  Eric Blake  <ebb9@byu.net>
48291
48292         * lib/fflush.c: Fix missing include.
48293         Reported by Bruno Haible.
48294
48295 2007-04-23  Bruno Haible  <bruno@clisp.org>
48296
48297         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
48298         Reported by Eric Blake.
48299
48300 2007-04-23  Bruno Haible  <bruno@clisp.org>
48301
48302         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
48303
48304 2007-04-23  Bruno Haible  <bruno@clisp.org>
48305
48306         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
48307
48308 2007-04-23  Bruno Haible  <bruno@clisp.org>
48309
48310         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
48311         Needed on HP-UX 11.
48312
48313 2007-04-16  Eric Blake  <ebb9@byu.net>
48314
48315         Make fflush rely on fpurge.
48316         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
48317         open coding all variants.
48318         * modules/fflush (Depends-on): Add fpurge and unistd.
48319         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
48320         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
48321
48322         Fix --with-tests compilation on cygwin.
48323         * modules/argmatch-tests (Makefile.am): List gnulib library first
48324         in LDADD.
48325         * modules/argp-tests (Makefile.am): Likewise.
48326         * modules/array-list-tests (Makefile.am): Likewise.
48327         * modules/array-oset-tests (Makefile.am): Likewise.
48328         * modules/avltree-list-tests (Makefile.am): Likewise.
48329         * modules/avltree-oset-tests (Makefile.am): Likewise.
48330         * modules/avltreehash-list-tests (Makefile.am): Likewise.
48331         * modules/carray-list-tests (Makefile.am): Likewise.
48332         * modules/dirname-tests (Makefile.am): Likewise.
48333         * modules/frexp-tests (Makefile.am): Likewise.
48334         * modules/isnanl-tests (Makefile.am): Likewise.
48335         * modules/linked-list-tests (Makefile.am): Likewise.
48336         * modules/linkedhash-list-tests (Makefile.am): Likewise.
48337         * modules/lock-tests (Makefile.am): Likewise.
48338         * modules/rbtree-list-tests (Makefile.am): Likewise.
48339         * modules/rbtree-oset-tests (Makefile.am): Likewise.
48340         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
48341         * modules/tls-tests (Makefile.am): Likewise.
48342         * modules/tsearch-tests (Makefile.am): Likewise.
48343         * modules/xvasprintf-tests (Makefile.am): Likewise.
48344
48345         Fix fpurge for cygwin.
48346         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
48347         value.
48348         * modules/fpurge-tests (Depends-on): Clean up trash.
48349
48350 2007-04-16  Simon Josefsson  <simon@josefsson.org>
48351
48352         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
48353
48354         * m4/autobuild.m4: Re-indent.
48355
48356 2007-04-13  Bruno Haible  <bruno@clisp.org>
48357
48358         * modules/fpurge-tests: New file.
48359         * tests/test-fpurge.c: New file.
48360
48361         * modules/fpurge: New file.
48362         * lib/fpurge.h: New file.
48363         * lib/fpurge.c: New file.
48364         * m4/fpurge.m4: New file.
48365
48366 2007-04-13  Bruno Haible  <bruno@clisp.org>
48367
48368         * modules/fbufmode-tests: New file.
48369         * tests/test-fbufmode.c: New file.
48370
48371         * modules/fbufmode: New file.
48372         * lib/fbufmode.h: New file.
48373         * lib/fbufmode.c: New file.
48374         * m4/fbufmode.m4: New file.
48375
48376 2007-04-13  Bruno Haible  <bruno@clisp.org>
48377
48378         * modules/fwritable-tests: New file.
48379         * tests/test-fwritable.c: New file.
48380
48381         * modules/fwritable: New file.
48382         * lib/fwritable.h: New file.
48383         * lib/fwritable.c: New file.
48384         * m4/fwritable.m4: New file.
48385
48386 2007-04-13  Bruno Haible  <bruno@clisp.org>
48387
48388         * modules/freadable-tests: New file.
48389         * tests/test-freadable.c: New file.
48390
48391         * modules/freadable: New file.
48392         * lib/freadable.h: New file.
48393         * lib/freadable.c: New file.
48394         * m4/freadable.m4: New file.
48395
48396 2007-04-13  Bruno Haible  <bruno@clisp.org>
48397
48398         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
48399         MOSTLYCLEANFILES.
48400
48401 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
48402
48403         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
48404         gzip bootstrap.conf to avoid dragging in i18n machinery.
48405         (gnulib_tool_option): Use it.
48406
48407 2007-04-13  Bruno Haible  <bruno@clisp.org>
48408
48409         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
48410         %F directives.
48411         * tests/test-vasprintf-posix.c (test_function): Likewise.
48412         * tests/test-snprintf-posix.h (test_function): Likewise.
48413         * tests/test-sprintf-posix.h (test_function): Likewise.
48414         * tests/test-fprintf-posix.h (test_function): Likewise.
48415         * tests/test-printf-posix.h (test_function): Likewise.
48416         * tests/test-fprintf-posix.out: Likewise.
48417
48418 2007-04-13  Bruno Haible  <bruno@clisp.org>
48419
48420         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
48421         * modules/tls-tests (configure.ac): Likewise.
48422         Reported by Arto C. Nirkko <anirkko@insel.ch>.
48423
48424 2007-04-13  Bruno Haible  <bruno@clisp.org>
48425
48426         * lib/tls.c (glthread_tls_get): Fix return type.
48427         Patch by Arto C. Nirkko <anirkko@insel.ch>.
48428
48429 2007-04-12  Eric Blake  <ebb9@byu.net>
48430
48431         * modules/gettime (Depends-on): Remove gettime.
48432         Reported by Dmitry V. Levin.
48433
48434 2007-04-12  Bruno Haible  <bruno@clisp.org>
48435
48436         * modules/fflush (Include): Mention <stdio.h>.
48437         * modules/strtoimax (Include): Mention <inttypes.h>.
48438         * modules/strtoumax (Include): Likewise.
48439
48440 2007-04-12  Eric Blake  <ebb9@byu.net>
48441
48442         * .cvsignore: New file.
48443         * .gitignore: Likewise.
48444
48445 2007-04-12  Bruno Haible  <bruno@clisp.org>
48446
48447         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
48448         not before, since $(LDADD) often contains libgnu.a.
48449         * modules/striconv-tests (test_striconv_LDADD): Likewise.
48450         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
48451         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
48452         Needed on Cygwin.
48453
48454 2007-04-12  Eric Blake  <ebb9@byu.net>
48455
48456         Work around glibc's failure to flush stdin on fclose.
48457         * lib/closein.c (close_stdin): Flush stdin before closing.
48458
48459         Work around glibc's failure to reset seekable stdin on exit.
48460         * modules/closein: New module.
48461         * lib/closein.c: New file.
48462         * lib/closein.h: Likewise.
48463         * m4/closein.m4: Likewise.
48464         * MODULES.html.sh (File stream based Input/Output): Document it.
48465
48466 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48467
48468         * gnulib-tool: Rename generated 'autobuild' script to
48469         'do-autobuild' in --create-megatestdir output.
48470
48471         * doc/gnulib.texi (Build robot for gnulib): Fix.
48472
48473 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48474
48475         * modules/sysexits (Depends-on): Add absolute-header.
48476
48477 2007-04-12  Eric Blake  <ebb9@byu.net>
48478
48479         No need to preserve errno on success.
48480         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
48481         Reported by Bruno Haible.
48482
48483 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48484
48485         * MODULES.html.sh (Support for maintaining and releasing
48486         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
48487
48488 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48489
48490         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
48491
48492 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48493
48494         * modules/autobuild: New module.
48495
48496         * m4/autobuild.m4: New file.
48497
48498 2007-04-11  Bruno Haible  <bruno@clisp.org>
48499
48500         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
48501         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
48502         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
48503         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
48504         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48505         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48506         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48507         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48508         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48509         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48510         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
48511         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48512         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48513         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
48514         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48515         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48516         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
48517         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48518         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48519         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
48520         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48521         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48522         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
48523         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48524         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48525         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
48526         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48527         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48528         Reported by Eric Blake.
48529
48530 2007-04-11  Bruno Haible  <bruno@clisp.org>
48531
48532         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
48533
48534 2007-04-10  Bruno Haible  <bruno@clisp.org>
48535
48536         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
48537         for NaN and Infinity. Needed on FreeBSD 6.1.
48538         * tests/test-vasnprintf-posix.c (test_function): Undo last change
48539         regarding results for "%010a" of Infinity and NaN.
48540         * tests/test-vasprintf-posix.c (test_function): Likewise.
48541         * tests/test-snprintf-posix.h (test_function): Likewise.
48542         * tests/test-sprintf-posix.h (test_function): Likewise.
48543         * tests/test-fprintf-posix.h (test_function): Likewise.
48544         * tests/test-printf-posix.h (test_function): Likewise.
48545         * tests/test-fprintf-posix.out: Likewise.
48546
48547 2007-04-10  Bruno Haible  <bruno@clisp.org>
48548
48549         * modules/locale-tests: New file.
48550         * tests/test-locale.c: New file.
48551
48552         * modules/locale: New file.
48553         * lib/locale_.h: New file.
48554         * m4/locale_h.m4: New file.
48555
48556 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
48557             Bruno Haible  <bruno@clisp.org>
48558
48559         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
48560         be determined, test for availability of the copysignf, copysign,
48561         copysignl functions.
48562         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
48563         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
48564         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
48565
48566 2007-04-09  Eric Blake  <ebb9@byu.net>
48567
48568         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
48569         * modules/stdio (Makefile.am): Support fflush.
48570         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48571         * modules/fflush: New file.
48572         * lib/fflush.c: Likewise.
48573         * m4/fflush.m4: Likewise.
48574         * modules/fflush-tests: New test.
48575         * tests/test-fflush.c: Likewise.
48576         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
48577
48578 2007-04-06  Bruno Haible  <bruno@clisp.org>
48579
48580         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
48581         (VASNPRINTF): Use signbit for faster determination whether to print a
48582         minus sign.
48583         * modules/vasnprintf (Files): Remove lib/float+.h.
48584         * modules/fprintf-posix (Depends-on): Add signbit.
48585         * modules/snprintf-posix (Depends-on): Likewise.
48586         * modules/sprintf-posix (Depends-on): Likewise.
48587         * modules/vasnprintf-posix (Depends-on): Likewise.
48588         * modules/vasprintf-posix (Depends-on): Likewise.
48589         * modules/vfprintf-posix (Depends-on): Likewise.
48590         * modules/vsnprintf-posix (Depends-on): Likewise.
48591         * modules/vsprintf-posix (Depends-on): Likewise.
48592
48593 2007-04-06  Bruno Haible  <bruno@clisp.org>
48594
48595         * tests/test-frexp.c (main): Test also the sign bit of zero results.
48596         * tests/test-frexpl.c (main): Likewise.
48597         * tests/test-ldexpl.c (main): Likewise.
48598         * modules/frexp-tests (Depends-on): Add signbit.
48599         * modules/frexpl-tests (Depdends-on): Likewise.
48600         * modules/ldexpl-tests (Depdends-on): Likewise.
48601
48602 2007-04-06  Bruno Haible  <bruno@clisp.org>
48603
48604         * modules/signbit-tests: New file.
48605         * tests/test-signbit.c: New file.
48606
48607         * modules/signbit: New file.
48608         * lib/signbitf.c: New file.
48609         * lib/signbitd.c: New file.
48610         * lib/signbitl.c: New file.
48611         * m4/signbit.m4: New file.
48612         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
48613         (signbit): New macro.
48614         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
48615         REPLACE_SIGNBIT.
48616         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
48617         REPLACE_FREXPL into math.h.
48618
48619 2007-04-06  Bruno Haible  <bruno@clisp.org>
48620
48621         * modules/isnanf-nolibm-tests: New file.
48622         * tests/test-isnanf.c: New file.
48623
48624         * modules/isnanf-nolibm: New file.
48625         * lib/isnanf.h: New file.
48626         * lib/isnanf.c: New file.
48627         * lib/isnan.c: Consider the USE_FLOAT macro.
48628         * m4/isnanf.m4: New file.
48629
48630 2007-04-06  Bruno Haible  <bruno@clisp.org>
48631
48632         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
48633         (Link): New section.
48634
48635         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
48636
48637 2007-04-06  Bruno Haible  <bruno@clisp.org>
48638
48639         Assume the 'long double' type.
48640         * m4/longdouble.m4: Remove file.
48641         * config/srclist.txt: Don't mention longdouble.m4.
48642         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
48643         * lib/float+.h: Likewise.
48644         * lib/frexp.c: Likewise.
48645         * lib/printf-args.h: Likewise.
48646         * lib/printf-args.c: Likewise.
48647         * lib/printf-frexp.c: Likewise.
48648         * lib/printf-parse.c: Likewise.
48649         * lib/vasnprintf.c: Likewise.
48650         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
48651         * m4/intl.m4: Likewise.
48652         * m4/isnanl.m4: Likewise.
48653         * m4/printf.m4: Likewise.
48654         * m4/printf-frexpl.m4: Likewise.
48655         * m4/vasnprintf.m4: Likewise.
48656         * modules/allocsa (Files): Remove m4/longdouble.m4.
48657         * modules/gettext (Files): Likewise.
48658         * modules/relocatable-prog-wrapper (Files): Likewise.
48659         * modules/vasnprintf (Files): Likewise.
48660         * modules/isnanl (Files): Likewise.
48661         (Include): Simplify.
48662         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
48663         (Include): Simplify.
48664         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
48665         (Include): Simplify.
48666         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
48667         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48668         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
48669         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48670         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
48671         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48672         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
48673         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48674         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
48675         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48676         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
48677         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48678         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
48679         * tests/test-isnanl.c: Likewise.
48680         * tests/test-snprintf-posix.h: Likewise.
48681         * tests/test-sprintf-posix.h: Likewise.
48682         * tests/test-vasnprintf-posix.c: Likewise.
48683         * tests/test-vasnprintf-posix2.c: Likewise.
48684         * tests/test-vasprintf-posix.c: Likewise.
48685
48686 2007-04-06  Bruno Haible  <bruno@clisp.org>
48687
48688         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
48689         * lib/math_.h [__DECC]: Include the overridden include file through
48690         #include_next, outside the double-inclusion guard.
48691         * lib/stdio_.h [__DECC]: Likewise.
48692         * lib/stdlib_.h [__DECC]: Likewise.
48693         * lib/string_.h [__DECC]: Likewise.
48694         * lib/time_.h [__DECC]: Likewise.
48695         * lib/wchar_.h [__DECC]: Likewise.
48696         * lib/wctype_.h [__DECC]: Likewise.
48697         * lib/inttypes_.h [__DECC]: Likewise.
48698         Reported by Albert Chin <china@thewrittenword.com> in
48699         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
48700
48701 2007-04-04  Eric Blake  <ebb9@byu.net>
48702
48703         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
48704         1.5.x.
48705
48706 2007-04-04  Bruno Haible  <bruno@clisp.org>
48707
48708         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
48709         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
48710
48711 2007-04-04  Bruno Haible  <bruno@clisp.org>
48712
48713         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
48714         results for "%010a" of Infinity and NaN.
48715         * tests/test-vasprintf-posix.c (test_function): Likewise.
48716         * tests/test-snprintf-posix.h (test_function): Likewise.
48717         * tests/test-sprintf-posix.h (test_function): Likewise.
48718         * tests/test-fprintf-posix.h (test_function): Remove these tests.
48719         * tests/test-printf-posix.h (test_function): Likewise.
48720         * tests/test-fprintf-posix.out: Update.
48721         Needed for FreeBSD 6.1.
48722
48723 2007-04-04  Bruno Haible  <bruno@clisp.org>
48724
48725         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
48726         directly used by the gnulib modules nor by gnulib-tool.
48727
48728 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
48729
48730         * DEPENDENCIES: Give overall description of version dependency
48731         desirability.  Use more-typical names for apps.
48732         Add shell, coreutils, diffutils, grep, tar, gzip.
48733
48734 2007-04-04  Simon Josefsson  <simon@josefsson.org>
48735
48736         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
48737
48738 2007-04-04  Karl Berry  <karl@gnu.org>
48739
48740         * MODULES.html.sh (func_module): missing '.
48741
48742 2007-04-03  Bruno Haible  <bruno@clisp.org>
48743
48744         * modules/argmatch-tests (Makefile.am): New variable
48745         test_argmatch_LDADD.
48746         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
48747         * modules/array-list-tests (Makefile.am): New variable
48748         test_array_list_LDADD.
48749         * modules/array-oset-tests (Makefile.am): New variable
48750         test_array_oset_LDADD.
48751         * modules/avltree-list-tests (Makefile.am): New variable
48752         test_avltree_list_LDADD.
48753         * modules/avltree-oset-tests (Makefile.am): New variable
48754         test_avltree_oset_LDADD.
48755         * modules/avltreehash-list-tests (Makefile.am): New variable
48756         test_avltreehash_list_LDADD.
48757         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
48758         test_canonicalize_lgpl_LDADD.
48759         * modules/carray-list-tests (Makefile.am): New variable
48760         test_carray_list_LDADD.
48761         * modules/dirname-tests (Makefile.am): New variable
48762         test_dirname_LDADD.
48763         * modules/linked-list-tests (Makefile.am): New variable
48764         test_linked_list_LDADD.
48765         * modules/linkedhash-list-tests (Makefile.am): New variable
48766         test_linkedhash_list_LDADD.
48767         * modules/rbtree-list-tests (Makefile.am): New variable
48768         test_rbtree_list_LDADD.
48769         * modules/rbtree-oset-tests (Makefile.am): New variable
48770         test_rbtree_oset_LDADD.
48771         * modules/rbtreehash-list-tests (Makefile.am): New variable
48772         test_rbtreehash_list_LDADD.
48773         * modules/xvasprintf-tests (Makefile.am): New variable
48774         test_xvasprintf_LDADD.
48775         Reported by Eric Blake.
48776
48777 2007-04-03  Eric Blake  <ebb9@byu.net>
48778
48779         * DEPENDENCIES: Weaken m4 requirements.
48780
48781 2007-04-03  Bruno Haible  <bruno@clisp.org>
48782
48783         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
48784         * modules/isnanl-tests (configure.ac): Likewise.
48785
48786 2007-04-03  Ben Pfaff  <blp@gnu.org>
48787
48788         * modules/iconv_open: Add $(srcdir)/ to source directory
48789         references in Makefile fragments that call gperf, to fix VPATH
48790         builds.
48791
48792 2007-04-03  Bruno Haible  <bruno@clisp.org>
48793
48794         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
48795         * lib/ldexpl.c: Undo last change.
48796
48797 2007-04-03  Bruno Haible  <bruno@clisp.org>
48798
48799         * modules/printf-frexpl (Depends-on): Undo last change.
48800         (Files): Add m4/ldexpl.m4.
48801
48802 2007-04-03  Bruno Haible  <bruno@clisp.org>
48803
48804         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
48805         * modules/isnanl (Link): New section.
48806
48807         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
48808         * modules/frexp (Link): New section.
48809
48810         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
48811         * modules/frexpl (Link): New section.
48812
48813         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
48814         * modules/ldexpl (Link): New section.
48815
48816 2007-04-03  Bruno Haible  <bruno@clisp.org>
48817
48818         * modules/TEMPLATE-EXTENDED: New file.
48819         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
48820
48821 2007-04-03  Bruno Haible  <bruno@clisp.org>
48822
48823         * DEPENDENCIES: New file.
48824         Suggested by Simon Josefsson.
48825
48826 2007-04-03  Bruno Haible  <bruno@clisp.org>
48827
48828         * doc/gnulib.texi: Escape @.
48829
48830 2007-04-03  James Youngman  <jay@gnu.org>
48831         and Paul Eggert  <eggert@cs.ucla.edu>
48832
48833         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
48834         birthtime on all systems that have birthtime, not just those which
48835         use st_birthtimensec rather than st_birthtim.  Putting zero in
48836         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
48837         that the birth time is not available for files on an NFS mount.
48838
48839 2007-04-03  Simon Josefsson  <simon@josefsson.org>
48840
48841         * modules/memxor: Move back from crypto/, suggested by Bruno.
48842         * modules/crypto/hmac-sha1: Fix memxor dependency.
48843
48844         * modules/crypto/gc: Moved from ../.
48845
48846 2007-04-02  Eric Blake  <ebb9@byu.net>
48847
48848         * lib/ldexpl.c (includes): Avoid libm.
48849
48850         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
48851
48852 2007-04-02  Bruno Haible  <bruno@clisp.org>
48853
48854         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
48855         on IRIX.
48856
48857 2007-04-02  Bruno Haible  <bruno@clisp.org>
48858
48859         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
48860         x86 or x86_64 platforms running MacOS X.
48861         Reported by Ryan Schmidt <@ryandesign.com>.
48862
48863 2007-04-02  Bruno Haible  <bruno@clisp.org>
48864
48865         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
48866         i386.
48867
48868 2007-04-01  Simon Josefsson  <simon@josefsson.org>
48869
48870         * modules/crypto/arcfour: Moved from ../.
48871         * modules/crypto/arcfour-tests: Moved from ../.
48872         * modules/crypto/arctwo: Moved from ../.
48873         * modules/crypto/arctwo-tests: Moved from ../.
48874         * modules/crypto/des: Moved from ../.
48875         * modules/crypto/des-tests: Moved from ../.
48876         * modules/crypto/gc-arcfour: Moved from ../.
48877         * modules/crypto/gc-arcfour-tests: Moved from ../.
48878         * modules/crypto/gc-arctwo: Moved from ../.
48879         * modules/crypto/gc-arctwo-tests: Moved from ../.
48880         * modules/crypto/gc-des: Moved from ../.
48881         * modules/crypto/gc-des-tests: Moved from ../.
48882         * modules/crypto/gc-hmac-md5: Moved from ../.
48883         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
48884         * modules/crypto/gc-hmac-sha1: Moved from ../.
48885         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
48886         * modules/crypto/gc-md2: Moved from ../.
48887         * modules/crypto/gc-md2-tests: Moved from ../.
48888         * modules/crypto/gc-md4: Moved from ../.
48889         * modules/crypto/gc-md4-tests: Moved from ../.
48890         * modules/crypto/gc-md5: Moved from ../.
48891         * modules/crypto/gc-md5-tests: Moved from ../.
48892         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
48893         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
48894         * modules/crypto/gc-random: Moved from ../.
48895         * modules/crypto/gc-rijndael: Moved from ../.
48896         * modules/crypto/gc-rijndael-tests: Moved from ../.
48897         * modules/crypto/gc-sha1: Moved from ../.
48898         * modules/crypto/gc-sha1-tests: Moved from ../.
48899         * modules/crypto/gc-tests: Moved from ../.
48900         * modules/crypto/hmac-md5: Moved from ../.
48901         * modules/crypto/hmac-md5-tests: Moved from ../.
48902         * modules/crypto/hmac-sha1: Moved from ../.
48903         * modules/crypto/hmac-sha1-tests: Moved from ../.
48904         * modules/crypto/md2: Moved from ../.
48905         * modules/crypto/md2-tests: Moved from ../.
48906         * modules/crypto/md4: Moved from ../.
48907         * modules/crypto/md4-tests: Moved from ../.
48908         * modules/crypto/md5: Moved from ../.
48909         * modules/crypto/md5-tests: Moved from ../.
48910         * modules/crypto/memxor: Moved from ../.
48911         * modules/crypto/rijndael: Moved from ../.
48912         * modules/crypto/rijndael-tests: Moved from ../.
48913         * modules/crypto/sha1: Moved from ../.
48914
48915 2007-03-30  James Youngman  <jay@gnu.org>
48916
48917         * tests/test-stat-time.c (prepare_test): use chmod() rather than
48918         rename() to change the ctime of a file (because ctime is unaffected
48919         by rename on jfs2 on AIX 5.1).
48920         (main): Start by doing cleanup, in case a previous run failed leaving
48921         test files behind.
48922
48923 2007-03-31  Bruno Haible  <bruno@clisp.org>
48924
48925         Support old proprietary implementations of iconv.
48926         * modules/iconv_open: New file.
48927         * lib/iconv_.h: New file.
48928         * m4/iconv_h.m4: New file.
48929         * lib/iconv_open.c: New file.
48930         * lib/iconv_open-aix.gperf: New file.
48931         * lib/iconv_open-hpux.gperf: New file.
48932         * lib/iconv_open-irix.gperf: New file.
48933         * lib/iconv_open-osf.gperf: New file.
48934         * m4/iconv_open.m4: New file.
48935         * modules/linebreak (Depends-on): Add iconv_open.
48936         * modules/striconv (Depends-on): Likewise.
48937         * modules/striconveh (Depends-on): Likewise.
48938         * modules/unicodeio (Depends-on): Likewise.
48939         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
48940         (iconv_t)(-1).
48941         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
48942         conversion if cd is (iconv_t)(-1).
48943         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
48944         is not possible.
48945
48946 2007-03-31  Bruno Haible  <bruno@clisp.org>
48947
48948         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
48949         work on Solaris either. Protect also second use of "autodetect_jp".
48950
48951 2007-03-31  Bruno Haible  <bruno@clisp.org>
48952
48953         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
48954         the function is not present.
48955
48956 2007-03-31  Bruno Haible  <bruno@clisp.org>
48957
48958         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
48959         the function is not present.
48960
48961 2007-03-31  Bruno Haible  <bruno@clisp.org>
48962
48963         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
48964         a bug in HP-UX iconv_open().
48965
48966 2007-03-31  Bruno Haible  <bruno@clisp.org>
48967
48968         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
48969         (Mathematics <math.h>): New section, add fpieee.
48970         (Input/output <stdio.h>): Add fseterr.
48971         (Mathematics <math.h>): New section, add printf-frexp.
48972         (Container data structures): Add sublist.
48973         (Core language properties): Add fpucw, inline.
48974         (Functions for greatest-width integer types <inttypes.h>): Add
48975         imaxabs, imaxdiv, inttypes.
48976         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
48977         isnanl-nolibm, ldexp.
48978         (Mathematics <math.h>): New section, add printf-frexpl.
48979         (Support for systems lacking POSIX:2001): Add fprintf-posix,
48980         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
48981         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
48982         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
48983         (Unicode string functions): Add unistr/u*-mbtoucr.
48984         (Java): Add javacomp-script, javaexec-script.
48985         (C#): Add csharpcomp-script, csharpexec-script.
48986         (Support for building libraries and executables): Add havelib,
48987         relocatable-*.
48988         (Support for maintaining and releasing projects): Renamed from
48989         'Support for maintaining and release projects'. Add announce-gen.
48990
48991 2007-03-31  Bruno Haible  <bruno@clisp.org>
48992
48993         * README: Talk primarily about git.
48994         (git and CVS): Renamed from CVS.
48995         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
48996         gnulib is available through git.
48997         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
48998
48999 2007-03-30  Bruno Haible  <bruno@clisp.org>
49000
49001         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
49002         * lib/poll_.h: Likewise.
49003         * lib/stat_.h: Likewise.
49004         * lib/sys_time_.h: Likewise.
49005         * lib/sysexit_.h: Likewise.
49006         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
49007         * lib/stdbool_.h: Likewise.
49008         * lib/byteswap_.h: Add double-inclusion guard.
49009
49010 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
49011
49012         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
49013
49014 2007-03-30  Karl Berry  <karl@gnu.org>
49015
49016         * config/srclist-update: double space after USA in the license
49017         substitution, since that's how it's usually (?) written.
49018
49019 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
49020
49021         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
49022         reported by Bruno Haible.
49023
49024 2007-03-29  Bruno Haible  <bruno@clisp.org>
49025
49026         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
49027         a bug in AIX iconv().
49028
49029 2007-03-29  Bruno Haible  <bruno@clisp.org>
49030
49031         * modules/ldexpl-tests: New file.
49032         * tests/test-ldexpl.c: New file.
49033
49034 2007-03-29  Bruno Haible  <bruno@clisp.org>
49035
49036         * lib/ldexpl.c: Include fpucw.h.
49037         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
49038         multiplication.
49039         * modules/ldexpl (Depends-on): Add fpucw.
49040
49041 2007-03-29  Bruno Haible  <bruno@clisp.org>
49042
49043         * modules/ldexpl: New file.
49044         * m4/ldexpl.m4: New file.
49045         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
49046         set.
49047         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
49048         REPLACE_LDEXPL.
49049         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
49050         REPLACE_LDEXPL.
49051         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
49052         gl_FUNC_LDEXPL_WORKS.
49053         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
49054         * modules/mathl (Files): Remove lib/ldexpl.c.
49055         (Depends-on): Add ldexpl.
49056
49057 2007-03-29  Bruno Haible  <bruno@clisp.org>
49058
49059         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
49060
49061 2007-03-29  Bruno Haible  <bruno@clisp.org>
49062
49063         * tests/test-striconveh.c (main): Don't assume that a direct conversion
49064         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
49065         and possibly also HP-UX.
49066         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
49067         work on AIX, IRIX, HP-UX, OSF/1.
49068         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
49069         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
49070         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
49071         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
49072         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
49073         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
49074
49075 2007-03-29  Bruno Haible  <bruno@clisp.org>
49076
49077         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
49078
49079 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
49080
49081         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
49082         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
49083
49084 2007-03-29  Eric Blake  <ebb9@byu.net>
49085
49086         * lib/acl-internal.h: Remove redundant include.
49087         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
49088         Cygwin when a file is locked.
49089
49090 2007-03-29  Bruno Haible  <bruno@clisp.org>
49091
49092         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
49093         file.
49094         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
49095
49096 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
49097
49098         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
49099         try to remove a parent directory if the child couldn't be removed
49100         (except for the first rmdir, which could fail because the child
49101         doesn't exist).  Problem reported by Jeff Blaine in
49102         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
49103
49104 2007-03-28  Bruno Haible  <bruno@clisp.org>
49105
49106         * lib/striconveh.c (utf8conv_carefully): New function.
49107         (mem_cd_iconveh_internal): Invoke it.
49108
49109 2007-03-28  Bruno Haible  <bruno@clisp.org>
49110
49111         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
49112         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
49113         input.
49114         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
49115         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
49116         unistr/u8-uctomb.
49117
49118 2007-03-28  Bruno Haible  <bruno@clisp.org>
49119
49120         * modules/unistr/u8-mbtoucr: New file.
49121         * lib/unistr/u8-mbtoucr.c: New file.
49122         * modules/unistr/u16-mbtoucr: New file.
49123         * lib/unistr/u16-mbtoucr.c: New file.
49124         * modules/unistr/u16-mbtoucr: New file.
49125         * lib/unistr/u16-mbtoucr.c: New file.
49126         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
49127
49128 2007-03-27  Simon Josefsson  <simon@josefsson.org>
49129             Bruno Haible  <bruno@clisp.org>
49130
49131         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
49132         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
49133         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
49134
49135         * m4/stdio_h.m4: Add stubs for vasprintf too.
49136
49137         * modules/stdio: Support vasprintf in sed command.
49138
49139         * modules/vasprintf: Depend on stdio for prototypes.  Remove
49140         vasprintf.h.  Add stdio module indicator.
49141
49142         * lib/stdio_.h: Declare asprintf and vasprintf, based on
49143         vasprintf.h.
49144
49145         * lib/vasprintf.h: File removed.
49146
49147         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
49148         * lib/vasprintf.c: Ditto.
49149         * lib/xvasprintf.c: Ditto.
49150         * tests/test-vasprintf-posix.c: Ditto.
49151         * tests/test-vasprintf.c: Ditto.
49152
49153 2007-03-27  Bruno Haible  <bruno@clisp.org>
49154
49155         Make vasnprintf multithread-safe.
49156         * lib/vasnprintf.c (decimal_point_char): New function.
49157         (VASNPRINTF): Use it.
49158         Suggested by Simon Josefsson.
49159
49160 2007-03-27  Eric Blake  <ebb9@byu.net>
49161
49162         Support sub-second birthtime on cygwin.
49163         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
49164         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
49165         (get_stat_birthtime): Also work with st_birthtim.
49166
49167 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
49168
49169         * lib/stat-time.h (USE_BIRTHTIME): Remove.
49170         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
49171         (get_stat_birthtime_ns): Do not try to use "spare" fields.
49172         (get_stat_birthtime_ns): Simplify compile-time tests.
49173         (get_stat_birthtime): Change the API to look like
49174         get_stat_mtime etc., except return a negative tv_nsec on error.
49175         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
49176         Don't check for "spare" fields.
49177         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
49178         or for struct stat.st_birthtime, as these tests aren't used.
49179         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
49180
49181 2007-03-27  Bruno Haible  <bruno@clisp.org>
49182
49183         * lib/stat-time.h: Include <sys/stat.h>.
49184
49185 2007-03-27  James Youngman  <jay@gnu.org>
49186
49187         * lib/stat-time.h (get_stat_birthtime): New function for
49188           retrieving st_birthtime as provided by UFS2 (hence *BSD).
49189         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
49190           and its variants.
49191         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
49192         * modules/stat-time-test: New file.
49193         * tests/test-stat-time.c: New test, devised by Bruno Haible.
49194
49195 2007-03-26  Bruno Haible  <bruno@clisp.org>
49196
49197         Better support of signalling NaNs.
49198         * lib/atanl.c: Include isnanl.h.
49199         (atanl): Perform test for NaN at the beginning of the function and
49200         through a call to isnanl.
49201         * lib/cosl.c: Include isnanl.h.
49202         (cosl): Perform test for NaN at the beginning of the function and
49203         through a call to isnanl.
49204         * lib/ldexpl.c: Include isnanl.h.
49205         (ldexpl): Perform test for NaN through a call to isnanl.
49206         * lib/logl.c: Include isnanl.h.
49207         (logl): Perform test for NaN at the beginning of the function and
49208         through a call to isnanl.
49209         * lib/sinl.c: Include isnanl.h.
49210         (sinl): Perform test for NaN at the beginning of the function and
49211         through a call to isnanl.
49212         * lib/sqrtl.c: Include isnanl.h.
49213         (sqrtl): Perform test for NaN at the beginning of the function and
49214         through a call to isnanl.
49215         * lib/tanl.c: Include isnanl.h.
49216         (tanl): Perform test for NaN at the beginning of the function and
49217         through a call to isnanl.
49218         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
49219         * modules/mathl (Depends-on): Add isnanl.
49220
49221 2007-03-26  Eric Blake  <ebb9@byu.net>
49222
49223         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
49224         regression in logic sense of previous patch.
49225
49226 2007-03-26  Bruno Haible  <bruno@clisp.org>
49227
49228         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
49229         unportable shell command "if ! ...".
49230         Reported by Ralf Wildenhues.
49231
49232 2007-03-25  Bruno Haible  <bruno@clisp.org>
49233
49234         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
49235         <sysexits.h> file, and only add EX_CONFIG.
49236         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
49237         absolute file name and whether it is sufficient. Substitute also
49238         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
49239         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
49240         ABSOLUTE_SYSEXITS_H into sysexits.h.
49241
49242 2007-03-25  Bruno Haible  <bruno@clisp.org>
49243
49244         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
49245         hints is NULL.
49246
49247 2007-03-25  Bruno Haible  <bruno@clisp.org>
49248
49249         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
49250         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
49251
49252 2007-03-25  Bruno Haible  <bruno@clisp.org>
49253
49254         * lib/vasnprintf.c: Include langinfo.h.
49255         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
49256         multithread-safe.
49257         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
49258         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
49259         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49260         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49261         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49262         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49263         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49264         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
49265         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49266         Reported by Simon Josefsson.
49267
49268 2007-03-25  Bruno Haible  <bruno@clisp.org>
49269
49270         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
49271         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
49272         * modules/vasnprintf (Depends-on): Add stdint.
49273
49274 2007-03-25  Bruno Haible  <bruno@clisp.org>
49275
49276         * modules/fpieee: New file.
49277         * m4/fpieee.m4: New file.
49278         * modules/isnan-nolibm (Depends-on): Add fpieee.
49279         * modules/isnanl-nolibm (Depends-on): Add fpieee.
49280         * modules/isnanl (Depends-on): Add fpieee.
49281
49282 2007-03-25  Bruno Haible  <bruno@clisp.org>
49283
49284         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
49285
49286 2007-03-25  Bruno Haible  <bruno@clisp.org>
49287
49288         Avoid test failures on IRIX 6.5.
49289         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
49290         (main): Use it.
49291         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
49292         macros.
49293         (main): Use them.
49294
49295 2007-03-25  Bruno Haible  <bruno@clisp.org>
49296
49297         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
49298         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
49299         exists but doesn't work.
49300         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
49301         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
49302         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
49303         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
49304
49305 2007-03-25  Bruno Haible  <bruno@clisp.org>
49306
49307         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
49308         returns inf. Needed on IRIX 6.5.
49309
49310 2007-03-25  Bruno Haible  <bruno@clisp.org>
49311
49312         * tests/test-frexpl.c: Include isnanl-nolibm.h.
49313         (main): Use isnanl instead of x != x idiom.
49314         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
49315
49316         * tests/test-frexp.c: Include isnan.h.
49317         (main): Use isnan instead of x != x idiom.
49318         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
49319
49320 2007-03-25  Bruno Haible  <bruno@clisp.org>
49321
49322         * tests/test-frexp.c (NaN): New function/macro.
49323         (main): Use it instead of 0.0 / 0.0.
49324         * tests/test-isnan.c (NaN): New function/macro.
49325         (main): Use it instead of 0.0 / 0.0.
49326         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
49327         (test_function): Use it instead of 0.0 / 0.0.
49328         * tests/test-vasprintf-posix.c (NaN): New function/macro.
49329         (test_function): Use it instead of 0.0 / 0.0.
49330         * tests/test-snprintf-posix.h (NaN): New function/macro.
49331         (test_function): Use it instead of 0.0 / 0.0.
49332         * tests/test-sprintf-posix.h (NaN): New function/macro.
49333         (test_function): Use it instead of 0.0 / 0.0.
49334         * tests/test-fprintf-posix.h (NaN): New function/macro.
49335         (test_function): Use it instead of 0.0 / 0.0.
49336         * tests/test-printf-posix.h (NaN): New function/macro.
49337         (test_function): Use it instead of 0.0 / 0.0.
49338
49339         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
49340
49341 2007-03-25  Bruno Haible  <bruno@clisp.org>
49342
49343         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
49344
49345 2007-03-25  Bruno Haible  <bruno@clisp.org>
49346
49347         * lib/regexec.c (merge_state_with_log): Make static.
49348
49349 2007-03-25  Bruno Haible  <bruno@clisp.org>
49350
49351         * lib/trigl.c (kernel_rem_pio2): Make static.
49352
49353 2007-03-25  Bruno Haible  <bruno@clisp.org>
49354
49355         * lib/sincosl.c (sincosl_table): Make static.
49356
49357 2007-03-25  Bruno Haible  <bruno@clisp.org>
49358
49359         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
49360         if the compiler does not support C99.
49361
49362 2007-03-25  Bruno Haible  <bruno@clisp.org>
49363
49364         * modules/time (Makefile.am): Ensure all rule action lines start with a
49365         tab.
49366
49367 2007-03-24  Bruno Haible  <bruno@clisp.org>
49368
49369         * modules/tsearch-tests: New file.
49370         * tests/test-tsearch.sh: New file.
49371         * tests/test-tsearch.c: New file, mostly copied from glibc.
49372
49373         * modules/search-tests: New file.
49374         * tests/test-search.c: New file.
49375
49376         * modules/search: New file.
49377         * lib/search_.h: New file, incorporating lib/tsearch.h.
49378         * m4/search_h.m4: New file.
49379         * lib/tsearch.h: Remove file.
49380         * lib/tsearch.c: Include search.h instead of tsearch.h.
49381         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
49382         HAVE_TSEARCH.
49383         * modules/tsearch (Files): Remove lib/tsearch.h.
49384         (Depends-on): Add search.
49385         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
49386         (Include): Change tsearch.h into search.h.
49387
49388 2007-03-24  Bruno Haible  <bruno@clisp.org>
49389
49390         * modules/fpucw: New file.
49391         * lib/fpucw.h: New file.
49392         * lib/frexp.c: Include fpucw.h.
49393         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
49394         (FUNC): Use them.
49395         * lib/printf-frexp.c: Include fpucw.h.
49396         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
49397         (FUNC): Use them.
49398         * lib/vasnprintf.c: Include fpucw.h.
49399         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
49400         'long double' calculations.
49401         * tests/test-frexpl.c: Include fpucw.h.
49402         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
49403         * tests/test-printf-frexpl.c: Include fpucw.h.
49404         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
49405         * modules/frexpl (Depends-on): Add fpucw.
49406         * modules/printf-frexpl (Depends-on): Likewise.
49407         * modules/fprintf-posix (Depends-on): Likewise.
49408         * modules/snprintf-posix (Depends-on): Likewise.
49409         * modules/sprintf-posix (Depends-on): Likewise.
49410         * modules/vasnprintf-posix (Depends-on): Likewise.
49411         * modules/vasprintf-posix (Depends-on): Likewise.
49412         * modules/vfprintf-posix (Depends-on): Likewise.
49413         * modules/vsnprintf-posix (Depends-on): Likewise.
49414         * modules/vsprintf-posix (Depends-on): Likewise.
49415         * modules/frexpl-tests (Depends-on): Likewise.
49416         * modules/printf-frexpl-tests (Depends-on): Likewise.
49417
49418 2007-03-24  Bruno Haible  <bruno@clisp.org>
49419
49420         * lib/float+.h: New file.
49421         * lib/isnan.c: Include float+.h.
49422         (SIZE): New macro.
49423         (FUNC): Compare only SIZE bytes of the value.
49424         * lib/vasnprintf.c: Include float+.h.
49425         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
49426         SIZEOF_LDBL or SIZEOF_DBL bytes.
49427         * modules/isnan-nolibm (Files): Add lib/float+.h.
49428         * modules/isnanl-nolibm (Files): Add lib/float+.h.
49429         * modules/isnanl (Files): Add lib/float+.h.
49430         * modules/vasnprintf (Files): Add lib/float+.h.
49431
49432 2007-03-24  Bruno Haible  <bruno@clisp.org>
49433
49434         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
49435         include isnanl-nolibm.h.
49436
49437 2007-03-24  Bruno Haible  <bruno@clisp.org>
49438
49439         * tests/test-read-file.c (main): Don't produce spurious output for
49440         expected situations. Make the test fail if it encountered unexpected
49441         results.
49442
49443 2007-03-24  Bruno Haible  <bruno@clisp.org>
49444
49445         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
49446         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
49447
49448 2007-03-24  Bruno Haible  <bruno@clisp.org>
49449
49450         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
49451
49452 2007-03-24  Bruno Haible  <bruno@clisp.org>
49453
49454         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
49455         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
49456
49457         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
49458         * modules/utf8-ucs4: Turn into a symbolic link to module
49459         unistr/u8-mbtouc.
49460
49461         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
49462         utf8-ucs4-unsafe.
49463         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
49464         unistr/u8-mbtouc-unsafe.
49465
49466         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
49467         * modules/utf16-ucs4: Turn into a symbolic link to module
49468         unistr/u16-mbtouc.
49469
49470         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
49471         utf16-ucs4-unsafe.
49472         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
49473         unistr/u16-mbtouc-unsafe.
49474
49475         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
49476         * modules/ucs4-utf8: Turn into a symbolic link to module
49477         unistr/u8-ubtomb.
49478
49479         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
49480         * modules/ucs4-utf16: Turn into a symbolic link to module
49481         unistr/u16-ubtomb.
49482
49483 2007-03-24  Bruno Haible  <bruno@clisp.org>
49484
49485         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
49486         Enable the function only if HAVE_INLINE.
49487         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
49488         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
49489         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
49490         Enable the function only if HAVE_INLINE.
49491         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
49492         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
49493         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
49494         Enable the function only if HAVE_INLINE.
49495         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
49496         Enable the function only if HAVE_INLINE.
49497         * modules/utf8-ucs4: Update.
49498         * modules/utf8-ucs4-unsafe: Update.
49499         * modules/utf16-ucs4: Update.
49500         * modules/utf16-ucs4-unsafe: Update.
49501         * modules/ucs4-utf8: Update.
49502         * modules/ucs4-utf16: Update.
49503
49504 2007-03-24  Bruno Haible  <bruno@clisp.org>
49505
49506         * lib/utf8-ucs4.h: Remove file.
49507         * lib/utf8-ucs4-unsafe.h: Remove file.
49508         * lib/utf16-ucs4.h: Remove file.
49509         * lib/utf16-ucs4-unsafe.h: Remove file.
49510         * lib/ucs4-utf8.h: Remove file.
49511         * lib/ucs4-utf16.h: Remove file.
49512         * lib/unistr.h: Include their previous contents.
49513         * m4/utf-ucs4.m4: Remove file.
49514         * m4/ucs4-utf.m4: Remove file.
49515         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
49516         (Depends-on): Add unistr/base.
49517         (configure.ac): Remove gl_UTF_UCS4.
49518         (Makefile.am): Update.
49519         (Include): Change to unistr.h.
49520         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
49521         (Depends-on): Add unistr/base.
49522         (configure.ac): Remove gl_UTF_UCS4.
49523         (Makefile.am): Update.
49524         (Include): Change to unistr.h.
49525         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
49526         (Depends-on): Add unistr/base.
49527         (configure.ac): Remove gl_UTF_UCS4.
49528         (Makefile.am): Update.
49529         (Include): Change to unistr.h.
49530         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
49531         (Depends-on): Add unistr/base.
49532         (configure.ac): Remove gl_UTF_UCS4.
49533         (Makefile.am): Update.
49534         (Include): Change to unistr.h.
49535         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
49536         (Depends-on): Add unistr/base.
49537         (configure.ac): Remove gl_UCS4_UTF.
49538         (Makefile.am): Update.
49539         (Include): Change to unistr.h.
49540         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
49541         (Depends-on): Add unistr/base.
49542         (configure.ac): Remove gl_UCS4_UTF.
49543         (Makefile.am): Update.
49544         (Include): Change to unistr.h.
49545         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
49546         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
49547         utf8-ucs4-unsafe.h.
49548         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
49549         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
49550         utf16-ucs4-unsafe.h.
49551         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
49552         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
49553         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
49554         * lib/unistr/u8-strchr.c: Likewise.
49555         * lib/unistr/u8-strrchr.c: Likewise.
49556         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
49557         * lib/unistr/u16-strchr.c: Likewise.
49558         * lib/unistr/u16-strrchr.c: Likewise.
49559         * lib/striconveh.c: Update.
49560         * lib/linebreak.c: Update.
49561
49562 2007-03-24  Bruno Haible  <bruno@clisp.org>
49563
49564         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
49565         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
49566
49567 2007-03-22  Bruno Haible  <bruno@clisp.org>
49568
49569         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
49570
49571 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
49572
49573         * MODULES.html.sh (File system functions): New module write-any-file.
49574         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
49575         * m4/write-any-file.m4: New files.
49576
49577 2007-03-23  Eric Blake  <ebb9@byu.net>
49578
49579         * gnulib-tool: Rearrange space-tab sequences, since some editors
49580         like to eat them.
49581
49582 2007-03-23  Eric Blake  <ebb9@byu.net>
49583
49584         * lib/version-etc.c (version_etc_va): Update license wording to
49585         be more concise.  Recommended by Richard Stallman.
49586
49587 2007-03-22  Bruno Haible  <bruno@clisp.org>
49588
49589         * lib/poll.c (MSG_PEEK): New fallback definition.
49590
49591 2007-03-22  Bruno Haible  <bruno@clisp.org>
49592
49593         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
49594         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
49595         (main): Update.
49596         Fixes a compilation error on BeOS.
49597
49598 2007-03-22  Bruno Haible  <bruno@clisp.org>
49599
49600         * modules/frexpl-tests: New file.
49601         * tests/test-frexpl.c: New file.
49602
49603         * modules/frexpl: New file.
49604         * m4/frexpl.m4: New file.
49605         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
49606         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
49607         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
49608         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
49609         (Depends-on): Add frexpl. Remove isnanl-nolibm.
49610         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
49611
49612 2007-03-22  Bruno Haible  <bruno@clisp.org>
49613
49614         * lib/frexpl.c: Share code with lib/frexp.c.
49615         * modules/mathl (Files): Add lib/frexp.c.
49616         (Depends-on): Add isnanl-nolibm.
49617
49618 2007-03-22  Bruno Haible  <bruno@clisp.org>
49619
49620         * modules/printf-frexp (Files): Add m4/frexp.m4.
49621         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
49622         only if the found frexp function actually works.
49623
49624 2007-03-22  Bruno Haible  <bruno@clisp.org>
49625
49626         * lib/frexp.c: Remove older implementation that uses divisions.
49627
49628 2007-03-21  Bruno Haible  <bruno@clisp.org>
49629
49630         * modules/frexp-tests: New file.
49631         * tests/test-frexp.c: New file.
49632
49633         * modules/frexp: New file.
49634         * lib/frexp.c: New file.
49635         * m4/frexp.m4: New file.
49636         * lib/math_.h (frexp): New declaration.
49637         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
49638         REPLACE_FREXP.
49639         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
49640
49641 2007-03-21  Bruno Haible  <bruno@clisp.org>
49642
49643         * modules/isnanl-tests: New file.
49644         * tests/test-isnanl.c: New file.
49645
49646         * modules/isnanl: New file.
49647         * lib/isnanl.h: New file.
49648         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
49649         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
49650         gl_FUNC_ISNANL_WORKS.
49651         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
49652         New macros.
49653
49654 2007-03-21  Bruno Haible  <bruno@clisp.org>
49655
49656         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
49657         lib/isnanl.h.
49658         (Include): Update.
49659         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
49660         * lib/vasnprintf.c: Update.
49661         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
49662         tests/test-isnanl.h, remove tests/test-isnanl.c.
49663         (Makefile.am): Update.
49664         * tests/test-isnanl-nolibm.c: New file.
49665         * tests/test-isnanl.h: New file.
49666         * tests/test-isnanl.c: Remove file.
49667
49668 2007-03-21  Jim Meyering  <jim@meyering.net>
49669
49670         When trying to open ".", treat ESTALE like EACCES.
49671         * lib/savewd.c (savewd_save): Resort to forking not just upon
49672         failure with EACCES, but also when errno is ESTALE.
49673
49674 2007-03-20  Bruno Haible  <bruno@clisp.org>
49675
49676         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
49677         Needed on AIX 5.1. Reported by Matthew Woehlke.
49678
49679 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
49680
49681         Suggestions by Bruno Haible:
49682         * lib/acl-internal.h: Include "gettext.h" rather than rolling
49683         our own.
49684         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
49685         * modules/acl (Depends-on): Add gettext.
49686
49687 2007-03-19  Bruno Haible  <bruno@clisp.org>
49688
49689         * modules/iconvme: Remove file.
49690         * lib/iconvme.h: Remove file.
49691         * lib/iconvme.c: Remove file.
49692         * m4/iconvme.m4: Remove file.
49693
49694 2007-03-19  Bruno Haible  <bruno@clisp.org>
49695
49696         * doc/relocatable-maint.texi: Break long shell script line.
49697         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
49698
49699 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
49700
49701         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
49702         handle file_has_acl.
49703         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
49704         * lib/acl.c: Move header inclusions and related macro defns into
49705         lib/acl-internal.h.
49706         (S_ISLNK): Remove defn, since that's now done for us.
49707         (file_has_acl): Move to lib/file-has-acl.c.
49708         Call acl_trivial if available.  This is the crucial part of the fix.
49709         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
49710         shared within the library.  Rewrite a bit, partly to make it compatible
49711         with the GNU coding style.
49712         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
49713         Remove unnecessary double-quotes.
49714         Don't test for acl_to_text; the build will catch that.
49715         Replace acl_entries if it doesn't exist and it is needed.
49716         Check for -lsec and acl_trivial (as used on Solaris 10).
49717         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
49718         lib/file-has-acl.c.
49719         (Depends-on): Add sys_stat, for S_ISLNK.
49720
49721 2007-03-19  Ben Pfaff  <blp@gnu.org>
49722
49723         * doc/gnulib.texi: Fix typos.
49724         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
49725
49726 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
49727
49728         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
49729         If size is zero here, buf must be zero.
49730
49731 2007-03-19  Simon Josefsson  <simon@josefsson.org>
49732
49733         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
49734         <bruno@clisp.org>.
49735
49736 2007-03-18  Bruno Haible  <bruno@clisp.org>
49737
49738         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
49739         Suggested by Eric Blake.
49740
49741 2007-03-18  Ben Pfaff  <blp@gnu.org>
49742
49743         * doc/relocatable.texi: Recommend using as prefix a directory
49744         that does not exist and will never be created.  Based on
49745         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
49746         and others.
49747
49748 2007-03-17  Bruno Haible  <bruno@clisp.org>
49749
49750         * lib/fchownat.c: Include lchown.h.
49751
49752 2007-03-17  Bruno Haible  <bruno@clisp.org>
49753
49754         Fix endless loop when the given allocated size was > INT_MAX.
49755         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
49756         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
49757         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
49758         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
49759         * lib/sprintf.c (sprintf): Likewise.
49760
49761 2007-03-17  Bruno Haible  <bruno@clisp.org>
49762
49763         * tests/test-argp-2.sh (func_compare): Output a context diff.
49764
49765 2007-03-17  Bruno Haible  <bruno@clisp.org>
49766
49767         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
49768         locale's decimal-point character.
49769
49770 2007-03-17  Bruno Haible  <bruno@clisp.org>
49771
49772         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
49773         before comparing it. Needed because on some platforms (e.g. x86) a
49774         'long double' occupies less bytes than sizeof (long double).
49775
49776 2007-03-17  Bruno Haible  <bruno@clisp.org>
49777
49778         * tests/test-crc.c (main): Make printf statements 64-bit clean.
49779         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
49780         * tests/test-getaddrinfo.c (simple): Likewise.
49781         * tests/test-read-file.c (main): Likewise.
49782
49783 2007-03-17  Bruno Haible  <bruno@clisp.org>
49784
49785         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
49786
49787 2007-03-17  Bruno Haible  <bruno@clisp.org>
49788
49789         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
49790         unused variable.
49791
49792 2007-03-17  Bruno Haible  <bruno@clisp.org>
49793
49794         * tests/test-c-strcasecmp.c: Include c-strcase.h.
49795         * tests/test-c-strncasecmp.c: Likewise.
49796
49797 2007-03-17  Bruno Haible  <bruno@clisp.org>
49798
49799         * modules/stdlib (Depends-on): Add unistd.
49800         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
49801         Needed for MacOS X 10.3.
49802
49803 2007-03-17  Bruno Haible  <bruno@clisp.org>
49804
49805         * lib/unistr/u-strdup.h: Include <stdlib.h>.
49806
49807 2007-03-17  Bruno Haible  <bruno@clisp.org>
49808
49809         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
49810
49811 2007-03-17  Bruno Haible  <bruno@clisp.org>
49812
49813         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
49814         to reflect files copied from gnulib (with or without modifications).
49815         Suggested by Jim Meyering.
49816
49817 2007-03-17  Eric Blake  <ebb9@byu.net>
49818
49819         * NEWS: Document stdlib change from 2007-02-18.
49820
49821 2007-03-17  Jim Meyering  <jim@meyering.net>
49822
49823         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
49824         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
49825         someone uses a name containing shell meta-characters.
49826         Reported by Alfred M. Szmidt.
49827
49828         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
49829
49830 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
49831
49832         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
49833         and copy gettext configuration files only if configure.ac contains
49834         a use of AM_GNU_GETTEXT_VERSION.
49835
49836 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
49837
49838         * build-aux/bootstrap (gnulib_name): New variable.
49839         (gnulib_tool_options): Use it.
49840
49841 2007-03-13  Simon Josefsson  <simon@josefsson.org>
49842
49843         * tests/test-des.c: Use new namespace.
49844
49845 2007-03-15  Bruno Haible  <bruno@clisp.org>
49846
49847         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
49848         Reported by James Youngman <jay@gnu.org>.
49849
49850 2007-03-15  Bruno Haible  <bruno@clisp.org>
49851
49852         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
49853         declared prototype. Needed with cc on OSF/1 5.1.
49854
49855 2007-03-15  Bruno Haible  <bruno@clisp.org>
49856
49857         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
49858         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
49859         (struct gl_list_implementation): Add dispose_fn argument to the
49860         'create_empty', 'create' methods.
49861         (struct gl_list_impl_base): Add field 'dispose_fn'.
49862         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
49863         argument.
49864         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
49865         dispose_fn argument.
49866         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
49867         dispose_fn on the dropped values.
49868         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
49869         dispose_fn argument.
49870         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
49871         dropped values.
49872         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
49873         (gl_tree_remove_node): Call dispose_fn on the dropped value.
49874         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
49875         (gl_tree_remove_node): Call dispose_fn on the dropped value.
49876         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
49877         argument.
49878         (gl_tree_list_free): Call dispose_fn on the dropped values.
49879         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
49880         the dropped values.
49881         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
49882         Add dispose_fn argument.
49883         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
49884         Call dispose_fn on the dropped values.
49885         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
49886         Add dispose_fn argument.
49887         (gl_sublist_create): Initialize the 'dispose_fn' field.
49888         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
49889         * tests/test-array_list.c (main): Update.
49890         * tests/test-carray_list.c (main): Update.
49891         * tests/test-avltree_list.c (main): Update.
49892         * tests/test-rbtree_list.c (main): Update.
49893         * tests/test-avltreehash_list.c (main): Update.
49894         * tests/test-rbtreehash_list.c (main): Update.
49895         * tests/test-linked_list.c (main): Update.
49896         * tests/test-linkedhash_list.c (main): Update.
49897         * tests/test-array_oset.c (main): Update.
49898
49899 2007-03-15  Bruno Haible  <bruno@clisp.org>
49900
49901         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
49902         (gl_oset_create_empty): Add dispose_fn argument.
49903         (struct gl_oset_implementation): Add dispose_fn argument to
49904         'create_empty' method.
49905         (struct gl_oset_impl_base): Add dispose_fn field.
49906         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
49907         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
49908         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
49909         values.
49910         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
49911         (gl_tree_oset_free): Call dispose_fn on the dropped values.
49912         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
49913         dropped value.
49914         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
49915         dropped value.
49916         * tests/test-array_oset.c (main): Update.
49917         * tests/test-avltree_oset.c (main): Update.
49918         * tests/test-rbtree_oset.c (main): Update.
49919         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
49920
49921 2007-03-13  Bruno Haible  <bruno@clisp.org>
49922
49923         * tests/test-stdbool.c (i): Update after last patch.
49924
49925 2007-03-12  Bruno Haible  <bruno@clisp.org>
49926
49927         * lib/quotearg.c: Include <wctype.h> early, before the definition of
49928         the iswprint macro. Needed on Solaris 2.5.1.
49929
49930 2007-03-12  Bruno Haible  <bruno@clisp.org>
49931
49932         * tests/test-printf-frexp.c (main): Declare x as volatile.
49933
49934 2007-03-12  Simon Josefsson  <simon@josefsson.org>
49935
49936         * doc/gnulib.texi (Build robot for gnulib): New section.
49937
49938 2007-03-12  Jim Meyering  <jim@meyering.net>
49939
49940         * build-aux/bootstrap: New file.
49941         * build-aux/bootstrap.conf: New file, from coreutils.
49942
49943 2007-03-11  Bruno Haible  <bruno@clisp.org>
49944
49945         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
49946
49947 2007-03-12  Simon Josefsson  <simon@josefsson.org>
49948
49949         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
49950         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
49951         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
49952
49953 2007-03-11  Bruno Haible  <bruno@clisp.org>
49954
49955         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
49956         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
49957
49958 2007-03-11  Bruno Haible  <bruno@clisp.org>
49959
49960         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
49961         formula. Needed for SunPRO C 5.0.
49962
49963 2007-03-11  Bruno Haible  <bruno@clisp.org>
49964
49965         * modules/long-options (Depends-on): Add getopt.
49966
49967 2007-03-11  Bruno Haible  <bruno@clisp.org>
49968
49969         * modules/modechange (Depends-on): Add stdbool.
49970
49971 2007-03-11  Bruno Haible  <bruno@clisp.org>
49972
49973         * modules/i-ring (Depends-on): Add stdbool.
49974
49975 2007-03-11  Bruno Haible  <bruno@clisp.org>
49976
49977         * modules/gc-des (Depends-on): Add stdbool.
49978
49979 2007-03-11  Bruno Haible  <bruno@clisp.org>
49980
49981         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
49982
49983 2007-03-11  Bruno Haible  <bruno@clisp.org>
49984
49985         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
49986
49987 2007-03-11  Bruno Haible  <bruno@clisp.org>
49988
49989         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
49990
49991 2007-03-11  Bruno Haible  <bruno@clisp.org>
49992
49993         * lib/vasnprintf.c (sprintf): Undefine.
49994
49995 2007-03-11  Bruno Haible  <bruno@clisp.org>
49996
49997         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
49998         initializers in SunPRO C and Compaq C compilers.
49999
50000 2007-03-11  Bruno Haible  <bruno@clisp.org>
50001
50002         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
50003         decrementing code ANSI C compliant.
50004
50005 2007-03-11  Bruno Haible  <bruno@clisp.org>
50006
50007         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
50008         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
50009
50010 2007-03-11  Bruno Haible  <bruno@clisp.org>
50011
50012         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
50013         <stdbool.h> substitute doesn't pass.
50014
50015 2007-03-11  Bruno Haible  <bruno@clisp.org>
50016
50017         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
50018
50019 2007-03-11  Bruno Haible  <bruno@clisp.org>
50020
50021         * gnulib-tool (func_create_megatestdir): Create also an autobuild
50022         script, for submission to autobuild.josefsson.org.
50023
50024 2007-03-10  Bruno Haible  <bruno@clisp.org>
50025
50026         * modules/canonicalize-lgpl-tests: New file.
50027         * tests/test-canonicalize-lgpl.sh: New file.
50028         * tests/test-canonicalize-lgpl.c: New file.
50029
50030         * modules/c-strcase-tests: New file.
50031         * tests/test-c-strcase.sh: New file.
50032         * tests/test-c-strcasecmp.c: New file.
50033         * tests/test-c-strncasecmp.c: New file.
50034
50035         * modules/atexit-tests: New file.
50036         * tests/test-atexit.sh: New file.
50037         * tests/test-atexit.c: New file.
50038
50039 2007-03-10  Bruno Haible  <bruno@clisp.org>
50040
50041         * tests/test-binary-io.sh: Use temporary filenames that are not so
50042         likely to clash with those of other tests (in a parallel make).
50043         * tests/test-binary-io.c: Likewise.
50044
50045 2007-03-10  Bruno Haible  <bruno@clisp.org>
50046
50047         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
50048         fallback; use #error instead.
50049         Suggested by Simon Josefsson.
50050
50051 2007-03-10  Bruno Haible  <bruno@clisp.org>
50052
50053         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
50054         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
50055         first and the last.
50056
50057 2007-03-10  Bruno Haible  <bruno@clisp.org>
50058
50059         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
50060
50061 2007-03-10  Bruno Haible  <bruno@clisp.org>
50062
50063         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
50064         "make distcheck".
50065         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
50066         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
50067         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
50068
50069 2007-03-10  Bruno Haible  <bruno@clisp.org>
50070
50071         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
50072         variable.
50073         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
50074         variable.
50075
50076 2007-03-09  Eric Blake  <ebb9@byu.net>
50077         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
50078
50079         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
50080         types are not being provided by gnulib.
50081         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
50082         types are supported.
50083
50084 2007-03-10  Bruno Haible  <bruno@clisp.org>
50085
50086         * lib/stdio_.h (__attribute__): New macro.
50087         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
50088         vsprintf): Specify __attribute__ __format__ for GCC.
50089         Suggested by Eric Blake.
50090
50091 2007-03-09  Bruno Haible  <bruno@clisp.org>
50092
50093         * modules/printf-posix-tests: New file.
50094         * tests/test-printf-posix.sh: New file.
50095         * tests/test-printf-posix.c: New file.
50096
50097         * modules/printf-posix: New file.
50098         * lib/printf.c: New file.
50099         * m4/printf-posix-rpl.m4: New file.
50100         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
50101         REPLACE_PRINTF.
50102         * lib/stdio_.h (printf): New declaration.
50103         (format, __format__, ____printf____, ____scanf____, ____strftime____,
50104         ____strfmon____): New macros.
50105         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
50106         REPLACE_PRINTF.
50107
50108 2007-03-09  Bruno Haible  <bruno@clisp.org>
50109
50110         * tests/test-vasnprintf-posix2.sh: New file.
50111         * tests/test-vasnprintf-posix2.c: New file.
50112         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
50113         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
50114         (Makefile.am): Activate test-vasnprintf-posix2.sh.
50115
50116         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
50117         a locale dependent decimal point, rather than always '.'.
50118
50119 2007-03-09  Eric Blake  <ebb9@byu.net>
50120
50121         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
50122         spite of platforms like Tandem/NSK that define it to -1.
50123
50124 2007-03-08  Bruno Haible  <bruno@clisp.org>
50125
50126         * modules/vprintf-posix-tests: New file.
50127         * tests/test-vprintf-posix.sh: New file.
50128         * tests/test-vprintf-posix.c: New file.
50129         * tests/test-printf-posix.h: New file.
50130
50131         * modules/vprintf-posix: New file.
50132         * lib/vprintf.c: New file.
50133         * m4/vprintf-posix.m4: New file.
50134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
50135         REPLACE_VPRINTF.
50136         * lib/stdio_.h (vprintf): New declaration.
50137         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
50138         REPLACE_VPRINTF.
50139
50140 2007-03-08  Bruno Haible  <bruno@clisp.org>
50141
50142         * modules/fprintf-posix-tests: New file.
50143         * tests/test-fprintf-posix.sh: New file.
50144         * tests/test-fprintf-posix.c: New file.
50145
50146         * modules/fprintf-posix: New file.
50147         * lib/fprintf.c: New file.
50148         * m4/fprintf-posix.m4: New file.
50149         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
50150         REPLACE_FPRINTF.
50151         * lib/stdio_.h (fprintf): New declaration.
50152         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
50153         REPLACE_FPRINTF.
50154
50155 2007-03-08  Bruno Haible  <bruno@clisp.org>
50156
50157         * modules/vfprintf-posix-tests: New file.
50158         * tests/test-vfprintf-posix.sh: New file.
50159         * tests/test-vfprintf-posix.c: New file.
50160         * tests/test-fprintf-posix.h: New file.
50161         * tests/test-fprintf-posix.out: New file.
50162
50163         * modules/vfprintf-posix: New file.
50164         * lib/vfprintf.c: New file.
50165         * m4/vfprintf-posix.m4: New file.
50166         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
50167         REPLACE_VFPRINTF.
50168         * lib/stdio_.h (vfprintf): New declaration.
50169         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
50170         REPLACE_VFPRINTF.
50171
50172 2007-03-08  Bruno Haible  <bruno@clisp.org>
50173
50174         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
50175
50176 2007-03-08  Bruno Haible  <bruno@clisp.org>
50177
50178         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
50179         instead of 'expr' invocations.
50180         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50181         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50182         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50183         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50184         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50185         Suggested by Paul Eggert.
50186
50187 2007-03-08  Bruno Haible  <bruno@clisp.org>
50188
50189         * modules/fseterr-tests: New file.
50190         * tests/test-fseterr.c: New file.
50191
50192         * modules/fseterr: New file.
50193         * lib/fseterr.h: New file.
50194         * lib/fseterr.c: New file.
50195
50196 2007-03-08  Bruno Haible  <bruno@clisp.org>
50197
50198         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
50199         * lib/getopt_.h: Likewise.
50200         * lib/mbswidth.h: Likewise.
50201         * lib/setenv.h: Likewise.
50202         * lib/vasnprintf.h: Likewise.
50203         * lib/vasprintf.h: Likewise.
50204         * lib/verror.h: Likewise.
50205         * lib/xsetenv.h: Likewise.
50206         * lib/xvasprintf.h: Likewise.
50207
50208 2007-03-08  Jim Meyering  <jim@meyering.net>
50209
50210         * users.txt: Add parted.
50211
50212         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
50213
50214 2007-03-07  Bruno Haible  <bruno@clisp.org>
50215
50216         * m4/printf.m4: Make the shell script snippets copy&pastable.
50217
50218 2007-03-02  Bruno Haible  <bruno@clisp.org>
50219
50220         * lib/netinet_in_.h: New file.
50221         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
50222         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
50223         * modules/netinet_in (Files): Add lib/netinet_in_.h.
50224         (Depends-on): Add absolute-header.
50225         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
50226         into netinet/in.h.
50227
50228 2007-03-03  Bruno Haible  <bruno@clisp.org>
50229
50230         * lib/sys_select_.h: New file.
50231         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
50232         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
50233         * modules/sys_select (Files): Add lib/sys_select_.h.
50234         (Depends-on): Add absolute-header.
50235         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
50236         into sys/select.h.
50237
50238 2007-03-02  Bruno Haible  <bruno@clisp.org>
50239
50240         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
50241         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
50242         values.
50243         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
50244         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
50245         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
50246         * modules/sys_socket (Depends-on): Add absolute-header.
50247         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
50248         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
50249         (Include): Remove requirement of inclusion of <sys/types.h>.
50250
50251 2007-03-02  Bruno Haible  <bruno@clisp.org>
50252
50253         * lib/byteswap_.h (bswap_32): Fix formula.
50254
50255 2007-03-06  Bruno Haible  <bruno@clisp.org>
50256
50257         * modules/sprintf-posix-tests: New file.
50258         * tests/test-sprintf-posix.c: New file.
50259
50260         * modules/sprintf-posix: New file.
50261         * lib/sprintf.c: New file.
50262         * m4/sprintf-posix.m4: New file.
50263         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
50264         REPLACE_SPRINTF.
50265         * lib/stdio_.h (sprintf): New declaration.
50266         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
50267         REPLACE_SPRINTF.
50268
50269 2007-03-06  Bruno Haible  <bruno@clisp.org>
50270
50271         * modules/vsprintf-posix-tests: New file.
50272         * tests/test-vsprintf-posix.c: New file.
50273         * tests/test-sprintf-posix.h: New file.
50274
50275         * modules/vsprintf-posix: New file.
50276         * lib/vsprintf.c: New file.
50277         * m4/vsprintf-posix.m4: New file.
50278         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
50279         REPLACE_VSPRINTF.
50280         * lib/stdio_.h (vsprintf): New declaration.
50281         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
50282         REPLACE_VSPRINTF.
50283
50284 2007-03-06  Bruno Haible  <bruno@clisp.org>
50285
50286         * modules/vsnprintf (Depend-on): Remove minmax.
50287
50288 2007-03-06  Bruno Haible  <bruno@clisp.org>
50289
50290         * modules/snprintf-posix-tests: New file.
50291         * tests/test-snprintf-posix.c: New file.
50292
50293         * modules/snprintf-posix: New file.
50294         * m4/snprintf-posix.m4: New file.
50295         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
50296         gl_FUNC_SNPRINTF.
50297         (gl_FUNC_SNPRINTF): Invoke it.
50298         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
50299         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
50300         is set.
50301         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
50302
50303 2007-03-06  Bruno Haible  <bruno@clisp.org>
50304
50305         * modules/vsnprintf-posix-tests: New file.
50306         * tests/test-vsnprintf-posix.c: New file.
50307         * tests/test-snprintf-posix.h: New file.
50308
50309         * modules/vsnprintf-posix: New file.
50310         * m4/vsnprintf-posix.m4: New file.
50311         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
50312         gl_FUNC_VSNPRINTF.
50313         (gl_FUNC_VSNPRINTF): Invoke it.
50314         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
50315         * lib/stdio_.h (vsnprintf): Define as a replacement if
50316         REPLACE_VSNPRINTF is set.
50317         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
50318
50319 2007-03-06  Bruno Haible  <bruno@clisp.org>
50320
50321         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
50322         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
50323
50324 2007-03-06  Bruno Haible  <bruno@clisp.org>
50325
50326         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
50327         (asinl): Declare also if HAVE_DECL_ASINL is set.
50328         (atanl): Declare also if HAVE_DECL_ATANL is set.
50329         (ceill): Declare also if HAVE_DECL_CEILL is set.
50330         (cosl): Declare also if HAVE_DECL_COSL is set.
50331         (expl): Declare also if HAVE_DECL_EXPL is set.
50332         (floorl): Declare also if HAVE_DECL_FLOORL is set.
50333         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
50334         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
50335         (logl): Declare also if HAVE_DECL_LOGL is set.
50336         (sinl): Declare also if HAVE_DECL_SINL is set.
50337         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
50338         (tanl): Declare also if HAVE_DECL_TANL is set.
50339         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
50340         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
50341         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
50342         declaration of frexpl, ldexpl.
50343         * modules/printf-frexpl (Depends-on): Add math.
50344         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
50345
50346 2007-03-05  Bruno Haible  <bruno@clisp.org>
50347
50348         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
50349         frexpl and ldexpl are declared.
50350         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
50351
50352 2007-03-05  Bruno Haible  <bruno@clisp.org>
50353
50354         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
50355         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
50356
50357 2007-03-05  Bruno Haible  <bruno@clisp.org>
50358
50359         * lib/stdio_.h: Include <stddef.h>.
50360
50361 2007-03-05  Bruno Haible  <bruno@clisp.org>
50362
50363         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
50364
50365 2007-03-05  Bruno Haible  <bruno@clisp.org>
50366
50367         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
50368         NetBSD 4, from Ralf Wildenhues.
50369
50370 2007-03-04  Bruno Haible  <bruno@clisp.org>
50371
50372         * lib/vasprintf.h: Update #if logic for the case when the functions
50373         exist but are overridden.
50374
50375 2007-03-04  Bruno Haible  <bruno@clisp.org>
50376
50377         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
50378         implementations: glibc-2.4 and MacOS X 10.3.
50379         * tests/test-vasnprintf-posix.c (test_function): Test also the case
50380         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
50381         * tests/test-vasprintf-posix.c (test_function): Likewise.
50382
50383 2007-03-04  Bruno Haible  <bruno@clisp.org>
50384
50385         * modules/vasprintf-posix-tests: New file.
50386         * tests/test-vasprintf-posix.c: New file.
50387
50388         * modules/vasprintf-posix: New file.
50389         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
50390         defined.
50391         * m4/vasprintf-posix.m4: New file.
50392         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
50393         gl_FUNC_VASPRINTF.
50394         (gl_FUNC_VASPRINTF): Invoke it.
50395         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
50396         here.
50397         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
50398
50399 2007-03-04  Bruno Haible  <bruno@clisp.org>
50400
50401         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
50402         REPLACE_GETTIMEOFDAY.
50403         * modules/sys_time (Makefile.am): Likewise.
50404         * m4/sys_time_h.m4: Likewise.
50405         * m4/gettimeofday.m4: Likewise.
50406
50407 2007-03-04  Bruno Haible  <bruno@clisp.org>
50408
50409         * modules/vasnprintf-posix-tests: New file.
50410         * tests/test-vasnprintf-posix.c: New file.
50411
50412         * modules/vasnprintf-posix: New file.
50413         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
50414         printf-frexpl.h.
50415         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
50416         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
50417         REPLACE_VASNPRINTF is defined.
50418         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
50419         gl_FUNC_VASNPRINTF.
50420         (gl_FUNC_VASNPRINTF): Invoke it.
50421         * m4/vasnprintf-posix.m4: New file.
50422         * m4/printf.m4: New file.
50423
50424 2007-03-04  Bruno Haible  <bruno@clisp.org>
50425
50426         Compile progreloc.c only if --enable-relocatable is specified.
50427         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
50428         if --enable-relocatable was specified.
50429         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
50430         lib_SOURCES.
50431
50432 2007-03-04  Jim Meyering  <jim@meyering.net>
50433
50434         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
50435         Use it consistently, rather than enumerating errno constants.
50436
50437 2007-03-04  Bruno Haible  <bruno@clisp.org>
50438
50439         * modules/xvasprintf-tests: New file.
50440         * tests/test-xvasprintf.c: New file.
50441
50442         * modules/vasprintf-tests: New file.
50443         * tests/test-vasprintf.c: New file.
50444
50445         * modules/vasnprintf-tests: New file.
50446         * tests/test-vasnprintf.c: New file.
50447
50448         * modules/vsnprintf-tests: New file.
50449         * tests/test-vsnprintf.c: New file.
50450
50451         * modules/snprintf-tests: New file.
50452         * tests/test-snprintf.c: New file.
50453
50454 2007-03-04  Bruno Haible  <bruno@clisp.org>
50455
50456         Compile relocatable.c only if --enable-relocatable is specified.
50457         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
50458         gl_RELOCATABLE_LIBRARY.
50459         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
50460         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
50461         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
50462         gl_RELOCATABLE_LIBRARY.
50463         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
50464         (Makefile.am): Remove lib_SOURCES.
50465         * modules/relocatable-lib-lgpl (configure.ac): Invoke
50466         gl_RELOCATABLE_LIBRARY.
50467         (Makefile.am): Remove lib_SOURCES.
50468         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
50469         always.
50470         * modules/relocatable-prog-wrapper (configure.ac): Invoke
50471         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
50472
50473 2007-03-04  Bruno Haible  <bruno@clisp.org>
50474
50475         * modules/argmatch-tests: New file.
50476         * tests/test-argmatch.c: New file.
50477
50478         * tests/test-allocsa.c (main): Halve the number of loop runs.
50479
50480         * modules/alloca-opt-tests: New file.
50481         * tests/test-alloca-opt.c: New file.
50482
50483 2007-03-04  Jim Meyering  <jim@meyering.net>
50484
50485         Work around difference between Linux ACLs and Solaris 10 ZFS.
50486         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
50487         for EINVAL.
50488
50489 2007-03-03  Bruno Haible  <bruno@clisp.org>
50490
50491         * modules/relocatable-prog (Depends-on): Add back progreloc's
50492         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
50493
50494 2007-03-03  Bruno Haible  <bruno@clisp.org>
50495
50496         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
50497         * modules/relocatable-lib: New file.
50498
50499 2007-03-03  Bruno Haible  <bruno@clisp.org>
50500
50501         * modules/relocatable-prog: Renamed from modules/relocatable.
50502         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
50503
50504 2007-03-03  Bruno Haible  <bruno@clisp.org>
50505
50506         * modules/relocatable-script (Files): Add doc/relocatable.texi,
50507         m4/relocatable-lib.m4.
50508         (Depends-on): Remove 'relocatable'.
50509         (configure.ac): Add gl_RELOCATABLE_NOP.
50510
50511 2007-03-03  Bruno Haible  <bruno@clisp.org>
50512
50513         * modules/relocatable-prog-wrapper: New file.
50514         * modules/relocatable (Depends-on): Add it. Remove all other
50515         dependencies except progname.
50516         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
50517
50518         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
50519         (gl_FUNC_STRERROR): Nop.
50520         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
50521
50522         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
50523         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
50524
50525         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
50526         (gl_FUNC_READLINK): Update.
50527
50528         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
50529
50530 2007-03-03  Bruno Haible  <bruno@clisp.org>
50531
50532         * lib/xreadlink.c: Include <unistd.h> unconditionally.
50533         * modules/xreadlink (Depends-on): Add unistd.
50534         * modules/xreadlink-with-size (Depends-on): Likewise.
50535
50536 2007-03-03  Bruno Haible  <bruno@clisp.org>
50537
50538         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
50539         extracted from gt_FUNC_SETENV.
50540         (gt_FUNC_SETENV): Remove macro.
50541         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
50542         remove gt_FUNC_SETENV.
50543
50544 2007-03-03  Bruno Haible  <bruno@clisp.org>
50545
50546         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
50547         ENABLE_RELOCATABLE here.
50548         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
50549
50550 2007-03-03  Bruno Haible  <bruno@clisp.org>
50551
50552         * modules/rbtreehash-list-tests (Depends-on): Add progname.
50553         * tests/test-rbtreehash_list.c: Include progname.h.
50554         (main): Call set_program_name.
50555
50556         * modules/rbtree-oset-tests (Depends-on): Add progname.
50557         * tests/test-rbtree_oset.c: Include progname.h.
50558         (main): Call set_program_name.
50559
50560         * modules/rbtree-list-tests (Depends-on): Add progname.
50561         * tests/test-rbtree_list.c: Include progname.h.
50562         (main): Call set_program_name.
50563
50564         * modules/linked-list-tests (Depends-on): Add progname.
50565         * tests/test-linked_list.c: Include progname.h.
50566         (main): Call set_program_name.
50567
50568 2007-03-03  Bruno Haible  <bruno@clisp.org>
50569
50570         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
50571         All uses of __restrict changed to _Restrict_.
50572         * lib/glob_.h (__restrict): Remove macro.
50573
50574 2007-03-02  Bruno Haible  <bruno@clisp.org>
50575
50576         * modules/gettext (configure.ac): Require gettext infrastructure
50577         from version 0.16.1.
50578
50579 2007-03-02  Bruno Haible  <bruno@clisp.org>
50580
50581         * modules/linkedhash-list-tests (Depends-on): Add progname.
50582         * tests/test-linkedhash_list.c: Include progname.h.
50583         (main): Call set_program_name.
50584
50585         * modules/carray-list-tests (Depends-on): Add progname.
50586         * tests/test-carray_list.c: Include progname.h.
50587         (main): Call set_program_name.
50588
50589         * modules/avltreehash-list-tests (Depends-on): Add progname.
50590         * tests/test-avltreehash_list.c: Include progname.h.
50591         (main): Call set_program_name.
50592
50593         * modules/avltree-oset-tests (Depends-on): Add progname.
50594         * tests/test-avltree_oset.c: Include progname.h.
50595         (main): Call set_program_name.
50596
50597         * modules/avltree-list-tests (Depends-on): Add progname.
50598         * tests/test-avltree_list.c: Include progname.h.
50599         (main): Call set_program_name.
50600
50601         * modules/array-oset-tests (Depends-on): Add progname.
50602         * tests/test-array_oset.c: Include progname.h.
50603         (main): Call set_program_name.
50604
50605         * modules/array-list-tests (Depends-on): Add progname.
50606         * tests/test-array_list.c: Include progname.h.
50607         (main): Call set_program_name.
50608
50609         * modules/argp-tests (Depends-on): Add progname.
50610         * tests/test-argp.c: Include argp.h first. Include progname.h.
50611         (main): Call set_program_name.
50612
50613 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
50614
50615         * doc/gnulib-tool.texi (Initial import): Reword description of
50616         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
50617         limited effect even if defined after the first system include.
50618
50619 2007-03-01  Bruno Haible  <bruno@clisp.org>
50620
50621         * build-aux/config.libpath: Update to libtool-1.5.22.
50622         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50623
50624 2007-03-01  Bruno Haible  <bruno@clisp.org>
50625
50626         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
50627         foo_CFLAGS.
50628         Reported by Ralf Wildenhues.
50629
50630 2007-03-01  Bruno Haible  <bruno@clisp.org>
50631
50632         * build-aux/install-reloc: Remove object files left over by some
50633         compilers.
50634         Reported by Ralf Wildenhues.
50635
50636 2007-03-01  Bruno Haible  <bruno@clisp.org>
50637
50638         * build-aux/install-reloc: Break long lines.
50639
50640 2007-03-01  Bruno Haible  <bruno@clisp.org>
50641
50642         * doc/relocatable.texi: Document that it may not work on OpenBSD.
50643         Reported by Ralf Wildenhues.
50644
50645 2007-03-01  Bruno Haible  <bruno@clisp.org>
50646
50647         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
50648         include ordering constraints.
50649
50650 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
50651
50652         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
50653         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
50654         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
50655         as another example.
50656         * lib/time_.h: Fix misspelling.
50657         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
50658         Require gl_HEADER_TIME_H_DEFAULTS.
50659         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
50660         * m4/time_r.m4 (gl_TIME_R): Likewise.
50661         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
50662
50663 2007-03-01  Bruno Haible  <bruno@clisp.org>
50664
50665         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
50666         * m4/utimens.m4 (gl_UTIMENS): Likewise.
50667
50668 2007-03-01  Jim Meyering  <jim@meyering.net>
50669
50670         * modules/xreadlink (Maintainer): Add my name.
50671         * modules/xreadlink-with-size (Depends-on): Alphabetize.
50672
50673 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
50674             Bruno Haible  <bruno@clisp.org>
50675
50676         * build-aux/install-reloc: Compile also c-ctype.c.
50677         * build-aux/relocatable.sh.in: New file.
50678         * doc/relocatable.texi: New file.
50679         * doc/relocatable-maint.texi: New file.
50680         * doc/gnulib.texi: Include relocatable-maint.texi.
50681         * lib/progreloc.c: Include unistd.h unconditionally.
50682         * lib/relocwrapper.c: Include unistd.h unconditionally.
50683         Include c-ctype.h.
50684         (add_dotbin): Use c_tolower.
50685         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
50686         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
50687         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
50688         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
50689         to m4/relocatable-lib.m4.
50690         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
50691         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
50692         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
50693         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
50694         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
50695         * modules/relocatable: New file.
50696         * modules/relocatable-lib: New file.
50697         * modules/relocatable-script: New file.
50698
50699 2007-02-28  Bruno Haible  <bruno@clisp.org>
50700
50701         Import --enable-relocatable infrastructure.
50702         * build-aux/config.libpath: New file, from GNU gettext.
50703         * build-aux/install-reloc: New file, from GNU gettext.
50704         * build-aux/reloc-ldflags: New file, from GNU gettext.
50705         * lib/relocatable.h: New file, from GNU gettext.
50706         * lib/relocatable.c: New file, from GNU gettext.
50707         * lib/relocwrapper.c: New file, from GNU gettext.
50708         * m4/relocatable.m4: New file, from GNU gettext.
50709
50710 2007-02-28  Bruno Haible  <bruno@clisp.org>
50711
50712         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
50713
50714         * modules/xreadlink: New file, from GNU gettext with modifications.
50715         * lib/xreadlink.c: New file, from GNU gettext.
50716         * lib/xreadlink.h: Add comments.
50717         (xreadlink): New declaration.
50718
50719         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
50720         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
50721         lib/xreadlink-with-size.c.
50722         (configure.ac): Remove gl_XREADLINK invocation.
50723         (Makefile.am): Augment lib_SOURCES.
50724         * m4/xreadlink.m4: Remove file.
50725         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
50726         (xreadlink_with_size): Renamed from xreadink.
50727         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
50728         * modules/canonicalize (Depends-on): Replace xreadlink with
50729         xreadlink-with-size.
50730         * lib/canonicalize.c (canonicalize_filename_mode): Update.
50731
50732 2007-02-25  Jim Meyering  <jim@meyering.net>
50733
50734         * build-aux/announce-gen: When complaining about excess arguments,
50735         list them.
50736
50737 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
50738
50739         * README: Document signed integer overflow situation more
50740         accurately.
50741
50742 2007-02-25  Bruno Haible  <bruno@clisp.org>
50743
50744         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
50745         'a' or 'A' conversion.
50746
50747 2007-02-25  Bruno Haible  <bruno@clisp.org>
50748
50749         * modules/filename: Renamed from modules/pathname.
50750         (Files): Replace lib/pathname.h with lib/filename.h. Replace
50751         lib/concatpath.c with lib/concat-filename.c.
50752         (Makefile.am): Update.
50753         (Include): Replace pathname.h with filename.h.
50754         * lib/filename.h: Renamed from lib/pathname.h.
50755         (concatenated_filename): Renamed from concatenated_pathname.
50756         * lib/concat-filename.c: Renamed from lib/concatpath.c.
50757         (concatenated_filename): Renamed from concatenated_pathname.
50758         * lib/findprog.c: Include filename.h instead of pathname.h.
50759         (find_in_path): Update.
50760         * lib/javacomp.c: Include filename.h instead of pathname.h.
50761         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
50762         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
50763         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
50764         is_oldgcj_14_13_usable, is_javac_usable): Update.
50765         * lib/javaexec.c: Include filename.h instead of pathname.h.
50766         (execute_java_class): Update.
50767         * modules/findprog: Update.
50768         * modules/javacomp: Update.
50769         * modules/javaexec: Update.
50770         * MODULES.html.sh (File system functions): Add 'filename', remove
50771         'pathname'.
50772
50773 2007-02-25  Bruno Haible  <bruno@clisp.org>
50774
50775         * modules/printf-frexpl-tests: New file.
50776         * tests/test-printf-frexpl.c: New file.
50777
50778         * modules/printf-frexpl: New file.
50779         * lib/printf-frexpl.h: New file.
50780         * lib/printf-frexpl.c: New file.
50781         * m4/printf-frexpl.m4: New file.
50782
50783 2007-02-25  Bruno Haible  <bruno@clisp.org>
50784
50785         * modules/printf-frexp-tests: New file.
50786         * tests/test-printf-frexp.c: New file.
50787
50788         * modules/printf-frexp: New file.
50789         * lib/printf-frexp.h: New file.
50790         * lib/printf-frexp.c: New file.
50791         * m4/printf-frexp.m4: New file.
50792
50793 2007-02-25  Bruno Haible  <bruno@clisp.org>
50794
50795         Assume automake >= 1.10 for the tests.
50796         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
50797         * modules/arctwo-tests: Likewise.
50798         * modules/argp-tests: Likewise.
50799         * modules/avltree-list-tests: Likewise.
50800         * modules/avltree-oset-tests: Likewise.
50801         * modules/avltreehash-list-tests: Likewise.
50802         * modules/carray-list-tests: Likewise.
50803         * modules/crc-tests: Likewise.
50804         * modules/des-tests: Likewise.
50805         * modules/gc-arcfour-tests: Likewise.
50806         * modules/gc-arctwo-tests: Likewise.
50807         * modules/gc-des-tests: Likewise.
50808         * modules/gc-hmac-md5-tests: Likewise.
50809         * modules/gc-hmac-sha1-tests: Likewise.
50810         * modules/gc-md2-tests: Likewise.
50811         * modules/gc-md4-tests: Likewise.
50812         * modules/gc-md5-tests: Likewise.
50813         * modules/gc-pbkdf2-sha1-tests: Likewise.
50814         * modules/gc-rijndael-tests: Likewise.
50815         * modules/gc-sha1-tests: Likewise.
50816         * modules/gc-tests: Likewise.
50817         * modules/getaddrinfo-tests: Likewise.
50818         * modules/hmac-md5-tests: Likewise.
50819         * modules/hmac-sha1-tests: Likewise.
50820         * modules/linked-list-tests: Likewise.
50821         * modules/linkedhash-list-tests: Likewise.
50822         * modules/lock-tests: Likewise.
50823         * modules/md2-tests: Likewise.
50824         * modules/md4-tests: Likewise.
50825         * modules/md5-tests: Likewise.
50826         * modules/rbtree-list-tests: Likewise.
50827         * modules/rbtree-oset-tests: Likewise.
50828         * modules/rbtreehash-list-tests: Likewise.
50829         * modules/read-file-tests: Likewise.
50830         * modules/rijndael-tests: Likewise.
50831         * modules/stdint-tests: Likewise.
50832         * modules/tls-tests: Likewise.
50833
50834 2007-02-24  Bruno Haible  <bruno@clisp.org>
50835
50836         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
50837         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
50838         function; instead check whether isnan with a double argument links.
50839         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
50840         function; instead check whether isnan with a 'long double' argument
50841         links.
50842         Reported by Eric Blake <ebb9@byu.net>.
50843
50844 2007-02-24  Bruno Haible  <bruno@clisp.org>
50845
50846         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
50847         defined.
50848         * lib/isnanl.c: Remove all code. Just include isnan.c.
50849         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
50850
50851 2007-02-25  Jim Meyering  <jim@meyering.net>
50852
50853         Avoid conflicting types for 'unsetenv' on FreeBSD.
50854         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
50855         conflicting with FreeBSD's (5.0 and 6.1) function declaration
50856         in stdlib.h.
50857
50858 2007-02-24  Bruno Haible  <bruno@clisp.org>
50859
50860         * modules/isnanl-nolibm-tests: New file.
50861         * tests/test-isnanl.c: New file.
50862
50863         * modules/isnanl-nolibm: New file.
50864         * lib/isnanl.h: New file.
50865         * lib/isnanl.c: New file.
50866         * m4/isnanl.m4: New file.
50867
50868 2007-02-24  Bruno Haible  <bruno@clisp.org>
50869
50870         * modules/isnan-nolibm-tests: New file.
50871         * tests/test-isnan.c: New file.
50872
50873         * modules/isnan-nolibm: New file.
50874         * lib/isnan.h: New file.
50875         * lib/isnan.c: New file.
50876         * m4/isnan.m4: New file.
50877
50878 2007-02-24  Bruno Haible  <bruno@clisp.org>
50879
50880         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
50881         assume that an exponent fits in 20 bits.
50882
50883 2007-02-24  Jim Meyering  <jim@meyering.net>
50884
50885         * m4/regex.m4: Update the description of the configure-time option,
50886         --without-included-regex, to state accurately what the defaults are,
50887         and perhaps to give people an idea why using this option is risky.
50888
50889 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
50890
50891         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
50892         loops on small arguments.  This attempts to avoid the problem
50893         Bruno Haible reported for AIX 4.3.2 in
50894         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
50895
50896 2007-02-23  Bruno Haible  <bruno@clisp.org>
50897
50898         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
50899         Needed for help2man.
50900
50901 2007-02-23  Karl Berry  <karl@gnu.org>
50902
50903         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
50904         exists, foo.h should be cvs-ignored, not committed.
50905
50906 2007-02-23  Eric Blake  <ebb9@byu.net>
50907
50908         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
50909         * lib/stat-time.h (includes): Likewise.
50910         * lib/utimecmp.c (includes): Likewise.
50911         * lib/utimens.h (includes): Likewise.
50912         * lib/getdate.y (includes): Also include "timespec.h" for use
50913         internal to the module.
50914         * modules/utimens (Depends-on): Revert yesterday's patch.
50915         * modules/nanosleep (Depends-on): Add missing dependency.
50916
50917 2007-02-22  Bruno Haible  <bruno@clisp.org>
50918
50919         * lib/glob.c: Don't include getlogin_r.h.
50920
50921 2007-02-22  Jim Meyering  <jim@meyering.net>
50922
50923         * modules/utimens (Depends-on): Add timespec, required for
50924         utimens.h's inclusion of timespec.h.
50925
50926 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
50927
50928         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
50929         long unreadable paths in GNU/Linux.  Problem reported by Andreas
50930         Schwab in
50931         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
50932         I'll try to think of a better way to fix the Solaris problem.
50933
50934         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
50935         like glibc; on Solaris 10, it fails with errno == EINVAL.
50936         POSIX says the behavior is unspecified if the first argument is NULL,
50937         so play it safe and never pass NULL to the system getcwd.
50938
50939 2007-02-21  Jim Meyering  <jim@meyering.net>
50940
50941         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
50942         of gettimeofday.  It would conflict with the one now always
50943         provided via sys_time_.h.  Reported by Matthew Woehlke, as
50944         an IRIX 6.5 build failure.
50945
50946 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
50947
50948         Minor fixups to port to Solaris 10 with Sun C 5.8.
50949         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
50950         * modules/getcwd (Depends-on): Add dirfd.
50951         * lib/putenv.c (putenv): #undef it.
50952         (rpl_putenv): New decl.
50953         (malloc, free): Include <stdlib.h> rather than prototyping separately.
50954
50955 2007-02-20  Bruno Haible  <bruno@clisp.org>
50956
50957         * modules/stdio-tests: New file.
50958         * tests/test-stdio.c: New file.
50959
50960         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
50961         (Depends-on): Add stdio.
50962         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
50963         (Include): Use <stdio.h> instead of vsnprintf.h.
50964         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
50965         HAVE_DECL_VSNPRINTF.
50966         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
50967
50968         * modules/snprintf (Files): Remove lib/snprintf.h.
50969         (Depends-on): Add stdio.
50970         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
50971         (Include): Use <stdio.h> instead of snprintf.h.
50972         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
50973         HAVE_DECL_SNPRINTF.
50974         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
50975         * lib/getaddrinfo.c: Likewise.
50976
50977         * modules/stdio: New file.
50978         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
50979         * lib/snprintf.h: Remove file.
50980         * lib/vsnprintf.h: Remove file.
50981         * lib/.cppi-disable: Remove snprintf.h.
50982         * m4/stdio_h.m4: New file.
50983         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
50984
50985 2007-02-20  Jim Meyering  <jim@meyering.net>
50986
50987         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
50988         used by e.g., mingw.  From Bruno Haible.
50989
50990 2007-02-19  Bruno Haible  <bruno@clisp.org>
50991
50992         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
50993         warnings.
50994         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50995
50996 2007-02-19  Bruno Haible  <bruno@clisp.org>
50997
50998         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
50999         from mingw users.
51000
51001 2007-02-19  Bruno Haible  <bruno@clisp.org>
51002
51003         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
51004         warnings.
51005         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
51006
51007 2007-02-19  Jim Meyering  <jim@meyering.net>
51008
51009         Don't use FD after a successful "fdopendir (fd)".
51010         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
51011         Reset it by calling dirfd on the just-obtained DIR*.
51012
51013         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
51014         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
51015
51016 2007-02-18  Bruno Haible  <bruno@clisp.org>
51017
51018         * lib/readlink.c: Include <unistd.h>.
51019         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
51020         HAVE_READLINK.
51021         * modules/readlink (Depends-on): Add unistd.
51022         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51023         (Include): Add <unistd.h>.
51024
51025         * lib/getlogin_r.h: Remove file.
51026         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
51027         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
51028         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
51029         HAVE_DECL_GETLOGIN_R.
51030         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
51031         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51032         (Include): Use <unistd.h> instead of getlogin_r.h.
51033
51034         * lib/getcwd.h: Remove file.
51035         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
51036         * lib/xgetcwd.c: Likewise.
51037         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
51038         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
51039         * modules/getcwd (Files): Remove lib/getcwd.h.
51040         (Depends-on): Add unistd.
51041         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51042         (Include): Use <unistd.h> instad of getcwd.h.
51043
51044         * lib/ftruncate.c: Include <unistd.h> first.
51045         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
51046         Set HAVE_FTRUNCATE.
51047         * modules/ftruncate (Depends-on): Add unistd.
51048         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51049
51050         * lib/fchdir.c: Include <unistd.h> first.
51051         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
51052         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
51053         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
51054         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51055         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
51056
51057         * lib/dup2.c: Include <unistd.h> first.
51058         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
51059         HAVE_DUP2.
51060         * modules/dup2 (Depends-on): Add unistd.
51061         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51062
51063         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
51064         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
51065         REPLACE_CHOWN. Don't define chown as a macro here.
51066         * modules/chown (Depends-on): Add unistd.
51067         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51068
51069         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
51070         Add definition for GL_LINK_WARNING.
51071         (chown, dup2): New declarations.
51072         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
51073         link warning.
51074         (ftruncate): New declaration.
51075         (getcwd): New declaration, taken from old getcwd.h.
51076         (getlogin_r): New declaration, taken from old getlogin_r.h.
51077         (readlink): New declaration.
51078         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
51079         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
51080         (gl_PREREQ_UNISTD): Remove macro.
51081         (gl_UNISTD_MODULE_INDICATOR): New macro.
51082         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
51083         many new variables. Don't set UNISTD_H.
51084         * modules/unistd (Description): Change.
51085         (Depends-on): Add link-warning.
51086         (configure.ac): Update.
51087         (Makefile.am): Create unistd.h always. Substitute many new variables
51088         into it.
51089
51090 2007-02-18  Bruno Haible  <bruno@clisp.org>
51091
51092         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
51093         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
51094         HAVE_GETSUBOPT.
51095         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
51096         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
51097         * lib/getsubopt.h: Remove file.
51098         * modules/getsubopt (Files): Remove lib/getsubopt.h.
51099         (Depends-on): Add stdlib.
51100         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51101         (Includes): Use <stdlib.h> instead of getsubopt.h.
51102         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
51103         Set HAVE_GETSUBOPT.
51104         * lib/getsubopt.c: Don't include getsubopt.h.
51105
51106 2007-02-18  Bruno Haible  <bruno@clisp.org>
51107
51108         * modules/fchdir (Depends-on): Add dup2.
51109
51110 2007-02-18  Bruno Haible  <bruno@clisp.org>
51111
51112         * lib/stdlib_.h: Handle glibc's special invocation convention
51113         specially.
51114
51115 2007-02-18  Bruno Haible  <bruno@clisp.org>
51116
51117         * modules/stdlib-tests: New file.
51118         * tests/test-stdlib.c: New file.
51119
51120         * modules/mkstemp (Files): Remove lib/mkstemp.h.
51121         (Depends-on): Add stdlib.
51122         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51123         (Includes): Use <stdlib.h> instead of mkstemp.h.
51124         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
51125         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
51126         * lib/mkstemp.c: Don't include mkstemp.h.
51127         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
51128         * lib/stdlib--.h: Don't include mkstemp.h.
51129
51130         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
51131         (Depends-on): Add stdlib.
51132         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51133         (Includes): Use <stdlib.h> instead of mkdtemp.h.
51134         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
51135         HAVE_MKDTEMP.
51136         * lib/mkdtemp.c: Don't include mkdtemp.h.
51137         * lib/clean-temp.c: Don't include mkdtemp.h.
51138
51139         * modules/exit (Files): Remove lib/exit.h.
51140         (Depends-on): Add stdlib.
51141         (Makefile.am): Remove lib_SOURCES.
51142         (Include): Use <stdlib.h> instead of exit.h.
51143         * lib/argmatch.c: Don't include exit.h.
51144         * lib/execute.c: Likewise.
51145         * lib/pagealign_alloc.c: Likewise.
51146         * lib/pipe.c: Likewise.
51147         * lib/wait-process.c: Likewise.
51148         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
51149         * lib/exitfail.c: Likewise.
51150         * lib/savewd.c: Likewise.
51151         * lib/xsetenv.c: Likewise.
51152
51153         * modules/stdlib: New file.
51154         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
51155         and extra comments about mkstemp().
51156         * lib/exit.h: Remove file.
51157         * lib/mkdtemp.h: Remove file.
51158         * lib/mkstemp.h: Remove file.
51159         * m4/stdlib_h.m4: New file.
51160         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
51161
51162 2007-02-18  Bruno Haible  <bruno@clisp.org>
51163
51164         * modules/math-tests: New file.
51165         * tests/test-math.c: New file.
51166
51167         * modules/math: New file.
51168         * modules/mathl (Files): Remove lib/mathl.h.
51169         (Depends-on): Add math.
51170         (Makefile.am): Don't mention mathl.h.
51171         (Include): Use <math.h> instead of mathl.h.
51172         * lib/math_.h: New file.
51173         * lib/mathl.h: Remove file.
51174         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
51175         mathl.h.
51176         * lib/asinl.c: Likewise.
51177         * lib/atanl.c: Likewise.
51178         * lib/ceill.c: Likewise.
51179         * lib/cosl.c: Likewise.
51180         * lib/expl.c: Likewise.
51181         * lib/floorl.c: Likewise.
51182         * lib/frexpl.c: Likewise.
51183         * lib/ldexpl.c: Likewise.
51184         * lib/logl.c: Likewise.
51185         * lib/sincosl.c: Likewise.
51186         * lib/sinl.c: Likewise.
51187         * lib/sqrtl.c: Likewise.
51188         * lib/tanl.c: Likewise.
51189         * lib/trigl.c: Likewise.
51190         * m4/math_h.m4: New file.
51191         * MODULES.html.sh (Mathematics): Add math.
51192
51193 2007-02-17  Bruno Haible  <bruno@clisp.org>
51194
51195         * modules/wctype-tests: New file.
51196         * tests/test-wctype.c: New file.
51197
51198         * modules/wchar-tests: New file.
51199         * tests/test-wchar.c: New file.
51200
51201         * modules/unistd-tests: New file.
51202         * tests/test-unistd.c: New file.
51203
51204         * modules/time-tests: New file.
51205         * tests/test-time.c: New file.
51206
51207         * modules/sysexits-tests: New file.
51208         * tests/test-sysexits.c: New file.
51209
51210         * modules/sys_time-tests: New file.
51211         * tests/test-sys_time.c: New file.
51212
51213         * modules/sys_stat-tests: New file.
51214         * tests/test-sys_stat.c: New file.
51215
51216         * modules/sys_socket-tests: New file.
51217         * tests/test-sys_socket.c: New file.
51218
51219         * modules/sys_select-tests: New file.
51220         * tests/test-sys_select.c: New file.
51221
51222         * modules/string-tests: New file.
51223         * tests/test-string.c: New file.
51224
51225         * modules/stdbool-tests: New file.
51226         * tests/test-stdbool.c: New file.
51227
51228         * modules/netinet_in-tests: New file.
51229         * tests/test-netinet_in.c: New file.
51230
51231         * modules/inttypes-tests: New file.
51232         * tests/test-inttypes.c: New file.
51233
51234         * modules/fcntl-tests: New file.
51235         * tests/test-fcntl.c: New file.
51236
51237         * modules/byteswap-tests: New file.
51238         * tests/test-byteswap.c: New file.
51239
51240         * modules/arpa_inet-tests: New file.
51241         * tests/test-arpa_inet.c: New file.
51242
51243 2007-02-17  Bruno Haible  <bruno@clisp.org>
51244
51245         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
51246         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
51247         if the corresponding module is not enabled. Emit link warnings if
51248         the function is used nevertheless.
51249         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
51250         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
51251         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
51252         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
51253         * modules/inttypes (Depends-on): Add link-warning.
51254         (Makefile.am): Copy the contents of build-aux/link-warning.h into
51255         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
51256         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
51257         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
51258         * modules/imaxdiv (configure.ac): Likewise.
51259         * modules/strtoimax (configure.ac): Likewise.
51260         * modules/strtoumax (configure.ac): Likewise.
51261
51262 2007-02-17  Bruno Haible  <bruno@clisp.org>
51263
51264         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
51265         gl_STRING_MODULE_INDICATOR_DEFAULTS.
51266         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
51267         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
51268
51269 2007-02-17  Bruno Haible  <bruno@clisp.org>
51270
51271         * modules/link-warning: New file.
51272         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
51273         * lib/string_.h (GL_LINK_WARNING): Remove definition.
51274         * modules/string (Depends-on): Add link-warning.
51275         (Makefile.am): Copy the contents of build-aux/link-warning.h into
51276         string.h.
51277         * MODULES.html.sh (Support for building libraries and executables): Add
51278         link-warning.
51279
51280 2007-02-17  Bruno Haible  <bruno@clisp.org>
51281
51282         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
51283         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
51284         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
51285         long lines.
51286
51287 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
51288             Bruno Haible  <bruno@clisp.org>
51289
51290         * modules/tmpfile: New file.
51291         * lib/tmpfile.c: New file.
51292         * m4/tmpfile.m4: New file.
51293         * MODULES.html.sh (func_all_modules): New section "Input/output".
51294
51295 2007-02-15  Bruno Haible  <bruno@clisp.org>
51296
51297         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
51298         (supports_delete_on_close): New function.
51299         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
51300
51301 2007-02-14  Bruno Haible  <bruno@clisp.org>
51302
51303         * modules/mbspcasecmp-tests: New file.
51304         * tests/test-mbspcasecmp.sh: New file.
51305         * tests/test-mbspcasecmp.c: New file.
51306
51307         New module mbspcasecmp.
51308         * modules/mbspcasecmp: New file.
51309         * lib/mbspcasecmp.c: New file.
51310         * lib/string_.h (strncasecmp): Change warning message.
51311         (mbspcasecmp): New declaration.
51312         * m4/mbspcasecmp.m4: New file.
51313         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51314         GNULIB_MBSPCASECMP.
51315         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
51316         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
51317
51318 2007-02-14  Bruno Haible  <bruno@clisp.org>
51319
51320         * modules/mbsncasecmp-tests: New file.
51321         * tests/test-mbsncasecmp.sh: New file.
51322         * tests/test-mbsncasecmp.c: New file.
51323
51324         New module mbsncasecmp.
51325         * modules/mbsncasecmp: New file.
51326         * lib/mbsncasecmp.c: New file.
51327         * lib/string_.h (mbsncasecmp): New declaration.
51328         * m4/mbsncasecmp.m4: New file.
51329         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51330         GNULIB_MBSNCASECMP.
51331         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
51332         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
51333
51334 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
51335
51336         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
51337         Verify that it doesn't overlap with our flags.
51338         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
51339         do not have the desired effect in multibyte locales; instead, use
51340         mbscasecmp.
51341         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
51342         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
51343         we don't require GNU fnmatch ourselves (if our users require it, they
51344         should do so explicitly).
51345
51346         Fix regex code so it doesn't rely on strcasecmp.
51347         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
51348         Otherwise, include gnulib's langinfo.h.
51349         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
51350         undesirable behavior in non-C locales.  Instead, rely on localecharset.
51351         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
51352         * modules/regex (FILES): Remove m4/codeset.m4.
51353         (Depends-on): Add localcharset.  Remove strcase.
51354
51355 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51356
51357         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
51358         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
51359
51360 2007-02-13  Bruno Haible  <bruno@clisp.org>
51361
51362         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
51363         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51364
51365 2007-02-12  Bruno Haible  <bruno@clisp.org>
51366
51367         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
51368         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
51369         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
51370         time warning rather than a link error.
51371
51372 2007-02-12  Bruno Haible  <bruno@clisp.org>
51373
51374         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
51375         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51376         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51377
51378 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
51379
51380         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
51381         args, not 2.
51382
51383 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
51384
51385         New module 'time', so that apps can include <time.h> as per
51386         POSIX and GNU instead of separate include files like time_r.h
51387         and timegm.h.  This implementation tries out a simpler approach
51388         for replacing decls in standard include files (as compared to
51389         the string module), somewhat as an experiment.
51390
51391         * config/srclist.txt: Comment out mktime.c for now.
51392         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
51393         since it doesn't apply any more.  Use generic wording instead.
51394         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
51395         'time'.
51396         * lib/time_.h, m4/time_h.m4, modules/time: New files.
51397         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
51398         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
51399         Don't include <sys/types.h>; no longer needed since we assume C89.
51400         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
51401         * lib/strftime.c: Likewise.
51402         * lib/time_r.c: Likewise.
51403         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
51404         * lib/nanosleep.c: Include <time.h> first, to check interface.
51405         * lib/strptime.c: Likewise.
51406         * lib/time_r.c: Likewise.
51407         * lib/timegm.c: Likewise.
51408         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
51409         needed.
51410         * lib/timegm.c: Don't include timegm.h; no longer needed.
51411         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
51412         time.h now handles any problems in that area.
51413         (struct timespec, nanosleep): Remove; time.h now arranges for these.
51414         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
51415         that time.h defines struct timespec.
51416         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
51417         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
51418         handles that.
51419         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
51420         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
51421         needed.  Set REPLACE_LOCALTIME.
51422         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
51423         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
51424         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
51425         nanosleep; time_h.m4 now does that.  Don't require
51426         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
51427         module handles this now.
51428         * modules/getdate (Depends-on): Remove timespec.  Add time.
51429         * modules/nanosleep (Depends-on): Likewise.
51430         * modules/stat-time (Depends-on): Likewise.
51431         * modules/nanosleep (Include): Include time.h, not timespec.h.
51432         * modules/strptime (Files): Remove lib/strptime.h.
51433         (Depends-on): Add extensions, time.
51434         (Include): Include time.h, not strptime.h.
51435         * modules/time_r (Files): Remove lib/time_r.h.
51436         (Depends-on): Add time.
51437         (Include): Include time.h, not time_r.h.
51438         * modules/timegm: Likewise.
51439         * modules/timespec (Description): Now does timespec-related decls
51440         of our own, instead of struct timespec itself.
51441         (Depends-on): Add time; remove extensions.
51442         (Maintainer): Add self.
51443         * modules/utimecmp (Depends-on): Add time; remove timespec.
51444         * modules/utimens (Depends-on): Likewise.
51445         * modules/xnanosleep (Depends-on): Likewise.
51446
51447 2007-02-11  Bruno Haible  <bruno@clisp.org>
51448
51449         * lib/c-strstr.c: Include allocsa.h.
51450         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
51451         * lib/c-strcasestr.c: Include allocsa.h.
51452         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
51453         * lib/strcasestr.c: Include allocsa.h.
51454         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
51455         * lib/mbsstr.c: Include allocsa.h.
51456         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
51457         allocsa/freesa instead of malloc/free.
51458         * lib/mbscasestr.c: Include allocsa.h.
51459         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
51460         allocsa/freesa instead of malloc/free.
51461         * modules/c-strstr (Depends-on): Add allocsa.
51462         * modules/c-strcasestr (Depends-on): Likewise.
51463         * modules/strcasestr (Depends-on): Likewise.
51464         * modules/mbsstr (Depends-on): Likewise.
51465         * modules/mbscasestr (Depends-on): Likewise.
51466
51467 2007-02-11  Bruno Haible  <bruno@clisp.org>
51468
51469         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
51470
51471         * modules/mbsspn-tests: New file.
51472         * tests/test-mbsspn.sh: New file.
51473         * tests/test-mbsspn.c: New file.
51474
51475 2007-02-11  Bruno Haible  <bruno@clisp.org>
51476
51477         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
51478
51479         * modules/mbspbrk-tests: New file.
51480         * tests/test-mbspbrk.sh: New file.
51481         * tests/test-mbspbrk.c: New file.
51482
51483 2007-02-11  Bruno Haible  <bruno@clisp.org>
51484
51485         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
51486         unneeded cast.
51487
51488         * modules/mbscspn-tests: New file.
51489         * tests/test-mbscspn.sh: New file.
51490         * tests/test-mbscspn.c: New file.
51491
51492 2007-02-11  Bruno Haible  <bruno@clisp.org>
51493
51494         * modules/mbscasecmp-tests: New file.
51495         * tests/test-mbscasecmp.sh: New file.
51496         * tests/test-mbscasecmp.c: New file.
51497
51498 2007-02-11  Bruno Haible  <bruno@clisp.org>
51499
51500         Ensure O(n) worst-case complexity of mbscasestr.
51501         * lib/mbscasestr.c: Include stdbool.h.
51502         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
51503         functions.
51504         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
51505         the bookkeeping indicates that it's worth it.
51506         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
51507
51508         * modules/mbscasestr-tests: New file.
51509         * tests/test-mbscasestr1.c: New file.
51510         * tests/test-mbscasestr2.sh: New file.
51511         * tests/test-mbscasestr2.c: New file.
51512         * tests/test-mbscasestr3.sh: New file.
51513         * tests/test-mbscasestr3.c: New file.
51514         * tests/test-mbscasestr4.sh: New file.
51515         * tests/test-mbscasestr4.c: New file.
51516         * m4/locale-tr.m4: New file.
51517
51518 2007-02-11  Bruno Haible  <bruno@clisp.org>
51519
51520         Ensure O(n) worst-case complexity of mbsstr.
51521         * lib/mbsstr.c: Include stdbool.h.
51522         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
51523         functions.
51524         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
51525         bookkeeping indicates that it's worth it.
51526         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
51527
51528         * modules/mbsstr-tests: New file.
51529         * tests/test-mbsstr1.c: New file.
51530         * tests/test-mbsstr2.sh: New file.
51531         * tests/test-mbsstr2.c: New file.
51532         * tests/test-mbsstr3.sh: New file.
51533         * tests/test-mbsstr3.c: New file.
51534         * m4/locale-fr.m4: New file.
51535
51536 2007-02-11  Bruno Haible  <bruno@clisp.org>
51537
51538         * lib/mbsrchr.c (mbsrchr): Fix bug.
51539
51540         * modules/mbsrchr-tests: New file.
51541         * tests/test-mbsrchr.sh: New file.
51542         * tests/test-mbsrchr.c: New file.
51543
51544 2007-02-11  Bruno Haible  <bruno@clisp.org>
51545
51546         * lib/mbschr.c (mbschr): Fix bug.
51547
51548         * modules/mbschr-tests: New file.
51549         * tests/test-mbschr.sh: New file.
51550         * tests/test-mbschr.c: New file.
51551         * m4/locale-zh.m4: New file.
51552
51553 2007-02-11  Bruno Haible  <bruno@clisp.org>
51554
51555         Support for copying multibyte string iterators.
51556         * lib/mbiter.h: Include <string.h>.
51557         (mbiter_multi_copy): New function.
51558         (mbi_copy): New macro.
51559         * lib/mbuiter.h: Include <string.h>.
51560         (mbuiter_multi_copy): New function.
51561         (mbui_copy): New macro.
51562
51563 2007-02-11  Bruno Haible  <bruno@clisp.org>
51564
51565         New module mbslen.
51566         * modules/mbslen: New file.
51567         * lib/mbslen.c: New file.
51568         * lib/string_.h (mbslen): New declaration.
51569         * m4/mbslen.m4: New file.
51570         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51571         GNULIB_MBSLEN.
51572         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
51573         * MODULES.html.sh (Internationalization functions): Add mbslen.
51574
51575 2007-02-11  Bruno Haible  <bruno@clisp.org>
51576
51577         Ensure O(n) worst-case complexity of strcasestr substitute.
51578         * lib/strcasestr.c: Include stdbool.h.
51579         (knuth_morris_pratt): New function.
51580         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
51581         bookkeeping indicates that it's worth it.
51582         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
51583
51584         * modules/strcasestr-tests: New file.
51585         * tests/test-strcasestr.c: New file.
51586
51587 2007-02-11  Bruno Haible  <bruno@clisp.org>
51588
51589         Ensure O(n) worst-case complexity of c_strcasestr.
51590         * lib/c-strcasestr.c: Include stdbool.h, string.h.
51591         (knuth_morris_pratt): New function.
51592         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
51593         the bookkeeping indicates that it's worth it.
51594         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
51595
51596         * modules/c-strcasestr-tests: New file.
51597         * tests/test-c-strcasestr.c: New file.
51598
51599 2007-02-11  Bruno Haible  <bruno@clisp.org>
51600
51601         Ensure O(n) worst-case complexity of c_strstr.
51602         * lib/c-strstr.c: Include stdbool.h, string.h.
51603         (knuth_morris_pratt): New function.
51604         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
51605         bookkeeping indicates that it's worth it.
51606         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
51607
51608         * lib/c-strstr.c: Complete rewrite for maintainability.
51609
51610         * modules/c-strstr-tests: New file.
51611         * tests/test-c-strstr.c: New file.
51612
51613 2007-02-11  Bruno Haible  <bruno@clisp.org>
51614
51615         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
51616         5.2.1 and earlier, whereby \055 was treated just like the range
51617         delimiter '-'.
51618         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
51619
51620 2007-02-08  Bruno Haible  <bruno@clisp.org>
51621
51622         * modules/regex (Depends-on): Add stdbool.
51623         Reported by Dalibor Topic <robilad@kaffe.org>.
51624
51625 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
51626
51627         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
51628         Prefer returning from main to exiting from it.
51629         Remove unnecessary parens after sizeof.
51630
51631 2007-02-05  Bruno Haible  <bruno@clisp.org>
51632
51633         New module mbssep.
51634         * modules/mbssep: New file.
51635         * lib/mbssep.c: New file.
51636         * lib/string_.h (strsep): Add a conditional link warning.
51637         (mbssep): New declaration.
51638         * m4/mbssep.m4: New file.
51639         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51640         GNULIB_MBSSEP.
51641         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
51642         * MODULES.html.sh (Internationalization functions): Add mbssep.
51643
51644 2007-02-05  Bruno Haible  <bruno@clisp.org>
51645
51646         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
51647         Optimize search in case of 1 delimiter.
51648
51649 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
51650
51651         * lib/acl.h: Include sys/types.h before sys/acl.h.
51652
51653 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
51654
51655         Merge upstream fix for glibc bugzilla #3957:
51656
51657         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
51658
51659         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
51660         bit for RE_HAT_LISTS_NOT_NEWLINE.
51661         (build_charclass_op): Remove bogus comment.
51662
51663 2007-02-05  Simon Josefsson  <simon@josefsson.org>
51664
51665         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
51666
51667 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
51668
51669         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
51670         * lib/memmem.c [!defined _LIBC]: Include config.h.
51671
51672 2007-02-04  Bruno Haible  <bruno@clisp.org>
51673
51674         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
51675         warning message.
51676
51677 2007-02-04  Bruno Haible  <bruno@clisp.org>
51678
51679         New module mbstok_r.
51680         * modules/mbstok_r: New file.
51681         * lib/mbstok_r.c: New file.
51682         * lib/string_.h (strtok_r): Change argument names to match the
51683         comments. Add a conditional link warning.
51684         (mbstok_r): New declaration.
51685         * m4/mbstok_r.m4: New file.
51686         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51687         GNULIB_MBSTOK_R.
51688         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
51689         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
51690
51691 2007-02-04  Bruno Haible  <bruno@clisp.org>
51692
51693         New module mbsspn.
51694         * modules/mbsspn: New file.
51695         * lib/mbsspn.c: New file.
51696         * lib/string_.h (strspn): Add a conditional link warning.
51697         (mbsspn): New declaration.
51698         * m4/mbsspn.m4: New file.
51699         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51700         GNULIB_MBSSPN.
51701         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
51702         * MODULES.html.sh (Internationalization functions): Add mbsspn.
51703
51704 2007-02-04  Bruno Haible  <bruno@clisp.org>
51705
51706         New module mbspbrk.
51707         * modules/mbspbrk: New file.
51708         * lib/mbspbrk.c: New file.
51709         * lib/string_.h (strpbrk): Add a conditional link warning.
51710         (mbspbrk): New declaration.
51711         * m4/mbspbrk.m4: New file.
51712         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51713         GNULIB_MBSPBRK.
51714         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
51715         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
51716
51717 2007-02-04  Bruno Haible  <bruno@clisp.org>
51718
51719         New module mbscspn.
51720         * modules/mbscspn: New file.
51721         * lib/mbscspn.c: New file.
51722         * lib/string_.h (strcspn): Add a conditional link warning.
51723         (mbscspn): New declaration.
51724         * m4/mbscspn.m4: New file.
51725         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51726         GNULIB_MBSCSPN.
51727         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
51728         * MODULES.html.sh (Internationalization functions): Add mbscspn.
51729
51730 2007-02-04  Bruno Haible  <bruno@clisp.org>
51731
51732         New module mbscasestr, reduced goal of strcasestr.
51733         * modules/mbscasestr: New file.
51734         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
51735         (mbscasestr): Renamed from strcasestr.
51736         * lib/strcasestr.c: Don't include mbuiter.h.
51737         (strcasestr): Remove support for multibyte locales.
51738         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
51739         Change the conditional link warning.
51740         (mbscasestr): New declaration.
51741         * m4/mbscasestr.m4: New file.
51742         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
51743         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
51744         REPLACE_STRCASESTR.
51745         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
51746         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51747         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
51748         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
51749         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
51750         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
51751         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
51752         (Depends-on): Remove mbuiter.
51753         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
51754
51755 2007-02-04  Bruno Haible  <bruno@clisp.org>
51756
51757         Simplify handling of strncasecmp.
51758         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
51759         the conditional link warning.
51760         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51761         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
51762         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
51763         * modules/strcase (configure.ac): Don't invoke
51764         gl_STRING_MODULE_INDICATOR.
51765         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
51766
51767 2007-02-04  Bruno Haible  <bruno@clisp.org>
51768
51769         New module mbscasecmp, reduced goal of strcasecmp.
51770         * modules/mbscasecmp: New file.
51771         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
51772         (mbscasecmp): Renamed from strcasecmp.
51773         * lib/strcasecmp.c: Don't include mbuiter.h.
51774         (strcasecmp): Remove support for multibyte locales.
51775         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
51776         Change the conditional link warning.
51777         (mbscasecmp): New declaration.
51778         * m4/mbscasecmp.m4: New file.
51779         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
51780         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
51781         REPLACE_STRCASECMP.
51782         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
51783         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51784         GNULIB_MBSCASECMP.
51785         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
51786         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
51787         * modules/strcase (Files): Remove m4/mbrtowc.m4.
51788         (Depends-on): Remove mbuiter.
51789         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
51790
51791 2007-02-04  Bruno Haible  <bruno@clisp.org>
51792
51793         New module mbsstr. Remove module strstr.
51794         * modules/mbsstr: New file.
51795         * modules/strstr: Remove file.
51796         * lib/mbsstr.c: Renamed from lib/strstr.c.
51797         (mbsstr): Renamed from strstr.
51798         * lib/string_.h (strstr): Remove declaration. Change the conditional
51799         link warning.
51800         (mbsstr): New declaration.
51801         * m4/mbsstr.m4: New file.
51802         * m4/strstr.m4: Remove file.
51803         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
51804         REPLACE_STRSTR.
51805         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
51806         Don't initialize GNULIB_STRSTR.
51807         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
51808         substitute GNULIB_STRSTR and REPLACE_STRSTR.
51809         * MODULES.html.sh (Internationalization functions): Add mbsstr.
51810         (Support for systems lacking ANSI C 89): Remove strstr.
51811
51812 2007-02-04  Bruno Haible  <bruno@clisp.org>
51813
51814         New module mbsrchr.
51815         * modules/mbsrchr: New file.
51816         * lib/mbsrchr.c: New file.
51817         * lib/string_.h (strrchr): Add a conditional link warning.
51818         (mbsrchr): New declaration.
51819         * m4/mbsrchr.m4: New file.
51820         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51821         GNULIB_MBSRCHR.
51822         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
51823         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
51824
51825 2007-02-04  Bruno Haible  <bruno@clisp.org>
51826
51827         New module mbschr.
51828         * modules/mbschr: New file.
51829         * lib/mbschr.c: New file.
51830         * lib/string_.h (strchr): Add a conditional link warning.
51831         (mbschr): New declaration.
51832         * m4/mbschr.m4: New file.
51833         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51834         GNULIB_MBSCHR.
51835         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
51836         * MODULES.html.sh (Internationalization functions): Add mbschr.
51837
51838 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
51839
51840         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
51841
51842         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
51843
51844 2007-02-04  Bruno Haible  <bruno@clisp.org>
51845
51846         New module description section 'configure.ac-early'.
51847         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
51848         (func_get_autoconf_early_snippet): New function.
51849         (func_import, func_create_testdir): Use it. Remove special cases for
51850         modules 'extensions' and 'lock'.
51851         * modules/extensions (configure.ac-early): Require
51852         gl_USE_SYSTEM_EXTENSIONS.
51853         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
51854
51855 2007-02-04  Bruno Haible  <bruno@clisp.org>
51856
51857         Make use of gcj-4.3's -fsource and -ftarget option.
51858         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
51859         and if so try the options -fsource and -ftarget.
51860         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
51861         source_version, ftarget_option, target_version arguments.
51862         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
51863         (is_envjavac_oldgcj_14_14_usable): Renamed from
51864         is_envjavac_gcj_14_14_usable.
51865         (is_envjavac_oldgcj_14_13_usable): Renamed from
51866         is_envjavac_gcj_14_13_usable.
51867         (is_gcj_present): Update.
51868         (is_gcj_43, is_gcj43_usable): New functions.
51869         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
51870         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
51871         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
51872         try the options -fsource and -ftarget.
51873
51874 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51875
51876         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
51877         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
51878         larger value.
51879
51880 2007-02-03  Jim Meyering  <jim@meyering.net>
51881
51882         Give tools a better chance to allocate space for very large buffers.
51883         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
51884
51885         Make pwd and readlink work also when run with an unreadable parent dir
51886         on systems with openat support.
51887         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
51888         provided getcwd function, even when we have openat support.
51889         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
51890
51891 2007-02-02  Bruno Haible  <bruno@clisp.org>
51892
51893         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
51894         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
51895         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
51896         portability problems if one of these functions is only used on specific
51897         platforms.
51898         Reported by Paul Eggert.
51899
51900 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
51901
51902         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
51903         is causing more trouble than it's curing.
51904         * lib/regex_internal.h (__mempcpy): Remove.
51905         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
51906         (and make the code a tad smaller to boot).
51907         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
51908
51909 2007-02-02  Jim Meyering  <jim@meyering.net>
51910
51911         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
51912         section, not in the Makefile.am: one.
51913
51914 2007-02-02  Eric Blake  <ebb9@byu.net>
51915
51916         * lib/strchrnul.c: Always include config.h first.
51917
51918         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
51919         gnulib strstr is not necessary here.
51920
51921 2007-02-02  Simon Josefsson  <simon@josefsson.org>
51922
51923         * m4/socklen.m4: Fix typo.
51924
51925 2007-02-02  Eric Blake  <ebb9@byu.net>
51926
51927         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
51928         * modules/netinet_in (Makefile.am): Likewise.
51929
51930 2007-02-01  Bruno Haible  <bruno@clisp.org>
51931
51932         * lib/string_.h (GL_LINK_WARNING): New macro.
51933         (strcasecmp, strstr, strcasestr): If provided by the system,
51934         conditionally define as a macro that leads to a warning instead of to
51935         an error.
51936         (strncasecmp): Conditionally define as a macro that leads to a warning.
51937
51938 2007-02-01  Karl Berry  <karl@gnu.org>
51939
51940         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
51941
51942 2007-02-01  Bruno Haible  <bruno@clisp.org>
51943
51944         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
51945         renamings.
51946
51947 2007-02-01  Eric Blake  <ebb9@byu.net>
51948
51949         * modules/regex (Depends-on): Revert dependence on mempcpy.
51950         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
51951         module's definition of mempcpy.
51952         Reported by Paul Eggert.
51953
51954 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
51955
51956         * lib/string_.h: If the gnulib module XYZ is not present, undefine
51957         the symbol XYZ before redefining it.  This fixes a problem with
51958         programs that don't use XYZ, when compiled on systems that define
51959         XYZ to something else.
51960
51961 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
51962
51963         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
51964         occurs when "mkdir -m foo" creates a setgid directory that is (1)
51965         writeable to group or other and (2) is intended to have a special
51966         mode bit that is set or cleared.  In such a case, the directory
51967         should be neither group- nor other-writeable until the special
51968         mode bits are right.
51969
51970 2007-01-31  Eric Blake  <ebb9@byu.net>
51971
51972         * modules/mountlist (Depends-on): Add strstr.
51973
51974         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
51975         bug.
51976         * modules/string (Makefile.am): Remove redundant replacement.
51977         * modules/regex (Depends-on): Add mempcpy.
51978
51979 2007-01-31  Bruno Haible  <bruno@clisp.org>
51980
51981         New module description field 'Link'.
51982         * gnulib-tool (func_usage): Document --extract-link-directive.
51983         (sed_extract_prog): Recognize 'Link' directive.
51984         (func_get_link_directive): New function.
51985         (func_import): Show summary of link directives.
51986         Handle --extract-link-directive option.
51987         * modules/acl (Link): New section.
51988         * modules/clock-time (Link): New section.
51989         * modules/euidaccess (Link): New section.
51990         * modules/gettext (Link): New section.
51991         * modules/iconv (Link): New section.
51992         * modules/lock (Link): New section.
51993         * modules/nanosleep (Link): New section.
51994         * modules/readline (Link): New section.
51995
51996 2007-01-27  Bruno Haible  <bruno@clisp.org>
51997
51998         Enforce the use of gnulib modules for unportable <string.h> functions.
51999         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
52000         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
52001         (gl_HEADER_STRING_H_BODY): Require it.
52002         * lib/string_.h: If the gnulib module XYZ is not present, redefine
52003         the symbol XYZ to one that gives a link error.
52004         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
52005         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
52006         * modules/mempcpy (configure.ac): Likewise.
52007         * modules/memrchr (configure.ac): Likewise.
52008         * modules/stpcpy (configure.ac): Likewise.
52009         * modules/stpncpy (configure.ac): Likewise.
52010         * modules/strcase (configure.ac): Likewise.
52011         * modules/strcasestr (configure.ac): Likewise.
52012         * modules/strchrnul (configure.ac): Likewise.
52013         * modules/strdup (configure.ac): Likewise.
52014         * modules/strndup (configure.ac): Likewise.
52015         * modules/strnlen (configure.ac): Likewise.
52016         * modules/strpbrk (configure.ac): Likewise.
52017         * modules/strsep (configure.ac): Likewise.
52018         * modules/strstr (configure.ac): Likewise.
52019         * modules/strtok_r (configure.ac): Likewise.
52020
52021 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
52022
52023         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
52024
52025 2007-01-30  Jim Meyering  <jim@meyering.net>
52026
52027         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
52028
52029 2007-01-29  Bruno Haible  <bruno@clisp.org>
52030
52031         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
52032         * lib/execute.c: Likewise.
52033         * lib/pipe.c: Likewise.
52034         * lib/printf-args.h: Likewise.
52035         * lib/printf-args.c: Likewise.
52036         * lib/printf-parse.c: Likewise.
52037         * lib/vasnprintf.c: Likewise.
52038
52039 2007-01-29  Eric Blake  <ebb9@byu.net>
52040
52041         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
52042         declaration.
52043
52044 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
52045
52046         * lib/strptime.h (strptime): Use 'restrict' for args where
52047         POSIX requires this.
52048         * lib/strptime.c (strptime): Likewise.
52049         Change license notice from LGPL to GPL, since gnulib-tool will
52050         change this as needed.
52051         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
52052         defined.
52053         Include "strptime.h" first, to check interface.
52054         Do not #undef _LIBC and _NL_CURRENT.
52055         Do not include <stdlib.h>; no longer needed.
52056         Include "time_r.h" and declare ptime_locale_status
52057         only if _LIBC is not defined.
52058         (__P): Remove unused macro.
52059         (match_string): Bring back glibc version, but use it only if _LIBC
52060         is defined.
52061         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
52062         Remove unnecessary assertion and abort() call.
52063         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
52064         * m4/strptime.m4: Fix serial number comment.
52065         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
52066         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
52067         (Depends-on): Add time_r.
52068
52069 2007-01-29  Bruno Haible  <bruno@clisp.org>
52070
52071         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52072         strptime.
52073         * modules/strptime (Depends-on): Add stdbool.
52074         * lib/strptime.h: Include <time.h> always. Add comments.
52075
52076 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52077
52078         * modules/strptime: New file.
52079         * lib/strptime.h: New file.
52080         * lib/strptime.c: New file.
52081         * m4/strptime.m4: New file.
52082
52083 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52084
52085         * MODULES.html.sh: New module mpsort.
52086         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
52087
52088         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
52089         a circularity problem with HP-UX ia64 reported by Bob Proulx in
52090         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
52091         All uses changed.
52092         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
52093         All uses changed.
52094         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
52095         to _Restrict_.
52096         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
52097         the parameter matches the prototype.
52098
52099 2007-01-28  Jim Meyering  <jim@meyering.net>
52100
52101         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
52102         sys/time.h here, reverting that part of the previous patch:
52103         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
52104
52105 2007-01-28  Bruno Haible  <bruno@clisp.org>
52106
52107         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
52108         value of $(SYS_TIME_H).
52109         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
52110         remove it conditionally, too. [added by Jim Meyering]
52111         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
52112         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
52113         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
52114         GETTIMEOFDAY_REPLACEMENT to 1.
52115
52116 2007-01-28  Bruno Haible  <bruno@clisp.org>
52117
52118         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
52119         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
52120         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
52121         Set UNISTD_H instead of UNISTD_H2.
52122         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
52123
52124 2007-01-28  Bruno Haible  <bruno@clisp.org>
52125
52126         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
52127         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
52128
52129 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52130
52131         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
52132         (func_create_testdir): Ensure C locale for `grep' and `tr'
52133         character ranges.
52134         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
52135         ACLOCAL_AMFLAGS parsing state machine.
52136
52137 2007-01-27  Bruno Haible  <bruno@clisp.org>
52138
52139         * modules/unistr/base: Update.
52140
52141 2007-01-27  Bruno Haible  <bruno@clisp.org>
52142
52143         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
52144         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
52145         * modules/unistr/u32-mbtouc-unsafe: Renamed from
52146         modules/unistr/u32-mbtouc.
52147         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
52148         * lib/unistr.h: Update.
52149         * lib/linebreak.c: Update.
52150         * modules/unistr/u32-mbtouc: Renamed from
52151         modules/unistr/u32-mbtouc-safe.
52152         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
52153         * lib/unistr.h: Update.
52154         * lib/unistr/u32-to-u8.c: Update.
52155         * lib/unistr/u32-to-u16.c: Update.
52156
52157 2007-01-27  Bruno Haible  <bruno@clisp.org>
52158
52159         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
52160         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
52161         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
52162         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
52163         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
52164         * modules/unistr/u16-mbtouc-unsafe: Renamed from
52165         modules/unistr/u16-mbtouc.
52166         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
52167         * lib/unistr.h: Update.
52168         * lib/linebreak.c: Update.
52169         * modules/linebreak: Update.
52170         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
52171         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
52172         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
52173         * modules/unistr/u16-mbtouc: Renamed from
52174         modules/unistr/u16-mbtouc-safe.
52175         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
52176         * lib/unistr.h: Update.
52177         * lib/unistr/u16-to-u8.c: Update.
52178         * modules/unistr/u16-to-u8: Update.
52179         * lib/unistr/u16-to-u32.c: Update.
52180         * modules/unistr/u16-to-u32: Update.
52181
52182 2007-01-27  Bruno Haible  <bruno@clisp.org>
52183
52184         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
52185         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
52186         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
52187         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
52188         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
52189         * modules/unistr/u8-mbtouc-unsafe: Renamed from
52190         modules/unistr/u8-mbtouc.
52191         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
52192         * lib/unistr.h: Update.
52193         * lib/striconveh.c: Update.
52194         * modules/striconveh: Update.
52195         * lib/linebreak.c: Update.
52196         * modules/linebreak: Update.
52197         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
52198         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
52199         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
52200         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
52201         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
52202         * lib/unistr.h: Update.
52203         * lib/striconveh.c: Update.
52204         * modules/striconveh: Update.
52205         * lib/unistr/u8-to-u16.c: Update.
52206         * modules/unistr/u8-to-u16: Update.
52207         * lib/unistr/u8-to-u32.c: Update.
52208         * modules/unistr/u8-to-u32: Update.
52209
52210 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52211
52212         Sync from Libtool.
52213         * lib/argz.c: Do not include strings.h nor memory.h, include
52214         string.h unconditionally.  Patch by Simon Josefsson.
52215
52216 2007-01-27  Bruno Haible  <bruno@clisp.org>
52217
52218         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
52219         from gl_HEADER_STRING_H_BODY.
52220         (gl_HEADER_STRING_H_BODY): Require it.
52221         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
52222         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
52223         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
52224         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
52225         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52226         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
52227         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52228         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
52229         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
52230         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
52231         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
52232         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
52233         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
52234         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52235         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52236
52237 2007-01-27  Bruno Haible  <bruno@clisp.org>
52238
52239         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
52240         check_PROGRAMS into noinst_PROGRAMS.
52241         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
52242         check_PROGRAMS in this case.
52243         (func_import): Set for_test to false.
52244         (func_create_testdir): Set for_test to true.
52245
52246 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
52247             Bruno Haible  <bruno@clisp.org>
52248
52249         * modules/strcasestr (Files): Remove lib/strcasestr.h.
52250         (Depends-on): Add string.
52251         (Includes): Use <string.h> instead of strcasestr.h.
52252         * modules/string (Makefile.am): Also substitute the value of
52253         REPLACE_STRCASESTR.
52254         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
52255         assume strcasestr is declared in <string.h> not <strings.h>. Also
52256         set REPLACE_STRCASESTR.
52257         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
52258         REPLACE_STRCASESTR.
52259         * lib/strcasestr.h: Remove file.
52260         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
52261         * lib/string_.h (strcasestr): New declaration.
52262
52263 2007-01-27  Bruno Haible  <bruno@clisp.org>
52264
52265         * lib/string_.h: Use 'extern'.
52266
52267 2007-01-27  Jim Meyering  <jim@meyering.net>
52268
52269         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
52270         of set-but-not-used local, "q".
52271
52272         * lib/mempcpy.c: Include <config.h> before <string.h>.
52273         This fixes a compilation error on HP-UX, due to the system's
52274         "restrict"-using mempcpy prototype.
52275
52276 2007-01-26  Bruno Haible  <bruno@clisp.org>
52277
52278         Small optimization.
52279         * lib/javacomp.c: Include c-strstr.h.
52280          (is_envjavac_gcj): Use c_strstr instead of strstr.
52281         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
52282
52283 2007-01-26  Bruno Haible  <bruno@clisp.org>
52284
52285         * MODULES.html.sh (Unicode string functions): Add the new modules.
52286
52287         * modules/uniconv/u32-strconv-to-locale: New file.
52288         * lib/uniconv/u32-strconv-to-locale.c: New file.
52289
52290         * modules/uniconv/u16-strconv-to-locale: New file.
52291         * lib/uniconv/u16-strconv-to-locale.c: New file.
52292
52293         * modules/uniconv/u8-strconv-to-locale: New file.
52294         * lib/uniconv/u8-strconv-to-locale.c: New file.
52295
52296         * modules/uniconv/u32-strconv-from-locale: New file.
52297         * lib/uniconv/u32-strconv-from-locale.c: New file.
52298
52299         * modules/uniconv/u16-strconv-from-locale: New file.
52300         * lib/uniconv/u16-strconv-from-locale.c: New file.
52301
52302         * modules/uniconv/u8-strconv-from-locale: New file.
52303         * lib/uniconv/u8-strconv-from-locale.c: New file.
52304
52305         * modules/uniconv/u32-strconv-to-enc: New file.
52306         * lib/uniconv/u32-strconv-to-enc.c: New file.
52307         * modules/uniconv/u32-strconv-to-enc-tests: New file.
52308         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
52309
52310         * modules/uniconv/u16-strconv-to-enc: New file.
52311         * lib/uniconv/u16-strconv-to-enc.c: New file.
52312         * lib/uniconv/u-strconv-to-enc.h: New file.
52313         * modules/uniconv/u16-strconv-to-enc-tests: New file.
52314         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
52315
52316         * modules/uniconv/u8-strconv-to-enc: New file.
52317         * lib/uniconv/u8-strconv-to-enc.c: New file.
52318         * modules/uniconv/u8-strconv-to-enc-tests: New file.
52319         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
52320
52321         * modules/uniconv/u32-strconv-from-enc: New file.
52322         * lib/uniconv/u32-strconv-from-enc.c: New file.
52323         * modules/uniconv/u32-strconv-from-enc-tests: New file.
52324         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
52325
52326         * modules/uniconv/u16-strconv-from-enc: New file.
52327         * lib/uniconv/u16-strconv-from-enc.c: New file.
52328         * modules/uniconv/u16-strconv-from-enc-tests: New file.
52329         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
52330
52331         * modules/uniconv/u8-strconv-from-enc: New file.
52332         * lib/uniconv/u8-strconv-from-enc.c: New file.
52333         * lib/uniconv/u-strconv-from-enc.h: New file.
52334         * modules/uniconv/u8-strconv-from-enc-tests: New file.
52335         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
52336
52337         * modules/uniconv/u32-conv-from-enc: New file.
52338         * lib/uniconv/u32-conv-from-enc.c: New file.
52339         * modules/uniconv/u32-conv-from-enc-tests: New file.
52340         * tests/uniconv/test-u32-conv-from-enc.c: New file.
52341
52342         * modules/uniconv/u16-conv-from-enc: New file.
52343         * lib/uniconv/u16-conv-from-enc.c: New file.
52344         * lib/uniconv/u-conv-from-enc.h: New file.
52345         * modules/uniconv/u16-conv-from-enc-tests: New file.
52346         * tests/uniconv/test-u16-conv-from-enc.c: New file.
52347
52348         * modules/uniconv/u8-conv-from-enc: New file.
52349         * lib/uniconv/u8-conv-from-enc.c: New file.
52350         * modules/uniconv/u8-conv-from-enc-tests: New file.
52351         * tests/uniconv/test-u8-conv-from-enc.c: New file.
52352
52353         * modules/uniconv/base: New file.
52354         * lib/uniconv.h: New file.
52355
52356 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
52357
52358         * doc/gnulib-tool.texi (Initial import): Update to match current
52359         behavior with strdup module.
52360         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
52361         * lib/memmem.h: Remove; all uses removed.  This is now done
52362         by <string.h>.
52363         * lib/mempcpy.h: Likewise.
52364         * lib/memrchr.h: Likewise.
52365         * lib/stpcpy.h: Likewise.
52366         * lib/stpncpy.h: Likewise.
52367         * lib/strcase.h: Likewise.
52368         * lib/strchrnul.h: Likewise.
52369         * lib/strdup.h: Likewise.
52370         * lib/strndup.h: Likewise.
52371         * lib/strnlen.h: Likewise.
52372         * lib/strpbrk.h: Likewise.
52373         * lib/strsep.h: Likewise.
52374         * lib/strstr.h: Likewise.
52375         * lib/strtok_r.h: Likewise.
52376         * lib/string_.h: New file.
52377         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
52378         Rely on <string.h> instead.
52379         * lib/canon-host.c: Likewise.
52380         * lib/chdir-long.c: Likewise.
52381         * lib/concatpath.c: Likewise.
52382         * lib/exclude.c: Likewise.
52383         * lib/fchdir.c: Likewise.
52384         * lib/getaddrinfo.c: Likewise.
52385         * lib/getcwd.c: Likewise.
52386         * lib/getsubopt.c: Likewise.
52387         * lib/glob.c: Likewise.
52388         * lib/hard-locale.c: Likewise.
52389         * lib/iconvme.c: Likewise.
52390         * lib/javacomp.c: Likewise.
52391         * lib/mempcpy.c: Likewise.
52392         * lib/memrchr.c: Likewise.
52393         * lib/regex_internal.h: Likewise.
52394         * lib/stpncpy.c: Likewise.
52395         * lib/strcasecmp.c: Likewise.
52396         * lib/strchrnul.c: Likewise.
52397         * lib/strdup.c: Likewise.
52398         * lib/striconv.c: Likewise.
52399         * lib/striconveh.c: Likewise.
52400         * lib/striconveha.c: Likewise.
52401         * lib/strncasecmp.c: Likewise.
52402         * lib/strndup.c: Likewise.
52403         * lib/strnlen.c: Likewise.
52404         * lib/strsep.c: Likewise.
52405         * lib/strstr.c: Likewise.
52406         * lib/strtok_r.c: Likewise.
52407         * lib/userspec.c: Likewise.
52408         * lib/w32spawn.h: Likewise.
52409         * lib/xstrndup.c: Likewise.
52410         * lib/mountlist.c (strstr): Remove decl.
52411         * m4/string_h.m4: New file.
52412         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
52413         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
52414         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
52415         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
52416         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
52417         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
52418         Set REPLACE_STRCASECMP if necessary.
52419         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
52420         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
52421         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
52422         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
52423         HAVE_DECL_STRDUP if necessary.
52424         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
52425         since gl_FUNC_STRNDUP does that now.
52426         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
52427         Check for decl here...
52428         (gl_PREREQ_STRNLEN): ... not here.
52429         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
52430         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
52431         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
52432         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
52433         necessary.
52434         * modules/string: New file.
52435         * modules/memmem (Files): Remove special-purpose include file.
52436         (Depends-on): Add string.
52437         (Include): Include <string.h>, not the removed file.
52438         * modules/mempcpy: Likewise.
52439         * modules/memrchr: Likewise.
52440         * modules/stpcpy: Likewise.
52441         * modules/stpncpy: Likewise.
52442         * modules/strcase: Likewise.
52443         * modules/strchrnul: Likewise.
52444         * modules/strdup: Likewise.
52445         * modules/strndup: Likewise.
52446         * modules/strnlen: Likewise.
52447         * modules/strpbrk: Likewise.
52448         * modules/strsep: Likewise.
52449         * modules/strstr: Likewise.
52450         * modules/strtok_r: Likewise.
52451         * tests/test-dirname.c: Don't include "strdup.h", since
52452         <string.h> now suffices.
52453         * tests/test-memmem.c: Don't include "memmem.h", since
52454         <string.h> now suffices.
52455
52456 2007-01-25  Bruno Haible  <bruno@clisp.org>
52457
52458         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
52459         *resultp is 0.
52460
52461         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
52462         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
52463         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
52464         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
52465
52466         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
52467         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
52468         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
52469         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
52470         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
52471         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
52472
52473 2007-01-24  Bruno Haible  <bruno@clisp.org>
52474
52475         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
52476         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
52477         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
52478         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
52479         gl_FUNC_FTS_CORE.
52480         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
52481         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
52482         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52483         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
52484         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
52485         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
52486         gl_FUNC_FCHOWNAT.
52487         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
52488         gl_FUNC_STRFTIME.
52489         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
52490         Reported by Ralf Wildenhues.
52491
52492 2007-01-24  Bruno Haible  <bruno@clisp.org>
52493
52494         Drop AC_REQUIRE calls that are redundant with the module dependencies.
52495         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
52496         gl_GETADDRINFO.
52497         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
52498         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
52499         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
52500
52501 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
52502
52503         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
52504         Don't use 'exit'; just return from 'main'.
52505         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
52506
52507         * lib/fnmatch_.h: Readjust white space and comments to match
52508         glibc, to avoid spurious diffs.
52509
52510 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52511
52512         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
52513         2004-12-01 change by Jakub Jelinek, since this code won't compile
52514         if !LIBC.  Problem reported by Bob Proulx.
52515
52516 2007-01-23  Bruno Haible  <bruno@clisp.org>
52517
52518         * lib/striconveh.c: Include c-strcaseeq.h.
52519         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
52520         * modules/striconveh (Depends-on): Add c-strcaseeq.
52521
52522 2007-01-23  Bruno Haible  <bruno@clisp.org>
52523
52524         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
52525
52526         * modules/c-strcaseeq: New file.
52527         * lib/c-strcaseeq.h: New file.
52528
52529         * modules/streq: New file.
52530         * lib/streq.h: New file.
52531
52532 2007-01-23  Bruno Haible  <bruno@clisp.org>
52533
52534         * modules/striconveha-tests: New file.
52535         * tests/test-striconveha.c: New file.
52536
52537         * lib/striconveha.h: Include <stdbool.h>.
52538         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
52539         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
52540         (mem_iconveha_notranslit): Renamed from mem_iconveha.
52541         (mem_iconveha): New function.
52542         (str_iconveha_notranslit): Renamed from str_iconveha.
52543         (str_iconveha): New function.
52544         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
52545         c-strcase.
52546
52547 2007-01-23  Bruno Haible  <bruno@clisp.org>
52548
52549         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
52550         encodings without forgiving before trying any encoding with handler.
52551         (str_iconveha): Try all encodings without forgiving before trying any
52552         encoding with handler.
52553
52554 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52555
52556         Import the following changes from libc.
52557
52558         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
52559
52560         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
52561
52562         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
52563
52564         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
52565         normal_bracket label.
52566
52567         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
52568
52569         [BZ #361]
52570         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
52571         to normal_bracket after fetching the next character.
52572
52573 2007-01-22  Bruno Haible  <bruno@clisp.org>
52574
52575         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
52576         argument.
52577         * lib/striconveh.c (iconv_carefully_1): New function.
52578         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
52579         argument.
52580         (str_cd_iconveh): Update.
52581         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
52582         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
52583         * tests/test-striconveh.c (MAGIC): New macro.
52584         (new_offsets): New function.
52585         (main): Test call with and without offsets.
52586
52587 2007-01-22  Bruno Haible  <bruno@clisp.org>
52588
52589         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
52590         * modules/sys_select (Makefile.am): Likewise.
52591         * modules/sys_socket (Makefile.am): Likewise.
52592         * modules/sys_time (Makefile.am): Likewise.
52593
52594 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
52595
52596         * modules/gettimeofday (License): Change from GPL to LGPL, since
52597         gettimeofday is a library function.
52598
52599 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52600
52601         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
52602
52603 2007-01-21  Bruno Haible  <bruno@clisp.org>
52604
52605         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
52606
52607 2007-01-21  Bruno Haible  <bruno@clisp.org>
52608
52609         * modules/striconveha: New file.
52610         * lib/striconveha.h: New file.
52611         * lib/striconveha.c: New file.
52612         * MODULES.html.sh (Internationalization functions): Add striconveha.
52613         * lib/striconv.c (str_iconv): Optimize the case of an empty input
52614         string.
52615         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
52616
52617 2007-01-21  Bruno Haible  <bruno@clisp.org>
52618
52619         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
52620         * lib/striconveh.c (str_iconveh): Likewise.
52621
52622 2007-01-21  Bruno Haible  <bruno@clisp.org>
52623
52624         * lib/striconveh.h (mem_iconveh): New declaration.
52625         * lib/striconveh.c (mem_iconveh): New function.
52626         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
52627
52628 2007-01-21  Bruno Haible  <bruno@clisp.org>
52629
52630         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
52631
52632         * lib/striconveh.h (mem_cd_iconveh): Change specification.
52633         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
52634         original result buffer.
52635         (str_cd_iconveh): Update.
52636         * tests/test-striconveh.c (main): Update.
52637
52638         * lib/striconv.h (mem_cd_iconv): Change specification.
52639         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
52640         result buffer.
52641         (str_cd_iconv): Update.
52642         * tests/test-striconv.c (main): Update.
52643
52644 2007-01-21  Bruno Haible  <bruno@clisp.org>
52645
52646         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
52647
52648 2007-01-20  Jim Meyering  <jim@meyering.net>
52649
52650         * lib/userspec.c (parse_with_separator): If a user or group string
52651         starts with "+", skip the corresponding name-to-ID look-up, since
52652         such a look-up must fail: user and group names may not include "+".
52653
52654 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
52655
52656         * lib/poll.c: Include sys/time.h and time.h unconditionally,
52657         since we now assume the sys_time module.
52658         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
52659         check for sys/time.h; no longer needed.
52660         * modules/poll (Depends-on): Depend on sys_time.
52661
52662 2007-01-18  Bruno Haible  <bruno@clisp.org>
52663
52664         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
52665         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
52666
52667         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
52668         gettimeofday.
52669
52670         * tests/test-gettimeofday.c: Include <time.h>.
52671         (dummy): Remove variable.
52672
52673         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
52674         gl_HEADER_SYS_TIME_H.
52675         (gl_HEADER_SYS_TIME_H): New macro.
52676
52677         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
52678         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52679         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
52680         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
52681         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52682         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
52683         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
52684         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52685         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
52686         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
52687         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52688
52689         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
52690         last change; it caused a compilation error when cross-compiling to
52691         Cygwin.
52692
52693 2007-01-18  Jim Meyering  <jim@meyering.net>
52694
52695         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
52696         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
52697         than the race-prone "test -d sys || mkdir sys".
52698         (configure.ac): Use AC_PROG_MKDIR_P.
52699         * modules/sys_select: Likewise.
52700         * modules/sys_socket: Likewise.
52701         * modules/sys_time: Likewise.
52702
52703 2007-01-18  Eric Blake  <ebb9@byu.net>
52704
52705         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
52706         replace gettimeofday.
52707         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
52708         name, to avoid infinite recursion.
52709
52710 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
52711
52712         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
52713         module sys_time.
52714         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
52715         assume timespec.h defines struct timeval.
52716         * lib/settime.c: Likewise.
52717         * lib/utimens.c: Likewise.
52718         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
52719         since we now assume the gettimeofday module.
52720         * lib/tempname.c (__gen_tempname): Likewise.
52721         * lib/gettimeofday.h: Remove.
52722         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
52723         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
52724         Include <time.h>, for 'time()'.
52725         (localtime_buffer_addr): Also use this workaround if
52726         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
52727         to simplify the uses.  All uses changed.
52728         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
52729         that #undef is inside {}, and 'const' follows type name consistently.
52730         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
52731         (gettimeofday): Do not use the maximum possible value for
52732         tv->tv_usec, since that might break usages other than ls.c.
52733         Instead, we'll leave ls.c alone.  This undoes today's patch
52734         by Bruno.  Add a compile-time warning for 1s-clock resolution;
52735         we've never observed the problem but might as well keep the
52736         canary.
52737         * lib/nanosleep.c: Include timespec.h first, for interface check.
52738         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
52739         now assume the sys_time module.
52740         * lib/tempname.c: Likewise.
52741         * lib/timespec.h: Likewise.
52742         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
52743         needed.
52744         * lib/strftime.c: Likewise.
52745         * lib/timespec.h: Likewise.
52746         * lib/posixtm.c: Include posixtm.h first, for interface check.
52747         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
52748         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
52749         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
52750         * lib/sys_time_.h: New file.
52751         * lib/timespec.h (struct timespec): Use long int, not long.
52752         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
52753         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
52754         Remove obsolescent call to AC_HEADER_TIME.
52755         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
52756         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52757         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
52758         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
52759         Likewise.
52760         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
52761         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
52762         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
52763         into the sys_time module.  Check for gettimeofday just once.
52764         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
52765         for gettimeofday signature to just check the signature.  Merely
52766         compile it, since linking doesn't test signature.  Improve test for
52767         whether gettimeofday.o is actually needed.
52768         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
52769         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
52770         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
52771         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52772         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
52773         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
52774         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
52775         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
52776         than worrying about sys/time.h.
52777         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
52778         Don't bother worrying about TIME_WITH_SYS_TIME.
52779         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
52780         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
52781         * m4/sys_time_h.m4: New file.
52782         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
52783         Don't include sys/time.h.  Return from main rather than exiting.
52784         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
52785         all uses changed.
52786         * modules/gethrxtime (Depends-on): Add sys_time.
52787         * modules/gettime (Depends-on): Likewise.
52788         * modules/gettimeofday (Depends-on): Likewise.
52789         * modules/nanosleep (Depends-on): Likewise.
52790         * modules/settime (Depends-on): Likewise.
52791         * modules/tempname (Depends-on): Likewise.
52792         * modules/utimens (Depends-on): Likewise.
52793         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
52794         (Include:) Change back to <sys/time.h>.
52795         (Maintainer:) Add self.
52796         * modules/sys_time: New file.
52797         * modules/tempname (Depends-on): Add gettimeofday.
52798         * tests/test-gettimeofday.c: Include <sys/time.h>
52799         rather than gettimeofday.h.
52800
52801 2007-01-17  Bruno Haible  <bruno@clisp.org>
52802
52803         * gnulib-tool (func_get_license): Revert last patch. Instead, let
52804         the license default to GPL.
52805         (func_create_testdir): Don't complain if a module is LGPL and its
52806         tests module depends on GPLed modules.
52807
52808 2007-01-17  Bruno Haible  <bruno@clisp.org>
52809
52810         * lib/gettimeofday.c (gettimeofday): Add code for the case
52811         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
52812         maximum possible value for tv->tv_usec, rather than the minimum one.
52813
52814 2005-10-08  Martin Lambers  <marlam@marlam.de>
52815 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
52816 2007-01-16  Bruno Haible  <bruno@clisp.org>
52817
52818         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
52819         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
52820         gl_FUNC_GETTIMEOFDAY.
52821         (Include): Add gettimeofday.h.
52822         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
52823         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
52824         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
52825         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
52826         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
52827         * lib/gettimeofday.h: New file.
52828         * lib/gettimeofday.c: Include <sys/timeb.h>.
52829         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
52830         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52831         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
52832         fall back on time().
52833
52834         * tests/test-gettimeofday.c: New file.
52835         * modules/gettimeofday-tests: New file.
52836
52837 2007-01-16  Eric Blake  <ebb9@byu.net>
52838
52839         * modules/fnmatch (Depends-on): Depend on wchar.
52840         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
52841         * m4/fnmatch.m4: Likewise.
52842         * modules/mbchar (Makefile.am): Assume <wchar.h>.
52843         * m4/mbchar.m4: Likewise.
52844         * modules/mbswidth (Depends-on): Depend on wchar.
52845         * lib/mbswidth.c: Assume <wchar.h>.
52846         * m4/mbswidth.m4: Likewise.
52847         * modules/quotearg (Depends-on): Depend on wchar.
52848         * lib/quotearg.c: Assume <wchar.h>.
52849         * m4/quotearg.m4: Likewise.
52850         * modules/regex (Depends-on): Depend on wchar.
52851         * lib/regex_internal.h: Assume <wchar.h>.
52852         * m4/regex.m4: Likewise.
52853         * modules/stdint (Depends-on): Depend on wchar.
52854         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
52855         * m4/stdint.m4: Likewise.
52856         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
52857         * modules/strftime (Depends-on): Depend on wchar.
52858         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
52859         * modules/strtol (Depends-on): Depend on wchar.
52860         * lib/strtol.c: Assume <wchar.h>.
52861         * modules/wcwidth (Depends-on): Depend on wchar.
52862         * lib/wcwidth.h: Assume <wchar.h>.
52863         * m4/wcwidth.m4: Likewise.
52864
52865 2007-01-16  Bruno Haible  <bruno@clisp.org>
52866
52867         * modules/csharpexec-script: New, created from...
52868         * modules/csharpexec: ... this.
52869
52870 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52871
52872         * modules/javaexec-script: New, created from...
52873         * modules/javaexec: ... this.
52874
52875 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52876
52877         * modules/poll (Dependencies): Add sys_select.
52878
52879 2007-01-15  Jim Meyering  <jim@meyering.net>
52880
52881         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
52882         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
52883         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
52884         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
52885
52886 2007-01-15  Bruno Haible  <bruno@clisp.org>
52887
52888         * modules/striconveh: New file.
52889         * lib/striconveh.h: New file.
52890         * lib/striconveh.c: New file.
52891         * MODULES.html.sh (Internationalization functions): Add striconveh.
52892
52893         * modules/striconveh-tests: New file.
52894         * tests/test-striconveh.c: New file.
52895
52896 2007-01-15  Bruno Haible  <bruno@clisp.org>
52897
52898         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
52899         not from GNU libiconv or GNU libc.
52900
52901 2007-01-15  Bruno Haible  <bruno@clisp.org>
52902
52903         * doc/gnulib-intro.texi (Copyright): Explain the different license
52904         terms for module descriptions, autoconf macros, tests, documentation.
52905
52906 2007-01-14  Bruno Haible  <bruno@clisp.org>
52907
52908         * modules/striconv-tests: New file.
52909         * tests/test-striconv.c: New file.
52910
52911 2007-01-14  Bruno Haible  <bruno@clisp.org>
52912
52913         * modules/iconv-tests: New file.
52914         * tests/test-iconv.c: New file.
52915
52916 2007-01-14  Bruno Haible  <bruno@clisp.org>
52917
52918         * gnulib-tool (func_get_license): For test modules, use the license of
52919         the main module.
52920
52921 2007-01-14  Bruno Haible  <bruno@clisp.org>
52922
52923         * modules/iconv (Include): Clarify that <iconv.h> can only be included
52924         if iconv is found to exist.
52925
52926 2007-01-14  Bruno Haible  <bruno@clisp.org>
52927
52928         * modules/c-ctype-tests: New file.
52929         * tests/test-c-ctype.c: New file.
52930
52931 2007-01-14  Bruno Haible  <bruno@clisp.org>
52932
52933         * modules/binary-io-tests: New file.
52934         * tests/test-binary-io.sh: New file.
52935         * tests/test-binary-io.c: New file.
52936
52937 2007-01-14  Bruno Haible  <bruno@clisp.org>
52938
52939         * modules/array-oset-tests: New file.
52940         * tests/test-array_oset.c: New file.
52941
52942 2007-01-14  Bruno Haible  <bruno@clisp.org>
52943
52944         * modules/array-list-tests: New file.
52945         * tests/test-array_list.c: New file.
52946
52947 2007-01-14  Bruno Haible  <bruno@clisp.org>
52948
52949         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
52950         and make.
52951         Reported by Simon Josefsson in
52952         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
52953
52954 2007-01-14  Bruno Haible  <bruno@clisp.org>
52955
52956         * modules/allocsa-tests: New file.
52957         * tests/test-allocsa.c: New file.
52958
52959 2007-01-14  Bruno Haible  <bruno@clisp.org>
52960
52961         * modules/fchdir (Depends-on): Add absolute-header.
52962         * modules/unistd (Depends-on): Likewise.
52963
52964 2006-12-30  Bruno Haible  <bruno@clisp.org>
52965
52966         * modules/fchdir: New file.
52967         * modules/unistd (Files): Add lib/unistd_.h.
52968         (Makefile.am): Generate unistd.h from unistd_.h.
52969         * lib/fchdir.c: New file.
52970         * lib/dirent_.h: New file.
52971         * lib/unistd_.h: New file.
52972         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
52973         * m4/fchdir.m4: New file.
52974         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
52975         (gl_HEADER_UNISTD): Invoke it.
52976         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
52977         function.
52978         * lib/backupfile.c (opendir, closedir): Undefine.
52979         * lib/chown.c (open, close): Undefine.
52980         * lib/clean-temp.c (open, close): Undefine.
52981         * lib/copy-file.c (open, close): Undefine.
52982         * lib/execute.c (open, close): Undefine.
52983         * lib/fsusage.c (open, close): Undefine.
52984         * lib/gc-gnulib.c (open, close): Undefine.
52985         * lib/getcwd.c (opendir, closedir): Undefine.
52986         * lib/glob.c (opendir, closedir): Undefine.
52987         * lib/javacomp.c (open, close): Undefine.
52988         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
52989         * lib/openat-proc.c (open, close): Undefine.
52990         * lib/pagealign_alloc.c (open, close): Undefine.
52991         * lib/pipe.c (open, close): Undefine.
52992         * lib/progreloc.c (open, close): Undefine.
52993         * lib/savedir.c (opendir, closedir): Undefine.
52994         * lib/utime.c (open, close): Undefine.
52995         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
52996
52997 2007-01-10  Bruno Haible  <bruno@clisp.org>
52998
52999         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
53000
53001 2007-01-12  Eric Blake  <ebb9@byu.net>
53002
53003         Provide a robust <wchar.h>.  Further simplifications are now
53004         possible in other modules, but not included here.
53005         * modules/wchar: New module.
53006         * m4/wchar.m4: New file.
53007         * lib/wchar_.h: Likewise.
53008         * modules/mbchar (Depends-on): Depend on wchar, as the first use
53009         of the new module.
53010         * MODULES.html.sh (Extended multibyte and wide character utilities):
53011         New section.
53012
53013 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
53014
53015         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
53016         to a reasonable default for memory allocation.
53017         (xreadlink): Don't allocate a huge buffer, to work around a buggy
53018         file system that reports garbage st_size values for symlinks.
53019         Problem reported by Liyang Hu.
53020
53021 2007-01-11  Simon Josefsson  <simon@josefsson.org>
53022
53023         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
53024         Emacs .#* auto-save files).
53025
53026 2007-01-11  Bruno Haible  <bruno@clisp.org>
53027
53028         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
53029         directory.
53030
53031 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53032
53033         Use @...@ consistently in lib/wctype_.h.
53034         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
53035         on it being set to 1 or 0.
53036         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
53037         go back to AC_SUBSTing it.
53038         * modules/wctype (Makefile.am): Undo previous change.
53039
53040 2007-01-10  Eric Blake  <ebb9@byu.net>
53041
53042         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
53043         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
53044         * modules/wctype (Makefile.am): Likewise.
53045         Reported by Chris McGuire.
53046
53047 2007-01-10  Jim Meyering  <jim@meyering.net>
53048
53049         fts.c: a small readability/maintainability improvement
53050         * lib/fts.c (fts_read): Make this code slightly more readable and
53051         maintainable by hoisting the "sp->fts_cur = p" assignments to
53052         immediately follow the statements that set P.  Derived from
53053         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
53054
53055 2007-01-10  Eric Blake  <ebb9@byu.net>
53056
53057         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
53058         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
53059         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53060         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53061         Reported by Chris McGuire.
53062
53063 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53064
53065         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
53066         in sed script.
53067
53068 2007-01-09  Bruno Haible  <bruno@clisp.org>
53069
53070         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
53071         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
53072         variables.
53073         (func_module): Use them.
53074
53075 2007-01-09  Bruno Haible  <bruno@clisp.org>
53076
53077         * modules/unistr/base: New file.
53078         * lib/unistr.h: New file.
53079
53080         * modules/unistr/u8-to-u16: New file.
53081         * lib/unistr/u8-to-u16.c: New file.
53082
53083         * modules/unistr/u8-to-u32: New file.
53084         * lib/unistr/u8-to-u32.c: New file.
53085
53086         * modules/unistr/u16-to-u8: New file.
53087         * lib/unistr/u16-to-u8.c: New file.
53088
53089         * modules/unistr/u16-to-u32: New file.
53090         * lib/unistr/u16-to-u32.c: New file.
53091
53092         * modules/unistr/u32-to-u8: New file.
53093         * lib/unistr/u32-to-u8.c: New file.
53094
53095         * modules/unistr/u32-to-u16: New file.
53096         * lib/unistr/u32-to-u16.c: New file.
53097
53098         * modules/unistr/u8-check: New file.
53099         * modules/unistr/u16-check: New file.
53100         * modules/unistr/u32-check: New file.
53101         * lib/unistr/u8-check.c: New file.
53102         * lib/unistr/u16-check.c: New file.
53103         * lib/unistr/u32-check.c: New file.
53104
53105         * modules/unistr/u8-chr: New file.
53106         * modules/unistr/u16-chr: New file.
53107         * modules/unistr/u32-chr: New file.
53108         * lib/unistr/u8-chr.c: New file.
53109         * lib/unistr/u16-chr.c: New file.
53110         * lib/unistr/u32-chr.c: New file.
53111
53112         * modules/unistr/u8-cmp: New file.
53113         * modules/unistr/u16-cmp: New file.
53114         * modules/unistr/u32-cmp: New file.
53115         * lib/unistr/u8-cmp.c: New file.
53116         * lib/unistr/u16-cmp.c: New file.
53117         * lib/unistr/u32-cmp.c: New file.
53118
53119         * modules/unistr/u8-cpy: New file.
53120         * modules/unistr/u16-cpy: New file.
53121         * modules/unistr/u32-cpy: New file.
53122         * lib/unistr/u8-cpy.c: New file.
53123         * lib/unistr/u16-cpy.c: New file.
53124         * lib/unistr/u32-cpy.c: New file.
53125         * lib/unistr/u-cpy.h: New file.
53126
53127         * modules/unistr/u8-cpy-alloc: New file.
53128         * modules/unistr/u16-cpy-alloc: New file.
53129         * modules/unistr/u32-cpy-alloc: New file.
53130         * lib/unistr/u8-cpy-alloc.c: New file.
53131         * lib/unistr/u16-cpy-alloc.c: New file.
53132         * lib/unistr/u32-cpy-alloc.c: New file.
53133         * lib/unistr/u-cpy-alloc.h: New file.
53134
53135         * modules/unistr/u8-endswith: New file.
53136         * modules/unistr/u16-endswith: New file.
53137         * modules/unistr/u32-endswith: New file.
53138         * lib/unistr/u8-endswith.c: New file.
53139         * lib/unistr/u16-endswith.c: New file.
53140         * lib/unistr/u32-endswith.c: New file.
53141         * lib/unistr/u-endswith.h: New file.
53142
53143         * modules/unistr/u8-mblen: New file.
53144         * modules/unistr/u16-mblen: New file.
53145         * modules/unistr/u32-mblen: New file.
53146         * lib/unistr/u8-mblen.c: New file.
53147         * lib/unistr/u16-mblen.c: New file.
53148         * lib/unistr/u32-mblen.c: New file.
53149
53150         * modules/unistr/u8-mbtouc: New file.
53151         * modules/unistr/u16-mbtouc: New file.
53152         * modules/unistr/u32-mbtouc: New file.
53153         * lib/unistr/u8-mbtouc.c: New file.
53154         * lib/unistr/u16-mbtouc.c: New file.
53155         * lib/unistr/u32-mbtouc.c: New file.
53156
53157         * modules/unistr/u8-mbtouc-safe: New file.
53158         * modules/unistr/u16-mbtouc-safe: New file.
53159         * modules/unistr/u32-mbtouc-safe: New file.
53160         * lib/unistr/u8-mbtouc-safe.c: New file.
53161         * lib/unistr/u16-mbtouc-safe.c: New file.
53162         * lib/unistr/u32-mbtouc-safe.c: New file.
53163
53164         * modules/unistr/u8-move: New file.
53165         * modules/unistr/u16-move: New file.
53166         * modules/unistr/u32-move: New file.
53167         * lib/unistr/u8-move.c: New file.
53168         * lib/unistr/u16-move.c: New file.
53169         * lib/unistr/u32-move.c: New file.
53170         * lib/unistr/u-move.h: New file.
53171
53172         * modules/unistr/u8-next: New file.
53173         * modules/unistr/u16-next: New file.
53174         * modules/unistr/u32-next: New file.
53175         * lib/unistr/u8-next.c: New file.
53176         * lib/unistr/u16-next.c: New file.
53177         * lib/unistr/u32-next.c: New file.
53178
53179         * modules/unistr/u8-prev: New file.
53180         * modules/unistr/u16-prev: New file.
53181         * modules/unistr/u32-prev: New file.
53182         * lib/unistr/u8-prev.c: New file.
53183         * lib/unistr/u16-prev.c: New file.
53184         * lib/unistr/u32-prev.c: New file.
53185
53186         * modules/unistr/u8-set: New file.
53187         * modules/unistr/u16-set: New file.
53188         * modules/unistr/u32-set: New file.
53189         * lib/unistr/u8-set.c: New file.
53190         * lib/unistr/u16-set.c: New file.
53191         * lib/unistr/u32-set.c: New file.
53192         * lib/unistr/u-set.h: New file.
53193
53194         * modules/unistr/u8-startswith: New file.
53195         * modules/unistr/u16-startswith: New file.
53196         * modules/unistr/u32-startswith: New file.
53197         * lib/unistr/u8-startswith.c: New file.
53198         * lib/unistr/u16-startswith.c: New file.
53199         * lib/unistr/u32-startswith.c: New file.
53200         * lib/unistr/u-startswith.h: New file.
53201
53202         * modules/unistr/u8-stpcpy: New file.
53203         * modules/unistr/u16-stpcpy: New file.
53204         * modules/unistr/u32-stpcpy: New file.
53205         * lib/unistr/u8-stpcpy.c: New file.
53206         * lib/unistr/u16-stpcpy.c: New file.
53207         * lib/unistr/u32-stpcpy.c: New file.
53208         * lib/unistr/u-stpcpy.h: New file.
53209
53210         * modules/unistr/u8-stpncpy: New file.
53211         * modules/unistr/u16-stpncpy: New file.
53212         * modules/unistr/u32-stpncpy: New file.
53213         * lib/unistr/u8-stpncpy.c: New file.
53214         * lib/unistr/u16-stpncpy.c: New file.
53215         * lib/unistr/u32-stpncpy.c: New file.
53216         * lib/unistr/u-stpncpy.h: New file.
53217
53218         * modules/unistr/u8-strcat: New file.
53219         * modules/unistr/u16-strcat: New file.
53220         * modules/unistr/u32-strcat: New file.
53221         * lib/unistr/u8-strcat.c: New file.
53222         * lib/unistr/u16-strcat.c: New file.
53223         * lib/unistr/u32-strcat.c: New file.
53224         * lib/unistr/u-strcat.h: New file.
53225
53226         * modules/unistr/u8-strchr: New file.
53227         * modules/unistr/u16-strchr: New file.
53228         * modules/unistr/u32-strchr: New file.
53229         * lib/unistr/u8-strchr.c: New file.
53230         * lib/unistr/u16-strchr.c: New file.
53231         * lib/unistr/u32-strchr.c: New file.
53232
53233         * modules/unistr/u8-strcmp: New file.
53234         * modules/unistr/u16-strcmp: New file.
53235         * modules/unistr/u32-strcmp: New file.
53236         * lib/unistr/u8-strcmp.c: New file.
53237         * lib/unistr/u16-strcmp.c: New file.
53238         * lib/unistr/u32-strcmp.c: New file.
53239
53240         * modules/unistr/u8-strcpy: New file.
53241         * modules/unistr/u16-strcpy: New file.
53242         * modules/unistr/u32-strcpy: New file.
53243         * lib/unistr/u8-strcpy.c: New file.
53244         * lib/unistr/u16-strcpy.c: New file.
53245         * lib/unistr/u32-strcpy.c: New file.
53246         * lib/unistr/u-strcpy.h: New file.
53247
53248         * modules/unistr/u8-strcspn: New file.
53249         * modules/unistr/u16-strcspn: New file.
53250         * modules/unistr/u32-strcspn: New file.
53251         * lib/unistr/u8-strcspn.c: New file.
53252         * lib/unistr/u16-strcspn.c: New file.
53253         * lib/unistr/u32-strcspn.c: New file.
53254         * lib/unistr/u-strcspn.h: New file.
53255
53256         * modules/unistr/u8-strdup: New file.
53257         * modules/unistr/u16-strdup: New file.
53258         * modules/unistr/u32-strdup: New file.
53259         * lib/unistr/u8-strdup.c: New file.
53260         * lib/unistr/u16-strdup.c: New file.
53261         * lib/unistr/u32-strdup.c: New file.
53262         * lib/unistr/u-strdup.h: New file.
53263
53264         * modules/unistr/u8-strlen: New file.
53265         * modules/unistr/u16-strlen: New file.
53266         * modules/unistr/u32-strlen: New file.
53267         * lib/unistr/u8-strlen.c: New file.
53268         * lib/unistr/u16-strlen.c: New file.
53269         * lib/unistr/u32-strlen.c: New file.
53270         * lib/unistr/u-strlen.h: New file.
53271
53272         * modules/unistr/u8-strmblen: New file.
53273         * modules/unistr/u16-strmblen: New file.
53274         * modules/unistr/u32-strmblen: New file.
53275         * lib/unistr/u8-strmblen.c: New file.
53276         * lib/unistr/u16-strmblen.c: New file.
53277         * lib/unistr/u32-strmblen.c: New file.
53278
53279         * modules/unistr/u8-strmbtouc: New file.
53280         * modules/unistr/u16-strmbtouc: New file.
53281         * modules/unistr/u32-strmbtouc: New file.
53282         * lib/unistr/u8-strmbtouc.c: New file.
53283         * lib/unistr/u16-strmbtouc.c: New file.
53284         * lib/unistr/u32-strmbtouc.c: New file.
53285
53286         * modules/unistr/u8-strncat: New file.
53287         * modules/unistr/u16-strncat: New file.
53288         * modules/unistr/u32-strncat: New file.
53289         * lib/unistr/u8-strncat.c: New file.
53290         * lib/unistr/u16-strncat.c: New file.
53291         * lib/unistr/u32-strncat.c: New file.
53292         * lib/unistr/u-strncat.h: New file.
53293
53294         * modules/unistr/u8-strncmp: New file.
53295         * modules/unistr/u16-strncmp: New file.
53296         * modules/unistr/u32-strncmp: New file.
53297         * lib/unistr/u8-strncmp.c: New file.
53298         * lib/unistr/u16-strncmp.c: New file.
53299         * lib/unistr/u32-strncmp.c: New file.
53300
53301         * modules/unistr/u8-strncpy: New file.
53302         * modules/unistr/u16-strncpy: New file.
53303         * modules/unistr/u32-strncpy: New file.
53304         * lib/unistr/u8-strncpy.c: New file.
53305         * lib/unistr/u16-strncpy.c: New file.
53306         * lib/unistr/u32-strncpy.c: New file.
53307         * lib/unistr/u-strncpy.h: New file.
53308
53309         * modules/unistr/u8-strnlen: New file.
53310         * modules/unistr/u16-strnlen: New file.
53311         * modules/unistr/u32-strnlen: New file.
53312         * lib/unistr/u8-strnlen.c: New file.
53313         * lib/unistr/u16-strnlen.c: New file.
53314         * lib/unistr/u32-strnlen.c: New file.
53315         * lib/unistr/u-strnlen.h: New file.
53316
53317         * modules/unistr/u8-strpbrk: New file.
53318         * modules/unistr/u16-strpbrk: New file.
53319         * modules/unistr/u32-strpbrk: New file.
53320         * lib/unistr/u8-strpbrk.c: New file.
53321         * lib/unistr/u16-strpbrk.c: New file.
53322         * lib/unistr/u32-strpbrk.c: New file.
53323         * lib/unistr/u-strpbrk.h: New file.
53324
53325         * modules/unistr/u8-strrchr: New file.
53326         * modules/unistr/u16-strrchr: New file.
53327         * modules/unistr/u32-strrchr: New file.
53328         * lib/unistr/u8-strrchr.c: New file.
53329         * lib/unistr/u16-strrchr.c: New file.
53330         * lib/unistr/u32-strrchr.c: New file.
53331
53332         * modules/unistr/u8-strspn: New file.
53333         * modules/unistr/u16-strspn: New file.
53334         * modules/unistr/u32-strspn: New file.
53335         * lib/unistr/u8-strspn.c: New file.
53336         * lib/unistr/u16-strspn.c: New file.
53337         * lib/unistr/u32-strspn.c: New file.
53338         * lib/unistr/u-strspn.h: New file.
53339
53340         * modules/unistr/u8-strstr: New file.
53341         * modules/unistr/u16-strstr: New file.
53342         * modules/unistr/u32-strstr: New file.
53343         * lib/unistr/u8-strstr.c: New file.
53344         * lib/unistr/u16-strstr.c: New file.
53345         * lib/unistr/u32-strstr.c: New file.
53346         * lib/unistr/u-strstr.h: New file.
53347
53348         * modules/unistr/u8-strtok: New file.
53349         * modules/unistr/u16-strtok: New file.
53350         * modules/unistr/u32-strtok: New file.
53351         * lib/unistr/u8-strtok.c: New file.
53352         * lib/unistr/u16-strtok.c: New file.
53353         * lib/unistr/u32-strtok.c: New file.
53354         * lib/unistr/u-strtok.h: New file.
53355
53356         * modules/unistr/u8-uctomb: New file.
53357         * modules/unistr/u16-uctomb: New file.
53358         * modules/unistr/u32-uctomb: New file.
53359         * lib/unistr/u8-uctomb.c: New file.
53360         * lib/unistr/u16-uctomb.c: New file.
53361         * lib/unistr/u32-uctomb.c: New file.
53362
53363         * MODULES.html.sh (Unicode string functions): Add the new modules.
53364
53365 2007-01-08  Bruno Haible  <bruno@clisp.org>
53366
53367         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
53368         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
53369         subdirectories.
53370
53371 2007-01-08  Karl Berry  <karl@gnu.org>
53372
53373         * doc/error.texi: mention that main() fns must set program_name
53374         when progname is used.
53375
53376 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
53377
53378         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
53379         WCTYPE_H is empty, for the benefit of builds from non-distclean
53380         directories.  Problem reported by Eric Blake in
53381         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
53382
53383 2007-01-08  Bruno Haible  <bruno@clisp.org>
53384
53385         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
53386         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
53387         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
53388         PROVIDE_CANONICALIZE_FILENAME_MODE.
53389         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
53390
53391 2007-01-08  Bruno Haible  <bruno@clisp.org>
53392
53393         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
53394         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
53395         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
53396         * lib/fts.c: Likewise.
53397         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
53398
53399 2006-12-25  Bruno Haible  <bruno@clisp.org>
53400
53401         * modules/utf8-ucs4-safe: New file.
53402         * lib/utf8-ucs4-safe.h: New file.
53403         * lib/unistr/utf8-ucs4-safe.c: New file.
53404
53405         * modules/utf16-ucs4-safe: New file.
53406         * lib/utf16-ucs4-safe.h: New file.
53407         * lib/unistr/utf16-ucs4-safe.c: New file.
53408
53409         * MODULES.html.sh (Unicode string functions): Add the new modules.
53410
53411 2007-01-08  Bruno Haible  <bruno@clisp.org>
53412
53413         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
53414         (Depends-on): Add unitypes.
53415         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
53416         (u8_mbtouc_aux): Move out to separate file.
53417         (u8_mbtouc): Use ucs4_t, uint8_t types.
53418         * lib/unistr/utf8-ucs4.c: New file.
53419
53420         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
53421         (Depends-on): Add unitypes.
53422         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
53423         (u16_mbtouc_aux): Move out to separate file.
53424         (u16_mbtouc): Use ucs4_t, uint16_t types.
53425         * lib/unistr/utf16-ucs4.c: New file.
53426
53427         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
53428         (Depends-on): Add unitypes.
53429         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
53430         (u8_uctomb_aux): Move out to separate file.
53431         (u8_uctomb): Use ucs4_t, uint8_t types.
53432         * lib/unistr/ucs4-utf8.c: New file.
53433
53434         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
53435         (Depends-on): Add unitypes.
53436         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
53437         (u16_uctomb_aux): Move out to separate file.
53438         (u16_uctomb): Use ucs4_t, uint16_t types.
53439         * lib/unistr/ucs4-utf16.c: New file.
53440
53441 2006-12-25  Bruno Haible  <bruno@clisp.org>
53442
53443         * modules/unitypes: New file.
53444         * lib/unitypes.h: New file.
53445         * MODULES.html.sh (func_all_modules): New section "Unicode string
53446         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
53447         this section. Add unitypes.
53448
53449 2007-01-08  Bruno Haible  <bruno@clisp.org>
53450
53451         Avoid variable names that conflict with those from libtool.
53452         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
53453         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
53454         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
53455         library_names_spec to acl_library_names_spec, hardcode_* to
53456         acl_hardcode_*.
53457         Reported by Ralf Wildenhues.
53458
53459 2007-01-08  Bruno Haible  <bruno@clisp.org>
53460
53461         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
53462         definition.
53463         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
53464         definition.
53465         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
53466         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
53467         definition.
53468         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
53469         definition.
53470         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
53471         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
53472         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
53473         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
53474         definition.
53475         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
53476         definition.
53477         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
53478         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
53479         GC_USE_<algorithm>.
53480         * lib/gc-libgcrypt.c: Likewise.
53481         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
53482         * modules/gc-arctwo (configure.ac): Likewise.
53483         * modules/gc-des (configure.ac): Likewise.
53484         * modules/gc-hmac-md5 (configure.ac): Likewise.
53485         * modules/gc-hmac-sha1 (configure.ac): Likewise.
53486         * modules/gc-md2 (configure.ac): Likewise.
53487         * modules/gc-md4 (configure.ac): Likewise.
53488         * modules/gc-md5 (configure.ac): Likewise.
53489         * modules/gc-random (configure.ac): Likewise.
53490         * modules/gc-rijndael (configure.ac): Likewise.
53491         * modules/gc-sha1 (configure.ac): Likewise.
53492
53493 2007-01-08  Bruno Haible  <bruno@clisp.org>
53494
53495         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
53496         macro definition.
53497         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
53498         definition.
53499         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
53500         definition.
53501         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
53502         * modules/fcntl-safer (configure.ac): Likewise.
53503         * modules/fopen-safer (configure.ac): Likewise.
53504         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
53505         GNULIB_FWRITEERROR macro definition.
53506
53507 2007-01-08  Bruno Haible  <bruno@clisp.org>
53508
53509         * m4/gnulib-common.m4: New file.
53510         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
53511         (func_get_filelist): Add m4/gnulib-common.m4.
53512
53513 2007-01-08  Bruno Haible  <bruno@clisp.org>
53514
53515         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
53516         command.
53517
53518 2007-01-08  Jim Meyering  <jim@meyering.net>
53519
53520         Use a more robust test for a "can't happen" condition.
53521         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
53522         narrowed the st_size value.  Presuming the "can't happen" condition
53523         is true, that narrowing could conceivably convert an invalid st_size
53524         value into a valid one.  Instead, use a change based on Matthew
53525         Woehlke's original patch.
53526
53527         Slight readability improvement: use an assert-like macro
53528         in place of literal "abort ()" uses.
53529         * lib/fts.c (fts_assert): Define.
53530         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
53531         Use this macro instead of a bare 'abort'.
53532
53533 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
53534
53535         Don't worry about using IRIX 5.3's wctype.h broken definitions;
53536         simply work around them.
53537         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
53538         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
53539         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
53540         declaring.
53541         Don't bother to define as macros, since the standard doesn't require it.
53542         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
53543         longer worry about IRIX 5.3.
53544         (HAVE_WCTYPE_CTMP_BUG): Remove.
53545
53546 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53547
53548         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
53549         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
53550         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
53551         Problems reported by Georg Schwarz for IRIX 5.3.
53552
53553         * gnulib-tool (autoconf_minversion): Take the maximum version number
53554         found, not the minimum.  Problem reported by James Youngman.
53555
53556 2007-01-03  Karl Berry  <karl@gnu.org>
53557
53558         * doc/error.texi: new file, explaining interaction with progname.
53559         * doc/gnulib.texi: include it.  Update copyright.
53560
53561 2007-01-03  Simon Josefsson  <simon@josefsson.org>
53562
53563         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
53564         AC_CANONICAL_HOST, to improve autobuild outputs.
53565
53566 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
53567             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
53568
53569         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
53570         sockets, server sockets, and other file descriptors.  Count errors
53571         to compute the return value.  Reorder the code a bit to be easier
53572         to follow.  Don't set event bits that were not requested (except
53573         POLLERR and POLLHUP).
53574
53575 2007-01-01  Bruno Haible  <bruno@clisp.org>
53576
53577         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
53578
53579 2007-01-03  Jim Meyering  <jim@meyering.net>
53580
53581         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
53582
53583 2007-01-02  Bruno Haible  <bruno@clisp.org>
53584
53585         * modules/settime (Include): Require timespec.h.
53586         * modules/nanosleep (Include): Likewise.
53587
53588 2007-01-01  Bruno Haible  <bruno@clisp.org>
53589
53590         * gnulib-tool (func_emit_copyright_notice): Bump year.
53591         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
53592
53593 2007-01-01  Bruno Haible  <bruno@clisp.org>
53594
53595         Improve support for OpenBSD.
53596         * build-aux/config.rpath (libname_spec): Export.
53597         (library_names_spec): New variable. Export.
53598         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
53599         library_names_spec from the config.rpath output. Locate shared library
53600         through the name pattern in library_names_spec.
53601
53602 2007-01-01  Eric Blake  <ebb9@byu.net>
53603
53604         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
53605
53606 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
53607
53608         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
53609         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
53610         assume the C locale, and avoid an "eval" that could cause trouble.
53611         Problem with SORT reported by Bob Proulx.
53612
53613         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
53614         Define.  Trivial patch from Henning Nielsen Lund, originally
53615         sent to bug-grep@gnu.org today.
53616
53617 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53618
53619         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
53620         struct stat.  Problem reported by Henning Nielsen Lund.
53621         * lib/acl.c: Include acl.h first, to check interface.  Don't
53622         bother to include sys/types.h and sys/stat.h again.
53623
53624 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53625
53626         Import the following change from libc; problem reported by
53627         Sven Verdoolaege.
53628
53629         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
53630
53631         [BZ #1373]
53632         * lib/argp.h: Remove __NTH for __argp_usage inline function.
53633
53634 2006-12-28  Jim Meyering  <jim@meyering.net>
53635
53636         * build-aux/announce-gen: Do not assume that the package
53637         builds any of tar.gz, tar.bz2, and .xdelta files.
53638         Suggestion from Simon Josefsson.
53639
53640 2006-12-28  Simon Josefsson  <simon@josefsson.org>
53641
53642         * modules/announce-gen: New file.
53643
53644 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
53645
53646         * lib/mbchar.h: Just include <wctype.h>; the wctype module
53647         handles its gotchas now.
53648         * lib/mbswidth.c: Likewise.
53649         * lib/wcwidth.h: Likewise.
53650         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
53651         and iswcntrl; the wctype module does this stuff now.
53652         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53653         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53654         * modules/mbchar (Depends-on): Add wctype.
53655         * modules/mbswidth (Depends-on): Likewise.
53656         * modules/wcwidth (Depends-on): Likewise.
53657
53658 2006-12-27  Eric Blake  <ebb9@byu.net>
53659
53660         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
53661         module uses more than what <wctype.h> is required to provide.
53662
53663 2006-12-26  Eric Blake  <ebb9@byu.net>
53664
53665         * gnulib-tool (sed_extract_prog): Avoid space-tab.
53666
53667 2006-12-26  Eric Blake  <ebb9@byu.net>
53668
53669         * modules/absolute-header: New module.
53670         * modules/fcntl (Depends-on): Depend on it.
53671         * modules/inttypes (Depends-on): Likewise.
53672         * modules/stdint (Depends-on): Likewise.
53673         * modules/sys_stat (Depends-on): Likewise.
53674         * modules/wctype (Depends-on): Likewise.
53675         * MODULES.html.sh (Support for building libraries and
53676         executables): Document it.
53677
53678 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53679
53680         * gnulib-tool (SED): Remove, undoing previous change.
53681         The problem was that it broke coreutils on Solaris, because
53682         "sed --posix" leaked into a makefile.
53683         (sed): New alias, if 'alias' and GNU sed.
53684
53685 2006-12-24  Jim Meyering  <jim@meyering.net>
53686
53687         Work around an fchownat bug in glibc-2.4:
53688         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
53689         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
53690         in spite of the -P option.
53691         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
53692         New macros.
53693         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
53694         * modules/openat (Files): Add lib/fchownat.c.
53695         * lib/openat.c (fchownat): Don't define here.  Move to...
53696         * lib/fchownat.c: ...this new file.
53697
53698 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53699
53700         Fix bug reported by Bruno Haible in
53701         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
53702         where quotearg.c didn't compile on Mac OS X 10.2 because it
53703         lacks <wchar.h> and wint_t.
53704         * lib/wctype_.h (__wctype_wint_t): New type.
53705         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
53706         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
53707         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
53708         Arg is now of type __wctype_wint_t, not wint_t.
53709         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
53710         substitute HAVE_WINT_T.
53711         * modules/wctype (Files): Add m4/wint_t.m4.
53712         (wctype.h): Substitute HAVE_WINT_T.
53713
53714 2006-12-23  Bruno Haible  <bruno@clisp.org>
53715
53716         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
53717
53718 2006-12-23  Bruno Haible  <bruno@clisp.org>
53719
53720         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
53721         S_ISLNK.
53722         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
53723         mingw.
53724
53725 2006-12-22  Bruno Haible  <bruno@clisp.org>
53726
53727         * lib/copy-file.c: Include acl.h.
53728         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
53729         Close the file descriptors only after being done with copy_acl.
53730         * modules/copy-file (Depends-on): Add acl.
53731
53732 2006-12-22  Bruno Haible  <bruno@clisp.org>
53733
53734         * gnulib-tool (SED): New variable.
53735         Use $SED instead of sed everywhere.
53736
53737 2006-12-22  Bruno Haible  <bruno@clisp.org>
53738
53739         * modules/no-c++: New file.
53740         * m4/no-c++.m4: New file.
53741         * MODULES.html.sh (Support for building libraries and executables):
53742         Add no-c++.
53743
53744 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
53745
53746         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
53747         Include <limits.h>, and use its INT_MAX to rewrite the
53748         j loop so that it does not overflow 'int'.  Problem reported by
53749         Ralf Wildenhues in
53750         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
53751         Play it safe by shifting left by 1 rather than multiplying by 2,
53752         as GCC is less likely to optimize this away when the value
53753         is signed (when it assumes overflow leads to undefined behavior).
53754         Also, don't assume time_t uses two's complement.
53755
53756 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
53757
53758         * MODULES.html.sh: New module wctype.
53759         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
53760         * lib/fnmatch.c: Don't bother to include <wchar.h> before
53761         <wctype.h>, since the new wctype module should fix this.
53762         * lib/quotearg.c: Include <wctype.h> unconditionally, since
53763         the wctype module should arrange for it.
53764         * lib/regex_internal.h: Likewise.
53765         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
53766         since the wctype module should handle this now.
53767         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
53768         * modules/fnmatch (Depends-on): Add wctype.
53769         * modules/quotearg (Depends-on): Likewise.
53770         * modules/regex (Depends-on): Likewise.
53771
53772 2006-12-19  Bruno Haible  <bruno@clisp.org>
53773
53774         * lib/strdup.h [C++]: Wrap definitions in extern "C".
53775         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
53776
53777 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53778
53779         * modules/savewd (Depends-on): Fix dependency on fcntl.
53780
53781 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53782
53783         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
53784         conforms to C99, rather than relying on the user's environment
53785         setting of STDINT_H.
53786
53787 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53788         and Eric Blake  <ebb9@byu.net>
53789
53790         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
53791         This is more consistent with the other defines here.
53792         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
53793         Port to z/OS.  Problem reported by Paul Gilmartin.
53794         Change local vars to use gl_ prefix rather than ac_.
53795         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
53796         with other defines.
53797         * modules/double-slash-root: New module.
53798         * modules/dirname (Files): Remove m4/double-slash-root.m4.
53799         (Depends-on): Add double-slash-root.
53800         * MODULES.html.sh (File system functions): Mention new module.
53801
53802 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
53803
53804         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
53805         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
53806         This is for the benefit of gzip, which doesn't do i18n.
53807
53808 2006-12-12  Jim Meyering  <jim@meyering.net>
53809
53810         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
53811         Reported by Andreas Schwab <schwab@suse.de>.
53812
53813 2006-12-12  Bruno Haible  <bruno@clisp.org>
53814
53815         Merge these changes.
53816         2006-09-05  Bruno Haible  <bruno@clisp.org>
53817         * lib/iconvme.c (iconv_string): No need to save and restore errno when
53818         iconv_alloc succeeded.
53819         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
53820         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
53821         test for " && dest " at the end - dest is always != NULL there. Call
53822         iconv with 4xNULL arguments initially, to reset the state. Call iconv
53823         with 2xNULL arguments, also to flush the state storage. Handle the
53824         IRIX iconv behaviour. Realloc the final result, to throw away unused
53825         memory.
53826
53827 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
53828
53829         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
53830         and fchmodat unconditionally, since glibc 2.4 has them.
53831         Problem reported by Arkadiusz Miskiewicz.
53832
53833 2006-12-10  Bruno Haible  <bruno@clisp.org>
53834
53835         * gnulib-tool (func_import): Show the include files only for those
53836         modules that are copied and specified.
53837         Reported by Karl Berry.
53838
53839 2006-12-08  Jim Meyering  <jim@meyering.net>
53840
53841         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
53842         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
53843
53844         * build-aux/announce-gen: Add two new options, both optional:
53845         --bootstrap-tools=TOOL_LIST
53846               a comma-separated list of tools, e.g.,
53847               autoconf,automake,bison,gnulib
53848         --gnulib-snapshot-date=DATE
53849               if gnulib is in the bootstrap tool list,
53850               then report this as the snapshot date.
53851               If not specified, use the current date/time.
53852               If you specify a date here, be sure it's UTC.
53853
53854 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53855
53856         * tests/test-argp-2.sh: Fix test to match actual output.
53857         (func_compare): Fix sed script to be portable.
53858
53859 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
53860
53861         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
53862         workaround for this case.  It is not autoconfigured now; offhand
53863         it's hard to see how to autoconfigure it.
53864
53865 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53866
53867         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
53868         a directory that is about to be chowned.  Such a directory's
53869         initial file permissions should permit the owner only and this
53870         should not be changed until after the chown, since the group and
53871         other bits would be incorrect if they granted permission before
53872         the chown.
53873
53874         Fix porting problem for iswctype reported by Georg Schwarz in:
53875         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
53876         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
53877         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
53878         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
53879         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53880
53881 2006-12-03  Jim Meyering  <jim@meyering.net>
53882
53883         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
53884         p->fts_statp may not yet be defined.
53885         (fts_read): Instead, set it in the caller, once p->fts_statp is
53886         sure to be defined, and corresponds to a top-level directory.
53887         This bug made du -x fail.  Here's the coreutils test case:
53888         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
53889         Reported by Mike Frysinger.
53890
53891 2006-12-01  Jim Meyering  <jim@meyering.net>
53892
53893         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
53894         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
53895         Reported by Simon Josefsson.
53896
53897 2006-11-30  Jim Meyering  <jim@meyering.net>
53898
53899         * m4/warning.m4: Use the all-permissive copyright notice
53900         recommended by RMS (rather than LGPL).
53901         * m4/vararrays.m4: Likewise.
53902         * m4/flexmember.m4: Likewise.
53903
53904 2006-11-29  Bruno Haible  <bruno@clisp.org>
53905
53906         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
53907         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
53908         using +=.
53909         Reported by Simon Josefsson <simon@josefsson.org>.
53910
53911 2006-11-28  James Youngman <jay@gnu.org>
53912
53913         * README: Advise users that they might find the bug-gnulib@gnu.org
53914         and autotools-announce@gnu.org mailing lists useful.
53915
53916 2006-11-28  Bruno Haible  <bruno@clisp.org>
53917
53918         * m4/ptrdiff_max.m4: Remove file.
53919
53920 2006-11-21  Bruno Haible  <bruno@clisp.org>
53921
53922         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
53923         _AC_COMPUTE_INT.
53924         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
53925         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
53926         _AC_COMPUTE_INT.
53927         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
53928         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
53929         _AC_COMPUTE_INT.
53930         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
53931
53932 2006-11-28  Jim Meyering  <jim@meyering.net>
53933
53934         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
53935         warning from "gcc -Wshadow" about shadowing the builtin.
53936
53937 2006-11-27  Bruno Haible  <bruno@clisp.org>
53938
53939         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
53940         _AC_COMPUTE_INT.
53941         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
53942
53943 2006-11-27  Bruno Haible  <bruno@clisp.org>
53944             Paul Eggert  <eggert@cs.ucla.edu>
53945
53946         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
53947
53948 2006-11-26  Bruno Haible  <bruno@clisp.org>
53949
53950         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
53951         noinst_LTLIBRARIES.
53952
53953 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
53954             Bruno Haible  <bruno@clisp.org>
53955
53956         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
53957         if compiling with "gcc -ansi".
53958
53959 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
53960
53961         Fix some incompatibilities with gcc -ansi -pedantic.
53962         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
53963         if compiling pedantically with GCC, unless it's C99 or later.
53964         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
53965         it mishandles gcc -ansi -pedantic as well.
53966         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
53967         if gcc -pedantic.
53968         * lib/regexec.c (check_node_accept_bytes): Don't use auto
53969         initializers for struct if -pedantic, unless it's C99 or later.
53970
53971 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
53972
53973         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
53974         Don't close an fd more than once. Identical atimes indicate
53975         success, not failure.
53976
53977 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
53978
53979         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
53980
53981 2006-11-23  Jim Meyering  <jim@meyering.net>
53982
53983         * build-aux/announce-gen: New file.  From coreutils.
53984
53985 2006-11-22  Jim Meyering  <jim@meyering.net>
53986
53987         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
53988         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
53989         (fts_read): Use a temporary to narrow the overused st_size member
53990         before using it in a switch statement.  Reported by Matthew Woehlke.
53991
53992         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
53993         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
53994
53995 2006-11-20  Bruno Haible  <bruno@clisp.org>
53996
53997         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
53998         changequote instead of pairs of brackets.
53999         Reported by Andreas Schwab <schwab@suse.de>.
54000
54001 2006-11-21  Jim Meyering  <jim@meyering.net>
54002
54003         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
54004         so as to remain compatible with older compilers.
54005         Patch from Michael Deutschmann.
54006
54007 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54008
54009         * MODULES.html.sh (File system functions): Add openat.
54010
54011         * lib/openat.h (rpl_fstatat): New macro, if
54012         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
54013         (fstatat): Define to rpl_fstatat under the same conditions,
54014         unless COMPILING_FSTATAT.
54015         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
54016         seems to have the bug.
54017         * lib/fstatat.c: New file.
54018         * modules/openat (Files): Add it.
54019
54020 2006-11-20  Bruno Haible  <bruno@clisp.org>
54021
54022         * Makefile: New file.
54023
54024 2006-11-20  Jim Meyering  <jim@meyering.net>
54025
54026         The beginnings of syntax-related checks for gnulib.
54027         * lib/Makefile: New file.
54028         * lib/t-idcache: New script.  Ensure that the two halves of
54029         idcache.c stay in sync.
54030
54031         * lib/idcache.c: Adjust comments in user- and group- portions to
54032         be more accurate, and to be consistent with one another.
54033
54034 2006-11-20  Jim Meyering  <jim@meyering.net>
54035
54036         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
54037         continue using the flexible array member (thus, this module performs
54038         half as many malloc calls), with the addition that...
54039         (getgroup, getuser): Consistently record a non-match via an empty
54040         "name" string, and map an empty string match to a NULL return value.
54041         * modules/idcache (Depends-on): Re-add flexmember.
54042
54043         * lib/idcache.c (getuser): Remove all uses of the register keyword.
54044         (getuidbyname, getgroup, getgidbyname): Likewise.
54045
54046         Use cleaner syntax: NULL rather than 0.
54047         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
54048
54049 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54050
54051         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
54052         It mishandled the case where the group was missing.
54053         Problem reported by Greg Schafer.
54054         * modules/idcache: Likewise.
54055
54056 2006-11-18  Jim Meyering  <jim@meyering.net>
54057
54058         * check-module (%exempt_header): Add exception for some
54059         conditionally-included headers.
54060
54061         * modules/i-ring (Depends-on): Add verify.
54062         (License): Change to LGPL.
54063
54064 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54065
54066         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
54067         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
54068         and inttostr.h.  Use snprintf rather than uinttostr, so that
54069         LGPLed code doesn't depend on GPLed.
54070
54071 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54072
54073         * modules/inline (License): Change from GPL to LGPL.
54074
54075 2006-11-17  Jim Meyering  <jim@meyering.net>
54076
54077         * modules/d-type (License): Switch to LGPL.
54078
54079 2006-11-15  Bruno Haible  <bruno@clisp.org>
54080
54081         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
54082
54083 2006-11-15  Eric Blake  <ebb9@byu.net>
54084
54085         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
54086         the module dependency.
54087
54088 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54089             Bruno Haible  <bruno@clisp.org>
54090
54091         * gnulib-tool (func_create_testdir): Add license consistency check.
54092
54093 2006-11-15  Eric Blake  <ebb9@byu.net>
54094
54095         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
54096         random "(cached)" in configure output.
54097
54098 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54099
54100         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
54101         test for conforming inttypes.h is both announced and cached.
54102
54103         * MODULES.html.sh (seen_modules, seen_files): New variables.
54104         (func_module): Rewrite to use a few less gnulib-tool and sed
54105         invocations.  Avoid a couple of quadratic algorithms for ...
54106         (missed_modules, missed_files): ... these, with ...
54107         (func_append, func_tmpdir): ... these new functions, from
54108         gnulib-tool.  Analogously, install traps for cleanup.
54109
54110         * tests/test-gc.c (main): Remove unused variables.
54111         * tests/test-read-file.c: Include stdlib.h, for 'free'.
54112
54113 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
54114
54115         * modules/inttostr (License): Change to LGPL.
54116
54117 2006-11-14  Eric Blake  <ebb9@byu.net>
54118
54119         * modules/tempname (License): Change to LGPL.
54120
54121 2006-11-14  Eric Blake  <ebb9@byu.net>
54122
54123         * doc/functions.texi (Function Portability): *printf functions on
54124         Cygwin now understand all POSIX size specifiers.
54125
54126 2006-11-14  Bruno Haible  <bruno@clisp.org>
54127
54128         * modules/c-ctype (License): Change to LGPL.
54129
54130 2006-11-12  Bruno Haible  <bruno@clisp.org>
54131
54132         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
54133         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
54134         for GNOME libraries, for which the include files are installed in
54135         subdirectories of $prefix/include.
54136
54137 2006-11-12  Bruno Haible  <bruno@clisp.org>
54138
54139         * m4/lib-link.m4: Require at least autoconf-2.54.
54140         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
54141         name to underscores for the --with option.
54142
54143 2006-11-13  Bruno Haible  <bruno@clisp.org>
54144
54145         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
54146         the tests directory.
54147         Reported by Ralf Wildenhues.
54148
54149 2006-11-13  Bruno Haible  <bruno@clisp.org>
54150
54151         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
54152         (func_emit_initmacro_end): Undo the override here.
54153         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
54154         Works around the famous automake error in coreutils.
54155
54156 2006-11-13  Eric Blake  <ebb9@byu.net>
54157
54158         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
54159         element, not its node.
54160
54161 2006-11-12  Bruno Haible  <bruno@clisp.org>
54162
54163         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
54164         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
54165
54166 2006-11-12  Bruno Haible  <bruno@clisp.org>
54167
54168         * gnulib-tool: New option --local-symlink.
54169         (func_usage): Document it.
54170         (lsymbolic): New variable.
54171         (func_import, func_create_testdir): If --symlink was not specified,
54172         test whether --local-symlink was specified and the file comes from
54173         the local_gnulib_dir.
54174
54175 2006-11-12  Bruno Haible  <bruno@clisp.org>
54176
54177         * gnulib-tool (func_ln): New function.
54178         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
54179
54180 2006-11-12  Bruno Haible  <bruno@clisp.org>
54181
54182         Finish support for source files in subdirectories.
54183         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
54184         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
54185         AUTOMAKE_OPTIONS.
54186         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
54187
54188 2006-11-12  Bruno Haible  <bruno@clisp.org>
54189
54190         * gnulib-tool (func_get_automake_snippet): Synthesize also an
54191         EXTRA_lib_SOURCES augmentation.
54192         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
54193
54194 2006-11-12  Jim Meyering  <jim@meyering.net>
54195
54196         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
54197         file descriptors.  This also averts a failure on systems with
54198         native openat support when a traversed directory lacks "x" access.
54199         * lib/fts_.h: Include "i-ring.h"
54200         (struct FTS) [fts_fd_ring]: New member.
54201         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
54202         (FCHDIR): Add parentheses.
54203         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
54204         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
54205         When descending, rather than simply closing the previous
54206         fts_cwd_fd value, push that file descriptor onto the ring.
54207         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
54208         (fts_open): Initialize the new fd_ring member.
54209         (fts_close): Clear the ring.
54210         (fts_safe_changedir): When possible, use our new fd_ring to skip
54211         the diropen and fstat and dev/ino comparison that would normally
54212         accompany a virtual `chdir ("..")'.
54213
54214         * modules/fts (Depends-on): Add i-ring.
54215         * modules/i-ring: New module.
54216         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
54217         * m4/i-ring.m4: New file.
54218
54219 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54220
54221         * gnulib-tool (func_create_testdir): Fix replacement of
54222         `build-aux' in configure.ac.  Run autotools in gltests
54223         subdirectory.
54224         (func_create_testdir, func_create_megatestdir, test): There is
54225         no need for '--force' in most autotool invocations in a new
54226         tree.  Actually fail the whole test if any of the tools, or the
54227         configure or make stages fail.
54228
54229         Sync from Automake.
54230         * build-aux/gnupload: Revert last change.  Add pointer to upload
54231         instructions of the GNU Maintenance Instructions.
54232         Suggestion by Karl Berry.
54233
54234 2006-11-10  Jim Meyering  <jim@meyering.net>
54235
54236         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
54237
54238 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54239
54240         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
54241         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
54242         (bind_textdomain_codeset) [! ENABLE_NLS]:
54243         Evaluate all the arguments.  That way, callers get compatible behavior
54244         if the arguments have side effects.  Also, it avoids some GCC
54245         diagnostics in some cases; Joel E. Denny reported problems when Bison
54246         was configured with --enable-gcc-warnigs.
54247
54248 2006-11-10  Jim Meyering  <jim@meyering.net>
54249
54250         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
54251         relevant options in CFLAGS (like -O, -fno-inline) are taken into
54252         account.
54253
54254 2006-11-10  Jim Meyering  <jim@meyering.net>
54255
54256         * modules/inline: New file/module.
54257         * modules/xalloc (Files): Remove m4/inline.m4.
54258         (Depends-on): Add inline, instead.
54259         * modules/oset: Likewise.
54260         * modules/list: Likewise.
54261
54262 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54263
54264         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
54265         Problem reported by Matthew Woehlke.
54266
54267 2006-11-09  Bruno Haible  <bruno@clisp.org>
54268
54269         * lib/tempname.c (gen_tempname): Remove variant that invokes
54270         __gen_tempname.
54271         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
54272         __gen_tempname.
54273
54274 2006-11-08  Bruno Haible  <bruno@clisp.org>
54275
54276         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
54277         to 'yes' instead of 'cross-compiling'.
54278
54279 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
54280
54281         * lib/quotearg.h (quotearg_free): New decl.
54282         * lib/quotearg.c (quotearg_free): New function.
54283         (slot0, nslots, slotvec0, slotvec):
54284         Now file-scope so that quotearg_free can get at them.
54285
54286 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54287
54288         Sync from Automake.
54289         * build-aux/gnupload: Add missing 'gnu' to example URL.
54290         Report by Karl Berry.
54291
54292 2006-11-08  Bruno Haible  <bruno@clisp.org>
54293
54294         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
54295         Suggested by Paul Eggert.
54296
54297 2006-11-08  Jim Meyering  <jim@meyering.net>
54298
54299         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
54300         It's already included if !_LIBC.
54301         (fts_safe_changedir): Add a comment.
54302
54303 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
54304
54305         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
54306         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
54307         Matthew Woehlke.
54308
54309         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
54310         definitions up, to avoid colliding with change below.
54311         (static_inline) [HAVE_INLINE]: New macro.
54312         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
54313         Provide extern decls when !HAVE_INLINE.  Do not define unless
54314         static_inline is defined, either by us or by xmalloc.c.  Use
54315         static_inline rather than static inline.
54316         (XCALLOC): Optimize sizeof(T) = 1 case.
54317         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
54318
54319 2006-11-07  Bruno Haible  <bruno@clisp.org>
54320
54321         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
54322         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
54323         AC_C_INLINE.
54324         * modules/xalloc (Files): Add m4/inline.m4.
54325
54326 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54327
54328         * README: Fix typo.
54329         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
54330         (Miscellanous Notes): ...from this.
54331
54332 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
54333
54334         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
54335         Mention that offsetof should be used instead of sizeof.
54336         From Bruno Haible.
54337
54338 2006-11-07  Bruno Haible  <bruno@clisp.org>
54339
54340         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
54341
54342 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
54343
54344         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
54345         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
54346         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
54347         (gl_tree_add_before, gl_tree_add_after):
54348         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
54349         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
54350         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
54351         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
54352         (gl_linked_add_after, gl_linked_add_at): Likewise.
54353         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
54354         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
54355         (gl_tree_add_before, gl_tree_add_after): Likewise.
54356         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
54357         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
54358         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
54359
54360 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54361
54362         * lib/gl_oset.h: Use C comment style, not C++ comment style.
54363
54364 2006-11-06  Bruno Haible  <bruno@clisp.org>
54365
54366         * m4/inline.m4: New file.
54367         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
54368         * modules/list (Files): Add m4/inline.m4.
54369         * modules/oset (Files): Likewise.
54370
54371 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
54372
54373         * lib/idcache.c: Include <stddef.h>, for offsetof.
54374         (struct userid.name): Change from char * to a flexible array member.
54375         All uses changed.
54376         * modules/idcache (Depends-on): Add flexmember.
54377
54378         * MODULES.html.sh (Core language properties): New module flexmember.
54379         * modules/flexmember, m4/flexmember.m4: New files.
54380
54381         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
54382         inline functions that are identical with the old xnmalloc_inline,
54383         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
54384         that we can avoid some unnecessary integer multiplications and
54385         divisions in the common case where the element size is known at
54386         compile time.
54387         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
54388         needed.
54389         (xnboundedmalloc): Remove.
54390         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
54391         arguments, for consistency with rest of this header.
54392         (xcharalloc): Rewrite using XNMALLOC.
54393         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
54394         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
54395         versions have been moved to lib/xalloc.h and renamed to be the
54396         non-*_inline versions.
54397         (xmalloc, xrealloc): Implement without reference to the xnmalloc
54398         and xnrealloc functions, since those functions are now inline and
54399         now call us.
54400         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
54401         renaming described above.
54402         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
54403         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
54404         captures the dependency in AC_C_INLINE.
54405
54406         New module canonicalize-lgpl, proposed by Charles Wilson in
54407         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
54408         with a few small changes afterwards.
54409         * MODULES.html.sh (File system functions): New module
54410         canonicalize-lgpl.
54411         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
54412         and canonicalize_file_name.
54413         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
54414         * modules/canonicalize-lgpl: New files.
54415
54416 2006-11-05  Bruno Haible  <bruno@clisp.org>
54417
54418         * gnulib-tool (func_import, func_create_testdir): Create directories
54419         also for files in subdirectories of lib/.
54420
54421 2006-11-05  Bruno Haible  <bruno@clisp.org>
54422
54423         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
54424         ANSI C compliant.
54425
54426 2006-11-03  Bruno Haible  <bruno@clisp.org>
54427
54428         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
54429         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
54430         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
54431         (xnboundedmalloc): New inline function.
54432         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
54433         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
54434         xmalloc.
54435         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
54436         xmalloc.
54437         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
54438         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
54439         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
54440         xmalloc.
54441         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
54442         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
54443         xmalloc.
54444         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
54445         gl_tree_add_after): Use XMALLOC instead of xmalloc.
54446         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
54447         xmalloc.
54448         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
54449         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
54450         gl_tree_add_after): Use XMALLOC instead of xmalloc.
54451         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
54452         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
54453         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
54454         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
54455
54456 2006-11-03  Bruno Haible  <bruno@clisp.org>
54457
54458         * lib/c-ctype.h [C++]: Define functions without name mangling.
54459         * lib/fwriteerror.h [C++]: Likewise.
54460         * lib/gcd.h [C++]: Likewise.
54461         * lib/linebreak.h [C++]: Likewise.
54462
54463 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
54464
54465         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
54466         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
54467         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
54468         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
54469         Check for functions and headers just once.
54470         Check for declaration of canonicalize_file_name.
54471         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
54472
54473 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
54474
54475         * gnulib-tool (func_import): Fix typo in actioncmd.
54476
54477 2006-11-02  Bruno Haible  <bruno@clisp.org>
54478
54479         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
54480         newline sequence in the Makefile.am snippet as a space, like "make"
54481         does.
54482         Reported by Roger Persson <perrog@gmail.com>.
54483
54484 2006-11-01  Bruno Haible  <bruno@clisp.org>
54485
54486         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
54487         already declared in <string.h>.
54488         * lib/strcase.h (strncasecmp): Don't declare it if yes.
54489
54490 2006-11-01  Bruno Haible  <bruno@clisp.org>
54491
54492         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
54493         * lib/strcase.h: Include <string.h>.
54494         (strcasecmp): Define to rpl_strcasecmp here.
54495
54496 2006-11-01  Bruno Haible  <bruno@clisp.org>
54497
54498         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
54499
54500 2006-11-01  Eric Blake  <ebb9@byu.net>
54501
54502         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
54503
54504         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
54505
54506 2006-10-29  Bruno Haible  <bruno@clisp.org>
54507
54508         Make it compile in C++ mode.
54509         * lib/full-write.c (full_rw): Add a cast.
54510
54511 2006-11-01  Bruno Haible  <bruno@clisp.org>
54512
54513         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
54514         be POSIX compliant.
54515         Reported by Roger Persson <perrog@gmail.com>.
54516
54517 2006-11-01  Eric Blake  <ebb9@byu.net>
54518
54519         * lib/getopt_.h: Fix comments.
54520
54521 2006-10-31  Eric Blake  <ebb9@byu.net>
54522
54523         * modules/tmpdir (Depends-on): Add sys_stat.
54524         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
54525         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
54526         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
54527         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
54528         tempname.
54529
54530 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
54531
54532         Avoid some C++ diagnostics reported by Bruno Haible.
54533         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
54534         xmalloc.
54535         (quotearg_alloc): Use xcharalloc rather than xmalloc.
54536         (struct slotvec): Move to top level.
54537         (quotearg_n_options): Rewrite to avoid xmalloc.
54538         * lib/xalloc.h (xcharalloc): New function.
54539         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
54540         [defined __cplusplus]: Add function template that provides result
54541         type propagation.  This part of the change is from Bruno Haible.
54542
54543 2006-10-29  Bruno Haible  <bruno@clisp.org>
54544
54545         Make it compile in C++ mode.
54546         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
54547         * lib/strnlen1.c (strnlen1): Cast memchr result.
54548         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
54549         * lib/clean-temp.c (string_equals, string_hash): Add casts.
54550         (create_temp_dir): Rename local variable 'template'.
54551         (compile_csharp_using_sscli): Add cast.
54552         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
54553         * lib/findprog.c (find_in_path): Likewise.
54554         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
54555         * lib/wait-process.c (register_slave_subprocess): Likewise.
54556
54557 2006-10-22  Bruno Haible  <bruno@clisp.org>
54558
54559         * modules/tsearch: New file.
54560         * lib/tsearch.h: New file.
54561         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
54562         * m4/tsearch.m4: New file.
54563         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
54564
54565 2006-10-29  Eric Blake  <ebb9@byu.net>
54566
54567         * lib/arcfour.c: Assume config.h.
54568         * lib/arctwo.c: Likewise.
54569         * lib/base64.c: Likewise.
54570         * lib/check-version.c: Likewise.
54571         * lib/crc.c: Likewise.
54572         * lib/des.c: Likewise.
54573         * lib/gc-gnulib.c: Likewise.
54574         * lib/gc-libgcrypt.c: Likewise.
54575         * lib/gc-pbkdf2-sha1.c: Likewise.
54576         * lib/getaddrinfo.c: Likewise.
54577         * lib/getdelim.c: Likewise.
54578         * lib/getline.c: Likewise.
54579         * lib/hmac-md5.c: Likewise.
54580         * lib/hmac-sha1.c: Likewise.
54581         * lib/iconvme.c: Likewise.
54582         * lib/md2.c: Likewise.
54583         * lib/md4.c: Likewise.
54584         * lib/memxor.c: Likewise.
54585         * lib/read-file.c: Likewise.
54586         * lib/readline.c: Likewise.
54587         * lib/rijndael-alg-fst.c: Likewise.
54588         * lib/rijndael-api-fst.c: Likewise.
54589         * lib/xgetdomainname.c: Likewise.
54590
54591 2006-10-28  Eric Blake  <ebb9@byu.net>
54592
54593         * lib/xstrndup.c: Assume config.h.
54594
54595 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
54596
54597         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
54598         stat-macros.h is now for our own macros, whereas stat_h is for
54599         macros in the <sys/stat.h> name space.
54600         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
54601         (STAT_MACROS_H): Remove.
54602         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
54603         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
54604         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
54605         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
54606         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
54607         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
54608         Move these macros to ...
54609         * lib/stat_.h: here.  Don't include stat-macros.h.
54610         * lib/canonicalize.c: Don't include stat-macros.h.
54611         * lib/chown.c: Likewise.
54612         * lib/euidaccess.c: Likewise.
54613         * lib/file-type.c: Likewise.
54614         * lib/filemode.c: Likewise.
54615         * lib/glob.c: Likewise.
54616         * lib/isapipe.c: Likewise.
54617         * lib/lchown.c: Likewise.
54618         * lib/lstat.c: Likewise.
54619         * lib/mkdir-p.c: Likewise.
54620         * lib/rmdir.c: Likewise.
54621         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
54622         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
54623         unless mkdir isn't declared, to speed up 'configure'.
54624         Always create sys/stat.h, since it's unlikely any real sys/stat.h
54625         would define all the S_* symbols.
54626         * modules/canonicalize (Depends-on):
54627         Depend on sys_stat, not stat-macros.
54628         * modules/chown: Likewise.
54629         * modules/euidaccess: Likewise.
54630         * modules/filemode: Likewise.
54631         * modules/file-type: Likewise.
54632         * modules/glob: Likewise.
54633         * modules/isapipe: Likewise.
54634         * modules/lchown: Likewise.
54635         * modules/lstat: Likewise.
54636         * modules/mkancesdirs: Likewise.
54637         * modules/rmdir: Likewise.
54638         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
54639         * modules/modechange: Likewise.
54640         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
54641         (configure.ac): Remove gl_STAT_MACROS.
54642         * modules/sys_stat (Depends-on): Remove stat-macros.
54643
54644 2006-10-27  Bruno Haible  <bruno@clisp.org>
54645
54646         * m4/signed.m4: Remove file.
54647         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
54648         invocation.
54649         * modules/vasnprintf (Files): Remove m4/signed.m4.
54650
54651 2006-10-27  Bruno Haible  <bruno@clisp.org>
54652
54653         Update to GNU gettext 0.16.
54654         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
54655         m4/inttypes-h.m4, m4/signed.m4.
54656         * m4/gettext.m4: Update to GNU gettext 0.16.
54657         * m4/intl.m4: New file, from GNU gettext.
54658         * m4/intldir.m4: New file, from GNU gettext.
54659         * config/srclist.txt: Update
54660
54661 2006-10-27  Eric Blake  <ebb9@byu.net>
54662
54663         * MODULES.html.sh: Document tempname.
54664         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
54665         dependencies.
54666         (Files): Move lib/tempname.c...
54667         * modules/tempname: ...to this new module.
54668         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
54669         (gl_PREREQ_TEMPNAME): Move...
54670         * m4/tempname.m4: ...to this new file.
54671         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
54672         * modules/sys_stat (Depends-on): Add stat-macros.
54673         * lib/stat_.h (includes): Pick up stat macros.
54674         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
54675         if stat macros are broken.
54676         * lib/tempname.c (includes): No need to include "stat-macros.h".
54677         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
54678         (direxists, __path_search) [!_LIBC]: Don't compile these in
54679         gnulib; the tmpdir module covers that.
54680         * lib/tempname.h: New file.
54681
54682 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
54683
54684         * COPYING: Explain how gnulib-tool converts licence headers.
54685         Almost all wording by Eric Blake.
54686
54687 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
54688
54689         * lib/mbchar.h (is_basic_table): Make read-only.
54690         * lib/mbchar.c (is_basic_table): Likewise.
54691         Reported by John Darrington.
54692
54693 2006-10-25  Bruno Haible  <bruno@clisp.org>
54694
54695         * lib/progname.h (set_program_name): Undefine before defining.
54696
54697 2006-10-25  Bruno Haible  <bruno@clisp.org>
54698
54699         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
54700         false for non-gcc C++ compilers.
54701         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
54702
54703 2006-10-24  Bruno Haible  <bruno@clisp.org>
54704
54705         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
54706         iconv implementations like Irix iconv.
54707
54708 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54709
54710         * modules/vararrays: New file.
54711         * m4/vararrays.m4: New file, taken from diffutils.
54712         * MODULES.html.sh: New module vararrays.
54713
54714 2006-10-24  Karl Berry  <karl@gnu.org>
54715
54716         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
54717         Don't call GNU Unix.
54718
54719 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54720
54721         * users.txt: Add Libtool.
54722
54723         Sync from Libtool:
54724
54725         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54726
54727         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
54728         to gnulib's policy of including config.h unconditionally.
54729
54730 2006-10-24  Bruno Haible  <bruno@clisp.org>
54731
54732         * modules/wcwidth (Files): Add m4/wint_t.m4.
54733         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
54734         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
54735
54736 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54737
54738         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
54739         to pacify GCC with some -W flags enabled.  Problem reported by
54740         Bruno Haible.
54741
54742 2006-10-24  Jim Meyering  <jim@meyering.net>
54743
54744         * MODULES.html.sh: Remove uinttostr.  It's not a module.
54745         Reported by Karl Berry.
54746
54747 2006-10-23  Bruno Haible  <bruno@clisp.org>
54748
54749         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
54750
54751 2006-10-24  Bruno Haible  <bruno@clisp.org>
54752
54753         * lib/gl_list.h: Use C comment style, not C++ comment style.
54754
54755 2006-10-23  Eric Blake  <ebb9@byu.net>
54756
54757         * lib/getaddrinfo.c (includes): Add missing include.
54758
54759 2006-10-23  Bruno Haible  <bruno@clisp.org>
54760             Paul Eggert  <eggert@cs.ucla.edu>
54761
54762         Ability to rename obstack_free.
54763         * lib/obstack.h (__obstack_free): New macro. Declare instead of
54764         obstack_free.
54765         (obstack_free): Invoke the __obstack_free macro.
54766         * lib/obstack.c (obstack_free): Use __obstack_free macro.
54767
54768 2006-10-23  Bruno Haible  <bruno@clisp.org>
54769             Paul Eggert  <eggert@cs.ucla.edu>
54770
54771         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
54772         __argc, __argv from the declaration. (They are defined as macros on
54773         mingw.)
54774
54775 2006-10-22  Bruno Haible  <bruno@clisp.org>
54776
54777         * doc/gnulib-intro.texi: New file.
54778         * doc/gnulib.texi: Include it.
54779
54780 2006-10-21  Bruno Haible  <bruno@clisp.org>
54781
54782         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
54783         "Introduction", "Miscellanous Notes", "Particular Modules".
54784
54785 2006-10-21  Bruno Haible  <bruno@clisp.org>
54786
54787         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54788         Change mostlyclean-local rule to avoid sh syntax error from bash
54789         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
54790
54791 2006-10-23  Jim Meyering  <jim@meyering.net>
54792
54793         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
54794         in place of snprintf.
54795
54796         * modules/inttostr (Files): Add lib/uinttostr.c.
54797         * lib/uinttostr.c (inttostr): New file/function.
54798         * lib/inttostr.h (uinttostr): Declare.
54799         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
54800         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
54801         Add uinttostr.
54802         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
54803
54804 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
54805
54806         * lib/canonicalize.c (ELOOP): Define if not already defined.
54807         Problem reported by Bruno Haible in
54808         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
54809
54810 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
54811
54812         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
54813         Problem reported by Perry Smith and Ville Laurikari.
54814
54815         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
54816         uses.
54817
54818 2006-10-19  Bruno Haible  <bruno@clisp.org>
54819
54820         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
54821         for mingw.
54822
54823 2006-10-19  Bruno Haible  <bruno@clisp.org>
54824
54825         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
54826         Needed for mingw.
54827
54828 2006-10-19  Bruno Haible  <bruno@clisp.org>
54829
54830         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
54831
54832 2006-10-19  Bruno Haible  <bruno@clisp.org>
54833
54834         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
54835         it.
54836
54837 2006-10-19  Bruno Haible  <bruno@clisp.org>
54838
54839         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
54840         invocation.
54841
54842 2006-10-19  Bruno Haible  <bruno@clisp.org>
54843
54844         * gnulib-tool (func_create_testdir): Don't include ftruncate and
54845         mountlist by default.
54846
54847 2006-10-16  Bruno Haible  <bruno@clisp.org>
54848
54849         * lib/c-strstr.c: Include c-strstr.h.
54850
54851 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
54852
54853         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
54854         in a slash.
54855
54856 2006-10-18  Bruno Haible  <bruno@clisp.org>
54857
54858         * lib/lock.h [C++]: Wrap definitions in extern "C".
54859
54860 2006-10-18  Bruno Haible  <bruno@clisp.org>
54861
54862         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
54863         gl_LIBOBJS list.
54864
54865 2006-10-18  Bruno Haible  <bruno@clisp.org>
54866
54867         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
54868
54869 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
54870
54871         * lib/xstrtol.h: Include gettext.h.
54872         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
54873         Problem reported by Eric Blake.
54874         * modules/xstrtol (Depends-on): Add gettext-h.
54875
54876 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
54877
54878         * lib/strftime.c (advance): New macro.
54879         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
54880         incomplete type, so you can't add 0 to it.  Problem and patch
54881         reported by Eelco Dolstra for dietlibc.
54882
54883 2006-10-18  Jim Meyering  <jim@meyering.net>
54884
54885         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
54886         type for a local, and rename it: s/up/user_proc/.
54887
54888 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
54889
54890         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
54891         READ_UTMP_USER_PROCESS.
54892         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
54893
54894 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54895
54896         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
54897         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
54898
54899 2006-10-17  Eric Blake  <ebb9@byu.net>
54900
54901         * lib/sigprocmask.c (sigprocmask): Fix typo.
54902
54903         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
54904
54905         * modules/clean-temp (Makefile.am): Don't add to make output...
54906         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
54907         config.h.
54908
54909 2006-10-17  Bruno Haible  <bruno@clisp.org>
54910
54911         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
54912         differently if DEFAULT_TEXT_DOMAIN is set.
54913
54914 2006-10-16  Bruno Haible  <bruno@clisp.org>
54915
54916         * lib/clean-temp.c: Include fwriteerror.h.
54917
54918 2006-10-16  Bruno Haible  <bruno@clisp.org>
54919
54920         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
54921
54922 2006-10-16  Bruno Haible  <bruno@clisp.org>
54923
54924         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
54925         * lib/sigprocmask.h: Include <sys/types.h>.
54926         (sigset_t): Use the system's definition if present.
54927
54928 2006-10-17  Eric Blake  <ebb9@byu.net>
54929
54930         * lib/xvasprintf.c (includes): Assume config.h.
54931         * lib/xasprintf.c (includes): Likewise.
54932
54933 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54934
54935         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
54936         at least as wide as intmax_t.
54937
54938 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
54939
54940         (Imported from Automake.)
54941         * build-aux/gnupload: Update to version 1.1 of directive file.
54942
54943 2006-10-16  Eric Blake  <ebb9@byu.net>
54944
54945         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
54946         match Automake 1.10a.
54947
54948 2006-10-14  Bruno Haible  <bruno@clisp.org>
54949
54950         * modules/sigprocmask: New file.
54951         * lib/sigprocmask.h: New file.
54952         * lib/sigprocmask.c: New file.
54953         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
54954         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
54955         request sigprocmask.o.
54956         (gl_PREREQ_SIGPROCMASK): New macro.
54957         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
54958         (Depends-on): Add sigprocmask.
54959         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
54960         gt_SIGNALBLOCKING. Test for 'raise' only once.
54961         * lib/fatal-signal.c: Include sigprocmask.h.
54962         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
54963         unblock_fatal_signals): Define always.
54964         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54965         sigprocmask.
54966
54967 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54968
54969         Sync from Automake.
54970         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
54971         which incorrectly sets the mode of an existing destination
54972         directory.  In some cases the unpatched install-sh could do the
54973         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
54974         system.  We hope this is rare in practice, but it's clearly worth
54975         fixing.  Problem reported by Alex Unleashed in
54976         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
54977         Also, don't bother to check for -m bugs unless we're using -m;
54978         suggested by Stepan Kasal.
54979
54980 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54981
54982         Sync from Automake.
54983         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
54984         `-c' flag, so they appear at the same position as in %FASTDEP%
54985         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
54986         which ignores unknown options only after the first non-option.
54987         Bug report against M4 by Nelson H. F. Beebe.
54988
54989 2006-10-13  Jim Meyering  <jim@meyering.net>
54990
54991         Fix a bug in yesterday's change.
54992         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
54993         p->fts_statp->st_dev would be used uninitialized.
54994         Ensures that we always call fts_stat on the very first entry.
54995         Miklos Szeredi reported that find -xdev stopped working.
54996
54997 2006-10-12  Bruno Haible  <bruno@clisp.org>
54998
54999         * gnulib-tool (func_get_automake_snippet): Append an automatically
55000         computed EXTRA_DIST augmentation.
55001         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
55002         * modules/alloca-opt (Makefile.am): Likewise.
55003         * modules/allocsa (Makefile.am): Likewise.
55004         * modules/arcfour (Makefile.am): Likewise.
55005         * modules/arctwo (Makefile.am): Likewise.
55006         * modules/argmatch (Makefile.am): Likewise.
55007         * modules/argz (Makefile.am): Likewise.
55008         * modules/atexit (Makefile.am): Likewise.
55009         * modules/backupfile (Makefile.am): Likewise.
55010         * modules/byteswap (Makefile.am): Likewise.
55011         * modules/c-strtod (Makefile.am): Likewise.
55012         * modules/c-strtold (Makefile.am): Likewise.
55013         * modules/calloc (Makefile.am): Likewise.
55014         * modules/canon-host (Makefile.am): Likewise.
55015         * modules/canonicalize (Makefile.am): Likewise.
55016         * modules/chdir-long (Makefile.am): Likewise.
55017         * modules/chdir-safer (Makefile.am): Likewise.
55018         * modules/check-version (Makefile.am): Likewise.
55019         * modules/chown (Makefile.am): Likewise.
55020         * modules/cloexec (Makefile.am): Likewise.
55021         * modules/close-stream (Makefile.am): Likewise.
55022         * modules/closeout (Makefile.am): Likewise.
55023         * modules/crc (Makefile.am): Likewise.
55024         * modules/csharpexec (Makefile.am): Likewise.
55025         * modules/cycle-check (Makefile.am): Likewise.
55026         * modules/des (Makefile.am): Likewise.
55027         * modules/dev-ino (Makefile.am): Likewise.
55028         * modules/dirfd (Makefile.am): Likewise.
55029         * modules/dirname (Makefile.am): Likewise.
55030         * modules/dup2 (Makefile.am): Likewise.
55031         * modules/eealloc (Makefile.am): Likewise.
55032         * modules/error (Makefile.am): Likewise.
55033         * modules/euidaccess (Makefile.am): Likewise.
55034         * modules/exclude (Makefile.am): Likewise.
55035         * modules/exitfail (Makefile.am): Likewise.
55036         * modules/fcntl-safer (Makefile.am): Likewise.
55037         * modules/fcntl (Makefile.am): Likewise.
55038         * modules/file-type (Makefile.am): Likewise.
55039         * modules/fileblocks (Makefile.am): Likewise.
55040         * modules/filemode (Makefile.am): Likewise.
55041         * modules/filenamecat (Makefile.am): Likewise.
55042         * modules/fnmatch (Makefile.am): Likewise.
55043         * modules/fopen-safer (Makefile.am): Likewise.
55044         * modules/fpending (Makefile.am): Likewise.
55045         * modules/fprintftime (Makefile.am): Likewise.
55046         * modules/free (Makefile.am): Likewise.
55047         * modules/fsusage (Makefile.am): Likewise.
55048         * modules/ftruncate (Makefile.am): Likewise.
55049         * modules/fts (Makefile.am): Likewise.
55050         * modules/gc-arcfour (Makefile.am): Likewise.
55051         * modules/gc-des (Makefile.am): Likewise.
55052         * modules/gc-hmac-md5 (Makefile.am): Likewise.
55053         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
55054         * modules/gc-md4 (Makefile.am): Likewise.
55055         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
55056         * modules/gc-sha1 (Makefile.am): Likewise.
55057         * modules/gc (Makefile.am): Likewise.
55058         * modules/getaddrinfo (Makefile.am): Likewise.
55059         * modules/getcwd (Makefile.am): Likewise.
55060         * modules/getdelim (Makefile.am): Likewise.
55061         * modules/getdomainname (Makefile.am): Likewise.
55062         * modules/getgroups (Makefile.am): Likewise.
55063         * modules/gethostname (Makefile.am): Likewise.
55064         * modules/gethrxtime (Makefile.am): Likewise.
55065         * modules/getline (Makefile.am): Likewise.
55066         * modules/getloadavg (Makefile.am): Likewise.
55067         * modules/getlogin_r (Makefile.am): Likewise.
55068         * modules/getndelim2 (Makefile.am): Likewise.
55069         * modules/getopt (Makefile.am): Likewise.
55070         * modules/getpagesize (Makefile.am): Likewise.
55071         * modules/getpass-gnu (Makefile.am): Likewise.
55072         * modules/getpass (Makefile.am): Likewise.
55073         * modules/getsubopt (Makefile.am): Likewise.
55074         * modules/gettime (Makefile.am): Likewise.
55075         * modules/gettimeofday (Makefile.am): Likewise.
55076         * modules/getugroups (Makefile.am): Likewise.
55077         * modules/getusershell (Makefile.am): Likewise.
55078         * modules/glob (Makefile.am): Likewise.
55079         * modules/group-member (Makefile.am): Likewise.
55080         * modules/hard-locale (Makefile.am): Likewise.
55081         * modules/hash (Makefile.am): Likewise.
55082         * modules/hmac-md5 (Makefile.am): Likewise.
55083         * modules/hmac-sha1 (Makefile.am): Likewise.
55084         * modules/human (Makefile.am): Likewise.
55085         * modules/idcache (Makefile.am): Likewise.
55086         * modules/imaxabs (Makefile.am): Likewise.
55087         * modules/imaxdiv (Makefile.am): Likewise.
55088         * modules/inet_ntop (Makefile.am): Likewise.
55089         * modules/inet_pton (Makefile.am): Likewise.
55090         * modules/intprops (Makefile.am): Likewise.
55091         * modules/inttostr (Makefile.am): Likewise.
55092         * modules/inttypes (Makefile.am): Likewise.
55093         * modules/isapipe (Makefile.am): Likewise.
55094         * modules/javaversion (Makefile.am): Likewise.
55095         * modules/lchmod (Makefile.am): Likewise.
55096         * modules/lchown (Makefile.am): Likewise.
55097         * modules/localcharset (Makefile.am): Likewise.
55098         * modules/long-options (Makefile.am): Likewise.
55099         * modules/lstat (Makefile.am): Likewise.
55100         * modules/malloc (Makefile.am): Likewise.
55101         * modules/mathl (Makefile.am): Likewise.
55102         * modules/mbchar (Makefile.am): Likewise.
55103         * modules/md2 (Makefile.am): Likewise.
55104         * modules/md4 (Makefile.am): Likewise.
55105         * modules/md5 (Makefile.am): Likewise.
55106         * modules/memcasecmp (Makefile.am): Likewise.
55107         * modules/memchr (Makefile.am): Likewise.
55108         * modules/memcmp (Makefile.am): Likewise.
55109         * modules/memcoll (Makefile.am): Likewise.
55110         * modules/memcpy (Makefile.am): Likewise.
55111         * modules/memmem (Makefile.am): Likewise.
55112         * modules/memmove (Makefile.am): Likewise.
55113         * modules/mempcpy (Makefile.am): Likewise.
55114         * modules/memrchr (Makefile.am): Likewise.
55115         * modules/memset (Makefile.am): Likewise.
55116         * modules/memxor (Makefile.am): Likewise.
55117         * modules/mkancesdirs (Makefile.am): Likewise.
55118         * modules/mkdir-p (Makefile.am): Likewise.
55119         * modules/mkdir (Makefile.am): Likewise.
55120         * modules/mkdtemp (Makefile.am): Likewise.
55121         * modules/mkstemp (Makefile.am): Likewise.
55122         * modules/mktime (Makefile.am): Likewise.
55123         * modules/modechange (Makefile.am): Likewise.
55124         * modules/mountlist (Makefile.am): Likewise.
55125         * modules/nanosleep (Makefile.am): Likewise.
55126         * modules/obstack (Makefile.am): Likewise.
55127         * modules/openat (Makefile.am): Likewise.
55128         * modules/pagealign_alloc (Makefile.am): Likewise.
55129         * modules/pathmax (Makefile.am): Likewise.
55130         * modules/physmem (Makefile.am): Likewise.
55131         * modules/poll (Makefile.am): Likewise.
55132         * modules/posixtm (Makefile.am): Likewise.
55133         * modules/posixver (Makefile.am): Likewise.
55134         * modules/putenv (Makefile.am): Likewise.
55135         * modules/quote (Makefile.am): Likewise.
55136         * modules/quotearg (Makefile.am): Likewise.
55137         * modules/raise (Makefile.am): Likewise.
55138         * modules/read-file (Makefile.am): Likewise.
55139         * modules/readline (Makefile.am): Likewise.
55140         * modules/readlink (Makefile.am): Likewise.
55141         * modules/readtokens (Makefile.am): Likewise.
55142         * modules/readutmp (Makefile.am): Likewise.
55143         * modules/realloc (Makefile.am): Likewise.
55144         * modules/regex (Makefile.am): Likewise.
55145         * modules/rename-dest-slash (Makefile.am): Likewise.
55146         * modules/rename (Makefile.am): Likewise.
55147         * modules/rijndael (Makefile.am): Likewise.
55148         * modules/rmdir (Makefile.am): Likewise.
55149         * modules/rpmatch (Makefile.am): Likewise.
55150         * modules/safe-read (Makefile.am): Likewise.
55151         * modules/safe-write (Makefile.am): Likewise.
55152         * modules/same-inode (Makefile.am): Likewise.
55153         * modules/same (Makefile.am): Likewise.
55154         * modules/save-cwd (Makefile.am): Likewise.
55155         * modules/savedir (Makefile.am): Likewise.
55156         * modules/setenv (Makefile.am): Likewise.
55157         * modules/settime (Makefile.am): Likewise.
55158         * modules/sha1 (Makefile.am): Likewise.
55159         * modules/sig2str (Makefile.am): Likewise.
55160         * modules/snprintf (Makefile.am): Likewise.
55161         * modules/stat-macros (Makefile.am): Likewise.
55162         * modules/stat-time (Makefile.am): Likewise.
55163         * modules/stdbool (Makefile.am): Likewise.
55164         * modules/stdint (Makefile.am): Likewise.
55165         * modules/stdlib-safer (Makefile.am): Likewise.
55166         * modules/stpcpy (Makefile.am): Likewise.
55167         * modules/stpncpy (Makefile.am): Likewise.
55168         * modules/strcase (Makefile.am): Likewise.
55169         * modules/strcasestr (Makefile.am): Likewise.
55170         * modules/strchrnul (Makefile.am): Likewise.
55171         * modules/strcspn (Makefile.am): Likewise.
55172         * modules/strdup (Makefile.am): Likewise.
55173         * modules/strerror (Makefile.am): Likewise.
55174         * modules/strftime (Makefile.am): Likewise.
55175         * modules/strndup (Makefile.am): Likewise.
55176         * modules/strnlen (Makefile.am): Likewise.
55177         * modules/strpbrk (Makefile.am): Likewise.
55178         * modules/strsep (Makefile.am): Likewise.
55179         * modules/strstr (Makefile.am): Likewise.
55180         * modules/strtod (Makefile.am): Likewise.
55181         * modules/strtoimax (Makefile.am): Likewise.
55182         * modules/strtok_r (Makefile.am): Likewise.
55183         * modules/strtol (Makefile.am): Likewise.
55184         * modules/strtoll (Makefile.am): Likewise.
55185         * modules/strtoul (Makefile.am): Likewise.
55186         * modules/strtoull (Makefile.am): Likewise.
55187         * modules/strtoumax (Makefile.am): Likewise.
55188         * modules/strverscmp (Makefile.am): Likewise.
55189         * modules/sys_socket (Makefile.am): Likewise.
55190         * modules/sys_stat (Makefile.am): Likewise.
55191         * modules/sysexits (Makefile.am): Likewise.
55192         * modules/time_r (Makefile.am): Likewise.
55193         * modules/timegm (Makefile.am): Likewise.
55194         * modules/timespec (Makefile.am): Likewise.
55195         * modules/tmpfile-safer (Makefile.am): Likewise.
55196         * modules/trim (Makefile.am): Likewise.
55197         * modules/unistd-safer (Makefile.am): Likewise.
55198         * modules/unlinkdir (Makefile.am): Likewise.
55199         * modules/unlocked-io (Makefile.am): Likewise.
55200         * modules/userspec (Makefile.am): Likewise.
55201         * modules/utime (Makefile.am): Likewise.
55202         * modules/utimecmp (Makefile.am): Likewise.
55203         * modules/utimens (Makefile.am): Likewise.
55204         * modules/vasnprintf (Makefile.am): Likewise.
55205         * modules/vasprintf (Makefile.am): Likewise.
55206         * modules/vsnprintf (Makefile.am): Likewise.
55207         * modules/xalloc (Makefile.am): Likewise.
55208         * modules/xgetcwd (Makefile.am): Likewise.
55209         * modules/xnanosleep (Makefile.am): Likewise.
55210         * modules/xreadlink (Makefile.am): Likewise.
55211         * modules/xstrtod (Makefile.am): Likewise.
55212         * modules/xstrtol (Makefile.am): Likewise.
55213         * modules/xstrtold (Makefile.am): Likewise.
55214         * modules/yesno (Makefile.am): Likewise.
55215         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
55216
55217 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55218
55219         * modules/error (Makefile.am): Distribute files through
55220         EXTRA_DIST, not lib_SOURCES.
55221
55222 2006-10-12  Eric Blake  <ebb9@byu.net>
55223
55224         * modules/error (Makefile.am): Distribute files in /lib.
55225         * modules/obstack (Makefile.am): Likewise.
55226
55227 2006-10-12  Bruno Haible  <bruno@clisp.org>
55228
55229         * modules/acl (Makefile.am): Distribute all files in lib/ through
55230         EXTRA_DIST.
55231         * modules/arcfour (Makefile.am): Likewise.
55232         * modules/arctwo (Makefile.am): Likewise.
55233         * modules/argmatch (Makefile.am): Likewise.
55234         * modules/argz (Makefile.am): Likewise.
55235         * modules/atexit (Makefile.am): Likewise.
55236         * modules/backupfile (Makefile.am): Likewise.
55237         * modules/c-strtod (Makefile.am): Likewise.
55238         * modules/c-strtold (Makefile.am): Likewise.
55239         * modules/calloc (Makefile.am): Likewise.
55240         * modules/canon-host (Makefile.am): Likewise.
55241         * modules/canonicalize (Makefile.am): Likewise.
55242         * modules/chdir-long (Makefile.am): Likewise.
55243         * modules/chdir-safer (Makefile.am): Likewise.
55244         * modules/check-version (Makefile.am): Likewise.
55245         * modules/chown (Makefile.am): Likewise.
55246         * modules/cloexec (Makefile.am): Likewise.
55247         * modules/close-stream (Makefile.am): Likewise.
55248         * modules/closeout (Makefile.am): Likewise.
55249         * modules/crc (Makefile.am): Likewise.
55250         * modules/cycle-check (Makefile.am): Likewise.
55251         * modules/des (Makefile.am): Likewise.
55252         * modules/dirfd (Makefile.am): Likewise.
55253         * modules/dirname (Makefile.am): Likewise.
55254         * modules/dup2 (Makefile.am): Likewise.
55255         * modules/euidaccess (Makefile.am): Likewise.
55256         * modules/exclude (Makefile.am): Likewise.
55257         * modules/exitfail (Makefile.am): Likewise.
55258         * modules/fcntl-safer (Makefile.am): Likewise.
55259         * modules/file-type (Makefile.am): Likewise.
55260         * modules/fileblocks (Makefile.am): Likewise.
55261         * modules/filemode (Makefile.am): Likewise.
55262         * modules/filenamecat (Makefile.am): Likewise.
55263         * modules/fnmatch (Makefile.am): Likewise.
55264         * modules/fopen-safer (Makefile.am): Likewise.
55265         * modules/fpending (Makefile.am): Likewise.
55266         * modules/fprintftime (Makefile.am): Likewise.
55267         * modules/free (Makefile.am): Likewise.
55268         * modules/fsusage (Makefile.am): Likewise.
55269         * modules/ftruncate (Makefile.am): Likewise.
55270         * modules/fts (Makefile.am): Likewise.
55271         * modules/gc (Makefile.am): Likewise.
55272         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
55273         * modules/getaddrinfo (Makefile.am): Likewise.
55274         * modules/getcwd (Makefile.am): Likewise.
55275         * modules/getdelim (Makefile.am): Likewise.
55276         * modules/getdomainname (Makefile.am): Likewise.
55277         * modules/getgroups (Makefile.am): Likewise.
55278         * modules/gethostname (Makefile.am): Likewise.
55279         * modules/gethrxtime (Makefile.am): Likewise.
55280         * modules/getline (Makefile.am): Likewise.
55281         * modules/getloadavg (Makefile.am): Likewise.
55282         * modules/getlogin_r (Makefile.am): Likewise.
55283         * modules/getopt (Makefile.am): Likewise.
55284         * modules/getpass (Makefile.am): Likewise.
55285         * modules/getpass-gnu (Makefile.am): Likewise.
55286         * modules/getsubopt (Makefile.am): Likewise.
55287         * modules/gettime (Makefile.am): Likewise.
55288         * modules/gettimeofday (Makefile.am): Likewise.
55289         * modules/getugroups (Makefile.am): Likewise.
55290         * modules/getusershell (Makefile.am): Likewise.
55291         * modules/glob (Makefile.am): Likewise.
55292         * modules/group-member (Makefile.am): Likewise.
55293         * modules/hard-locale (Makefile.am): Likewise.
55294         * modules/hash (Makefile.am): Likewise.
55295         * modules/hmac-md5 (Makefile.am): Likewise.
55296         * modules/hmac-sha1 (Makefile.am): Likewise.
55297         * modules/human (Makefile.am): Likewise.
55298         * modules/idcache (Makefile.am): Likewise.
55299         * modules/imaxabs (Makefile.am): Likewise.
55300         * modules/imaxdiv (Makefile.am): Likewise.
55301         * modules/inet_ntop (Makefile.am): Likewise.
55302         * modules/inet_pton (Makefile.am): Likewise.
55303         * modules/inttostr (Makefile.am): Likewise.
55304         * modules/isapipe (Makefile.am): Likewise.
55305         * modules/lchown (Makefile.am): Likewise.
55306         * modules/long-options (Makefile.am): Likewise.
55307         * modules/lstat (Makefile.am): Likewise.
55308         * modules/malloc (Makefile.am): Likewise.
55309         * modules/mathl (Makefile.am): Likewise.
55310         * modules/mbchar (Makefile.am): Likewise.
55311         * modules/md2 (Makefile.am): Likewise.
55312         * modules/md4 (Makefile.am): Likewise.
55313         * modules/md5 (Makefile.am): Likewise.
55314         * modules/memcasecmp (Makefile.am): Likewise.
55315         * modules/memchr (Makefile.am): Likewise.
55316         * modules/memcmp (Makefile.am): Likewise.
55317         * modules/memcoll (Makefile.am): Likewise.
55318         * modules/memcpy (Makefile.am): Likewise.
55319         * modules/memmem (Makefile.am): Likewise.
55320         * modules/memmove (Makefile.am): Likewise.
55321         * modules/mempcpy (Makefile.am): Likewise.
55322         * modules/memrchr (Makefile.am): Likewise.
55323         * modules/memset (Makefile.am): Likewise.
55324         * modules/memxor (Makefile.am): Likewise.
55325         * modules/mkancesdirs (Makefile.am): Likewise.
55326         * modules/mkdir (Makefile.am): Likewise.
55327         * modules/mkdir-p (Makefile.am): Likewise.
55328         * modules/mkdtemp (Makefile.am): Likewise.
55329         * modules/mkstemp (Makefile.am): Likewise.
55330         * modules/mktime (Makefile.am): Likewise.
55331         * modules/modechange (Makefile.am): Likewise.
55332         * modules/mountlist (Makefile.am): Likewise.
55333         * modules/nanosleep (Makefile.am): Likewise.
55334         * modules/openat (Makefile.am): Likewise.
55335         * modules/pagealign_alloc (Makefile.am): Likewise.
55336         * modules/physmem (Makefile.am): Likewise.
55337         * modules/poll (Makefile.am): Likewise.
55338         * modules/posixtm (Makefile.am): Likewise.
55339         * modules/posixver (Makefile.am): Likewise.
55340         * modules/putenv (Makefile.am): Likewise.
55341         * modules/quote (Makefile.am): Likewise.
55342         * modules/quotearg (Makefile.am): Likewise.
55343         * modules/raise (Makefile.am): Likewise.
55344         * modules/read-file (Makefile.am): Likewise.
55345         * modules/readline (Makefile.am): Likewise.
55346         * modules/readlink (Makefile.am): Likewise.
55347         * modules/readtokens (Makefile.am): Likewise.
55348         * modules/readutmp (Makefile.am): Likewise.
55349         * modules/realloc (Makefile.am): Likewise.
55350         * modules/regex (Makefile.am): Likewise.
55351         * modules/rename (Makefile.am): Likewise.
55352         * modules/rename-dest-slash (Makefile.am): Likewise.
55353         * modules/rijndael (Makefile.am): Likewise.
55354         * modules/rmdir (Makefile.am): Likewise.
55355         * modules/rpmatch (Makefile.am): Likewise.
55356         * modules/safe-read (Makefile.am): Likewise.
55357         * modules/safe-write (Makefile.am): Likewise.
55358         * modules/same (Makefile.am): Likewise.
55359         * modules/save-cwd (Makefile.am): Likewise.
55360         * modules/savedir (Makefile.am): Likewise.
55361         * modules/setenv (Makefile.am): Likewise.
55362         * modules/settime (Makefile.am): Likewise.
55363         * modules/sha1 (Makefile.am): Likewise.
55364         * modules/sig2str (Makefile.am): Likewise.
55365         * modules/snprintf (Makefile.am): Likewise.
55366         * modules/stdlib-safer (Makefile.am): Likewise.
55367         * modules/stpcpy (Makefile.am): Likewise.
55368         * modules/stpncpy (Makefile.am): Likewise.
55369         * modules/strcase (Makefile.am): Likewise.
55370         * modules/strcasestr (Makefile.am): Likewise.
55371         * modules/strchrnul (Makefile.am): Likewise.
55372         * modules/strcspn (Makefile.am): Likewise.
55373         * modules/strdup (Makefile.am): Likewise.
55374         * modules/strerror (Makefile.am): Likewise.
55375         * modules/strftime (Makefile.am): Likewise.
55376         * modules/strndup (Makefile.am): Likewise.
55377         * modules/strnlen (Makefile.am): Likewise.
55378         * modules/strpbrk (Makefile.am): Likewise.
55379         * modules/strsep (Makefile.am): Likewise.
55380         * modules/strstr (Makefile.am): Likewise.
55381         * modules/strtod (Makefile.am): Likewise.
55382         * modules/strtoimax (Makefile.am): Likewise.
55383         * modules/strtok_r (Makefile.am): Likewise.
55384         * modules/strtol (Makefile.am): Likewise.
55385         * modules/strtoll (Makefile.am): Likewise.
55386         * modules/strtoul (Makefile.am): Likewise.
55387         * modules/strtoull (Makefile.am): Likewise.
55388         * modules/strtoumax (Makefile.am): Likewise.
55389         * modules/strverscmp (Makefile.am): Likewise.
55390         * modules/time_r (Makefile.am): Likewise.
55391         * modules/timegm (Makefile.am): Likewise.
55392         * modules/tmpfile-safer (Makefile.am): Likewise.
55393         * modules/unistd-safer (Makefile.am): Likewise.
55394         * modules/unlinkdir (Makefile.am): Likewise.
55395         * modules/userspec (Makefile.am): Likewise.
55396         * modules/utime (Makefile.am): Likewise.
55397         * modules/utimecmp (Makefile.am): Likewise.
55398         * modules/utimens (Makefile.am): Likewise.
55399         * modules/vasnprintf (Makefile.am): Likewise.
55400         * modules/vasprintf (Makefile.am): Likewise.
55401         * modules/vsnprintf (Makefile.am): Likewise.
55402         * modules/xalloc (Makefile.am): Likewise.
55403         * modules/xgetcwd (Makefile.am): Likewise.
55404         * modules/xnanosleep (Makefile.am): Likewise.
55405         * modules/xreadlink (Makefile.am): Likewise.
55406         * modules/xstrtod (Makefile.am): Likewise.
55407         * modules/xstrtol (Makefile.am): Likewise.
55408         * modules/xstrtold (Makefile.am): Likewise.
55409         * modules/yesno (Makefile.am): Likewise.
55410
55411 2006-10-12  Jim Meyering  <jim@meyering.net>
55412
55413         * m4/getloadavg.m4: Revert the change below.
55414
55415         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
55416         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
55417         fail with a symlink, which is what coreutils' ./bootstrap now
55418         creates by default.
55419
55420 2006-10-12  Bruno Haible  <bruno@clisp.org>
55421
55422         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
55423         mingw.
55424         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
55425         MSVC and mingw explicitly.
55426
55427 2006-10-11  Simon Josefsson  <jas@extundo.com>
55428             Bruno Haible  <bruno@clisp.org>
55429
55430         Add support for multiple gnulib-tool invocations in the scope of a
55431         single configure.ac file.
55432         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
55433         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
55434         with the same contents as the _LIBADD variable.
55435         (func_emit_initmacro_start, func_emit_initmacro_end,
55436         func_emit_initmacro_done): New functions.
55437         (func_import, func_create_testdir): Invoke them. Allow the identifiers
55438         gl_LIBOBJS and gl_LTLIBOBJS.
55439
55440 2006-10-11  Bruno Haible  <bruno@clisp.org>
55441
55442         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
55443         (func_create_testdir): Don't create po/Makefile.am, don't invoke
55444         autoreconf. Instead, invoke autopoint explicitly but move back the
55445         *.m4 files from gnulib.
55446
55447 2006-10-11  Bruno Haible  <bruno@clisp.org>
55448
55449         * gnulib-tool (func_usage): Make module names after --create-testdir
55450         optional.
55451         (func_create_testdir): If no module was specified, use nearly all
55452         modules.
55453
55454 2006-10-12  Jim Meyering  <jim@meyering.net>
55455
55456         Big performance improvement for fts-based tools that use FTS_NOSTAT.
55457         Avoid spurious inode-mismatch problems on non-POSIX file systems.
55458         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
55459         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
55460         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
55461         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
55462         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
55463         (fts_set_stat_required): New function.
55464         (fts_open): Defer the calls to fts_stat, if possible or requested.
55465         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
55466         into fts_stat itself.
55467         (fts_read): Perform any required (deferred) fts_stat call.
55468         (fts_build): Likewise, for the directory we're about to open and read.
55469         In the readdir loop, carefully decide whether each entry will require
55470         an eventual call to fts_stat, using dirent.d_type info if available.
55471         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
55472         a command line argument into this function.  Update all callers.
55473         Map a return value of FTS_DOT to FTS_D for a command line argument.
55474         * modules/fts (Depends-on): Add d-type.  Alphabetize.
55475         Thanks to Miklos Szeredi for his tenacity and for the initial
55476         bug report about "find" failing on a FUSE-based file system.
55477
55478         * lib/fts.c (fts_open): Use consistent indentation.
55479
55480 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55481
55482         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
55483         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
55484         reported by Jim Meyering.  All uses of cache variables renamed
55485         to match Autoconf's.
55486         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
55487         the other one.
55488
55489         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
55490         Fix misspelling in diagnostic.
55491
55492 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55493
55494         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
55495         defined.  Problem reported by Matthew Woehlke.
55496
55497         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
55498         Add support for Tandem NonStop R series.
55499         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
55500         Use new macro.
55501
55502         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
55503         (has_trailing_slash): Omit size arg; all callers changed.
55504         Omit 'inline', since it doesn't help performance and we'd
55505         need to configure it.
55506         Don't count //, ///, etc. as having a trailing slash.
55507         As a side effect, this removes a C99ism reported by Matthew Woehlke.
55508         (rpl_rename_dest_slash): On failure, use rename's errno rather
55509         than (in some cases) an incorrect or junk errno.
55510         Simplify code by removing need to compute length; this does
55511         cause it to make two passes instead of one over the file name,
55512         but it's worth it.
55513
55514         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
55515         change, since Autoconf's version may no longer be appropriate now
55516         that we are using CVS Autoconf's version.  Add support for Tandem.
55517
55518 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55519             Bruno Haible  <bruno@clisp.org>
55520
55521         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
55522         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
55523         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
55524         gl_AC_TYPE_LONG_LONG.
55525
55526         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
55527         instead of HAVE_LONG_LONG.
55528         * lib/printf-args.c (printf_fetchargs): Likewise.
55529         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
55530         * lib/vasnprintf.c (VASNPRINTF): Likewise.
55531         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
55532         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
55533         gl_AC_TYPE_LONG_LONG.
55534
55535 2006-10-11  Bruno Haible  <bruno@clisp.org>
55536
55537         * m4/longlong.m4: Add comments.
55538         * m4/ulonglong.m4: Likewise.
55539
55540 2006-10-10  Bruno Haible  <bruno@clisp.org>
55541
55542         Make it possible to #define stpcpy, strdup to aliases.
55543         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
55544         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
55545
55546 2006-10-10  Bruno Haible  <bruno@clisp.org>
55547
55548         Make it possible to #define gcd to an alias.
55549         * lib/gcd.c: Include config.h.
55550
55551 2006-10-10  Bruno Haible  <bruno@clisp.org>
55552
55553         Make it possible to #define c_isascii to an alias.
55554         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
55555         defined. Undefine the macros before defining them, to avoid gcc
55556         warnings.
55557         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
55558         define NO_C_CTYPE_MACROS early.
55559
55560 2006-10-10  Bruno Haible  <bruno@clisp.org>
55561
55562         Make it possible to #define set_program_name to an alias.
55563         * lib/progname.c: Don't undefine set_program_name; instead, undefine
55564         ENABLE_RELOCATABLE early.
55565
55566 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
55567
55568         Port to Tandem NSK OSS, which has 64-bit signed int but at most
55569         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
55570         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
55571         More generally, don't assume that 64-bit signed int is available
55572         if unsigned int is, and vice versa.
55573         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
55574         unsigned symbols, not on their signed counterparts.
55575         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
55576         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
55577         (UINT64_C, UINTMAX_C):
55578         Likewise.
55579         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
55580         unsigned counterparts.
55581         (Have_long_long, Unsigned): New macros.
55582         (Int): Renamed from INT.
55583         (strtoimax): Use the new macros.
55584         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
55585         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
55586         * modules/inttypes (inttypes.h): Substitute
55587         HAVE_UNSIGNED_LONG_LONG_INT.
55588         * modules/stdint (stdint.h): Likewise.
55589         (Files): Add m4/ulonglong.m4.
55590
55591 2006-10-10  Bruno Haible  <bruno@clisp.org>
55592
55593         Fix a gcc -Wshadow warning.
55594         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
55595         to 'bucket'.
55596         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
55597         gl_linked_indexof_from_to): Likewise.
55598         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
55599         Likewise.
55600         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
55601         Likewise.
55602         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
55603         Reported by Eric Blake.
55604
55605 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
55606
55607         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
55608         for NetBSD.  Problem reported by Bruno Haible.
55609
55610 2006-10-09  Jim Meyering  <jim@meyering.net>
55611
55612         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
55613         Patch from Bruno Haible.
55614
55615 2006-10-09  Jim Meyering  <jim@meyering.net>
55616
55617         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
55618         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
55619         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
55620
55621 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55622
55623         Don't include <config.h> twice; this doesn't work in some cases,
55624         e.g., when config.h has "#define intmax_t long long int" and
55625         we include <config.h>, <inttypes.h>, <config.h> in that order.
55626         Problem reported by Matthew Woehlke in:
55627         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
55628         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
55629         * lib/fts-cycle.c: Don't include config.h.
55630         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
55631         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
55632         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
55633         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
55634         inttypes.h.
55635         * lib/xstrtoumax.c: Likewise.
55636         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
55637         __strtol and the like, so that this module is more like its siblings.
55638         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
55639         Remove; no longer needed now that we assume gnulib inttypes.h.
55640
55641 2006-10-08  Bruno Haible  <bruno@clisp.org>
55642
55643         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
55644         option.
55645
55646 2006-10-07  Jim Meyering  <jim@meyering.net>
55647
55648         * modules/inttypes (inttypes.h): Revert what seems to have been
55649         an inadvertent part of today's change: use "|", not "/" in the
55650         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
55651
55652 2006-10-07  Bruno Haible  <bruno@clisp.org>
55653
55654         * modules/sublist: New file.
55655
55656 2006-10-07  Bruno Haible  <bruno@clisp.org>
55657
55658         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
55659         * modules/argz (argz.h): Likewise.
55660         * modules/arpa_inet (arpa/inet.h): Likewise.
55661         * modules/byteswap (byteswap.h): Likewise.
55662         * modules/configmake (configmake.h): Likewise.
55663         * modules/fcntl (fcntl.h): Likewise.
55664         * modules/fnmatch (fnmatch.h): Likewise.
55665         * modules/getopt (getopt.h): Likewise.
55666         * modules/glob (glob.h): Likewise.
55667         * modules/inttypes (inttypes.h): Likewise.
55668         * modules/netinet_in (netinet/in.h): Likewise.
55669         * modules/poll (poll.h): Likewise.
55670         * modules/stdbool (stdbool.h): Likewise.
55671         * modules/stdint (stdint.h): Likewise.
55672         * modules/sys_select (sys/select.h): Likewise.
55673         * modules/sys_socket (sys/socket.h): Likewise.
55674         * modules/sys_stat (sys/stat.h): Likewise.
55675         * modules/sysexits (sysexits.h): Likewise.
55676         * modules/unistd (unistd.h): Likewise.
55677         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55678         Add a "DO NOT EDIT" comment to the generated file.
55679         (func_import): Likewise for gnulib-comp.m4.
55680
55681 2006-10-07  Bruno Haible  <bruno@clisp.org>
55682
55683         * lib/gl_sublist.h: New file.
55684         * lib/gl_sublist.c: New file.
55685
55686 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
55687
55688         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
55689         name (relative to the original working directory) and the file
55690         name component (relative to the temporary working directory).  All
55691         callers changed.
55692         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
55693         * lib/mkdir-p.c (make_dir_parents): Likewise.
55694         * lib/mkdir-p.h (make_dir_parents): Likewise.
55695
55696 2006-10-06  Eric Blake  <ebb9@byu.net>
55697
55698         Define several macros for use by the clean-temp module.
55699         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
55700         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
55701         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
55702
55703         * lib/clean-temp.h (close_stream_temp): New declaration.
55704         * lib/clean-temp.c (includes): Pull in headers according to what
55705         other modules are in use.
55706         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
55707
55708 2006-10-06  Bruno Haible  <bruno@clisp.org>
55709
55710         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
55711         instead of fopen, fwriteerror.
55712
55713 2006-10-06  Bruno Haible  <bruno@clisp.org>
55714
55715         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
55716         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
55717         int.
55718         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
55719         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
55720         Return an error indicator.
55721         Suggested by Eric Blake.
55722
55723 2006-10-06  Bruno Haible  <bruno@clisp.org>
55724
55725         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
55726         Reported by Eric Blake.
55727
55728 2006-10-06  Bruno Haible  <bruno@clisp.org>
55729
55730         * modules/closeout (Description): Mention stderr too.
55731
55732 2006-10-06  Bruno Haible  <bruno@clisp.org>
55733         and Paul Eggert  <eggert@cs.ucla.edu>
55734
55735         * lib/closeout.c (close_stdout): Also close stderr.
55736         * lib/closeout.h: Update comment.
55737
55738 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
55739
55740         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
55741         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
55742         * lib/dirchownmod.c: Include lchown.h.
55743         * lib/lchown.c: Don't include files that lchown.h now includes.
55744         Don't declare chown, since lchown.h now does that.
55745         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
55746         (lchown): Define to rpl_chown if lchown is declared but
55747         does not exist.  Declare using a prototype if lchown is not
55748         declared.  Add a copyright notice.
55749         * lib/mkstemp.h: Include <unistd.h>.
55750         * lib/openat.c: Include lchown.h.
55751
55752         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
55753         we now test for that separately.
55754         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
55755         rather than O_NOFOLLOW, when testing whether it's possible to
55756         avoid a race condition reliably.
55757         * lib/savewd.c (savewd_chdir): Likewise.
55758
55759         Remove macros that are no longer needed now that stdint.h is
55760         reliable.
55761         * lib/fsusage.c (UINTMAX_MAX): Remove.
55762         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
55763         * lib/utimecmp.c (SIZE_MAX): Remove.
55764
55765         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
55766
55767         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
55768         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
55769         O_NOATIME works.
55770
55771 2006-10-05  Bruno Haible  <bruno@clisp.org>
55772
55773         * lib/gl_list.h (gl_sortedlist_search_from_to,
55774         gl_sortedlist_indexof_from_to): New declarations.
55775         (gl_list_implementation): New fields sortedlist_search_from_to,
55776         sortedlist_indexof_from_to.
55777         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
55778         inline functions.
55779         * lib/gl_list.c (gl_sortedlist_search_from_to,
55780         gl_sortedlist_indexof_from_to): New functions.
55781         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
55782         function.
55783         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
55784         (gl_array_sortedlist_search_from_to): New function.
55785         (gl_array_list_implementation): Update.
55786         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
55787         function.
55788         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
55789         (gl_carray_sortedlist_search_from_to): New function.
55790         (gl_carray_list_implementation): Update.
55791         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
55792         gl_linked_sortedlist_indexof_from_to): New functions.
55793         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
55794         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
55795         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
55796         gl_tree_sortedlist_indexof_from_to): New functions.
55797         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
55798         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
55799         Update.
55800         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
55801         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
55802         Update.
55803
55804 2006-10-05  Bruno Haible  <bruno@clisp.org>
55805
55806         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
55807         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
55808         (struct gl_list_implementation): Add fields search_from_to,
55809         indexof_from_to. Remove fields search, indexof.
55810         (gl_list_search): Use the search_from_to method.
55811         (gl_list_search_from, gl_list_search_from_to): New functions.
55812         (gl_list_indexof): Use the indexof_from_to method.
55813         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
55814         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
55815         (gl_list_search_from, gl_list_search_from_to): New functions.
55816         (gl_list_indexof): Use the indexof_from_to method.
55817         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
55818         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
55819         gl_array_indexof. Add start_index, end_index arguments.
55820         (gl_array_search_from_to): Renamed from gl_array_search. Add
55821         start_index, end_index arguments.
55822         (gl_array_remove, gl_array_list_implementation): Update.
55823         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
55824         gl_carray_indexof. Add start_index, end_index arguments.
55825         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
55826         start_index, end_index arguments.
55827         (gl_carray_remove, gl_carray_list_implementation): Update.
55828         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
55829         gl_linked_search. Add start_index, end_index arguments.
55830         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
55831         start_index, end_index arguments.
55832         (gl_linked_remove): Update.
55833         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
55834         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
55835         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
55836         field to 'size_t'.
55837         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
55838         gl_tree_search. Add start_index, end_index arguments.
55839         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
55840         start_index, end_index arguments.
55841         (gl_tree_remove): Update.
55842         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
55843         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
55844         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
55845         function.
55846         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
55847         gl_tree_search. Add start_index, end_index arguments.
55848         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
55849         start_index, end_index arguments.
55850         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
55851         Update.
55852         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
55853
55854 2006-10-05  Bruno Haible  <bruno@clisp.org>
55855
55856         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
55857
55858         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
55859         fwriteerror_temp): New declarations.
55860         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
55861         (descriptors): New variable.
55862         (cleanup): First, close the descriptors.
55863         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
55864         fclose_temp, fwriteerror_temp): New functions.
55865
55866 2006-10-04  Jim Meyering  <jim@meyering.net>
55867
55868         * lib/fts.c (fts_open): Tiny comment change.
55869
55870 2006-10-04  Bruno Haible  <bruno@clisp.org>
55871
55872         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
55873         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
55874         gl_LOCK_BODY.
55875         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
55876         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
55877         gl_LOCK_EARLY_BODY.
55878         (gl_LOCK): Require gl_LOCK_BODY.
55879
55880 2006-10-04  Bruno Haible  <bruno@clisp.org>
55881
55882         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
55883         (gl_oset_search_atleast): New declaration.
55884         (struct gl_oset_implementation): Add field 'search_atleast'.
55885         (gl_oset_search_atleast): New inline function.
55886         * lib/gl_oset.c (gl_oset_search_atleast): New function.
55887         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
55888         (gl_array_oset_implementation): Update.
55889         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
55890         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
55891         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
55892
55893 2006-10-04  Bruno Haible  <bruno@clisp.org>
55894
55895         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
55896
55897 2006-10-03  Bruno Haible  <bruno@clisp.org>
55898
55899         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
55900         from gl_avltreehash_list_implementation.
55901
55902 2006-10-03  Bruno Haible  <bruno@clisp.org>
55903
55904         * lib/gl_oset.c (gl_oset_add): Fix return type.
55905
55906 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
55907
55908         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
55909
55910 2006-10-02  Eric Blake  <ebb9@byu.net>
55911
55912         * modules/strnlen (Depends-on): Add extensions.
55913
55914 2006-10-02  Eric Blake  <ebb9@byu.net>
55915
55916         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
55917         definition in 2.60+.
55918
55919 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
55920
55921         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
55922         checks.
55923
55924 2006-10-02  Bruno Haible  <bruno@clisp.org>
55925
55926         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
55927         to the AUTOMAKE_OPTIONS.
55928         Reported by Jim Meyering.
55929
55930 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
55931
55932         Work around bug in Solaris 10 /proc file system:
55933         /proc/self/fd/NNN/.. isn't the parent directory of
55934         the directory whose file descriptor is NNN.  This needs to
55935         be worked around at run time, not compile time, since a
55936         program might be built on Solaris 8, where things work, and
55937         run on Solaris 10.
55938         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
55939         to use the following interface instead:
55940         (OPENAT_BUFFER_SIZE): New macro.
55941         (openat_proc_name): New function.
55942         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
55943         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
55944         Likewise.
55945         * lib/openat-proc.c: New file.
55946         * modules/openat (Files): Add lib/openat-proc.c.
55947         (Depends-on): Add same-inode, stdbool.
55948         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
55949
55950 2006-09-29  Bruno Haible  <bruno@clisp.org>
55951
55952         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
55953         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
55954         argument. Set stdout_closed before testing for ferror, not after.
55955         (fwriteerror, fwriteerror_no_ebadf): New functions.
55956
55957 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55958
55959         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
55960
55961 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
55962
55963         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
55964         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
55965
55966 2006-09-28  Jim Meyering  <jim@meyering.net>
55967
55968         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
55969         Include <unistd.h>.
55970
55971 2006-09-28  Bruno Haible  <bruno@clisp.org>
55972
55973         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
55974         * modules/linkedhash-list (Depends-on): Likewise.
55975         * modules/rbtreehash-list (Depends-on): Likewise.
55976
55977 2006-09-28  Bruno Haible  <bruno@clisp.org>
55978
55979         * lib/strndup.h: Simplify the redefinition of strndup.
55980         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
55981         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
55982
55983 2006-09-28  Bruno Haible  <bruno@clisp.org>
55984
55985         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
55986         * lib/gl_linkedhash_list.c: Likewise.
55987         * lib/gl_rbtreehash_list.c: Likewise.
55988
55989 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
55990
55991         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
55992         getaddrinfo.
55993
55994         * lib/__fpending.h: Don't include <stdio_ext.h> unless
55995         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
55996         it causes <stdio_ext.h> to cause a compile-time error.
55997         Problem reported by Nelson H. F. Beebe.
55998         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
55999         of HAVE_DECL___PENDING.
56000
56001         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
56002         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
56003         declaration.
56004
56005 2006-09-27  Jim Meyering  <jim@meyering.net>
56006
56007         This file could end up with a definition for a function
56008         named __strndup, rather than rpl_strndup on a system with
56009         incomplete weak_alias support.
56010         * lib/strndup.c (strndup): Rename from __strndup.
56011         Remove #defines that used to map __strndup to strndup.
56012         Don't use K&R prototypes.
56013         Remove LIBC-related code, since this file is not sync'd with glibc.
56014         * lib/strndup.h: Revamp, accordingly.
56015         * m4/strndup.m4: Modernize.
56016
56017 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
56018
56019         * modules/savewd (Depends-on): Add 'raise'.
56020         * lib/savewd.c: Include <signal.h>, for 'raise'.
56021
56022 2006-09-26  Jim Meyering  <jim@meyering.net>
56023
56024         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
56025         when we detect Darwin 8.7.0's acl_get_file bug.
56026         Rearrange to perform the new (below) run-test while $LIBS
56027         contains any acl-related library.  Set USE_ACL at the end.
56028         (gl_ACL_GET_FILE): New function.
56029
56030 2006-09-26  Eric Blake  <ebb9@byu.net>
56031
56032         * lib/verror.c: Include <config.h> unconditionally.
56033
56034 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
56035
56036         * modules/clock-time (Maintainer): Add self.
56037         * modules/getlogin_r (Depends-on): Add extensions.
56038
56039 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56040
56041         * modules/clock-time: New module.
56042         * modules/nanosleep (Depends-on): Add clock-time.
56043         * modules/gethrxtime (Depends-on): Likewise.
56044         * modules/gettime (Depends-on): Likewise.
56045         * modules/settime (Depends-on): Likewise.
56046
56047         * modules/fts-lgpl: Depend on openat.
56048         * modules/mkancesdirs: Depend on savewd.
56049         * modules/mkdir-p: Likewise.
56050
56051 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56052
56053         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
56054
56055         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
56056         `gl_have_arbitrary_file_name_length_limit' to
56057         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
56058         actually works between configure runs.
56059
56060 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56061             Bruno Haible  <bruno@clisp.org>
56062
56063         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
56064
56065 2006-09-25  Jim Meyering  <jim@meyering.net>
56066
56067         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
56068         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
56069
56070 2006-09-25  Eric Blake  <ebb9@byu.net>
56071
56072         * gnulib-tool (func_import, func_create_testdir): Fix typos in
56073         exec's in 2006-09-18 patch when shuffling fds.
56074
56075 2006-09-25  Bruno Haible  <bruno@clisp.org>
56076
56077         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
56078         Reported by Jim Meyering.
56079
56080 2006-09-24  Jim Meyering  <jim@meyering.net>
56081
56082         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
56083         compare a pointer against a literal "0".  That caused failures with
56084         at least HP-UX's hpcc.
56085
56086 2006-09-22  Simon Josefsson  <jas@extundo.com>
56087
56088         * modules/gc-sha1:
56089         * modules/gc-md4:
56090         * modules/gc-hmac-sha1:
56091         * modules/gc-hmac-md5:
56092         * modules/gc-des:
56093         * modules/gc-arcfour: Distribute more files.
56094
56095 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56096
56097         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
56098         (gl_linked_iterator_from_to): Initialize struct completely.
56099         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
56100         (gl_tree_iterator_from_to): Likewise
56101         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
56102         * lib/gl_array_list.c [lint] (gl_array_iterator)
56103         (gl_array_iterator_from_to): Likewise.
56104         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
56105         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
56106         (gl_carray_iterator_from_to): Likewise.
56107
56108         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
56109         * lib/md4.c (md4_process_block): Remove unused variable.
56110         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
56111         parentheses for clarity.
56112
56113 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56114
56115         * modules/bison-i18n (Depends-on): Add gettext.
56116
56117 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56118
56119         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
56120         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
56121         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
56122         also add missing comma that caused broken test.
56123         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
56124         stdlib.h, for `abort'.
56125         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
56126         variables.
56127         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
56128         include unistd.h if present, for `rmdir'.
56129         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
56130         variables.
56131         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
56132         in the process include standard headers for prototypes.
56133         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
56134         gets declared on GNU/Linux.
56135         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
56136         unistd.h, for `rmdir'.
56137         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
56138
56139         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
56140         always true.
56141         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
56142
56143         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
56144
56145 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56146
56147         * gnulib-tool (func_version): Create output all at once.  This
56148         may help avoid triggering unnecessary SIGPIPEs, and at any
56149         rate it doesn't hurt.
56150
56151 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56152             Bruno Haible  <bruno@clisp.org>
56153
56154         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
56155         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
56156         * m4/signed.m4 (bh_C_SIGNED): Likewise.
56157
56158         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
56159         (gl_FUNC_VASPRINTF): Invoke it.
56160
56161 2006-09-22  Bruno Haible  <bruno@clisp.org>
56162
56163         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
56164         getloadavg.c as first argument.
56165
56166 2006-09-22  Bruno Haible  <bruno@clisp.org>
56167
56168         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
56169         at the beginning of the gl_INIT macro.
56170         * modules/getloadavg (configure.ac): Pass $gl_source_base to
56171         gl_GETLOADAVG.
56172
56173 2006-09-22  Bruno Haible  <bruno@clisp.org>
56174
56175         * gnulib-tool (func_create_megatestdir): Don't include the config-h
56176         module.
56177         Suggested by Ralf Wildenhues.
56178
56179 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
56180
56181         Import this patch from libc:
56182
56183         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
56184
56185         * lib/regex_internal.c (re_string_reconstruct): Handle
56186         offset < pstr->valid_raw_len && pstr->offsets_needed case.
56187         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
56188         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
56189         re_string_context_at.
56190
56191         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
56192         now requires it.
56193         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
56194         gl_REGEX now does it for us.
56195         (gl_REGEX): Add test taken from
56196         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
56197
56198         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
56199         Check that large offsets work.  Modernize Autoconf usages.
56200         Prefer "yes" to mean a good thing rather than a bad.
56201         Don't put "#define mkstemp" in config.h, as this might interfere
56202         with standard system headers that "#define mkstemp mkstemp64".
56203
56204         * modules/mkstemp (Depends-on): Add extensions, so that
56205         mkstemp is visible on some platforms.
56206         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
56207         (Include): Change to "mkstemp.h" from <stdlib.h>.
56208         (Files): Add mkstemp.h.
56209
56210         * lib/mkstemp.h: New file, since some standard headers
56211         #define mkstemp.
56212         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
56213         Include "mkstemp.h".
56214         Make the _LIBC code resemble glibc original more,
56215         e.g., use K&R style.
56216         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
56217         (mkstemp): Remove, since mkstemp.h does this for us.
56218         * lib/stdlib--.h: Include mkstemp.h.
56219
56220         Import this patch from libc:
56221
56222         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
56223
56224         * lib/tempname.c (__gen_tempname): Change attempts_min
56225         into a macro.  Use preprocessor to decide how to initialize
56226         attempts [Coverity CID 67].
56227
56228 2006-09-20  Bruno Haible  <bruno@clisp.org>
56229
56230         * lib/mkdtemp.c: Import from libc.
56231         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
56232                 * sysdeps/posix/tempname.c (__gen_tempname): Change
56233                 attempts_min into a macro.  Use preprocessor to decide how to
56234                 initialize attempts [Coverity CID 67].
56235         2001-11-27  Paul Eggert  <eggert@twinsun.com>
56236                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
56237                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
56238
56239 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56240
56241         * gnulib-tool (func_exit): New function, to allow to pass the
56242         exit status portably through the trap.  Use everywhere.
56243         (--help, --version): Signal a write error.
56244         (trap): catch SIGPIPE, for write errors.
56245         Exit at the end of the trap, with the correct exit status.
56246
56247 2006-09-19  Karl Berry  <karl@gnu.org>
56248
56249         * doc/gnulib.texi: note about the license texinfo files.
56250
56251 2006-09-19  Eric Blake  <ebb9@byu.net>
56252
56253         * gnulib-tool: Avoid space-tab.
56254
56255 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
56256
56257         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
56258         that prevented coreutils 6.1 from building.  Problem reported
56259         by Petter Reinholdtsen.
56260
56261 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
56262
56263         * gnulib-tool (avoidlist): Fix typo that broke options like
56264         --avoid=lock that are used by coreutils bootstrap.
56265
56266 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
56267
56268         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
56269         more systematically.
56270
56271 2006-09-18  Jim Meyering  <jim@meyering.net>
56272
56273         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
56274
56275 2006-09-18  Bruno Haible  <bruno@clisp.org>
56276
56277         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
56278
56279 2006-09-18  Bruno Haible  <bruno@clisp.org>
56280
56281         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
56282         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
56283         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
56284         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
56285         * m4/gettext.m4: Require autoconf >= 2.52.
56286         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
56287         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
56288         of gl_cv_header_inttypes_h.
56289
56290 2006-09-18  Bruno Haible  <bruno@clisp.org>
56291
56292         * lib/javaversion.c: Include configmake.h.
56293
56294 2006-09-18  Bruno Haible  <bruno@clisp.org>
56295
56296         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
56297         avoid that the while loops be executed in a subshell.
56298
56299 2006-09-18  Bruno Haible  <bruno@clisp.org>
56300
56301         * MODULES.html.sh (func_module): Break long lines.
56302         Suggested by Bruce Korb <bkorb@gnu.org>.
56303
56304 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56305
56306         Speed up by a factor of 1.12.
56307         * gnulib-tool (nl): New variable.
56308         (func_import): Rewrite include directive extraction to only read each
56309         directive once.
56310
56311 2006-09-17  Bruno Haible  <bruno@clisp.org>
56312
56313         * modules/javaversion (Makefile.am): Remove DEFS setting.
56314         (Depends-on): Add configmake, for PKGDATADIR definition.
56315
56316 2006-09-17  Bruno Haible  <bruno@clisp.org>
56317
56318         * gnulib-tool (func_create_testdir): Rewrite all files at once.
56319
56320 2006-09-17  Bruno Haible  <bruno@clisp.org>
56321
56322         * gnulib-tool (func_append): New function, stolen from libtool.m4.
56323         (func_modules_transitive_closure, func_modules_add_dummy,
56324         func_modules_to_filelist, func_import, func_create_testdir,
56325         func_create_megatestdir, ...): Use it wherever possible.
56326         Suggested by Ralf Wildenhues.
56327
56328 2006-09-16  Karl Berry  <karl@gnu.org>
56329
56330         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
56331         to avoid sectioning errors.
56332         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
56333         [ifinfo]: blank line after @center-ed titles.
56334         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
56335         Spell FSF address consistently with others.
56336         (These changes approved by rms.)
56337
56338 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56339
56340         Speed up by a factor of 1.61.
56341         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
56342         already checked module names again.
56343
56344 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56345
56346         Speed up by a factor of 1.13.
56347         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
56348         for new_files, and the input to func_add_or_update.
56349
56350 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56351
56352         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
56353         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
56354
56355 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56356
56357         * modules/mkancesdirs (Depends-on): Add fcntl.
56358         * modules/savewd: New file.
56359         * MODULES.html.sh (File system functions): Add savewd.
56360
56361         * modules/configmake (Makefile.am): Add support for the
56362         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
56363
56364 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56365
56366         * m4/savewd.m4: New file.
56367
56368 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56369
56370         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
56371         (dirchownmod): New arg FD.  All callers changed.
56372         Use FD rather than opening the directory ourself, as opening is
56373         now the caller's responsibility.
56374         * lib/dirchownmod.h: Likewise.
56375         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
56376         hosts that require <sys/types.h> before <sys/stat.h>.  Include
56377         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
56378         (test_dir): Remove.
56379         (mkancesdirs): Return length of prefix of FILE that has already
56380         been made, or -2 if there is a child doing the work.  Redo
56381         algorithm so that it is O(N) rather than O(N**2).  Optimize away
56382         ".", and treat ".." specially since it might stray back into
56383         already-created areas.  Use a subprocess if necessary.  New arg
56384         WD; all users changed.  MAKE_DIR function should now return 1
56385         if it creates a directory that is not readable.  Return -2 if
56386         a child process is spun off.
56387         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
56388         Adjust signature to match code.
56389         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
56390         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
56391         all users changed.
56392         * lib/savewd.c, lib/savewd.h: New files.
56393
56394 2006-09-15  Jim Meyering  <jim@meyering.net>
56395
56396         * modules/rename-dest-slash: New module.
56397         * MODULES.html.sh (posix_compat): Add it here.
56398
56399         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
56400
56401 2006-09-15  Jim Meyering  <jim@meyering.net>
56402
56403         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
56404         file.
56405
56406         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
56407
56408 2006-09-15  Jim Meyering  <jim@meyering.net>
56409
56410         * lib/rename-dest-slash.c (has_trailing_slash): Use
56411         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
56412         (rpl_rename_dest_slash): Perform the cheaper trailing slash
56413         test before testing whether SRC is a directory.
56414         Suggestions from Bruno Haible.
56415
56416         Avoid a warning about an unused variable.
56417         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
56418         into the #ifdef block where it's used.
56419
56420         * lib/rename-dest-slash.c: New file.
56421
56422 2006-09-14  Bruno Haible  <bruno@clisp.org>
56423
56424         * lib/allocsa.c: Include <config.h> unconditionally.
56425         * lib/asnprintf.c: Likewise.
56426         * lib/asprintf.c: Likewise.
56427         * lib/c-strcasecmp.c: Likewise.
56428         * lib/c-strcasestr.c: Likewise.
56429         * lib/c-strncasecmp.c: Likewise.
56430         * lib/c-strstr.c: Likewise.
56431         * lib/classpath.c: Likewise.
56432         * lib/clean-temp.c: Likewise.
56433         * lib/concatpath.c: Likewise.
56434         * lib/copy-file.c: Likewise.
56435         * lib/csharpcomp.c: Likewise.
56436         * lib/csharpexec.c: Likewise.
56437         * lib/execute.c: Likewise.
56438         * lib/fatal-signal.c: Likewise.
56439         * lib/findprog.c: Likewise.
56440         * lib/fwriteerror.c: Likewise.
56441         * lib/gl_array_list.c: Likewise.
56442         * lib/gl_array_oset.c: Likewise.
56443         * lib/gl_avltree_list.c: Likewise.
56444         * lib/gl_avltree_oset.c: Likewise.
56445         * lib/gl_avltreehash_list.c: Likewise.
56446         * lib/gl_carray_list.c: Likewise.
56447         * lib/gl_linked_list.c: Likewise.
56448         * lib/gl_linkedhash_list.c: Likewise.
56449         * lib/gl_list.c: Likewise.
56450         * lib/gl_oset.c: Likewise.
56451         * lib/gl_rbtree_list.c: Likewise.
56452         * lib/gl_rbtree_oset.c: Likewise.
56453         * lib/gl_rbtreehash_list.c: Likewise.
56454         * lib/imaxabs.c: Likewise.
56455         * lib/imaxdiv.c: Likewise.
56456         * lib/javacomp.c: Likewise.
56457         * lib/javaexec.c: Likewise.
56458         * lib/javaversion.c: Likewise.
56459         * lib/linebreak.c: Likewise.
56460         * lib/localcharset.c: Likewise.
56461         * lib/lock.c: Likewise.
56462         * lib/mbchar.c: Likewise.
56463         * lib/mbswidth.c: Likewise.
56464         * lib/mkdtemp.c: Likewise.
56465         * lib/pipe.c: Likewise.
56466         * lib/printf-args.c: Likewise.
56467         * lib/printf-parse.c: Likewise.
56468         * lib/progname.c: Likewise.
56469         * lib/progreloc.c: Likewise.
56470         * lib/readlink.c: Likewise.
56471         * lib/sh-quote.c: Likewise.
56472         * lib/stpcpy.c: Likewise.
56473         * lib/stpncpy.c: Likewise.
56474         * lib/strcasecmp.c: Likewise.
56475         * lib/strcasestr.c: Likewise.
56476         * lib/strcspn.c: Likewise.
56477         * lib/striconv.c: Likewise.
56478         * lib/strncasecmp.c: Likewise.
56479         * lib/strnlen1.c: Likewise.
56480         * lib/strstr.c: Likewise.
56481         * lib/strtok_r.c: Likewise.
56482         * lib/tls.c: Likewise.
56483         * lib/tmpdir.c: Likewise.
56484         * lib/unicodeio.c: Likewise.
56485         * lib/unsetenv.c: Likewise.
56486         * lib/vasnprintf.c: Likewise.
56487         * lib/vasprintf.c: Likewise.
56488         * lib/wait-process.c: Likewise.
56489         * lib/xallocsa.c: Likewise.
56490         * lib/xsetenv.c: Likewise.
56491         * lib/xstriconv.c: Likewise.
56492
56493 2006-09-13  Simon Josefsson  <jas@extundo.com>
56494
56495         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
56496         that internally, suggested by Ralf Wildenhues
56497         <Ralf.Wildenhues@gmx.de>.
56498
56499 2006-09-13  Simon Josefsson  <jas@extundo.com>
56500
56501         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
56502         @LIBOBJS@.
56503         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56504
56505 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
56506
56507         * lib/_fpending.c: Include <config.h> unconditionally, since we no
56508         longer worry about uses that don't define HAVE_CONFIG_H.
56509         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
56510         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
56511         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
56512         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
56513         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
56514         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
56515         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
56516         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
56517         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
56518         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
56519         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
56520         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
56521         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
56522         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
56523         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
56524         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
56525         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
56526         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
56527         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
56528         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
56529         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
56530         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
56531         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
56532         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
56533         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
56534         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
56535         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
56536         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
56537         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
56538         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
56539         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
56540         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
56541         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
56542         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
56543         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
56544         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
56545         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
56546         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
56547         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
56548         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
56549         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
56550         Likewise.
56551
56552 2006-09-13  Eric Blake  <ebb9@byu.net>
56553
56554         * lib/getopt.c: Fix typo in last commit.
56555
56556 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56557
56558         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
56559         dgettext.
56560
56561 2006-09-12  Jim Meyering  <jim@meyering.net>
56562
56563         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
56564         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
56565         Reported by Nelson H. F. Beebe.
56566
56567 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56568
56569         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
56570         program_invocation_name and program_invocation_short_name are
56571         initialized.
56572         * lib/argp-namefrob.h: Move declarations of program_invocation_name
56573         and program_invocation_short_name to argp.h, so they are visible
56574         to user programs.
56575         * lib/argp.h: Likewise
56576
56577 2006-09-10  Bruno Haible  <bruno@clisp.org>
56578
56579         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
56580         m4/inttypes_h.m4, m4/uintmax_t.m4.
56581
56582 2006-09-10  Bruno Haible  <bruno@clisp.org>
56583
56584         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
56585         gl_AC_TYPE_UINTMAX_T.
56586
56587 2006-09-10  Bruno Haible  <bruno@clisp.org>
56588
56589         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
56590
56591 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56592
56593         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
56594         convention.  Text proposed by Bruno Haible.
56595         (struct argp_option): Document the use of N_() wrappers.
56596
56597         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
56598         '\v', and translate the two parts separately, instead of feeding
56599         the whole string to gettext.  This allows to exclude
56600         '\v' from the strings visible to the translator by writing doc
56601         strings as N_("..") "\v" N_("..").
56602
56603 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
56604
56605         * config/srclist.txt: Undo latest change; the bug was fixed.
56606
56607 2006-09-09  Bruno Haible  <bruno@clisp.org>
56608
56609         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
56610         assignments if building a library without libtool.
56611         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
56612         in func_emit_lib_Makefile_am.
56613         (func_import): When building a static library libfoo.a, arrange to
56614         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
56615         (func_create_testdir): Likewise.
56616         * modules/gc (configure.ac, Makefile.am): If building statically,
56617         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
56618         * modules/iconvme (configure.ac, Makefile.am): Likewise.
56619         * modules/striconv (configure.ac, Makefile.am): Likewise.
56620         Based on a suggestion by Ralf Wildenhues.
56621
56622 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56623
56624         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
56625         Check for unistd.h too, since Autoconf doesn't assume POSIX.
56626         Also:
56627
56628         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56629         Add year_2050_test to catch glibc bug 2821
56630         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
56631
56632         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56633         Prefer #ifdef to #if.
56634
56635         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
56636         Return from 'main' instead of calling 'exit'.
56637
56638 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56639
56640         * lib/mktime.c (guess_time_tm): Fix bug where mktime
56641         returned the maximum time_t value rather than (time_t) -1.
56642         Problem originally reported by William Bardwell
56643         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
56644
56645         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
56646         Moved to here ...
56647         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
56648         ... from here.
56649
56650 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56651
56652         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
56653         2821 is fixed.
56654
56655 2006-09-08  Jim Meyering  <jim@meyering.net>
56656
56657         Don't make generated files read-only.  That would bother too many
56658         people.  However, do retain the ability to work when targets are
56659         read-only: remove the destination and temporary files before writing
56660         them (when generated via sed or echo), or by using the -f option for
56661         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
56662         * modules/alloca-opt, modules/argz, modules/arpa_inet:
56663         * modules/byteswap, modules/configmake, modules/fcntl:
56664         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
56665         * modules/localcharset, modules/netinet_in, modules/poll:
56666         * modules/stdbool, modules/stdint, modules/sys_select:
56667         * modules/sys_socket, modules/sys_stat, modules/sysexits:
56668
56669 2006-09-08  Jim Meyering  <jim@meyering.net>
56670
56671         Avoid new build failure on FreeBSD 6.0.
56672         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
56673         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
56674         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
56675
56676 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56677
56678         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
56679
56680 2006-09-07  Jim Meyering  <jim@meyering.net>
56681
56682         Fix global typo in last change: use chmod u-w, not chmod u-x.
56683         Spotted by Paul Eggert and Bruce Korb.
56684         * modules/alloca-opt, modules/argz, modules/arpa_inet:
56685         * modules/byteswap, modules/configmake, modules/fcntl:
56686         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
56687         * modules/localcharset, modules/netinet_in, modules/poll:
56688         * modules/stdbool, modules/stdint, modules/sys_select:
56689         * modules/sys_socket, modules/sys_stat, modules/sysexits:
56690
56691 2006-09-06  Jim Meyering  <jim@meyering.net>
56692
56693         Make generated files be read-only.
56694         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
56695         Ensure that each generated file is now read-only.
56696         * modules/argz: Likewise.
56697         * modules/arpa_inet: Likewise.
56698         * modules/byteswap: Likewise.
56699         * modules/configmake: Likewise.
56700         * modules/fcntl: Likewise.
56701         * modules/fnmatch: Likewise.
56702         * modules/getopt: Likewise.
56703         * modules/glob: Likewise.
56704         * modules/inttypes: Likewise.
56705         * modules/netinet_in: Likewise.
56706         * modules/poll: Likewise.
56707         * modules/stdbool: Likewise.
56708         * modules/stdint: Likewise.
56709         * modules/sys_select: Likewise.
56710         * modules/sys_socket: Likewise.
56711         * modules/sys_stat: Likewise.
56712         * modules/sysexits: Likewise.
56713         * modules/localcharset: Same as above, but continue using temporary
56714         file named "t-$@" (why different?) rather than the "$@-t" used
56715         everywhere else.
56716
56717         * modules/sysexits (Makefile.am): Replace literal occurrences
56718         of "sysexit.h" more readable, and more consistent, "$@".
56719
56720 2006-09-06  Bruno Haible  <bruno@clisp.org>
56721
56722         * modules/striconv: New file.
56723         * modules/xstriconv: New file.
56724         * MODULES.html.sh (Internationalization functions): Add striconv,
56725         xstriconv.
56726
56727 2006-09-06  Bruno Haible  <bruno@clisp.org>
56728
56729         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
56730         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
56731         not using libtool correctly.
56732
56733 2006-09-06  Bruno Haible  <bruno@clisp.org>
56734
56735         * lib/striconv.h: New file.
56736         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
56737         iconvstring.c.
56738         * lib/xstriconv.h: New file.
56739         * lib/xstriconv.c: New file.
56740
56741 2006-09-06  Bruno Haible  <bruno@clisp.org>
56742
56743         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56744         lib_..._LDFLAGS.
56745
56746 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56747
56748         * lib/argz_.h: Sync from Libtool.
56749
56750         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
56751                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
56752
56753         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
56754
56755 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
56756
56757         * modules/trim: New file.
56758
56759 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
56760
56761         * lib/trim.h: New file.
56762         * lib/trim.c: New file.
56763
56764 2006-09-05  Bruno Haible  <bruno@clisp.org>
56765
56766         * MODULES.html.sh (String handling): Add trim.
56767
56768 2006-09-04  Karl Berry  <karl@gnu.org>
56769
56770         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
56771         until next release.
56772
56773 2006-09-03  Bruno Haible  <bruno@clisp.org>
56774
56775         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
56776         correctly.
56777
56778 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56779
56780         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
56781         not gl_GETLOADAVG.  Omit unneeded semicolons.
56782         Problems reported by Ralf Wildenhues in
56783         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
56784         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
56785         at the end, which is the usual gnulib style.
56786
56787         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
56788         of doing all the work ourselves.
56789         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
56790         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
56791
56792 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56793
56794         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
56795         Problem reported by Ralf Wildenhues in
56796         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
56797
56798         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
56799         HAVE_STRUCT_STATFS_F_FSTYPENAME.
56800
56801 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56802
56803         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
56804         yesterday's patch by changing test -n to test -z.
56805
56806 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56807
56808         * modules/getloadavg (Files): Add m4/getloadavg.m4.
56809         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
56810         the former is now obsolescent.
56811
56812         * modules/chdir-long (Depends-on): Add fcntl.
56813
56814 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56815
56816         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
56817         obsolescent, and programs should use gnulib instead.
56818         * m4/getloadavg.m4: New file, with contents taken from Autoconf
56819         but with prefixes changed.
56820
56821 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56822
56823         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
56824         or stdbool.h, because they might not exist while configuring.
56825
56826         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
56827         Don't include unistd.h or limits.h; not needed, since chdir-long.h
56828         does that for us.
56829         (O_DIRECTORY): Remove.
56830
56831 2006-08-31  Eric Blake  <ebb9@byu.net>
56832
56833         * gnulib-tool: Don't let emacs change spaces to TAB.
56834
56835 2006-08-31  Bruno Haible  <bruno@clisp.org>
56836
56837         * gnulib-tool: When calling func_import more than once, do it in a
56838         subshell.
56839         Reported by Eric Blake <ebb9@byu.net>.
56840
56841 2006-08-31  Bruno Haible  <bruno@clisp.org>
56842
56843         * gnulib-tool (nl): Remove variable.
56844         (sed_transform_lib_file): Use more robust test for config-h module.
56845         (func_import): Fix typo in 2006-08-25 patch.
56846
56847 2006-08-31  Bruno Haible  <bruno@clisp.org>
56848
56849         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
56850         specified, augment Makefile.am variables instead of assigning them.
56851
56852 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
56853
56854         Work around a bug in both the Linux and SunOS 64-bit kernels:
56855         nanosleep mishandles sleeps for longer than 2**31 seconds.
56856         Problem reported by Frank v Waveren in
56857         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
56858         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
56859         Check for nanosleep bug.
56860         (LIB_NANOSLEEP): Append clock_gettime library if needed.
56861
56862 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
56863
56864         Work around a bug in both the Linux and SunOS 64-bit kernels:
56865         nanosleep mishandles sleeps for longer than 2**31 seconds.
56866         Problem reported by Frank v Waveren in
56867         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
56868         * lib/nanosleep.c (BILLION): New constant.
56869         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
56870         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
56871         implementation.
56872
56873 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
56874
56875         * modules/nanosleep (Depends-on): Add gettime.
56876
56877 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
56878         and Simon Josefsson  <jas@extundo.com>
56879         and Oskar Liljeblad  <oskar@osk.mine.nu>
56880
56881         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
56882         * gnulib-tool (func_import): New license type 'unmodifiable license
56883         text'.
56884         * modules/fdl: Use it.  Longer description.
56885         * module/gpl, module/lgpl: New files.
56886
56887 2006-08-30  Jim Meyering  <jim@meyering.net>
56888
56889         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
56890         shadowing the parameter.
56891
56892 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56893
56894         Sync from Libtool:
56895
56896         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56897
56898         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
56899         sharing with gnulib.  Report by Eric Blake.
56900
56901 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
56902
56903         * modules/isapipe: New file.
56904         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
56905
56906 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
56907
56908         * modules/configmake (Makefile.am): Add a comment, and omit
56909         the CONFIGMAKE_ prefix from generated macro names.  Suggested
56910         by Bruno Haible.
56911
56912 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
56913
56914         * m4/isapipe.m4: New file.
56915
56916 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
56917
56918         * lib/isapipe.c, lib/isapipe.h: New files.
56919
56920 2006-08-29  Jim Meyering  <jim@meyering.net>
56921
56922         * modules/configmake (Makefile.am): Make configmake.h depend on
56923         Makefile.  Otherwise, a stale configmake.h could hang around.
56924
56925 2006-08-29  Eric Blake  <ebb9@byu.net>
56926
56927         * lib/error.c (error_at_line, print_errno_message): Match libc, after
56928         resolution of upstream bug 3044.
56929
56930 2006-08-29  Bruno Haible  <bruno@clisp.org>
56931
56932         * modules/localcharset (Depends-on): Add configmake.
56933         (Makefile.am): Remove setting of LIBDIR through DEFS.
56934
56935 2006-08-29  Bruno Haible  <bruno@clisp.org>
56936
56937         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
56938         defined.
56939
56940 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
56941
56942         * modules/fcntl: New file.
56943         * modules/chdir-safer (Depends-on): Add fcntl.
56944         * modules/fts: Likewise.
56945         * modules/mkdir-p: Likewise.
56946
56947         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
56948         This undoes the most recent change, since we're now addressing the
56949         problem in a different way.
56950
56951         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
56952         into output, since the output might be called Makefile.am even
56953         if $makefile_name is something different.
56954         (func_import): Use $makefile_am rather than
56955         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
56956         empty.
56957
56958         * modules/inttypes (Files): Add m4/inttypes-h.m4.
56959
56960 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
56961
56962         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
56963         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
56964         recent change to stdint.m4, since we're now addressing the problem in a
56965         different way.
56966
56967 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
56968
56969         * m4/fcntl_h.m4: New file.
56970
56971 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
56972
56973         * lib/fcntl_.h: New file.
56974         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
56975         the fcntl module.
56976         * lib/dirchownmod.c: Likewise.
56977         * lib/fts.c: Likewise.
56978
56979         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
56980         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
56981         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
56982         just before including <inttypes.h>, to avoid circular inclusion.
56983
56984 2006-08-28  Jim Meyering  <jim@meyering.net>
56985
56986         * doc/visibility.texi: Actually read and correct the grammar of the
56987         sentence affected by yesterday's change.
56988
56989 2006-08-28  Eric Blake  <ebb9@byu.net>
56990
56991         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
56992         needs wrapper.
56993
56994 2006-08-28  Eric Blake  <ebb9@byu.net>
56995
56996         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
56997
56998 2006-08-28  Eric Blake  <ebb9@byu.net>
56999
57000         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
57001
57002 2006-08-28  Bruno Haible  <bruno@clisp.org>
57003
57004         * modules/c-strstr: New file, from GNU gettext.
57005         * MODULES.html.sh (String handling): Add c-strstr.
57006
57007 2006-08-28  Bruno Haible  <bruno@clisp.org>
57008
57009         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
57010         macros.
57011         Reported by Eric Blake.
57012
57013 2006-08-28  Bruno Haible  <bruno@clisp.org>
57014
57015         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
57016         (VASNPRINTF): Return a string of length > INT_MAX without failing.
57017         * lib/vasprintf.c: Include errno.h, limits.h.
57018         (EOVERFLOW): New fallback definition.
57019         (vasprintf): Test here whether the string length is > INT_MAX.
57020         * lib/vsnprintf.c: Include errno.h, limits.h.
57021         (EOVERFLOW): New fallback definition.
57022         (vsnprintf): Fix bug when generated string was too long for the buffer.
57023         Test here whether the string length is > INT_MAX.
57024
57025 2006-08-28  Bruno Haible  <bruno@clisp.org>
57026
57027         * lib/inttypes_.h (SCNX*): Remove definitions.
57028         Reported by Eric Blake.
57029
57030 2006-08-28  Bruno Haible  <bruno@clisp.org>
57031
57032         * lib/c-strstr.h: New file, from GNU gettext.
57033         * lib/c-strstr.c: New file, from GNU gettext.
57034
57035 2006-08-28  Bruno Haible  <bruno@clisp.org>
57036
57037         * gnulib-tool: Reorder some statements.
57038
57039 2006-08-28  Bruno Haible  <bruno@clisp.org>
57040
57041         * gnulib-tool: New option --makefile-name.
57042         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
57043         $makefile_name.
57044         (func_import): Write $makefile_name to the cache file, and read it from
57045         there unless explicitly specified. Use $makefile_name as file name
57046         instead of Makefile.am. Adjust the recommendations accordingly.
57047
57048 2006-08-28  Bruno Haible  <bruno@clisp.org>
57049
57050         * gnulib-tool (func_verify_module): Check against misapplying patch.
57051
57052 2006-08-28  Bruno Haible  <bruno@clisp.org>
57053
57054         * gnulib-tool (func_relativize, func_relconcat): New functions.
57055         Give an error if --local-dir is given with --update.
57056         Remove trailing slashes from $local_gnulib_dir.
57057         (func_import): Store the relativized $local_gnulib_dir in
57058         gnulib-cache.m4, and read it from there if not specified explicitly.
57059
57060 2006-08-28  Bruno Haible  <bruno@clisp.org>
57061
57062         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
57063         is the current directory. Respect also $local_gnulib_dir.
57064
57065 2006-08-28  Bruno Haible  <bruno@clisp.org>
57066             Simon Josefsson  <jas@extundo.com>
57067
57068         BeOS portability.
57069         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
57070
57071 2006-08-27  Jim Meyering  <jim@meyering.net>
57072
57073         * doc/visibility.texi: Remove duplicate word: "pointer".
57074
57075 2006-08-26  Bruno Haible  <bruno@clisp.org>
57076
57077         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
57078         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
57079         (Makefile.am): Create inttypes.h from inttypes_.h.
57080         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
57081
57082         * modules/imaxabs: New file.
57083
57084         * modules/imaxdiv: New file.
57085
57086 2006-08-26  Bruno Haible  <bruno@clisp.org>
57087
57088         * m4/inttypes.m4: New file.
57089         * m4/_inttypes_h.m4: Remove file.
57090         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
57091         PRI_MACROS_BROKEN.
57092         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
57093
57094         * m4/imaxabs.m4: New file.
57095
57096         * m4/imaxdiv.m4: New file.
57097
57098 2006-08-26  Bruno Haible  <bruno@clisp.org>
57099
57100         * lib/inttypes_.h: New file.
57101         * lib/inttypes.h: Remove file.
57102         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
57103
57104         * lib/imaxabs.c: New file.
57105
57106         * lib/imaxdiv.c: New file.
57107
57108 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57109
57110         New config-h module, so that "make" output needn't be cluttered
57111         by -DHAVE_CONFIG_H.
57112         * MODULES.html.sh (Support for building libraries and executables):
57113         Add config-h.
57114         * modules/config-h: New file.
57115         * gnulib-tool (nl, sed_transform_lib_file): New vars.
57116         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
57117         the config-h module is used.
57118
57119         New configmake module, so that "make" output needn't be cluttered
57120         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
57121         * MODULES.html.sh (Support for building libraries and executables):
57122         Add configmake.
57123         * modules/configmake: New file.
57124
57125 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57126
57127         * m4/config-h.m4: New file.
57128
57129 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57130
57131         * config/srclist.txt: Add elisp-comp.
57132
57133 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57134
57135         * MODULES.html.sh (Support for building libraries and executables):
57136         Add elisp-comp.
57137         * build-aux/elisp-comp: New file.
57138         * modules/elisp-comp: New file.
57139
57140 2006-08-24  Bruno Haible  <bruno@clisp.org>
57141
57142         * gnulib-tool (func_create_testdir): Use non-default values of
57143         sourcebase and m4base.
57144
57145 2006-08-24  Bruno Haible  <bruno@clisp.org>
57146
57147         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
57148         HTML structure.
57149
57150 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57151
57152         * modules/openat (Depends-on): Add lchown.
57153
57154 2006-08-23  Bruno Haible  <bruno@clisp.org>
57155
57156         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
57157         of gl_LOCK_EARLY instead of gl_LOCK.
57158
57159 2006-08-23  Bruno Haible  <bruno@clisp.org>
57160
57161         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
57162         on OSF/1 to no.
57163         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
57164
57165 2006-08-23  Bruno Haible  <bruno@clisp.org>
57166
57167         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
57168         as unusable.
57169
57170         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
57171         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
57172         (gl_LOCK): New macro.
57173
57174 2006-08-22  Simon Josefsson  <jas@extundo.com>
57175
57176         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
57177         to md5 module.
57178
57179 2006-08-22  Simon Josefsson  <jas@extundo.com>
57180
57181         * MODULES.html.sh: Add "Support for maintaining and release
57182         projects".
57183
57184         * build-aux/gnupload: New file, from coreutils.
57185
57186 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
57187
57188         Avoid the need for AC_LIBSOURCES in m4 macros.
57189         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
57190         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
57191         * modules/check-version (EXTRA_DIST): Add check-version.h.
57192         * modules/crc (EXTRA_DIST): Add crc.h.
57193         * modules/des (EXTRA_DIST): Add des.h.
57194         * modules/gc (EXTRA_DIST): Add gc.h.
57195         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
57196         * modules/getline (EXTRA_DIST): Add getline.h.
57197         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
57198         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
57199         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
57200         * modules/md2 (EXTRA_DIST): Add md2.h.
57201         * modules/md4 (EXTRA_DIST): Add md4.h.
57202         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
57203         * modules/read-file (EXTRA_DIST): Add read-file.h.
57204         * modules/readline (EXTRA_DIST): Add readline.h.
57205         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
57206         rijndael-api-fst.h.
57207
57208 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
57209
57210         * m4/rijndael.m4 (gl_ARCFOUR):
57211         * m4/arctwo.m4 (gl_ARCTWO):
57212         * m4/check-version.m4 (gl_CHECK_VERSION):
57213         * m4/crc.m4 (gl_CRC):
57214         * m4/des.m4 (gl_DES):
57215         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
57216         * m4/gc.m4 (gl_GC):
57217         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
57218         * m4/getline.m4 (gl_FUNC_GETLINE):
57219         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
57220         * m4/hmac-md5.m4 (gl_HMAC_MD5):
57221         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
57222         * m4/md2.m4 (gl_MD2):
57223         * m4/md4.m4 (gl_MD4):
57224         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
57225         * m4/read-file.m4 (gl_FUNC_READ_FILE):
57226         * m4/readline.m4 (gl_FUNC_READLINE):
57227         * m4/rijndael.m4 (gl_RIJNDAEL):
57228         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
57229         to get the necessary .h files and whatnot.
57230
57231 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
57232
57233         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
57234         gnulib rather than the other way around.
57235         * config/srclistvars.sh (COREUTILS): Remove.
57236
57237 2006-08-22  Jim Meyering  <jim@meyering.net>
57238
57239         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
57240
57241         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
57242
57243 2006-08-22  Eric Blake  <ebb9@byu.net>
57244
57245         * modules/regexprops-generic: New file.
57246         * MODULES.html.sh (Support for building documentation): List it.
57247
57248 2006-08-22  Eric Blake  <ebb9@byu.net>
57249
57250         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
57251         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
57252         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
57253         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
57254
57255 2006-08-22  Bruno Haible  <bruno@clisp.org>
57256
57257         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
57258         and lib_LTLIBRARIES like the other lib_* variables.
57259
57260 2006-08-22  Bruno Haible  <bruno@clisp.org>
57261
57262         * build-aux/x-to-1.in: New file, from GNU gettext.
57263
57264 2006-08-22  Bruno Haible  <bruno@clisp.org>
57265
57266         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
57267         <utmpx.h> exists.
57268
57269 2006-08-22  Bruno Haible  <bruno@clisp.org>
57270
57271         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
57272         <utmpx.h> exists.
57273
57274 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
57275
57276         BeOS portability.
57277         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
57278         exist.
57279         Problem reported by Bruno Haible.
57280
57281 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
57282
57283         Avoid the need for AC_LIBSOURCES in m4 macros.
57284         * modules/acl (EXTRA_DIST): Add acl.h.
57285         * modules/argmatch (Files): Add m4/argmatch.m4.
57286         (configure.ac): Add gl_ARGMATCH.
57287         (EXTRA_DIST): Renamed from lib_SOURCES, for
57288         consistency with the other modules.  Remove argmatch.c.
57289         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
57290         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
57291         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
57292         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
57293         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
57294         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
57295         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
57296         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
57297         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
57298         * modules/closeout (EXTRA_DIST): Add closeout.h.
57299         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
57300         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
57301         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
57302         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
57303         dirname.h; remove basename.c and stripslash.c.
57304         * modules/exclude (EXTRA_DIST): Add exclude.h.
57305         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
57306         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
57307         * modules/file-type (EXTRA_DIST): Add file-type.h.
57308         * modules/filemode (EXTRA_DIST): Add filemode.h.
57309         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
57310         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
57311         * modules/fpending (EXTRA_DIST): Add __fpending.h.
57312         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
57313         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
57314         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
57315         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
57316         * modules/getdate (EXTRA_DIST): Add getdate.c.
57317         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
57318         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
57319         * modules/getpass (EXTRA_DIST): Add getpass.h.
57320         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
57321         * modules/group-member (EXTRA_DIST): Add group-member.h.
57322         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
57323         * modules/hash (EXTRA_DIST): Add hash.h.
57324         * modules/human (EXTRA_DIST): Add human.h.
57325         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
57326         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
57327         * modules/lchown (EXTRA_DIST): Add lchown.h.
57328         * modules/long-options (EXTRA_DIST): Add long-options.h.
57329         * modules/lstat (EXTRA_DIST): Add lstat.h.
57330         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
57331         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
57332         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
57333         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
57334         * modules/memxor (EXTRA_DIST): Add memxor.h.
57335         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
57336         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
57337         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
57338         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
57339         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
57340         * modules/physmem (EXTRA_DIST): Add physmem.h.
57341         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
57342         * modules/posixver (EXTRA_DIST): Add posixver.h.
57343         * modules/quote (EXTRA_DIST): Add quote.h.
57344         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
57345         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
57346         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
57347         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
57348         regex_internal.h regexec.c.
57349         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
57350         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
57351         * modules/same (EXTRA_DIST): Add same.h.
57352         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
57353         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
57354         * modules/savedir (EXTRA_DIST): Add savedir.h.
57355         * modules/sha1 (EXTRA_DIST): Add sha1.h.
57356         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
57357         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
57358         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
57359         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
57360         * modules/strdup (EXTRA_DIST): Add strdup.h.
57361         * modules/strftime (EXTRA_DIST): Add strftime.h.
57362         * modules/strndup (EXTRA_DIST): Add strndup.h.
57363         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
57364         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
57365         * modules/time_r (EXTRA_DIST): Add time_r.h.
57366         * modules/timespec (EXTRA_DIST): Add timespec.h.
57367         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
57368         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
57369         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
57370         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
57371         * modules/userspec (EXTRA_DIST): Add userspec.h.
57372         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
57373         * modules/utimens (EXTRA_DIST): Add utimens.h.
57374         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
57375         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
57376         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
57377         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
57378         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
57379         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
57380         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
57381         * modules/yesno (EXTRA_DIST): Add yesno.h.
57382
57383 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
57384
57385         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
57386
57387         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
57388         * m4/dev-ino.m4, same-inode.m4: Remove.
57389
57390         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
57391         * m4/acl.m4 (AC_FUNC_ACL):
57392         * m4/backupfile.m4 (gl_BACKUPFILE):
57393         * m4/c-strtod.m4 (gl_C99_STRTOLD):
57394         * m4/canon-host.m4 (gl_CANON_HOST):
57395         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
57396         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
57397         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
57398         * m4/cloexec.m4 (gl_CLOEXEC):
57399         * m4/close-stream.m4 (gl_CLOSE_STREAM):
57400         * m4/closeout.m4 (gl_CLOSEOUT):
57401         * m4/dirfd.m4 (gl_FUNC_DIRFD):
57402         * m4/dirname.m4 (gl_DIRNAME):
57403         * m4/exclude.m4 (gl_EXCLUDE):
57404         * m4/exitfail.m4 (gl_EXITFAIL):
57405         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
57406         * m4/file-type.m4 (gl_FILE_TYPE):
57407         * m4/filemode.m4 (gl_FILEMODE):
57408         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
57409         * m4/fpending.m4 (gl_FUNC_FPENDING):
57410         * m4/fprintftime.m4 (gl_FPRINTFTIME):
57411         * m4/fts.m4 (gl_FUNC_FTS):
57412         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
57413         * m4/getdate.m4 (gl_GETDATE):
57414         * m4/gethrxtime.m4 (gl_GETHRXTIME):
57415         * m4/getpagesize.m4 (gl_GETPAGESIZE):
57416         * m4/getpass.m4 (gl_FUNC_GETPASS):
57417         * m4/gettime.m4 (gl_GETTIME):
57418         * m4/getugroups.m4 (gl_GETUGROUPS):
57419         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
57420         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
57421         * m4/hard-locale.m4 (gl_HARD_LOCALE):
57422         * m4/hash.m4 (gl_HASH):
57423         * m4/idcache.m4 (gl_IDCACHE):
57424         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
57425         * m4/lchown.m4 (gl_FUNC_LCHOWN):
57426         * m4/long-options.m4 (gl_LONG_OPTIONS):
57427         * m4/lstat.m4 (gl_FUNC_LSTAT):
57428         * m4/md5.m4 (gl_MD5):
57429         * m4/memcasecmp.m4 (gl_MEMCASECMP):
57430         * m4/memcoll.m4 (gl_MEMCOLL):
57431         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
57432         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
57433         * m4/memxor.m4 (gl_MEMXOR):
57434         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
57435         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
57436         * m4/modechange.m4 (gl_MODECHANGE):
57437         * m4/mountlist.m4 (gl_MOUNTLIST):
57438         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57439         * m4/openat.m4 (gl_FUNC_OPENAT):
57440         * m4/pathmax.m4 (gl_PATHMAX):
57441         * m4/physmem.m4 (gl_PHYSMEM):
57442         * m4/posixtm.m4 (gl_POSIXTM):
57443         * m4/posixver.m4 (gl_POSIXVER):
57444         * m4/quote.m4 (gl_QUOTE):
57445         * m4/quotearg.m4 (gl_QUOTEARG):
57446         * m4/readtokens.m4 (gl_READTOKENS):
57447         * m4/readutmp.m4 (gl_READUTMP):
57448         * m4/regex.m4 (gl_REGEX):
57449         * m4/safe-read.m4 (gl_SAFE_READ):
57450         * m4/safe-write.m4 (gl_SAFE_WRITE):
57451         * m4/same.m4 (gl_SAME):
57452         * m4/save-cwd.m4 (gl_SAVE_CWD):
57453         * m4/savedir.m4 (gl_SAVEDIR):
57454         * m4/settime.m4 (gl_SETTIME):
57455         * m4/sha1.m4 (gl_SHA1):
57456         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
57457         * m4/stat-macros.m4 (gl_STAT_MACROS):
57458         * m4/stat-time.m4 (gl_STAT_TIME):
57459         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
57460         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
57461         * m4/strdup.m4 (gl_FUNC_STRDUP):
57462         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
57463         * m4/strndup.m4 (gl_FUNC_STRNDUP):
57464         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
57465         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
57466         * m4/time_r.m4 (gl_TIME_R):
57467         * m4/timespec.m4 (gl_TIMESPEC):
57468         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
57469         * m4/unlinkdir.m4 (gl_UNLINKDIR):
57470         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
57471         * m4/userspec.m4 (gl_USERSPEC):
57472         * m4/utimecmp.m4 (gl_UTIMECMP):
57473         * m4/utimens.m4 (gl_UTIMENS):
57474         * m4/xalloc.m4 (gl_XALLOC):
57475         * m4/xgetcwd.m4 (gl_XGETCWD):
57476         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
57477         * m4/xreadlink.m4 (gl_XREADLINK):
57478         * m4/xstrtod.m4 (gl_XSTRTOD):
57479         * m4/yesno.m4 (gl_YESNO):
57480         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
57481         to get the necessary .h files and whatnot.
57482
57483 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
57484             Bruno Haible  <bruno@clisp.org>
57485
57486         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
57487         /bin/sh understanding of '!' conditional negation.
57488
57489 2006-08-21  Jim Meyering  <jim@meyering.net>
57490
57491         * modules/openat (Depends-on): Really alphabetize.
57492
57493         * modules/acl (Depends-on): Add error and quote.
57494
57495         * check-module (find_included_lib_files): Add at-func.c to the
57496         ok-to-include-more-than-once white list.
57497
57498         * modules/openat (Depends-on): Add lstat.  Alphabetize.
57499
57500 2006-08-21  Bruno Haible  <bruno@clisp.org>
57501
57502         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57503         Emit a pkgdata_DATA variable only if some snippets add contents to it.
57504         Reported by Martin Lambers <marlam@marlam.de>.
57505
57506 2006-08-21  Bruno Haible  <bruno@clisp.org>
57507
57508         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
57509         specify an installation location, don't emit a noinst_LIBRARIES or
57510         noinst_LTLIBRARIES assignment.
57511
57512 2006-08-21  Bruno Haible  <bruno@clisp.org>
57513
57514         BeOS portability.
57515         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
57516         BeOS has mbrtowc() but no <wctype.h>.
57517
57518 2006-08-21  Bruno Haible  <bruno@clisp.org>
57519
57520         BeOS portability.
57521         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
57522         exist.
57523
57524 2006-08-21  Bruno Haible  <bruno@clisp.org>
57525
57526         BeOS portability.
57527         * lib/mbchar.h: Include <wctype.h> only if it exists.
57528
57529 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57530
57531         Remove files that are no longer needed by their respective modules.
57532         * m4/obstack.m4: Remove.
57533         * m4/strerror_r.m4: Remove.
57534         * m4/uint32_t.m4: Remove.
57535         * m4/uintptr_t.m4: Remove.
57536         * m4/ullong_max.m4: Remove.
57537         * m4/xstrtoimax.m4: Remove.
57538         * m4/xstrtoumax.m4: Remove.
57539
57540         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
57541         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
57542         dependencies now capture this.
57543
57544         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
57545         Do not use AC_LIBSOURCES, since gnulib modules now do this.
57546         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
57547         * m4/human.m4 (gl_HUMAN): Likewise.
57548         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
57549         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
57550
57551         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
57552
57553         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
57554         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
57555         stdint.
57556         * m4/human.m4 (gl_HUMAN): Likewise.
57557         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
57558         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
57559         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
57560         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
57561         * m4/xstrtol (gl_XSTRTOL): Likewise.
57562
57563         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
57564         AC_TYPE_LONG_LONG_INT.
57565         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
57566         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
57567         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
57568         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
57569
57570         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
57571         on stdbool.
57572
57573         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
57574         (gl_PREREQ_XSTRTOUL): Remove.
57575
57576         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
57577
57578         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
57579         mode.
57580
57581 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57582
57583         Add and change modules to make it easier for coreutils to use
57584         gnulib-tool.
57585         * modules/backupfile (Files): Remove m4/d-ino.m4.
57586         (Depends-on): Add d-ino.
57587         * modules/cycle-check (Depends-on): Add stdint.
57588         (lib_SOURCES): Add cycle-check.h.
57589         * modules/d-ino: New module.
57590         * modules/d-type: New module.
57591         * modules/error (Files): Remove m4/strerror_r.m4.
57592         * modules/filemode (Files): Add m4/st_dm_mode.m4.
57593         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
57594         m4/inttypes_h.m4, m4/uintmax_t.m4.
57595         (Depends-on): Add stdint.
57596         (lib_SOURCES): Add fsusage.h.
57597         * modules/getcwd (Files): Remove d-ino.m4.
57598         (Depends-on): Add d-ino.
57599         * modules/getndelim2 (Depends-on): Add stdint.
57600         * modules/glob (Files): Remove m4/d-type.m4.
57601         (Depends-on): Add d-type.
57602         * modules/host-os: New module.
57603         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
57604         m4/inttypes_h.m4, m4/uintmax_t.m4.
57605         * Depends-on: Add stdint.
57606         (lib_SOURCES): Add human.h.
57607         * modules/inttostr (Files): Remove m4/intmax_t.m4,
57608         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
57609         m4/uintmax_t.m4, m4/ulonglong.m4.
57610         (Depends-on): Add stdint.
57611         (EXTRA_DIST): Add inttostr.h.
57612         * modules/lchmod: New module.
57613         * modules/link-follow: New module.
57614         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
57615         (Depends-on): Add lchmod.
57616         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
57617         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
57618         (Depends-on): Add stdint.
57619         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
57620         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
57621         (Depends-on): Add stdint.
57622         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
57623         * modules/perl: New module.
57624         * modules/regex (Depends-on): Add stdint.
57625         * modules/rmdir-errno: New module.
57626         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
57627         m4/intmax_t.m4.
57628         (Depends-on): Add stdint.
57629         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
57630         m4/uintmax_t.m4.
57631         (Depends-on): Add stdint.
57632         * modules/unlink-busy: New module.
57633         * modules/utimecmp (Depends-on): Add stdint.
57634         * modules/uptime: New module.
57635         * modules/winsz-ioctl: New module.
57636         * modules/winsz-termios: New module.
57637         * modules/xnanosleep (Depends-on): Add nanosleep.
57638         * modules/ullong_max: Remove.
57639         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
57640         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
57641         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
57642         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
57643         (Depends-on): Add inttypes.
57644         (lib_SOURCES): Add xstrtol.h.
57645         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
57646         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
57647         * MODULES.html.sh: Move 'assert' into the assert section.
57648         Move 'dummy' into the linking section.
57649         Remove ullong_max.
57650         Add section for compatibility checks for POSIX:2001 functions,
57651         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
57652         winsz-ioctl, and winsz-termios into it.
57653         Add lchmod.
57654         Add top-level Misc section and put host-os, perl, and uptime
57655         into it.
57656
57657 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57658
57659         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
57660         now assume the stdint module.  Do not include inttypes.h.
57661         * lib/fsusage.h: Likewise.
57662         * lib/getndelim2.c: Likewise.
57663         * lib/human.h: Likewise.
57664         * lib/inttostr.h: Likewise.
57665         * lib/obstack.c: Likewise.
57666         * lib/regex_internal.h: Likewise.
57667         * lib/tempname.c: Likewise.
57668         * lib/utimecmp.c: Likewise.
57669         * lib/xstrtol.h: Likewise.
57670
57671         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
57672
57673         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
57674         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
57675         * lib/xtime.h: Likewise.
57676
57677 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57678
57679         * modules/openat (Files): Add lib/fchmodat.c.
57680         Fixes problem reported by Jay Youngman.
57681
57682 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57683
57684         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
57685         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
57686
57687 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
57688             Bruno Haible  <bruno@clisp.org>
57689
57690         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
57691         and is a script that invokes bison. Tighten the code. Add comments.
57692
57693 2006-08-18  Jim Meyering  <jim@meyering.net>
57694
57695         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
57696         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
57697         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
57698         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
57699
57700 2006-08-18  Bruno Haible  <bruno@clisp.org>
57701
57702         * modules/bison-i18n: New file.
57703         * MODULES.html.sh (Internationalization functions): Add it.
57704
57705 2006-08-18  Bruno Haible  <bruno@clisp.org>
57706
57707         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
57708         sys/statvfs.h. When getmntinfo was found, check its declaration and
57709         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
57710
57711 2006-08-18  Bruno Haible  <bruno@clisp.org>
57712
57713         * m4/bison-i18n.m4: New file, from bison.
57714
57715 2006-08-18  Bruno Haible  <bruno@clisp.org>
57716
57717         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
57718         (ME_DUMMY): Treat "kernfs" as a dummy.
57719         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
57720
57721 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57722
57723         Update from coreutils.
57724
57725         2006-08-15  Jim Meyering  <jim@meyering.net>
57726
57727         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
57728
57729         2006-01-17  Jim Meyering  <jim@meyering.net>
57730
57731         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
57732
57733         2006-01-11  Jim Meyering  <jim@meyering.net>
57734
57735         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
57736         Check for the lchmod function.
57737
57738 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57739
57740         Update from coreutils.
57741
57742         * lib/__fpending.h: Add copyright notice.
57743         * lib/fprintftime.h: Likewise.
57744         * lib/savedir.c: Use (C) in copyright notice.
57745         * lib/savedir.h: Likewise.
57746
57747         2006-08-15  Jim Meyering  <jim@meyering.net>
57748
57749         * lib/at-func.c: New file, with the logic of all emulated at-functions.
57750         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
57751         in support of the EXPECTED_ERRNO macro.
57752         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
57753         definitions.  Instead, define the appropriate symbols and include
57754         "at-func.c".
57755         * lib/mkdirat.c (mkdirat): Likewise.
57756         * lib/fchmodat.c (fchmodat): Likewise.
57757         (ENOSYS): Remove definition.
57758         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
57759         it.  Don't include "unistd--.h" -- it wasn't ever used.
57760
57761         2006-01-17  Jim Meyering  <jim@meyering.net>
57762
57763         Rewrite fts.c not to change the current working directory,
57764         by using openat, fstatat, fdopendir, etc..
57765
57766         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
57767         (HAVE_OPENAT_SUPPORT): Define.
57768         [_LIBC] (fchdir): Don't undef or define; no longer used.
57769         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
57770         Now, this `function' always succeeds, and consumes its file descriptor
57771         parameter -- so callers must not close such FDs.  Update callers.
57772         (diropen_fd, opendirat, cwd_advance_fd): New functions.
57773         (diropen): Add parameter, SP.  Adjust all callers.
57774         Implement using diropen_fd, rather than open.
57775         (fts_open): Initialize new member, fts_cwd_fd.
57776         Remove fts_rft-setting code.
57777         (fts_close): Close fts_cwd_fd, if necessary.
57778         (__opendir2): Define in terms of opendir or opendirat,
57779         depending on whether the FST_NOCHDIR flag is set.
57780         (fts_build): Since fts_safe_changedir consumes its FD, and since
57781         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
57782         and close the dup'd file descriptor upon failure.
57783         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
57784         (fts_safe_changedir): Tweak semantics to reflect that this function
57785         now calls cwd_advance_fd and hence consumes its FD argument.
57786         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
57787         [struct FTS] (fts_rft): Remove now-unused member.
57788         [struct FTS] (fts_cycle.state): Improve comment.
57789
57790         * lib/openat.c (openat_needs_fchdir): New function.
57791         * lib/openat.h (openat_needs_fchdir): Declare it.
57792
57793 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
57794
57795         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
57796         Problem and fix reported by Pádraig Brady in
57797         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
57798
57799 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57800
57801         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
57802
57803 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57804
57805         * lib/memcoll.c (memcoll): Optimize for the common case where the
57806         arguments are bytewise equal.
57807
57808 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57809
57810         * doc/regexprops-generic.texi: Add a copyright notice.
57811
57812 2006-08-15  Bruno Haible  <bruno@clisp.org>
57813
57814         * modules/tmpdir (License): Change to LGPL.
57815
57816 2006-08-15  Bruno Haible  <bruno@clisp.org>
57817
57818         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
57819         module.
57820
57821 2006-08-14  Simon Josefsson  <jas@extundo.com>
57822
57823         * config/srclist.txt: Add gnupload.
57824
57825 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57826
57827         Change copyright notice from LGPL 2 to GPL 2, since that's the
57828         standard form used in the gnulib repository.
57829         * tests/test-lock.c: Likewise.
57830         * tests/test-stdint.c: Likewise.
57831         * tests/test-tls.c: Likewise.
57832
57833         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
57834         prelude-manager.  User shorter URLs for GNU projects, without '?'.
57835         Add copyright notice.
57836
57837         * check-module: Add copyright notice.  Output a copyright
57838         notice if "--version" is specified.
57839         * modules/COPYING: New file.
57840         * tests/test-getaddrinfo.c: Add copyright notice.
57841         * tests/test-verify.c: Likewise.
57842
57843 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57844
57845         Change copyright notice from LGPL 2 to GPL 2, since that's the
57846         standard form used in the gnulib repository.
57847         * lib/lock.c: LGPL -> GPL.
57848         * lib/lock.h: Likewise.
57849         * lib/strnlen1.c: Likewise.
57850         * lib/strnlen1.h: Likewise.
57851         * lib/tls.c: Likewise.
57852         * lib/tls.h: Likewise.
57853         * lib/tmpdir.c: Likewise.
57854
57855         * lib/TODO: Remove; this belongs only in coreutils.
57856
57857 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57858
57859         Add copyright notices to long-enough files that lack them, since
57860         otherwise the files aren't clearly free.  Use the same notice that
57861         getdate.texi already uses.
57862         * doc/alloca-opt.texi: Add copyright notice.
57863         * doc/alloca.texi: Likewise.
57864         * doc/ctime.texi: Likewise.
57865         * doc/functions.texi: Likewise.
57866         * doc/gcd.texi: Likewise.
57867         * doc/gnulib-tool.texi: Likewise.
57868         * doc/inet_ntoa.texi: Likewise.
57869         * doc/visibility.texi: Likewise.
57870
57871         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
57872         * doc/quote.texi: Add copyright notice.
57873
57874         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
57875         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
57876         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
57877         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
57878         is now obsolete, and give a pointer to the Sun list.
57879         Add copyright notice.
57880
57881 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57882
57883         * config/srclistvars.sh: Add copyright notice.
57884
57885 2006-08-14  Eric Blake  <ebb9@byu.net>
57886
57887         Import the following change from libc:
57888
57889         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
57890
57891         Upstream bug 2997.
57892         * lib/misc/error.c: Add space between program name and message if file
57893         name is missing.
57894
57895 2006-08-12  Karl Berry  <karl@gnu.org>
57896
57897         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
57898         remove, these originate in gnulib now.
57899
57900 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57901
57902         * doc/Makefile (standards.info standards.html standards.dvi):
57903         Also depend on make-stds.texi.
57904
57905 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
57906
57907         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
57908         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
57909
57910         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
57911         in wchar_t.  Problem reported by Eric Blake.
57912
57913         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
57914         LEN is smaller than SIZE.  Suggested by Bruno Haible.
57915         Also, help the compiler to keep LEN in a register.
57916
57917 2006-08-11  Eric Blake  <ebb9@byu.net>
57918
57919         * users.txt: Sort.  Add tar.
57920
57921 2006-08-11  Bruno Haible  <bruno@clisp.org>
57922
57923         * users.txt: New file.
57924
57925 2006-08-11  Bruno Haible  <bruno@clisp.org>
57926
57927         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
57928         before <wchar.h>. Needed for OSF/1 and BSD/OS.
57929
57930 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57931
57932         * modules/snprintf (Depends-on): Remove minmax.
57933         (Maintainer): Add self and Bruno.
57934
57935 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57936
57937         * lib/.cppi-disable: Add snprintf.h, socket_.h.
57938         * lib/snprintf.c: Include <errno.h> and <limits.h>.
57939         (EOVERFLOW): Define if the system does not.
57940         Do not include "minmax.h"; it wasn't used.
57941         (snprintf): Don't assume size_t promotes to an unsigned type.
57942         Fix bug when generated string was too long for the buffer: the
57943         buffer's contents are supposed to be the initial prefix of the
57944         output.  Don't assume vasnprintf returns EOVERFLOW if the size
57945         exceeds INT_MAX; do the check ourselves.
57946
57947         Import the following changes from libc:
57948
57949         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
57950
57951         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
57952         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
57953         set wc to the byte which couldn't be converted.
57954         (re_string_reconstruct): Don't clear valid_raw_len before calling
57955         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
57956         tip_context using re_string_context_at.
57957
57958         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
57959
57960         * lib/posix/regex.h: g++ still cannot handled [restrict].
57961
57962         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
57963
57964         * lib/posix/regex.h: Remove special handling for VMS.
57965
57966 2006-08-10  Jim Meyering  <jim@meyering.net>
57967
57968         * modules/same-inode: New module.
57969         * modules/dev-ino: New module.
57970         * modules/cycle-check: Depend on these modules, rather than simply
57971         including their .h files.
57972         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
57973         required via m4/cycle-check.m4.
57974         * modules/same: Depend on new same-inode module, rather than
57975         including same-inode.h.
57976         * modules/chdir-safer: New file.
57977
57978         * modules/chown (Depends-on): Add stat-macros.
57979
57980 2006-08-10  Jim Meyering  <jim@meyering.net>
57981
57982         * m4/cycle-check.m4: New file.
57983         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
57984         * m4/dev-ino.m4, m4/same-inode.m4: New files.
57985
57986 2006-08-10  Eric Blake  <ebb9@byu.net>
57987
57988         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
57989         in from original proposal.
57990
57991 2006-08-10  Eric Blake  <ebb9@byu.net>
57992         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
57993
57994         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
57995         namespace.
57996
57997 2006-08-10  Bruno Haible  <bruno@clisp.org>
57998
57999         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
58000         as well.
58001
58002 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58003
58004         Sync from coreutils.
58005
58006         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
58007
58008         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
58009         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
58010
58011 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58012
58013         * modules/restrict: Remove; no longer needed now that we assume
58014         Autoconf 2.59 or later.
58015         * MODULES.html.sh: Remove 'restrict'.
58016         * modules/argp (Depends-on): Remove 'restrict'.
58017         * modules/base64 (Depends-on): Likewise.
58018         * modules/gc (Depends-on): Likewise.
58019         * modules/getaddrinfo (Depends-on): Likewise.
58020         * modules/glob (Depends-on): Likewise.
58021         * modules/inet_ntop (Depends-on): Likewise.
58022         * modules/inet_pton (Depends-on): Likewise.
58023         * modules/memxor (Depends-on): Likewise.
58024         * modules/regex (Depends-on): Likewise.
58025         * modules/strtok_r (Depends-on): Likewise.
58026         * modules/time_r (Depends-on): Likewise.
58027
58028 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58029
58030         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
58031         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
58032         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58033         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
58034         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
58035         * m4/memxor.m4 (gl_MEMXOR): Likewise.
58036         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
58037         gl_C_RESTRICT replaced by AC_C_RESTRICT.
58038
58039         Merge from coreutils.
58040         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
58041         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
58042         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58043         * m4/time_r.m4 (gl_TIME_R): Likewise.
58044
58045 2006-08-09  Karl Berry  <karl@gnu.org>
58046
58047         * config/srclist.txt: no more gettext-tools, per Bruno.
58048
58049 2006-08-08  Eric Blake  <ebb9@byu.net>
58050
58051         * modules/verror: New module.
58052         * MODULES.html.sh: Document it.
58053
58054 2006-08-08  Eric Blake  <ebb9@byu.net>
58055
58056         * lib/verror.h, lib/verror.c: New files.
58057
58058 2006-08-08  Eric Blake  <ebb9@byu.net>
58059
58060         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
58061         verror_at_line output complies with GNU Coding Standards even when
58062         file is NULL.
58063
58064 2006-08-07  Bruno Haible  <bruno@clisp.org>
58065
58066         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
58067         versions of AIX.
58068         Reported by Ralf Wildenhues.
58069
58070 2006-08-07  Bruno Haible  <bruno@clisp.org>
58071
58072         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
58073         in an AC_DEFUN. Needed so that the autoconf snippets can use
58074         AC_REQUIRE.
58075
58076 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58077
58078         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58079         Initialize pkgdata_DATA.
58080         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
58081         overriding it.
58082
58083 2006-08-06  Eric Blake  <ebb9@byu.net>
58084
58085         * lib/error.h: Fold in some upstream changes from glibc.
58086         * lib/error.c: Likewise.
58087
58088 2006-08-04  Bruno Haible  <bruno@clisp.org>
58089
58090         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58091         Make the mostlyclean-local rule depend on mostlyclean-generic.
58092         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
58093
58094 2006-07-31  Bruno Haible  <bruno@clisp.org>
58095
58096         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
58097         <stdlib.h>, <string.h>.
58098
58099 2006-07-30  Bruno Haible  <bruno@clisp.org>
58100
58101         * modules/readlink (License): Change to LGPL.
58102
58103 2006-07-30  Bruno Haible  <bruno@clisp.org>
58104
58105         * modules/javaversion (Makefile.am): Distribute javaversion.java and
58106         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
58107         set PKGDATADIR to point to it.
58108
58109 2006-07-30  Bruno Haible  <bruno@clisp.org>
58110
58111         * modules/csharpexec (configure.ac): Comment out macro invocation.
58112         * modules/javaexec (configure.ac): Likewise.
58113         * modules/javacomp-script (configure.ac): Likewise.
58114
58115         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
58116
58117 2006-07-30  Bruno Haible  <bruno@clisp.org>
58118
58119         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
58120         linked-list.
58121
58122 2006-07-30  Bruno Haible  <bruno@clisp.org>
58123
58124         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
58125
58126 2006-07-30  Bruno Haible  <bruno@clisp.org>
58127
58128         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58129         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
58130         get removed.
58131
58132 2006-07-29  Bruno Haible  <bruno@clisp.org>
58133
58134         Make it possible for gnulib-tool to work with locally modified or
58135         augmented gnulib repositories.
58136         * gnulib-tool (func_usage): Document --local-dir option.
58137         (local_gnulib_dir): New variable.
58138         Handle --local-dir option.
58139         (func_lookup_file): New function.
58140         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
58141         (func_get_description, func_get_filelist, func_get_description,
58142         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
58143         func_get_automake_snippet, func_get_include_directive,
58144         func_get_license, func_get_maintainer): Use func_lookup_file.
58145         (func_import, func_create_testdir): Use func_lookup_file.
58146
58147 2006-07-29  Bruno Haible  <bruno@clisp.org>
58148
58149         * modules/setenv (Depends-on): Add unistd.
58150
58151 2006-07-29  Bruno Haible  <bruno@clisp.org>
58152
58153         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
58154
58155 2006-07-29  Bruno Haible  <bruno@clisp.org>
58156
58157         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
58158
58159 2006-07-29  Bruno Haible  <bruno@clisp.org>
58160
58161         * gnulib-tool (import, update): If there is no Makefile.am, look at
58162         aclocal.m4, instead of bailing out.
58163
58164 2006-07-29  Bruno Haible  <bruno@clisp.org>
58165
58166         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
58167         Categorize the options by when they are useful.
58168
58169 2006-07-29  Bruno Haible  <bruno@clisp.org>
58170
58171         * gnulib-tool (func_usage): Document option --no-libtool.
58172         Handle option --no-libtool.
58173         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
58174         for changed semantics of $libtool variable.
58175         (func_import): Likewise. If libtool is not used, show this through
58176         an option --no-libtool.
58177         (func_create_testdir): Update.
58178
58179 2006-07-29  Bruno Haible  <bruno@clisp.org>
58180
58181         * gnulib-tool (func_import): Extend error message about missing
58182         --doc-base.
58183
58184 2006-07-29  Bruno Haible  <bruno@clisp.org>
58185
58186         * gnulib-tool (func_import): Don't create the $docbase directory if
58187         there is no file to store there.
58188
58189 2006-07-29  Bruno Haible  <bruno@clisp.org>
58190
58191         * gnulib-tool (autoconf_minversion): If a --dir option is given and
58192         relevant, look for configure.ac there, not in the current directory.
58193         Also use a simple search for AC_PREREQ, not "autoconf --trace".
58194
58195 2006-07-29  Bruno Haible  <bruno@clisp.org>
58196
58197         * gnulib-tool (SORT): New variable.
58198         (func_usage): Undocument --assume-autoconf option.
58199         Remove --assume-autoconf option handling.
58200         (autoconf_minversion): Determine from the contents of configure.ac.
58201         (func_import): Remove autoconf_minversion handling.
58202         Suggested by Eric Blake.
58203
58204 2006-07-29  Bruno Haible  <bruno@clisp.org>
58205
58206         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
58207
58208 2006-07-29  Bruno Haible  <bruno@clisp.org>
58209
58210         * config/srclist.txt (*setenv.[ch]): Remove rules.
58211
58212 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58213
58214         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
58215
58216 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58217
58218         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
58219         arpa/inet.h.
58220
58221 2006-07-28  Simon Josefsson  <jas@extundo.com>
58222
58223         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
58224         * modules/inet_pton (Depends-on): Likewise.
58225
58226 2006-07-28  Simon Josefsson  <jas@extundo.com>
58227
58228         * m4/netinet_in_h.m4: New file.
58229
58230 2006-07-28  Simon Josefsson  <jas@extundo.com>
58231
58232         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
58233         #include's.
58234
58235 2006-07-28  Simon Josefsson  <jas@extundo.com>
58236
58237         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
58238         #include's.
58239
58240 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
58241
58242         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
58243         setgid on directories only if they set these bits.
58244         * lib/modechange.h: Remove obsolete comment about masks.
58245
58246 2006-07-28  Eric Blake  <ebb9@byu.net>
58247
58248         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
58249         macro expansion.
58250
58251 2006-07-28  Bruno Haible  <bruno@clisp.org>
58252
58253         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
58254
58255 2006-07-28  Bruno Haible  <bruno@clisp.org>
58256
58257         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
58258
58259 2006-07-28  Bruno Haible  <bruno@clisp.org>
58260
58261         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
58262         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
58263         Define fallbacks.
58264         Avoids link error on FreeBSD 4.x.
58265         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58266
58267         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
58268         encoding.
58269         * lib/mbswidth.c (iswcntrl): Likewise.
58270
58271 2006-07-27  Bruno Haible  <bruno@clisp.org>
58272
58273         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
58274         test.
58275
58276 2006-07-27  Bruno Haible  <bruno@clisp.org>
58277
58278         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
58279         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
58280         defined.
58281
58282 2006-07-26  Eric Blake  <ebb9@byu.net>
58283
58284         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
58285
58286 2006-07-26  Eric Blake  <ebb9@byu.net>
58287
58288         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
58289         like mingw that lack mkstemp.
58290         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
58291         avoid compilation warning on mingw.
58292
58293 2006-07-26  Bruno Haible  <bruno@clisp.org>
58294
58295         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
58296         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
58297         INT_FAST*_MIN, INTPTR_MIN.
58298
58299 2006-07-25  Bruno Haible  <bruno@clisp.org>
58300
58301         * modules/version-etc (Depends-on): Add stdarg.
58302
58303 2006-07-25  Bruno Haible  <bruno@clisp.org>
58304
58305         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
58306         complex commands.
58307
58308 2006-07-25  Bruno Haible  <bruno@clisp.org>
58309
58310         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
58311         defined in <stdarg.h> or config.h.
58312
58313 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
58314
58315         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
58316         (gl_STDIO_SAFER): Remove.
58317
58318 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
58319
58320         * MODULES.html.sh (File stream based Input/Output):
58321         Add fopen-safer, tmpfile-safer; remove stdio-safer.
58322         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
58323         * modules/fopen-safer, modules/tmpfile-safer: New files.
58324         * modules/stdio-safer: Remove.
58325
58326 2006-07-24  Bruno Haible  <bruno@clisp.org>
58327
58328         * modules/tmpdir: New file.
58329         * MODULES.html.sh (File system functions): Add it.
58330
58331 2006-07-24  Bruno Haible  <bruno@clisp.org>
58332
58333         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
58334         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
58335
58336 2006-07-24  Bruno Haible  <bruno@clisp.org>
58337
58338         * modules/clean-temp: New file.
58339
58340 2006-07-24  Bruno Haible  <bruno@clisp.org>
58341
58342         * m4/tmpdir.m4: New file, from GNU gettext.
58343
58344 2006-07-24  Bruno Haible  <bruno@clisp.org>
58345
58346         * lib/tmpdir.h: New file, from GNU gettext.
58347         * lib/tmpdir.c: New file, from GNU gettext.
58348
58349 2006-07-24  Bruno Haible  <bruno@clisp.org>
58350
58351         * lib/clean-temp.h: New file, from GNU gettext.
58352         * lib/clean-temp.c: New file, from GNU gettext.
58353
58354 2006-07-23  Eric Blake  <ebb9@byu.net>
58355
58356         * modules/stdio-safer (Files): Add tmpfile-safer.c.
58357         (Depends-on): Add binary-io.
58358
58359 2006-07-23  Eric Blake  <ebb9@byu.net>
58360
58361         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
58362
58363 2006-07-23  Eric Blake  <ebb9@byu.net>
58364
58365         * lib/tmpfile-safer.c: New file.
58366         * lib/stdio-safer.h (fopen_safer): Add prototype.
58367         * lib/stdio--.h (tmpfile): Make safer.
58368
58369 2006-07-23  Bruno Haible  <bruno@clisp.org>
58370
58371         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
58372         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
58373         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
58374         gl_linked_remove_at): Use it.
58375
58376 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58377         and Simon Josefsson <jas@extundo.com>
58378
58379         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
58380
58381         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
58382
58383 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58384
58385         * modules/close-stream: New file.
58386         * modules/closeout (Description): Make it clear that it exits
58387         with a diagnostic on error.
58388         (Depends-on): Add close-stream.  Remove fpending, stdbool.
58389         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
58390
58391 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58392
58393         * m4/close-stream.m4: New file.
58394
58395 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58396
58397         * lib/close-stream.c, lib/close-stream.h: New files.
58398
58399 2006-07-22  Bruno Haible  <bruno@clisp.org>
58400
58401         Merge from GNU gettext 0.15.
58402
58403         2006-05-01  Bruno Haible  <bruno@clisp.org>
58404
58405                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
58406
58407         2006-07-22  Bruno Haible  <bruno@clisp.org>
58408
58409                 * modules/javaversion: New file.
58410                 * MODULES.html.sh (Java): Add javaversion.
58411
58412         2006-03-12  Bruno Haible  <bruno@clisp.org>
58413
58414                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
58415
58416         2005-12-04  Bruno Haible  <bruno@clisp.org>
58417
58418                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
58419                 (untested).
58420
58421         2006-06-21  Bruno Haible  <bruno@clisp.org>
58422
58423                 Avoid warnings from recent versions of mcs.
58424                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
58425                 -o, -L, -r any more. Use options documented since mcs-1.0
58426                 instead. Similarly for -g.
58427
58428         2005-12-04  Bruno Haible  <bruno@clisp.org>
58429
58430                 * build-aux/csharpcomp.sh.in: Suffix for resources is
58431                 .resources, not .resource.
58432
58433         2005-07-09  Bruno Haible  <bruno@clisp.org>
58434
58435                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
58436                 add a .dll suffix.
58437                 Reported by Mark Junker <mjscod@gmx.de>.
58438
58439         2006-07-22  Bruno Haible  <bruno@clisp.org>
58440
58441                 * modules/gettext: Upgrade to gettext-0.15.
58442                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
58443                 m4/visibility.m4.
58444                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
58445
58446 2006-07-22  Bruno Haible  <bruno@clisp.org>
58447
58448         Merge from GNU gettext 0.15.
58449
58450         2006-03-25  Bruno Haible  <bruno@clisp.org>
58451
58452                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
58453
58454         2006-07-21  Bruno Haible  <bruno@clisp.org>
58455
58456                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
58457                 "1.1".
58458
58459         2006-05-09  Bruno Haible  <bruno@clisp.org>
58460
58461                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
58462                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
58463                 for the conftestver execution.
58464
58465         2006-05-01  Bruno Haible  <bruno@clisp.org>
58466
58467                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
58468                 optional target-version argument. Verify that the compiler
58469                 groks source of the specified source-version, or add -source
58470                 option as necessary. Verify that the compiler produces
58471                 bytecode in the specified target-version, or add -target and
58472                 -source options as necessary. Make the result of the test
58473                 available as variable CONF_JAVAC. Also log error output in
58474                 config.log.
58475
58476         2006-03-11  Bruno Haible  <bruno@clisp.org>
58477
58478                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
58479
58480         2006-05-09  Bruno Haible  <bruno@clisp.org>
58481
58482                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
58483                 CLASSPATH_SEPARATOR to a semicolon.
58484
58485         2006-03-12  Bruno Haible  <bruno@clisp.org>
58486
58487                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
58488                 available as variable CONF_JAVA, for subsequent autoconf
58489                 tests. Also log error output in config.log.
58490
58491         2006-07-19  Bruno Haible  <bruno@clisp.org>
58492
58493                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
58494                 that getline works on glibc2 systems. Needed to avoid trouble
58495                 in relocatable.c.
58496                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
58497
58498         2005-12-04  Bruno Haible  <bruno@clisp.org>
58499
58500                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
58501                 launcher (untested).
58502
58503         2005-12-04  Bruno Haible  <bruno@clisp.org>
58504
58505                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
58506
58507         2006-07-22  Bruno Haible  <bruno@clisp.org>
58508
58509                 * gettext.m4: Update from GNU gettext-0.15.
58510                 * nls.m4: Likewise.
58511                 * po.m4: Likewise.
58512                 * inttypes-pri.m4: Likewise.
58513                 * inttypes-h.m4: Renamed from inttypes.m4.
58514                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
58515
58516 2006-07-22  Bruno Haible  <bruno@clisp.org>
58517
58518         Merge from GNU gettext 0.15.
58519
58520         2005-07-05  Bruno Haible  <bruno@clisp.org>
58521
58522                 * printf-args.c (printf_fetchargs): Work around broken
58523                 definition of wint_t on mingw.
58524
58525         2005-02-12  Bruno Haible  <bruno@clisp.org>
58526
58527                 * xallocsa.h: Add extern "C" for C++.
58528
58529         2006-05-17  Bruno Haible  <bruno@clisp.org>
58530
58531                 Cygwin portability.
58532                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
58533
58534         2006-04-30  Bruno Haible  <bruno@clisp.org>
58535
58536                 * progreloc.c: Include <mach-o/dyld.h> if available.
58537                 (find_executable): Use _NSGetExecutablePath when possible.
58538
58539         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58540
58541                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
58542                 function.
58543
58544         2005-12-29  Bruno Haible  <bruno@clisp.org>
58545
58546                 * progreloc.c (set_program_name_and_installdir): Fix
58547                 compilation error.
58548
58549         2005-12-04  Bruno Haible  <bruno@clisp.org>
58550
58551                 Cygwin portability.
58552                 * progreloc.c: Include <windows.h> also on Cygwin.
58553                 (find_executable): Add support for Cygwin.
58554                 (set_program_name_and_installdir): Handle also platforms with
58555                 nonempty EXEEXT.
58556
58557         2006-07-11  Bruno Haible  <bruno@clisp.org>
58558
58559                 * javacomp.c: Fix a comment.
58560                 Reported by Jim Meyering.
58561
58562         2006-04-30  Bruno Haible  <bruno@clisp.org>
58563
58564                 * javacomp.h (compile_java_class): Add source_version,
58565                 target_version arguments.
58566                 * javacomp.c: Rewritten to choose only a compiler that
58567                 respects the specified source_version and target_version.
58568
58569         2006-06-27  Bruno Haible  <bruno@clisp.org>
58570
58571                 Assume correct S_ISDIR macro.
58572                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
58573
58574         2006-07-22  Bruno Haible  <bruno@clisp.org>
58575
58576                 * javaversion.h: New file, from GNU gettext.
58577                 * javaversion.c: New file, from GNU gettext.
58578                 * javaversion.java: New file, from GNU gettext.
58579                 * javaversion.class: New file, from GNU gettext.
58580
58581         2006-05-17  Bruno Haible  <bruno@clisp.org>
58582
58583                 Cygwin portability.
58584                 * javaexec.c (execute_java_class): Test for jview program
58585                 also on Cygwin.
58586
58587         2006-04-09  Bruno Haible  <bruno@clisp.org>
58588
58589                 * fatal-signal.c: Don't include string.h.
58590                 (at_fatal_signal): Use a copying loop instead of memcpy.
58591
58592         2005-12-04  Bruno Haible  <bruno@clisp.org>
58593
58594                 * csharpexec.c: Add support for 'clix' launcher (untested).
58595                 (execute_csharp_using_sscli): New function.
58596                 (execute_csharp_program): Call it.
58597
58598         2006-06-21  Bruno Haible  <bruno@clisp.org>
58599
58600                 Avoid warnings from recent versions of mcs.
58601                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
58602                 -o, -L, -r any more. Use options documented since mcs-1.0
58603                 instead. Similarly for -g.
58604
58605         2005-07-09  Bruno Haible  <bruno@clisp.org>
58606
58607                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
58608                 add a .dll suffix.
58609                 Reported by Mark Junker <mjscod@gmx.de>.
58610
58611         2006-06-17  Bruno Haible  <bruno@clisp.org>
58612
58613                 * config.charset: Update for NetBSD 3.0.
58614
58615         2006-05-17  Bruno Haible  <bruno@clisp.org>
58616
58617                 Cygwin portability.
58618                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
58619
58620         2006-05-16  Bruno Haible  <bruno@clisp.org>
58621
58622                 * localcharset.c [CYGWIN]: Include <windows.h>.
58623                 (get_charset_aliases): For Cygwin, return the same CPxxx
58624                 aliases list as under WIN32.
58625                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
58626                 the environment variables. Fall back to GetACP().
58627
58628         2006-04-05  Bruno Haible  <bruno@clisp.org>
58629
58630                 * config.charset: Update Juan Manuel Guerrero's address.
58631
58632         2005-02-12  Bruno Haible  <bruno@clisp.org>
58633
58634                 * allocsa.h: Add extern "C" for C++.
58635
58636         2005-02-10  Bruno Haible  <bruno@clisp.org>
58637
58638                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
58639                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
58640
58641         2006-07-22  Bruno Haible  <bruno@clisp.org>
58642
58643                 * gettext.h: Update to GNU gettext-0.15.
58644
58645 2006-07-22  Bruno Haible  <bruno@clisp.org>
58646
58647         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
58648         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
58649         lib-prefix.m4, longdouble.m4, ssize_t.m4.
58650
58651 2006-07-21  Eric Blake  <ebb9@byu.net>
58652
58653         * modules/stdlib-safer: New file.
58654         * MODULES.html.sh (File stream based Input/Output): Add
58655         stdlib-safer.
58656
58657 2006-07-21  Eric Blake  <ebb9@byu.net>
58658
58659         * lib/stdlib-safer.h: New file from coreutils, required by
58660         stdlib--.h.
58661
58662 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
58663
58664         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
58665
58666 2006-07-20  Bruno Haible  <bruno@clisp.org>
58667
58668         * gnulib-tool: Recognize new option --assume-autoconf.
58669         (autoconf_minversion): New variable.
58670         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
58671
58672 2006-07-20  Bruno Haible  <bruno@clisp.org>
58673
58674         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
58675
58676 2006-07-19  Derek R. Price  <derek@ximbiot.com>
58677
58678         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
58679         Reindent and repaginate.
58680
58681 2006-07-19  Derek Price  <derek@ximbiot.com>
58682
58683         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
58684         Correct grammar.
58685
58686 2006-07-17  Bruno Haible  <bruno@clisp.org>
58687
58688         * modules/list: New file.
58689         * modules/array-list: New file.
58690         * modules/carray-list, modules/carray-list-tests: New files.
58691         * modules/linked-list, modules/linked-list-tests: New files.
58692         * modules/avltree-list, modules/avltree-list-tests: New files.
58693         * modules/rbtree-list, modules/rbtree-list-tests: New files.
58694         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
58695         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
58696         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
58697         * modules/oset: New file.
58698         * modules/array-oset: New file.
58699         * modules/avltree-oset, modules/avltree-oset-tests: New files.
58700         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
58701         * tests/test-carray_list.c: New file.
58702         * tests/test-linked_list.c: New file.
58703         * tests/test-avltree_list.c: New file.
58704         * tests/test-rbtree_list.c: New file.
58705         * tests/test-linkedhash_list.c: New file.
58706         * tests/test-avltreehash_list.c: New file.
58707         * tests/test-rbtreehash_list.c: New file.
58708         * tests/test-avltree_oset.c: New file.
58709         * tests/test-rbtree_oset.c: New file.
58710         * MODULES.html.sh (Container data structures): New section.
58711
58712 2006-07-17  Bruno Haible  <bruno@clisp.org>
58713
58714         * m4/gl_list.m4: New file.
58715
58716 2006-07-17  Bruno Haible  <bruno@clisp.org>
58717
58718         * lib/gl_list.h: New file.
58719         * lib/gl_list.c: New file.
58720         * lib/gl_array_list.h: New file.
58721         * lib/gl_array_list.c: New file.
58722         * lib/gl_carray_list.h: New file.
58723         * lib/gl_carray_list.c: New file.
58724         * lib/gl_linked_list.h: New file.
58725         * lib/gl_linked_list.c: New file.
58726         * lib/gl_anylinked_list1.h: New file.
58727         * lib/gl_anylinked_list2.h: New file.
58728         * lib/gl_avltree_list.h: New file.
58729         * lib/gl_avltree_list.c: New file.
58730         * lib/gl_anyavltree_list1.h: New file.
58731         * lib/gl_anyavltree_list2.h: New file.
58732         * lib/gl_rbtree_list.h: New file.
58733         * lib/gl_rbtree_list.c: New file.
58734         * lib/gl_anyrbtree_list1.h: New file.
58735         * lib/gl_anyrbtree_list2.h: New file.
58736         * lib/gl_anytree_list1.h: New file.
58737         * lib/gl_anytree_list2.h: New file.
58738         * lib/gl_linkedhash_list.h: New file.
58739         * lib/gl_linkedhash_list.c: New file.
58740         * lib/gl_anyhash_list1.h: New file.
58741         * lib/gl_anyhash_list2.h: New file.
58742         * lib/gl_avltreehash_list.h: New file.
58743         * lib/gl_avltreehash_list.c: New file.
58744         * lib/gl_rbtreehash_list.h: New file.
58745         * lib/gl_rbtreehash_list.c: New file.
58746         * lib/gl_anytreehash_list1.h: New file.
58747         * lib/gl_anytreehash_list2.h: New file.
58748
58749         * lib/gl_oset.h: New file.
58750         * lib/gl_oset.c: New file.
58751         * lib/gl_array_oset.h: New file.
58752         * lib/gl_array_oset.c: New file.
58753         * lib/gl_avltree_oset.h: New file.
58754         * lib/gl_avltree_oset.c: New file.
58755         * lib/gl_rbtree_oset.h: New file.
58756         * lib/gl_rbtree_oset.c: New file.
58757         * lib/gl_anytree_oset.h: New file.
58758
58759 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
58760
58761         * m4/mkancesdirs.m4: New file.
58762         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
58763         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
58764         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
58765         it.
58766
58767 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
58768
58769         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
58770         * lib/mkancesdirs.h: New files.
58771         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
58772         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
58773         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
58774         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
58775         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
58776         callers changed.  Revamp internals significantly, by not
58777         attempting to create directories that are temporarily more
58778         permissive than the final results.  Do not attempt to use
58779         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
58780         This removes some race conditions, fixes some bugs, and simplifies
58781         things.  Use new dirchownmod function to do owner and mode changes.
58782         * lib/mkdir-p.h: Likewise.
58783         * lib/modechange.c (octal_to_mode): New function.
58784         (struct mode_change): New member mentioned.
58785         (make_node_op_equals): New arg mentioned.  All callers changed.
58786         (mode_compile): Keep track of which mode bits the user has explicitly
58787         mentioned.
58788         (mode_adjust): New arg DIR, so that we implement the X op correctly.
58789         New arg PMODE_BITS, to keep track of which mode bits the user
58790         mentioned; it treats S_ISUID and S_ISGID speciall.
58791         All callers changed.
58792         * lib/modechange.h: Likewise.
58793
58794 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
58795
58796         * MODULES.html.sh: Add mkancestors.
58797         * modules/mkancesdirs: New module.
58798         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
58799         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
58800         The chdir-safer and afs files are now orphans; I'll remove them
58801         unless someone speaks up.
58802         Add lib/dirchownmod.c, lib/dirchownmod.h.
58803         (Depends-on): Remove alloca, chown, save-cwd, dirname.
58804         Add lchown, mkancesdirs.
58805         (Maintainer): Add self.
58806
58807 2006-07-15  Karl Berry  <karl@gnu.org>
58808
58809         * gnulib-tool: help message wording/arrangement.
58810
58811 2006-07-14  Simon Josefsson  <jas@extundo.com>
58812
58813         * doc/gnulib.texi (Libtool and Windows): New section.
58814
58815 2006-07-12  Simon Josefsson  <jas@extundo.com>
58816
58817         * modules/gendocs (License): Fix license, approved by Karl.
58818
58819 2006-07-12  Eric Blake  <ebb9@byu.net>
58820
58821         * MODULES.html.sh: Add gendocs.
58822
58823 2006-07-11  Eric Blake  <ebb9@byu.net>
58824
58825         * modules/fdl: New module, to install doc/fdl.texi.
58826         * MODULES.html.sh: Add new section for documentation modules.
58827         * gnulib-tool: Avoid space-tab.
58828         (--doc-base): New option, to manage files from doc.
58829
58830 2006-07-11  Eric Blake  <ebb9@byu.net>
58831
58832         * m4/absolute-header.m4: Fix comments to match recent change.
58833
58834 2006-07-11  Eric Blake  <ebb9@byu.net>
58835
58836         * gnulib-tool: List --doc-base before --tests-base.
58837
58838 2006-07-11  Derek R. Price  <derek@ximbiot.com>
58839
58840         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
58841
58842 2006-07-11  Bruno Haible  <bruno@clisp.org>
58843
58844         * README: Mention where to put documentation.
58845
58846 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58847
58848         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
58849
58850 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
58851
58852         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
58853         to stdint.m4.
58854
58855 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
58856
58857         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
58858         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
58859         "no/such/file/stdint.h" when there is no such file, so that
58860         the resulting C code can be parsed by dodgy compilers.
58861         Problems reported by Bob Proulx.
58862
58863 2006-07-10  Derek R. Price  <derek@ximbiot.com>
58864
58865         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
58866         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
58867         macros into the GNU _D_EXACT_NAMLEN.
58868         * lib/savedir.c:  Likewise.
58869         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
58870
58871 2006-07-10  Derek R. Price  <derek@ximbiot.com>
58872         and Paul Eggert  <eggert@cs.ucla.edu>
58873
58874         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
58875         * m4/savedir.m4:
58876         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
58877         macros into the GNU _D_EXACT_NAMLEN.
58878
58879 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58880
58881         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
58882         around the absolute name, to work around a problem with the HP-UX
58883         11.23 native C compiler, reported by Bob Proulx.
58884
58885 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58886
58887         * doc/maintain.texi, make-stds.texi: Sync from
58888         <http://savannah.gnu.org/projects/gnustandards>.
58889
58890 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58891
58892         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
58893
58894 2006-07-09  Jim Meyering  <jim@meyering.net>
58895
58896         * m4/glob.m4: Remove a doubled word in a comment.
58897
58898 2006-07-09  Jim Meyering  <jim@meyering.net>
58899
58900         * lib/argp-pv.c: Remove a doubled word in a comment.
58901         * lib/check-version.c (check_version): Likewise.
58902         * lib/javacomp.c (compile_java_class): Likewise.
58903
58904 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
58905
58906         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
58907         for the benefit of people using Autoconf 2.60.  If you want to
58908         support older Autoconf versions you can copy m4/onceonly_2_57.m4
58909         (or m4/onceonly.m4, if pre-2.57) manually.
58910
58911 2006-07-08  Jim Meyering  <jim@meyering.net>
58912
58913         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
58914         comment.
58915         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
58916         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
58917         comment.
58918
58919 2006-07-08  Jim Meyering  <jim@meyering.net>
58920
58921         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
58922
58923 2006-07-07  Simon Josefsson  <jas@extundo.com>
58924
58925         * tests/test-crc.c: Change expected crc value, the test vector
58926         were probably computed using the old broken crc.c?
58927
58928 2006-07-06  Simon Josefsson  <jas@extundo.com>
58929
58930         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
58931         now the canonical place for the M4 file).
58932
58933         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
58934         from the sys_socket dependency now.
58935
58936         * modules/inet_pton (Files): Ditto.
58937
58938         * modules/inet_ntop (Files): Ditto.
58939
58940 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
58941
58942         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
58943         not gl_PREREQ_GETUSERSHELL.
58944
58945 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58946
58947         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
58948         with only one argument, for Autoconf 2.60.
58949         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
58950         expand to nothing, so add a shell command to avoid syntax error.
58951         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
58952
58953 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58954
58955         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
58956
58957 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58958
58959         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
58960         no longer needed.  Check for isblank decl.
58961         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
58962         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
58963         of existence.
58964
58965 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58966
58967         * lib/getloadavg.c: Use __VMS, not VMS.
58968         * lib/getopt.c: Likewise.
58969         * lib/getpagesize.h: Likewise.
58970         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
58971         and probably does not work.
58972
58973 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58974
58975         * lib/.cppi-disable: Add wcwidth.
58976         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
58977         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
58978         (ISGRAPH): Remove.  All uses changed to isgraph.
58979         (FOLD) [!defined _LIBC]: Remove special case.
58980         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
58981         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
58982         HAVE_ISBLANK.
58983         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
58984         case.
58985
58986 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
58987
58988         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
58989         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
58990         brackets.  Other minor changes to suppress some compiler
58991         warnings.
58992
58993 2006-07-06  Derek R. Price  <derek@ximbiot.com>
58994         and Paul Eggert  <eggert@cs.ucla.edu>
58995
58996         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
58997         of invoking obsolescent AC_HEADER_DIRENT macro.
58998         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
58999         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
59000         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
59001         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
59002         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
59003         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59004         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
59005         * m4/readdir.m4: Remove; no longer needed.
59006
59007 2006-07-06  Derek R. Price  <derek@ximbiot.com>
59008         and Paul Eggert  <eggert@cs.ucla.edu>
59009
59010         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
59011         Don't worry about this obsolete case any more.
59012         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
59013         directories.
59014         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
59015         worry about this obsolete case any more.
59016         * lib/fts.c: Likewise.
59017         * lib/getcwd.c: Likewise.
59018         * lib/glob.h: Likewise.
59019         * lib/savedir.c: Likewise.
59020
59021 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59022
59023         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
59024         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
59025         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
59026         needed.
59027         All uses removed.
59028         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59029         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
59030         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
59031         needed.
59032         * m4/getdate.m4 (gl_GETDATE): Likewise.
59033         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
59034         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
59035         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59036         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59037         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
59038         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59039         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
59040         needed.
59041
59042 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59043
59044         * lib/memcasecmp.c: Include <limits.h>.
59045         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
59046         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
59047         Don't assume isdigit succeeds only on '0' through '9'.
59048
59049 2006-07-05  Eric Blake  <ebb9@byu.net>
59050
59051         * modules/getaddrinfo (Depends-on): Add snprintf.
59052
59053 2006-07-05  Eric Blake  <ebb9@byu.net>
59054
59055         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
59056         to avoid 'header present but could not be compiled' on cygwin.
59057
59058 2006-07-05  Eric Blake  <ebb9@byu.net>
59059
59060         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
59061         missing from netdb.h.
59062         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
59063
59064 2006-07-05  Derek R. Price  <derek@ximbiot.com>
59065
59066         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
59067         no longer needed.
59068         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
59069         * m4/getdate.m4 (gl_GETDATE): Likewise.
59070         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
59071         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
59072         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59073         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59074         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59075
59076 2006-07-05  Derek R. Price  <derek@ximbiot.com>
59077
59078         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
59079         All uses of is_space replaced by isspace.
59080         * lib/exit.h: Don't talk about STDC_HEADERS.
59081         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
59082         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
59083         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
59084         replaced by isprint etc.
59085         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
59086         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
59087         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
59088         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
59089         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
59090         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
59091
59092 2006-07-05  Bruno Haible  <bruno@clisp.org>
59093
59094         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
59095         the function exists, before testing against AIX.
59096         Reported by Martin Lambers <marlam@marlam.de>.
59097
59098 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
59099
59100         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
59101         From Mark D. Baushke.
59102
59103 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
59104
59105         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
59106         to the absolute name, not just one, to bypass Sun C 5.8's
59107         "warning: #include of /usr/include/... may be non-portable".
59108
59109 2006-07-04  Eric Blake  <ebb9@byu.net>
59110
59111         * modules/dirname-tests: New test module.
59112         * tests/test-dirname.c: New file, replacing dirname.c
59113         TEST_DIRNAME section that was recently deleted.
59114
59115 2006-07-04  Bruno Haible  <bruno@clisp.org>
59116
59117         Assume ANSI C header files and <ctype.h> functions.
59118         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
59119         (mbsnwidth): Use isprint, iscntrl instead.
59120
59121 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59122
59123         Merge from coreutils.
59124         * MODULES.html.sh: Add xstrtold.
59125         * modules/xstrtold: New file.
59126         * modules/cycle-check (Files): Add lib/same-inode.h.
59127         * modules/dirname (Files): Add m4/double-slash-root.m4.
59128         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
59129         * modules/mkdir-p (Files): Add lib/same-inode.h.
59130         * modules/same (Files): Add lib/same-inode.h.
59131
59132 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59133
59134         * m4/absolute-header.m4: Renamed from full-header-path.m4.
59135         This is to keep the terminology clean; POSIX talks about
59136         "absolute pathnames", not "full pathnames", but the GNU
59137         Coding Standards say to use "path" for something else;
59138         so use "absolute" to keep both sides happy.
59139         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
59140         Set gl_absolute_header, not gl_full_header_path.
59141         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
59142         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
59143         All uses changed.
59144
59145         Merge from coreutils.
59146
59147         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
59148
59149         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
59150         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
59151         want to require the building of c-strtod.o.
59152         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
59153         needs -lm directly.
59154         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
59155
59156         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
59157
59158         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
59159         --as-needed option if available.  Problem reported by Albert Chin in
59160         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
59161         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
59162         cc merely issues a bunch of annoying warnings for --as-needed
59163         (this problem was reported by Bob Proulx).  Also, try linking with
59164         -lm to detect a bug in binutils 2.16 (this problem was reported
59165         by Ralf Wildenhues).
59166
59167         2006-06-18  Jim Meyering  <jim@meyering.net>
59168
59169         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
59170         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
59171         macro.
59172         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
59173         also check for glibc-2.4's abort-inducing bug.
59174
59175         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
59176         Low-probability clean-up should be to use rmdir to get rid of
59177         the just-created directory, not unlink.
59178
59179         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
59180         configure fail, and request a bug report to inform us about it.
59181         Add a comment that, barring reports to the contrary, in 2007 we'll
59182         assume ftruncate is universally available.
59183
59184         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
59185
59186         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
59187
59188         2006-03-12  Jim Meyering  <jim@meyering.net>
59189
59190         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
59191         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
59192         * m4/same.m4 (gl_SAME): Likewise.
59193         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
59194
59195         2006-03-11  Eric Blake  <ebb9@byu.net>
59196
59197         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
59198         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
59199         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
59200         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
59201
59202 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59203
59204         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
59205         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
59206         reported by Mark D. Baushke, one in
59207         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
59208
59209         Merge from coreutils.
59210
59211         * lib/.cppi-disable: Add stdint_.h.
59212         * lib/.cvsignore: Add stdint.h.
59213
59214         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
59215
59216         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
59217         both double and long double versions.
59218         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
59219         * lib/xstrtold.c: New file.
59220         * lib/xstrtod.h (xstrtold): New decl.
59221
59222         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
59223
59224         * lib/filemode.c (setst): Remove.
59225         (strmode): Rewrite to avoid setst.  This makes the code shorter,
59226         (arguably) clearer, and the generated code is a bit smaller on my
59227         Debian GNU/Linux stable x86 host.
59228
59229         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
59230
59231         * lib/filemode.c: Include "filemode.h" first, to test the interface.
59232         Assume that filemode.h includes sys/types.h and sys/stat.h.
59233         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
59234         (ftypelet): Reorder to put common cases first, for efficiency.
59235         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
59236         to do 'M'.
59237         (strmode): Renamed from mode_string, and now stores 12 bytes instead
59238         of 10, for compatibility with FreeBSD.  All callers changed.
59239         (filemodestring): Now stores 12 bytes instead of 10, and sets file
59240         types that can't be deduced solely from st_mode.  First arg is now a
59241         const pointer.
59242         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
59243         (strmode): Renamed from mode_string.
59244         (filemodestring): New decl.
59245         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
59246         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
59247         needed.
59248         (S_ISPORT, S_ISWHT): New macros, if not already defined.
59249
59250         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
59251
59252         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
59253         fsusage.h now does that.  Include fsusage.h first, to test interface.
59254         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
59255         at most one method (the old code could have generated decls that
59256         didn't conform to C89, not that this was ever exercised).
59257         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
59258
59259         2006-03-19  Jim Meyering  <jim@meyering.net>
59260
59261         Work even in a chroot where d_ino values for entries in "/"
59262         don't match the stat.st_ino values for the same names.
59263         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
59264         number, iterate through all entries again, using lstat instead.
59265         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
59266         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
59267
59268         * lib/getcwd.c (__getcwd): Clarify a comment.
59269         Use memcpy in place of a call to strcpy.
59270
59271         2006-03-12  Jim Meyering  <jim@meyering.net>
59272
59273         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
59274         matches that of the current directory (which we're about to chdir ".."
59275         out of), then save the dev-ino of the parent, instead.
59276
59277         * lib/same-inode.h (SAME_INODE): New file/macro.
59278         * lib/chdir-safer.c (SAME_INODE): Remove definition.
59279         Include "same-inode.h", instead.
59280         * lib/same.c: Likewise.
59281         * lib/cycle-check.h: Include "same-inode.h".
59282         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
59283         * lib/cycle-check.c (SAME_INODE): Remove definition.
59284         * lib/root-dev-ino.h: Include "same-inode.h".
59285
59286         2006-03-11  Eric Blake  <ebb9@byu.net>
59287
59288         * lib/same.c (same_name): s/base_name/last_component/
59289         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
59290         * lib/filenamecat.c (file_name_concat): Likewise.
59291
59292         2006-03-11  Eric Blake  <ebb9@byu.net>,
59293                     Paul Eggert  <eggert@cs.ucla.edu>
59294
59295         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
59296         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
59297         drive prefix.
59298         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
59299         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
59300         (last_component): New method.
59301         * lib/dirname.c (dir_len): Determine when drive letters need a
59302         subsequent slash.  Preserve // when it is special.
59303         (dir_name): Don't append dot when drive letter is absolute.
59304         [TEST_DIRNAME]: Move into a full-blown gnulib test.
59305         * lib/basename.c (base_name): New semantics - malloc the result.
59306         Preserve // when it is special.  Preserve relative files that look
59307         like drive letters.
59308         (base_len): Preserve // when it is special.
59309         (last_component): New method, similar to old base_name semantics.
59310         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
59311         base_name.  Strip redundant slashes from ///.
59312
59313 2006-07-03  Jim Meyering  <jim@meyering.net>
59314
59315         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
59316         macro is used before the first cycle_check call.
59317
59318 2006-07-03  Eric Blake  <ebb9@byu.net>
59319
59320         * modules/dirname (Depends-on): Add xstrndup.
59321
59322 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59323
59324         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
59325         test cases, so that config.log is a bit easier to follow.
59326
59327 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59328
59329         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
59330         both are 64 bits, since this seems to be the tradition, and this
59331         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
59332         we ever run into a host that prefers long long to long in this
59333         case, we'll need another configure-time test.  Problem reported by
59334         Jim Meyering.
59335
59336 2006-07-02  Eric Blake  <ebb9@byu.net>
59337
59338         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
59339
59340 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59341
59342         * modules/inttypes (Depends-on): No longer depends on stdint.
59343         * modules/stdint (Description): Say more about assumptions.
59344         Say that the fast types might differ.  Say macros are used.
59345         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
59346         (Makefile.am): Revise list of substituted symbols to match
59347         new stdint.m4.
59348         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
59349         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
59350         * tests/test-stdint.c (verify_same_types)
59351         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
59352         the code conforms to C99/C89.
59353         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
59354         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
59355
59356 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59357
59358         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
59359         but fix a bug, by requiring at least 64 bits.
59360         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
59361         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
59362         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
59363         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
59364
59365         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
59366         changes.  Make 2.59 a prerequisite.  Check and substitute for
59367         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
59368         inttypes.h.  Do not use special include files; just use the
59369         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
59370         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
59371         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
59372         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
59373         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
59374         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
59375         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
59376         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
59377         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
59378         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
59379         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
59380         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
59381         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
59382         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
59383         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
59384         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
59385         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
59386         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
59387         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
59388         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
59389         WINT_MAX.  Check for C99 conformance more strictly, by detecting
59390         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
59391         not check for things that C99 does not require, e.g., int8_t.  If
59392         a test isn't needed unless <stdint.h> isn't working, and is
59393         unlikely to be needed for any other reason, then don't do it
59394         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
59395         size_t, since we assume C89 freestanding at least.  Do not check
59396         for sig_atomic_t, wchar_t, or wint_t, since the code now does
59397         the right thing even if the types are not defined.  Instead use:
59398         (gl_STDINT_TYPE_PROPERTIES): New macro.
59399         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
59400         testing whether <sys/types.h> clashes, as Autoconf does this for
59401         us now.  All uses removed.
59402         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
59403         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
59404         (gl_CHECK_TYPE_SAME):
59405         Remove; no longer needed.
59406         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
59407         exists, since we'll return 0 anyway in that case.
59408         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
59409
59410 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59411
59412         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
59413         possible collision with system files.
59414         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
59415         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
59416         WCHAR_MIN and WCHAR_MAX in this case.
59417         (<stddef.h>): Do not include; no longer needed.
59418         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
59419         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
59420         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
59421         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
59422         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
59423         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
59424         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
59425         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
59426         !defined(__c99))]: Include in this case too, since it's harmless
59427         now.
59428         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
59429         dangerous to do so.
59430         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
59431         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
59432         (_STDINT_MIN, _STDINT_MAX): New macros.
59433         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
59434         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
59435         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
59436         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
59437         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
59438         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
59439         macros, not typedefs; this simplifies things quite a bit.
59440         Use long int for all types narrower than int64_t.
59441         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
59442         Define in terms of long long int or int64_t or long int,
59443         not int64_t or int32_t.  This saves some compile-time testing.
59444         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
59445         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
59446         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
59447         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
59448         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
59449         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
59450         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
59451         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
59452         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
59453         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
59454         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
59455         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
59456         undef any previous version and define our own version, for
59457         simplicity and consistency with the new macros for types.
59458         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
59459         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
59460         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
59461         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
59462         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
59463         @WINT_T_SUFFIX@ to keep things simple here.
59464         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
59465         Simplify by assuming typical 8/16/32/64 host, since we're
59466         already doing that elsewhere anyway.
59467         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
59468         and assume long long int is 64 bits if available.  This
59469         speeds up 'configure'.
59470
59471 2006-07-01  Eric Blake  <ebb9@byu.net>
59472
59473         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
59474         Reported by Andreas Buening.
59475
59476 2006-07-01  Eric Blake  <ebb9@byu.net>
59477
59478         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
59479
59480 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
59481
59482         * lib/getaddrinfo.c: fixed typo
59483
59484 2006-06-29  Jim Meyering  <jim@meyering.net>
59485
59486         * modules/strftime (Maintainer): Add my name, since with the
59487         FPRINTFTIME changes strftime.c has forked from glibc.
59488
59489 2006-06-29  Eric Blake  <ebb9@byu.net>
59490
59491         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
59492
59493 2006-06-29  Eric Blake  <ebb9@byu.net>
59494
59495         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
59496
59497 2006-06-29  Eric Blake  <ebb9@byu.net>
59498
59499         * lib/stat_.h: New file.
59500
59501 2006-06-29  Eric Blake  <ebb9@byu.net>
59502
59503         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
59504         unused static function.
59505
59506 2006-06-29  Eric Blake  <ebb9@byu.net>
59507
59508         * doc/functions.texi (Function Portability): Document missing lstat
59509         on mingw.
59510
59511 2006-06-29  Eric Blake  <ebb9@byu.net>
59512
59513         * MODULES.html.sh: Add sys_stat.
59514         * modules/sys_stat: New module.
59515         * modules/mkstemp (Depends-on): Add sys_stat.
59516
59517 2006-06-29  Derek R. Price  <derek@ximbiot.com>
59518
59519         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
59520
59521 2006-06-29  Derek R. Price  <derek@ximbiot.com>
59522
59523         * m4/c-bs-a.m4: Removed.
59524
59525 2006-06-29  Derek R. Price  <derek@ximbiot.com>
59526
59527         * lib/strftime.c: Assume strftime() exists.
59528
59529 2006-06-29  Derek Price  <derek@ximbiot.com>
59530
59531         * modules/c-bs-a: Removed - \a is C89.
59532         * MODULES.html.sh: Remove c-bs-a.
59533
59534 2006-06-29  Bruno Haible  <bruno@clisp.org>
59535
59536         * modules/wcwidth (License): Change to LGPL.
59537
59538 2006-06-28  Simon Josefsson  <jas@extundo.com>
59539
59540         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
59541         on _WIN32.
59542
59543         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
59544         getnameinfo.
59545
59546 2006-06-28  Simon Josefsson  <jas@extundo.com>
59547
59548         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
59549
59550 2006-06-28  Simon Josefsson  <jas@extundo.com>
59551
59552         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
59553         functions there.  It will succeed on Windows XP, but on Windows
59554         2000 and (presumably) earlier, it will fail, and use the internal
59555         re-implementation.
59556         (use_win32_p): New function.
59557         (getaddrinfo): Use strtoul on servname, to support numeric ports.
59558         Support AI_NUMERICSERV to disable getservbyname.
59559         (getnameinfo): New function, only supports
59560         NI_NUMERICHOST|NI_NUMERICSERV for now.
59561
59562         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
59563         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
59564         getnameinfo.
59565
59566 2006-06-28  Eric Blake  <ebb9@byu.net>
59567
59568         * modules/wcwidth: New file.
59569         * modules/mbchar (Depends-on): Add wcwidth.
59570         * modules/mbswidth (Depends-on): Add wcwidth.
59571         * MODULES.html.sh: Add wcwidth.
59572
59573 2006-06-28  Eric Blake  <ebb9@byu.net>
59574
59575         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
59576         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
59577
59578 2006-06-28  Eric Blake  <ebb9@byu.net>
59579
59580         * lib/xvasprintf.h: Fix comments.
59581
59582 2006-06-28  Eric Blake  <ebb9@byu.net>
59583
59584         * lib/mbchar.h (wcwidth): Include wcwidth.h.
59585         * lib/mbswidth.c (wcwidth): Move from here...
59586         * lib/wcwidth.h: ...to this new file.
59587
59588 2006-06-28  Derek R. Price  <derek@ximbiot.com>
59589
59590         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
59591
59592         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
59593         it's obsolete.
59594         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
59595
59596 2006-06-28  Derek R. Price  <derek@ximbiot.com>
59597
59598         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
59599         Autoconf 2.60 says this stuff was obsolete.
59600
59601 2006-06-28  Bruno Haible  <bruno@clisp.org>
59602
59603         * modules/wcwidth (Files): Add m4/wchar_t.m4.
59604
59605 2006-06-28  Bruno Haible  <bruno@clisp.org>
59606
59607         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
59608         gt_TYPE_WCHAR_T.
59609
59610 2006-06-28  Bruno Haible  <bruno@clisp.org>
59611
59612         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
59613         declaration for wcwidth.
59614         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
59615
59616 2006-06-28  Bruno Haible  <bruno@clisp.org>
59617
59618         * lib/mkdtemp.c [MINGW]: Include <io.h>.
59619         (mkdir): Define using _mkdir.
59620
59621 2006-06-28  Bruno Haible  <bruno@clisp.org>
59622
59623         * lib/getaddrinfo.h: Fix POSIX URL.
59624         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
59625         _WIN32.
59626         (use_win32_p): Make static.
59627         (getaddrinfo): Reject service name if it is empty or does not consist
59628         solely of decimal digits, or if its value is > 65535.
59629         (getnameinfo): Remove useless casts.
59630
59631 2006-06-27  Simon Josefsson  <jas@extundo.com>
59632
59633         * modules/sys_select: New file, suggested by Bruno Haible, Paul
59634         Eggert and Martin Lambers.
59635
59636 2006-06-27  Simon Josefsson  <jas@extundo.com>
59637
59638         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
59639         Eggert and Martin Lambers.
59640
59641 2006-06-27  Bruno Haible  <bruno@clisp.org>
59642
59643         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
59644         result to 0, not to empty.
59645         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
59646
59647 2006-06-27  Bruno Haible  <bruno@clisp.org>
59648
59649         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
59650
59651 2006-06-26  Simon Josefsson  <jas@extundo.com>
59652
59653         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
59654         present.
59655
59656 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
59657
59658         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
59659         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
59660         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
59661
59662 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
59663
59664         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
59665
59666 2006-06-26  Bruno Haible  <bruno@clisp.org>
59667
59668         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
59669
59670 2006-06-26  Bruno Haible  <bruno@clisp.org>
59671
59672         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
59673
59674 2006-06-26  Bruno Haible  <bruno@clisp.org>
59675
59676         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
59677         SGI C compiler in pre-C99 mode.
59678         Suggested by Mark D. Baushke and Larry Jones.
59679
59680 2006-06-26  Bruno Haible  <bruno@clisp.org>
59681
59682         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
59683         WCHAR_MAX.
59684         Reported by Mark D. Baushke and Larry Jones.
59685
59686 2006-06-26  Bruno Haible  <bruno@clisp.org>
59687
59688         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
59689         in pre-C99 mode.
59690         Suggested by Mark D. Baushke and Larry Jones.
59691
59692 2006-06-23  Simon Josefsson  <jas@extundo.com>
59693             Bruno Haible  <bruno@clisp.org>
59694
59695         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
59696         Emit mostlyclean-local rule.
59697         (func_emit_tests_Makefile_am): Likewise.
59698         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
59699
59700 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
59701
59702         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
59703
59704 2006-06-23  Bruno Haible  <bruno@clisp.org>
59705
59706         * tests/test-stdint.c: Update to match ISO C 99 Technical
59707         Corrigendum 1.
59708
59709 2006-06-23  Bruno Haible  <bruno@clisp.org>
59710
59711         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
59712
59713 2006-06-23  Bruno Haible  <bruno@clisp.org>
59714
59715         * lib/stdint_.h: Treat IRIX like OpenBSD.
59716
59717 2006-06-23  Bruno Haible  <bruno@clisp.org>
59718
59719         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
59720         ISO C 99 Technical Corrigendum 1.
59721
59722 2006-06-22  Simon Josefsson  <jas@extundo.com>
59723
59724         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
59725         MinGW.
59726
59727 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59728
59729         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
59730         needed.  Some compiler complained about some of them.  Problem reported
59731         by Larry Jones in
59732         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
59733
59734 2006-06-21  Simon Josefsson  <jas@extundo.com>
59735
59736         * tests/test-getaddrinfo.c: New file.
59737
59738         * modules/getaddrinfo-tests: New file.
59739
59740         * MODULES.html.sh: Add inet_pton.
59741
59742         * modules/inet_pton: New file.
59743
59744 2006-06-21  Simon Josefsson  <jas@extundo.com>
59745
59746         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
59747         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
59748         of using the (limited) gnulib implementation on Windows XP.
59749
59750         * m4/inet_pton.m4: New file.
59751
59752 2006-06-21  Simon Josefsson  <jas@extundo.com>
59753
59754         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
59755         variable.
59756
59757         * lib/socket_.h: Don't define WINVER.
59758
59759         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
59760         slightly modified to work in gnulib.
59761
59762 2006-06-21  Simon Josefsson  <jas@extundo.com>
59763
59764         * doc/gnulib.texi (Windows sockets): Add.
59765
59766 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
59767
59768         * lib/read-file.c (fread_file): Start with buffer allocation of
59769         0 bytes rather than 1 byte; this simplifies the code.
59770         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
59771         code to free buffer and save/restore errno.
59772         (internal_read_file): Remove unused local.
59773
59774 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
59775
59776         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
59777         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
59778         Problem reported by Denis Excoffier in
59779         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
59780
59781 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59782
59783         * modules/sys_socket, modules/socklen: Include sys/types since
59784         FreeBSD 4.x's sys/socket.h needs it.
59785
59786 2006-06-19  Simon Josefsson  <jas@extundo.com>
59787
59788         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
59789
59790 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
59791
59792         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
59793
59794 2006-06-19  Bruno Haible  <bruno@clisp.org>
59795
59796         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
59797         and FULL_PATH_INTTYPES_H in angle brackets.
59798         Reported by Mark D. Baushke <mdb@gnu.org>.
59799
59800 2006-06-17  Eric Blake  <ebb9@byu.net>
59801
59802         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
59803         errno.
59804
59805 2006-06-17  Bruno Haible  <bruno@clisp.org>
59806
59807         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
59808         <sys/inttypes.h>.
59809
59810 2006-06-17  Bruno Haible  <bruno@clisp.org>
59811
59812         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
59813         whether errno is declared. Assume <errno.h> declares errno.
59814
59815 2006-06-17  Bruno Haible  <bruno@clisp.org>
59816
59817         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
59818
59819 2006-06-17  Bruno Haible  <bruno@clisp.org>
59820
59821         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
59822         problem on Solaris 2.5.1.
59823
59824 2006-06-16  Eric Blake  <ebb9@byu.net>
59825
59826         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
59827         * lib/unicodeio.c [!defined errno]: Likewise.
59828         * lib/strtol.c [!defined errno]: Likewise.
59829         * lib/strtod.c [!defined errno]: Likewise.
59830
59831 2006-06-15  Eric Blake  <ebb9@byu.net>
59832
59833         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
59834
59835 2006-06-15  Eric Blake  <ebb9@byu.net>
59836
59837         * config/srclist.txt (ssize_t.m4): Lose sync.
59838
59839 2006-06-15  Bruno Haible  <bruno@clisp.org>
59840
59841         * modules/stdint (Files): Include m4/full-header-path.m4,
59842         m4/size_max.m4, m4/wchar_t.m4.
59843         (Makefile.am): Many more substitutions.
59844         * modules/stdint-tests: New file.
59845         * tests/test-stdint.c: New file.
59846
59847 2006-06-15  Bruno Haible  <bruno@clisp.org>
59848
59849         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
59850         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
59851         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
59852         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
59853         gl_CHECK_TYPE_SAME): New macros.
59854
59855 2006-06-15  Bruno Haible  <bruno@clisp.org>
59856
59857         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
59858
59859 2006-06-15  Bruno Haible  <bruno@clisp.org>
59860
59861         * lib/stdint_.h: Rewritten to be fully auto-configured.
59862         Fixes bug on HP-UX/IA64.
59863
59864 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
59865
59866         * lib/getdate.y (__attribute__): Don't define if already defined.
59867         Problem reported by Larry Jones.
59868         * lib/utimens.c (__attribute__): Likewise.
59869
59870 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
59871
59872         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
59873         reported by Andreas Schwab.
59874
59875 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59876             Bruno Haible  <bruno@clisp.org>
59877
59878         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
59879         check for the declaration of strnlen and a run test that exposes the
59880         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
59881         rpl_strndup.
59882
59883 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59884             Bruno Haible  <bruno@clisp.org>
59885
59886         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
59887
59888 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59889
59890         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
59891         compile test, for Tru64 4.0D.
59892
59893 2006-05-28  Karl Berry  <karl@gnu.org>
59894
59895         * config/srclist.txt (printf-args.c): lose sync.
59896
59897 2006-05-26  Martin Lambers  <marlam@marlam.de>
59898
59899         * lib/getpass.c: Updates the test for the native W32 API, and adds
59900         missing includes, thus fixing compilation warnings.
59901
59902 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
59903
59904         * lib/exclude.c (exclude_fnmatch): New function.
59905         (excluded_file_name): Call exclude_fnmatch.
59906         * lib/exclude.h (excluded_file_name): New prototype
59907
59908 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
59909
59910         * lib/tempname.c (small_open, large_open): New macros.
59911         (__open, __open64) [!_LIBC]: Remove.
59912         (__gen_tempname): Use small_open and large_open instead of __open
59913         and __open64.  This fixes a portability bug on HP-UX 11.11i
59914         reported by Simon Wing-Tang in
59915         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
59916
59917 2006-05-24  Bruno Haible  <bruno@clisp.org>
59918
59919         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
59920         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
59921         Reported by Thorsten Maerz <torte@netztorte.de> via
59922         Aaron Stone <aaron@serendipity.cx>.
59923
59924 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
59925
59926         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
59927         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
59928         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
59929         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
59930         not really conditional on the cache.
59931         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
59932
59933 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
59934
59935         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
59936         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
59937         (my_usleep): Don't mishandle maximum value.
59938
59939 2006-05-19  Jim Meyering  <jim@meyering.net>
59940
59941         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
59942
59943 2006-05-17  Bruno Haible  <bruno@clisp.org>
59944
59945         Cygwin portability.
59946         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
59947
59948 2006-05-17  Bruno Haible  <bruno@clisp.org>
59949
59950         * lib/stdint_.h: Fix recognition of Cygwin.
59951
59952 2006-05-15  Bruno Haible  <bruno@clisp.org>
59953
59954         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
59955         on libtool patch by Ralf Wildenhues.
59956
59957 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
59958
59959         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
59960         test for C99 conformance; (bool) 0.5 is an integer constant
59961         expression, but (bool) -0.5 is not.  Problem reported by Fedor
59962         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
59963
59964 2006-05-11  Simon Josefsson  <jas@extundo.com>
59965
59966         * m4/xvasprintf.m4: Fix obvious typo.
59967
59968 2006-05-11  Jim Meyering  <jim@meyering.net>
59969
59970         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
59971         James Lemley.
59972
59973 2006-05-10  Simon Josefsson  <jas@extundo.com>
59974
59975         * lib/md4.c: Typo fix, update copyright years.
59976         (K1, K2): Don't use L because it turn computations into 64-bit on
59977         64-bit platforms.
59978
59979 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
59980
59981         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
59982         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
59983         unwanted sign propagation, e.g., on hosts with 64-bit int.
59984         There still are some problems with reeelly weird theoretical hosts
59985         (e.g., 33-bit int) but it's not worth worrying about now.
59986         * lib/sha1.c (rol): Likewise.
59987         (K1, K2, K3, K4): Remove unnecessary L suffix.
59988
59989 2006-05-10  Bruno Haible  <bruno@clisp.org>
59990
59991         * lib/des.c: Cast to avoid warnings.
59992
59993 2006-05-09  Bruno Haible  <bruno@clisp.org>
59994
59995         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
59996         (Depends-on): Depend also on xsize, stdarg.
59997         (configure.ac): Add gl_XVASPRINTF.
59998
59999 2006-05-09  Bruno Haible  <bruno@clisp.org>
60000
60001         * m4/xvasprintf.m4: New file.
60002
60003 2006-05-09  Bruno Haible  <bruno@clisp.org>
60004
60005         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
60006         (EOVERFLOW): Define fallback value.
60007         (xstrcat): New function.
60008         (xvasprintf): Recognize the special case of a string concatenation.
60009
60010 2006-05-08  Eric Blake  <ebb9@byu.net>
60011
60012         * gnulib-tool (func_version): Base copyright year on CVS date.
60013         (func_emit_copyright_notice): New function.
60014         (func_emit_lib_Makefile_am): Use it.
60015         (func_emit_tests_Makefile_am): Likewise.
60016         (func_import): Likewise.
60017
60018 2006-05-08  Bruno Haible  <bruno@clisp.org>
60019
60020         * modules/stdarg: New file.
60021         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
60022
60023 2006-05-08  Bruno Haible  <bruno@clisp.org>
60024
60025         * m4/stdarg.m4: New file, from GNU gettext.
60026
60027 2006-05-08  Bruno Haible  <bruno@clisp.org>
60028
60029         * config/srclist.txt (build-aux/config.rpath): different from latest
60030         release.
60031
60032 2006-05-08  Bruno Haible  <bruno@clisp.org>
60033
60034         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
60035
60036 2006-05-05  Jim Meyering  <jim@meyering.net>
60037
60038         * m4/warning.m4: New file, derived from bison's file by the same name.
60039
60040 2006-05-03  Bruno Haible  <bruno@clisp.org>
60041
60042         * lib/stdint_.h: Shorter URL.
60043         * lib/inttypes.h: Likewise.
60044
60045 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60046
60047         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
60048
60049 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60050
60051         * lib/verify.h: Document the internals better.  Most of this change
60052         was written by Bruno Haible.
60053
60054 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60055
60056         * doc/verify.texi: New file, partly based on a proposal by
60057         Bruno Haible.
60058
60059 2006-05-02  Bruno Haible  <bruno@clisp.org>
60060
60061         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
60062         test from here...
60063         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
60064
60065 2006-04-29  Bruno Haible  <bruno@clisp.org>
60066
60067         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
60068         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
60069
60070 2006-04-29  Bruno Haible  <bruno@clisp.org>
60071
60072         * gnulib-tool: Make --update option actually work.
60073
60074 2006-04-29  Bruno Haible  <bruno@clisp.org>
60075
60076         * doc/gcd.texi: New file.
60077         * doc/gnulib.texi: Include it.
60078
60079 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
60080
60081         * lib/getdate.y (get_date): When adding relative date, start with the
60082         initial time, not with the result of the first mktime call.
60083
60084 2006-04-25  Bruno Haible  <bruno@clisp.org>
60085
60086         * gnulib-tool (func_import): Output the include directives in three
60087         blocks, sorted separately.
60088         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60089
60090 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
60091
60092         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
60093         to define main with arguments, for C++.  Reported by Eric Blake.
60094         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
60095         Prefer 'int main ()' to 'int main (void)', for C++.
60096         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
60097         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
60098         for 'main', for C99 and C++.
60099
60100 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
60101
60102         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
60103         Don't assume that exit status -1 is valid.
60104         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60105         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
60106         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
60107         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
60108         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
60109         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
60110         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
60111         functions can be used without declaring them, or that you can
60112         exit with status -1.
60113         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
60114
60115 2006-04-24  Karl Berry  <karl@gnu.org>
60116
60117         * config/srclist.txt (longdouble.m4): sync lost.
60118
60119 2006-04-24  Eric Blake  <ebb9@byu.net>
60120
60121         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
60122
60123 2006-04-24  Bruno Haible  <bruno@clisp.org>
60124
60125         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
60126         poll() implementation in AIX.
60127         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60128
60129 2006-04-24  Bruno Haible  <bruno@clisp.org>
60130
60131         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
60132         assigned exactly once.
60133
60134 2006-04-23  Claudio Fontana  <claudio@gnu.org>
60135             Bruno Haible  <bruno@clisp.org>
60136
60137         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
60138         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
60139         for AM_CPPFLAGS.
60140
60141 2006-04-23  Bruno Haible  <bruno@clisp.org>
60142
60143         * modules/copy-file: Depend on unistd.
60144         * modules/execute: Likewise.
60145         * modules/fatal-signal: Likewise.
60146         * modules/findprog: Likewise.
60147         * modules/mkdtemp : Likewise.
60148         * modules/pipe: Likewise.
60149         * modules/wait-process: Likewise.
60150
60151 2006-04-23  Bruno Haible  <bruno@clisp.org>
60152
60153         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
60154         condition was already detected.
60155         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60156
60157 2006-04-23  Bruno Haible  <bruno@clisp.org>
60158
60159         * lib/copy-file.c: Include <unistd.h> unconditionally.
60160         * lib/execute.c: Likewise.
60161         * lib/fatal-signal.c: Likewise.
60162         * lib/findprog.c: Likewise.
60163         * lib/mkdtemp.c: Likewise.
60164         * lib/pipe.h: Likewise.
60165         * lib/pipe.c: Likewise.
60166         * lib/wait-process.h: Likewise.
60167
60168 2006-04-23  Bruno Haible  <bruno@clisp.org>
60169
60170         * gnulib-tool (func_usage): Fix --import description. Document
60171         --update.
60172         (func_import): Create temporary file in a temporary directory, if
60173         --dry-run is specified. Silence errors from 'grep' when there are no
60174         m4 files in $m4dir.
60175         (func_create_testdir): Silence errors from 'grep' when there are no
60176         m4 files in $m4dir.
60177         Reported by Karl Berry <karl@freefriends.org>.
60178
60179 2006-04-20  Bruno Haible  <bruno@clisp.org>
60180
60181         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
60182         one argument, so that the code will be portable to Autoconf 2.60.
60183         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
60184         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
60185         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
60186
60187 2006-04-19  Derek Price  <derek@ximbiot.com>
60188             Eric Blake  <ebb9@byu.net>
60189
60190         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
60191         rather than "/full/path.h".  Update comment to match.  Shorten &
60192         generalize m4_translit call via AS_TR_CPP.
60193
60194 2006-04-19  Derek Price  <derek@ximbiot.com>
60195             Eric Blake  <ebb9@byu.net>
60196
60197         * lib/inttypes.h: Correct grammar in comment.
60198
60199 2006-04-18  Derek Price  <derek@ximbiot.com>
60200             Paul Eggert  <eggert@cs.ucla.edu>
60201
60202         * modules/inttypes: New file.
60203         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
60204
60205 2006-04-18  Derek Price  <derek@ximbiot.com>
60206             Paul Eggert  <eggert@cs.ucla.edu>
60207
60208         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
60209         New files.
60210
60211 2006-04-18  Derek Price  <derek@ximbiot.com>
60212             Paul Eggert  <eggert@cs.ucla.edu>
60213
60214         * lib/inttypes.h: New file.
60215         * lib/strtoimax.c: Assume <inttypes.h>.
60216
60217 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
60218
60219         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
60220         isn't mounted.  Problem reported by Kir Kolyshkin.
60221
60222 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60223
60224         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
60225         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
60226         Derek R. Price.
60227         * lib/regex.h (RE_DUP_MAX): Update comment to match current
60228         implementation.
60229
60230 2006-04-12  Eric Blake  <ebb9@byu.net>
60231
60232         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
60233         is now done automatically by the corresponding Autoconf macro.
60234
60235 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
60236
60237         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
60238         time_r.h.
60239
60240 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60241
60242         Merge regex changes from libc, removing some of our
60243         POSIX-conformance changes that were rejected and redoing them in a
60244         less-intrusive way.
60245
60246         * lib/regcomp.c (re_compile_internal, init_dfa):
60247         Length arg is now size_t, not Idx.  All uses changed.
60248         (peek_token): Forward decl now says internal_function.
60249         (__re_error_msgid, __re_error_msgid_idx):
60250         Now static rather than extern with attribute_hidden.
60251         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
60252         For some reason libc prefers K&R style defns for external functions.
60253         (regerror) [!defined _LIBC]: Likewise.
60254         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
60255         (seek_collating_symbol_entry, lookup_collation_sequence_value):
60256         (build_range_exp, build_collating_symbol):
60257         Use K&R-style defn.
60258         (re_compile_fastmap): Use '\0' to memset, not 0.
60259         (utf8_sb_map): Make the calculations more obvious.
60260         (init_dfa, parse_bracket_exp, build_charclass_op):
60261         Call calloc and cast result, as glibc does.
60262         (init_word_char, fetch_token, peek_token, peek_token_bracket):
60263         (build_range_exp, build_collating_symbol):
60264         Now internal functions.
60265
60266         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
60267
60268         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
60269         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
60270         Don't depend on VMS; depend on __VMS instead, for POSIX
60271         namespace cleanness.
60272         (regoff_t): Define to ssize_t, not long int.
60273
60274         Remove the REG_ macros named below.  Instead, make the old names
60275         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
60276         __USE_GNU_REGEX.
60277         (REG_BACKSLASH_ESCAPE_IN_LISTS):
60278         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
60279         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
60280         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
60281         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
60282         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
60283         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
60284         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
60285         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
60286         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
60287         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
60288         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
60289         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
60290         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
60291         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
60292         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
60293         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
60294         (REG_NREGS):
60295         Remove.  All uses replaced by the old RE_* names.
60296         (RE_BACKSLASH_ESCAPE_IN_LISTS):
60297         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
60298         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
60299         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
60300         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
60301         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
60302         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
60303         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
60304         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
60305         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
60306         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
60307         Don't bother having these macros be independent of each others'
60308         values, since they no longer exist in the POSIX name space.
60309
60310         Rename the following member names back to their old names,
60311         unless !__USE_GNU_REGEX.  All uses changed back.
60312         (buffer): Renamed from re_buffer.
60313         (allocated): Renamed from re_allocated.
60314         (used): Renamed from re_used.
60315         (syntax): Renamed from re_syntax.
60316         (fastmap): Renamed from re_fastmap.
60317         (translate): Renamed from re_translate.
60318         (can_be_null): Renamed from re_can_be_null.
60319         (regs_allocated): Renamed from re_regs_allocated.
60320         (fastmap_accurate): Renamed from re_fastmap_accurate.
60321         (no_sub): Renamed from re_no_sub.
60322         (not_bol): Renamed from re_not_bol.
60323         (not_eol): Renamed from re_not_eol.
60324         (newline_anchor): Renamed from re_newline_anchor.
60325         (num_regs): Renamed from rm_num_regs.
60326         (start): Renamed from rm_start.
60327         (end): Renamed from rm_end.
60328
60329         (free_state): Move up a bit.
60330
60331         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
60332         #define to be empty.
60333         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
60334         when that is what is intended.
60335         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
60336         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
60337         (MAX): New macro.
60338         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
60339         All uses changed back to re_malloc, etc.  It's now the caller's
60340         responsibility to check for overflow; all callers changed.
60341         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
60342         (re_x2nrealloc): Remove.
60343         (free_state): Remove decl.
60344
60345         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
60346         (re_set_registers, re_exec):
60347         Use K&R-style defn.
60348
60349         2006-01-31  Roland McGrath  <roland@redhat.com>
60350
60351         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
60352         Reported by Mike Frysinger <vapier@gentoo.org>.
60353
60354         2006-01-15  Andreas Jaeger  <aj@suse.de>
60355
60356         [BZ #1950]
60357         * lib/regex_internal.c (re_string_reconstruct): Adjust for
60358         build_wcs_upper_buffer change.
60359         (build_wcs_upper_buffer): Change return type.
60360
60361         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
60362
60363         * lib/regex_internal.h: Include <stdint.h> if available.
60364
60365         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
60366
60367         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
60368
60369         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
60370
60371         * lib/regcomp.c: Adjust for changed secondary hash function.
60372
60373         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
60374
60375         * lib/regex.h: Pretty printing.
60376         Clean up namespace a bit.
60377
60378         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
60379
60380         * lib/regexec.c (update_cur_sifted_state, check_arrival,
60381         check_arrival_add_next_nodes): Avoid using uninitialized variable.
60382
60383         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
60384                     Ulrich Drepper  <drepper@redhat.com>
60385
60386         [BZ #1302]
60387         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
60388         changed.
60389         (bitset_word_t): Renamed from bitset_word.  All uses changed.
60390
60391         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
60392
60393         [BZ #281]
60394         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
60395         * lib/regcomp.c: Remove unnecessary uses of
60396         unsigned RE_TRANSLATE_TYPE.
60397         * lib/regex_internal.h: Likewise.
60398         * lib/regex_internal.c: Likewise.
60399         * lib/regexec.c: Likewise.
60400         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
60401
60402         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
60403
60404         * lib/regexec.c (find_recover_state): Remove unnecessary
60405         initialization.
60406         (transit_state_bkref): Make DFA a const pointer.
60407         (get_subexp): Likewise.
60408         (check_arrival): Likewise.
60409         (update_cur_sifted_state): Likewise.
60410         (re_search_internal): Likewise.
60411         (prune_impossible_nodes): Likewise.
60412         (acquire_init_state_context): Likewise.
60413         (proceed_next_node): Likewise.
60414         (set_regs): Likewise.
60415         (free_fail_stack_return): Likewise.
60416         (check_arrival_expand_ecl): Mark DFA parameter as const.
60417         (check_arrival_expand_ecl_sub): Likewise.
60418         (check_subexp_limits): Likewise.
60419         (sub_epsilon_src_nodes):  Likewise.
60420         (add_epsilon_src_nodes):  Likewise.
60421         (merge_state_array): Likewise.
60422         (update_regs): Likewise.
60423         (build_trtable): Likewise.
60424         (sift_states_backward): Mark MCTX parameter as const.
60425         (build_sifted_states): Likewise.
60426         (update_cur_sifted_state): Likewise.
60427         (sift_states_mkref): Likewise.
60428         (check_arrival_expand_ecl): Mark eclosure as const.
60429         (check_dst_limits_calc_pos_1): Likewise.
60430         * lib/regex_internal.h (re_match_context_t): Make dfa a const
60431         pointer.
60432
60433         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
60434
60435         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
60436         (transit_state_sb): Likewise.
60437         (transit_state_mb): Likewise.
60438         (sift_states_iter_mb): Likewise.
60439         (check_arrival_add_next_nodes): Likewise.
60440         (check_node_accept_bytes): Change first parameter to pointer-to-const.
60441         [_LIBC] (re_search_2_stub): Use mempcpy.
60442
60443         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
60444         mbrtowc for very simple UTF-8 case.
60445
60446         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
60447         a pointer-to-const.
60448         (re_acquire_state_context): Likewise.
60449         * lib/regex_internal.h: Adjust prototypes.
60450
60451         * lib/regex.c: Prevent using C++ compilers.
60452
60453         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
60454         (re_acquire_state_context): Likewise.
60455
60456 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60457
60458         * modules/regex (Depends-on): Add ssize_t.
60459
60460 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60461
60462         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
60463         translation table.
60464
60465 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60466
60467         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
60468
60469 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
60470             Bruno Haible  <bruno@clisp.org>
60471
60472         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
60473         <sys/types.h> and <inttypes.h>.
60474
60475 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60476
60477         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
60478         `__error_t_defined', so argp.h will not typedef the former.
60479
60480 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
60481
60482         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
60483         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
60484         glibc names.  Even if glibc is changed to conform to POSIX, the
60485         traditional names will be available anyway, since regex depends on
60486         the extensions module.  Also, fix a longstanding typo in the
60487         implementation of Spencer ERE test #75 from grep 2.3.  Problems
60488         reported by Emanuele Giaquinta.  Also, change sense of cached
60489         variable, so that the message makes sense.
60490
60491 2006-03-24  Simon Josefsson  <jas@extundo.com>
60492
60493         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
60494         including some doc fixes.
60495         (base64_encode_alloc): Fix +1 bug on allocation failures.
60496
60497 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60498
60499         * lib/base64.c (base64_encode): Do not read past end of array with
60500         unsanitized input on systems with CHAR_BIT > 8.
60501
60502 2006-03-24  Eric Blake  <ebb9@byu.net>
60503
60504         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
60505
60506 2006-03-22  Karl Berry  <karl@gnu.org>
60507
60508         * config/srclist.txt (*setenv.[ch]): get from coreutils.
60509         * config/srclistvars.sh (COREUTILS): new var.
60510
60511 2006-03-17  Jim Meyering  <jim@meyering.net>
60512
60513         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
60514         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
60515
60516 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
60517
60518         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
60519         no longer needs it.  Instead, check that regoff_t is as least
60520         as wide as ptrdiff_t.
60521
60522         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
60523         so that our regex.h stays compatible with the installed regex.
60524         This is helpful for installers who configure --without-included-regex.
60525         Problem reported by Emanuele Giaquinta.
60526
60527 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
60528
60529         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
60530         Typedef to long int, not to off_, as POSIX will likely change
60531         in that direction.
60532
60533 2006-03-15  Eric Blake  <ebb9@byu.net>
60534
60535         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
60536
60537 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
60538
60539         * lib/argp-help.c (validate_uparams): Fix typo
60540         * lib/argp-parse.c (argp_default_options): Consistently begin help
60541         messages with a lowercase letter.
60542
60543 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
60544
60545         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
60546         overrun buffers and shouldn't be used (much as gets shouldn't be
60547         used).
60548         * lib/time_r.c (asctime_r, ctime_r): Likewise.
60549
60550 2006-03-08  Simon Josefsson  <jas@extundo.com>
60551
60552         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
60553         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60554
60555 2006-03-08  Simon Josefsson  <jas@extundo.com>
60556
60557         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
60558         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60559
60560 2006-03-08  Simon Josefsson  <jas@extundo.com>
60561
60562         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
60563         signal that configure disabled the device.
60564
60565 2006-03-08  Simon Josefsson  <jas@extundo.com>
60566
60567         * build-aux/maint.mk: Fix refresh-po, to handle no translated
60568         languages.
60569
60570 2006-03-07  Simon Josefsson  <jas@extundo.com>
60571
60572         * modules/getopt (Depends-on): Add unistd.
60573
60574         * modules/unistd: New file.
60575
60576 2006-03-07  Simon Josefsson  <jas@extundo.com>
60577
60578         * modules/gc-random: New file.
60579
60580 2006-03-07  Simon Josefsson  <jas@extundo.com>
60581
60582         * m4/unistd_h.m4: New file.
60583
60584 2006-03-07  Simon Josefsson  <jas@extundo.com>
60585
60586         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
60587         test to be side-effect free by storing the result in the cache
60588         variable gl_cv_lib_readline, and moving the assignment of
60589         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
60590         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60591
60592 2006-03-07  Simon Josefsson  <jas@extundo.com>
60593
60594         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
60595         error on missing devices (the functions will return an error).
60596
60597         * m4/gc.m4: Move random stuff to gc-random.m4
60598
60599 2006-03-07  Simon Josefsson  <jas@extundo.com>
60600
60601         * lib/unistd_.h: New file.
60602
60603 2006-03-07  Simon Josefsson  <jas@extundo.com>
60604
60605         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
60606
60607 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
60608
60609         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
60610         Problem reported by Juan Manuel Guerrero.
60611
60612 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
60613
60614         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
60615         the unistd module.
60616         * lib/getlogin_r.c: Likewise.
60617         * lib/getlogin_r.h: Likewise.
60618         * lib/glob.c: Likewise.
60619         * lib/pagealign_alloc.c: Likewise.
60620         * lib/unistd_.h: Remove; no longer needed.
60621
60622 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
60623
60624         * MODULES.html.sh (Support for systems lacking POSIX:2001):
60625         Add unistd.
60626         * modules/c-stack (Depends-on): Add unistd.
60627         * modules/getlogin_r: Likewise.
60628         * modules/glob: Likewise.
60629         * modules/pagealign_alloc: Likewise.
60630         * modules/unistd (Files): Remove lib/unistd_.h.
60631         (EXTRA_DIST): Remove.
60632         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
60633         need unistd_.h.
60634         (MOSTLYCLEANFILES): Remove unistd.h-t.
60635
60636 2006-03-03  Simon Josefsson  <jas@extundo.com>
60637
60638         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
60639
60640 2006-03-03  Simon Josefsson  <jas@extundo.com>
60641
60642         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
60643         libidn and bison.
60644
60645 2006-03-03  Simon Josefsson  <jas@extundo.com>
60646
60647         * build-aux/maint.mk: Add indent target.
60648
60649 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
60650
60651         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
60652         our replacement poll.h in any case, to avoid a differing
60653         declaration from a system header.  Seen on AIX.
60654
60655 2006-03-01  Simon Josefsson  <jas@extundo.com>
60656
60657         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
60658         <kasal@ucw.cz>.
60659
60660 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60661
60662         * modules/gettime (Depends-on): Add extensions module.
60663         * modules/nanosleep (Depends-on): Likewise.
60664         * modules/settime (Depends-on): Likewise.
60665
60666 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60667
60668         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
60669         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
60670         pedantically.
60671         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60672         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
60673
60674         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
60675         not "==".  Reported by Ralf Wildenhues.
60676
60677 2006-03-01  Karl Berry  <karl@gnu.org>
60678
60679         * doc/Copyright/request-*: new files, synced from gnuorg.
60680
60681 2006-03-01  Karl Berry  <karl@gnu.org>
60682
60683         * config/srclist.txt (Copyright/*): new entries.
60684
60685 2006-02-28  Simon Josefsson  <jas@extundo.com>
60686
60687         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
60688
60689 2006-02-27  Simon Josefsson  <jas@extundo.com>
60690
60691         * lib/base64.h: Indent #define's.  From Jim Meyering
60692         <jim@meyering.net>.
60693
60694 2006-02-27  Jim Meyering  <jim@meyering.net>
60695
60696         Revert the change of 2006-02-24, so these files can continue
60697         to be sync'd from gettext.
60698         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
60699         of `config.h'.
60700
60701 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
60702
60703         * modules/intprops: New file.
60704         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
60705         Add intprops.
60706         * modules/getloadavg (Files): Remove lib/intprops.h.
60707         (Depends-on): Add intprops.
60708         * modules/human: Likewise.
60709         * modules/inttostr: Likewise.
60710         * modules/openat: Likewise.
60711         * modules/sig2str: Likewise.
60712         * modules/userspec: Likewise.
60713         * modules/utimecmp: Likewise.
60714         * modules/xnanosleep: Likewise.
60715         * modules/xstrtol: Likewise.
60716
60717 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
60718
60719         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
60720         * modules/lock-tests (TESTS): Use $(EXEEXT).
60721         * modules/tls-tests: Likewise.
60722         * modules/argp-tests: Likewise.
60723         (check_PROGRAMS): New var, replacing...
60724         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
60725
60726 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60727
60728         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
60729         `config.h'.
60730
60731 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
60732
60733         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
60734
60735 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60736
60737         Sync from coreutils.
60738         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
60739         gl_CHDIR_SAFER.
60740
60741 2006-02-22  Jim Meyering  <jim@meyering.net>
60742
60743         Sync from coreutils.
60744         * m4/chdir-safer.m4: New file.
60745
60746 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
60747
60748         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
60749         AT_FDCWD exceeds INT_MAX.
60750         * lib/openat.h (AT_FDCWD): Likewise.
60751
60752 2006-02-17  Eric Blake  <address@hidden>
60753
60754         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
60755
60756 2006-02-16  Simon Josefsson  <jas@extundo.com>
60757
60758         * modules/getaddrinfo (Depends-on): Add sys_socket.
60759
60760 2006-02-15  Simon Josefsson  <jas@extundo.com>
60761
60762         * build-aux/maint.mk: Add dsyntax-check rule.
60763
60764 2006-02-15  Eric Blake  <ebb9@byu.net>
60765
60766         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
60767         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
60768         'present but cannot compile' warnings on cygwin.
60769         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
60770         use ws2tcpip.h if sys/socket.h works.
60771         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
60772         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
60773
60774 2006-02-14  Simon Josefsson  <jas@extundo.com>
60775
60776         * modules/maintainer-makefile (Files): Rename.
60777
60778         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
60779         and (the local) Makefile.cfg to maint-cfg.mk.
60780
60781         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
60782         to the latter.
60783
60784         * modules/maintainer-makefile: New module.
60785
60786         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
60787         severaly stripped to make it possible to build it up from scratch
60788         with reliable tests.
60789
60790         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
60791         fixes to permit overriding the default actions when configure and
60792         makefile are not available.
60793
60794 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
60795
60796         Sync from coreutils.
60797         * modules/lstat (Depends-on): Don't depend on xalloc.
60798         (License): Change from GPL to LGPL, since this is now simply a
60799         replacement for a libc function.
60800
60801 2006-02-14  Jim Meyering  <jim@meyering.net>
60802
60803         Sync from coreutils.
60804
60805         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
60806         failure on deficient systems, and simplify gnulib lgpl dependencies.
60807         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
60808         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
60809
60810         * lib/xalloc-die.c: Remove unused definition of N_.
60811
60812 2006-02-14  Jim Meyering  <jim@meyering.net>
60813
60814         Sync from coreutils.
60815         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
60816         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
60817         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
60818         double-quote uses of that variable, to accommodate the rare case in
60819         which getmntent is available in none of the libraries checked.  This
60820         happens at least on FreeBSD 5.0.
60821
60822 2006-02-13  Simon Josefsson  <jas@extundo.com>
60823
60824         * gnulib-tool (Usage): Fix --import, from
60825         karl@freefriends.org (Karl Berry).
60826
60827 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
60828
60829         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
60830
60831 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
60832
60833         * lib/argp-namefrob.h: Restore changes accidentally lost during the
60834         "autoupdate" on 2005-12-12.
60835
60836 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
60837
60838         * modules/closeout (Depends-on): Remove atexit.
60839
60840 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
60841
60842         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
60843         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
60844
60845 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
60846
60847         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
60848         __EXTENSIONS__ if this causes compilation to fail.  Problem
60849         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
60850         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
60851
60852 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
60853
60854         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
60855         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
60856         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
60857         All uses changed.
60858
60859 2006-01-26  Simon Josefsson  <jas@extundo.com>
60860
60861         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
60862         prototype is visible on mingw32.
60863
60864         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
60865         for mingw32.
60866
60867         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
60868         mingw32).
60869
60870 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
60871
60872         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
60873         attempt to open for write; this always fails, at least on POSIX
60874         hosts.  This reinstates the 2006-01-09 change, which was
60875         inadvertently removed.
60876
60877 2006-01-26  Bruno Haible  <bruno@clisp.org>
60878
60879         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
60880         Reported by Paul Eggert.
60881
60882 2006-01-26  Bruno Haible  <bruno@clisp.org>
60883             Paul Eggert  <eggert@cs.ucla.edu>
60884
60885         * lib/stdbool_.h (_Bool)
60886         [(! (defined __cplusplus || defined __BEOS__)
60887           && !defined __GNUC__
60888           && !(defined __HP_cc || defined __xlc__
60889                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
60890                || defined __sgi))]:
60891         #define to signed char in these cases too; this simplifies
60892         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
60893         etc., separately) and makes it more conservative.
60894
60895 2006-01-25  Simon Josefsson  <jas@extundo.com>
60896
60897         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
60898         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
60899         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
60900
60901 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
60902
60903         * lib/argp-namefrob.h: Bugfix. Remove stray #
60904
60905 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
60906
60907         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
60908         so that we test the test.
60909         Check for yet another HP-UX cc bug involving *bool |= bool.
60910
60911 2006-01-25  Karl Berry  <karl@gnu.org>
60912
60913         * config/srclist.txt (vasnprintf.c): sync lost.
60914
60915 2006-01-25  Jim Meyering  <jim@meyering.net>
60916
60917         Sync from the stable (b5) branch of coreutils:
60918
60919         * lib/fts.c (fts_children): Don't let close() clobber errno from
60920         failed fchdir().
60921
60922         * lib/fts.c (fts_stat): When following a symlink-to-directory,
60923         don't necessarily interpret stat-fails+lstat-succeeds as indicating
60924         a dangling symlink.  That can also happen at least for ELOOP.
60925         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
60926         FYI, this bug predates the inclusion of fts.c in coreutils.
60927
60928         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
60929         in their own block, so pre-c99 compilers don't object.
60930
60931         Avoid the double-free (first in fts_read, second in fts_close) that
60932         would occur when an `active' directory is made inaccessible (e.g.,
60933         via chmod a-x) during a traversal.
60934         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
60935         before returning.  Reproduce this failure by
60936         mkdir -p a/b; cd a; chmod a-x . b
60937         Reported by Stavros Passas.
60938
60939 2006-01-25  Jim Meyering  <jim@meyering.net>
60940
60941         * lib/fileblocks.c: Remove more useless parentheses.
60942         * lib/readutmp.h: Likewise.
60943
60944 2006-01-25  Bruno Haible  <bruno@clisp.org>
60945
60946         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
60947         warnings.
60948         Reported by Paul Eggert.
60949
60950 2006-01-25  Bruno Haible  <bruno@clisp.org>
60951
60952         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
60953         rid of a trap command. For Solaris sh.
60954         Reported by Mark D. Baushke <mdb@gnu.org>.
60955
60956 2006-01-24  Simon Josefsson  <jas@extundo.com>
60957
60958         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
60959         Bruno.
60960
60961 2006-01-24  Karl Berry  <karl@gnu.org>
60962
60963         * config/srclist.txt (argp-namefrob.h): sync lost.
60964
60965 2006-01-24  Jim Meyering  <jim@meyering.net>
60966
60967         * modules/openat (Files): Add lib/intprops.h.
60968         From Mark D. Baushke.
60969
60970 2006-01-24  Jim Meyering  <jim@meyering.net>
60971
60972         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
60973         Reported by Mark D. Baushke.
60974
60975 2006-01-24  Jim Meyering  <jim@meyering.net>
60976
60977         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
60978
60979 2006-01-24  Bruno Haible  <bruno@clisp.org>
60980
60981         * modules/strnlen (Maintainer): Change from glibc to all.
60982
60983 2006-01-24  Bruno Haible  <bruno@clisp.org>
60984
60985         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
60986         Patch by Paul Eggert.
60987
60988 2006-01-24  Bruno Haible  <bruno@clisp.org>
60989
60990         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
60991         already has it.
60992         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
60993         2005-11-26.
60994
60995         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
60996         'signed char' to avoid problems with the built-in _Bool type.
60997         Reported by Paul Eggert on 2005-11-26.
60998
60999 2006-01-24  Bruno Haible  <bruno@clisp.org>
61000
61001         * gnulib-tool (func_import): Avoid constructing complicated sed
61002         expressions inside backquote.
61003         Report and solution by Mark D. Baushke <mdb@gnu.org>.
61004
61005 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
61006
61007         These changes imported from libc.
61008         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
61009         test and two separate function calls.
61010         * lib/strndup.c (__strndup): Add libc_hidden_def.
61011
61012 2006-01-23  Simon Josefsson  <jas@extundo.com>
61013
61014         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
61015         Remove the test_*_SOURCES variable: automake infers it by default.
61016         * modules/tls-tests: Likewise.
61017
61018 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61019
61020         Work around porting bugs reported by Dieter in
61021         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
61022         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
61023         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
61024         Include "getopt.h" first, to check interface.
61025         (getenv): Declare only if defined HAVE_DECL_GETENV &&
61026         !HAVE_DECL_GETENV.
61027         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
61028         (__strndup): Revert to K&R-style function dfns, the glibc style.
61029         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
61030         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
61031         Include strnlen.h first, to get prototype properly.
61032         (strnlen): Renamed from __strnlen.
61033         Remove weak alias.
61034
61035 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61036
61037         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
61038
61039 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61040
61041         * config/srclist.txt: Adjust to reflect glibc reorganization.
61042         This affects only comments.
61043
61044 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61045
61046          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
61047          Reported by Bruce Korb <bkorb@gnu.org>.
61048
61049 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
61050
61051         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
61052         to pacify gcc -Wswitch-default.
61053
61054 2006-01-22  Bruno Haible  <bruno@clisp.org>
61055
61056         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
61057         temporary buffer for sprintf, take into account the precision also
61058         for 'd', 'i', 'u', 'o', 'x', 'X'.
61059
61060 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
61061
61062         * modules/argp-tests: New module
61063         * tests/test-argp.c: New file
61064         * tests/test-argp-2.sh: New file
61065
61066 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
61067
61068         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
61069         (__argp_base_name): Removed
61070         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
61071         typo.
61072         (__argp_base_name): Provide macro definition or extern declaration
61073         depending on the configuration
61074
61075 2006-01-20  Simon Josefsson  <jas@extundo.com>
61076
61077         * modules/inet_ntop (Depends-on): Depend on sys_socket.
61078
61079 2006-01-20  Simon Josefsson  <jas@extundo.com>
61080
61081         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
61082
61083 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61084
61085         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
61086         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
61087         Suggested by Bruno Haible.
61088
61089 2006-01-20  Karl Berry  <karl@gnu.org>
61090
61091         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
61092         until changes propagate, I guess.
61093
61094 2006-01-19  Simon Josefsson  <jas@extundo.com>
61095
61096         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
61097
61098 2006-01-19  Simon Josefsson  <jas@extundo.com>
61099
61100         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
61101
61102 2006-01-19  Simon Josefsson  <jas@extundo.com>
61103
61104         * gnulib-tool: Set check_PROGRAMS.
61105
61106         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
61107         modules/des-tests, modules/gc-arcfour-tests,
61108         modules/gc-arctwo-tests, modules/gc-des-tests,
61109         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
61110         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
61111         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
61112         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
61113         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
61114         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
61115         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
61116         test_*_SOURCES.
61117
61118 2006-01-18  Simon Josefsson  <jas@extundo.com>
61119
61120         * modules/socklen (Depends-on): Depend on sys_socket.
61121
61122 2006-01-18  Simon Josefsson  <jas@extundo.com>
61123
61124         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
61125         modules/des-tests, modules/gc-arcfour-tests,
61126         modules/gc-arctwo-tests, modules/gc-des-tests,
61127         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
61128         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
61129         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
61130         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
61131         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
61132         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
61133         $(EXEEXT) to automake TESTS variable, for mingw32.
61134
61135 2006-01-17  Simon Josefsson  <jas@extundo.com>
61136
61137         * modules/socklen (Include): Need sys/socket.h.
61138
61139 2006-01-17  Bruno Haible  <bruno@clisp.org>
61140
61141         * modules/ssize_t (Include): Add <sys/types.h>.
61142
61143 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
61144
61145         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
61146         it's not portable and it doesn't work with cross-compiles.
61147         Problem reported by Bruno Haible.  Fix missing-$ typo in
61148         'test "gl_cv_ignore_unused_libraries" ...' that prevented
61149         -zignore from being used with Sun's C compiler.
61150
61151 2006-01-12  Simon Josefsson  <jas@extundo.com>
61152
61153         * lib/base64.c: Fix warning, reported by Bruno Haible
61154         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
61155
61156 2006-01-12  Bruno Haible  <bruno@clisp.org>
61157
61158         * modules/ldd: New file.
61159         * build-aux/ldd.sh.in: New file.
61160         * MODULES.html.sh (Support for building libraries and executables): Add
61161         ldd.
61162
61163 2006-01-12  Bruno Haible  <bruno@clisp.org>
61164
61165         * m4/ldd.m4: New file.
61166
61167 2006-01-12  Bruno Haible  <bruno@clisp.org>
61168
61169         * gnulib-tool (func_import, func_create_testdir): Don't go into an
61170         endless loop while replacing $auxdir with build-aux.
61171
61172 2006-01-11  Simon Josefsson  <jas@extundo.com>
61173
61174         * lib/stdint_.h (SIZE_MAX): Add missing (.
61175
61176 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
61177
61178         Sync from coreutils.
61179         * lib/md5.c: Fix commentary typos.
61180         (alignof, UNALIGNED_P): No need for a GCC-specific version.
61181         * lib/md5.h (__attribute__): Remove; unused.
61182         * lib/sha1.c: Fix commentary to match md5 better.
61183         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
61184         so that we don't need to worry about alignment.  All uses changed.
61185         This merges the 2005-10-28 md5 change into sha1.
61186
61187 2006-01-11  Jim Meyering  <jim@meyering.net>
61188
61189         Sync from coreutils.
61190         * lib/md5.c (OP): Fix spacing.
61191
61192 2006-01-11  Bruno Haible  <bruno@clisp.org>
61193
61194         Ensure automatic ordering between gl_LOCK and gl_ARGP.
61195         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
61196         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
61197
61198 2006-01-11  Bruno Haible  <bruno@clisp.org>
61199
61200         Ensure automatic ordering between gl_LOCK and gl_ARGP.
61201         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
61202         the "early" section as well.
61203
61204 2006-01-11  Bruno Haible  <bruno@clisp.org>
61205
61206         Avoid "ar: no archive members specified" error on MacOS X.
61207         * gnulib-tool (func_modules_add_dummy): New function.
61208         (func_import, func_create_testdir): Invoke it.
61209
61210 2006-01-11  Bruno Haible  <bruno@clisp.org>
61211
61212         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
61213         with $auxdir in AC_CONFIG_FILES statements.
61214
61215 2006-01-11  Bruno Haible  <bruno@clisp.org>
61216
61217         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61218         Initialize also noinst_HEADERS to empty.
61219
61220 2006-01-11  Bruno Haible  <bruno@clisp.org>
61221
61222         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
61223         variables.
61224         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
61225         autoreconf.
61226
61227 2006-01-11  Bruno Haible  <bruno@clisp.org>
61228
61229         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
61230         overridable by the user.
61231         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61232
61233 2006-01-10  Simon Josefsson  <jas@extundo.com>
61234
61235         * modules/sys_socket: New file.
61236
61237 2006-01-10  Simon Josefsson  <jas@extundo.com>
61238
61239         * m4/sys_socket_h.m4: New file.
61240
61241 2006-01-10  Simon Josefsson  <jas@extundo.com>
61242
61243         * lib/socket_.h: New file.
61244
61245 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61246
61247         * modules/readutmp (Maintainer): Add myself.
61248
61249 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61250
61251         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
61252         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
61253         People who are still concerned with buggy memcmp implementations
61254         can invoke gl_FUNC_MEMCMP themselves.
61255
61256 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61257
61258         * lib/regex_internal.h (BITSET_WORD_BITS):
61259         Work around a bug in 64-bit PGC (before version 6.1-2), where the
61260         preprocessor mishandles large unsigned values as if they were signed.
61261         Problem reported by Claudio Fontana in
61262         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
61263
61264 2006-01-10  Jim Meyering  <jim@meyering.net>
61265
61266         Avoid the double-free (first in fts_read, second in fts_close) that
61267         would occur when an `active' directory is made inaccessible (e.g.,
61268         via chmod a-x) during a traversal.
61269         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
61270         before returning.  Reproduce this failure by
61271         mkdir -p a/b; cd a; chmod a-x . b
61272         Reported by Stavros Passas.
61273
61274         Sync from coreutils.
61275         * lib/sha1.c: Tweak grammar in a comment.
61276
61277 2006-01-10  Jim Meyering  <jim@meyering.net>
61278
61279         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
61280         Patch by Joerg Sonnenberger.
61281
61282 2006-01-10  Bruno Haible  <bruno@clisp.org>
61283
61284         * modules/readutmp: Depend on module free.
61285         * modules/strtok_r: Depend on module restrict.
61286
61287 2006-01-10  Bruno Haible  <bruno@clisp.org>
61288
61289         * modules/gettext (configure.ac): Add an invocation of
61290         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
61291
61292 2006-01-10  Bruno Haible  <bruno@clisp.org>
61293
61294         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
61295         Reported by Werner Lemberg <wl@gnu.org>.
61296
61297 2006-01-10  Bruno Haible  <bruno@clisp.org>
61298
61299         * lib/localcharset.c: Update from GNU gettext.
61300
61301 2006-01-10  Bruno Haible  <bruno@clisp.org>
61302
61303         * lib/argp.h (__const): Remove macro. Use const instead.
61304         * lib/argp-fmtstream.h (__const): Likewise.
61305         * lib/glob_.h (__const): Remove macro.
61306         * lib/glob-libc.h: Use const instead of __const.
61307
61308 2006-01-10  Bruno Haible  <bruno@clisp.org>
61309
61310         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
61311         variable.
61312         Needed to avoid an automake error regarding the 'gettext' module.
61313
61314 2006-01-09  Simon Josefsson  <jas@extundo.com>
61315
61316         * modules/inet_ntop (Depends-on): Add restrict.
61317
61318 2006-01-09  Simon Josefsson  <jas@extundo.com>
61319
61320         * modules/gc-rijndael-tests (License): Put under LGPL.
61321
61322         * modules/gc-des-tests (License): Likewise.
61323
61324         * modules/gc-arcfour-tests (License): Likewise.
61325
61326         * modules/gc-arctwo-tests (License): Likewise.
61327
61328         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
61329
61330         * modules/gc-hmac-sha1-tests (Files): Likewise.
61331
61332         * modules/gc-hmac-md5-tests (License): Likewise.
61333
61334         * modules/gc-sha1-tests (License): Likewise.
61335
61336         * modules/gc-md5-tests (License): Likewise.
61337
61338         * modules/gc-md4-tests (License): Likewise.
61339
61340         * modules/gc-md2-tests (License): Likewise.
61341
61342         * modules/gc-tests (License): Likewise.
61343
61344         * modules/des-tests (License): Likewise.
61345
61346         * modules/md4-tests (License): Likewise.
61347
61348         * modules/md2-tests (License): Likewise.
61349
61350 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61351
61352         Sync from coreutils:
61353
61354         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
61355         * modules/lib-ignore: New file.
61356         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
61357         chdir-safer.m4, lchmod.m4.
61358         * modules/openat: Add mkdirat.c, openat-priv.h.
61359
61360 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61361
61362         Sync from coreutils.
61363         * m4/lib-ignore.m4: New file.
61364         * m4/lchmod.m4: New file.
61365
61366 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61367
61368         Sync from coreutils.
61369         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
61370         for write access: POSIX says that must fail.
61371         * lib/fts.c (diropen): Likewise.
61372         * lib/save-cwd.c (save_cwd): Likewise.
61373         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
61374         well, for minor improvements on hosts that lack O_DIRECTORY.
61375         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
61376         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
61377         Fall back on chown if open failed with EACCES.
61378
61379         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
61380         Report an error at compile-time if only a 1-second nominal clock
61381         resolution is found.
61382
61383         * lib/lchmod.h: New file.
61384         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
61385         (make_dir_parents): Use lchown rather than chown, and
61386         lchmod rather than chmod.
61387
61388         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
61389         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
61390         "proc" reported by n0dalus.
61391
61392         * lib/mountlist.c: Include <limits.h>.
61393         (dev_from_mount_options)
61394         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
61395         New function.  It no longer assumes "dev=" has the System V meaning
61396         on Linux (since it doesn't).  It also parses "dev=" more carefully.
61397         (read_file_system_list)
61398         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
61399         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
61400         dev= in that case.
61401
61402         * lib/posixtm.h (PDS_PRE_2000): New macro.
61403         * lib/posixtm.c (year): Arg is now syntax_bits rather than
61404         allow_century.  All usages changed.  Reject dates outside the range
61405         1969-1999 if PDS_PRE_2000 is used.
61406
61407 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61408
61409         Sync from coreutils.
61410         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
61411         (Time of day items): Mention the possibility of leap seconds.
61412         Problem reported by Dr. David Alan Gilbert.
61413
61414 2006-01-09  Jim Meyering  <jim@meyering.net>
61415
61416         Sync from coreutils.
61417
61418         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
61419
61420         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
61421
61422         * lib/modechange.c (mode_compile): Reject an invalid mode string
61423         that starts with an octal digit.  From Andreas Gruenbacher.
61424
61425         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
61426         and dup to open_safer and dup_safer, respectively.
61427         (openat_permissive): Fix typo in comment.
61428
61429         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
61430         "gettext.h"; either no longer needed or are guaranteed by openat.h.
61431         (_): Remove; no longer needed.
61432         (openat): Renamed from rpl_openat; no need for rpl_openat
61433         since openat.h renames openat for us.
61434         Replace most of the body with a call to openat_permissive,
61435         to avoid duplicate code.
61436         Port to (probably hypothetical) environments were mode_t is
61437         wider than int.
61438         (openat_permissive): Require mode arg, so that we can check
61439         types better.  Put it just after flags.  Change cwd failure
61440         indicator from pointer-to-bool to pointer-to-errno-value.
61441         All callers changed.
61442         Invoke openat_save_fail and/or openat_restore_fail if
61443         cwd_errno is null, so that openat can call us.
61444         (openat_permissive, fdopendir, fstatat, unlinkat):
61445         Simplify errno handling to avoid some duplicate code,
61446         as it's OK to set errno on success.
61447         * lib/openat.h: Revamp code so that function macros depend on
61448         __OPENAT_PREFIX only, not also on AT_FDCWD.
61449         (openat_ro): Remove.  Caller changed to use openat_permissive.
61450         (openat_permissive): Now a macro, if not a function.
61451         (openat_restore_fail, openat_save_fail): Now always functions,
61452         since mkdirat needs them even if __OPENAT_PREFIX is defined.
61453
61454         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
61455         and openat.c.
61456         * lib/mkdirat.c: Include openat-priv.h.
61457         Remove definitions of macros defined therein.
61458         * lib/openat.c: Likewise.
61459
61460         * lib/mkdirat.c (mkdirat): New file and function.
61461         * lib/openat.h (mkdirat): Declare.
61462
61463         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
61464
61465         * lib/openat.h (openat_permissive): Declare.
61466         (openat_ro): Define.
61467
61468         * lib/openat.c (EXPECTED_ERRNO): New macro.
61469         (openat_permissive): New function -- used in remove.c rewrite.
61470         (all functions): Set errno just before returning, only if there
61471         was an actual failure.
61472         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
61473
61474         Emulate openat-family functions using Linux's procfs, if possible.
61475         Idea and some code based on Ulrich Drepper's glibc changes.
61476
61477         * lib/openat.c: (BUILD_PROC_NAME): New macro.
61478         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
61479         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
61480         before falling back on save_cwd and restore_cwd.
61481         (fdopendir, fstatat, unlinkat): Likewise.
61482
61483         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
61484         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
61485
61486         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
61487         as second argument to va_arg.  Otherwise, some versions of gcc
61488         warn that `if this code is reached, the program will abort'.
61489
61490 2006-01-09  Jim Meyering  <jim@meyering.net>
61491
61492         Sync from coreutils.
61493         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
61494         Require openat-priv.h.
61495
61496 2006-01-09  Bruno Haible  <bruno@clisp.org>
61497
61498         * modules/strnlen (Include): Use strnlen.h.
61499
61500 2006-01-09  Bruno Haible  <bruno@clisp.org>
61501
61502         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
61503
61504 2006-01-09  Bruno Haible  <bruno@clisp.org>
61505
61506         * lib/sysexit_.h (EX_OK): New macro.
61507         Suggested by Martin Lambers <marlam@marlam.de>.
61508
61509 2006-01-09  Bruno Haible  <bruno@clisp.org>
61510
61511         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
61512         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
61513
61514 2006-01-09  Bruno Haible  <bruno@clisp.org>
61515
61516         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
61517         numbers.
61518
61519 2006-01-09  Bruno Haible  <bruno@clisp.org>
61520
61521         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
61522         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
61523         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
61524         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
61525
61526 2006-01-09  Bruno Haible  <bruno@clisp.org>
61527
61528         * build-aux/javacomp.sh.in: New file, moved from lib/.
61529         * modules/javacomp-script (Files): Update.
61530         (configure.ac): Add AC_CONFIG_FILES invocation.
61531         (EXTRA_DIST): Remove variable.
61532
61533         * build-aux/javaexec.sh.in: New file, moved from lib/.
61534         * modules/javaexec (Files): Update.
61535         (configure.ac): Add AC_CONFIG_FILES invocation.
61536         (EXTRA_DIST): Remove javaexec.sh.in.
61537
61538         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
61539         * modules/csharpcomp-script (Files): Update.
61540         (configure.ac): Add AC_CONFIG_FILES invocation.
61541         (EXTRA_DIST): Remove variable.
61542
61543         * build-aux/csharpexec.sh.in: New file, moved from lib/.
61544         * modules/csharpexec (Files): Update.
61545         (configure.ac): Add AC_CONFIG_FILES invocation.
61546         (EXTRA_DIST): Remove csharpexec.sh.in.
61547
61548 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
61549
61550         Sync from coreutils.
61551
61552         Add POSIX ACL support
61553         * lib/acl.h (copy_acl, set_acl): Add declarations.
61554         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
61555         systems other than Linux.
61556         (chmod_or_fchmod): New function: use fchmod when possible,
61557         and chmod otherwise.
61558         (file_has_acl): Add a POSIX ACL implementation, with a
61559         Linux-specific subcase.
61560         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
61561         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
61562         acls are unsupported.
61563         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
61564         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
61565         are unsupported.
61566
61567 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
61568
61569         Sync from coreutils.
61570         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
61571
61572 2006-01-07  Bruno Haible  <bruno@clisp.org>
61573
61574         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
61575         gl_EARLY.
61576
61577 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61578
61579         * lib/strftime.c (tzname): Don't declare if it is already #defined.
61580         Problem reported for Mingw by Mark Junker.
61581
61582 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61583
61584         * README: Gnulib normally doesn't generate a tarball.
61585
61586 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
61587
61588         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
61589         long int, not int, for nanosecond counts, so that people who are
61590         used to POSIX struct timespec won't be surprised.  Reported by Jim
61591         Meyering.
61592
61593 2005-12-28  Bruno Haible  <bruno@clisp.org>
61594
61595         * build-aux/config.rpath: Update from GNU gettext.
61596
61597 2005-12-16  Jim Meyering  <jim@meyering.net>
61598
61599         * modules/fprintftime: New module.
61600         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
61601
61602 2005-12-16  Jim Meyering  <jim@meyering.net>
61603
61604         * m4/fprintftime.m4: New file.
61605
61606 2005-12-16  Jim Meyering  <jim@meyering.net>
61607
61608         * lib/fprintftime.c, lib/fprintftime.h: New files.
61609
61610 2005-12-15  Simon Josefsson  <jas@extundo.com>
61611
61612         * modules/socklen (configure.ac): Fix M4 macro name, to align with
61613         new m4/socklen.m4.
61614
61615 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61616
61617         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
61618         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
61619
61620 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61621
61622         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
61623         * lib/argp-help.c (fill_in_uparams): Check if the constructed
61624         struct uparams is valid. Fall back to the default values if it is
61625         not.
61626
61627 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61628
61629         * modules/argp (Files): Add argp-pin.c
61630         (Depends-on): dirname
61631         (lib_SOURCES): Add argp-pin.c
61632
61633 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61634
61635         * m4/argp.m4:  Check if program_invocation_name and
61636         program_invocation_short_name are declared and define appropriate
61637         macros if they are not.
61638
61639 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61640
61641         * lib/argp-help.c (__argp_base_name): New function
61642         (__argp_short_program_name): Rewrite using __argp_base_name
61643         * lib/argp-namefrob.h: Define program_invocation_name and
61644         program_invocation_short_name if requested
61645         (__argp_base_name): Add prototype
61646         * lib/argp-parse.c (argp_def): Use gettext wrappers
61647         (argp_default_parser): Use __argp_base_name
61648         * lib/argp-pin.c: New file. Defines program_invocation_name and
61649         program_invocation_short_name on systems that lack them.
61650
61651 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
61652
61653         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
61654         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
61655         porting problem reported by Georg Schwarz in
61656         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
61657
61658 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
61659
61660         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
61661         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
61662         porting problem reported by Georg Schwarz in
61663         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
61664
61665 2005-12-05  Bruno Haible  <bruno@clisp.org>
61666
61667         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
61668         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
61669         Reported by Mark Junker <mjscod@gmx.de>.
61670
61671 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
61672
61673         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
61674         Use implementation from Albert Chin, with some
61675         comments/corrections by Stepan Kasal and myself.
61676
61677 2005-12-02  Bruno Haible  <bruno@clisp.org>
61678
61679         * gnulib-tool (func_import): Accept GPLed build tool modules when
61680         --lgpl is given.
61681         * modules/csharpcomp-script: New file.
61682         * modules/csharpcomp: Depend on it.
61683         * modules/javacomp-script: New file.
61684         * modules/javacomp: Depend on it.
61685         Suggested by Simon Josefsson.
61686
61687 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
61688
61689         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
61690         statement, to work around an HP-UX 10.20 compiler bug reported by
61691         Peter O'Gorman.
61692
61693 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
61694
61695         * modules/savedir (Depends-on): Add openat.
61696
61697 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
61698
61699         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
61700         (uintmax_t) [defined uintmax_t]: Do not declare.
61701         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
61702         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
61703         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
61704         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
61705         sake of portability to weird hosts that C allows (though we don't
61706         know of any practical examples).
61707
61708         * lib/savedir.h (fdsavedir): New decl.
61709         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
61710         contains most of the former guts of savedir.
61711         (savedir): Use savedirstream.
61712         Include "openat.h".
61713
61714 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
61715
61716         * modules/obstack (Files): Add m4/ulonglong.m4.
61717         Problem reported by Davide Angelocola.
61718
61719 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
61720
61721         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
61722         coreutils no longer futzes with rounding modes.
61723
61724 2005-11-14  Jim Meyering  <jim@meyering.net>
61725
61726         * lib/mkstemp-safer.c: Include <config.h>, required for possible
61727         replacement of mkstemp.
61728
61729 2005-11-10  Simon Josefsson  <jas@extundo.com>
61730
61731         * lib/readline.c: Remove EOL.
61732
61733 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61734
61735         * modules/gethrxtime (Depends-on): Add gettime.
61736
61737 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61738
61739         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
61740         or gettimeofday; no longer needed.
61741
61742 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61743
61744         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
61745         time business.
61746         (gethrxtime) [! (HAVE_NANOUPTIME
61747         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
61748         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
61749         our own approximation.
61750
61751 2005-11-08  Eric Blake  <ebb9@byu.net>
61752
61753         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
61754
61755 2005-11-08  Eric Blake  <ebb9@byu.net>
61756
61757         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
61758
61759 2005-11-04  Bruno Haible  <bruno@clisp.org>
61760
61761         * gnulib-tool: Implement --update mode.
61762
61763 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
61764
61765         Fix porting problem reported by Theodoros V. Kalamatianos.
61766         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
61767         Don't assume that futimes failing means we must fail.
61768
61769 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
61770
61771         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
61772         variables to suggest the intended function of the PATH_MAX check.
61773
61774 2005-10-30  Kean Johnston  <jkj@sco.com>
61775
61776         Trivial changes to support SCO systems.
61777         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
61778         as PATH_MAX.
61779         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
61780         where __ptr is null when no I/O is pending.
61781
61782 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
61783
61784         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
61785         leave errno alone.  Problem reported by Dmitry V. Levin.
61786
61787 2005-10-28  Simon Josefsson  <jas@extundo.com>
61788
61789         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
61790         Test more.
61791
61792         * tests/test-gc-md2.c, tests/test-md2.c: New files.
61793
61794         * modules/md2, modules/md2-tests: New files.
61795
61796 2005-10-28  Simon Josefsson  <jas@extundo.com>
61797
61798         * m4/inet_ntop.m4: More tests.
61799
61800         * m4/gc-md2.m4, md2.m4: New file.
61801
61802 2005-10-28  Simon Josefsson  <jas@extundo.com>
61803
61804         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
61805         "restrict" keywords, as per POSIX.  Protect the function
61806         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
61807         Don't use K&R prototypes.  Check the sprintf return values.
61808         Re-define EAFNOSUPPORT if not present.  Indent.
61809
61810         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
61811         suggested by Bruno Haible <bruno@clisp.org>.
61812
61813         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
61814
61815         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
61816
61817         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
61818         libgcrypt).
61819
61820         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
61821
61822         * lib/md2.h, lib/md2.c: New files.
61823
61824 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
61825
61826         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
61827         errno alone.  Problem reported by Frederic Jolliton.
61828
61829 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
61830
61831         * modules/verify (License): Change from GPL to LGPL.  This is a
61832         tiny module and there are apparently near-equivalents that are
61833         under the BSD license.
61834
61835 2005-10-24  Simon Josefsson  <jas@extundo.com>
61836
61837         * modules/sha1: Relicense to LGPL.
61838
61839 2005-10-24  Simon Josefsson  <jas@extundo.com>
61840
61841         * lib/md4.h: Shrink buffer size, now that we changed the type.
61842
61843 2005-10-23  Simon Josefsson  <jas@extundo.com>
61844
61845         * gnulib-tool (func_import): Fix --tests-base.
61846
61847 2005-10-22  Simon Josefsson  <jas@extundo.com>
61848
61849         * modules/arcfour (Depends-on): Need stdint.
61850
61851 2005-10-22  Simon Josefsson  <jas@extundo.com>
61852
61853         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
61854         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
61855
61856 2005-10-22  Simon Josefsson  <jas@extundo.com>
61857
61858         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
61859         suggested by Bruno Haible <bruno@clisp.org>.
61860
61861 2005-10-22  Simon Josefsson  <jas@extundo.com>
61862
61863         * lib/crc.h: Include stddef.h, for size_t.
61864
61865 2005-10-22  Simon Josefsson  <jas@extundo.com>
61866
61867         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
61868         arcfour_context struct (simplify test vector testing in GNU
61869         Shishi).
61870
61871 2005-10-21  Simon Josefsson  <jas@extundo.com>
61872
61873         * modules/des, modules/des-tests: New files.
61874
61875         * modules/gc-des, modules/gc-des-tests: New files.
61876
61877         * tests/test-des.c, tests/test-gc-des.c: New file.
61878
61879 2005-10-21  Simon Josefsson  <jas@extundo.com>
61880
61881         * modules/arctwo, modules/arctwo-tests: New files.
61882
61883         * tests/test-arctwo.c: New file.
61884
61885         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
61886
61887         * tests/test-gc-arctwo.c: New file.
61888
61889 2005-10-21  Simon Josefsson  <jas@extundo.com>
61890
61891         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
61892         Bruno Haible <bruno@clisp.org>.
61893
61894         * m4/gc-des.m4: New file.
61895
61896 2005-10-21  Simon Josefsson  <jas@extundo.com>
61897
61898         * m4/arctwo.m4: New file.
61899
61900         * m4/gc-arctwo.m4: New file.
61901
61902 2005-10-21  Simon Josefsson  <jas@extundo.com>
61903
61904         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
61905         block.
61906
61907 2005-10-21  Simon Josefsson  <jas@extundo.com>
61908
61909         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
61910         <bruno@clisp.org>.
61911
61912         * lib/hmac-sha1.c (hmac_sha1): Likewise.
61913
61914         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
61915         Bruno Haible <bruno@clisp.org>.
61916
61917         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
61918         <bruno@clisp.org>.
61919
61920 2005-10-21  Simon Josefsson  <jas@extundo.com>
61921
61922         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
61923
61924 2005-10-21  Simon Josefsson  <jas@extundo.com>
61925
61926         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
61927
61928 2005-10-21  Simon Josefsson  <jas@extundo.com>
61929
61930         * lib/des.h, lib/des.c: New files.
61931
61932         * lib/gc-gnulib.c: Support DES.c
61933
61934 2005-10-21  Simon Josefsson  <jas@extundo.com>
61935
61936         * lib/arctwo.h, lib/arctwo.c: New files.
61937
61938         * lib/gc-gnulib.c: Support ARCTWO.
61939
61940 2005-10-21  Simon Josefsson  <jas@extundo.com>
61941
61942         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
61943         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61944
61945 2005-10-21  Simon Josefsson  <jas@extundo.com>
61946
61947         * gnulib-tool (func_import, func_create_testdir): Define automake
61948         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
61949         Makefile.am snippet),
61950         suggested by Bruno Haible <bruno@clisp.org>.
61951
61952         * modules/gc (Makefile.am): Use it.
61953
61954 2005-10-21  Bruno Haible  <bruno@clisp.org>
61955
61956         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
61957         patch.
61958
61959 2005-10-19  Simon Josefsson  <jas@extundo.com>
61960
61961         * tests/test-gc-rijndael.c: New file.
61962
61963         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
61964
61965 2005-10-19  Simon Josefsson  <jas@extundo.com>
61966
61967         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
61968         interface too.
61969
61970 2005-10-19  Simon Josefsson  <jas@extundo.com>
61971
61972         * tests/test-gc-arcfour.c: New file.
61973
61974         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
61975
61976 2005-10-19  Simon Josefsson  <jas@extundo.com>
61977
61978         * modules/gc-md4, modules/gc-md4-tests: New file.
61979
61980         * tests/test-gc-md4.c: New file.
61981
61982 2005-10-19  Simon Josefsson  <jas@extundo.com>
61983
61984         * m4/gc-md4.m4: New file.
61985
61986 2005-10-19  Simon Josefsson  <jas@extundo.com>
61987
61988         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
61989         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
61990         <kasal@ucw.cz>.
61991
61992 2005-10-19  Simon Josefsson  <jas@extundo.com>
61993
61994         * m4/gc-arcfour.m4: New file.
61995
61996         * m4/gc-rijndael.m4: New file.
61997
61998 2005-10-19  Simon Josefsson  <jas@extundo.com>
61999
62000         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
62001
62002 2005-10-19  Simon Josefsson  <jas@extundo.com>
62003
62004         * lib/gc-gnulib.c: Support ARCFOUR.
62005
62006 2005-10-19  Simon Josefsson  <jas@extundo.com>
62007
62008         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
62009         support.
62010
62011         * lib/gc.h: Add ECB enum type.
62012
62013         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
62014
62015 2005-10-18  Simon Josefsson  <jas@extundo.com>
62016
62017         * tests/test-md5.c: New file.
62018
62019         * modules/md5-tests: New file.
62020
62021 2005-10-18  Simon Josefsson  <jas@extundo.com>
62022
62023         * tests/test-md4.c: New file.
62024
62025         * modules/md4, modules/md4-tests: New files.
62026
62027 2005-10-18  Simon Josefsson  <jas@extundo.com>
62028
62029         * m4/md4.m4: New file.
62030
62031 2005-10-18  Simon Josefsson  <jas@extundo.com>
62032
62033         * lib/md4.h, lib/md4.c: New files, based on md5.?.
62034
62035 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
62036
62037         * gnulib-tool (func_create_testdir): Omit the second check whether
62038         BUILT_SOURCES in nonempty.
62039
62040 2005-10-17  Simon Josefsson  <jas@extundo.com>
62041
62042         * tests/test-rijndael.c: New file.
62043
62044 2005-10-17  Simon Josefsson  <jas@extundo.com>
62045
62046         * modules/sha1: Depend on stdint instead of md5.
62047
62048         * modules/md5: Depend on stdint, remove uint32_t.
62049
62050 2005-10-17  Simon Josefsson  <jas@extundo.com>
62051
62052         * modules/gc-sha1-tests: New file.
62053
62054         * tests/test-gc-sha1.c: New file.
62055
62056 2005-10-17  Simon Josefsson  <jas@extundo.com>
62057
62058         * m4/md5.m4: Remove call to uint32_t.m4.
62059
62060 2005-10-17  Simon Josefsson  <jas@extundo.com>
62061
62062         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
62063
62064         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
62065         md5.h.
62066
62067         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
62068
62069         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
62070
62071 2005-10-17  Simon Josefsson  <jas@extundo.com>
62072
62073         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
62074
62075 2005-10-17  Simon Josefsson  <jas@extundo.com>
62076
62077         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
62078
62079 2005-10-17  Simon Josefsson  <jas@extundo.com>
62080
62081         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
62082
62083         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
62084
62085 2005-10-17  Bruno Haible  <bruno@clisp.org>
62086
62087         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
62088         that it can also be used in a test.
62089
62090 2005-10-16  Bruno Haible  <bruno@clisp.org>
62091
62092         * gnulib-tool (func_emit_tests_Makefile_am): Also define
62093         TESTS_ENVIRONMENT, so that individual tests can augment it.
62094
62095         * gnulib-tool (func_create_testdir): Use an intermediate target for
62096         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
62097         macros, like $(ALLOCA_H), which cannot be passed through the command
62098         line.
62099
62100 2005-10-15  Simon Josefsson  <jas@extundo.com>
62101
62102         * modules/rijndael-tests: New file.
62103
62104         * modules/rijndael: New file.
62105
62106 2005-10-15  Simon Josefsson  <jas@extundo.com>
62107
62108         * m4/rijndael.m4: New file.
62109
62110 2005-10-15  Simon Josefsson  <jas@extundo.com>
62111
62112         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
62113
62114         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
62115
62116 2005-10-14  Simon Josefsson  <jas@extundo.com>
62117
62118         * tests/test-arcfour.c: New file.
62119
62120         * modules/arcfour, modules/arcfour-tests: New files.
62121
62122 2005-10-14  Simon Josefsson  <jas@extundo.com>
62123
62124         * m4/arcfour.m4: New file.
62125
62126 2005-10-14  Simon Josefsson  <jas@extundo.com>
62127
62128         * lib/arcfour.h, lib/arcfour.c: New files.
62129
62130 2005-10-14  Roland McGrath  <roland@redhat.com>
62131
62132         Import from libc.  [BZ #1331]
62133         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
62134         macro argument.
62135         Reported by Matej Vela <vela@debian.org>.
62136
62137 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62138
62139         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
62140         include <wchar.h>; no longer needed.
62141
62142 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62143
62144         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
62145
62146 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
62147         and  Ulrich Drepper  <drepper@redhat.com>
62148
62149         Import from libc.
62150         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
62151         instead of inline stream orientation test and two separate
62152         function calls.  Pay no attention to USE_IN_LIBIO.
62153
62154 2005-10-13  Simon Josefsson  <jas@extundo.com>
62155
62156         * modules/gc-hmac-md5-tests: New file.
62157
62158         * tests/test-gc-hmac-sha1.c: New file.
62159
62160         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
62161
62162         * modules/gc-hmac-md5-tests: New file.
62163
62164         * tests/test-gc-md5.c: New file.
62165
62166         * modules/gc-md5-tests: New file.
62167
62168 2005-10-13  Simon Josefsson  <jas@extundo.com>
62169
62170         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
62171         Move memory allocation outside of loop.
62172
62173 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
62174
62175         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
62176         intermediate directory is in a read-only file system.  Problem
62177         reported by Eric Blake.
62178
62179 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
62180
62181         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
62182
62183 2005-10-12  Simon Josefsson  <jas@extundo.com>
62184
62185         * tests/test-hmac-sha1.c: New file.
62186
62187         * modules/hmac-sha1-tests: New file.
62188
62189         * modules/hmac-sha1: New file.
62190
62191 2005-10-12  Simon Josefsson  <jas@extundo.com>
62192
62193         * modules/gc-sha1: New file.
62194
62195 2005-10-12  Simon Josefsson  <jas@extundo.com>
62196
62197         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
62198
62199         * tests/test-gc-pbkdf2-sha1.c: New file.
62200
62201 2005-10-12  Simon Josefsson  <jas@extundo.com>
62202
62203         * modules/gc-md5, modules/gc-hmac-md5: New files.
62204
62205         * modules/gc (Files): Remove md5, memxor and hmac files.
62206
62207 2005-10-12  Simon Josefsson  <jas@extundo.com>
62208
62209         * m4/gc-pbkdf2-sha1.m4: New file.
62210
62211         * m4/gc-hmac-sha1.m4: New file.
62212
62213         * m4/gc-sha1: New file.
62214
62215         * m4/hmac-sha1.m4: New file.
62216
62217 2005-10-12  Simon Josefsson  <jas@extundo.com>
62218
62219         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
62220
62221         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
62222
62223 2005-10-12  Simon Josefsson  <jas@extundo.com>
62224
62225         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
62226         suggested by Bruno Haible <bruno@clisp.org>.
62227
62228 2005-10-12  Simon Josefsson  <jas@extundo.com>
62229
62230         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
62231
62232 2005-10-12  Simon Josefsson  <jas@extundo.com>
62233
62234         * lib/gc-pbkdf2-sha1.c: New file.
62235
62236         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
62237
62238 2005-10-12  Simon Josefsson  <jas@extundo.com>
62239
62240         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
62241
62242         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
62243
62244 2005-10-12  Simon Josefsson  <jas@extundo.com>
62245
62246         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
62247         GC_USE_HMAC_MD5, respectively.
62248
62249         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
62250         (gc_md5): Fix typo.
62251
62252         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
62253
62254         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
62255
62256         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
62257
62258 2005-10-12  Bruno Haible  <bruno@clisp.org>
62259
62260         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
62261         Reported by Stepan Kasal <kasal@ucw.cz>.
62262
62263 2005-10-11  Simon Josefsson  <jas@extundo.com>
62264
62265         * tests/test-crc.c: New file.
62266
62267         * modules/crc, modules/crc-tests: New files.
62268
62269 2005-10-11  Simon Josefsson  <jas@extundo.com>
62270
62271         * m4/crc.m4: New file.
62272
62273 2005-10-11  Simon Josefsson  <jas@extundo.com>
62274
62275         * lib/gc.h: Add gc_hash and gc_hash_buffer.
62276
62277         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
62278
62279         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
62280
62281 2005-10-11  Simon Josefsson  <jas@extundo.com>
62282
62283         * lib/crc.h, lib/crc.c: New files.
62284
62285         * lib/gc.h (gc_hash_buffer): Add doc.
62286
62287 2005-10-11  Bruno Haible  <bruno@clisp.org>
62288
62289         * modules/c-strcasestr: New file.
62290         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
62291
62292 2005-10-11  Bruno Haible  <bruno@clisp.org>
62293
62294         * modules/c-strcase: New file.
62295         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
62296
62297 2005-10-11  Bruno Haible  <bruno@clisp.org>
62298
62299         * lib/strcasecmp.c: Include limits.h.
62300         (strcasecmp): Avoid integer overflow on exotic platforms.
62301         * lib/strncasecmp.c: Include limits.h.
62302         (strncasecmp): Avoid integer overflow on exotic platforms.
62303         Reported by Paul Eggert.
62304
62305 2005-10-11  Bruno Haible  <bruno@clisp.org>
62306
62307         * lib/c-strcasestr.h: New file, from GNU gettext.
62308         * lib/c-strcasestr.c: New file, from GNU gettext.
62309
62310 2005-10-11  Bruno Haible  <bruno@clisp.org>
62311
62312         * lib/c-strcase.h: New file, from GNU gettext.
62313         * lib/c-strcasecmp.c: New file, from GNU gettext.
62314         * lib/c-strncasecmp.c: New file, from GNU gettext.
62315
62316 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
62317
62318         * modules/mempcpy (License): GPL -> LGPL.
62319         * modules/strchrnul (License): Likewise.
62320         * modules/sysexits (License): Likewise.
62321
62322 2005-10-08  Simon Josefsson  <jas@extundo.com>
62323
62324         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
62325
62326 2005-10-07  Simon Josefsson  <jas@extundo.com>
62327
62328         * m4/memxor.m4: Remove gl_C_RESTRICT call.
62329
62330 2005-10-06  Simon Josefsson  <jas@extundo.com>
62331
62332         * tests/test-hmac-md5.c: New file.
62333
62334         * modules/hmac-md5-tests: New file.
62335
62336         * modules/hmac-md5: New file.
62337
62338 2005-10-06  Simon Josefsson  <jas@extundo.com>
62339
62340         * m4/hmac-md5.m4: New file.
62341
62342         * m4/memxor.m4: Require gl_C_RESTRICT.
62343
62344 2005-10-06  Simon Josefsson  <jas@extundo.com>
62345
62346         * lib/memxor.c (memxor): Avoid casts and warnings.
62347
62348 2005-10-06  Simon Josefsson  <jas@extundo.com>
62349
62350         * lib/hmac-md5.c: New file.
62351
62352         * lib/hmac.h: New file.
62353
62354 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
62355
62356         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
62357         promotes to int, not unsigned int, to catch the AIX 5.3
62358         compiler bug.
62359
62360 2005-10-05  Simon Josefsson  <jas@extundo.com>
62361
62362         * modules/memxor: New file.
62363
62364         * modules/iconv (Files): Move config.rpath to havelib, it is used
62365         there.
62366
62367         * modules/havelib (Files): Add config.rpath.
62368
62369 2005-10-05  Simon Josefsson  <jas@extundo.com>
62370
62371         * m4/memxor.m4: New file.
62372
62373 2005-10-05  Simon Josefsson  <jas@extundo.com>
62374
62375         * lib/memxor.c (memxor): Fix compiler error.
62376
62377         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
62378         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
62379
62380         * lib/memxor.h, lib/memxor.c: New files.
62381
62382         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
62383         we assume all systems have it, suggested by Jim Meyering
62384         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
62385         any systems lack sys/socket.h; mingw32 is known to lack it, but we
62386         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
62387         same reasons.
62388
62389 2005-10-05  Simon Josefsson  <jas@extundo.com>
62390
62391         * config/srclist.txt: Add glibc bug 1423 for md5.h.
62392
62393 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
62394
62395         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
62396         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
62397         needed, since the source code now assumes these .h files.
62398
62399 2005-10-05  Derek Price  <derek@ximbiot.com>
62400
62401         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
62402
62403 2005-10-05  Bruno Haible  <bruno@clisp.org>
62404
62405         * modules/stdint (License): Change to LGPL.
62406
62407 2005-10-04  Simon Josefsson  <jas@extundo.com>
62408
62409         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
62410         D. Baushke" <mdb@gnu.org>.
62411
62412 2005-10-04  Bruno Haible  <bruno@clisp.org>
62413
62414         * lib/verify.h (verify_true): Provide alternative definition for C++.
62415
62416 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
62417
62418         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
62419         (SSIZE_MAX): New macro, if not already defined.
62420         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
62421         than 2 GiB.
62422
62423 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
62424
62425         Sync from coreutils.
62426         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
62427         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
62428         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
62429         ULLONG_MAX doesn't work with 2.7.2.1.
62430
62431 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
62432
62433         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
62434         From Ben Pfaff.
62435
62436         * modules/exclude (Depends-on): Depend on verify.
62437         * modules/strtoimax (Depends-on): Likewise.
62438         * modules/utimecmp (Depends-on): Likewise.
62439
62440 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
62441
62442         * lib/exclude.c: Include verify.h.
62443         (verify): Remove.  All callers changed to use verify.h's version.
62444         * lib/strtoimax.c: Likewise.
62445         * lib/utimecmp.c: Likewis.e
62446
62447         Sync from coreutils.
62448         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
62449         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
62450         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
62451         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
62452         bother returning ENOSYS if settimeofday or stime fails; just let
62453         them return whatever errno they want to return.
62454         * lib/utimens.c: Include unistd.h, for dup2.
62455         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
62456         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
62457
62458 2005-10-02  Jim Meyering  <jim@meyering.net>
62459
62460         Sync from coreutils.
62461         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
62462         from glibc-2.2.5 that fails for read-only files.
62463
62464 2005-10-02  Jim Meyering  <jim@meyering.net>
62465
62466         Sync from coreutils.
62467         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
62468         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
62469         `#if HAVE_CONFIG_H'.
62470         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
62471         Remove AT_FDCWD test.
62472         Do not consume the fd unless successful.
62473         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
62474         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
62475         block, so that we don't even try to compile it if settimeofday is
62476         available.  This works around a compilation failure on OSF1 V5.1,
62477         due to stime requiring a `long int*' while tv_sec is `int'.
62478
62479 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
62480
62481         Sync from coreutils.
62482         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
62483         against `yes', rather than just testing for nonempty.
62484
62485 2005-10-01  Simon Josefsson  <jas@extundo.com>
62486
62487         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
62488         and Darwin.
62489
62490         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
62491         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
62492         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
62493         freeaddrinfo and gai_strerror are declared by the POSIX headers.
62494         Check if struct addrinfo is declared.
62495
62496 2005-10-01  Simon Josefsson  <jas@extundo.com>
62497
62498         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
62499         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
62500         AI_* and EAI_* definitions.  Protect function declarations.
62501
62502 2005-10-01  Jim Meyering  <jim@meyering.net>
62503
62504         Sync from coreutils.
62505
62506         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
62507         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
62508         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
62509         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
62510         in the inet and nsl libraries.  Required on Solaris 5.7.
62511
62512 2005-10-01  Jim Meyering  <jim@meyering.net>
62513
62514         Sync from coreutils.
62515         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
62516         in the inet and nsl libraries.  Required on Solaris 5.7.
62517
62518 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
62519
62520         * lib/getdelim.c (getdelim): Remove unused variables.
62521
62522 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
62523
62524         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
62525         so that the code works even with ancient cpp.  Portability problem
62526         with GCC 2.7.2.1 reported by Thomas M.Ott.
62527
62528 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
62529
62530         * modules/regex (Depends-on): Add strcase.
62531
62532         * modules/gethostname (Licence): Change from GPL to LGPL, since
62533         gethostname.c is a trivial implementation of a standard library
62534         function.
62535         * modules/poll (License): Change from GPL to LGPL, since it's
62536         derived from LGPL code.
62537
62538 2005-09-27  Jim Meyering  <jim@meyering.net>
62539
62540         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
62541         HAVE_CONFIG_H.
62542
62543         * lib/intprops.h (signed_type_or_expr__): Define.
62544         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
62545         for unsigned types.
62546
62547 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
62548
62549         * lib/verify.h (verify_expr): Remove, replacing with:
62550         (verify_true): New macro that returns true instead of void.
62551         (verify_type__): Remove.
62552         (verify): Use verify_true rather than verify_type__.
62553
62554 2005-09-26  Bruno Haible  <bruno@clisp.org>
62555
62556         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
62557         is necessary.
62558         (lib_SOURCES): Remove mbchar.c.
62559         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
62560         (Files): Add m4/mbrtowc.m4.
62561         * modules/mbiter: Likewise.
62562         * modules/mbuiter: Likewise.
62563
62564 2005-09-26  Bruno Haible  <bruno@clisp.org>
62565
62566         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
62567         compile mbchar.c if they are not both present.
62568         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
62569         * m4/mbiter.m4 (gl_MBITER): Likewise.
62570         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
62571         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
62572         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
62573
62574 2005-09-25  Jim Meyering  <jim@meyering.net>
62575
62576         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
62577         also uses socklen_t.
62578
62579 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
62580
62581         * lib/utimens.c (ENOSYS): Define if not already defined.
62582         (futimens): Support having a null PATH if the file descriptor
62583         is nonnegative.
62584
62585         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
62586         Remove.
62587         (__attribute): Define to empty unless GCC 3.1 or later.
62588         This works around a core dump on OpenBSD 3.4, which has GCC
62589         2.95.3, which dumps core when given __attribute__(()).  It also
62590         simplifies other tests, since we really don't want to bother with
62591         worrying about which ancient version of GCC supported what.
62592         Original problem reported by Yoann Vandoorselaere, with part of
62593         the fix suggested by Derek Price.
62594
62595 2005-09-24  Jim Meyering  <jim@meyering.net>
62596
62597         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
62598         so we can once again use a positive bitfield width of 1 -- now we
62599         don't have to explain why we were using a bitfield width of 2.
62600
62601 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
62602
62603         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
62604         and similarly for the other external symbols.  Problem reported
62605         by James Gallager.
62606
62607         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
62608         bug reported by Jim Meyering.
62609
62610         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
62611         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
62612         not needed, since socklen is a prerequisite module.
62613
62614 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
62615
62616         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
62617         Problem reported by Eric Blake.
62618         (getaddrinfo): Initialize se so that it's not garbage.
62619         Redo internal storage allocation so that it doesn't make unportable
62620         assumptions about alignment.
62621         Fix a memory leak.
62622
62623         * lib/utimens.c (futimens): Use futimesat if available.
62624         Prefer it to futimes since it doesn't have the futimes bug.
62625
62626         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
62627         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
62628         Instead, declare a function that returns a pointer to an array,
62629         and use verify_type__ to declare the size of the array.
62630         Problem and germ of a solution reported by Bruno Haible.
62631         (verify_type__): Use 2, not 1, for bitfield size, to avoid
62632         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
62633
62634 2005-09-23  Jim Meyering  <jim@meyering.net>
62635
62636         Sync from coreutils.
62637         Correct build failure (socklen_t not defined) on at least
62638         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
62639         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
62640
62641 2005-09-23  Jim Meyering  <jim@meyering.net>
62642
62643         * modules/getaddrinfo (Depends-on): Add socklen.
62644
62645 2005-09-23  Bruno Haible  <bruno@clisp.org>
62646
62647         * tests/test-verify.c: New file.
62648
62649 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62650
62651         Sync from coreutils.
62652
62653         * modules/argmatch (Depends-on): Add verify.
62654         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
62655         unistd-safer.
62656         * modules/save-cwd (Depends-on): Likewise.
62657
62658         * modules/openat (Files): Add lib/openat-die.c.
62659         (Depends-on): Remove error, exitfail.
62660         Add dirname.
62661
62662         * modules/verify: New file.
62663         * MODULES.html.sh (Diagnostics <assert.h>): New section,
62664         with "verify" module.
62665
62666 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62667
62668         Sync from coreutils.
62669
62670         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
62671         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
62672         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
62673         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
62674         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
62675         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
62676         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
62677         Don't bother checking for string.h, stdlib.h, unistd.h.
62678         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
62679         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
62680         module's job.
62681         * m4/jm-macros.m4 (gl_MACROS): Likewise.
62682         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
62683
62684         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
62685         (gl_GETDATE): Use it.
62686
62687         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
62688
62689 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62690
62691         Sync from coreutils.
62692
62693         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
62694         stat-time.h.
62695         * lib/argmatch.h: Include verify.h
62696         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
62697         (ARGMATCH_ASSERT): Remove; unused.
62698         * lib/canonicalize.c: Assume STDC_HEADERS.
62699         * lib/exclude.c: Include "strcase.h".
62700         * lib/regex_internal.h [!defined _LIBC]: Likewise.
62701         * lib/getusershell.c: Include stdio--.h rather than stdio.h
62702         and stdio-safer.h.
62703         (getusershell): Call fopen, not fopen_safer.
62704         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
62705         Do not include unistd-safer.h.
62706         (save_cwd): Don't call fd_safer; no longer needed
62707         now that we include fcntl--.h.
62708
62709         * lib/getdate.y (relative_time): New type.
62710         (RELATIVE_TIME_0): New constant.
62711         (parser_control): Use relative_time instead of doing it ourselves.
62712         (%union): Add new relative_time rel member.
62713         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
62714         Now typeless.
62715         (relunit, relunit_snumber): Now of type rel.
62716         (zone, rel, relunit, get_date): Adjust to above changes.
62717
62718         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
62719         Do not include unistd-safer.h.
62720         (getloadavg): Don't call fd_safer; no longer needed
62721         now that we include fcntl--.h.
62722
62723         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
62724         (make_dir_parents): Treat ENOSYS like EEXIST.
62725
62726         Improve quality of diagnostics on restore_cwd failure.
62727         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
62728         (make_dir_parents): Last arg is now int * (for errno), not bool *.
62729         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
62730         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
62731         each time through the loop.  Do not diagnose restore_cwd failure;
62732         that is the caller's job (and perhaps the caller does not care).
62733
62734         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
62735         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
62736         If the file already exists but is not a directory, don't bother
62737         to try to make its parents.
62738         Close potential file descriptor leak if we can't chdir("/") (!).
62739         Don't always return true if chdir($PWD) fails; return true only
62740         if the requested action was done successfully (except for the
62741         chdir($PWD)).
62742         Don't log final directory unless we actually made it.
62743         Refactor to avoid duplicate code to fix up permissions.
62744         Don't attempt to fix up parent permissions if chdir($PWD) fails.
62745
62746         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
62747         to make it a bit faster and (I hope) clearer.
62748         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
62749         Fix bug in formats like %2N.
62750
62751         * lib/verify.h: New file.
62752
62753 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62754
62755         Sync from coreutils.
62756         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
62757
62758 2005-09-22  Jim Meyering  <jim@meyering.net>
62759
62760         Sync from coreutils.
62761
62762         * m4/lstat.m4 (gl_FUNC_LSTAT):
62763         Use AC_LIBSOURCES to require lstat.c and lstat.h.
62764         Remove obsolete comment.
62765         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
62766         * m4/xstrtod.m4: Likewise.
62767
62768         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
62769
62770 2005-09-22  Jim Meyering  <jim@meyering.net>
62771
62772         Sync from coreutils.
62773
62774         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
62775
62776         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
62777         the .tm_year member, since otherwise gcc-4.0 would now warn about
62778         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
62779
62780         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
62781         order to avoid an unsuppressible warning from gcc on 64-bit systems.
62782
62783         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
62784         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
62785         when run in a time zone for which daylight savings time is in effect
62786         for the starting date.
62787
62788         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
62789         stop us from restricting permissions of just-created absolute-named
62790         directories.
62791         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
62792         to restore initial working directory.
62793         * lib/mkdir-p.c (make_dir_parents): New parameter:
62794         different_working_dir, to tell caller if/when we change the working
62795         directory and are unable to return to the initial one.
62796         * lib/mkdir-p.h (make_dir_parents): Update prototype.
62797         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
62798         `return false'.  This fixes a bug introduced on 2004-07-30.
62799
62800         * lib/openat.c (fdopendir): Be sure to close the supplied
62801         file descriptor before returning.  This makes our replacement
62802         implementation a little closer to Solaris's, where fdopendir
62803         ties the file descriptor to the returned DIR* pointer.
62804         * lib/openat.c (unlinkat): New function.
62805         * lib/openat.h (unlinkat): Add prototype.
62806         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
62807         (openat_restore_fail): Rename from openat_restore_die.
62808         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
62809
62810         Provide an alternative to exiting immediately upon save_cwd or
62811         restore_cwd failure.  Now, an application can arrange e.g.,
62812         to perform a longjump in that case.
62813         * lib/openat.c: Include dirname.h.
62814         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
62815         (rpl_openat, fdopendir, fstatat): Call openat_save_die
62816         and openat_restore_die rather than calling error directly.
62817         Don't include "error.h" or "exitfail.h"; they're no longer needed.
62818
62819         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
62820         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
62821         define.
62822
62823         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
62824         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
62825                             int utc, int nanoseconds);
62826         Background:
62827         date should not have to allocate a megabyte of virtual memory to
62828         handle a format argument like +%1048575T.  When implemented with
62829         strftime, it must allocate such a buffer, use strftime to fill it
62830         in, print it, then free it.
62831         With fprintftime, it simply prints everything and exits.
62832         With no need for memory allocation, that's one fewer way to fail.
62833         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
62834         optional field width, not before, so we accept %9:z, not %:9z.
62835         (my_strftime): Be sure to use L_('x') for literals.
62836
62837         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
62838         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
62839         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
62840         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
62841         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
62842         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
62843         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
62844         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
62845         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
62846         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
62847         * lib/xgethostname.c, lib/xreadlink.c:
62848         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
62849
62850         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
62851         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
62852         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
62853         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
62854         and don't include <sys/file.h>).
62855
62856 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
62857
62858         Sync from coreutils.
62859
62860         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
62861         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
62862         [!LDAV_DONE]: Avoid unused variable warning.
62863
62864 2005-09-21  Bruno Haible  <bruno@clisp.org>
62865
62866         * lib/unicodeio.h (unicode_to_mb): New declaration.
62867
62868 2005-09-20  Derek Price  <derek@ximbiot.com>
62869
62870         * lib/getaddrinfo.c: Don't include <netdb.h> included from
62871         getaddrinfo.h.
62872
62873 2005-09-20  Bruno Haible  <bruno@clisp.org>
62874
62875         * gnulib-tool: Remove trailing slashes from the values specified for
62876         --source-base, --m4-base, --tests-base, --aux-dir.
62877         Suggested by Simon Josefsson <jas@extundo.com>.
62878
62879 2005-09-20  Bruno Haible  <bruno@clisp.org>
62880
62881         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
62882         func_modules_to_filelist, func_import, func_create_testdir): Make all
62883         sorting results locale-independent, so that gnulib-cache.m4 doesn't
62884         change when gnulib-tool is invoked in a different locale.
62885
62886 2005-09-19  Simon Josefsson  <jas@extundo.com>
62887
62888         * m4/socklen.m4: Fix typo.
62889
62890 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62891
62892         Use a consistent style for including <config.h>.
62893         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
62894         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
62895         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
62896         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
62897         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
62898         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
62899         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
62900         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
62901         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
62902         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
62903         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
62904         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
62905         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
62906         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
62907         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
62908         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
62909         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
62910         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
62911         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
62912         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
62913         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
62914         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
62915         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
62916         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
62917         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
62918         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
62919         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
62920         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
62921         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
62922         lib/xstrtoumax.c, lib/yesno.c:
62923         Standardize inclusion of config.h.
62924         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
62925         lib/inttostr.h:  Removed inclusion of config.h from header files.
62926         * lib/inttostr.c:  Adjusted in-tree users.
62927         * lib/timespec.h: Remove superfluous warning to include config.h.
62928         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
62929         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
62930         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
62931         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
62932         config.h with HAVE_CONFIG_H.
62933
62934 2005-09-19  Jim Meyering  <jim@meyering.net>
62935
62936         * modules/pathmax (License): Change to LGPL.
62937
62938 2005-09-19  Derek Price  <derek@ximbiot.com>
62939
62940         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
62941
62942 2005-09-19  Bruno Haible  <bruno@clisp.org>
62943
62944         * gnulib-tool (import): Provide default for --tests-base.
62945
62946 2005-09-19  Bruno Haible  <bruno@clisp.org>
62947
62948         * doc/quote.texi: New file, extracted from gnulib.texi.
62949         * doc/ctime.texi: New file, extracted from gnulib.texi.
62950         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
62951         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
62952         * doc/gnulib.texi: Include them.
62953
62954 2005-09-18  Bruno Haible  <bruno@clisp.org>
62955
62956         Portability fix.
62957         * gnulib-tool (func_readlink): New function.
62958         (func_ln_if_changed): Use it.
62959
62960 2005-09-18  Bruno Haible  <bruno@clisp.org>
62961
62962         * gnulib-tool: Support --with-tests also with --import.
62963         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
62964         (func_import): Use variables $testsbase and $inctests. Emit a
62965         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
62966         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
62967         SUBDIRS += $testsdir.
62968         (func_create_testdir): Update.
62969
62970 2005-09-18  Bruno Haible  <bruno@clisp.org>
62971
62972         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
62973         instead of $dry_run.
62974         (func_cp_if_changed, func_mv_if_changed): Remove functions.
62975         (func_ln_if_changed): Don't handle dry-run here.
62976         (func_import): In dry-run mode, detect more precisely which actions
62977         would be performed, and don't use "...ing" verbs.
62978
62979 2005-09-18  Bruno Haible  <bruno@clisp.org>
62980
62981         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
62982         (func_import): Use join on two temporary files instead of three nested
62983         loops, in order to determine which files are new or old.
62984
62985 2005-09-18  Bruno Haible  <bruno@clisp.org>
62986
62987         * gnulib-tool (func_import): Comment out code that spits out the
62988         new files with --dry-run.
62989
62990 2005-09-18  Bruno Haible  <bruno@clisp.org>
62991
62992         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
62993
62994 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
62995
62996         * lib/stat-time.h: New file.
62997         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
62998         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
62999         in a different way.
63000         (timespec_cmp): New function.
63001         * lib/utimecmp.c: Include stat-time.h.
63002         (SYSCALL_RESOLUTION): Depend on whether various struct stat
63003         members exist, not on the obsolescent ST_MTIM_NSEC.
63004         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
63005
63006 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63007
63008         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
63009
63010 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63011
63012         * MODULES.html.sh (File system functions): Add stat-time.
63013         * modules/stat-time: New file.
63014         * modules/timespec (Files): Remove m4/st_mtim.m4; this
63015         is now done in a different way, by the stat-time module.
63016         * modules/utimecmp (Depends-on): Add stat-time.
63017
63018 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
63019
63020         * m4/st_mtim.m4: Remove.  Superseded by...
63021         * m4/stat-time.m4: New file.
63022         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
63023         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
63024
63025 2005-09-15  Derek Price  <derek@ximbiot.com>
63026
63027         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
63028
63029 2005-09-15  Derek Price  <derek@ximbiot.com>
63030
63031         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
63032         * lib/regex_internal.c: Ditto, using this...
63033         (__GNUC_PREREQ): ...new macro.
63034         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
63035         using...
63036         (__GNUC_PREREQ): ...this new macro.
63037
63038         * lib/strstr.h: Include string.h. Define strstr as a macro here.
63039
63040 2005-09-15  Derek Price  <derek@ximbiot.com>
63041             Paul Eggert  <eggert@cs.ucla.edu>
63042
63043         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
63044         changes, consolidating in...
63045         * lib/regex_internal.h: ...this file.
63046
63047 2005-09-13  Jim Meyering  <jim@meyering.net>
63048
63049         * lib/canon-host.c: Filter through gnu indent and reword comments
63050         slightly.
63051         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
63052
63053 2005-09-13  Derek Price  <derek@ximbiot.com>
63054
63055         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
63056         failure.
63057         Reported by Jim Meyering  <jim@meyering.net>.
63058
63059 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63060
63061         * lib/base64.c: Typo.
63062         (base64_encode): Put b64str in initialized data section.
63063
63064 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
63065
63066         Merge glibc and coreutils changes into gnulib, plus a few
63067         extra fixes.
63068         * lib/md5.c: Use #error rather than a string.
63069         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
63070         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
63071         (__attribute__): Define to empty for non recent-GCC.
63072         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
63073         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
63074         Renamed from their non-__ counterparts, with new macros replacing
63075         them if not _LIBC.  Add __THROW attribute.
63076         (rol): Remove.
63077         (struct md5_ctx): Align buffer if using GCC.
63078         * lib/sha1.h (struct sha1_ctx): Likewise.
63079         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
63080         The old name was backwards.
63081         (NOTSWAP): Remove; not used.
63082         (rol): New macro, moved here from md5.h.
63083         (sha1_process_block): Remove a FIXME that doesn't make sense.
63084
63085 2005-09-12  Derek Price  <derek@ximbiot.com>
63086
63087         Return usable errors from canon-host.
63088         * lib/canon-host.h: New file.
63089         * lib/canon-host.c (canon_host): Wrap...
63090         (canon_host_r): ...this new function, which now relies exclusively on
63091         getaddrinfo.
63092         (ch_strerror): New function.
63093         (last_cherror): New global.
63094         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
63095         interface.
63096         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
63097         void *.
63098         (freeaddrinfo): Free ai->ai_canonname when set.
63099
63100 2005-09-12  Derek Price  <derek@ximbiot.com>
63101
63102         Make canon-host require getaddrinfo.
63103         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
63104         AC_LIBSOURCE canon-host.h.  Call...
63105         (gl_PREREQ_CANON_HOST): ...this new function, which requires
63106         gl_GETADDRINFO.
63107         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
63108
63109 2005-09-12  Derek Price  <derek@ximbiot.com>
63110
63111         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
63112         LGPL.
63113         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
63114
63115 2005-09-12  Derek Price  <derek@ximbiot.com>
63116
63117         * lib/gai_strerror.c: Include config.h when available.  Include
63118         getaddrinfo.h before other headers to test interface.
63119         Reported by Larry Jones <lawrence.jones@ugs.com>.
63120
63121 2005-09-12  Derek Price  <derek@ximbiot.com>
63122             Paul Eggert  <eggert@cs.ucla.edu>
63123
63124         * modules/glob (Files): Add glob-libc.h.
63125
63126 2005-09-12  Derek Price  <derek@ximbiot.com>
63127             Paul Eggert  <eggert@cs.ucla.edu>
63128
63129         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
63130         glob_.h, glob-libc.h.
63131         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
63132
63133 2005-09-12  Derek Price  <derek@ximbiot.com>
63134             Paul Eggert  <eggert@cs.ucla.edu>
63135
63136         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
63137         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
63138         protecting things that should be done only in gnulib contexts.
63139         * lib/glob_.h: New file, containing only the glob things needed for
63140         gnulib.
63141         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
63142         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
63143         (glob, globfree, glob_pattern_p): Now defined simply in terms of
63144         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
63145         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
63146         and to respect the namespace rules better.
63147
63148 2005-09-08  Simon Josefsson  <jas@extundo.com>
63149
63150         * modules/socklen: New file.
63151
63152 2005-09-08  Simon Josefsson  <jas@extundo.com>
63153
63154         * m4/socklen.m4: New file.
63155
63156 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63157
63158         * modules/utimens (Files): Add m4/utimbuf.m4, since
63159         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
63160         Reported by Sergey Poznyakoff.
63161
63162 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63163
63164         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
63165         definitions, since that's the preferred style in glibc.
63166         Fix a minor spacing issue, and update copyright notice to match
63167         glibc's.
63168
63169 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63170
63171         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
63172
63173 2005-09-06  Simon Josefsson  <jas@extundo.com>
63174
63175         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
63176         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
63177
63178 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63179
63180         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
63181         warning.
63182
63183 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63184
63185         * config/srclist.txt: Add glibc bug 1302.
63186
63187 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
63188
63189         Change bitset word type from unsigned int to unsigned long int,
63190         as this has better performance on typical 64-bit hosts.
63191         Port bitset code to hosts with unusual word sizes.
63192         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
63193         (build_collating_symbol):
63194         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
63195         argument is a bitset.  This is merely a style issue, but it makes
63196         it clearer that an entire array is expected.
63197         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
63198         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
63199         Port to the case where bitset_word is not the same as unsigned int.
63200         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
63201         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
63202         Likewise.
63203         * lib/regexec.c (check_dst_limits_calc_pos_1,
63204         check_subexp_matching_top):
63205         (build_trtable, group_nodes_into_DFAstates):
63206         Likewise.
63207         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
63208         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
63209         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
63210         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
63211         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
63212         * lib/regcomp.c (optimize_subexps, lower_subexp):
63213         Work even if bitset_word has holes in its bitwise representation.
63214         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
63215         * lib/regexec.c (check_dst_limits_calc_pos_1,
63216         check_subexp_matching_top):
63217         Likewise.
63218         * lib/regex_internal.c (re_string_reconstruct):
63219         Don't assume UCHAR_MAX == 255.
63220         * lib/regex_internal.h (bitset_set_all): Likewise.
63221         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
63222         All uses changed.
63223         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
63224         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
63225         All uses changed.
63226         (BITSET_WORD_MAX): New macro.
63227         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
63228         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
63229         (bitset_empty, bitset_copy):
63230         Prefer sizeof (bitset) to multiplying it out ourselves.
63231         (bitset_not_merge): Remove; unused.
63232         (bitset_contain): Return bool, not unsigned int with one bit on.
63233         All callers changed.
63234         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
63235         alignment than re_node_set; do this by defining a new internal
63236         type struct dests_alloc and using it to allocate memory.
63237
63238 2005-09-05  Bruno Haible  <bruno@clisp.org>
63239
63240         * gnulib-tool (func_import): Fix comparison in handling of symbolic
63241         links.
63242
63243 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
63244
63245         * modules/size_max (Makefile.am): Add size_max.h
63246
63247 2005-09-04  Derek Price  <derek@ximbiot.com>
63248
63249         * gnulib-tool (func_import): Fix reversed $symbolic logic.
63250
63251 2005-09-03  Simon Josefsson  <jas@extundo.com>
63252
63253         * gnulib-tool: Fix typo.
63254
63255 2005-09-03  Simon Josefsson  <jas@extundo.com>
63256
63257         * config/srclist.txt: Add glibc bug 1293.
63258
63259 2005-09-03  Derek Price  <derek@ximbiot.com>
63260
63261         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
63262         From Larry Jones <lawrence.jones@ugs.com>.
63263
63264 2005-09-02  Simon Josefsson  <jas@extundo.com>
63265
63266         * modules/socklen: New file.
63267
63268 2005-09-02  Simon Josefsson  <jas@extundo.com>
63269
63270         * modules/havelib: New module.
63271
63272         * modules/gettext, modules/iconv, modules/lock, modules/readline:
63273         Use havelib.
63274
63275 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
63276
63277         Check for arithmetic overflow when calculating sizes, to prevent
63278         some buffer-overflow issues.  These patches are conservative, in the
63279         sense that when I couldn't determine whether an overflow was possible,
63280         I inserted a run-time check.
63281         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
63282         macros.
63283         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
63284         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
63285         (re_xnrealloc, re_x2nrealloc): New inline functions.
63286         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
63287         parse_bracket_exp):
63288         (build_equiv_class, build_charclass): Check for arithmetic overflow
63289         in size expression calculations.
63290         * lib/regex_internal.c (re_string_realloc_buffers):
63291         (build_wcs_upper_buffer, re_node_set_add_intersect):
63292         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
63293         (re_dfa_add_node, register_state): Likewise.
63294         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
63295         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
63296         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
63297         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
63298
63299 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
63300
63301         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
63302         m4/ulonglong.m4.  Problem reported by Martin Lambers.
63303
63304 2005-09-02  Bruno Haible  <bruno@clisp.org>
63305
63306         Support for lib vs. lib64 distinction on biarch platforms.
63307         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
63308         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
63309         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
63310
63311 2005-09-02  Bruno Haible  <bruno@clisp.org>
63312
63313         * gnulib-tool (import): In the other first-use case, provide defaults
63314         as well.
63315
63316 2005-09-02  Bruno Haible  <bruno@clisp.org>
63317
63318         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
63319         patches not yet found in the latest gettext release.
63320
63321 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63322
63323         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
63324         to avoid a collision with bits/local_lim.h in glibc.
63325         All uses changed.  Problem reported by Dmitry V. Levin in
63326         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
63327
63328         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
63329         bugs in int versus size_t comparisons.
63330         (re_string_context_at): Fix bug where the code assumed that
63331         Idx is signed.
63332
63333         Use bool where appropriate.
63334         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
63335         All callers changed.
63336         (calc_eclosure_iter): Likewise, for ROOT arg.
63337         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
63338         (build_charclass_op): Likewise, for NON_MATCH arg.
63339         * lib/regex_internal.c (re_string_allocate, re_string_construct):
63340         (re_string_construct_common): Likewise, for ICASE arg.
63341         * lib/regexec.c (re_search_2_stub, re_search_stub):
63342         Likewise, for RET_LEN arg.
63343         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
63344         (set_regs): Likewise, for FL_BACKTRACK arg.
63345         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
63346         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
63347         (calc_eclosure_iter, parse_bracket_exp):
63348         Use bool for internal variables that are booleans.
63349         * lib/regexec.c (re_search_internal, check_matching,
63350         proceed_next_node):
63351         (set_regs, build_sifted_states, sift_states_bkref):
63352         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
63353         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
63354         (find_collation_sequence_value):
63355         Likewise.
63356         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
63357         (re_node_set_compare):
63358         Return bool, not int. All callers changed.
63359         * lib/regexec.c (check_halt_node_context, check_dst_limits):
63360         (build_trtable, check_node_accept): Likewise.
63361         * lib/regex_internal.h: Include stdbool.h.
63362
63363         Fix bugs uncovered when converting to bool.
63364         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
63365         failure instead of charging ahead blindly.
63366         * lib/regex_internal.c (register_state): Likewise.
63367         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
63368         for freeing internal storage.
63369         (group_nodes_into_DFA_states): Use unsigned int, not int, for
63370         bitset pieces used as boolean, to avoid undefined behavior
63371         on hosts that do int overflow checking.
63372
63373 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63374
63375         * config/srclist.txt: Add glibc bugs 1285-1287.
63376
63377 2005-09-01  Jim Meyering  <jim@meyering.net>
63378
63379         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
63380         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
63381         Require gl_STAT_MACROS, too.
63382
63383 2005-09-01  Bruno Haible  <bruno@clisp.org>
63384
63385         * gnulib-tool (import): In the first-use case, provide defaults.
63386
63387 2005-09-01  Bruno Haible  <bruno@clisp.org>
63388
63389         * gnulib-tool (func_import): Remove the .tmp files.
63390
63391 2005-09-01  Bruno Haible  <bruno@clisp.org>
63392
63393         * gnulib-tool (func_import): Fix handling of symbolic links.
63394
63395 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63396
63397         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
63398         old glibc regex code mishandles strings longer than 2**31 bytes.
63399         This patch fixes this when the regex code is used in gnulib
63400         (i.e., outside glibc).
63401
63402         This patch should not affect the use of the regex code inside
63403         glibc.  No doubt this problem also needs to be handled for glibc
63404         as well, but the result will be an incompatible change to the
63405         glibc ABI, and the old ABI will have to be supported too.  That
63406         can be the the subject for another patch.
63407
63408         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
63409         governing whether the rest of this patch is active.  By default,
63410         the macro is disabled and the patch has no effect.
63411         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
63412         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
63413         (struct re_pattern_buffer, re_search, re_search_2, re_match):
63414         (re_match_2, re_set_registers): Use the new types.
63415         * lib/regex_internal.h (Idx, re_hashval_t): New types.
63416         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
63417         New macros.
63418         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
63419         (re_string_context_at, bin_tree_t, re_dfastate_t):
63420         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
63421         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
63422         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
63423         (re_string_char_size_at, re_string_wchar_at):
63424         (re_string_elem_size_at):
63425         Use the new types and macros to port to 64-bit hosts.
63426         Use unsigned types for internal values, so that the code
63427         mostly works even for arrays larger than SSIZE_MAX.
63428         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
63429         (search_duplicated_node, calc_eclosure_iter, fetch_number):
63430         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
63431         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
63432         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
63433         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
63434         (calc_inveclosure, parse_dup_op, build_range_exp):
63435         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
63436         (fetch_number, create_token_tree, mark_opt_subexp):
63437         Likewise.
63438         * lib/regex_internal.c (re_string_construct_common,
63439         create_ci_newstate):
63440         (create_cd_newstate, re_string_allocate, re_string_construct):
63441         (re_string_realloc_buffers, build_wcs_upper_buffer):
63442         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
63443         (re_string_reconstruct, re_string_peek_byte_case):
63444         (re_string_fetch_byte_case, re_string_context_at):
63445         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
63446         (re_node_set_init_copy, re_node_set_add_intersect):
63447         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
63448         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
63449         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
63450         (re_acquire_state, re_acquire_state_context, register_state):
63451         Likewise.
63452         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
63453         search_cur_bkref_entry):
63454         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
63455         (re_search_internal, re_search_2_stub, re_search_stub)
63456         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
63457         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
63458         (update_cur_sifted_state, check_dst_limits):
63459         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
63460         (check_subexp_limits, sift_states_bkref, merge_state_array):
63461         (check_subexp_matching_top, get_subexp, get_subexp_sub):
63462         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
63463         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
63464         (expand_bkref_cache, check_node_accept_bytes):
63465         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
63466         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
63467         (acquire_init_state_context, check_halt_node_context):
63468         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
63469         (sift_states_backward, clean_state_log_if_needed):
63470         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
63471         (find_recover_state, transit_state_sb, transit_state_mb):
63472         (transit_state_bkref, build_trtable, match_ctx_clean):
63473         Likewise.
63474         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
63475         to work around an assumption that REG_MISSING is negative.
63476
63477         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
63478         (seek_collating_symbol_entry) [defined _LIBC]:
63479         (lookup_collation_sequence_value) [defined _LIBC]:
63480         (build_range_exp, build_collating_symbol) [defined _LIBC]:
63481         Use prototypes rather than old-style function definitions.
63482         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
63483         (transit_state_sb) [0]:
63484         (find_collation_sequence_value) [defined _LIBC]: Likewise.
63485
63486         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
63487         rm_eo.
63488
63489         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
63490         (optimize_subexps, lower_subexp):
63491         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
63492         since the signed shift might overflow.  Use 1u<<31 instead.
63493         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
63494         Likewise.
63495         * lib/regexec.c (check_dst_limits_calc_pos_1,
63496         check_subexp_matching_top): Likewise.
63497
63498         * lib/regcomp.c (optimize_subexps, lower_subexp):
63499         Use CHAR_BIT rather than 8, for clarity.
63500         * lib/regexec.c (check_dst_limits_calc_pos_1):
63501         (check_subexp_matching_top): Likewise.
63502         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
63503         have to worry about portability issues when shifting it left.
63504         Remove no-longer-needed test for table_size > 0.
63505         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
63506         in a word, as the resulting behavior is undefined.
63507         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
63508         in one case, a <= should have been an <, and in another case the
63509         whole test was missing.
63510         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
63511         the standard name CHAR_BIT.
63512         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
63513         this is not true on one's complement and signed-magnitude hosts.
63514
63515         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
63516         next_last_offset.
63517         (struct re_dfa_t): Remove unused member states_alloc.
63518         * lib/regcomp.c (init_dfa): Don't initialize unused members.
63519
63520 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63521
63522         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
63523         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
63524         and large-file glibc and in 32-bit large-file Solaris.
63525
63526 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63527
63528         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
63529         lengths fit in regoff_t; this isn't true if regoff_t is the same
63530         width as size_t.
63531         * lib/regex.c (re_search_internal): 5th arg is LAST_START
63532         (= START + RANGE) instead of RANGE.  This avoids overflow
63533         problems when regoff_t is the same width as size_t.
63534         All callers changed.
63535         (re_search_2_stub): Check for overflow when adding the
63536         sizes of the two strings.
63537         (re_search_stub): Check for overflow when adding START
63538         to RANGE; if it occurs, substitute the extreme value.
63539
63540 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63541
63542         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
63543
63544 2005-08-31  Jim Meyering  <jim@meyering.net>
63545
63546         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
63547         a pointer-to-const.
63548         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
63549         (register_state): Likewise.
63550         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
63551         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
63552         (group_nodes_into_DFAstates): Likewise.
63553
63554 2005-08-31  Jim Meyering  <jim@meyering.net>
63555
63556         * check-module: Add a FIXME comment.
63557
63558 2005-08-31  Eric Blake  <ebb9@byu.net>
63559
63560         * modules/unistd-safer (Files): Add unistd--.h.
63561         * modules/stdio-safer (Files): Add stdio--.h.
63562
63563 2005-08-31  Derek Price  <derek@ximbiot.com>
63564
63565         * lib/getdelim.c (getdelim): Return EOF on EOF.
63566         Reported by Larry Jones <lawrence.jones@ugs.com>.
63567
63568 2005-08-31  Bruno Haible  <bruno@clisp.org>
63569
63570         Avoid unnecessary diffs in the generated lib/Makefile.am.
63571         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
63572         the generated files.
63573         (func_import): Don't set cmd.
63574
63575 2005-08-31  Bruno Haible  <bruno@clisp.org>
63576
63577         * lib/strstr.c: Include <stddef.h>, for NULL.
63578         * lib/strcasestr.c: Likewise.
63579         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63580
63581 2005-08-31  Bruno Haible  <bruno@clisp.org>
63582
63583         * gnulib-tool: New option --macro-prefix.
63584         (func_import): Use macro_prefix.
63585         (import): Handle option --macro-prefix.
63586
63587 2005-08-31  Bruno Haible  <bruno@clisp.org>
63588
63589         * gnulib-tool (import): Rename most ac_* variables to cached_*.
63590         Also use new variables cached_lgpl, cached_libtool.
63591
63592 2005-08-31  Bruno Haible  <bruno@clisp.org>
63593
63594         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
63595         always instantiating them.
63596
63597 2005-08-31  Bruno Haible  <bruno@clisp.org>
63598
63599         * gnulib-tool (func_import): Read the previous cached settings
63600         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
63601         earlier added by gnulib but are now dropped. Warn when a gnulib file
63602         overwrites a non-gnulib file.
63603
63604 2005-08-31  Bruno Haible  <bruno@clisp.org>
63605
63606         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
63607         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
63608         projects that don't keep autogenerated files in CVS. Put into
63609         actioncmd only the specified modules, not the transitive closure.
63610
63611 2005-08-31  Bruno Haible  <bruno@clisp.org>
63612
63613         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
63614         Create directories that shall be filled.
63615         (import): Don't look for gl_* macros in configure.ac. Recurse across
63616         all directories containing a gnulib-cache.m4 files, if meaningful.
63617
63618 2005-08-31  Bruno Haible  <bruno@clisp.org>
63619
63620         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
63621         (import): Set seen_libtool when we see gl_LIBTOOL.
63622
63623 2005-08-31  Bruno Haible  <bruno@clisp.org>
63624
63625         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
63626         declaration macro definitions from generated gnulib.m4.
63627
63628 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
63629
63630         * lib/iconvme.h: Add prototype for iconv_alloc.
63631
63632 2005-08-29  Simon Josefsson  <jas@extundo.com>
63633
63634         * lib/iconvme.c: Fix errno.
63635
63636 2005-08-29  Bruno Haible  <bruno@clisp.org>
63637
63638         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
63639         that it works when the directory contains spaces.
63640
63641 2005-08-29  Bruno Haible  <bruno@clisp.org>
63642
63643         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
63644
63645 2005-08-29  Bruno Haible  <bruno@clisp.org>
63646
63647         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
63648         Emit more advice.
63649
63650 2005-08-29  Bruno Haible  <bruno@clisp.org>
63651         and Stepan Kasal  <kasal@ucw.cz>
63652
63653         * check-module: If more parameters are given, check each of them
63654         separately; add more exceptions, as noted by Jim Meyering.
63655         (check_module): New procedure.
63656         (%exempt_header): Now contains all exceptions.
63657
63658 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
63659
63660         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
63661
63662 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
63663
63664         * lib/iconvme.c: Split iconv_string into iconv_alloc.
63665
63666 2005-08-28  Bruno Haible  <bruno@clisp.org>
63667
63668         * m4/gnulib-tool.m4: New file.
63669
63670 2005-08-27  Jim Meyering  <jim@meyering.net>
63671
63672         * modules/unistd-safer (Files): Add pipe-safer.c.
63673         * modules/fcntl-safer (Files): Add creat-safer.c.
63674
63675 2005-08-27  Jim Meyering  <jim@meyering.net>
63676
63677         * m4/stdlib-safer.m4: New file.  From coreutils.
63678         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
63679         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
63680         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
63681         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
63682         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
63683
63684 2005-08-27  Jim Meyering  <jim@meyering.net>
63685
63686         * lib/fopen-safer.c: Merge minor changes from coreutils.
63687         * lib/dup-safer.c: Likewise.
63688         * lib/fd-safer.c: Likewise.
63689
63690         Merge from coreutils.
63691         * lib/stdio--.h: New file.
63692         * lib/stdlib--.h: New file.
63693         * lib/mkstemp-safer.c: New file.
63694
63695         GNU tar needs these.
63696         * lib/pipe-safer.c: New file.
63697         * lib/creat-safer.c: New file.
63698         * lib/fcntl--.h (creat): Define to creat_safer.
63699         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
63700         * lib/unistd--.h (pipe): Define to pipe_safer.
63701         * lib/unistd-safer.h: Declare pipe_safer.
63702
63703 2005-08-26  Simon Josefsson  <jas@extundo.com>
63704
63705         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
63706         Haible <bruno@clisp.org>.
63707
63708 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
63709
63710         * lib/regex_internal.h: Remove all references to
63711         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
63712         or better.
63713         (bitset_not, bitset_merge, bitset_not_merge):
63714         (bitset_mask, re_string_allocate, re_string_construct):
63715         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
63716         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
63717         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
63718         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
63719         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
63720         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
63721         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
63722         (re_acquire_state_context):
63723         Remove unnecessary forward decls.
63724         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
63725         Put __attribute at function definition,
63726         now that the function decl has been removed.
63727         * lib/regex_internal.c (re_string_peek_byte_case):
63728         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
63729         Likewise.
63730
63731 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
63732
63733         * m4/regex.m4: Add AC_PREREQ(2.50).
63734         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
63735
63736 2005-08-25  Simon Josefsson  <jas@extundo.com>
63737
63738         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
63739         __fsetlocking.
63740
63741 2005-08-25  Simon Josefsson  <jas@extundo.com>
63742
63743         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
63744         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
63745         GLIBC specific code.
63746
63747 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63748
63749         Make regex safe for g++.  This fixes one real bug (an "err"
63750         that should have been "*err").  g++ problem reported by
63751         Sam Steingold.
63752         * lib/regex_internal.h (re_calloc): New macro, consistent with
63753         re_malloc etc.  All callers of calloc changed to use re_calloc.
63754         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
63755         not int.  All callers changed.
63756         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
63757         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
63758         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
63759         (find_recover_state): Change "err" to "*err"; this fixes what
63760         appears to be a real bug.
63761         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
63762         versus int.
63763
63764 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63765
63766         * modules/regex (Depends-on): Add malloc, since the code
63767         assumes that !malloc(0) means failure.
63768
63769 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63770
63771         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
63772
63773         alloca modernization/simplification for regex.
63774         * lib/regex.c: Remove portability cruft for alloca.  This no longer
63775         needs to be at the start of the file, and can be moved into
63776         regex_internal.h and simplified.
63777         * lib/regex_internal.h: Include <alloca.h>.
63778         (__libc_use_alloca) [!defined _LIBC]: New macro.
63779         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
63780         now works outside glibc.
63781
63782 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63783
63784         * config/srclist.txt: Add glibc bugs 1241, 1245.
63785
63786 2005-08-25  Jim Meyering  <jim@meyering.net>
63787
63788         * lib/open-safer.c: Include <config.h>.
63789         Otherwise, we'd lose LARGEFILE support in any file using
63790         e.g. "fcntl--.h"
63791
63792 2005-08-25  Bruno Haible  <bruno@clisp.org>
63793
63794         * m4/minmax.m4: Require autoconf 2.52.
63795         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
63796         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
63797         alternatives of translit over the alphabet.
63798         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
63799
63800 2005-08-24  Simon Josefsson  <jas@extundo.com>
63801
63802         * tests/test-getpass.c: New file.
63803
63804 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63805
63806         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
63807         for GNU regex features.
63808
63809 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63810
63811         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
63812         * lib/regex.h (regerror): Likewise.
63813
63814         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
63815         requires this.  (The code never needed it.)
63816
63817         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
63818         All uses of recently-renamed identifiers changed to use the new,
63819         POSIX-compliant names.  The code will build and run just fine
63820         without these changes, but it's better to eat our own dog food
63821         and use the standard-conforming names.
63822
63823         * lib/regex.h: Fix a multitude of POSIX name space violations.
63824         These changes have an effect only for programs that define
63825         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
63826         do not change anything for programs compiled in the normal way.
63827         Also, there is no effect on the ABI.
63828
63829         (_REGEX_SOURCE): New macro.
63830         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
63831         defined and _GNU_SOURCE is not; this fixes a name space violation.
63832
63833         Rename the following macros to obey POSIX requirements.
63834         The old names are still visible as macros if _REGEX_SOURCE is defined.
63835         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
63836         RE_BACKSLASH_ESCAPE_IN_LISTS.
63837         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
63838         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
63839         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
63840         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
63841         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
63842         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
63843         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
63844         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
63845         (REG_INTERVALS): renamed from RE_INTERVALS.
63846         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
63847         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
63848         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
63849         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
63850         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
63851         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
63852         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
63853         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
63854         RE_UNMATCHED_RIGHT_PAREN_ORD.
63855         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
63856         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
63857         (REG_DEBUG): renamed from RE_DEBUG.
63858         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
63859         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
63860         unusual, since we can't clash with the POSIX REG_ICASE.
63861         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
63862         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
63863         (REG_NO_SUB): renamed from RE_NO_SUB.
63864         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
63865         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
63866         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
63867         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
63868         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
63869         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
63870         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
63871         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
63872         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
63873         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
63874         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
63875         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
63876         RE_SYNTAX_POSIX_MINIMAL_BASIC.
63877         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
63878         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
63879         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
63880         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
63881         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
63882         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
63883         (REG_FIXED): Renamed from REGS_FIXED.
63884         (REG_NREGS): Renamed from RE_NREGS.
63885
63886         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
63887         of other REG_* macros, since POSIX says the user is allowed to
63888         #undef these macros selectively.
63889
63890         (reg_errcode_t): Update comment stating what other tables need
63891         to be consistent.
63892
63893         Rename the following enum values to obey POSIX requirements.
63894         The old names are still visible as macros.
63895         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
63896         is not defined, since GNU is supposed to be a superset of POSIX as
63897         much as possible, and since we want reg_errcode_t to be a signed
63898         type for implementation consistency.
63899         (_REG_NOERROR): Renamed from REG_NOERROR.
63900         (_REG_NOMATCH): Renamed from REG_NOMATCH.
63901         (_REG_BADPAT): Renamed from REG_BADPAT.
63902         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
63903         (_REG_ECTYPE): Renamed from REG_ECTYPE.
63904         (_REG_EESCAPE): Renamed from REG_EESCAPE.
63905         (_REG_ESUBREG): Renamed from REG_ESUBREG.
63906         (_REG_EBRACK): Renamed from REG_EBRACK.
63907         (_REG_EPAREN): Renamed from REG_EPAREN.
63908         (_REG_EBRACE): Renamed from REG_EBRACE.
63909         (_REG_BADBR): Renamed from REG_BADBR.
63910         (_REG_ERANGE): Renamed from REG_ERANGE.
63911         (_REG_ESPACE): Renamed from REG_ESPACE.
63912         (_REG_BADRPT): Renamed from REG_BADRPT.
63913         (_REG_EEND): Renamed from REG_EEND.
63914         (_REG_ESIZE): Renamed from REG_ESIZE.
63915         (_REG_ERPAREN): Renamed from REG_ERPAREN.
63916         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
63917         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
63918         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
63919         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
63920
63921         (_REG_RE_NAME, _REG_RM_NAME): New macros.
63922         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
63923         changed.  But support the old name if the new one is not defined
63924         and if _REGEX_SOURCE.
63925
63926         Change the following member names in struct re_pattern_buffer.
63927         The old names are still supported if !_REGEX_SOURCE.
63928         The new names are always supported, regardless of _REGEX_SOURCE.
63929         (re_buffer): Renamed from buffer.
63930         (re_allocated): Renamed from allocated.
63931         (re_used): Renamed from used.
63932         (re_syntax): Renamed from syntax.
63933         (re_fastmap): Renamed from fastmap.
63934         (re_translate): Renamed from translate.
63935         (re_can_be_null): Renamed from can_be_null.
63936         (re_regs_allocated): Renamed from regs_allocated.
63937         (re_fastmap_accurate): Renamed from fastmap_accurate.
63938         (re_no_sub): Renamed from no_sub.
63939         (re_not_bol): Renamed from not_bol.
63940         (re_not_eol): Renamed from not_eol.
63941         (re_newline_anchor): Renamed from newline_anchor.
63942
63943         Change the following member names in struct re_registers.
63944         The old names are still supported if !_REGEX_SOURCE.
63945         The new names are always supported, regardless of _REGEX_SOURCE.
63946         (rm_num_regs): Renamed from num_regs.
63947         (rm_start): Renamed from start.
63948         (rm_end): Renamed from end.
63949
63950         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
63951         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
63952         Prepend __ to parameter names.
63953
63954         Undo yesterday's changes.
63955
63956 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63957
63958         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
63959         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
63960         lib/regex.c.
63961
63962 2005-08-24  Jim Meyering  <jim@meyering.net>
63963
63964         Sync from coreutils.
63965         * m4/fcntl-safer.m4: New file.
63966
63967         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
63968         and object files for this module.
63969
63970 2005-08-24  Jim Meyering  <jim@meyering.net>
63971
63972         Sync from coreutils.
63973         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
63974
63975 2005-08-24  Jim Meyering  <jim@meyering.net>
63976
63977         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
63978         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
63979
63980 2005-08-24  Jim Meyering  <jim@meyering.net>
63981
63982         * modules/fcntl-safer: New module.
63983         * modules/fts (Depends-on): Add fcntl-safer.
63984         * MODULES.html.sh (File descriptor based Input/Output):
63985         Add fcntl-safer.
63986
63987 2005-08-24  Bruno Haible  <bruno@clisp.org>
63988
63989         Support for unit test modules.
63990         * modules/README: Mention tests modules.
63991         * modules/TEMPLATE-TESTS: New file.
63992         * gnulib-tool: New options --extract-tests-module, --with-tests and
63993         --tests-base (unused for the moment).
63994         (testsbase, inctests): New variables.
63995         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
63996         (func_verify_module): Exclude TEMPLATE-TESTS.
63997         (func_verify_nontests_module, func_verify_tests_module): New functions.
63998         (func_get_dependencies): Add implicit dependency for tests modules.
63999         (func_get_tests_module): New function.
64000         (func_modules_transitive_closure): When --with-tests was specified,
64001         include the unit tests as well, unless explicitly avoided.
64002         (func_emit_lib_Makefile_am): Ignore the tests modules here.
64003         (func_emit_tests_Makefile_am): New function.
64004         (func_create_testdir): When --with-tests was specified, emit a
64005         tests/ directory.
64006         * MODULES.html.sh (Future developments): Update.
64007
64008 2005-08-24  Bruno Haible  <bruno@clisp.org>
64009
64010         * modules/tls-tests: New file.
64011         * tests/test-tls.c: New file, from GNU gettext.
64012
64013 2005-08-24  Bruno Haible  <bruno@clisp.org>
64014
64015         * modules/lock-tests: New file.
64016         * tests/test-lock.c: New file, from GNU gettext.
64017
64018 2005-08-24  Bruno Haible  <bruno@clisp.org>
64019
64020         * lib/lock.h: Add multiple inclusion guard.
64021         * lib/tls.h: Add multiple inclusion guard.
64022
64023 2005-08-24  Bruno Haible  <bruno@clisp.org>
64024
64025         * gnulib-tool: Add support for the --aux-dir option to
64026         --create-testdir, --create-megatestdir, --test, --megatest.
64027         (func_create_testdir, func_create_megatestdir): Optionally emit a
64028         AC_CONFIG_AUX_DIR directive.
64029         (create-testdir, create-megatestdir, test, megatest): Provide a
64030         default value for $auxdir.
64031
64032 2005-08-24  Bruno Haible  <bruno@clisp.org>
64033
64034         * gnulib-tool (import): Use compound statement instead of subshell
64035         where possible.
64036
64037 2005-08-24  Bruno Haible  <bruno@clisp.org>
64038
64039         * gnulib-tool (import): Change --aux-dir default to "build-aux".
64040
64041 2005-08-24  Bruno Haible  <bruno@clisp.org>
64042
64043         * gnulib-tool (func_version): Update.
64044
64045 2005-08-24  Bruno Haible  <bruno@clisp.org>
64046
64047         * gnulib-tool (func_import, func_create_testdir,
64048         func_create_megatestdir): Quote all autoconf macro arguments.
64049
64050 2005-08-24  Bruno Haible  <bruno@clisp.org>
64051
64052         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
64053         option --force, because --force causes the aclocal.m4 of each
64054         subdirectory to be newer than the corresponding config.h.in.
64055
64056 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64057
64058         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
64059         All contents moved to gl_REGEX.
64060         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
64061         assume that it does.
64062
64063 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64064
64065         * lib/regex.h (REG_NOSYS)
64066         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
64067         Define, since POSIX requires it as of 2001.
64068         (_REG_ENOSYS)
64069         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
64070         New private symbol, used to keep the enum signed in all cases.
64071         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
64072         Youngman in
64073         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
64074
64075         * lib/regex_internal.c (re_string_skip_chars, register_state):
64076         (calc_state_hash):
64077         Remove forward decls; no longer needed now that we use prototypes.
64078         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
64079         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
64080         (clean_state_log_if_needed): Likewise.
64081
64082 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64083
64084         * config/srclist.txt: Add glibc bugs 1231-1233.
64085
64086 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64087
64088         Fix problems reported by Sam Steingold in
64089         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
64090         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
64091         assumed that reg_errcode_t is a signed type, which is not
64092         necessarily true if _XOPEN_SOURCE is not defined.
64093         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
64094         since some compilers warn about it otherwise.
64095
64096 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64097
64098         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
64099         (init_word_char, create_initial_state, duplicate_node_closure):
64100         (fetch_token, peek_token_bracket, build_range_exp):
64101         (build_collating_symbol): Remove forward decls; no longer needed
64102         now that we use prototypes.
64103
64104         * lib/regcomp.c:
64105         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
64106         (re_compile_fastmap_iter, regcomp, regerror, regfree):
64107         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
64108         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
64109         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
64110         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
64111         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
64112         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
64113         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
64114         (build_range_exp, build_collating_symbol, parse_bracket_exp):
64115         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
64116         (build_charclass, build_charclass_op, fetch_number, create_tree):
64117         (create_token_tree, mark_opt_subexp, duplicate_tree):
64118         Use prototypes rather than old-style definitions.
64119
64120         * lib/regex_internal.c:
64121         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
64122         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
64123         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
64124         (re_string_reconstruct, re_string_peek_byte_case):
64125         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
64126         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
64127         (re_node_set_init_copy, re_node_set_add_intersect):
64128         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
64129         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
64130         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
64131         (re_acquire_state, re_acquire_state_context, register_state):
64132         (create_ci_newstate, create_cd_newstate, free_state):
64133         Likewise.
64134         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
64135         re_search_2):
64136         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
64137         (re_search_internal, prune_impossible_nodes):
64138         (acquire_init_state_context, check_matching, static):
64139         (check_halt_node_context, check_halt_state_context, proceed_next_node):
64140         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
64141         (update_regs, sift_states_backward, build_sifted_states):
64142         (clean_state_log_if_needed, merge_state_array):
64143         (update_cur_sifted_state, add_epsilon_src_nodes):
64144         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
64145         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
64146         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
64147         (find_recover_state, check_subexp_matching_top, transit_state_mb):
64148         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
64149         (check_arrival, check_arrival_add_next_nodes):
64150         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
64151         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
64152         (check_node_accept_bytes, check_node_accept, extend_buffers):
64153         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
64154         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
64155         (sift_ctx_init):
64156         Likewise.
64157
64158         * lib/regex_internal.h:
64159         (re_string_allocate, re_string_construct, re_string_reconstruct):
64160         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
64161         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
64162         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
64163         (re_string_context_at, re_string_peek_byte_case):
64164         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
64165         is defined, since we now use prototypes always.
64166
64167         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
64168         C89 or better.  All uses removed.
64169
64170 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64171
64172         * config/srclist.txt: Add glibc bugs 1220-1227.
64173
64174 2005-08-20  Jim Meyering  <jim@meyering.net>
64175
64176         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
64177         of unused local, dfa.
64178
64179 2005-08-20  Bruno Haible  <bruno@clisp.org>
64180
64181         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
64182
64183 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64184
64185         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
64186         (re_node_set_insert_last, re_dfa_add_node):
64187         Rename local variables to avoid GCC shadowing warnings.
64188
64189 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64190
64191         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
64192         [defined lint]: Suppress bogus uninitialized-variable warnings.
64193
64194         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
64195         and let the caller return REG_ESPACE if out of space.  This
64196         removes an uninitialied-variable warning with GCC 4.0.1, and also
64197         avoids taking the address of a local variable.  All callers
64198         changed.
64199
64200 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64201
64202         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
64203         $LIBCSRC/posix/regexec.c.
64204         Add glibc bug 1217 for regcomp.c.
64205
64206 2005-08-19  Jim Meyering  <jim@meyering.net>
64207
64208         * lib/regexec.c (proceed_next_node): Redo local variables to
64209         avoid GCC shadowing warnings.
64210
64211 2005-08-18  Bruno Haible  <bruno@clisp.org>
64212
64213         * lib/strstr.c (strstr): Fix return value in multibyte case.
64214         * lib/strcasestr.c (strcasestr): Likewise.
64215
64216 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64217
64218         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
64219
64220 2005-08-17  Jim Meyering  <jim@meyering.net>
64221
64222         Make the %s format (seconds since the epoch) work for a negative
64223         number and when used with a zero-padded field width, e.g. %015s.
64224
64225         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
64226         label so that it precedes the code to set `digits'.  Otherwise,
64227         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
64228         print `00-22'.  Now, it prints `-0022', as it should.
64229
64230 2005-08-17  Bruno Haible  <bruno@clisp.org>
64231
64232         * modules/strstr (Files): Add m4/mbrtowc.m4.
64233         (Depends-on): Add mbuiter.
64234
64235 2005-08-17  Bruno Haible  <bruno@clisp.org>
64236
64237         * modules/strcasestr: New file.
64238         * MODULES.html.sh (String handling, based on ANSI C 89): Add
64239         strcasestr.
64240
64241 2005-08-17  Bruno Haible  <bruno@clisp.org>
64242
64243         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
64244
64245 2005-08-17  Bruno Haible  <bruno@clisp.org>
64246
64247         * modules/mbuiter: New file.
64248         * MODULES.html.sh (Extended multibyte and wide character utilities):
64249         Add mbuiter.
64250
64251 2005-08-17  Bruno Haible  <bruno@clisp.org>
64252
64253         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
64254         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
64255
64256 2005-08-17  Bruno Haible  <bruno@clisp.org>
64257
64258         * m4/strcasestr.m4: New file.
64259
64260 2005-08-17  Bruno Haible  <bruno@clisp.org>
64261
64262         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
64263         * lib/strstr.c: Completely rewritten, with multibyte locale support.
64264
64265 2005-08-17  Bruno Haible  <bruno@clisp.org>
64266
64267         * lib/strcasestr.h: New file.
64268         * lib/strcasestr.c: New file.
64269
64270 2005-08-17  Bruno Haible  <bruno@clisp.org>
64271
64272         * lib/strcasecmp.c: Use mbuiter.h.
64273
64274 2005-08-17  Bruno Haible  <bruno@clisp.org>
64275
64276         * lib/mbuiter.h: New file.
64277
64278 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
64279
64280         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
64281         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
64282         and gl_GETOPT are both invoked via different paths (as happens
64283         with GNU tar CVS because it uses both argp and getopt), the former
64284         wins.
64285
64286 2005-08-16  Bruno Haible  <bruno@clisp.org>
64287
64288         * modules/tls: New file.
64289         * MODULES.html.sh (Multithreading): Add tls.
64290
64291 2005-08-16  Bruno Haible  <bruno@clisp.org>
64292
64293         * modules/strnlen1: New file.
64294         * MODULES.html.sh (String handling): Add strnlen1.
64295
64296 2005-08-16  Bruno Haible  <bruno@clisp.org>
64297
64298         * modules/strcase (Files): Add m4/mbrtowc.m4.
64299         (Depends-on): Add strnlen1, mbchar.
64300
64301 2005-08-16  Bruno Haible  <bruno@clisp.org>
64302
64303         * modules/mbiter: New file.
64304         * MODULES.html.sh (Extended multibyte and wide character utilities):
64305         Add mbiter.
64306
64307 2005-08-16  Bruno Haible  <bruno@clisp.org>
64308
64309         * modules/mbfile: New file.
64310         * MODULES.html.sh (Extended multibyte and wide character utilities):
64311         Add mbfile.
64312
64313 2005-08-16  Bruno Haible  <bruno@clisp.org>
64314
64315         * modules/mbchar: New file.
64316         * MODULES.html.sh (Extended multibyte and wide character utilities):
64317         New section.
64318
64319 2005-08-16  Bruno Haible  <bruno@clisp.org>
64320
64321         * m4/tls.m4: New file, from GNU gettext.
64322
64323 2005-08-16  Bruno Haible  <bruno@clisp.org>
64324
64325         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
64326         always.
64327         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
64328
64329 2005-08-16  Bruno Haible  <bruno@clisp.org>
64330
64331         * m4/mbiter.m4: New file.
64332
64333 2005-08-16  Bruno Haible  <bruno@clisp.org>
64334
64335         * m4/mbfile.m4: New file.
64336
64337 2005-08-16  Bruno Haible  <bruno@clisp.org>
64338
64339         * m4/mbchar.m4: New file.
64340
64341 2005-08-16  Bruno Haible  <bruno@clisp.org>
64342
64343         * lib/tls.h: New file, from GNU gettext.
64344         * lib/tls.c: New file, from GNU gettext.
64345
64346 2005-08-16  Bruno Haible  <bruno@clisp.org>
64347
64348         * lib/strnlen1.h: New file.
64349         * lib/strnlen1.c: New file.
64350
64351 2005-08-16  Bruno Haible  <bruno@clisp.org>
64352
64353         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
64354         (mbi_init): Update.
64355         (mbi_avail, mbi_advance): Let the iteration end before the terminating
64356         NUL byte, not after it.
64357
64358 2005-08-16  Bruno Haible  <bruno@clisp.org>
64359
64360         * lib/strcase.h (strcasecmp): Add note in comments.
64361         * lib/strncasecmp.c: Use code from strcasecmp.c.
64362         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
64363         (strcasecmp): Work correctly in multibyte locales.
64364
64365 2005-08-16  Bruno Haible  <bruno@clisp.org>
64366
64367         * lib/mbiter.h: New file.
64368
64369 2005-08-16  Bruno Haible  <bruno@clisp.org>
64370
64371         * lib/mbfile.h: New file.
64372
64373 2005-08-16  Bruno Haible  <bruno@clisp.org>
64374
64375         * lib/mbchar.h: New file.
64376         * lib/mbchar.c: New file.
64377
64378 2005-08-16  Bruno Haible  <bruno@clisp.org>
64379
64380         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
64381         the valid ones. Makes the comparison operations transitive:
64382         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
64383         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
64384
64385 2005-08-15  Simon Josefsson  <jas@extundo.com>
64386
64387         * modules/ssize_t (License): Change to 'unlimited'.
64388
64389         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
64390
64391 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64392
64393         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
64394         Add comments for each pending glibc patch.
64395
64396 2005-08-15  Bruno Haible  <bruno@clisp.org>
64397
64398         * lib/regex.h (__restrict_arr): Don't define to __restrict if
64399         __cplusplus is defined.
64400
64401 2005-08-14  Jim Meyering  <jim@meyering.net>
64402
64403         Sync from coreutils.
64404
64405         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
64406         Use the hash-table-based cycle-detection code not just when
64407         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
64408         Reported by James Youngman in
64409         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
64410         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
64411         FTS_TIGHT_CYCLE_CHECK.
64412         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
64413         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
64414         once again.
64415         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
64416         * lib/fts.c (fd_safer): Remove decl.
64417         Include fcntl--.h rather than unistd-safer.h
64418         (fts_safe_changedir): Don't call fd_safer; no longer needed
64419         now that we include fcntl--.h.
64420
64421 2005-08-12  Simon Josefsson  <jas@extundo.com>
64422
64423         * modules/getndelim2: Use ssize_t module.
64424         * modules/getnline: Likewise.
64425         * modules/safe-read: Likewise.
64426         * modules/xreadlink: Likewise.
64427
64428         * modules/ssize_t: New file.
64429
64430 2005-08-12  Simon Josefsson  <jas@extundo.com>
64431
64432         * m4/readline.m4: Look for termcap, curses or ncurses if required.
64433
64434 2005-08-12  Simon Josefsson  <jas@extundo.com>
64435
64436         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64437         ssize_t.
64438
64439 2005-08-12  Simon Josefsson  <jas@extundo.com>
64440
64441         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
64442         readline, getdelim and check_version.
64443         (Support for systems lacking ISO C 99: Sizes of integer types):
64444         Add size_max.
64445
64446 2005-08-12  Bruno Haible  <bruno@clisp.org>
64447
64448         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
64449
64450 2005-08-11  Simon Josefsson  <jas@extundo.com>
64451
64452         * modules/readline: New file.
64453
64454         * modules/strnlen (Files): Add strnlen.h.
64455
64456 2005-08-11  Simon Josefsson  <jas@extundo.com>
64457
64458         * m4/readline.m4: New file.
64459
64460 2005-08-11  Simon Josefsson  <jas@extundo.com>
64461
64462         * lib/readline.h, readline.c: New file.
64463
64464 2005-08-11  Simon Josefsson  <jas@extundo.com>
64465
64466         * doc/gnulib.texi (Initial import, Finishing touches): Mention
64467         gl_AVOID.
64468
64469 2005-08-11  Bruno Haible  <bruno@clisp.org>
64470
64471         * lib/strnlen.h (strnlen): Change parameter name to match comment.
64472
64473 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
64474
64475         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
64476
64477 2005-08-10  Simon Josefsson  <jas@extundo.com>
64478
64479         * tests/test-iconvme.c: New file.
64480
64481 2005-08-10  Simon Josefsson  <jas@extundo.com>
64482
64483         * m4/strnlen.m4: New file.
64484
64485         * m4/strndup.m4: Don't check for strnlen declaration, done in
64486         strnlen.m4.
64487
64488 2005-08-10  Simon Josefsson  <jas@extundo.com>
64489
64490         * lib/strndup.c: Use strnlen.h.
64491
64492         * lib/strnlen.h: New file.
64493
64494 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64495
64496         * README: Typos.
64497
64498 2005-08-02  Simon Josefsson  <jas@extundo.com>
64499
64500         * modules/readline: New file.
64501
64502 2005-08-02  Simon Josefsson  <jas@extundo.com>
64503
64504         * modules/getdelim: New file.
64505
64506         * modules/getline: Rewrite, don't use getndelim2.
64507
64508 2005-08-02  Simon Josefsson  <jas@extundo.com>
64509
64510         * m4/getline.m4: Separate out getdelim stuff into separate module.
64511
64512         * m4/getdelim.m4: New file.
64513
64514 2005-08-02  Simon Josefsson  <jas@extundo.com>
64515
64516         * lib/getline.h, getline.c: Rewrite.
64517
64518         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
64519
64520 2005-07-31  Bruno Haible  <bruno@clisp.org>
64521
64522         * lib/lock.h (gl_lock_initializer): New macro.
64523         (gl_lock_define_initialized): Use it.
64524         (gl_rwlock_initializer): New macro.
64525         (gl_rwlock_define_initialized): Use it.
64526         (gl_recursive_lock_initializer): New macro.
64527         (gl_recursive_lock_define_initialized): Use it.
64528
64529 2005-07-30  Karl Berry  <karl@gnu.org>
64530
64531         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
64532         Report from Ben Pfaff, regarding getopt.
64533
64534 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
64535
64536         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
64537         normal way.
64538         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
64539         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
64540         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
64541         (gl_GETOPT): Use the new macros.  Most of the implementation
64542         is moved to the new macros.  This is for programs like Emacs
64543         that don't want all the functionality of gl_GETOPT.
64544
64545 2005-07-26  Bruno Haible  <bruno@clisp.org>
64546
64547         * m4/lock.m4: Update from GNU gettext.
64548
64549 2005-07-26  Bruno Haible  <bruno@clisp.org>
64550
64551         * lib/lock.h: Update from GNU gettext.
64552         * lib/lock.c: Update from GNU gettext.
64553
64554 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
64555
64556         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
64557         obsolescent AC_TRY_RUN.  Include the default includes files, for
64558         'exit'.
64559
64560 2005-07-24  Bruno Haible  <bruno@clisp.org>
64561
64562         * modules/visibility: New file.
64563         * MODULES.html.sh (Misc): Add visibility.
64564
64565 2005-07-24  Bruno Haible  <bruno@clisp.org>
64566
64567         * m4/visibility.m4: New file.
64568
64569 2005-07-24  Bruno Haible  <bruno@clisp.org>
64570
64571         * doc/visibility.texi: New file.
64572
64573 2005-07-22  Bruno Haible  <bruno@clisp.org>
64574
64575         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
64576         $(ALLOCA_H), redundant through BUILT_SOURCES.
64577         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
64578         redundant through BUILT_SOURCES.
64579         * modules/byteswap (Makefile.am): Remove explicit dependency on
64580         $(BYTESWAP_H), redundant through BUILT_SOURCES.
64581         * modules/fnmatch (Makefile.am): Remove explicit dependency on
64582         $(FNMATCH_H), redundant through BUILT_SOURCES.
64583         * modules/getopt (Makefile.am): Remove explicit dependency on
64584         $(GETOPT_H), redundant through BUILT_SOURCES.
64585         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
64586         redundant through BUILT_SOURCES.
64587         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
64588         redundant through BUILT_SOURCES.
64589         * modules/stdbool (Makefile.am): Remove explicit dependency on
64590         $(STDBOOL_H), redundant through BUILT_SOURCES.
64591         * modules/stdint (Makefile.am): Remove explicit dependency on
64592         $(STDINT_H), redundant through BUILT_SOURCES.
64593         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
64594         Remove explicit dependency on $(SYSEXITS_H).
64595         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
64596
64597 2005-07-18  Simon Josefsson  <jas@extundo.com>
64598
64599         * lib/check-version.c (check_version): Accept identical versions too.
64600
64601 2005-07-18  Bruno Haible  <bruno@clisp.org>
64602
64603         * modules/lock: New file.
64604         * MODULES.html.sh (Multithreading): New section.
64605
64606 2005-07-18  Bruno Haible  <bruno@clisp.org>
64607
64608         * m4/lock.m4: New file, from GNU gettext.
64609
64610 2005-07-18  Bruno Haible  <bruno@clisp.org>
64611
64612         * lib/lock.h: New file, from GNU gettext.
64613         * lib/lock.c: New file, from GNU gettext.
64614
64615 2005-07-18  Bruno Haible  <bruno@clisp.org>
64616
64617         * lib/lock.h (gl_once_t): New type.
64618         (gl_once_define, gl_once): New macros.
64619         * lib/lock.c (fresh_once): New variable.
64620         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
64621         functions.
64622
64623 2005-07-16  Simon Josefsson  <jas@extundo.com>
64624
64625         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
64626         workaround, suggested by Bruno.
64627
64628 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
64629
64630         * modules/xalloc (Depends-on): Add xalloc-die.
64631         * modules/xvasprintf (Depends-on): Add xalloc-die.
64632
64633 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
64634
64635         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
64636         with a minor change.
64637
64638 2005-07-15  Bruno Haible  <bruno@clisp.org>
64639
64640         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
64641         When using lib/poll.c, define poll as rpl_poll.
64642
64643 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
64644
64645         * modules/argp (Depends-on): Remove unlocked-io.
64646
64647 2005-07-14  Derek Price  <derek@ximbiot.com>
64648
64649         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
64650         for glob symlink bug.
64651
64652 2005-07-14  Bruno Haible  <bruno@clisp.org>
64653
64654         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
64655         Instead, test for *_unlocked function declarations directly.
64656
64657 2005-07-11  Simon Josefsson  <jas@extundo.com>
64658
64659         * modules/size_max: New file.
64660
64661         * modules/xsize: Depend on size_max module for size_max.m4.
64662
64663 2005-07-11  Simon Josefsson  <jas@extundo.com>
64664
64665         * lib/size_max.h: New file.
64666
64667 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
64668
64669         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
64670         copyright symbol and the year.
64671         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
64672         (version_etc_va): Use parameterized copyright notice.
64673         Reword to conform to the current GNU coding standards.
64674
64675 2005-07-11  Karl Berry  <karl@gnu.org>
64676
64677         * doc/gnulib.texi (Quoting): new node.
64678         (Initial import): more info, from Patrice.
64679
64680 2005-07-11  Bruno Haible  <bruno@clisp.org>
64681
64682         * gnulib-tool (func_usage): Document option --avoid.
64683         (Command line options): Handle --avoid.
64684         (func_acceptable): New function.
64685         (func_modules_transitive_closure): Use it.
64686
64687 2005-07-11  Bruno Haible  <bruno@clisp.org>
64688
64689         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
64690         Reported by Jim Meyering.
64691
64692 2005-07-10  Bruno Haible  <bruno@clisp.org>
64693
64694         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
64695         Needed when size_t is smaller than 'unsigned int'.
64696         Reported by Paul Eggert.
64697
64698 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64699
64700         * modules/argp (Depends-on): Add unlocked-io
64701
64702 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64703
64704         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
64705         block of defines.
64706
64707 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
64708
64709         * config/srclist.txt: Comment out regcomp.c, since we have a porting
64710         fix now.
64711
64712 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
64713         and Paul Eggert  <eggert@cs.ucla.edu>
64714
64715         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
64716         in wint_t, not wchar_t.  Remove now-unnecessary cast.
64717
64718 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64719
64720         * modules/regex (Files): Add lib/regex_internal.c,
64721         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
64722         (Depends-on): Add extensions.
64723         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
64724
64725 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64726
64727         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
64728         pathconf.
64729         * m4/same.m4 (gl_SAME): Likewise.
64730         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
64731
64732         * m4/regex.m4: Adjust to new libc regex implementation.
64733         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
64734         all the .c and .h parts of (the new) regex.
64735         Quote the m4 stuff better.
64736         Check for RE_ICASE bug of old gnulib.
64737         Check for REG_STARTEND of recent libc.
64738         Rename local variables from jm_* to gl_*.
64739         Quote operand of "test -f".
64740         Say "recent enough" version of libc, not "version 2".
64741         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
64742         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
64743         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
64744         Remove check for btowc, isascii.
64745         Require AM_LANGINFO_CODESET.
64746
64747 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64748
64749         * lib/regex.c, regex.h: Sync from libc.
64750         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
64751         * lib/regexec.c:
64752         New files, synced from libc, except that regex_internal.h
64753         currently has a small porting fix.
64754
64755 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64756
64757         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
64758         regex_internal.c, regexec.c.
64759         Add regex_internal.h too, but as a comment, since the libc version
64760         is currently broken in gnulib mode.
64761
64762 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64763
64764         Support programs like Emacs that use gnulib but not gettext.
64765         * MODULES.html.sh (Internationalization functions): Add gettext-h.
64766         * modules/gettext-h: New file.
64767         * modules/gettext (Files): Remove lib/gettext.h.
64768         (Depends-on): Add gettext-h.
64769         (Makefile.am): Remove lib_SOURCES.
64770         * modules/argmatch, modules/c-stack, modules/closeout:
64771         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
64772         * modules/execute, modules/file-type, modules/getaddrinfo:
64773         * modules/getopt, modules/human, modules/javacomp:
64774         * modules/javaexec, modules/mkdir-p, modules/obstack:
64775         * modules/openat, modules/pagealign_alloc, modules/pipe:
64776         * modules/quotearg, modules/regex, modules/rpmatch:
64777         * modules/unicodeio, modules/userspec, modules/version-etc:
64778         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
64779         * modules/xsetenv:
64780         Depend on gettext-h, not gettext.
64781
64782 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
64783
64784         * gnulib-tool (func_import): Add support for 'public domain' license.
64785         * modules/alloca, modules/atexit, modules/memmove:
64786         Now public domain, not GPL.
64787         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
64788         * modules/realloc, modules/strerror, modules/strtod:
64789         Now LGPL, not GPL.
64790
64791 2005-07-05  Bruno Haible  <bruno@clisp.org>
64792
64793         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
64794         autoconf CVS. Needed for mingw.
64795
64796 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64797
64798         Remove the dependency of the strftime module on the tzset module.
64799         * modules/strftime (Depends-on): Remove dependency on tzset.
64800
64801 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64802
64803         Remove the dependency of the strftime module on the tzset module.
64804         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
64805         gl_FUNC_TZSET_CLOBBER.
64806
64807 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64808
64809         Remove the dependency of the strftime module on the tzset module.
64810         * lib/strftime.c (my_strftime)
64811         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
64812         Copy the input structure, to work around some of the bug with
64813         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
64814         Solaris releases, you should also use the tzset module, but we won't
64815         require it as a dependency any more since we don't want LGPLed code
64816         to depend on GPLed code.
64817
64818 2005-07-02  Jim Meyering  <jim@meyering.net>
64819
64820         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
64821         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
64822         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
64823         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
64824
64825 2005-07-02  Jim Meyering  <jim@meyering.net>
64826
64827         * lib/backupfile.c (backup_args): Change a `0' to NULL.
64828
64829 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64830
64831         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
64832         declares only 'struct timespec;' (!).
64833
64834 2005-07-01  Jim Meyering  <jim@meyering.net>
64835
64836         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
64837         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
64838         * lib/save-cwd.c, tempname.c:
64839         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
64840         and don't include <sys/file.h>).
64841
64842 2005-06-29  Jim Meyering  <jim@meyering.net>
64843
64844         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
64845         type name.  Use the variable name instead.
64846         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
64847         Likewise.
64848
64849 2005-06-28  Simon Josefsson  <jas@extundo.com>
64850
64851         * modules/check-version (Files): Add check-version.m4.
64852
64853 2005-06-28  Simon Josefsson  <jas@extundo.com>
64854
64855         * m4/check-version.m4: New file, suggested by Jim Meyering
64856         <jim@meyering.net>.
64857
64858 2005-06-28  Simon Josefsson  <jas@extundo.com>
64859
64860         * lib/check-version.h, lib/check-version.c: New files.
64861
64862 2005-06-28  Simon Josefsson  <jas@extundo.com>
64863
64864         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
64865         collision with global variable.  Better indentation.  Don't
64866         increment buffer pointer beyond buffer end.  Based on comments
64867         from Paul Eggert <eggert@cs.ucla.edu>.
64868
64869         * lib/base64.h: Indent.
64870
64871 2005-06-28  Simon Josefsson  <jas@extundo.com>
64872
64873         * doc/gnulib.texi (Library version handling): New section.
64874
64875 2005-06-28  Jim Meyering  <jim@meyering.net>
64876
64877         * check-module (find_included_lib_files): Hard-code another
64878         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
64879         but modules/fts-lgpl (correctly) does not list those files.
64880
64881         * modules/canonicalize (Files): Add lib/pathmax.h.
64882
64883 2005-06-25  Simon Josefsson  <jas@extundo.com>
64884
64885         * modules/check-version: New file.
64886
64887 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
64888
64889         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
64890         initializer of struct addrinfo, as an indication that we don't
64891         care how many members the structure has.
64892
64893 2005-06-24  Derek Price  <derek@ximbiot.com>
64894         and Bruno Haible  <bruno@clisp.org>
64895
64896         Remove stat module & update lstat.
64897         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
64898         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64899         * m4/stat.m4: Remove this file.
64900
64901 2005-06-24  Derek Price  <derek@ximbiot.com>
64902         and Bruno Haible  <bruno@clisp.org>
64903
64904         Remove stat module & update lstat.
64905         * lib/stat.c: Remove this file...
64906         (slash_aware_lstat): ...moving this content and its support...
64907         * lib/lstat.c (rpl_lstat): ...into here.
64908         * lib/lstat.h: New file.
64909
64910 2005-06-24  Derek Price  <derek@ximbiot.com>
64911         and Bruno Haible  <bruno@clisp.org>
64912
64913         Remove stat module & update lstat.
64914         * config/srclist.txt (libc sources): Remove stat.
64915
64916 2005-06-24  Derek Price  <derek@ximbiot.com>
64917         and Bruno Haible  <bruno@clisp.org>
64918
64919         Remove stat module & update lstat.
64920         * MODULES.html.sh (stat): Remove.
64921         * MODULES.html: Regenerated.
64922         * modules/lstat (Description): Correct function name.
64923         (Files): Add "lstat.h".
64924         (Depends-on): Remove stat, add xalloc, stat-macros.
64925         * modules/stat: Remove this file.
64926         (Include): Add "lstat.h", remove <sys/stat.h>.
64927
64928 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64929
64930         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
64931         (ranged_convert): Don't save conversion in a temporary struct.
64932         This causes a warning with GCC 4.0.0, and anyway in the typical
64933         case it's not worth the extra 100 bytes or so of code.
64934         (ranged_convert, __mktime_internal): When calling a function via a
64935         pointer P, use P () rather than (*P) (), as we now assume C89 or
64936         better.
64937
64938 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64939
64940         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
64941         "who -r" failed to give output.  Problem reported by Tim Waugh.
64942
64943         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
64944         (xcalloc): Use it to avoid needless tests.
64945         Problem reported by Jim Meyering.
64946
64947 2005-06-20  Derek Price  <derek@ximbiot.com>
64948
64949         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
64950         unnecessary for Autoconfs > 2.59c.
64951
64952 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64953
64954         * lib/argp.h (__option_is_short): Check upper limit of
64955         __key. Isprint() requires its argument to have the value
64956         of an unsigned char or EOF.
64957
64958 2005-06-16  Jim Meyering  <jim@meyering.net>
64959
64960         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
64961         when either N or S is zero.
64962
64963 2005-06-16  Derek Price  <derek@ximbiot.com>
64964
64965         * m4/bison.m4: Declare YACC & YFLAGS precious.
64966
64967 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
64968
64969         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
64970         multibyte string or pattern, fall back on unibyte matching.
64971         Problem reported by James Youngman.
64972
64973 2005-06-08  Bruno Haible  <bruno@clisp.org>
64974
64975         * modules/csharpcomp: New file.
64976         * MODULES.html.sh (C#): Add csharpcomp.
64977
64978 2005-06-08  Bruno Haible  <bruno@clisp.org>
64979
64980         * m4/csharpcomp.m4: New file, from GNU gettext.
64981
64982 2005-06-08  Bruno Haible  <bruno@clisp.org>
64983
64984         * lib/csharpcomp.h: New file, from GNU gettext.
64985         * lib/csharpcomp.c: New file, from GNU gettext.
64986         * lib/csharpcomp.sh.in: New file, from GNU gettext.
64987
64988 2005-06-08  Bruno Haible  <bruno@clisp.org>
64989
64990         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
64991         warning on mingw.
64992
64993 2005-06-07  Derek Price  <derek@ximbiot.com>
64994
64995         Sync from CVS.
64996         * lib/glob_.h: Indent nested #ifdef.
64997
64998 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
64999
65000         Sync from coreutils.
65001         Use "file name" when talking about file names, instead of "filename"
65002         or "path", as per the GNU coding standards.
65003         * lib/mkdir-p.c: Renamed from makepath.c.
65004         (make_dir_parents): Renamed from make_path.  All callers changed.
65005         * lib/mkdir-p.h: Likewise.  All includers changed.
65006         * lib/filenamecat.c: Renamed from path-concat.c.
65007         (file_name_concat): Renamed from path_concat.  All callers changed.
65008         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
65009         * lib/filenamecat.h: Likewise.  All includers changed.
65010         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
65011         in comments or local variable names.
65012         * lib/basename.c: Likewise.
65013         * lib/canonicalize.c, canonicalize.h: Likewise.
65014         * lib/dirname.c, dirname.h: Likewise.
65015         * lib/euidaccess.c: Likewise.
65016         * lib/exclude.c: Likewise
65017         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
65018         * lib/fsusage.c, fsuage.h: Likewise.
65019         * lib/fts.c, fts_.h: Likewise.
65020         * lib/getcwd.c: Likewise.
65021         * lib/getloadavg.c: Likewise.
65022         * lib/mkstemp.c: Likewise.
65023         * lib/mountlist.c, mountlist.h: Likewise.
65024         * lib/openat.c, openat.h: Likewise.
65025         * lib/readlink-stub.c: Likewise.
65026         * lib/readutmp.c, readutmp.h: Likewise.
65027         * lib/rename.c: Likewise.
65028         * lib/rmdir.c: Likewise.
65029         * lib/same.c: Likewise.
65030         * lib/savedir.c: Likewise.
65031         * lib/stripslash.c: Likewise.
65032         * lib/tempname.c: Likewise.
65033         * lib/xreadlink.c: Likewise.
65034         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
65035         All uses changed.
65036         * lib/exclude.h: Likewise.
65037
65038         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
65039         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65040         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
65041         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65042         * lib/pathmax.h: Include <limits.h> unconditionally, since other
65043         files have been getting away with it for years (MORE/BSD 4.3
65044         is extinct now).
65045         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
65046         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65047
65048         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
65049         Define to 256, not 255, as per modern POSIX.
65050
65051 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65052
65053         Sync from coreutils.
65054         Use "file name" when talking about file names, instead of "filename"
65055         or "path", as per the GNU coding standards.
65056         * MODULES.html.sh: mkdir-p renamed from makepath.
65057         filenamecat renamed from path-concat.
65058         * modules/filenamecat: Renamed from modules/path-concat.
65059         (Files): filenamecat.h and filenamecat.c renamed from
65060         path-concat.h and path-concat.c.
65061         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
65062         (Include): filenamecat.h, not path-concat.h.
65063         * modules/mkdir-p: Renamed from modules/makepath.
65064         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
65065         makepath.c.
65066         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
65067         (Include): mkdir-p.h, not makepath.h.
65068
65069 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65070
65071         Sync from coreutils.
65072         * m4/mkdir-p.m4: Renamed from makepath.m4.
65073         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
65074         Rename files from makepath.c to mkdir-p.c, and from
65075         makepath.h to mkdir-p.h.
65076         * m4/filenamecat.m4: Renamed from path-concat.m4.
65077         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
65078         Rename files from path-concat.c to filenamecat.c,
65079         and from path-concat.h to filenamecat.h.
65080         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
65081         "file name" in local variables or comments.
65082         * m4/rename.m4: Likewise.
65083
65084 2005-06-01  Bruno Haible  <bruno@clisp.org>
65085
65086         * modules/csharpexec: New file.
65087         * MODULES.html.sh (C#): New section.
65088
65089 2005-06-01  Bruno Haible  <bruno@clisp.org>
65090
65091         * m4/csharp.m4: New file, from GNU gettext.
65092         * m4/csharpexec.m4: New file, from GNU gettext.
65093
65094 2005-06-01  Bruno Haible  <bruno@clisp.org>
65095
65096         * lib/csharpexec.h: New file, from GNU gettext.
65097         * lib/csharpexec.c: New file, from GNU gettext.
65098         * lib/csharpexec.sh.in: New file, from GNU gettext.
65099
65100 2005-05-31  Derek Price  <derek@ximbiot.com>
65101             Paul Eggert  <eggert@cs.ucla.edu>
65102
65103         Sync from cvs.
65104         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
65105
65106 2005-05-31  Derek Price  <derek@ximbiot.com>
65107             Paul Eggert  <eggert@cs.ucla.edu>
65108
65109         Sync from cvs.
65110         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
65111
65112 2005-05-29  Derek Price  <derek@ximbiot.com>
65113
65114         * config/srclist.txt (glob_.h, glob.c): Add these files.
65115
65116 2005-05-29  Derek Price  <derek@ximbiot.com>
65117
65118         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
65119         * modules/glob: New file.
65120         * modules/getlogin_r: Add link to POSIX spec in description.
65121
65122 2005-05-29  Derek Price  <derek@ximbiot.com>
65123             Paul Eggert  <eggert@cs.ucla.edu>
65124
65125         * m4/glob.m4: New file.
65126
65127 2005-05-29  Derek Price  <derek@ximbiot.com>
65128             Paul Eggert  <eggert@cs.ucla.edu>
65129
65130         * lib/glob_.h, lib/glob.c: New files.
65131
65132 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65133
65134         * modules/fts (Files): Remove m4/inttypes-pri.m4.
65135         * modules/fts-lgpl (Depends-on): Remove gettext.
65136
65137 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65138
65139         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
65140         and don't require gt_INTTYPES_PRI.
65141
65142 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65143
65144         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
65145
65146         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
65147         the configuration hassle isn't worth it.
65148         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
65149         (LONGEST_MODIFIER, PRIuMAX): Remove.
65150
65151 2005-05-27  Bruno Haible  <bruno@clisp.org>
65152
65153         * lib/getlogin_r.h: Remove second include of <stddef.h>.
65154
65155 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
65156
65157         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
65158         _POSIX_PTHREAD_SEMANTICS for Solaris.
65159
65160 2005-05-25  Derek Price  <derek@ximbiot.com>
65161
65162         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
65163
65164 2005-05-25  Derek Price  <derek@ximbiot.com>
65165             Paul Eggert  <eggert@cs.ucla.edu>
65166
65167         * modules/getlogin_r, m4/getlogin_r.m4: New files.
65168         * lib/getlogin_r.c, getlogin_r.h: New files.
65169
65170 2005-05-25  Bruno Haible  <bruno@clisp.org>
65171             Derek Price  <derek@ximbiot.com>
65172
65173         * lib/getlogin_r.h: Simplify API documentation.
65174
65175 2005-05-23  Derek Price  <derek@ximbiot.com>
65176
65177         * modules/minmax (Files): Add m4/minmax.m4.
65178         (configure.ac): Add gl_MINMAX.
65179
65180 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
65181
65182         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
65183         so that unistd-safer.h (GPL'ed code) need not be included.
65184
65185 2005-05-22  Bruno Haible  <bruno@clisp.org>
65186
65187         * m4/minmax.m4: New file.
65188         Based on a patch by Derek Price <derek@ximbiot.com>.
65189
65190 2005-05-22  Bruno Haible  <bruno@clisp.org>
65191
65192         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
65193         (INT64_MIN): Fix definition.
65194         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
65195
65196         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
65197         NEED_SIGNED_INT_TYPES.
65198
65199         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
65200         HAVE_SYSTEM_INTTYPES.
65201
65202 2005-05-22  Bruno Haible  <bruno@clisp.org>
65203
65204         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
65205         Also include <sys/param.h> if it defines MIN, MAX.
65206         Based on a patch by Derek Price <derek@ximbiot.com>.
65207
65208 2005-05-21  Jim Meyering  <jim@meyering.net>
65209
65210         * modules/fts (Files): Add m4/inttypes-pri.m4.
65211         (Depends-on): Add lstat and remove gettext.  Alphabetize.
65212
65213 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65214
65215         New fts module.
65216         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
65217         (setup_dir, free_dir): New functions.
65218         (enter_dir, leave_dir): Define trivial
65219         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
65220         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
65221         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
65222         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
65223         Move to fts-cycle.c.
65224         (fts_open): Use setup_dir.
65225         (fts_close): Use free_dir.
65226         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
65227         This adds a label and some gotos, but the alternatives were messier.
65228         Check for memory allocation failure when entering a dir.
65229         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
65230         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
65231         (FTS): New member fts_cycle, that is a union that contains the
65232         old active_dir_ht and cycle_state.  All uses changed to mention
65233         fts_cycle.ht and fts_cycle.state.
65234         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
65235         fts.c, with the following changes:
65236         (setup_dir, free_dir): New functions.
65237         (enter_dir): Now returns bool.  Return true if successful, false
65238         if memory exhausted.  All callers changed.
65239         Do not bother partly cleaning up on
65240         memory allocation failure; that is free_dir's job.
65241         However, free ad if hash_insert fails, to avoid memory leak.
65242         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
65243         fts->fts_options to see which union member to use.
65244
65245 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65246
65247         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
65248         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
65249
65250 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65251
65252         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
65253
65254 2005-05-20  Jim Meyering  <jim@meyering.net>
65255
65256         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
65257         Now a macro, to pacify GCC.
65258
65259 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
65260
65261         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
65262         of -1.
65263
65264 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
65265
65266         * lib/chown.c (rpl_chown): Return -1 on failure.
65267
65268 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
65269
65270         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
65271         Don't check for stddef.h.
65272         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
65273         don't use its results.
65274         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
65275         since we include them unconditionally.  Don't require
65276         AM_STDBOOL_H, since stdbool is a prerequisite.
65277         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
65278         since we assume C89 or better.
65279         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
65280         as we don't use their results.
65281         Don't check for fchdir, memmove, memset, strrchr, as we use
65282         them unconditionally.
65283         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
65284         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
65285
65286 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
65287
65288         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
65289         Include <stddef.h> unconditionally, since we assume C89 now.
65290         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
65291         * lib/fts.c: Include fts_.h first, to check interface.
65292         Do not include intprops.h; no longer needed.
65293         Include cycle-check.h and hash.h, since fts_.h no longer does.
65294         Remove unnecessary casts of closedir to void.
65295         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
65296         decide whether to decrement nlinks.
65297         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
65298         (FTS): Use struct hash_table * instead of Hash_table, so that
65299         we no longer need to include hash.h here.
65300
65301 2005-05-18  Jim Meyering  <jim@meyering.net>
65302
65303         * modules/dirfd (License): Change to LGPL.  Most of the code
65304         is already in the public domain.
65305
65306 2005-05-18  Jim Meyering  <jim@meyering.net>
65307
65308         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
65309         Reported by Yoann Vandoorselaere.
65310
65311 2005-05-17  Jim Meyering  <jim@meyering.net>
65312
65313         * m4/fts.m4: New file, from coreutils.
65314
65315 2005-05-17  Jim Meyering  <jim@meyering.net>
65316
65317         * lib/fts.c, lib/fts_.h: New files, from coreutils.
65318
65319 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65320
65321         Sync from coreutils.
65322         * m4/unlinkdir.m4: New file.
65323
65324 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65325
65326         Sync from coreutils.
65327         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
65328         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
65329         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
65330         White space changes only.
65331         * lib/makepath.c (make_path): Port to hosts where leading "//" is
65332         special.
65333         * lib/yesno.c: Include getline.h, not ctype.h.
65334         (yesno): Don't remove leading white space; POSIX doesn't allow it.
65335         Use getline to remove arbitrary restriction on response length.
65336
65337 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65338
65339         * config/srclist-update: Spell out "Street" in FSF postal
65340         mail address; this is the style the FSF seems to prefer.
65341
65342         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
65343         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
65344         this updates FSF postal mail address.
65345
65346         Sync from coreutils.
65347         * modules/unlinkdir: New file.
65348         * modules/yesno (Depends-on): Add getline.
65349         * MODULES.html.sh (File system functions): Add unlinkdir.
65350
65351 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65352
65353         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
65354         lib/strsep.h:
65355         Change the initial comment to refer to GPL, not LGPL.
65356         gnulib-tool will change it to LGPL as needed.
65357
65358         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
65359         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
65360         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
65361         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
65362         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
65363         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
65364         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
65365         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
65366         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
65367         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
65368         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
65369         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
65370         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
65371         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
65372         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
65373         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
65374         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
65375         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
65376         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
65377         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
65378         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
65379         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
65380         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
65381         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
65382         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
65383         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
65384         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
65385         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
65386         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
65387         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
65388         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
65389         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
65390         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
65391         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
65392         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
65393         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
65394         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
65395         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
65396         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
65397         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
65398         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
65399         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
65400         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
65401         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
65402         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
65403         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
65404         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
65405         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
65406         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
65407         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
65408         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
65409         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
65410         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
65411         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
65412         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
65413         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
65414         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
65415         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
65416         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
65417         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
65418         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
65419         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
65420         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
65421         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
65422         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
65423         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
65424         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
65425         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
65426         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
65427         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
65428         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
65429         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
65430         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
65431         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
65432         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
65433         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
65434         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
65435         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
65436         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
65437         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
65438         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
65439         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
65440         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
65441         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
65442         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
65443         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
65444         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
65445         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
65446         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
65447         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
65448         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
65449         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
65450         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
65451         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
65452         lib/yesno.c, lib/yesno.h:
65453         Update FSF postal mail address.
65454
65455 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65456
65457         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
65458         tests/test-memmem.c, tests/test-stpncpy.c:
65459         Update FSF postal mail address.
65460
65461 2005-05-13  Bruno Haible  <bruno@clisp.org>
65462
65463         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
65464         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
65465         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
65466         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
65467         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
65468         Add support for 64-bit integers in the MSVC compiler.
65469
65470 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65471
65472         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
65473
65474 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
65475
65476         * gnulib-tool (func_import): Sort and uniquify recommended includes.
65477
65478 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
65479
65480         * doc/getdate.texi (General date syntax): Don't say that date
65481         date --iso-8601=ns generates acceptable dates; it doesn't yet.
65482         Problem reported by Nic Ferrier.
65483
65484 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65485
65486         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
65487         specified in ai_socktype. Fix invalid ai_protocol
65488         check. ai_protocol is usually set to 0 or depending on
65489         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
65490         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
65491         ai_socktype / ai_protocol in the returned addrinfo structure.
65492
65493 2005-05-10  Simon Josefsson  <jas@extundo.com>
65494
65495         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
65496         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65497
65498 2005-05-10  Karl Berry  <karl@gnu.org>
65499
65500         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
65501         (from http://www.gnu.org/licenses).
65502         * doc/COPYING.LIB: also rename to COPYING.LESSER.
65503         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
65504         fdl.texi suffices.
65505
65506 2005-05-10  Karl Berry  <karl@gnu.org>
65507
65508         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
65509         (COPYING.DOC): remove.
65510
65511         * config/srclist-update: new FSF address.
65512
65513 2005-05-10  Derek Price  <derek@ximbiot.com>
65514
65515         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
65516         possible.
65517
65518 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65519             Bruno Haible  <bruno@clisp.org>
65520
65521         * modules/inet_ntop: New file.
65522         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65523         inet_ntop.
65524
65525 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65526             Bruno Haible  <bruno@clisp.org>
65527
65528         * m4/inet_ntop.m4: New file.
65529
65530 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65531             Bruno Haible  <bruno@clisp.org>
65532
65533         * lib/inet_ntop.h: New file.
65534         * lib/inet_ntop.c: New file, from glibc with modifications.
65535
65536 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
65537
65538         * modules/time_r (License): Change to LGPL.
65539         * modules/extensions (License): Change to LGPL.  Actually,
65540         the license is more permissive than that, but currently gnulib-tool
65541         doesn't know how to handle more-permissive licenses.
65542
65543         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
65544         Problem reported by Dave Love.
65545
65546 2005-05-08  Jim Meyering  <jim@meyering.net>
65547
65548         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
65549         blank.
65550
65551 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
65552
65553         * modules/argmatch (Depends-on): Add stdbool.
65554         * modules/backupfile (Depends-on): Likewise.
65555         * modules/chdir-long (Depends-on): Likewise.
65556         * modules/closeout (Depends-on): Likewise.
65557         * modules/cycle-check (Depends-on): Likewise.
65558         * modules/dirname (Depends-on): Likewise.
65559         * modules/fnmatch (Depends-on): Likewise.
65560         * modules/fsusage (Depends-on): Likewise.
65561         * modules/fwriteerror (Depends-on): Likewise.
65562         * modules/getcwd (Depends-on): Likewise.
65563         * modules/getloadavg (Depends-on): Likewise.
65564         * modules/hard-locale (Depends-on): Likewise.
65565         * modules/makepath (Depends-on): Likewise.
65566         * modules/mountlist (Depends-on): Likewise.
65567         * modules/nanosleep (Depends-on): Likewise.
65568         * modules/posixtm (Depends-on): Likewise.
65569         * modules/quotearg (Depends-on): Likewise.
65570         * modules/readtokens (Depends-on): Likewise.
65571         * modules/readtokens0 (Depends-on): Likewise.
65572         * modules/readutmp (Depends-on): Likewise.
65573         * modules/save-cwd (Depends-on): Likewise.
65574         * modules/strftime (Depends-on): Likewise.
65575         * modules/userspec (Depends-on): Likewise.
65576         * modules/utimecmp (Depends-on): Likewise.
65577         * modules/xgetcwd (Depends-on): Likewise.
65578         * modules/xnanosleep (Depends-on): Likewise.
65579         * modules/xstrtod (Depends-on): Likewise.
65580         * modules/yesno (Depends-on): Likewise.
65581
65582 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
65583
65584         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
65585         needless checks.
65586
65587 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65588
65589         Merge from coreutils.  Among other things,
65590         add bulletproofing for cases where stdin, stdout, or stderr are closed.
65591         * lib/fd-safer.c: New file.
65592         * lib/fcntl-safer.h, open-safer.c: Remove.
65593         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
65594         * lib/dup-safer.c: Include unistd-safer.h first.
65595         Don't include errno.h.
65596         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
65597         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
65598         * lib/file-type.c: Rely on file-type.h change.
65599         * lib/getloadavg.c: Include unistd-safer.h.
65600         (getloadavg): Use safer open.
65601         * lib/getusershell.c: Include "stdio-safer.h".
65602         (getusershell): Use safer fopen.
65603         * lib/long-options.c (long_options): Use NULL rather than 0.
65604         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
65605         'free'.
65606         * lib/modechange.c: Likewise.
65607         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
65608         (MODE_DONE): New constant.
65609         (struct mode_change): Remove 'next' member.
65610         (make_node_op_equals): New function; like the old one of the
65611         same name, except it allocates an array.
65612         (mode_compile, mode_create_from_ref): Use it.
65613         (mode_compile): Allocate result as an array, not a linked list.
65614         Parse octal string ourself, so that we catch mistakes like "+0".
65615         (mode_adjust): Arg is an array, not a linked list.
65616         * lib/modechange.c: Include stat-macros.h, xalloc.h.
65617         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
65618         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
65619         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
65620         Remove.  This is now stat-macros.h's job.
65621         (talloc): Remove.  All callers replaced by xalloc, so that
65622         our invokers don't have to worry about reporting memory failures.
65623         (make_node_op_equals): Remove.
65624         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
65625         New constants.
65626         (struct mode_change): Moved here from modechange.h.
65627         (mode_append_entry): Remove.
65628         (mode_compile): Remove MASKED_OPS arg, since it encouraged
65629         apps to have incorrect behavior.  Use simpler algorithm for head
65630         and tail.  Don't futz with umask; that's now the job of mode_adjust.
65631         Detect more invalid usages rather than having somewhat-random behavior.
65632         Don't insert an "a=" action, as that leads to incorrect behavior.
65633         (mode_compile, mode_create_from_ref): Return NULL on error instead
65634         of an enum, since now there's only one way to have an error.  All
65635         callers changed.
65636         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
65637         at the correct time.  Simplify calculation of "+u" and its ilk.
65638         Don't mishandle "+X".
65639         (mode_free): Remove "register" and localize decls.
65640         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
65641         (struct mode_change): Move to modechange.c; callers don't
65642         need to see this stuff.
65643         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
65644         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
65645         (mode_change, mode_adjust): Reflect the new signatures noted above.
65646         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
65647         that might redefine system include files.
65648         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
65649         (my_usleep): Use NULL rather than (void *) 0.
65650         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
65651         Use siginterrupt to specify that system calls should be interrupted.
65652         (rpl_nanosleep): Move initialization of suspended closer to call of
65653         my_usleep.
65654         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
65655         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
65656         (desirable_utmp_entry): New function.
65657         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
65658         using x2nrealloc, to simplify logic.
65659         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
65660         size calculation.  Do not assume utmp file is a regular file.
65661         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
65662         (READ_UTMP_CHECK_PIDS): New constant.
65663         * lib/save-cwd.c: Include unistd-safer.h.
65664         (save_cwd): Use fd_safer.
65665         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
65666         [!_LIBC] Include "stat-macros.h" instead.
65667         * lib/unistd-safer.h (fd_safer): New decl.
65668
65669 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65670
65671         * modules/getloadavg (Depends-on): Add unistd-safer.
65672         * modules/getusershell (Depends-on): Add stdio-safer.
65673         * modules/lstat (Depends-on): Remove xalloc.
65674         * modules/mkstemp (Depends-on): Add stat-macros.
65675         * modules/modechange (Depends-on): Remove xstrtol.
65676         Add stat-macros, xalloc.
65677         * modules/save-cwd (Depends-on): Add unistd-safer.
65678         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
65679         * modules/unistd-safer (Files): Add lib/fd-safer.c
65680         (Makefile.am): Remove lib_SOURCES.
65681
65682         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
65683         Remove fcntl-safer; unistd-safer supersedes it.
65684
65685 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65686
65687         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
65688         AC_HEADER_STAT.
65689         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
65690         (gl_PREREQ_CHOWN): Remove.
65691         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
65692         it.  Don't require AC_HEADER_STAT.
65693         (gl_PREREQ_LSTAT): Remove.
65694         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
65695         Don't require AC_HEADER_STAT.
65696         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
65697         (gl_PREREQ_RMDIR): Remove.
65698         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
65699         mention stat-macros.h or AC_HEADER_STAT, since we'll make
65700         the stat-macros module a prerequisite.
65701         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
65702         * m4/filemode.m4 (gl_FILEMODE): Likewise.
65703         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
65704         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
65705         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
65706         variable names.
65707         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
65708         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
65709         variable prefixes.
65710         * m4/fcntl-safer.m4: Remove.
65711         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
65712         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
65713         Invoke gl_PREREQ_FD_SAFER.
65714         (gl_PREREQ_FD_SAFER): New macro.
65715         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
65716         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
65717         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
65718         Remove duplicate call to AC_LIBOBJ(readutmp).
65719         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
65720
65721         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
65722         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
65723
65724 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65725
65726         * MODULES.html.sh (Misc): Add byteswap.
65727
65728 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65729
65730         * modules/getcwd (Depends-on): Add extensions.
65731         * modules/openat (Depends-on): Likewise.
65732
65733 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65734
65735         * modules/byteswap: New file.
65736
65737 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65738
65739         * m4/byteswap.m4: New file.
65740
65741 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65742
65743         * lib/byteswap_.h: New file.
65744
65745 2005-04-25  Karl Berry  <karl@gnu.org>
65746
65747         * m4/gettext.m4: Update from GNU gettext 0.14.4.
65748
65749 2005-04-25  Albert Chin  <china@thewrittenword.com>
65750
65751         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
65752         Toolkit C bug.
65753
65754 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
65755
65756         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
65757         (func_ln_if_changed) Remove forcibly for no error message
65758         in case file does not exist.
65759
65760 2005-04-19  Simon Josefsson  <jas@extundo.com>
65761
65762         * gnulib-tool (Options): Make --symlink mean --symbolic.
65763
65764 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
65765
65766         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
65767
65768 2005-04-16  Simon Josefsson  <jas@extundo.com>
65769
65770         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
65771
65772 2005-04-15  Simon Josefsson  <jas@extundo.com>
65773
65774         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
65775
65776 2005-04-15  Simon Josefsson  <jas@extundo.com>
65777
65778         * gnulib-tool: Rename --symlink to --symbolic.
65779
65780 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
65781
65782         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
65783         symbolic links to files instead of copying/moving.  Add --aux-dir,
65784         specifying directory relative --dir where auxiliary build tools
65785         are placed.
65786
65787 2005-04-14  Bruno Haible  <bruno@clisp.org>
65788
65789         * modules/allocsa (License): Change to LGPL.
65790         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
65791
65792 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65793
65794         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
65795         that "UTC +1 second" continues to work.  Problem reported
65796         by Dmitry V. Levin.
65797         (relunit_snumber): New rule.
65798         (relunit): Use it.
65799
65800 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
65801
65802         * lib/getdate.y (universal_time_zone_table): New constant.
65803         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
65804         universal_time_zone_table.
65805         (lookup_zone): Prefer universal_time_zone_table to
65806         local_time_zone_table, so that "GMT" time stamps are allowed in
65807         London during the summer.  Problem reported by Ian Abbott.
65808
65809 2005-04-12  Jim Meyering  <jim@meyering.net>
65810
65811         * lib/human.c (humblock): Set *options even when returning due to
65812         xstrtoumax conversion failure.  Thanks to a used-uninitialized
65813         warning from gcc-4.
65814
65815 2005-04-09  Jim Meyering  <jim@meyering.net>
65816
65817         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
65818         -Wuninitialized: initialize tm0.tm_year.
65819
65820 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
65821
65822         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
65823         count, since there's no maximum.  All uses changed.
65824         Add member dsts_seen.
65825         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
65826         not being INT_MAX.
65827         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
65828         Use pc_rels_seen to decide whther a date is absolute.
65829
65830         * lib/getdate.y (number): Don't overwrite year.
65831         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
65832         check.
65833
65834 2005-04-02  Simon Josefsson  <jas@extundo.com>
65835
65836         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
65837         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
65838
65839 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
65840
65841         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
65842         where no absolute path name can be longer than PATH_MAX.
65843
65844 2005-03-27  Jim Meyering  <jim@meyering.net>
65845
65846         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
65847
65848 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
65849
65850         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
65851         "one's complement" -> "ones' complement" in comment, as per Knuth.
65852         "value of type" -> "type or expression" in comment.
65853         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
65854
65855 2005-03-26  Jim Meyering  <jim@meyering.net>
65856
65857         Comment nits.
65858         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
65859         Correct typos: s/or/of/.
65860
65861 2005-03-26  Jim Meyering  <jim@meyering.net>
65862
65863         * modules/check-include-files: Move to ../ and rename to...
65864         * check-module: ...this.
65865
65866 2005-03-25  Jim Meyering  <jim@meyering.net>
65867
65868         * modules/xvasprintf (Files): Add xalloc.h.
65869
65870 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
65871
65872         * modules/gettext (Files): config/config.rpath ->
65873         build-aux/config.rpath
65874         * modules/iconv (Files): Likewise.
65875         Problem reported by Oskar Liljeblad.
65876
65877 2005-03-23  Jim Meyering  <jim@meyering.net>
65878
65879         * modules/check-include-files: New script to check for
65880         missing dependencies, multiple includes, etc.
65881
65882         * modules/c-strtold (Depends-on): Add xalloc.
65883         * modules/c-strtod (Depends-on): Add xalloc.
65884         * modules/hash (Depends-on): Add xalloc.
65885         (Files): Remove lib/xalloc.h.
65886
65887         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
65888         * modules/userspec (Files): Add lib/inttostr.h.
65889
65890 2005-03-23  Jim Meyering  <jim@meyering.net>
65891
65892         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
65893
65894 2005-03-22  Jim Meyering  <jim@meyering.net>
65895
65896         * modules/stat-macros: New module.
65897         * modules/canonicalize, modules/euidaccess, modules/file-type,
65898         * modules/filemode, modules/lchown, modules/makepath,
65899         * modules/rmdir, modules/stat: Depend on new stat-macros module
65900         rather than listing lib/stat-macros.h manually.
65901         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
65902
65903 2005-03-22  Jim Meyering  <jim@meyering.net>
65904
65905         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
65906
65907 2005-03-22  Bruno Haible  <bruno@clisp.org>
65908
65909         * config/srclist.txt: Replace target directory 'config' with
65910         'build-aux'.
65911         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
65912         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
65913         ../build-aux/.
65914
65915 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
65916
65917         * modules/chdir-long (Depends-on): Add mempcpy.
65918
65919         * modules/acl, modules/backupfile, modules/c-strtod,
65920         modules/c-strtold, modules/canon-host, modules/canonicalize,
65921         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
65922         modules/exclude, modules/exitfail, modules/file-type,
65923         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
65924         modules/getdate, modules/getline, modules/getpagesize,
65925         modules/getpass, modules/getugroups, modules/group-member,
65926         modules/hard-locale, modules/hash, modules/human, modules/idcache,
65927         modules/inttostr, modules/long-options, modules/makepath,
65928         modules/md5, modules/memcasecmp, modules/memcoll,
65929         modules/modechange, modules/mountlist, modules/path-concat,
65930         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
65931         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
65932         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
65933         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
65934         modules/strftime, modules/strndup, modules/strverscmp,
65935         modules/timespec, modules/unlocked-io, modules/userspec,
65936         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
65937         modules/yesno:
65938         Remove lib_SOURCES line from Makefile.am section, as this is now
65939         done automatically by the corresponding Autoconf macro.
65940
65941 2005-03-21  Jim Meyering  <jim@meyering.net>
65942
65943         Changes imported from coreutils.
65944
65945         * lib/cycle-check.c: Don't include xalloc.h.
65946
65947         * lib/path-concat.c: Don't include assert.h.
65948         (path_concat): Remove assertion that would have triggered
65949         for ABASE starting with more than one slash.
65950         Reported by Andreas Schwab.
65951
65952         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
65953         properly when ABASE is an absolute file name.
65954         Correct the description of this function.
65955         Include <assert.h>.
65956         Add an assertion and a test driver.
65957         This fixes a bug introduced on 2004-07-02.
65958         Andreas Schwab reported the resulting failure of cp --parents:
65959         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
65960
65961 2005-03-21  Jim Meyering  <jim@meyering.net>
65962
65963         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
65964         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
65965
65966 2005-03-21  Jim Meyering  <jim@meyering.net>
65967         and  Paul Eggert  <eggert@cs.ucla.edu>
65968
65969         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
65970         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
65971         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
65972         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
65973         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
65974         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
65975         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
65976         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
65977         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
65978         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
65979         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
65980         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
65981         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
65982         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
65983         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
65984         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
65985         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
65986         for these modules.
65987
65988 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
65989
65990         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
65991         (which shouldn't happen), generate nothing instead of returning 0
65992         immediately, so that nstrftime (NULL, ...) doesn't return 0.
65993
65994 2005-03-16  Bruno Haible  <bruno@clisp.org>
65995
65996         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
65997         HAVE_LONGLONG_64BIT.
65998
65999 2005-03-16  Bruno Haible  <bruno@clisp.org>
66000
66001         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
66002         HAVE_LONGLONG_64BIT.
66003
66004 2005-03-16  Bruno Haible  <bruno@clisp.org>
66005
66006         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
66007         HAVE_LONGLONG_64BIT.
66008
66009 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
66010
66011         * lib/strftime.c (my_strftime): Prepend space to format so that we can
66012         reliably distinguish strftime failure from empty output on POSIX
66013         hosts.
66014
66015 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
66016
66017         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
66018         (iconv_string): Don't guess a size-zero buffer, as that might cause
66019         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
66020         result would be 'too large', where 'too large' is (heuristically)
66021         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
66022         overflow concerns.  This will prevent some unwanted malloc failures
66023         when the inputs are very large.
66024
66025 2005-03-15  Karl Berry  <karl@gnu.org>
66026
66027         * config/srclist.txt (config.rpath): from gettext.
66028         * config/config.rpath: update.
66029
66030 2005-03-15  Bruno Haible  <bruno@clisp.org>
66031
66032         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
66033         to 'negate'.
66034
66035         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
66036         variable.
66037
66038         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
66039         results.
66040
66041 2005-03-14  Simon Josefsson  <jas@extundo.com>
66042
66043         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
66044         <fx@gnu.org>.
66045
66046 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
66047
66048         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
66049         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
66050         intprops.h.
66051         * lib/strtol.c: Likewise.
66052
66053 2005-03-14  Jim Meyering  <jim@meyering.net>
66054
66055         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
66056         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
66057         to be nonzero so that we (and caller) can detect the difference
66058         between a valid zero-length expansion and an error return, even
66059         when the underlying strftime fails before writing anything into
66060         that location.
66061
66062 2005-03-14  Bruno Haible  <bruno@clisp.org>
66063
66064         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
66065         Update from GNU gettext 0.14.3.
66066
66067 2005-03-10  Jim Meyering  <jim@meyering.net>
66068
66069         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
66070
66071 2005-03-10  Jim Meyering  <jim@meyering.net>
66072
66073         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
66074         so that this module works on systems without fchdir.
66075
66076 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
66077
66078         Factor int-properties macros into a single file, except for
66079         glibc-related files.
66080         * lib/intprops.h: New file.
66081         * lib/getloadavg.c: Include it instead of limits.h.
66082         (INT_STRLEN_BOUND): Remove.
66083         * lib/human.c: Include intprops.h.
66084         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
66085         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
66086         302/1000.
66087         * lib/inttostr.h: Include intprops.h instead of limits.h.
66088         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
66089         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
66090         for consistency with intprops.h.
66091         (time_t_is_integer, twos_complement_arithmetic): Use them.
66092         * lib/sig2str.h: Include <signal.h>, intprops.h.
66093         (INT_STRLEN_BOUND): Remove.
66094         * lib/strftime.c (TYPE_SIGNED): Remove.
66095         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
66096         * lib/strtol.c: Adjust comments to match intprops.h.
66097         * lib/userspec.c: Include intprops.h.
66098         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
66099         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
66100         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
66101         instead of rolling our own expressions.
66102         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
66103
66104         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
66105         instead of int.
66106         (my_strftime): Do not mishandle years close to INT_MAX, by doing
66107         the right thing even if adding 1900 would overflow.  Similarly
66108         for tm_mon + 1 and tm_yday + 1.
66109         Make %Y always equivalent to %C%y, and similarly for %G and %g.
66110         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
66111         (DO_SIGNED_NUMBER): New macro.
66112         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
66113
66114 2005-03-07  Bruno Haible  <bruno@clisp.org>
66115
66116         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
66117
66118 2005-03-07  Bruno Haible  <bruno@clisp.org>
66119
66120         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
66121
66122 2005-03-04  Derek R. Price  <derek@ximbiot.com>
66123
66124         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
66125         (func_import): Only replace files via --import when they have actually
66126         changed.
66127
66128 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66129
66130         * m4/mmap-anon.m4: New file.
66131         * m4/pagealign_alloc.m4: New file.
66132
66133 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66134             Bruno Haible  <bruno@clisp.org>
66135
66136         * modules/pagealign_alloc: New file.
66137         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
66138
66139 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66140             Bruno Haible  <bruno@clisp.org>
66141
66142         * lib/pagealign_alloc.h: New file.
66143         * lib/pagealign_alloc.c: New file.
66144
66145 2005-03-03  Bruno Haible  <bruno@clisp.org>
66146
66147         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
66148         Use an all-permissive copyright notice, recommended by RMS.
66149
66150 2005-03-02  Bruno Haible  <bruno@clisp.org>
66151
66152         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
66153         of AIX, the replacement has to be done only after <string.h> is
66154         included, therefore not in config.h. stpncpy.h does the replacement,
66155         and stpncpy.c uses it.
66156
66157 2005-03-02  Bruno Haible  <bruno@clisp.org>
66158
66159         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
66160         stpncpy.c uses it.
66161
66162 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66163
66164         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
66165         The workaround isn't strictly needed for POSIX conformance, and
66166         it's too much of a pain to configure and maintain.  We'll ask
66167         people to fix their kernels instead.
66168         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
66169         (NANOSLEEP_BUG_WORKAROUND): Remove.
66170         (xnanosleep): Remove the workaround.
66171
66172 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66173
66174         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
66175         Reported by Derek Price.
66176         (Include): Add "timespec.h".
66177
66178         * modules/xnanosleep (Depends-on): Remove gethrxtime.
66179
66180 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66181
66182         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
66183         to detect nanosleep bug.
66184
66185 2005-03-01  Bruno Haible  <bruno@clisp.org>
66186
66187         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
66188
66189 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
66190
66191         * modules/gethrxtime: New file.
66192         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
66193         (Depends-on): Add gethrxtime.
66194         (configure.ac): Add gl_XNANOSLEEP.
66195         (Makefile.am): Remove lib_SOURCES line.
66196
66197 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
66198
66199         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
66200         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
66201
66202 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
66203
66204         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
66205         * lib/timespec.h (gettime): Return void, since it always
66206         succeeds now.  All uses changed.
66207         * lib/gettime.c (gettime) Likewise.
66208         [HAVE_NANOTIME]: Prefer nanotime.
66209         Assume gettimeofday succeeds, as POSIX requires.
66210         Assime time () succeeds, since other code already does.
66211         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
66212         (timespec_subtract): Remove.
66213         (NANOSLEEP_BUG_WORKAROUND): New constant.
66214         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
66215         things considerably.  Use it only on GNU/Linux hosts, since the
66216         workaround shouldn't be needed elsewhere.
66217
66218 2005-02-24  Bruno Haible  <bruno@clisp.org>
66219
66220         * modules/gettext (Files): Add m4/glibc2.m4.
66221
66222 2005-02-24  Bruno Haible  <bruno@clisp.org>
66223
66224         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
66225         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
66226         * m4/progtest.m4:
66227         Update from GNU gettext 0.14.2.
66228         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
66229
66230 2005-02-24  Bruno Haible  <bruno@clisp.org>
66231
66232         * lib/localcharset.c: Update from GNU gettext 0.14.2.
66233         * lib/config.charset: Update from GNU gettext 0.14.2.
66234
66235 2005-02-24  Bruno Haible  <bruno@clisp.org>
66236
66237         * lib/gettext.h: Update from GNU gettext 0.14.2.
66238
66239 2005-02-23  Simon Josefsson  <jas@extundo.com>
66240
66241         * m4/iconvme.m4: New file.
66242
66243 2005-02-23  Jim Meyering  <jim@meyering.net>
66244
66245         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
66246         change.
66247         Thanks to Bruno Haible for catching it.
66248
66249 2005-02-22  Simon Josefsson  <jas@extundo.com>
66250
66251         * modules/iconvme: New file.
66252
66253         * MODULES.html.sh: Add iconvme.
66254
66255 2005-02-22  Simon Josefsson  <jas@extundo.com>
66256
66257         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
66258
66259 2005-02-22  Simon Josefsson  <jas@extundo.com>
66260
66261         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
66262
66263 2005-02-22  Jim Meyering  <jim@meyering.net>
66264
66265         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
66266         s/ifndef/ifdef/.
66267
66268 2005-02-20  Neil Conway  <neilc@samurai.com>
66269
66270         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
66271         returned by OSX/Darwin if the specified buffer is not large
66272         enough for the hostname.
66273
66274 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66275
66276         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
66277         pass it to _help, otherwise the latter coredumps trying to
66278         dereference state.root_argp.
66279
66280 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66281
66282         * modules/chdir-long (Depends-on): Add memrchr.
66283         * modules/memrchr (Files): Add lib/memrchr.h.
66284         (Include): "memrchr.h".
66285
66286 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66287
66288         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
66289
66290 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66291
66292         * lib/memrchr.h: New file.
66293         * lib/chdir-long.c: Include it.
66294         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
66295         Don't bother including stddef.h.
66296
66297 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
66298
66299         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
66300         inclusion.
66301         Include <sys/types.h>, for dev_t.
66302         (ME_DUMMY, ME_REMOTE): Move from here....
66303         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
66304         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
66305         Dmitry V. Levin.
66306         Include mountlist.h first, to test the interface.
66307
66308 2005-01-29  Bruno Haible  <bruno@clisp.org>
66309
66310         * lib/progname.c (program_name): Initialize.
66311         Needed when linking statically on MacOS X.
66312
66313 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
66314
66315         Sync from coreutils.
66316         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
66317         (Depends-on): Add c-strtod.
66318         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
66319
66320 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
66321
66322         Sync from coreutils.
66323         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
66324
66325         Remove files that are specific to coreutils.
66326         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
66327
66328 2005-01-28  Bruno Haible  <bruno@clisp.org>
66329
66330         * modules/javacomp: New file.
66331         * MODULES.html.sh (Java): Add javacomp.
66332
66333 2005-01-28  Bruno Haible  <bruno@clisp.org>
66334
66335         * m4/javacomp.m4: New file, from GNU gettext.
66336
66337 2005-01-28  Bruno Haible  <bruno@clisp.org>
66338
66339         * lib/javacomp.sh.in: New file, from GNU gettext.
66340         * lib/javacomp.h: New file, from GNU gettext.
66341         * lib/javacomp.c: New file, from GNU gettext.
66342
66343 2005-01-26  Simon Josefsson  <jas@extundo.com>
66344
66345         * lib/gai_strerror.c: Use GPL in header.
66346
66347 2005-01-26  Bruno Haible  <bruno@clisp.org>
66348
66349         * modules/javaexec: New file.
66350         * MODULES.html.sh (Java): Add javaexec.
66351
66352 2005-01-26  Bruno Haible  <bruno@clisp.org>
66353
66354         * m4/javaexec.m4: New file, from GNU gettext.
66355
66356 2005-01-26  Bruno Haible  <bruno@clisp.org>
66357
66358         * lib/javaexec.sh.in: New file, from GNU gettext.
66359         * lib/javaexec.h: New file, from GNU gettext.
66360         * lib/javaexec.c: New file, from GNU gettext.
66361
66362 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66363
66364         * modules/lchown (Depends-on): Remove lchown.h
66365
66366 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66367
66368         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
66369         must be defined if the header file was not found, in order
66370         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
66371
66372 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66373
66374         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
66375         initializers for struct pentry_state.
66376         (__argp_error): Check return value of __asprintf
66377         (__argp_failure): Translate error message
66378
66379         * lib/argp-parse.c: Removed braces around the expansion of N_()
66380
66381 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66382
66383         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
66384         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
66385         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
66386         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
66387         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
66388         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
66389         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
66390         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
66391         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
66392         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
66393         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
66394         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
66395         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
66396         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
66397         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
66398         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
66399         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
66400         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
66401         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
66402         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
66403         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
66404         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
66405         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
66406         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
66407         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
66408         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
66409         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
66410         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
66411         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
66412         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
66413         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
66414         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
66415         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
66416         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
66417         xstrtol.m4, xstrtoumax.m4, yesno.m4:
66418         Use an all-permissive copyright notice, recommended by RMS.
66419
66420 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
66421
66422         * modules/chdir-long (Depends-on): Remove mempcpy.
66423
66424 2005-01-21  Jim Meyering  <jim@meyering.net>
66425
66426         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
66427         same value as for Solaris 9.
66428
66429         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
66430         component length.  This included changing the parameter to be
66431         of type `char *' rather than `char const *'.
66432         * lib/chdir-long.h (chdir_long): Update prototype.
66433
66434         * lib/openat.c (fdopendir, fstatat): New functions.
66435         * lib/openat.h: Include headers required for use of DIR and struct
66436         stat.
66437         [AT_SYMLINK_NOFOLLOW]: Define.
66438         (fdopendir, fstatat): Add prototypes.
66439
66440 2005-01-21  Bruno Haible  <bruno@clisp.org>
66441
66442         * modules/classpath: New file.
66443         * MODULES.html.sh (Java): Add classpath.
66444
66445 2005-01-21  Bruno Haible  <bruno@clisp.org>
66446
66447         * lib/classpath.h: New file, from GNU gettext.
66448         * lib/classpath.c: New file, from GNU gettext.
66449
66450 2005-01-20  Simon Josefsson  <jas@extundo.com>
66451
66452         * modules/version-etc-fsf: New file.
66453
66454 2005-01-20  Simon Josefsson  <jas@extundo.com>
66455
66456         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
66457         * lib/version-etc.c: Remove version_etc_copyright.
66458         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
66459         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
66460
66461 2005-01-20  Simon Josefsson  <jas@extundo.com>
66462
66463         * lib/base64.h (isbase64): Add.
66464
66465         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
66466         using a unsigned prototype, don't inline.
66467         (base64_decode): Use it.
66468
66469 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66470
66471         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
66472         it.
66473
66474 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66475
66476         * lib/save-cwd.c (save_cwd): Remove code to support the case
66477         where fchdir is missing or flaky.
66478
66479 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66480
66481         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
66482
66483 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
66484
66485         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
66486         AC_LIBSOURCES now does this.
66487         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
66488         with new ullong_max module.
66489
66490 2005-01-19  Bruno Haible  <bruno@clisp.org>
66491
66492         * modules/sh-quote: New file.
66493         * MODULES.html.sh (Executing programs): Add sh-quote.
66494
66495 2005-01-19  Bruno Haible  <bruno@clisp.org>
66496
66497         * lib/sh-quote.h: New file, from GNU gettext.
66498         * lib/sh-quote.c: New file, from GNU gettext.
66499
66500 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
66501
66502         Merge from coreutils.
66503         * m4/ullong_max.m4: New file.
66504         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
66505         (gl_MACROS): Assume localeconv exists.
66506
66507 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
66508
66509         Merge changes from coreutils, as described below in several
66510         changelogs dated today.
66511
66512         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
66513         (O_DIRECTORY): Remove; not needed here, since "." must be
66514         a directory.  All uses removed.
66515         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
66516         universal on Suns, and we also need to test for IRIX.
66517         Revamp code to use 'if' rather than '#if'.
66518         Avoid unnecessary comparison of cwd->desc to 0.
66519
66520         * lib/utimens.c (futimens): Robustify the previous patch, by checking
66521         for known valid error numbers rather than observed invalid ones.
66522
66523 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
66524
66525         * modules/ullong_max: New file.
66526
66527         * modules/chdir-long, modules/openat: New files.
66528         * modules/save-cwd (Depends-on): Depend on chdir-long.
66529         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
66530
66531 2005-01-18  Jim Meyering  <jim@meyering.net>
66532
66533         Merge from coreutils.
66534         * m4/chdir-long.m4, m4/openat.m4: New files.
66535         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
66536         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
66537         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
66538         is sane and DOES follow symlinks.  Besides, testing 20 different
66539         systems found no broken chown implementations.
66540         Prompted by a change in rsync's copy of this macro.
66541         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
66542
66543         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
66544
66545         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
66546         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
66547         NULL-means-set-to-current-time semantics.
66548         Remove temporary file immediately, rather than waiting
66549         for configure's at-exit trap code to do it.
66550
66551 2005-01-18  Jim Meyering  <jim@meyering.net>
66552
66553         * lib/version-etc.c (version_etc_copyright): Update copyright date.
66554
66555         * lib/utimens.c (futimens): Account for the fact that futimes
66556         can also fail with errno == ENOSYS or errno == ENOENT.
66557         Patch from Dmitry V. Levin.
66558
66559         Change the name of the robust chdir function from chdir to chdir_long.
66560         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
66561         (restore_cwd): Use chdir_long, not chdir.
66562         * lib/chdir-long.c: Renamed from chdir.c.
66563         * lib/chdir-long.h: Renamed from chdir.h.
66564         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
66565         Hurd.
66566
66567 2005-01-18  Bruno Haible  <bruno@clisp.org>
66568
66569         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
66570         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
66571         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
66572         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
66573         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
66574         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
66575         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
66576         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
66577         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
66578         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
66579         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
66580         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
66581         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
66582         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
66583         Use an all-permissive copyright notice, recommended by RMS.
66584
66585 2005-01-18  Bob Proulx  <bob@proulx.com>
66586
66587         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
66588         simplify offsetof() macro construct to avoid compile failure with
66589         native HP-UX 11.0 ANSI C compiler.
66590
66591 2005-01-17  Bruno Haible  <bruno@clisp.org>
66592
66593         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
66594         redundant because stpncpy.m4 takes care of it.
66595
66596 2005-01-17  Bruno Haible  <bruno@clisp.org>
66597
66598         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
66599
66600 2005-01-17  Bruno Haible  <bruno@clisp.org>
66601
66602         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
66603         used.
66604
66605 2005-01-17  Bruno Haible  <bruno@clisp.org>
66606
66607         * lib/fwriteerror.h (fwriteerror): Change specification to include
66608         fclose.
66609         * lib/fwriteerror.c: Include <stdbool.h>.
66610         (fwriteerror): At the end, close the file stream. Record whether
66611         stdout was already closed.
66612
66613 2005-01-17  Bruno Haible  <bruno@clisp.org>
66614
66615         * lib/execute.c (environ): Declare if needed.
66616         * lib/pipe.c (environ): Likewise.
66617         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
66618
66619 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66620
66621         * modules/argp: Depend on vsnprintf
66622
66623 2005-01-10  Jim Meyering  <jim@meyering.net>
66624
66625         * modules/closeout (Depends-on): Add atexit.
66626
66627 2005-01-06  Bruno Haible  <bruno@clisp.org>
66628
66629         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
66630
66631 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66632
66633         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
66634         definitions to be after all include files, to avoid collisions.
66635         Problem reported by Bob Proulx.
66636
66637 2005-01-04  Jim Meyering  <jim@meyering.net>
66638
66639         Changes imported from coreutils.
66640         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
66641         as the mkstemp template, use a temporary directory and an
66642         8.3-friendly template to avoid trouble on systems like DJGPP.
66643         Reported by Juan M. Guerrero via Stepan Kasal.
66644         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
66645         close. Remove the temporary directory right away, rather than waiting
66646         for configure's at-exit trap code to do it.
66647         Suggestion from Stepan Kasal.
66648
66649 2005-01-01  Simon Josefsson  <jas@extundo.com>
66650
66651         * gnulib-tool: Print #include directives when --import'ing.
66652
66653 2004-12-28  Simon Josefsson  <jas@extundo.com>
66654
66655         * tests/test-base64.c: Include required header files.  Remove
66656         unused variables.
66657
66658 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66659
66660         * modules/error (Depends-on): Remove gettext.
66661
66662 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66663
66664         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
66665         not needed.  This removes a dependency on the gettext module.
66666         [defined _LIBC]: Do not include <libintl.h>; not needed.
66667
66668 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
66669
66670         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
66671         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
66672
66673 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
66674
66675         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
66676         HAVE_DECL_STRTOLD.
66677
66678 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66679
66680         * modules/getdate (Depends-on): Remove alloca-opt.
66681
66682 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66683
66684         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
66685
66686 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66687
66688         * lib/argp-parse.c: Include <stddef.h>.
66689         (alignof, alignto): New macros.
66690         (parser_init): Don't assume that void * is aligned sufficiently
66691         for struct option.
66692
66693         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
66694         need to extend the stack.
66695         (YYINITDEPTH): New macro, so that the initial stack isn't overly
66696         large.
66697
66698 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66699
66700         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
66701
66702 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
66703
66704         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
66705         (2004-10-24) change.  Apparently this was a false alarm.
66706
66707         * modules/getdate: Depend on alloca-opt, not alloca.
66708
66709 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
66710
66711         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
66712         Remove now-obsolete comment about AIX.
66713         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
66714         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
66715         (YYMAXDEPTH): New macro.
66716
66717 2004-12-18  Simon Josefsson  <jas@extundo.com>
66718
66719         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
66720
66721 2004-12-18  Bruno Haible  <bruno@clisp.org>
66722
66723         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
66724
66725 2004-12-18  Bruno Haible  <bruno@clisp.org>
66726
66727         * lib/fatal-signal.c (fatal_signals): Make non-const.
66728         (init_fatal_signals): New function.
66729         (uninstall_handlers, install_handlers): Ignore signals that were set to
66730         SIG_IGN.
66731         (at_fatal_signal): Call init_fatal_signals.
66732         (init_fatal_signal_set): Likewise. Ignore signals that were set to
66733         SIG_IGN.
66734         Reported by Paul Eggert.
66735
66736 2004-12-18  Bruno Haible  <bruno@clisp.org>
66737
66738         * doc/alloca.texi: New file.
66739         * doc/alloca-opt.texi: New file.
66740
66741 2004-12-17  Jim Meyering  <jim@meyering.net>
66742
66743         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
66744         Otherwise, install-sh could exit with improper exit status when
66745         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
66746
66747 2004-12-16  Simon Josefsson  <jas@extundo.com>
66748
66749         * tests/test-base64.c: Add license.
66750
66751 2004-12-15  Stepan Kasal  <address@hidden>
66752
66753         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
66754
66755 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
66756
66757         * modules/getcwd (Files): Add m4/d-ino.m4.
66758         Suggested by Mark D. Baushke.
66759
66760 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
66761
66762         * lib/getdate.y (textint): New member "negative".
66763         (time_zone_hhmm): New function.
66764         Expect 14 shift-reduce conflicts, not 13.
66765         (o_colon_minutes): New rule.
66766         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
66767         (yylex): Set the "negative" member of signed numbers.
66768
66769 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
66770
66771         * doc/getdate.texi (Time of day items, Time zone items):
66772         Describe new formats +00:00, UTC+00:00.
66773
66774 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66775
66776         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
66777         spurious "-l"s.  Problem reported by Stepan Kasal.
66778
66779 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
66780
66781         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
66782         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
66783
66784 2004-12-04  Simon Josefsson  <jas@extundo.com>
66785
66786         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
66787         Vandoorselaere <yoann@prelude-ids.org>.
66788
66789 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
66790
66791         Changes imported from coreutils.
66792         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
66793         exist.
66794         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
66795
66796 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
66797
66798         Changes imported from coreutils.
66799         * lib/hard-locale.c: Assume <locale.h> exists.
66800         Include "strdup.h".
66801         (GLIBC_VERSION): New macro.
66802         (hard_locale): Assume setlocale exists.
66803         Rewrite to avoid #ifdef.
66804         Use strdup rather than malloc + strcpy.
66805         * lib/human.c: Assume <locale.h> exists.
66806         (human_readable): Assume localeconv exists.
66807
66808 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
66809
66810         * modules/hard-locale (Depends-on): Add strdup.
66811
66812 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
66813
66814         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
66815         convert T2, not T.  (Imported from libc.)
66816
66817 2004-11-30  Simon Josefsson  <jas@extundo.com>
66818
66819         * modules/restrict (License): Change to LGPL.
66820
66821 2004-11-30  Simon Josefsson  <jas@extundo.com>
66822
66823         * m4/restrict.m4: Add copyright and copying conditions.
66824
66825 2004-11-30  Simon Josefsson  <jas@extundo.com>
66826
66827         * m4/base64.m4: New file.
66828
66829 2004-11-30  Simon Josefsson  <jas@extundo.com>
66830
66831         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
66832         base64.
66833
66834         * tests/test-base64.c: New file.
66835
66836         * modules/base64: New file.
66837
66838 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
66839
66840         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
66841         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
66842
66843         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
66844
66845 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
66846
66847         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
66848         (__getcwd.c): Don't restore errno; glibc doesn't.
66849         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
66850         first, falling back to our code only if its results look suspicious.
66851         Ensure that the resulting buffer is only as large as necessary.
66852
66853         * lib/readutmp.c: Include readutmp.h first.
66854         Include <errno.h>, since readutmp.h no longer does that.
66855         * lib/readutmp.h: Don't include <errno.h>,
66856         <sys/param.h>, <time.h>; not needed to establish interface.
66857         (errno): Remove decl.
66858         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
66859         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
66860         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
66861
66862 2004-11-28  Simon Josefsson  <jas@extundo.com>
66863
66864         * lib/base64.h, base64.c: New file.
66865
66866 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
66867
66868         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
66869
66870 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
66871
66872         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
66873         (Depends-on): Remove pathmax, same.  Add mempcpy.
66874         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
66875         (Makefile.am): Append getcwd.h to lib_SOURCES.
66876         (Include): Add getcwd.h.
66877         (Maintainer): Change from Jim Meyering to "all, glibc",
66878         since getdate now uses intended-for-glibc code.
66879         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
66880         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
66881
66882 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
66883
66884         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
66885         HP's ANSI C compiler.
66886         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
66887         Declaring int functions causes warnings on some modern systems and
66888         shouldn't be needed to compile on ancient ones.
66889         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
66890         defined.
66891
66892         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
66893         with the following changes.
66894         (__set_errno): Parenthesize properly.
66895         Include <stdbool.h>.
66896         (MIN, MAX, MATCHING_INO): New macros.
66897         (__getcwd): Define with prototype, not K&R form.
66898         Use heuristics to allocate default buffer on stack if possible.
66899         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
66900         behavior, and to avoid the PATH_MAX limit when computing
66901         ../../../../...
66902         Use MATCHING_INO to compare inode number to file.
66903         Check for arithmetic overflow in size calculations.
66904         Fix bug in reallocation of dot array that caused getcwd to fail
66905         on directories nested deeper than 75.
66906         Be more careful about saving errno on error.
66907         Do not use realloc; use only free+malloc, as this is a bit
66908         more flexible and avoids a needless copy operation.
66909         Do not inspect st_dev and st_ino for symbolic links; POSIX
66910         doesn't specify the latter.
66911         Check for closedir errors.
66912         Avoid needless casts.
66913         Use "#ifdef weak_alias" around weak_alias, to be like other
66914         glibc code.
66915         The following changes to getcwd.c have effect only when used in
66916         gnulib; they have no effect inside glibc proper.
66917         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
66918         as alloca isn't used.
66919         (alloca, __alloca): Likewise.
66920         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
66921         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
66922         unconditionally, as gnulib assumes C89 or better.
66923         Do not include <sys/param.h>.
66924         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
66925         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
66926         better.
66927         (NULL) [!defined NULL]: Remove; we assume C89 or better.
66928         Include <dirent.h> in a way that is compatible with modern Autoconf.
66929         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
66930         New macros, if not already defined.
66931         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
66932         Use "_LIBC", not "defined _LIBC", for consistency.
66933         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
66934         a mempcpy module.
66935         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
66936         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
66937         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
66938         credit only to Jim Meyering and adjust the copyright dates.
66939         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
66940         <stdlib.h>, <unistd.h>, "pathmax.h".
66941         Instead, include "xgetcwd.h" (first) and "getcwd.h".
66942         (INITIAL_BUFFER_SIZE): Remove.
66943         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
66944
66945 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
66946
66947         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
66948         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
66949         Use the _ONCE methods, for efficiency.
66950         Check for fcntl.h.  In test program, include <errno.h>
66951         and <fcntl.h> if available.  Remove old K&R cruft from
66952         test program.  Check for common errors in GNU/Linux,
66953         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
66954         don't do AC_LIBOBJ, as that's getcwd.m4's job.
66955         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
66956         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
66957         name accordingly.
66958         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
66959         accommodate new getcwd.c.
66960         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
66961         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
66962         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
66963         that's all we need now.
66964
66965 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66966
66967         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
66968         argp-parse.c depends on getopt internals, that means we should
66969         always use our getopt, to be on the safe side.
66970         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
66971         order not to spoil the result of an eventual previous invocation
66972         of gl_GETOPT_SUBSTITUTE.
66973
66974 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66975
66976         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
66977         redefinition warnings. To avoid them, include the defines
66978         in `#if !defined __need_getopt ... #endif'. The only place
66979         where __getopt_argv_const is used is in definitions
66980         of getopt_long and getopt_long_only below, which are as well
66981         protected by `#ifndef __need_getopt'.
66982         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
66983         __need_getopt after including <stdio.h> and <unistd.h> These
66984         headers might have defined it.
66985
66986 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
66987
66988         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
66989
66990 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
66991
66992         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
66993         (futimens): New function, which uses futimes if available.
66994         (futimens, utimens): Support timespec==NULL, with same semantics
66995         as utime and utimens.
66996         * lib/utimens.h (futimens): New decl.
66997
66998 2004-11-23  Jim Meyering  <jim@meyering.net>
66999
67000         * lib/getopt_.h: Remove trailing blanks.
67001
67002 2004-11-23  Jim Meyering  <jim@meyering.net>
67003
67004         * lib/__fpending.c: Add comment.
67005
67006 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
67007
67008         * modules/canonicalize (Depends-on): Add xreadlink.
67009         Problem reported by James Youngman.
67010
67011 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67012
67013         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
67014         New macros.
67015         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
67016         optopt): Use them instead of invoking ## directly; otherwise, the
67017         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
67018
67019 2004-11-19  Bruno Haible  <bruno@clisp.org>
67020
67021         * lib/strtok_r.c: Move comments from here...
67022         * lib/strtok_r.h: ... to here.
67023
67024 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67025
67026         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
67027         implementations that mishandle size_t overflow.
67028
67029 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67030
67031         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
67032         might fail.  Problem reported by Yoann Vandoorselaere.
67033         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
67034         implementations that mishandle size_t overflow.
67035
67036 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67037
67038         * modules/canon-host (Depends-on): Add strdup.
67039
67040 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67041
67042         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
67043
67044 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67045
67046         * lib/canon-host.c: Include "strdup.h".
67047         (canon_host): Use getaddrinfo if available, so that IPv6 works.
67048         Use strdup instead of malloc/strcpy to duplicate strings.
67049
67050         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
67051         (human_space_before_unit): New constant.
67052         * lib/human.c (human_readable): Support it.
67053
67054         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
67055         (xgetcwd): Set errno correctly when failing.
67056         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
67057         the failure is actually due to a PATH_MAX problem.
67058
67059         Further getopt changes to make it more likely that glibc will
67060         buy the changes back.
67061         * lib/getopt.c (POSIXLY_CORRECT): New constant.
67062         (getopt): Use it, so to preserve glibc semantic
67063         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
67064         when compiling for libc.
67065         * lib/getopt_.h (__getopt_argv_const): Bring it back.
67066         (getopt_long, getopt_long_only): Use it.
67067
67068         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
67069         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
67070         (getopt): Argv is now char * const *, as per standard.
67071         (_getopt_internal_r, _getopt_internal): Argv is now char **,
67072         not char *__getopt_argv_const *.
67073         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
67074         _getopt_long_only_r): Likewise.
67075         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
67076         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
67077         _getopt_long_r, _getopt_long_only_r): Likewise.
67078         * lib/getopt_.h (__getopt_argv_const): Remove.
67079         (getopt): Argv is now char * const *, as per standard.
67080
67081         * lib/getdate.y (tORDINAL): New token.
67082         (day, relunit): Allow it for relative times.
67083         (relative_time_table): Use tORDINAL for ordinals.
67084
67085 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67086
67087         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
67088         Document that "second" isn't allowed as an ordinal number.
67089
67090 2004-11-16  Jim Meyering  <jim@meyering.net>
67091
67092         * modules/closeout (Depends-on): Add fpending.
67093
67094 2004-11-15  Jim Meyering  <jim@meyering.net>
67095
67096         * lib/closeout.c: Include "__fpending.h" once again.
67097         Include <stdbool.h>.
67098         (close_stdout): Don't fail just because stdout was closed initially,
67099         since some programs don't write to stdout in the normal course of
67100         operation (other than --version and --help), and we don't want this
67101         function to make e.g. `touch file >&-' fail.
67102         But do fail if it was closed and someone has tried to write to it.
67103         E.g., `printf foo >&-' must fail.
67104
67105 2004-11-13  Jim Meyering  <jim@meyering.net>
67106
67107         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
67108
67109 2004-11-12  Simon Josefsson  <jas@extundo.com>
67110
67111         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
67112         small doc fix is still pending.
67113
67114 2004-11-11  Simon Josefsson  <jas@extundo.com>
67115
67116         * modules/strtok_r: New file.
67117
67118         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67119         strtok_r.
67120
67121 2004-11-11  Simon Josefsson  <jas@extundo.com>
67122
67123         * m4/strtok_r.m4: New file.
67124
67125         * m4/getopt.m4: Replace opterr.
67126
67127 2004-11-11  Simon Josefsson  <jas@extundo.com>
67128
67129         * lib/strtok_r.h, strtok_r.c: New file.
67130
67131 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
67132
67133         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
67134         of replacing opterr, getopt, etc.  This should handle the
67135         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
67136
67137 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
67138
67139         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
67140         we can stop lying to compilers about the constness of argv when we
67141         are compiled outside glibc.
67142         (getopt, getopt_long, getopt_long_only): Use it.
67143         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
67144         _getopt_internal, getopt): Likewise.
67145         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
67146         _getopt_long_only_r): Likewise.
67147         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
67148         _getopt_long_r, _getopt_long_only_r): Likewise.
67149
67150         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
67151         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
67152         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
67153         the other external symbols.
67154         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
67155         declaration, since the above renaming now works around collisions.
67156
67157 2004-11-11  Jim Meyering  <jim@meyering.net>
67158
67159         * lib/linebreak.c: Remove trailing blanks.
67160         * lib/alloca_.h: Likewise.
67161         * lib/acosl.c: Likewise.
67162         * lib/euidaccess.c: Likewise.
67163         * lib/allocsa.h: Likewise.
67164
67165 2004-11-10  Simon Josefsson  <jas@extundo.com>
67166
67167         * m4/getaddrinfo.m4: New file.
67168
67169 2004-11-10  Simon Josefsson  <jas@extundo.com>
67170
67171         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
67172
67173 2004-11-10  Simon Josefsson  <jas@extundo.com>
67174
67175         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67176         getaddrinfo.
67177
67178         * modules/getaddrinfo: New file.
67179
67180 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67181
67182         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
67183
67184 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67185
67186         * lib/mktime.c (SHR): New macro, which is a portable
67187         substitute for >> that should work even on Crays.
67188         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
67189         Problem reported by Mark D. Baushke in
67190         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
67191         * lib/getdate.y (SHR): Likewise.
67192         (tm_diff): Use it.
67193         * lib/strftime.c (SHR): Likewise.
67194         (tm_diff): Use it.
67195         * lib/quotearg.c (struct quoting_options): Use unsigned int for
67196         quote_these_too, so that right shifts are well defined.  All uses
67197         changed.
67198
67199 2004-11-10  Jim Meyering  <jim@meyering.net>
67200
67201         Ensure that no close failure goes unreported.
67202         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
67203         return early when it seems there's nothing to flush.
67204         Don't include __fpending.h.
67205
67206 2004-11-10  Jim Meyering  <jim@meyering.net>
67207
67208         * modules/closeout (Depends-on): Remove fpending.
67209
67210 2004-11-10  Jim Meyering  <jim@meyering.net>
67211
67212         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
67213
67214 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67215
67216         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
67217         gl_FUNC_STRFTIME.
67218         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
67219         and AC_REQUIRE when possible, to avoid duplicate checks.
67220         Check for <wchar.h>.
67221
67222 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67223
67224         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
67225
67226 2004-11-09  Bruno Haible  <bruno@clisp.org>
67227
67228         * m4/sockpfaf.m4: New file.
67229
67230 2004-11-05  Bruno Haible  <bruno@clisp.org>
67231
67232         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
67233         Reported by Mark D. Baushke <mdb@cvshome.org>.
67234
67235 2004-11-04  Bruno Haible  <bruno@clisp.org>
67236
67237         2004-09-11  Bruno Haible  <bruno@clisp.org>
67238                 * allocsa.valgrind: New file.
67239         2004-02-06  Bruno Haible  <bruno@clisp.org>
67240                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
67241                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
67242                 Reported by Christopher Seip <chris.seip@hp.com>.
67243
67244 2004-11-04  Bruno Haible  <bruno@clisp.org>
67245
67246         * modules/allocsa (Files): Add lib/allocsa.valgrind.
67247         (Makefile.am): Distribute it.
67248
67249 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
67250
67251         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
67252         with errno == ERANGE if the buffer is too small.
67253         Problem reported by Mark D. Baushke.
67254
67255 2004-11-03  Albert Chin  <china@thewrittenword.com>
67256             Paul Eggert  <eggert@cs.ucla.edu>
67257
67258         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
67259         equivalent, substitute $ac_type for equivalent type rather than
67260         blindly using uint32_t *always* which won't work if uint32_t is not
67261         available.  Define _UINT32_T to work around typedef of uint32_t if
67262         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
67263         2.5.1.
67264
67265 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
67266
67267         * m4/jm-macros.m4: Sync from coreutils.
67268         (gl_MACROS): Check for mbrlen, for pathchk.
67269         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
67270
67271 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
67272
67273         * lib/xreadlink.c (MAXSIZE): New macro.
67274         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
67275         size does not exceed MAXSIZE.  Avoid cast.
67276         As suggested by Mark D. Baushke in
67277         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
67278         if readlink fails with buffer size just under MAXSIZE, try again
67279         with MAXSIZE.
67280
67281 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
67282
67283         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
67284
67285 2004-11-02  Derek R. Price  <derek@ximbiot.com>
67286         and  Paul Eggert  <eggert@cs.ucla.edu>
67287
67288         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
67289         (get_date): Overparenthesize to avoid GCC warning.
67290
67291 2004-11-02  Bruno Haible  <bruno@clisp.org>
67292
67293         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
67294         returns void.
67295
67296 2004-11-02  Bruno Haible  <bruno@clisp.org>
67297
67298         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
67299         function returns void.
67300
67301 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
67302
67303         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
67304         fflush_unlocked, flockfile, funlockfile, funlockfile,
67305         fputs_unlocked, putc_unlocked.
67306
67307 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
67308
67309         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
67310         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
67311         already declared.
67312
67313 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67314
67315         * modules/getdate (Files): Add doc/getdate.texi.
67316         (Depends-on): Add setenv, xalloc.
67317
67318 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67319
67320         * lib/getdate.y: Add support for TZ="foo" within a date string.
67321         Fix some bugs near time_t boundaries.  Reject dates with
67322         out-of-range components, e.g., "Sept 31".
67323         Include <stdlib.h>, "setenv.h", "xalloc.h".
67324         (ISDIGIT_LOCALE): Remove; unused.
67325         Note that the TZ and time functions used here are not reentrant.
67326         (mktime_ok, get_tz): New functions.
67327         (TZBUFSIZE): New constant.
67328         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
67329         This requires that we sometimes generate our own TZ="XXX..." setting.
67330
67331 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67332
67333         * doc/getdate.texi: New file, from coreutils with modifications for
67334         the new TZ parsing.
67335
67336 2004-10-27  Derek R. Price  <derek@ximbiot.com>
67337
67338         * lib/mktime.c (not_equal_tm): Remove redundant check.
67339
67340 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67341
67342         * modules/regex (lib_SOURCES): Add regex.c.
67343         Reported by James Youngman in
67344         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
67345
67346 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67347
67348         * lib/getdate.y: Use Bison 1.875 features, and some minor
67349         code cleanups.  This change does not affect semantics.
67350         Don't include <stdlib.h>; no longer needed.
67351         Don't include unlocked-io.h; only the "#if TEST" code uses
67352         stdio, and performance isn't crucial there.
67353         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
67354         Bison 1.875 features as described below.
67355         All uses of "PC." replaced by "pc->".
67356         (YYSTYPE): Add a forward declaration.
67357         (yylex, yyerror): Use full prototypes in forward decls.
67358         Use "%pure-parser" rather than obsolescent "%pure_parser".
67359         Use %parse-param and %lex-param instead of obsolescent
67360         YYPARSE_PARAM and YYLEX_PARAM.
67361         (meridian_table, month_and_day_table, time_units_table,
67362         relative_time_table, time_zone_table, military_table,
67363         lookup_zone, lookup_word, get_date):
67364         Use NULL instead of 0 where appropriate.
67365         (to_hour): Avoid abort (), to avoid a dependency on
67366         stdlib.h.
67367         (yyerror, yylex): Now accepts parser_control * arg.
67368         (main) [TEST]: Use '\0' rather than 0 for char.
67369
67370 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
67371
67372         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
67373
67374 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
67375
67376         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
67377         It's now the caller's responsibility to handle the case where
67378         !HAVE_GETPAGESIZE && !defined getpagesize.
67379
67380         * lib/mktime.c (leapyear): Arg is long int, not int.
67381
67382 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
67383
67384         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
67385
67386 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
67387
67388         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
67389         missing.  Problem reported by James Youngman.
67390
67391 2004-10-16  Simon Josefsson  <jas@extundo.com>
67392
67393         * gnulib-tool: Fix comments.  Fix parse problem.
67394         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
67395
67396 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
67397
67398         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
67399         implementation of getopt_long.  Problem reported by Alexander Taler in:
67400         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
67401
67402 2004-10-15  Bruno Haible  <bruno@clisp.org>
67403
67404         * gnulib-tool: Untabify. Initialize supplied_libname.
67405         (func_usage): More homogenous output.
67406         (func_modules_transitive_closure, func_modules_to_filelist,
67407         func_emit_lib_Makefile_am): New functions.
67408         (func_import): New function, extracted from big case statement. Use
67409         func_get_license, func_modules_transitive_closure,
67410         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
67411         opt_lgpl. Don't use test -a, as it's not portable.
67412         (func_create_testdir): Use func_modules_transitive_closure,
67413         func_modules_to_filelist, func_emit_lib_Makefile_am.
67414
67415 2004-10-15  Bruno Haible  <bruno@clisp.org>
67416
67417         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
67418
67419 2004-10-15  Bruno Haible  <bruno@clisp.org>
67420
67421         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
67422         the portions belonging to each module.
67423         Suggested by Derek Robert Price <derek@ximbiot.com>.
67424
67425 2004-10-12  Simon Josefsson  <jas@extundo.com>
67426
67427         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
67428         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
67429         to real functions.
67430
67431 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67432
67433         * modules/vsnprintf: New file.
67434
67435 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67436
67437         * m4/vsnprintf.m4: New file.
67438
67439 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67440
67441         * lib/vsnprintf.h: New file.
67442         * lib/vsnprintf.c: New file.
67443
67444 2004-10-11  Bruno Haible  <bruno@clisp.org>
67445
67446         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
67447         vsnprintf.
67448
67449 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67450
67451         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
67452
67453 2004-10-07  Bruno Haible  <bruno@clisp.org>
67454
67455         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
67456         fits into the provided buffer.
67457
67458 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67459
67460         * lib/diacrit.c, diacrit.h: Add GPL notice.
67461
67462         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
67463         notice.
67464         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
67465         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
67466         This avoids a potential constant-folding bug.
67467
67468 2004-10-05  Bruno Haible  <bruno@clisp.org>
67469
67470         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
67471         for the declaration of strsep.
67472
67473 2004-10-05  Bruno Haible  <bruno@clisp.org>
67474
67475         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
67476
67477 2004-10-04  Simon Josefsson  <jas@extundo.com>
67478
67479         * modules/memmem: New file.
67480         * tests/test-memmem.c: New file.
67481         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
67482
67483 2004-10-04  Simon Josefsson  <jas@extundo.com>
67484
67485         * m4/memmem.m4: New file.
67486
67487 2004-10-04  Simon Josefsson  <jas@extundo.com>
67488
67489         * lib/memmem.h: New file.
67490         * lib/memmem.c: New file, taken from glibc.
67491
67492 2004-10-04  Simon Josefsson  <jas@extundo.com>
67493
67494         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
67495         '#ifdef USE_UNLOCKED_IO'.
67496
67497 2004-10-04  Simon Josefsson  <jas@extundo.com>
67498
67499         * config/srclist.txt: Add memmem from glibc.
67500
67501 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67502
67503         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
67504
67505         * modules/argmatch, modules/argp, modules/closeout, modules/error,
67506         modules/exclude, modules/getdate, modules/getline,
67507         modules/getndelim2, modules/getpass, modules/getpass-gnu,
67508         modules/getusershell, modules/linebuffer, modules/md5,
67509         modules/mountlist, modules/posixtm, modules/readtokens,
67510         modules/readutmp, modules/regex, modules/sha1,
67511         modules/version-etc, modules/yesno:
67512         Remove dependency on unlocked-io.
67513
67514 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67515
67516         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
67517
67518         * m4/unlocked-io.m4: Add copyright notice.
67519         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
67520
67521 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67522
67523         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
67524         * lib/xmalloc.c (xmemdup): Likewise.
67525         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
67526         XFREE): Remove these long-obsolescent macros.
67527         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
67528         * lib/xstrdup.c: Remove.
67529
67530         * lib/regex.c (re_comp): Cast gettext return value to char *,
67531         Problem reported by Martin Neitzel via Mark D. Baushke.
67532
67533 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67534
67535         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
67536         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
67537         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
67538         regex.c, sha1.c, version-etc.c, yesno.c:
67539         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
67540         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
67541         the includer's responsibility.
67542
67543         Sync from coreutils.
67544
67545         * lib/modechange.c (mode_compile): Don't decrement a pointer that
67546         points to the start of a string, as the C Standard says the
67547         resulting behavior is undefined.
67548
67549         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
67550         simple -> simple_backups, numbered_existing ->
67551         numbered_existing_backups, numbered -> numbered_backups
67552         to avoid shadowing problems.  All uses changed.
67553         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
67554         * lib/backupfile.c (check_extension, numbered_backup):
67555         Rename locals to avoid shadowing 'basename'.
67556         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
67557         once.
67558
67559         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
67560         * lib/.cvsignore: Add getopt.h.
67561
67562 2004-10-04  Bruno Haible  <bruno@clisp.org>
67563
67564         * modules/README: New file.
67565         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
67566         not a module.
67567
67568 2004-10-02  Jim Meyering  <jim@meyering.net>
67569
67570         * lib/dirfd.h, getpagesize.h: Add copyright notice.
67571
67572 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67573
67574         * modules/strsep: New file.
67575
67576 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67577
67578         * m4/strsep.m4: New file.
67579
67580 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67581
67582         * lib/strsep.h: New file.
67583         * lib/strsep.c: New file.
67584
67585 2004-10-01  Simon Josefsson  <jas@extundo.com>
67586
67587         * lib/snprintf.c (snprintf): Handle size==0.
67588
67589 2004-10-01  Simon Josefsson  <jas@extundo.com>
67590             Bruno Haible  <bruno@clisp.org>
67591
67592         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
67593         (snprintf): Declare 'args'.
67594
67595 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
67596
67597         * lib/snprintf.c: Remove comments as to why each header is needed.
67598
67599 2004-10-01  Bruno Haible  <bruno@clisp.org>
67600
67601         * MODULES.html.sh: Add strsep.
67602
67603 2004-09-30  Simon Josefsson  <jas@extundo.com>
67604
67605         * modules/snprintf: New file.
67606
67607 2004-09-30  Simon Josefsson  <jas@extundo.com>
67608
67609         * m4/snprintf.m4: New file.
67610
67611 2004-09-30  Simon Josefsson  <jas@extundo.com>
67612
67613         * lib/snprintf.h, lib/snprintf.c: New files.
67614
67615 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67616
67617         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
67618         (hol_entry_help): Never translate an empty string.
67619         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
67620         * lib/argp.h (OPTION_NO_TRANS): New option.
67621
67622 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
67623
67624         * modules/argp (Maintainer): Replace Simon Josefsson
67625         by Sergey Poznyakoff.
67626
67627 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
67628
67629         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
67630         changes merged back into glibc.
67631
67632 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
67633
67634         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
67635
67636 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
67637
67638         * lib/xvasprintf.c: Include xalloc.h.
67639         (xvasprintf): Use xalloc_die, not xmalloc_die.
67640
67641 2004-09-29  Bruno Haible  <bruno@clisp.org>
67642
67643         * modules/alloca-opt: New file, derived from modules/alloca.
67644         * modules/allocsa: Depend on alloca-opt instead of alloca.
67645         * modules/setenv: Likewise.
67646         * modules/vasnprintf: Likewise.
67647         * MODULES.html.sh: Add alloca-opt.
67648
67649 2004-09-28  Simon Josefsson  <jas@extundo.com>
67650
67651         * gnulib-tool: New parameter --lgpl, to asseert that modules are
67652         LGPL, and to replace license template from GPL to LGPL.
67653
67654 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
67655
67656         * modules/dummy: Change license to LGPL.
67657
67658 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
67659
67660         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
67661
67662 2004-09-24  Simon Josefsson  <jas@extundo.com>
67663
67664         * modules/minmax (License): Change from GPL to LGPL.
67665
67666 2004-09-23  Simon Josefsson  <jas@extundo.com>
67667
67668         * gnulib-tool (--import): Typo.
67669
67670 2004-09-23  Simon Josefsson  <jas@extundo.com>
67671
67672         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
67673
67674 2004-09-22  Bruno Haible  <bruno@clisp.org>
67675
67676         * modules/*: Add 'License' field.
67677         * gnulib-tool: Accept --extract-license option.
67678         (func_get_license): New function.
67679
67680 2004-09-21  Bruno Haible  <bruno@clisp.org>
67681
67682         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
67683         Reported by Simon Josefsson.
67684
67685 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67686
67687         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
67688         gl_AC_TYPE_LONG_LONG.
67689
67690 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67691
67692         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
67693
67694 2004-09-18  Simon Josefsson  <jas@extundo.com>
67695         and  Paul Eggert  <eggert@cs.ucla.edu>
67696
67697         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
67698         calls with autoreconf.  Define GL_LIB.
67699
67700 2004-09-14  Karl Berry  <karl@gnu.org>
67701
67702         * config/srclist.txt: unsync setenv.c, sigh.
67703
67704 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67705
67706         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
67707         Problem reported by Bruno Haible in:
67708         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
67709
67710 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67711
67712         * config/srclist.txt: Comment out argp-pvh.c.
67713
67714 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
67715
67716         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
67717         in case some system header has #define'd it.  Problem reported by
67718         Soeren D. Schulze in
67719         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
67720
67721 2004-09-09  Karl Berry  <karl@gnu.org>
67722
67723         * regex.[ch]: delete from the root.  These were supposed to be
67724                 synced with emacs cvs, but this has not happened for about
67725                 a year, and anyway nothing else uses emacs regex.[ch].
67726                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
67727                 lib/regex[.ch] is untouched.
67728
67729 2004-09-09  Bruno Haible  <bruno@clisp.org>
67730
67731         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
67732
67733 2004-09-09  Bruno Haible  <bruno@clisp.org>
67734
67735         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
67736         modifications.
67737         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
67738
67739 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
67740
67741         * modules/xvasprintf: New file.
67742         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
67743
67744 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
67745
67746         * lib/xvasprintf.h: New file.
67747         * lib/xvasprintf.c: New file.
67748         * lib/xasprintf.c: New file.
67749
67750 2004-09-08  Bruno Haible  <bruno@clisp.org>
67751
67752         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
67753
67754 2004-09-08  Bruno Haible  <bruno@clisp.org>
67755
67756         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
67757         length is > INT_MAX.
67758         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
67759         more.
67760
67761 2004-09-08  Bruno Haible  <bruno@clisp.org>
67762
67763         * lib/stdint_.h: New file, taken from GNU clisp.
67764
67765 2004-09-08  Bruno Haible  <bruno@clisp.org>
67766             Oskar Liljeblad  <oskar@osk.mine.nu>
67767
67768         * modules/stdint: New file.
67769         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
67770
67771 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67772
67773         Import from coreutils.
67774         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
67775         strings on unbounded length.  alloca's performance benefits aren't
67776         that important here.
67777         (V_STRDUP): Remove.
67778         (parse_with_separator): New function, with most of the internals
67779         of the old parse_user_spec.  Allow user to omit both user and group,
67780         for compatibility with FreeBSD.
67781         Clone only the user name, not the entire spec.
67782         Do not set *uid, *gid unless entirely successful.
67783         Avoid memory leak in some failing cases.
67784         Fix regression for USER.GROUP reported by Dmitry V. Levin in
67785         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
67786         (parse_user_spec): Rewrite to use parse_with_separator.
67787
67788 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67789
67790         * modules/userspec: Don't depend on alloca.
67791
67792 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67793
67794         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
67795
67796 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67797
67798         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
67799         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
67800         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
67801
67802 2004-08-16  Simon Josefsson  <jas@extundo.com>
67803
67804         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
67805         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
67806         Add --dry-run for --import.
67807         Let user provided command line parameters override configure.ac
67808         settings.
67809
67810 2004-08-12  Simon Josefsson  <jas@extundo.com>
67811
67812         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
67813         as discussed with Paul Eggert in threads rooted at
67814         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
67815         and
67816         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
67817         Before, the test was empty, and relied on ELIDE_CODE in source
67818         code.)
67819         (gl_PREREQ_GETOPT): New macro.
67820         (gl_GETOPT): Use them.
67821
67822 2004-08-12  Simon Josefsson  <jas@extundo.com>
67823
67824         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
67825         * lib/getopt_.h: Renamed from getopt.h.
67826
67827 2004-08-12  Simon Josefsson  <jas@extundo.com>
67828
67829         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
67830         Change default library name from libfoo to libgnu.
67831         Now, if you have a configure.ac that says:
67832                 gl_SOURCE_BASE(gl)
67833                 gl_M4_BASE(gl/m4)
67834                 gl_MODULES(error getopt etcetera)
67835                 gl_INIT
67836         you can import all you need by running:
67837                 ../gnulib/gnulib-tool --import
67838
67839         * modules/getopt (Files): Rename getopt.h to getopt_.h.
67840         (Makefile.am): Rewrite, use logic from argz.
67841         (Include): Use <getopt.h> instead of "getopt.h".
67842
67843 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
67844
67845         * modules/argp (Files): Add m4/unlocked-io.m4.
67846         (Depends-on): Add extensions.
67847
67848 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
67849
67850         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
67851         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
67852         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
67853         Check for program_invocation_name, program_invocation_short_name,
67854         flockfile, funlockfile, features.h, _getopt_long_only_r.
67855
67856 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
67857
67858         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
67859         its complicated substitute.
67860         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
67861         and program_invocation_name.
67862         (__argp_basename) [!_LIBC]: Remove; the only use was
67863         replaced by its body.
67864         (__argp_short_program_name): Change condition from
67865         !defined __argp_short_program_name to
67866         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
67867         to match argp-namefrob.h.
67868         (__argp_failure): Don't assume strerror_r returns char *.
67869         * lib/argp-parse.c (N_): Define unconditionally.
67870         (argp_default_options): Fill out initializers with 0 to avoid
67871         gcc warnings.
67872
67873 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
67874
67875         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
67876         getopt1.c.
67877
67878 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
67879
67880         Merge from coreutils.
67881
67882         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
67883
67884         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
67885         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
67886
67887 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
67888
67889         Merge from coreutils.
67890
67891         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
67892         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
67893         for Reliant Unix 5.43.
67894
67895         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
67896         (union fooround): Use uintmax_t, not long int.
67897         The rest is a merge from libc:
67898         [defined _LIBC]: Include <shlib-compat.h>.
67899         (_obstack) [defined _LIBC]: Remove after 2.3.4.
67900
67901         * lib/settime.c (settime): Recode to avoid warning with
67902         Sun Forte C 6U2.
67903
67904         * lib/strverscmp.c: Convert to UTF-8.
67905
67906 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
67907
67908         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
67909         m4/uintmax_t.m4.
67910
67911 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67912
67913         * modules/xalloc-die: New file.
67914         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
67915
67916         * modules/md5 (Files): Add m4/uint32_t.m4.
67917         * modules/sha1: Renamed from modules/sha.
67918         (Files):
67919         Rename lib/sha.h to lib/sha1.h.
67920         Rename lib/sha.c to lib/sha1.c.
67921         Rename m4/sha.m4 to m4/sha1.m4.
67922         (lib_SOURCES): Likewise.
67923         (configure.ac): Rename gl_SHA to gl_SHA1.
67924         (Include): sha.h -> sha1.h.
67925
67926 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67927
67928         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
67929         * m4/sha1.m4: Renamed from sha.m4.
67930         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
67931
67932 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67933
67934         * lib/obstack.h (obstack_empty_p):
67935         Don't assume that chunk->contents is suitably aligned.
67936         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
67937         Likewise. Problem reported by Benno in
67938         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
67939
67940         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
67941         readable.  This could be improved further but it'd take some work.
67942
67943 2004-08-08  Simon Josefsson  <jas@extundo.com>
67944
67945         * modules/xgethostname (Depends-on): Remove exit and error (not
67946         used).
67947
67948         * modules/getpass-gnu: Add getpass.h.
67949         (Depends-on): Add stdbool.
67950         * modules/getpass: Add getpass.h.
67951
67952 2004-08-08  Simon Josefsson  <jas@extundo.com>
67953
67954         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
67955         Check getpass declaration.
67956
67957 2004-08-08  Simon Josefsson  <jas@extundo.com>
67958
67959         * lib/xgethostname.c: Don't include error.h (not used).
67960
67961         * lib/getpass.h: Add.
67962         * lib/getpass.c: Include getpass.h first.
67963
67964 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
67965
67966         * lib/xalloc-die.c: New file.
67967         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
67968         All uses removed.
67969         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
67970         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
67971         xalloc-die.c.
67972         (_, N_, xalloc_die): Move to xalloc-die.c.
67973         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
67974         so that we needn't mess with xalloc_msg_memory_exhausted.
67975
67976         * lib/sha1.h: Renamed from sha.h.
67977         (SHA1_H): Renamed from _SHA_H.
67978         (sha1_ctx): Renamed from sha_ctx.
67979         (sha1_init_ctx): Renamed from sha_init_ctx.
67980         (sha1_process_block): Renamed from sha_process_block.
67981         (sha1_process_bytes): Renamed from sha_process_bytes.
67982         (sha1_finish_ctx): Renamed from sha_finish_ctx.
67983         (sha1_read_ctx): Renamed from sha_read_ctx.
67984         (sha1_stream): Renamed from sha_stream.
67985         (sha1_buffer): Renamed from sha_buffer.
67986         * lib/sha1.c: Likewise; renamed from sha.c.
67987         Do not include <sys/types.h>.
67988         Include <stddef.h> rather than <stdlib.h>.
67989
67990 2004-08-08  Bruno Haible  <bruno@clisp.org>
67991
67992         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
67993         FILESYSTEM_PREFIX_LEN.
67994         * lib/progreloc.c: Likewise.
67995         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
67996
67997 2004-08-06  Simon Josefsson  <jas@extundo.com>
67998
67999         * modules/progname (Depends-on): Don't depend on stdbool.
68000
68001 2004-08-06  Simon Josefsson  <jas@extundo.com>
68002
68003         * modules/getsubopt: New file.
68004         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68005         getsubopt.
68006
68007 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68008
68009         More merge from coreutils.
68010
68011         * m4/utimens.m4, m4/utimecmp.m4: New files.
68012         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
68013         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
68014         prereq.m4, sha.m4: Import changes from coreutils.
68015
68016 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68017
68018         More merge from coreutils.
68019         * modules/raise, modules/readtokens0, modules/utimens:
68020         * modules/utimecmp, module/xnanosleep: New files.
68021         * modules/strftime: Add lib/strftime.h.
68022         Change include from <time.h> to "strftime.h".
68023         * modules/yesno: Add lib/yesno.h.
68024         * modules/backupfile: Remove lib/addext.c.
68025         * modules/euidaccess: Add stat-macros.h.
68026         * modules/canonicalize, modules/euidaccess,
68027         modules/filemode, modules/lchown, modules/makepath,
68028         modules/rmdir, modules/stat: Likewise.
68029
68030 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68031
68032         Merge from tar.
68033         * lib/argp-help.c (make_hol, hol_append): Don't assume that
68034         SIZE_MAX is a valid preprocessor constant.
68035         (__argp_basename): Change from "#ifndef _LIBC"
68036         to "#ifndef __argp_short_program_name", so that
68037         we don't compile these functions for tar.
68038
68039         More merges from coreutils.
68040         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
68041         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
68042         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
68043         * lib/addext.c: Remove; no longer needed.
68044         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
68045         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
68046         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
68047         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
68048         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
68049         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
68050         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
68051         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
68052         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
68053         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
68054         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
68055         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
68056         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
68057         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
68058         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
68059         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
68060         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
68061         Import changes from coreutils.
68062
68063 2004-08-05  Simon Josefsson  <jas@extundo.com>
68064
68065         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
68066
68067 2004-08-05  Simon Josefsson  <jas@extundo.com>
68068
68069         * m4/getsubopt.m4: New file.
68070
68071 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68072
68073         Merge from coreutils.
68074
68075         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
68076         * m4/getcwd-path-max.m4: New files.
68077
68078         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
68079         FILESYSTEM_PREFIX_LEN ->
68080         FILE_SYSTEM_PREFIX_LEN.
68081         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
68082         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
68083         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
68084         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
68085
68086         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
68087         prerequisite modules now handle the DOS stuff.
68088         Don't check for unistd.h.
68089
68090 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68091
68092         Merge from coreutils.
68093
68094         * lib/.gdb-history: Remove; this doesn't belong here.
68095
68096         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
68097         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
68098         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
68099         * lib/getcwd.c: New files.
68100
68101         * lib/dirname.h: Include <stdbool.h>.
68102         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
68103         for consistency with POSIX terminology.  All uses changed.
68104         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
68105         (strip_trailing_slashes): Use bool for booleans.
68106         * lib/stripslash.c (strip_trailing_slashes): Likewise.
68107
68108         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
68109         sometimes returns a positive errno value even when it succeeds.
68110         (print_errno_message) [!LIBC]: Fall back on strerror if
68111         __strerror_r fails.
68112
68113         * lib/path-concat.c (mempcpy): Don't define if a system header defines
68114         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
68115         (longest_relative_suffix): New function.
68116         (path_concat): Use it.  Assume first argument is not NULL.
68117         Port to DOS.  Omit redundant separators.
68118         Report an error instead of returning NULL.
68119         Use mempcpy instead of memcpy.
68120         (xpath_concat): Remove: not declared or used.
68121
68122         * lib/same.h: Include <stdbool.h>
68123         (same_name): Return bool, not int.
68124         * lib/same.c (same_name): Likewise.
68125         (errno): Don't declare; we assume C89 or better now.
68126
68127         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
68128         if not already defined.
68129
68130         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
68131         * lib/dup-safer.c (errno): Likewise.
68132
68133 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68134
68135         Merge from coreutils.
68136         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
68137         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
68138         * modules/path-concat: Don't depend on strdup.
68139
68140 2004-08-03  Simon Josefsson  <jas@extundo.com>
68141
68142         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
68143         * lib/progname.h: Don't include stdbool.h.
68144
68145 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68146
68147         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
68148         * MODULES.html.sh (func_all_modules): Remove fatal.
68149
68150 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68151
68152         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
68153
68154 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68155
68156         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
68157         working.
68158
68159 2004-08-02  Simon Josefsson  <jas@extundo.com>
68160
68161         * lib/getsubopt.h: New file, with comments from Bruno Haible.
68162         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
68163         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
68164
68165 2004-08-01  Simon Josefsson  <jas@extundo.com>
68166
68167         * lib/xgetdomainname.c: Include stdlib.h, for free().
68168
68169 2004-07-19  Bruno Haible  <bruno@clisp.org>
68170
68171         * MODULES.html.sh (func_all_modules): Add dummy.
68172
68173 2004-07-16  Simon Josefsson  <jas@extundo.com>
68174
68175         * modules/dummy: New file.
68176
68177 2004-07-16  Simon Josefsson  <jas@extundo.com>
68178
68179         * lib/dummy.c: New file.
68180
68181 2004-07-16  Bruno Haible  <bruno@clisp.org>
68182
68183         * lib/backupfile.h: Add extern "C" for C++.
68184         * lib/closeout.h: Likewise.
68185         * lib/copy-file.h: Likewise.
68186         * lib/findprog.h: Likewise.
68187         * lib/full-write.h: Likewise.
68188         * lib/pathname.h: Likewise.
68189         * lib/progname.h: Likewise.
68190         * lib/stpcpy.h: Likewise.
68191         * lib/stpncpy.h: Likewise.
68192         * lib/strcase.h: Likewise.
68193         * lib/strstr.h: Likewise.
68194         * lib/xalloc.h: Likewise.
68195
68196         * lib/mbswidth.h: Add extern "C" for C++.
68197         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
68198
68199 2004-07-13  Robert Millan  <robertmh@gnu.org>
68200
68201         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
68202
68203 2004-07-09  Simon Josefsson  <jas@extundo.com>
68204
68205         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
68206         failed without this.)
68207
68208 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68209
68210         * modules/chown (Files): Add lib/fchown-stub.c, since
68211         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
68212
68213 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68214
68215         * lib/fchown-stub.c: New file.
68216
68217 2004-06-24  Jim Meyering  <jim@meyering.net>
68218
68219         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
68220
68221 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68222
68223         * modules/argz: Omit "#include".
68224
68225         * MODULES.html.sh (func_all_modules): Add calloc, to match
68226         2004-06-01 addition of calloc module.
68227
68228 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68229
68230         * m4/argz.m4: New file, which is autoupdated from libtool.
68231
68232 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68233
68234         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
68235         libtool.
68236
68237 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68238
68239         * config/srclist-update: Don't insist on "USA." before the
68240         close-comment, as libtool omits the period and puts the */ on a
68241         separate line.
68242         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
68243         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
68244
68245 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
68246
68247         * modules/argz: New file.
68248         * MODULES.html.sh (func_all_modules): Add argz.
68249
68250 2004-06-12  Jim Meyering  <jim@meyering.net>
68251         and  Paul Eggert  <eggert@cs.ucla.edu>
68252
68253         * modules/hash (Files): Add lib/xalloc.h.
68254         * modules/pipe (Depends-on): Add wait-process.
68255         * modules/stat (Depends-on): Add xalloc.
68256         * modules/userspec (Files): Add lib/userspec.h.
68257         * modules/xstrto
68258
68259         Upgrade from gettext-0.13.
68260         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
68261         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
68262         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
68263
68264 2004-06-10  Jim Meyering  <jim@meyering.net>
68265
68266         * lib/calloc.c: New file.
68267
68268 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
68269
68270         * lib/getdate.y (yylex): Allow space between sign and number.
68271         Problem reported by Dan Jacobson.
68272
68273 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
68274
68275         Merge from coreutils CVS.
68276
68277         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
68278         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
68279         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
68280         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
68281         xstrtol.m4: Fix copyright date and/or serial number.
68282
68283         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
68284         See if we need an fchown replacement.
68285         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
68286         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
68287         and use the replacement function if we detect either defect.
68288
68289         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
68290         gl_UTIMECMP.
68291
68292 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
68293         and  Jim Meyering  <jim@meyering.net>
68294
68295         Merge from coreutils CVS.
68296
68297         * lib/stat-macros.h: New file, with contents from file-type.h
68298         and coreutils' system.h.
68299         * lib/file-type.c: Include "stat-macros.h".
68300         * lib/file-type.h (file_type): Move all macro definitions to new file,
68301         stat-macros.h.
68302
68303         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
68304         Wrap old code with this conditional.
68305         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
68306         function that does not dereference symlinks.
68307         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
68308
68309         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
68310         dependency problems.
68311         (xreadlink): Accept new arg SIZE, for efficiency.
68312         All decls and uses changed.
68313         * lib/xreadlink.h: Include <stddef.h>, for size_t.
68314
68315         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
68316         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
68317
68318         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
68319         sysexits.h.
68320
68321 2004-06-01  Jim Meyering  <jim@meyering.net>
68322
68323         * m4/calloc.m4: New file.
68324
68325 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
68326
68327         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
68328         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
68329         Also, fix a typo in a diagnostic.
68330
68331 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
68332
68333         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
68334         or AC_FUNC_REALLOC.
68335
68336 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
68337
68338         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
68339         macros to be defined.
68340         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
68341         the allocator returns NULL because the requested size is zero.
68342
68343 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68344
68345         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
68346         var.  Add comment explaining why libc still defines it.  This
68347         merges the following patch from glibc:
68348         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
68349
68350 2004-05-20  Andreas Schwab  <schwab@suse.de>
68351
68352         * m4/free.m4: Replace free if it not known to work, not the other
68353         way round.
68354
68355 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68356
68357         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
68358         present in glibc since revision 1.1 of this file.
68359         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
68360         obstack_alignment_mask, obstack_alloc, obstack_base,
68361         obstack_blank, obstack_blank_fast, obstack_chunk_size,
68362         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
68363         obstack_grow0, obstack_init, obstack_int_grow,
68364         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
68365         obstack_next_free, obstack_object_size, obstack_ptr_grow,
68366         obstack_ptr_grow_fast, obstack_room): Remove declarations of
68367         nonexistent functions.
68368
68369 2004-05-18  Karl Berry  <karl@gnu.org>
68370
68371         * config/srclist.txt: break link for vasnprintf.c.
68372
68373 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68374
68375         Port obstack to the AS/400, where pointers are 16 bytes wide and
68376         you cannot cast an integer to a valid pointer.  This patch is
68377         currently waiting to be integrated into glibc; see
68378         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
68379
68380         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
68381         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
68382         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
68383         (struct obstack): temp member is now a union of a pointer and
68384         an integer, instead of an integer.  All integer uses changed.
68385         This does not affect the physical layout of struct obstack,
68386         except on hosts (like the AS/400) where the size or alignment of
68387         void * is greater than that of ptrdiff_t.
68388         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
68389         __STDC__)]: Store temporary in pointer member of union, not
68390         integer member.
68391         * lib/obstack.c: Include <stddef.h>, for offsetof.
68392         (struct fooalign): Remove; it doesn't need a name.
68393         (union fooround): Change double to long double, and add void *.
68394         (DEFAULT_ALIGNMENT): Use offsetof to compute.
68395         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
68396         not a macro.  Hence the values are always int; so remove all
68397         casts-to-int in uses.
68398
68399 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68400
68401         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
68402         we can get this patch merged into glibc.
68403
68404 2004-05-17  Derek R. Price  <derek@ximbiot.com>
68405             Paul Eggert  <eggert@cs.ucla.edu>
68406
68407         * m4/argp: Depend on alloca.
68408
68409 2004-05-17  Derek R. Price  <derek@ximbiot.com>
68410             Paul Eggert  <eggert@cs.ucla.edu>
68411
68412         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
68413         freecoding.
68414
68415 2004-05-17  Bruno Haible  <bruno@clisp.org>
68416
68417         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
68418         precision that consists of a '.' followed by an empty digit string.
68419         Patch by Tor Lillqvist <tml@iki.fi>.
68420
68421 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68422
68423         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
68424         for backward compatibility with older code.  We need our own
68425         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
68426         it under some other name, and our alloca.h will define it.
68427
68428 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68429             Derek Price  <derek@ximbiot.com>
68430
68431         * lib/alloca.c: Include <alloca.h>, to get our interface.
68432         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
68433         include <alloca.h> first.  Use C89 prototype for alloca; this
68434         requires including <stddef.h> for size_t.  Use extern "C" if C++.
68435         Use #elif for simplicity, since we can assume C89 now.
68436         Don't try to source the system alloca.h since it will not be found
68437         and to prevent recursively including its replacement.
68438         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
68439         * lib/regex.c: Likewise.
68440
68441 2004-05-16  Derek Price  <derek@ximbiot.com>
68442             Paul Eggert  <eggert@cs.ucla.edu>
68443
68444         getline cleanup.  This changes the getndelim2 API: both order of
68445         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
68446         no delimiter).
68447
68448         * lib/getline.c: Don't include stddef.h or stdio.h, since our
68449         interface does that.
68450         (getline): Always use getdelim, so that we don't have two
68451         copies of this code.
68452         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
68453         if available.
68454         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
68455         (GETNDELIM2_MAXIMUM): New macro.
68456         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
68457         instead of the old practice of delim2==0.  All callers changed.
68458         Return -1 on overflow, instead of returning junk.
68459         Do not set *linesize unless allocation succeeds.
68460         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
68461         that we include sys/types.h.
68462         * lib/getnline.h: Likewise.
68463         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
68464         (getndelim2): Reorder arguments.
68465         * lib/getnline.c (getnline, getndelim):
68466         Don't discard the NMAX argument.
68467         (getnline): Invoke getndelim, to avoid code duplication.
68468         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
68469         of (size_t) -1 by callers of the getnline family.
68470
68471 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68472
68473         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
68474         Check for gettimeofday.
68475         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
68476         Check for settimeofday, stime.
68477
68478 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68479
68480         * lib/nanosleep.c (suspended): Change its type from int to
68481         sig_atomic_t volatile.
68482         (first_call): Make it private to rpl_nanosleep, and have it
68483         be zero initially as that's a bit faster.
68484         (my_usleep): Round up fractional times instead of truncating them,
68485         as this is the usual meaning for 'sleep'.
68486
68487         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
68488         doesn't work.
68489         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
68490         (ENOSYS): Define if not defined.
68491         (settime): Fall back on stime if it exists and settimeofday fails.
68492         But don't bother with fallbacks if a method fails with errno == EPERM.
68493
68494 2004-05-11  Jim Meyering  <jim@meyering.net>
68495
68496         Prior to this change, the save_cwd caller required read access to the
68497         current directory on most systems (ones with the fchdir function).
68498
68499         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
68500         fails, try write-only, and finally, resort to using xgetcwd.
68501
68502 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
68503
68504         * lib/obstack.c, obstack.h: Import changes from libc.
68505
68506 2004-04-28  Bruno Haible  <bruno@clisp.org>
68507
68508         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
68509         also implicitly appends .exe to executables.
68510         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
68511         accepts Windows pathnames.
68512         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
68513         Treat Cygwin like Windows, since it now accepts Windows pathnames.
68514         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
68515         Treat Cygwin like Windows, since it now accepts Windows pathnames.
68516         Reported by Derek Robert Price <derek@ximbiot.com>.
68517
68518 2004-04-21  Karl Berry  <karl@gnu.org>
68519
68520         * config/srclist.txt (localcharset.c): break sync.
68521
68522 2004-04-20  Paul Eggert  <eggert@twinsun.com>
68523
68524         * m4/host-os.m4: Add a copyright notice.
68525
68526 2004-04-20  Jim Meyering  <jim@meyering.net>
68527
68528         Change UTILS_ to gl_ in AC_DEFINE'd names.
68529         Change utils_- and jm_-prefixed variables, too.
68530         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
68531         UTILS_FUNC_MKDIR_TRAILING_SLASH.
68532         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
68533
68534         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
68535         Don't emit trailing blanks.
68536         Also rename jm_-prefixed variables to have gl_ prefix.
68537
68538         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
68539         Also rename jm_-prefixed variables to have gl_ prefix.
68540
68541         * m4/jm-macros.m4: Reflect the renamings.
68542         * m4/prereq.m4: Likewise.
68543
68544 2004-04-20  Jim Meyering  <jim@meyering.net>
68545
68546         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
68547         memory.
68548
68549 2004-04-20  Jim Meyering  <jim@meyering.net>
68550             Bruno Haible  <bruno@clisp.org>
68551
68552         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
68553         memory when realloc fails.
68554
68555 2004-04-19  Jim Meyering  <jim@meyering.net>
68556
68557         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
68558         now that readutmp.c may call `free (0)'.
68559
68560 2004-04-19  Bruno Haible  <bruno@clisp.org>
68561
68562         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
68563         * m4/inttypes_h.m4: Likewise.
68564         * m4/stdint_h.m4: Likewise.
68565         * m4/intmax_t.m4: Likewise.
68566         * m4/uintmax_t.m4: Likewise.
68567
68568 2004-04-18  Jim Meyering  <jim@meyering.net>
68569
68570         * m4/prereq.m4: Don't forbid jm_ prefix.
68571
68572         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
68573         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
68574         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
68575         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
68576         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
68577         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
68578         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
68579         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
68580         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
68581         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
68582         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
68583         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
68584         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
68585         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
68586         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
68587         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
68588         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
68589         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
68590         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
68591
68592 2004-04-18  Jim Meyering  <jim@meyering.net>
68593
68594         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
68595         failure, don't leak memory and do call END_UTMP_ENT.
68596
68597 2004-04-16  Jim Meyering  <jim@meyering.net>
68598
68599         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
68600         coreutils' stat program.
68601         (gl_PREREQ): Don't require jm_PREREQ_STAT.
68602
68603 2004-04-11  Paul Eggert  <eggert@twinsun.com>
68604
68605         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
68606         C89.
68607         (CHAR_BIT): Remove, since we assume C89.
68608         Include <stdint.h> if available, as per current Autoconf CVS advice.
68609
68610 2004-03-31  Jim Meyering  <jim@meyering.net>
68611
68612         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
68613         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
68614         * m4/xalloc.m4: Likewise.
68615
68616 2004-03-30  Paul Eggert  <eggert@twinsun.com>
68617
68618         Merge from coreutils.
68619
68620         * m4/inttostr.m4: New file.
68621         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
68622         Require AM_STDBOOL_H and gl_TIMESPEC instead.
68623         Require gl_CLOCK_TIME.
68624         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
68625
68626 2004-03-30  Paul Eggert  <eggert@twinsun.com>
68627
68628         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
68629         not bool, to be more consistent with Unix conventions.
68630         Suggested by Bruno Haible.
68631
68632         Merge from coreutils.
68633
68634         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
68635         * lib/umaxtostr.c: New files.
68636
68637         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
68638         the usual <time.h> dance.
68639         (get_date): Change signature to support fractional time stamps.
68640         All callers changed.
68641         * lib/getdate.y: Include "getdate.h" first, as we can now
68642         assume C89 and don't need to worry about 'const'.
68643         Similarly, include "unlocked-io.h" near start, not in middle.
68644         Include <limits.h>.
68645         (textint.value): Use long int rather than int.
68646         (textint.digits): Use size_t rather than int.
68647         (BILLION, LOG10_BILLION): New constants.
68648         (parser_control): New member rel_ns.  Members day_ordinal,
68649         time_zone, month, day, hour, minutes, rel_year, rel_month,
68650         rel_day, rel_hour, rel_minutes, rel_seconds
68651         are now long int, not int.  Member seconds is now struct timespec,
68652         not int.  New member timespec_seen.  Members dates_seen, days_seen,
68653         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
68654         not int.
68655         (%union.intval): Now long int, not int.
68656         New member timespec.
68657         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
68658         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
68659         (spec): Now is a timespec or an item list.
68660         (timespec, items): New nonterminals.
68661         (time, rel, relunit, number, get_date):
68662         Add support for fractional seconds.
68663         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
68664         (gmtime, localtime, mktime): Remove decls; not needed with C89.
68665         (to_hour): First arg is now long int, not int.
68666         (to_year): Returns long int, not int.
68667         Don't treat year -70 like 70.
68668         (tm_diff): Returns long int, not int.
68669         (lookup_word): Use bool instead of int when appropriate.
68670         (yylex): Use size_t for count, not int.
68671         Detect overflow when parsing large integer constants.
68672         Add support for fractions.
68673         (get_date): Make pointers 'const' if possible.
68674         Use more-portable code to detect integer overflow.
68675         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
68676         Don't use ctime; it's not reliable if the year has >4 digits.
68677
68678         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
68679         This is for compatibility with BSD.
68680
68681         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
68682         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
68683         From coreutils' system.h.
68684
68685         * lib/userspec.c: Don't include "posixver.h".
68686         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
68687         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
68688         compatible extension.  Simplify code by removing a boolean int
68689         that was always nonzero if a string was nonnull.
68690
68691 2004-03-30  Jim Meyering  <jim@meyering.net>
68692
68693         Merge from coreutils.
68694
68695         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
68696         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
68697         on some systems one must include <grp.h> before it.
68698         Reported by Christian Krackowizer.
68699
68700 2004-03-30  Jim Meyering  <jim@meyering.net>
68701
68702         Merge from coreutils.
68703
68704         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
68705
68706         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
68707         an empty input stream.
68708
68709         * lib/readtokens.c: Include <stdbool.h>.
68710         (readtoken): Use `size_t' rather than int/long.
68711         All callers adjusted.
68712         Use `bool' rather than `int' where appropriate.
68713         Use memset rather than an explicit loop.
68714         Use x2nrealloc rather than xrealloc.
68715         Allow the use of `\0' as a delimiter.
68716         (readtokens): Likewise.
68717         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
68718
68719 2004-03-30  Jim Meyering  <jim@meyering.net>
68720
68721         * m4/realloc.m4: Remove file, since now it does no more than
68722         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
68723         the `configure.ac' section of module/realloc.
68724         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
68725
68726 2004-03-30  Bruno Haible  <bruno@clisp.org>
68727
68728         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
68729         nonnull.
68730
68731 2004-03-29  Paul Eggert  <eggert@twinsun.com>
68732
68733         Merge changes to getloadavg.c from coreutils and Emacs.
68734
68735         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
68736         Define to an expression, not to the empty string.
68737         Include cloexec.h and xalloc.h.
68738         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
68739         Use set_cloexec_flag rather than rolling our own.
68740         * lib/cloexec.c, lib/cloexec.h: New files.
68741
68742 2004-03-29  Paul Eggert  <eggert@twinsun.com>
68743
68744         * m4/cloexec.m4: New file.
68745
68746 2004-03-18  Paul Eggert  <eggert@twinsun.com>
68747
68748         * lib/getopt.h: Sync with libc CVS.
68749
68750 2004-03-18  Paul Eggert  <eggert@twinsun.com>
68751             Bruno Haible  <bruno@clisp.org>
68752
68753         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
68754         mbswidth.
68755
68756 2004-03-18  Paul Eggert  <eggert@twinsun.com>
68757             Bruno Haible  <bruno@clisp.org>
68758
68759         * lib/mbswidth.h: Include <wchar.h> only if
68760         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
68761         <wchar.h>.
68762         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
68763
68764 2004-03-09  Paul Eggert  <eggert@twinsun.com>
68765
68766         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
68767         Sync with libc CVS.
68768         * lib/getopt_int.h: New file, also synced from libc.
68769
68770 2004-03-09  Paul Eggert  <eggert@twinsun.com>
68771
68772         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
68773         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
68774         Bring back getopt.c, getopt.h, getopt1.c.
68775
68776 2004-03-07  Paul Eggert  <eggert@twinsun.com>
68777
68778         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
68779         All uses changed.  Check for sa_sigaction member; this fixes
68780         a bug first reported by Jason Andrade in
68781         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
68782
68783 2004-03-07  Paul Eggert  <eggert@twinsun.com>
68784
68785         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
68786         '#if' expressions.  Unlike the code it replaces, it does not
68787         depend on (defined _SC_PAGESIZE).  However, it does depend on
68788         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
68789         first reported by Jason Andrade in
68790         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
68791
68792 2004-02-25  Simon Josefsson  <jas@extundo.com>
68793
68794         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
68795
68796 2004-02-25  Simon Josefsson  <jas@extundo.com>
68797
68798         * lib/strdup.h: New file.
68799         * lib/strdup.c: Include it.
68800         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
68801         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
68802
68803 2004-02-23  Karl Berry  <karl@gnu.org>
68804
68805         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
68806         (from fencepost.gnu.org:/gd/gnuorg).
68807
68808 2004-02-23  Karl Berry  <karl@gnu.org>
68809
68810         * config/srclistvars.sh (GNUORG) [karl]: redefine.
68811         * config/srclist.txt: add maintain/standards documents.
68812
68813 2004-02-18  Bruno Haible  <bruno@clisp.org>
68814
68815         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
68816         Reported by Derek Robert Price <derek@ximbiot.com>.
68817
68818 2004-02-16  Karl Berry  <karl@gnu.org>
68819
68820         * config/mkinstalldirs, install-sh: update from automake.
68821
68822 2004-02-06  Karl Berry  <karl@gnu.org>
68823
68824         * m4/po.m4: update from gettext 0.14.1.
68825
68826 2004-02-06  Karl Berry  <karl@gnu.org>
68827
68828         * lib/config.charset: update from gettext 0.14.1.
68829
68830 2004-02-05  Paul Eggert  <eggert@twinsun.com>
68831
68832         Add comments and code, prompted by suggestions from Bruno Haible
68833         for sh-quote.
68834         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
68835         describing the enum quoting_style values.
68836         * lib/quotearg.c (quotearg_alloc): New function.
68837         (quotearg_buffer_restyled): Treat lone { and } as special.
68838         Treat = as special.  Work around bug with older shells
68839         that "see" a '\' that is really the 2nd byte of a multibyte char.
68840         Quote empty string with shell_quoting_style.
68841
68842 2004-02-03  Bruno Haible  <bruno@clisp.org>
68843
68844         * m4/pipe.m4: New file, from GNU gettext.
68845
68846 2004-02-03  Bruno Haible  <bruno@clisp.org>
68847
68848         * lib/pipe.h: New file, from GNU gettext.
68849         * lib/pipe.c: New file, from GNU gettext.
68850
68851 2004-01-27  Bruno Haible  <bruno@clisp.org>
68852
68853         * m4/execute.m4: New file, from GNU gettext.
68854
68855 2004-01-27  Bruno Haible  <bruno@clisp.org>
68856
68857         * lib/execute.h: New file, from GNU gettext.
68858         * lib/execute.c: New file, from GNU gettext.
68859         * lib/w32spawn.h: New file, from GNU gettext.
68860
68861 2004-01-24  Paul Eggert  <eggert@twinsun.com>
68862
68863         Merge from diffutils.
68864
68865         * lib/file-type.c (file_type): Add typed memory objects.
68866         * lib/file-type.h (S_TYPEISTMO): New macro.
68867
68868         * lib/c-stack.h (c_stack_action): Remove argv argument.
68869         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
68870         (die): Don't calculate message unless segv_action returns.
68871         (get_stack_location, min_address_from_argv, max_address_from_argv,
68872         volatile stack_base, volatile_stack_size): Remove.
68873         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
68874         that every segmentation violation is a stack overflow.  (Ouch!)
68875         See Debian bug 136249 (still outstanding) for more info about why
68876         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
68877
68878 2004-01-24  Paul Eggert  <eggert@twinsun.com>
68879
68880         Exit-status fix from coreutils.
68881
68882         Use exit_failure consistently in place of EXIT_FAILURE,
68883         so that program exit statuses are consistent on failure.
68884
68885         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
68886         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
68887         * lib/argmatch.h: Comment fix to match the above.
68888         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
68889         Now a macro referring to exit_failure, instead of a separate
68890         variable.  Include "exitfail.h" to get it.
68891         * lib/xstrtol.h: Include "exitfail.h".
68892         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
68893
68894         * lib/long-options.c (parse_long_options): Use prototype
68895         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
68896         for clarity.
68897
68898 2004-01-21  Jim Meyering  <jim@meyering.net>
68899
68900         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
68901         so as not to conflict with a different-sized __mktime_internal
68902         function in GNU libc.
68903         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
68904         Problem building statically-linked `ls' reported by Michael Brunnbauer.
68905
68906 2004-01-20  Karl Berry  <karl@gnu.org>
68907
68908         * config/config.guess: update from config.
68909
68910         * config/srclistvars.sh: GNUWWWLICENSES for karl.
68911
68912 2004-01-20  Bruno Haible  <bruno@clisp.org>
68913
68914         Safer stack allocation.
68915         * lib/setenv.c: Include allocsa.h.
68916         (alloca): Remove fallback definition.
68917         (freea): Remove macro.
68918         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
68919         instead of freea.
68920
68921 2004-01-20  Bruno Haible  <bruno@clisp.org>
68922
68923         * m4/eealloc.m4: New file, from GNU gettext.
68924
68925 2004-01-20  Bruno Haible  <bruno@clisp.org>
68926
68927         * m4/allocsa.m4: New file, from GNU gettext.
68928
68929 2004-01-20  Bruno Haible  <bruno@clisp.org>
68930
68931         * lib/xallocsa.h: New file, from GNU gettext.
68932         * lib/xallocsa.c: New file, from GNU gettext.
68933
68934 2004-01-20  Bruno Haible  <bruno@clisp.org>
68935
68936         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
68937
68938 2004-01-20  Bruno Haible  <bruno@clisp.org>
68939
68940         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
68941         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
68942         specially.
68943
68944 2004-01-20  Bruno Haible  <bruno@clisp.org>
68945
68946         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
68947         patch.
68948
68949 2004-01-20  Bruno Haible  <bruno@clisp.org>
68950
68951         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
68952
68953 2004-01-20  Bruno Haible  <bruno@clisp.org>
68954
68955         * lib/eealloc.h: New file.
68956
68957 2004-01-20  Bruno Haible  <bruno@clisp.org>
68958
68959         * lib/binary-io.h: Avoid warnings on Cygwin.
68960
68961 2004-01-20  Bruno Haible  <bruno@clisp.org>
68962
68963         * lib/allocsa.h: New file, from GNU gettext.
68964         * lib/allocsa.c: New file, from GNU gettext.
68965
68966 2004-01-18  Karl Berry  <karl@gnu.org>
68967
68968         * doc/gpl.texi, doc/lgpl.texi: new files.
68969
68970 2004-01-18  Karl Berry  <karl@gnu.org>
68971
68972         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
68973         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
68974
68975 2004-01-15  Paul Eggert  <eggert@twinsun.com>
68976
68977         Merge from coreutils.
68978
68979         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
68980         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
68981         (gl_DEFAULT_POSIX2_VERSION): Move
68982         the documentation from 'configure' into 'config.hin',
68983         so that 'configure --help' isn't burdened by it and
68984         we don't have to worry about its formatting there.
68985         Reword the documentation so that it's more succinct
68986         and can be run together into a single paragraph.
68987         * m4/same.m4 (gl_SAME): Check for pathconf.
68988
68989 2004-01-15  Paul Eggert  <eggert@twinsun.com>
68990
68991         Merge from coreutils.
68992
68993         * lib/posixver.c: Include posixver.h.
68994
68995         * lib/same.c: Include <stdbool.h>, <limits.h>.
68996         (_POSIX_NAME_MAX): Define if not defined.
68997         (MIN): New macro.
68998         (same_name): If file names are silently truncated, report
68999         that the file names are the same if they are the same after
69000         the silent truncation.
69001
69002         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
69003         conversion function.
69004         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
69005         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
69006         longer needed.
69007
69008 2004-01-15  Jim Meyering  <jim@meyering.net>
69009
69010         Merge from coreutils.
69011
69012         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
69013         if no library is required.
69014         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
69015         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
69016         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
69017         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
69018         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
69019         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
69020         value, $ac_cv_search_crypt, if it's "none required".
69021         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
69022         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
69023         not gl_FUNC_GETLOADAVG.
69024         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
69025         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
69026
69027 2004-01-15  Jim Meyering  <jim@meyering.net>
69028
69029         Merge from coreutils.
69030
69031         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
69032         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
69033         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
69034
69035         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
69036         optional configure-time default.
69037
69038         * lib/version-etc.c (version_etc_copyright): Update copyright date.
69039
69040         * lib/xreadlink.c (xreadlink): Correct outdated comment.
69041
69042 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
69043
69044         Merge from coreutils.
69045
69046         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
69047         value, $ac_cv_search_nanosleep, if it's "none required".
69048
69049 2004-01-14  Paul Eggert  <eggert@twinsun.com>
69050
69051         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
69052         with like-named macro in fnmatch.c.
69053         (EXT): Use an internal constant instead.
69054
69055         Merge fnmatch patches from glibc.
69056         * lib/fnmatch.c (mbsinit): Remove define.
69057         Add libc_hidden_ver (__fnmatch, fnmatch).
69058         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
69059         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
69060
69061 2004-01-14  Karl Berry  <karl@gnu.org>
69062
69063         * config/install-sh: update from automake.
69064
69065 2004-01-13  Karl Berry  <karl@gnu.org>
69066
69067         * config/install-sh: update from automake.
69068
69069 2004-01-09  Karl Berry  <karl@gnu.org>
69070
69071         * config/install-sh: update from automake.
69072
69073 2004-01-05  Karl Berry  <karl@gnu.org>
69074
69075         * config/config.{sub,guess}: update from config.
69076
69077 2003-12-31  Karl Berry  <karl@gnu.org>
69078
69079         * config/depcomp: update from automake.
69080
69081 2003-12-14  Karl Berry  <karl@gnu.org>
69082
69083         * lib/config.charset: update from gettext-runtime.
69084
69085 2003-12-03  Paul Eggert  <eggert@twinsun.com>
69086
69087         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
69088         Bug reported by Alfred M. Szmidt.
69089
69090 2003-12-03  Bruno Haible  <bruno@clisp.org>
69091
69092         * m4/gettext.m4: Upgrade from gettext-0.13.
69093         * m4/po.m4: Upgrade from gettext-0.13.
69094         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
69095         * m4/intmax.m4: New file, from gettext-0.13.
69096         * m4/printf-posix.m4: New file, from gettext-0.13.
69097
69098 2003-11-29  Karl Berry  <karl@gnu.org>
69099
69100         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
69101
69102 2003-11-25  Paul Eggert  <eggert@twinsun.com>
69103             Bruno Haible  <bruno@clisp.org>
69104
69105         * lib/printf-parse.h: Don't include sys/types.h.
69106         (ARG_NONE): New macro.
69107         (char_directive): Change type of *arg_index fields to size_t.
69108         * lib/printf-parse.c: Don't include sys/types.h.
69109         (SSIZE_MAX): Remove macro.
69110         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
69111         Remove unnecessary overflow check.
69112         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
69113         fields.
69114
69115 2003-11-25  Bruno Haible  <bruno@clisp.org>
69116
69117         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
69118
69119 2003-11-25  Bruno Haible  <bruno@clisp.org>
69120
69121         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
69122         gt_TYPE_SSIZE_T.
69123
69124 2003-11-24  Paul Eggert  <eggert@twinsun.com>
69125
69126         * modules/alloca: Remove dependency on xalloc.
69127
69128 2003-11-24  Paul Eggert  <eggert@twinsun.com>
69129
69130         * lib/alloca.c: Remove dependency on xalloc module.
69131         (xalloc_die): Remove.
69132         (memory_full) [!defined emacs]: New macro.
69133         [!defined emacs]: Don't include xalloc.h.
69134         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
69135         address arithmetic overflows.  Change datatypes a bit to avoid
69136         unnecessary casts.
69137
69138 2003-11-22  Jim Meyering  <jim@meyering.net>
69139
69140         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
69141         s/size/size_t/.
69142
69143 2003-11-21  Karl Berry  <karl@gnu.org>
69144
69145         * config/config.{sub,guess}: update from config.
69146
69147 2003-11-18  Karl Berry  <karl@gnu.org>
69148
69149         * config/config.{sub,guess}: update from config.
69150
69151         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
69152
69153 2003-11-17  Paul Eggert  <eggert@twinsun.com>
69154
69155         * README: Mention that S+T cannot overflow if S is the size of
69156         an existing object and T is sufficiently small.
69157
69158 2003-11-17  Jim Meyering  <jim@meyering.net>
69159
69160         On systems without utime and without a utimes function capable of
69161         dealing with a NULL struct utimbuf* argument, this utime replacement
69162         could -- in unusual circumstances -- leak a file descriptor.
69163         * lib/utime.c: Include <unistd.h> and <errno.h>.
69164         (utime_null): Be sure to close `fd' and to preserve errno.
69165         Reported by Geoff Collyer via Arnold Robbins.
69166
69167 2003-11-17  Bruno Haible  <bruno@clisp.org>
69168
69169         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
69170         (Depends-on): Add xsize.
69171
69172 2003-11-17  Bruno Haible  <bruno@clisp.org>
69173
69174         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
69175
69176 2003-11-17  Bruno Haible  <bruno@clisp.org>
69177
69178         * lib/vasnprintf.c (alloca): Remove fallback definition.
69179         (freea): Remove definition.
69180         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
69181         Reported by Paul Eggert.
69182
69183 2003-11-16  Paul Eggert  <eggert@twinsun.com>
69184             Bruno Haible  <bruno@clisp.org>
69185
69186         Protect against address arithmetic overflow.
69187         * lib/printf-args.h: Include stddef.h.
69188         (arguments): Change type of field 'count' to size_t.
69189         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
69190         'unsigned int' where appropriate.
69191         * lib/printf-parse.h: Include sys/types.h.
69192         (char_directive): Change type of *arg_index fields to ssize_t.
69193         (char_directives): Change type of fields 'count', max_*_length to
69194         size_t.
69195         * lib/printf-parse.c: Include sys/types.h and xsize.h.
69196         (SSIZE_MAX): Define fallback value.
69197         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
69198         instead of 'int' where appropriate. Check a_allocated, d_allocated
69199         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
69200         * lib/vasnprintf.c: Include xsize.h.
69201         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
69202         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
69203         overflow. Avoid wraparound when converting a width or precision from
69204         decimal to binary.
69205
69206 2003-11-16  Bruno Haible  <bruno@clisp.org>
69207
69208         Update from GNU gettext.
69209         * lib/printf-parse.c: Generalize to it can be compiled for wide
69210         strings.
69211         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
69212         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
69213         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
69214         SNPRINTF): New macros.
69215         Don't include <alloca.h> if the file is used inside libintl.
69216         (local_wcslen): New function, for Solaris 2.5.1.
69217         (VASNPRINTF): Use it instead of wcslen.
69218
69219 2003-11-16  Bruno Haible  <bruno@clisp.org>
69220
69221         * lib/xsize.h (xmax): New function.
69222         (xsum, xsum3, xsum4): Declare as "pure" functions.
69223
69224 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69225
69226         * modules/xalloc (Files): Undo latest change, since xalloc.h
69227         no longer needs SIZE_MAX or PTRDIFF_MAX.
69228
69229 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69230
69231         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
69232         gl_PTRDIFF_MAX.
69233
69234 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69235
69236         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
69237         "return", to pacify some unknown compiler.  Problem reported
69238         by Joerg Schilling.
69239
69240 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69241
69242         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
69243         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
69244         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
69245         heuristic is just as accurate as far as we know, and it removes a
69246         dependency on size_max.m4 and ptrdiff_max.m4.
69247
69248 2003-11-11  Bruno Haible  <bruno@clisp.org>
69249
69250         * modules/xsize (Files): Add m4/size_max.m4.
69251         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
69252
69253 2003-11-11  Bruno Haible  <bruno@clisp.org>
69254
69255         * m4/size_max.m4: New file.
69256         * m4/ptrdiff_max.m4: New file.
69257         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
69258         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
69259         (gl_XALLOC): Invoke it.
69260
69261 2003-11-11  Bruno Haible  <bruno@clisp.org>
69262
69263         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
69264         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
69265         defined.
69266
69267 2003-11-10  Paul Eggert  <eggert@twinsun.com>
69268
69269         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
69270         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
69271         rejected some allocations of exactly SIZE_MAX - 2 bytes.
69272         From Bruno Haible.
69273         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
69274         not (size_t) -1, since it's defined here.
69275
69276 2003-11-09  Karl Berry  <karl@gnu.org>
69277
69278         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
69279
69280 2003-11-06  Paul Eggert  <eggert@twinsun.com>
69281
69282         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
69283         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
69284         Reject sizes of exactly SIZE_MAX bytes.
69285         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
69286         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
69287
69288 2003-11-05  Bruno Haible  <bruno@clisp.org>
69289
69290         * lib/xsize.h: Include limits.h, to avoid a possible collision with
69291         SIZE_MAX defined in <limits.h> on Solaris.
69292
69293 2003-11-04  Jim Meyering  <jim@meyering.net>
69294
69295         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
69296         variable names, rather than @VAR@.
69297         * modules/poll: Likewise.
69298
69299 2003-11-04  Bruno Haible  <bruno@clisp.org>
69300
69301         * modules/xsize: New file.
69302         * modules/linebreak: Depend on xsize.
69303         * MODULES.html.sh (func_all_modules): Add xsize.
69304
69305 2003-11-04  Bruno Haible  <bruno@clisp.org>
69306
69307         * m4/xsize.m4: New file.
69308
69309 2003-11-04  Bruno Haible  <bruno@clisp.org>
69310
69311         * lib/xsize.h: New file.
69312         * lib/linebreak.c: Include xsize.h.
69313         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
69314         argument for overflow.
69315         Suggested by Paul Eggert.
69316
69317 2003-11-03  Karl Berry  <karl@gnu.org>
69318
69319         * config/config.{guess,sub}: update from config.
69320
69321 2003-11-03  Jim Meyering  <jim@meyering.net>
69322
69323         * modules/userspec (lib_SOURCES): Add userspec.h.
69324         (Include): Add "userspec.h".
69325         Improve description.
69326
69327 2003-11-03  Jim Meyering  <jim@meyering.net>
69328
69329         * lib/userspec.c: Include "userspec.h".
69330         * lib/userspec.h: New file.
69331
69332 2003-11-03  Bruno Haible  <bruno@clisp.org>
69333
69334         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
69335
69336 2003-11-03  Bruno Haible  <bruno@clisp.org>
69337
69338         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
69339         available, to avoid (extremely rare) race condition.
69340         Suggested by Paul Eggert.
69341
69342 2003-11-02  Karl Berry  <karl@gnu.org>
69343
69344         * config/srclist.txt (vasprintf.c): sync broken, sigh.
69345
69346 2003-10-31  Paul Eggert  <eggert@twinsun.com>
69347
69348         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
69349         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
69350         (read_filesystem_list): Set and use me_type_malloced.
69351         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
69352         whatever the type happens to be), for brevity and consistency.
69353         Check for size calculation overflow on Alphas running OSF/1.
69354
69355 2003-10-31  Jim Meyering  <jim@meyering.net>
69356
69357         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
69358
69359         * lib/linebuffer.c: Include <string.h> for declaration of memset.
69360
69361 2003-10-30  Paul Eggert  <eggert@twinsun.com>
69362             Bruno Haible  <bruno@clisp.org>
69363
69364         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
69365         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
69366
69367 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69368
69369         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
69370         netbsd*-gnu*.  Suggested by Robert Millan.
69371
69372 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69373
69374         * modules/group-member: Depend on stdbool.
69375
69376 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69377
69378         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
69379
69380 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69381
69382         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
69383         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
69384         after the 'gnu' in these cases.  This fixes some bugs in the
69385         previous change, and is based on suggestions by Robert Millan.
69386
69387 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69388
69389         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
69390         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
69391         no longer needed.
69392         * lib/quotearg.c (quotearg_n_options): Use it.
69393         * lib/group-member.c: Include <stdbool.h>.
69394         (free_group_info): Arg is now const *; don't free arg.
69395         (get_group_info): Now returns bool and accepts struct group_info *,
69396         rather than returning a malloc'ed struct group_info *.
69397         All uses changed.  Check for overflow in internal size calculation.
69398
69399         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
69400         rather than xmalloc/xrealloc.
69401         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
69402         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
69403         conformance bug: the old code used a pointer after freeing the
69404         storage that it addressed.
69405         * lib/hash.c (hash_initialize): Simplify the code by using
69406         xalloc_oversized rather than doing it by hand.
69407         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
69408         the buffer preserved.  Use free and xmalloc instead.
69409         * lib/quotearg.c (quotearg_n_options): Likewise.
69410         Use a simpler test for size overflow.  Don't use xalloc_oversized
69411         because unsigned int might be wider than size_t (!); this suggests
69412         that we should switch from unsigned int to size_t for slot numbers.
69413
69414 2003-10-28  Paul Eggert  <eggert@twinsun.com>
69415
69416         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
69417         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
69418         NetBSD kernels.  Requested by Richard Stallman.
69419
69420 2003-10-27  Paul Eggert  <eggert@twinsun.com>
69421
69422         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
69423         to allocate the returned structure.  Do not allocate a subarray,
69424         as x2nrealloc will do that.
69425         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
69426         instead of xnrealloc.
69427         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
69428
69429 2003-10-27  Bruno Haible  <bruno@clisp.org>
69430
69431         * lib/stdbool_.h: Better support for BeOS.
69432
69433 2003-10-26  Paul Eggert  <eggert@twinsun.com>
69434
69435         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
69436         now uses inline.
69437
69438 2003-10-26  Paul Eggert  <eggert@twinsun.com>
69439
69440         * lib/xalloc.h (xalloc_oversized): New static inline function, for
69441         callers that want to do their own size-overflow checking.  Include
69442         <stdbool.h>, since xalloc_oversized returns bool.
69443         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
69444         to use xalloc_oversized.
69445
69446         Add two functions x2realloc, x2nrealloc, for programs that grow
69447         arrays dynamically by doubling their sizes.
69448         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
69449         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
69450         New functions.
69451
69452         Port to C99 semantics for 'inline' of external functions.
69453         Bug reported by Bruno Haible.
69454         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
69455         with the old contents of xnmalloc.
69456         (xnmalloc, xmalloc): Use it.
69457         (xnrealloc_inline): New static inline function,
69458         with the old contents of xnrealloc.
69459         (xnrealloc, xrealloc): Use it.
69460
69461         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
69462         that.
69463
69464 2003-10-26  Karl Berry  <karl@gnu.org>
69465
69466         * config/srclist.txt (COPYING.DOC): no longer available from
69467         /gd/gnuorg; don't know where the ultimate source is.
69468
69469 2003-10-25  Paul Eggert  <eggert@twinsun.com>
69470
69471         Fix several address-calculation bugs in the hash modules,
69472         plus some minor code cleanup.
69473
69474         * lib/hash.h: Include <stdbool.h>, for bool.
69475         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
69476         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
69477         hash_get_n_entries, hash_get_max_bucket_length,
69478         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
69479         hash_rehash): Use size_t rather than unsigned.
69480         * lib/hash.c (struct hash_table, hash_get_n_buckets,
69481         hash_get_n_buckets_used, hash_get_n_entries,
69482         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
69483         hash_get_entries, hash_do_for_each, hash_string, is_prime,
69484         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
69485         Likewise.
69486         (SIZE_MAX): Define if not defined.
69487         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
69488         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
69489         hash_print):
69490         Use const * when possible.
69491         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
69492         (check_tuning): Fix bug: if tuning parameters were very close to
69493         0 or 1, rounding errors could have caused subscript violations.
69494         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
69495         (hash_initialize): Add 'fail:' label
69496         to free table and return NULL, and use it to simplify code.
69497         Use calloc rather than clearing the storage ourself.
69498         (hash_initialize, hash_rehash): Check for arithmetic overflow in
69499         buffer size calculations.
69500         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
69501         Include <stddef.h>, for size_t.
69502         * lib/hash-pjw.c (hash_pjw): Likewise.
69503         Switch to method described by Bruno Haible.
69504         Include <limits.h>, for CHAR_BIT.
69505         (SIZE_BITS): New macro.
69506
69507 2003-10-23  Paul Eggert  <eggert@twinsun.com>
69508
69509         * m4/getline.m4 (AM_FUNC_GETLINE):
69510         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
69511         hosts.  Problem reported by Derek Robert Price in
69512         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
69513         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
69514         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
69515
69516 2003-10-21  Paul Eggert  <eggert@twinsun.com>
69517
69518         * lib/getndelim2.c (getndelim2): When size calculation overflows,
69519         ceiling the allocation at NMAX bytes rather than silently
69520         discarding input bytes before NMAX is reached.  This makes
69521         a difference only if NMAX exceeds SIZE_MAX / 2.
69522
69523         * lib/obstack.c: Merge from glibc.
69524         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
69525         Add libc_hidden_def (_obstack_newchunk).
69526         (_obstack_free) [! defined _LIBC]: Remove.
69527         [defined _LIBC]: Make a strong alias from obstack_free, rather than
69528         a clone of the function body.
69529         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
69530         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
69531
69532         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
69533         glibc.
69534         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
69535         arg to memcpy.
69536
69537         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
69538         (obstack_ptr_grow_fast, obstack_int_grow_fast):
69539         Don't use lvalue casts, as GCC plans to remove support for them
69540         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
69541         was also present in the non-GCC version, indicating that this
69542         code had always been buggy and had never been widely used.
69543         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
69544         Use the fast variant of each macro, rather than copying the
69545         definiens of the fast variant; that way, we'll be more likely to
69546         catch future bugs in the fast variants.
69547
69548 2003-10-20  Bruno Haible  <bruno@clisp.org>
69549
69550         * modules/wait-process: New file.
69551         * MODULES.html.sh (func_all_modules): Add wait-process.
69552
69553 2003-10-20  Bruno Haible  <bruno@clisp.org>
69554
69555         * m4/wait-process.m4: New file.
69556
69557 2003-10-20  Bruno Haible  <bruno@clisp.org>
69558
69559         * lib/wait-process.h: New file, from GNU gettext.
69560         * lib/wait-process.c: New file, from GNU gettext.
69561
69562 2003-10-19  Jim Meyering  <jim@meyering.net>
69563
69564         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
69565         HPUX 10.20.
69566
69567 2003-10-18  Karl Berry  <karl@gnu.org>
69568
69569         * config/config.guess: update from config.
69570
69571 2003-10-16  Paul Eggert  <eggert@twinsun.com>
69572
69573         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
69574         (getgroups): First arg is int, not size_t.
69575         Don't let 'free' mangle errno.
69576
69577 2003-10-16  Paul Eggert  <eggert@twinsun.com>
69578
69579         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
69580
69581 2003-10-16  Karl Berry  <karl@gnu.org>
69582
69583         * config/config.{guess,sub}: update from config.
69584
69585 2003-10-16  Jim Meyering  <jim@meyering.net>
69586
69587         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
69588         memcpy.
69589
69590 2003-10-15  Paul Eggert  <eggert@twinsun.com>
69591
69592         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
69593         (SIZE_MAX): Remove.
69594         (new_exclude, add_exclude_file): Initial size no longer needs to
69595         be a power of 2.
69596         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
69597         our own address arithmetic overflow checking.
69598
69599         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
69600         (fnmatch): Do not alloca more than 2000 wide characters;
69601         instead, use malloc for large buffers.
69602         Check for address arithmetic overflow, and return -1
69603         with errno set to ENOMEM in that case.
69604         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
69605         (NEW_PATTERN): Do not alloca more than 8000 bytes;
69606         instead, return -1.  Check for address arithmetic overflow.
69607
69608 2003-10-14  Paul Eggert  <eggert@twinsun.com>
69609
69610         Handle invalid suffixes and overflow independently, so that
69611         callers can treat them independently as needed.  Fix some bugs in
69612         suffix handling, e.g., "100k@" was not diagnosed as an invalid
69613         suffix for a human-readable blocksize.  The major caller-visible
69614         change is the addition of a new
69615         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
69616         that both overflow and suffix chars were found.
69617
69618         * lib/human.c (humblock): Don't check separately for invalid suffix
69619         char; that is xstrtoumax's job (now that its bug is fixed).
69620         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
69621         INTMAX_MAX]: New macros.
69622         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
69623         TYPE_MAXIMUM): New macros.
69624         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
69625         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
69626         if overflow occurs, as it's what __strtol does and it's more useful
69627         in practice.
69628         (__xstrtol): If __strtol reports some error other than ERANGE,
69629         reflect it to the caller as LONGINT_INVALID.  If it reports
69630         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
69631         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
69632         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
69633         value.
69634         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
69635         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
69636         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
69637         [defined UINTMAX_MAX]: New macros.
69638
69639 2003-10-14  Bruno Haible  <bruno@clisp.org>
69640
69641         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
69642
69643 2003-10-14  Bruno Haible  <bruno@clisp.org>
69644
69645         * m4/sig_atomic_t: New file, from GNU gettext.
69646         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
69647
69648 2003-10-14  Bruno Haible  <bruno@clisp.org>
69649
69650         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
69651         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
69652         Also use volatile where needed.
69653
69654 2003-10-12  Paul Eggert  <eggert@twinsun.com>
69655
69656         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
69657         Change maintainer from Bruno Haible to 'all'.
69658
69659 2003-10-12  Paul Eggert  <eggert@twinsun.com>
69660
69661         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
69662
69663 2003-10-12  Paul Eggert  <eggert@twinsun.com>
69664
69665         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
69666         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
69667         and define in terms of the other primitives.
69668         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
69669         (SIZE_MAX): Define if not already defined.
69670         (array_size_overflow): New function.
69671         (xalloc_die): Abort instead of exiting if 'error' returns.
69672         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
69673         (xmalloc, xrealloc): Use them.
69674         (xcalloc): Check for address arithmetic overflow.
69675         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
69676         a bit faster than strcpy.
69677
69678 2003-10-10  Simon Josefsson  <jas@extundo.com>
69679
69680         * modules/argp (Depends-on): Add restrict and strcase.
69681
69682 2003-10-10  Simon Josefsson  <jas@extundo.com>
69683
69684         * m4/argp.m4: Add AC_C_INLINE.
69685
69686 2003-10-08  Paul Eggert  <eggert@twinsun.com>
69687
69688         Merge getpass from libc, plus a few fixes.
69689
69690         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
69691         Include <stdbool.h>.
69692         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
69693         __fsetlocking to empty.
69694         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
69695         do include <bits/libc-lock.h>.
69696         Do not include <fcntl.h>; not needed.
69697         [_LIBC]: Include <wchar.h>.
69698         (NOTCANCEL_MODE): New macro.
69699         (flockfile, funlockfile) [_LIBC]: New macros.
69700         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
69701         [!_LIBC]: New macros.
69702         (call_fclose): New function.
69703         (getpass): Use it.  Save tty stream separately; this simplifies the
69704         code and makes it more reliable if stdin happens to equal stdout.
69705         Invoke __fsetlocking on tty.
69706         Handle thread cancellation if needed.
69707         Namespace cleanup (use __tcgetattr, __getline).
69708         Use bool for Booleans.
69709         [USE_IN_LIBIO]: Handle wide streams.
69710         [!_LIBC]: Unconditionally do the fseek, since we don't know what
69711         stream might go where.
69712
69713         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
69714         doesn't have to include <stdio.h> before us.
69715         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
69716         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
69717         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
69718         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
69719         if not declared, so that we can use getpass.c code from libc without
69720         rewriting it.
69721         (flockfile, ftrylockfile, funlockfile): New macros.
69722
69723 2003-10-08  Paul Eggert  <eggert@twinsun.com>
69724
69725         * modules/getpass: Depend on stdbool.
69726
69727 2003-10-08  Paul Eggert  <eggert@twinsun.com>
69728
69729         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
69730
69731 2003-10-07  Karl Berry  <karl@gnu.org>
69732
69733         * config/config.{guess,sub}: update from config.
69734
69735 2003-10-06  Jim Meyering  <jim@meyering.net>
69736             Bruno Haible  <bruno@clisp.org>
69737
69738         This lets translators provide better translations for the
69739         "Written by ..." part of --version output.
69740         * lib/version-etc.h: Include stdarg.h.
69741         (version_etc_copyright): Declare as readonly.
69742         (version_etc): Make this function variadic with a NULL-terminated list
69743         of author name strings.
69744         (version_etc_va): New declaration.
69745         * lib/version-etc.c: Include stdarg.h, stdlib.h.
69746         (version_etc_copyright): Declare as readonly.
69747         (version_etc_va): New function. Provide a different translatable string
69748         for each possible number of authors < 10. Abbreviate when there are 10
69749         authors or more.
69750         (version_etc): Make this function variadic. Call version_etc_va.
69751         Suggestion from Gary V. Vaughan.
69752
69753         * lib/long-options.h (parse_long_options): Change prototype: the
69754         authors string is moved to the end and becomes variadic.
69755         * lib/long-options.c: Include stdarg.h.
69756         (parse_long_options): Make this function variadic, too.
69757         Call version_etc_va, not version_etc.
69758
69759 2003-10-06  Bruno Haible  <bruno@clisp.org>
69760
69761         * modules/version-etc-2: Remove file.
69762         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
69763
69764 2003-10-06  Bruno Haible  <bruno@clisp.org>
69765
69766         * modules/fatal-signal: New file.
69767         * MODULES.html.sh (func_all_modules): Add fatal-signal.
69768
69769 2003-10-06  Bruno Haible  <bruno@clisp.org>
69770
69771         * m4/fatal-signal.m4: New file.
69772         * m4/signalblocking.m4: New file, from GNU gettext.
69773
69774 2003-10-06  Bruno Haible  <bruno@clisp.org>
69775
69776         * lib/version-etc-2.h: Remove file.
69777         * lib/version-etc-2.c: Remove file.
69778
69779 2003-10-06  Bruno Haible  <bruno@clisp.org>
69780
69781         * lib/fatal-signal.h: New file, from GNU gettext.
69782         * lib/fatal-signal.c: New file, from GNU gettext.
69783
69784 2003-10-05  Paul Eggert  <eggert@twinsun.com>
69785
69786         * README: Rework advice for preventing empty .o files.
69787         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
69788         not <sys/types.h>.
69789
69790 2003-10-04  Karl Berry  <karl@gnu.org>
69791
69792         * lib/argp*: update from libc.
69793
69794 2003-10-04  Karl Berry  <karl@gnu.org>
69795
69796         * config/config.{guess,sub}: update from config.
69797
69798 2003-10-02  Bruno Haible  <bruno@clisp.org>
69799
69800         * modules/lchown (Include): Add lchown.h.
69801         * modules/time_r (Include): Use "..." syntax.
69802         * modules/xgetdomainname (Include): Add xgetdomainname.h.
69803
69804 2003-10-01  Simon Josefsson  <jas@extundo.com>
69805
69806         * MODULES.html.sh (func_all_modules): Move gethostname from section
69807         'based on' to section 'lacking' POSIX:2001.
69808
69809 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
69810
69811         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
69812         to output mode on the same stream.
69813
69814 2003-09-29  Paul Eggert  <eggert@twinsun.com>
69815
69816         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
69817         Fix arg typo in previous patch.
69818
69819 2003-09-28  Jim Meyering  <jim@meyering.net>
69820
69821         * lib/error.c: Correct cpp indentation.
69822
69823 2003-09-27  Paul Eggert  <eggert@twinsun.com>
69824
69825         * modules/free: New file.
69826
69827 2003-09-27  Paul Eggert  <eggert@twinsun.com>
69828
69829         * m4/free.m4: New file.
69830
69831 2003-09-27  Paul Eggert  <eggert@twinsun.com>
69832
69833         * lib/minmax.h (MIN, MAX)
69834         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
69835         Omit the special code that used __typeof__, since we worry that
69836         it could be more trouble than it's worth.  See:
69837         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
69838         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
69839
69840         * lib/free.c: New file.
69841
69842 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
69843
69844         Trivial fixes to Makefile.am parts of module listings.
69845         * modules/strstr: Append strstr.h to lib_SOURCES.
69846         * modules/strcase: Likewise, for strcase.h.
69847
69848 2003-09-27  Karl Berry  <karl@gnu.org>
69849
69850         * config/mkinstalldirs: update from automake.
69851
69852 2003-09-26  Paul Eggert  <eggert@twinsun.com>
69853
69854         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
69855         (error_tail): Do not loop, reallocating temporary buffer, since
69856         the output cannot contain more wide characters than the input
69857         contains bytes, the size must be big enough already.  This avoids
69858         one potential size overflow calculation.  Check for size overflow
69859         when calculating temporary buffer size.  Free temporary buffer
69860         when done, if it was allocated with malloc; this plugs a memory
69861         leak.  Remove casts from void * to pointers, that are no longer
69862         needed now that we're assuming C89 or better.
69863
69864         Merge error changes from glibc.
69865
69866         * lib/error.c, error.h: Update copyright notice header to match glibc.
69867         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
69868         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
69869         Disable cancellation while printing error.
69870         * lib/error.h: Prepend __ to parameter names.
69871
69872 2003-09-26  Jim Meyering  <jim@meyering.net>
69873
69874         * lib/error.c (error_tail): Move some declarations
69875         into inner scope where the local variables are used.
69876
69877 2003-09-26  Bruno Haible  <bruno@clisp.org>
69878
69879         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
69880         stpncpy().
69881         Don't define stpncpy through config.h; it's now done through stpncpy.h.
69882
69883 2003-09-26  Bruno Haible  <bruno@clisp.org>
69884
69885         * lib/stpncpy.h (gnu_stpncpy): New declaration.
69886         (stpncpy): Define as alias for gnu_stpncpy.
69887         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
69888
69889 2003-09-25  Simon Josefsson  <jas@extundo.com>
69890
69891         * lib/xgetdomainname.h: New file.
69892         * lib/xgetdomainname.c: New file.
69893
69894 2003-09-25  Simon Josefsson  <jas@extundo.com>
69895             Bruno Haible  <bruno@clisp.org>
69896
69897         * modules/getdomainname: New file.
69898         * modules/xgetdomainname: New file.
69899         * MODULES.html.sh (func_all_modules): Add getdomainname,
69900         xgetdomainname.
69901
69902 2003-09-25  Simon Josefsson  <jas@extundo.com>
69903             Bruno Haible  <bruno@clisp.org>
69904
69905         * m4/getdomainname.m4: New file.
69906
69907 2003-09-25  Simon Josefsson  <jas@extundo.com>
69908             Bruno Haible  <bruno@clisp.org>
69909
69910         * lib/getdomainname.h: New file.
69911         * lib/getdomainname.c: New file.
69912
69913 2003-09-25  Karl Berry  <karl@gnu.org>
69914
69915         * lib/argp-fmtstream.c, argp-help.c: update from libc.
69916
69917 2003-09-25  Karl Berry  <karl@gnu.org>
69918
69919         * config/install-sh: update from automake.
69920
69921 2003-09-25  Bruno Haible  <bruno@clisp.org>
69922
69923         * modules/version-etc-2: New file, from modules/version-etc with
69924         modifications.
69925         * MODULES.html.sh (func_all_modules): Add version-etc-2.
69926
69927 2003-09-25  Bruno Haible  <bruno@clisp.org>
69928
69929         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
69930         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
69931
69932 2003-09-24  Simon Josefsson  <jas@extundo.com>
69933
69934         * modules/xgethostname: Add xgethostname.h.
69935
69936 2003-09-24  Paul Eggert  <eggert@twinsun.com>
69937
69938         * lib/linebuffer.c (freebuffer): Don't free the argument, just
69939         the buffer associated with the argument.  Bug reported by
69940         Simon Josefsson.
69941
69942 2003-09-24  Paul Eggert  <eggert@twinsun.com>
69943
69944         * README: Document assumptions that 'int' is at least 32 bits
69945         wide, that integer arithmetic is 2's complement without overflow,
69946         that there are no holes in integer values, that adding sizes of
69947         two nonoverlapping objects can't overflow, and that all-bits-zero
69948         yields scalar zero.  Fix spelling and capitalization typos.
69949
69950 2003-09-19  Karl Berry  <karl@gnu.org>
69951
69952         * lib/argp.h: update from libc.
69953
69954 2003-09-17  Paul Eggert  <eggert@twinsun.com>
69955
69956         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
69957         to avoid spurious warnings like "AC_RUN_IFELSE was called before
69958         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
69959
69960 2003-09-17  Paul Eggert  <eggert@twinsun.com>
69961
69962         * gnulib-tool: Use "test -h", not "test -L", for portability
69963         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
69964         (tags_regexp): Remove, since \| doesn't conform to POSIX.
69965         (sed_extract_prog): Issue s commands one-by-one, rather than
69966         using \| in one s command.
69967
69968 2003-09-16  Paul Eggert  <eggert@twinsun.com>
69969
69970         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
69971         input error, instead of returning NULL the next time we are called
69972         (and therefore losing track of errno).
69973
69974 2003-09-16  Bruno Haible  <bruno@clisp.org>
69975
69976         * gnulib-tool (func_create_testdir): Warn about duplicated
69977         dependencies.
69978
69979 2003-09-15  Paul Eggert  <eggert@twinsun.com>
69980
69981         * modules/argmatch, modules/fatal, modules/obstack,
69982         modules/xalloc, modules/xgethostname: Sort dependencies by
69983         importance, not alphabetically.
69984
69985 2003-09-15  Paul Eggert  <eggert@twinsun.com>
69986
69987         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
69988         fails, so that the caller gets the proper errno.
69989
69990         * lib/readutmp.c (read_utmp): Likewise.
69991         Check for fstat error.  Close stream and free storage
69992         when failing.
69993
69994 2003-09-14  Karl Berry  <karl@gnu.org>
69995
69996         * config/srclist.txt (strdup.c): disable for c89 changes.
69997
69998 2003-09-14  Jim Meyering  <jim@meyering.net>
69999
70000         * lib/getloadavg.c: Correct cpp indentation.
70001         * lib/strdup.c: Likewise.
70002         * lib/vasnprintf.c: Likewise.
70003
70004 2003-09-14  Bruno Haible  <bruno@clisp.org>
70005
70006         * modules/fwriteerror: New file.
70007         * MODULES.html.sh (func_all_modules): Add fwriteerror.
70008
70009 2003-09-14  Bruno Haible  <bruno@clisp.org>
70010
70011         * lib/fwriteerror.h: New file.
70012         * lib/fwriteerror.c: New file.
70013
70014 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70015
70016         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
70017         modules/xgethostname, modules/xalloc: Depend on exit.
70018
70019 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70020
70021         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
70022
70023         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
70024         and AC_MINIX, too, so that their extensions are available.
70025
70026         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
70027         This macro has been superseded by gl_BACKUPFILE.
70028
70029         More patches to assume C89 or better.
70030
70031         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
70032
70033         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
70034         unconditionally.
70035         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
70036         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
70037         Include <string.h>, <stdlib.h> unconditionally.
70038         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
70039         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
70040         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
70041         headers or for string.h.
70042         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
70043         or strtoul.
70044
70045         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
70046         headers.
70047         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
70048         * m4/userspec.m4 (gl_USERSPEC): Likewise.
70049         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
70050         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
70051         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70052         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
70053         memcpy, memset.
70054         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
70055         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
70056         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
70057         strtol.
70058         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
70059         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
70060         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
70061         strtoul.
70062
70063 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70064
70065         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
70066         * lib/obstack.c [!defined _LIBC]: Likewise.
70067         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
70068         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
70069         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
70070
70071         More changes to assume C89 or better.
70072
70073         * lib/error.c (error_tail): Assume vprintf.
70074
70075         * lib/argmatch.c (getenv): Remove decl.
70076         * lib/progreloc.c (get_full_program_name): Define via prototype.
70077         * lib/setenv.c (clearenv): Likewise.
70078         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
70079         needed.
70080         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
70081         (malloc, memcpy): Remove decls.
70082         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
70083         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
70084         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
70085         (memcpy): Remove macro.
70086         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
70087         (__P): Remove.  All uses removed.
70088         (PTR): Remove.  All uses changed to void *.
70089         (CHAR_BIT, NULL): Remove.
70090         (spaces, zeros, memset_space, memset_zero)
70091         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
70092         Remove.
70093         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
70094         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
70095         Define with prototype.
70096         Remove now-unnecessary prototype decl.
70097         (extra_args_spec): Assume ANSI C.  All uses changed.
70098         (extra_args_spec_iso): Remove.
70099         (my_strftime, emacs_strftimeu): Define via prototype.
70100         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
70101         unconditionally.
70102         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
70103         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
70104         (strtoul, strtol): Remove decls.
70105         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
70106         LONG_MAX): Remove.
70107         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
70108         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
70109         (LOCALE_PARAM_PROTO): New macro.
70110         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
70111         (INTERNAL (strtol), strtol): Define with a prototype.
70112         (PARAMS): Remove.  All uses removed.
70113         * lib/tempname.c: Include <string.h> unconditionally.
70114         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
70115         * lib/xgethostname.c (main): Define with a prototype.
70116         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
70117         Include <stdlib.h> unconditionally.
70118         (calloc, malloc, realloc, free): Remove decls.
70119         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
70120         Include <stdlib.h> unconditionally.  Sort include file names.
70121         (strtod): Remove.
70122         (xstrtod): Define with a prototype.
70123         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
70124         (strtol, strtoul): Remove decls.
70125
70126 2003-09-11  Paul Eggert  <eggert@twinsun.com>
70127
70128         More patches to assume C89 or better.
70129         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
70130         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
70131         string.h, memchr, STDC_HEADERS.
70132
70133 2003-09-11  Paul Eggert  <eggert@twinsun.com>
70134
70135         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
70136         Include <stdlib.h>, <string.h> unconditionally.
70137         Remove now-unnecessary cast to char *.
70138         * lib/strnlen.c: Include <string.h> unconditionally.
70139         * lib/yesno.c (yesno): Define with a prototype.
70140
70141 2003-09-11  Bruno Haible  <bruno@clisp.org>
70142
70143         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
70144
70145 2003-09-10  Jim Meyering  <jim@meyering.net>
70146
70147         * lib/error.c: Correct indentation of cpp directives.
70148
70149 2003-09-10  Bruno Haible  <bruno@clisp.org>
70150
70151         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
70152         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
70153         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
70154         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
70155         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
70156         <stdlib.h> and <string.h> checks.
70157         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
70158         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
70159
70160 2003-09-10  Bruno Haible  <bruno@clisp.org>
70161
70162         * lib/strcspn.c: Include <string.h> unconditionally.
70163         * lib/strpbrk.c: Include <string.h> unconditionally.
70164         * lib/strstr.c: Include <string.h> unconditionally.
70165         * lib/unicodeio.c: Include <string.h> unconditionally.
70166         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
70167         * lib/unsetenv.c: Likewise.
70168         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
70169         * lib/yesno.c: Include <stdlib.h> unconditionally.
70170         (rpmatch): Add prototype.
70171
70172 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70173
70174         More patches to assume C89 or better.
70175         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
70176         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
70177         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
70178         or for string.h.
70179         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
70180         stdlib.h.
70181         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
70182         C headers.
70183         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
70184         string.h.
70185         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
70186         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
70187         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
70188         or for string.h.
70189         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
70190         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
70191         C headers.
70192         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
70193         memcpy.
70194         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
70195         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
70196         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
70197         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
70198         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
70199         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
70200         string.h, free.
70201         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
70202         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
70203         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
70204         C headers, or for string.h.
70205         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
70206         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
70207         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
70208         headers, memory.h, stdlib.h, string.h, strings.h.
70209         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
70210         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
70211         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
70212         strchr.
70213         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
70214         headers, memory.h, string.h.
70215         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
70216         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
70217         free.
70218         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
70219         headers.
70220         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
70221         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
70222         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
70223         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
70224         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
70225
70226 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70227
70228         More K&R removal.
70229
70230         * lib/acosl.c (main): Use a prototype.
70231         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
70232         tanl.c: Likewise.
70233
70234         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
70235
70236         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
70237         (getopt, etopt_long, getopt_long_only, _getopt_internal)
70238         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
70239         with a prototype.
70240         * lib/getopt.c (const): Remove macro.
70241         Include <string.h> unconditionally.
70242         (my_index): Remove; all uses changed to strchr.
70243         (strlen): Remove decl.
70244         (exchange): Remove forward decl; no longer needed.
70245         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
70246         Define with prototype.
70247         * lib/getopt1.c (const): Remove macro.
70248         (getopt_long, getopt_long_only, main): Define with prototype.
70249
70250         * lib/getugroups.c: Include <string.h> unconditionally.
70251
70252         * lib/getusershell.c: Include <stdlib.h> unconditionally.
70253         (getusershell, setusershell, endusershell, readname, main):
70254         Define with prototypes.
70255
70256         * lib/group-member.c: Include group-member.h first.
70257         Include <stdlib.h> unconditionally.
70258
70259         * lib/hard-locale.c: Include hard-locale.h first.
70260         Include <stdlib.h>, <string.h> unconditionally.
70261
70262         * lib/hash.c (free, malloc): Remove decls.
70263         Include <stdlib.h> unconditionally.
70264
70265         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
70266         (getenv): Do not declare.
70267
70268         * lib/idcache.c: Include <string.h> unconditionally.
70269
70270         * lib/long-options.c: Include long-options.h first, to test interface.
70271         Include <stdlib.h> unconditionally.
70272
70273         * lib/makepath.c: Include makepath.h first, to test interface.
70274         Include <stdlib.h> and <string.h> unconditionally.
70275
70276         * lib/linebuffer.c: Include <stdlib.h>.
70277         (free): Remove decl.
70278
70279         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
70280         stddef.h. rpl_malloc returns void *, not char *.
70281         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
70282         prototype.
70283
70284         * lib/md5.h: Include <limits.h> unconditionally.
70285         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
70286         (__P): Remove; all uses removed.
70287         * lib/md5.c: Include "md5.h" first.
70288         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
70289         md5_buffer, md5_process_bytes, md5_process_block):
70290         Define with prototypes.
70291         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
70292         * lib/sha.c: Include "sha.h" first.
70293         Include <stdlib.h>, <string.h> unconditionally.
70294
70295         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
70296         * lib/memcmp.c (__ptr_t): Likewise.
70297         * lib/memrchr.c (__ptr_t): Likewise.
70298         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
70299         Include <string.h> unconditionally.
70300         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
70301         * lib/memchr.c: Include <stdlib.h> unconditionally.
70302         * lib/memchr.c (LONG_MAX): Remove.
70303         * lib/memrchr.c (LONG_MAX): Likewise.
70304         * lib/memchr.c (__memchr): Define via a prototype.
70305         * lib/memrchr.c (__memrchr): Likewise.
70306         * lib/memcmp.c (__P): Remove, and remove all uses.
70307         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
70308         Remove forward decls; no longer needed.
70309         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
70310         Use types required by C89 in prototype.
70311
70312         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
70313         * lib/savedir.c: Likewise.
70314         * lib/mkdir.c (free): Remove decl.
70315         * lib/rmdir.c (rmdir): Define with a prototype.
70316         * lib/savedir.c: Include savedir.h first, to test interface.
70317
70318         * lib/mktime.c (STDC_HEADERS): Remove.
70319         Include <stdlib.h>, <string.h> unconditionally.
70320
70321         * lib/modechange.c: Include <stdlib.h> unconditionally.
70322         (malloc): Remove decl.
70323
70324         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
70325         (free): Remove decl.
70326
70327         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
70328         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
70329         (This type really should be intptr_t, but that's a C99ism.)
70330         (_obstack_memcpy): Remove: all uses changed to memcpy.
70331         Include <string.h> unconditionally.
70332         (struct obstack): Assume __STDC__ for types of members
70333         chunkfun, freefun, extra_arg.
70334         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
70335         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
70336         obstack_begin, obstack_specify_allocation,
70337         obstack_specify_allocation_with_arg, obstack_chunkfun,
70338         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
70339         Remove unprototyped decls and the macros that use them.
70340         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
70341         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
70342         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
70343         (defined __STDC__ && __STDC__)]:
70344         Remove nonprototyped code.
70345         Include <stdlib.h> unconditionally.
70346         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
70347         _obstack_allocated_p, _obstack_free, obstack_free,
70348         _obstack_memory_used, print_and_abort):
70349         Define using prototypes.
70350         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
70351         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
70352         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
70353         obstack_next_free, obstack_object_size, obstack_room) [0]:
70354         Remove unused, unprototyped code.
70355
70356         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
70357
70358         * lib/physmem.c (physmem_total, physmem_available, main): Define
70359         with prototypes.
70360
70361         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
70362         (main): Define with a prototype.
70363
70364         * lib/posixver.c (getenv): Remove decl.
70365
70366         * lib/putenv.c (malloc): Returns void *, not char *.
70367         Include <string.h> unconditionally.
70368         (strchr, memcpy, NULL): Do not define.
70369
70370         * lib/readtokens.c: Include readtokens.h first, to test interface.
70371         Include <stdlib.h>, <string.h> unconditionally.
70372         (init_tokenbuffer): Define with a prototype.
70373
70374         * lib/regex.c (PARAMS): Remove.  All uses removed.
70375         All uses of _RE_ARGS removed, too.
70376         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
70377         unconditionally.
70378         (bzero): Assume memset exists.
70379         (memcmp, memcpy, NULL): Remove.
70380         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
70381         char, or assignments to local vars of type signed char.
70382         (init_syntax_once, PREFIX(extract_number_and_incr),
70383         PREFIX(print_partial_compiled_pattern),
70384         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
70385         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
70386         PREFIX(regex_grow_registers), PREFIX(regex_compile),
70387         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
70388         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
70389         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
70390         wcs_compile_range, byte_compile_range, truncate_wchar,
70391         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
70392         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
70393         count_mbs_length, wcs_re_match_2_internal,
70394         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
70395         PREFIX(alt_match_null_string_p),
70396         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
70397         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
70398         regfree, PREFIX(extract_number)): Define with prototype.  Remove
70399         now-unnecessary declaration, if any.
70400         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
70401         regcomp, regexec):
70402         Remove now-unnecessary casts among pointer types.
70403         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
70404
70405         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
70406         (free): Remove decl.
70407
70408         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
70409
70410         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
70411         (free): Remove decl.
70412
70413         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
70414         * lib/xgetcwd.c: Likewise.
70415
70416         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
70417         (free): Remove decl.
70418
70419         * lib/strchrnul.c (strchrnul): Define with a prototype.
70420         Fix bug: c_in was not converted to char before searching.
70421
70422         The following changes are not K&R related:
70423
70424         * lib/group-member.h: Include <sys/types.h>, so that this file is
70425         self-contained.
70426         * lib/makepath.h: Likewise.
70427
70428         * lib/getusershell.c (readname, default_index, line_size, readname):
70429         Use size_t, not int, for sizes.
70430         (readname): If the size overflows, report an error instead of
70431         looping forever.
70432
70433 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70434
70435         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
70436         libc.
70437
70438 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70439
70440         * README: New section: portability guidelines.
70441
70442 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
70443
70444         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
70445         C89 spec.
70446
70447 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
70448
70449         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
70450
70451 2003-09-08  Paul Eggert  <eggert@twinsun.com>
70452
70453         Assume C89 or better; remove K&R cruft.
70454         A few of these changes were first proposed by Derek Robert Price
70455         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
70456
70457         * lib/addext.c: Include <string.h> unconditionally.
70458         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
70459         Don't declare getenv or malloc.
70460
70461         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
70462         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
70463         (NULL): Remove.
70464         (find_stack_direction, alloca): Use prototypes.
70465
70466         * lib/atexit.c (atexit): Define using a prototype.
70467
70468         * lib/basename.c, dirname.c, stripslash.c:
70469         Include <string.h> unconditionally.
70470
70471         * lib/bcopy.c: Include <stddef.h>.
70472         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
70473
70474         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
70475
70476         * lib/error.h (error, error_at_line, error_print_progname)
70477         [! (defined (__STDC__) && __STDC__)]: Remove decls.
70478         * lib/error.c: Include error.h first, to check interface.
70479         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
70480         (VA_START): Remove; all uses changeed to va_start.
70481         (exit, strerror): Remove decls.
70482         (error_print_progname): Prototype uncondionally.
70483         Don't include <errno.h>; no longer needed.
70484         (private_strerror): Remove.
70485         (error_tail): Always define.
70486         (error, error_at_line): Assume C89 or better; always use prototypes.
70487         * lib/fatal.c: Include "fatal.h" first, to test interface.
70488         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
70489         (VA_START): Remove; all uses changed to va_start.
70490         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
70491         this case.
70492         (exit): Remove decl.
70493         (fatal): Prototype unconditionally.  Assume va_start works.
70494         Abort at end, to pacify gcc.
70495
70496         * lib/euidaccess.c (main): Define with a prototype.
70497
70498         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
70499
70500         * lib/exitfail.c: Include <stdlib.h> unconditionally.
70501
70502         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
70503         prototypes.
70504         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
70505         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
70506         (getenv): Remove decl.
70507         (fnmatch): Define using a prototype.
70508         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
70509         (FCT): Define using a prototype.
70510
70511         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
70512
70513         * lib/gethostname.c: Include <stddef.h>.
70514         (gethostname): Define with prototype.  Length is size_t, not int.
70515
70516 2003-09-08  Paul Eggert  <eggert@twinsun.com>
70517
70518         Assume C89 or better; remove K&R cruft.
70519         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
70520         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
70521         string.h, getenv, malloc.
70522         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
70523         headers.
70524         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
70525         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
70526         do not check for strerror.
70527         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
70528         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
70529         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
70530         do not check for doprnt or vprintf.
70531         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
70532         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
70533
70534 2003-09-08  Paul Eggert  <eggert@twinsun.com>
70535
70536         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
70537         getversion.c should have been removed then, but was accidentally
70538         preserved.
70539
70540         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
70541         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
70542
70543 2003-09-08  Karl Berry  <karl@gnu.org>
70544
70545         * config/config.sub, config.guess, srclistvars.sh: update from savannah
70546                 config, forget about prep.
70547
70548         * config/depcomp, missing: update from automake.
70549
70550 2003-09-07  Paul Eggert  <eggert@twinsun.com>
70551
70552         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
70553         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
70554
70555 2003-09-07  Paul Eggert  <eggert@twinsun.com>
70556
70557         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
70558         copy_tm_result.  Bug reported by Simon Josefsson in
70559         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
70560
70561 2003-09-06  Paul Eggert  <eggert@twinsun.com>
70562
70563         * m4/time_r.m4: New file.
70564         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
70565         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
70566         is. Check for timegm declaration.
70567         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
70568         Do not check for gmtime_r.
70569         Replace mktime if __mktime_internal does not exist and if mktime
70570         hasn't been replaced already.
70571
70572 2003-09-06  Paul Eggert  <eggert@twinsun.com>
70573
70574         * lib/time_r.c, lib/time_r.h: New files.
70575
70576         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
70577         __localtime_r.
70578         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
70579         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
70580
70581         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
70582         __gmtime_r.
70583         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
70584         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
70585         Include <time_r.h>.
70586
70587         * lib/timegm.c: Switch to glibc implementation, with the following
70588         changes:
70589         [defined HAVE_CONFIG_H]: Include <config.h>.
70590         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
70591         (__mktime_internal) [!defined _LIBC]: New decl.
70592         (__gmtime_r) [!defined _LIBC]: New macro and function.
70593         (timegm): Use a prototype, since gnulib assumes C89.
70594         Do not bother declaring tmp to be const, as it's not really usefu.
70595         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
70596         (timegm): Declare only if HAVE_DECL_TIMEGM.
70597
70598 2003-09-06  Paul Eggert  <eggert@twinsun.com>
70599
70600         * MODULES.html.sh (func_all_modules): Add time_r.
70601         * modules/time_r: New file.
70602         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
70603         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
70604
70605 2003-09-03  Paul Eggert  <eggert@twinsun.com>
70606
70607         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
70608         Bug reported by Lute Kamstra in
70609         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
70610
70611         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
70612         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
70613         course with correspondingly smaller numbers for tomorrow and
70614         yesterday.  From Tadayoshi Funaba.  Originally installed into
70615         sh-utils on 1999-08-07, but the patch got lost (I guess during the
70616         coreutils merge?).
70617
70618 2003-08-31  Simon Josefsson  <jas@extundo.com>
70619
70620         * modules/timegm: New file.
70621         * MODULES.html.sh (func_all_modules): Add timegm.
70622
70623 2003-08-31  Simon Josefsson  <jas@extundo.com>
70624
70625         * m4/timegm.m4: New file.
70626
70627 2003-08-31  Simon Josefsson  <jas@extundo.com>
70628
70629         * lib/timegm.h: New file.
70630         * lib/timegm.c: New file.  Based on
70631         wget-1.8.2/src/http.c:mktime_from_utc.
70632
70633 2003-08-31  Karl Berry  <karl@gnu.org>
70634
70635         * lib/argp.h: update from libc.
70636
70637 2003-08-28  Bruno Haible  <bruno@clisp.org>
70638
70639         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
70640         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
70641         followed by '#define fnmatch fnmatch_posix' gives an error.
70642
70643 2003-08-28  Bruno Haible  <bruno@clisp.org>
70644
70645         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
70646         warning on QNX, which defines O_BINARY to 000000.
70647
70648 2003-08-27  Jim Meyering  <jim@meyering.net>
70649
70650         * m4/mkstemp.m4: Require that the system mkstemp be able to create
70651         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
70652         would fail after 32.  Reported by Danny Levinson.  Details here:
70653         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
70654
70655 2003-08-24  Bruno Haible  <bruno@clisp.org>
70656
70657         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
70658         MSVC7 <stdio.h> is included later.
70659
70660 2003-08-22  Simon Josefsson  <jas@extundo.com>
70661
70662         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
70663
70664 2003-08-20  Karl Berry  <karl@gnu.org>
70665
70666         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
70667
70668 2003-08-20  Bruno Haible  <bruno@clisp.org>
70669
70670         * modules/progname: New file.
70671         * MODULES.html.sh (func_all_modules): Add progname.
70672
70673 2003-08-20  Bruno Haible  <bruno@clisp.org>
70674
70675         * lib/progname.h: New file, from GNU gettext.
70676         * lib/progname.c: New file, from GNU gettext.
70677         * lib/progreloc.c: New file, from GNU gettext.
70678
70679 2003-08-19  Jim Meyering  <jim@meyering.net>
70680
70681         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
70682         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
70683
70684 2003-08-19  Bruno Haible  <bruno@clisp.org>
70685
70686         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
70687         more.
70688
70689 2003-08-19  Bruno Haible  <bruno@clisp.org>
70690
70691         * lib/xstrdup.c: Assume <string.h> exists.
70692
70693 2003-08-18  Paul Eggert  <eggert@twinsun.com>
70694
70695         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
70696         in makefile rules.
70697
70698 2003-08-18  Jim Meyering  <jim@meyering.net>
70699
70700         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
70701         * m4/lib-ld.m4: Likewise.
70702
70703 2003-08-18  Jim Meyering  <jim@meyering.net>
70704
70705         * lib/setenv.h: Indent nested cpp directive.
70706         * lib/vasnprintf.c: Remove trailing blanks.
70707
70708 2003-08-17  Simon Josefsson  <jas@extundo.com>
70709
70710         * modules/xstrndup: New file.
70711         * MODULES.html.sh (func_all_modules): Add xstrndup.
70712
70713 2003-08-17  Simon Josefsson  <jas@extundo.com>
70714
70715         * modules/argp: Fix autoconf macro name. Add more dependencies.
70716
70717 2003-08-17  Simon Josefsson  <jas@extundo.com>
70718
70719         * m4/xstrndup.m4: New file.
70720
70721 2003-08-17  Simon Josefsson  <jas@extundo.com>
70722
70723         * m4/argp.m4: New file.
70724
70725 2003-08-17  Simon Josefsson  <jas@extundo.com>
70726             Bruno Haible  <bruno@clisp.org>
70727
70728         * lib/xstrndup.h: New file.
70729         * lib/xstrndup.c: New file.
70730
70731 2003-08-17  Bruno Haible  <bruno@clisp.org>
70732
70733         * modules/strndup (Files, Include): Add lib/strndup.h.
70734
70735 2003-08-17  Bruno Haible  <bruno@clisp.org>
70736
70737         * modules/euidaccess (Files): Add lib/euidaccess.h.
70738
70739 2003-08-17  Bruno Haible  <bruno@clisp.org>
70740
70741         * lib/strndup.h: New file.
70742
70743 2003-08-17  Bruno Haible  <bruno@clisp.org>
70744
70745         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
70746         like AC_GNU_SOURCE.
70747         * modules/extensions (configure.ac): Comment out the invocation of
70748         gl_USE_SYSTEM_EXTENSIONS.
70749
70750 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70751
70752         Merges from coreutils, etc.
70753         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
70754         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
70755         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
70756         fixing a typo.
70757         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
70758         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
70759
70760 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70761
70762         Document merge from coreutils.
70763         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
70764         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
70765         * modules/utime: Add m4/utimes-null.m4.
70766
70767 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70768
70769         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
70770         space, undoing this 2003-08-12 change:
70771         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
70772
70773 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70774
70775         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
70776         strtoul.c from libc, undoing this 2003-08-12 change:
70777         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
70778
70779 2003-08-16  Jim Meyering  <jim@meyering.net>
70780
70781         Merges from coreutils.
70782         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
70783         prefix.  Adjust cache variables similarly.  Create 500 rather than
70784         just 300 files, to exercise bug on Darwin6.5, too.
70785         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
70786         $missing_dir.
70787         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
70788         AM_SYS_POSIX_TERMIOS.
70789         Reported by mkc@mathdogs.com.
70790         Also change use of $am_cv_sys_posix_termios
70791         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
70792         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
70793         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
70794         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
70795         in /proc/mounts until it finds one with matching device number.  This
70796         is unnecessary when the FILE argument *is* a mount point.  No stat call
70797         is necessary in that case.  So, disable the statvfs-testing code on
70798         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
70799         as RedHat bug# 84846.
70800         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
70801         to 1MB, so as not to render systems with no stack size limit (e.g.,
70802         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
70803         Include <unistd.h>.  On some systems,
70804         it is required for the definition of _SC_PAGESIZE.
70805
70806 2003-08-16  Jim Meyering  <jim@meyering.net>
70807
70808         Merge from coreutils.
70809         * lib/xstrtoimax.c: #else #if -> #elif.
70810         * lib/xstrtoumax.c: Likewise.
70811
70812 2003-08-16  Jim Meyering  <jim@meyering.net>
70813
70814         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
70815         * m4/utimes.m4: Removed.
70816         * m4/utimes-null.m4: Renamed from utimes.m4.
70817
70818         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
70819         to 1MB, so as not to render systems with no stack size limit (e.g.,
70820         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
70821         Include <unistd.h>.  On some systems,
70822         it is required for the definition of _SC_PAGESIZE.
70823
70824 2003-08-16  Jim Meyering  <jim@meyering.net>
70825         and Paul Eggert  <eggert@cs.ucla.edu>
70826
70827         Merges from coreutils, etc.
70828
70829         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
70830         using the latest version from cvs.  This avoids problems with #line
70831         directives using a vendor (Sun) compiler.
70832         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
70833         Don't set GETGROUPS_LIB here; now it's
70834         done via getgroups.m4's wrapper function.
70835         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
70836         rather than just in sh-util/configure.in, so that the
70837         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
70838         same.
70839         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
70840         AC_FUNC_GETLOADAVG where to find getloadavg.c.
70841         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
70842         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
70843         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
70844         Remove code that is now done by the newly-required macros.
70845         Append $(EXEEXT) to DF_PROG.
70846         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
70847         Do not invoke or require the following here,
70848         since prereq.m4 or some gnulib .m4 now does this for us:
70849         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
70850         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
70851         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
70852         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
70853         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
70854         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
70855         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
70856         AC_FUNC_OBSTACK.
70857         Do not replace the following functions, as this is now the job
70858         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
70859         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
70860         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
70861         atexit getpass, strdup, getpagesize.
70862         Replace 'raise'.
70863         Do not check for the following functions, as this is now the job
70864         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
70865         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
70866         setregid.
70867         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
70868         Check for sys/sysctl.h.
70869         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
70870         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
70871         of checking for ssize_t ourselves.
70872
70873         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
70874         Require every macro that gnulib/modules/* suggests for us.
70875         (jm_PREREQ_ADDEXT): New macro.
70876         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
70877         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
70878
70879         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
70880         (gl_PHYSMEM): Use it.
70881         Also check for `table' function.
70882         Check for new headers and functions.
70883         Add check for sys/sysmp.h.
70884         With suggestions from Kaveh Ghazi.
70885         Ignore headers that are present but cannot be compiled.  This
70886         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
70887         C 5.4.
70888
70889 2003-08-15  Paul Eggert  <eggert@twinsun.com>
70890
70891         Document merge from coreutils.
70892         * modules/userspec: Depend on posixver.
70893         * modules/strftime: Depend on tzset.
70894
70895 2003-08-15  Paul Eggert  <eggert@twinsun.com>
70896
70897         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
70898         rather than tab, after '#' in shell-script copyright notices.
70899         Suggested by Bruno Haible.
70900
70901 2003-08-15  Paul Eggert  <eggert@twinsun.com>
70902
70903         * config/srclist-update: Use three spaces, rather than tab, after '#'
70904         in shell-script copyright notices.  Suggested by Bruno Haible.
70905         Remove unnecessary parenthesization in regular expression.
70906
70907 2003-08-15  Jim Meyering  <jim@meyering.net>
70908
70909         Merge from coreutils.
70910         * lib/xgethostname.c: Include <stdlib.h>.
70911         (xghostname): Don't exit for anything other than memory-related
70912         failure; just return NULL.
70913         * lib/userspec.c: Include "posixver.h".
70914         (parse_user_spec): Accept `.' as a separator only
70915         in pre-POSIX-200112 mode.
70916         * lib/strtoimax.c: Use #elif rather than #else #if.
70917         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
70918         Remove function, now that we can rely on a working tzset function.
70919         [!_LIBC]: Ensure that the required autoconf test has been run.
70920         [!defined _NL_CURRENT && HAVE_STRFTIME]:
70921         Use underlying_strftime for %r.
70922         * lib/sha.c: Merge in some clean-up and optimization changes from
70923         glibc.
70924         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
70925         Ensure that it is a multiple of 64.
70926         Rearrange loop exit tests so as to avoid performing an
70927         additional fread after encountering an error or EOF.
70928         * lib/realloc.c: Update copyright date.
70929
70930 2003-08-15  Jim Meyering  <jim@meyering.net>
70931         and Paul Eggert  <eggert@twinsun.com>
70932
70933         Merge from coreutils.
70934         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
70935         member but strut utmpx does not.  Needed for AIX 4.3.3.
70936         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
70937
70938 2003-08-15  Jim Meyering  <jim@meyering.net>
70939         and Paul Eggert  <eggert@cs.ucla.edu>
70940
70941         Merges from coreutils, etc.
70942         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
70943         Require gl_FUNC_TZSET_CLOBBER.
70944         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
70945         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
70946         members.
70947
70948 2003-08-14  Paul Eggert  <eggert@twinsun.com>
70949
70950         Help the merge from coreutils.
70951         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
70952         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
70953         * m4/tzset.m4: Use it too.
70954
70955 2003-08-14  Paul Eggert  <eggert@twinsun.com>
70956
70957         * modules/tzset: New file.
70958
70959 2003-08-14  Jim Meyering  <jim@meyering.net>
70960
70961         Merges from coreutils.
70962         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
70963         variable names, rather than @FNMATCH_H@.
70964         * modules/alloca: Likewise for $(ALLOCA_H).
70965
70966         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
70967         the three copies of the literal target, `fnmatch.h'.
70968         * modules/alloca (alloca.h): Likewise.
70969
70970 2003-08-14  Jim Meyering  <jim@meyering.net>
70971
70972         Merge from coreutils.
70973         * m4/tzset.m4: New file.
70974         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
70975         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
70976         otherwise, AIX 5.1 systems would end up using the latter.
70977         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
70978         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
70979         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
70980         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
70981
70982 2003-08-14  Jim Meyering  <jim@meyering.net>
70983
70984         Merge from coreutils.
70985         * lib/obstack.h: Whitespace changes.
70986         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
70987         and xcalloc return values.
70988         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
70989         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
70990         hang on OSF/1 5.1 for DIR on both local and remote file systems.
70991         Reported by (and fix confirmed by) Nelson H. F. Beebe.
70992         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
70993         error from mntctl.
70994         Use mntctl's return value to drive the entry-processing loop, since
70995         we can't rely on the value of the vmt_length member in the last
70996         entry.  On some systems doing so could result in exhausting
70997         virtual memory.  Based in part on a patch from Mike Jetzer.
70998
70999 2003-08-14  Jim Meyering  <jim@meyering.net>
71000         and Paul Eggert  <eggert@twinsun.com>
71001
71002         Merges from coreutils, plus other fixes.
71003         * lib/physmem.c: Merge in portability changes from gcc/libiberty
71004         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
71005         for credits and details.  Thanks to Kaveh Ghazi for helping
71006         to keep these files in sync.
71007         (ARRAY_SIZE): Define it.
71008         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
71009         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
71010         (memcasecmp): Don't assume size_t fits in unsigned int.
71011         Remove casts and duplicate code.
71012         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
71013         (memcpy): Remove definition.
71014         Merge in some clean-up and optimization changes from glibc.
71015         [BLOCKSIZE]: Move definition to top of file.
71016         Ensure that it is a multiple of 64.
71017         Rearrange loop exit tests so as to avoid performing an
71018         additional fread after encountering an error or EOF.
71019         * lib/md5.h (md5_uintptr): Define.
71020         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
71021         return to the initial working directory.  Preserve errno
71022         for caller.
71023         * lib/idcache.c: Include "xalloc.h".
71024         (xmalloc, xrealloc): Remove decls.
71025         (getuser): Remove casts no longer required in C89.
71026         * lib/human.c: Include stdio.h, for sprintf.
71027         * lib/group-member.c: Include "xalloc.h".
71028         (xmalloc, xrealloc): Remove decls.
71029         (get_group_info): Remove casts no longer required in C89.
71030         * lib/getusershell.c (readname): Remove casts no longer required in
71031         C89.
71032         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
71033         * lib/getline.c: Whitespace fix, from coreutils.
71034
71035 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71036
71037         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
71038         Check for isascii.
71039
71040         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
71041         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
71042         Undo previous (whitespace-only) change.
71043
71044 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71045
71046         * lib/exclude.c: Include <ctype.h>
71047         (IN_CTYPE_DOMAIN): New macro.
71048         (is_space): New fn.
71049         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
71050         and empty lines.
71051
71052         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
71053         Undo previous (whitespace-only) change.
71054
71055 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71056
71057         * config/srclist-update: Change update back to the old behavior,
71058         leaving whitespace alone.  Use one 'sed' command rather than a
71059         pipeline.
71060         (fixlicense): Now a variable, not a function.
71061         (remove_trailing_blanks): Remove.
71062         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
71063         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
71064         Undo previous (whitespace-only) change.
71065
71066 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71067
71068         Merge from coreutils.
71069         * modules/euidaccess: Add lib_SOURCES, include for new
71070         file euidaccess.h
71071
71072 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71073
71074         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
71075         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
71076         Normalize leading white space and remove trailing white space.
71077
71078         Merge from coreutils
71079         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
71080
71081         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
71082         0.12.1.  These files are now being upgraded automatically by
71083         ../config/srclist-update.
71084
71085 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71086
71087         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
71088         Normalize leading white space and remove trailing white space.
71089         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
71090         notice, as per ../config/srclist-update.
71091
71092         Merge from coreutils.
71093         * lib/euidaccess.h: New file.
71094         * lib/euidaccess.c: Include it.
71095         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
71096         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
71097         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
71098
71099 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71100
71101         * config/srclist-update: Add copyright notice.
71102         (remove_id_lines, remove_trailing_blanks): New constants.
71103         (fixfile): Use them to normalize spacing a bit in copied files.
71104         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
71105         Normalize leading white space and remove trailing white space.
71106
71107         * config/texinfo.tex: Sync with texinfo.
71108
71109         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
71110         strtoul.c from libc, to merge coreutils whitespace changes.
71111
71112         * config/srclist.txt: Get the following m4 files from gettext:
71113         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
71114         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
71115         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
71116         wint_t.m4.
71117
71118 2003-08-12  Karl Berry  <karl@gnu.org>
71119
71120         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
71121         been made.
71122
71123 2003-08-11  Paul Eggert  <eggert@twinsun.com>
71124
71125         * modules/gnu-source, m4/gnu-source.m4:
71126         Remove; we're assuming Autoconf 2.54 or later now.
71127         Suggested by Bruno Haible.
71128         * MODULES.html.sh (func_all_modules): Remove gnu-source.
71129
71130 2003-08-11  Bruno Haible  <bruno@clisp.org>
71131
71132         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
71133
71134 2003-08-11  Bruno Haible  <bruno@clisp.org>
71135
71136         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
71137         (vasnprintf): Use it instead of wcslen.
71138
71139 2003-08-11  Bruno Haible  <bruno@clisp.org>
71140
71141         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
71142         value to ensure that _Bool promotes to int. Use #define for _Bool when
71143         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
71144
71145 2003-08-10  Karl Berry  <karl@gnu.org>
71146
71147         * lib/regex.h: update from libc (whitespace fix).
71148
71149 2003-08-09  Paul Eggert  <eggert@twinsun.com>
71150
71151         Merge some files from coreutils.  These changes were
71152         originally made by Jim Meyering.
71153         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
71154         many older Unixes require this.
71155         * lib/alloca.c (alloca): Remove cast to argument of free;
71156         no longer needed in C89.
71157         * lib/alloca_.h, regex.h: Fix white space to match
71158         what GNU indent does.
71159
71160 2003-08-09  Paul Eggert  <eggert@twinsun.com>
71161
71162         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
71163         apparently Emacs's Unicode mode got confused before my 2003-08-05
71164         checkin.
71165
71166 2003-08-08  Paul Eggert  <eggert@twinsun.com>
71167
71168         * m4/extensions.m4: New file.
71169         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
71170         Require gl_USE_SYSTEM_EXTENSIONS.
71171         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
71172         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
71173
71174 2003-08-08  Paul Eggert  <eggert@twinsun.com>
71175
71176         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
71177         * modules/extensions, modules/gnu-source: New files.
71178         * modules/timespec, modules/unlocked-io: Depend on extensions.
71179
71180 2003-08-07  Paul Eggert  <eggert@twinsun.com>
71181
71182         * modules/restrict: New file.
71183         * MODULES.html.sh (func_all_modules): Add restrict.
71184         * modules/regex: Depend on restrict.
71185
71186 2003-08-07  Paul Eggert  <eggert@twinsun.com>
71187
71188         * m4/restrict.m4: New file.
71189         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
71190
71191 2003-08-07  Bruno Haible  <bruno@clisp.org>
71192
71193         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
71194         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
71195
71196 2003-08-07  Bruno Haible  <bruno@clisp.org>
71197
71198         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
71199         makes the module 'getndelim2' compatible with the module 'getline'.
71200
71201 2003-08-05  Paul Eggert  <eggert@twinsun.com>
71202
71203         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
71204         byte with "\201" to avoid glitches when editing that source file
71205         with multi-gnome-terminal.
71206
71207 2003-08-05  Paul Eggert  <eggert@twinsun.com>
71208
71209         * lib/bumpalloc.h: Remove.
71210
71211 2003-08-05  Paul Eggert  <eggert@twinsun.com>
71212
71213         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
71214         * modules/bumpalloc: Remove.
71215
71216 2003-08-04  Paul Eggert  <eggert@twinsun.com>
71217
71218         * lib/getloadavg.c: Change copyright notice and spacing to conform to
71219         GNU coding style.
71220
71221         Merge from coreutils.
71222         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
71223         1. From glibc.
71224         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
71225         from Karl Berry, implemented by Jim Meyering.
71226         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
71227         from Dmitry V. Levin.
71228         Remove anachronistic cast of xrealloc.
71229         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
71230         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
71231         type. Otherwise, it wouldn't compile with at least /bin/cc on
71232         ymp-cray-unicos9.0.2.X.
71233         Combine two mostly-identical uses of alloca into one.
71234         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
71235
71236 2003-08-04  Dave Love  <d.love@dl.ac.uk>
71237
71238         [From Emacs.]
71239
71240         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
71241         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
71242         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
71243         obsolete NLIST_NAME_UNION.
71244         [__GNU__]: Undef BSD and FSCALE.
71245         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
71246
71247 2003-08-03  Paul Eggert  <eggert@twinsun.com>
71248
71249         * lib/stdbool_.h (_Bool): Make it signed char, instead of
71250         an enum type, so that it's guaranteed to promote to int.  See:
71251         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
71252
71253 2003-08-03  Karl Berry  <karl@gnu.org>
71254
71255         * config/depcomp: update from automake.
71256
71257 2003-07-31  Paul Eggert  <eggert@twinsun.com>
71258
71259         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
71260         (strerror): Don't assume that a printable int fits in 14 bytes.
71261
71262 2003-07-31  Bruno Haible  <bruno@clisp.org>
71263
71264         * modules/getpass-gnu: New file.
71265         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
71266
71267 2003-07-31  Bruno Haible  <bruno@clisp.org>
71268
71269         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
71270
71271 2003-07-24  Karl Berry  <karl@gnu.org>
71272
71273         * config/missing: update from automake.
71274
71275 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
71276             Bruno Haible  <bruno@clisp.org>
71277
71278         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
71279         * lib/getline.c (getline, getdelim): Likewise.
71280         Remove _GNU_SOURCE define; now it's defined in config.h through
71281         m4/getline.m4.
71282
71283 2003-07-23  Karl Berry  <karl@gnu.org>
71284
71285         * config/config.sub: update from prep.
71286
71287 2003-07-22  Paul Eggert  <eggert@twinsun.com>
71288
71289         * modules/xalloc (Depends-on): Add exitfail.
71290         * modules/xmemcoll: Likewise.
71291
71292 2003-07-22  Paul Eggert  <eggert@twinsun.com>
71293
71294         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
71295         over-parenthesization in macros.
71296
71297         Sync with coreutils.
71298
71299         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
71300         required by C99.
71301
71302         Use `exit_failure' for xalloc and xmemcoll instead of their own
71303         private exit-failure variables.
71304         * lib/xalloc.h (xalloc_exit_failure): Remove.
71305         * lib/xmalloc.c: Likewise.  Include exitfail.h.
71306         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
71307         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
71308         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
71309         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
71310
71311 2003-07-20  Jim Meyering  <jim@meyering.net>
71312
71313         * modules/closeout (Depends-on): Add exitfail.
71314         Suggestion from Bruno Haible.
71315
71316 2003-07-19  Karl Berry  <karl@gnu.org>
71317
71318         * config/config.sub: update from prep.
71319
71320 2003-07-18  Paul Eggert  <eggert@twinsun.com>
71321
71322         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
71323         Remove.
71324         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
71325         to test that it can stand by itself.  Include "exitfail.h".
71326         Clients should set exit_failure instead.
71327         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
71328
71329 2003-07-18  Bruno Haible  <bruno@clisp.org>
71330
71331         * modules/getndelim2: New file.
71332         * modules/getline: Share files with module getndelim2.
71333         * modules/getnline: Depend on getndelim2 instead of sharing files with
71334         it. Add getnline.c to lib_SOURCES.
71335         * MODULES.html.sh (func_all_modules): Add getndelim2.
71336
71337 2003-07-18  Bruno Haible  <bruno@clisp.org>
71338
71339         * m4/getndelim2.m4: New file.
71340         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
71341         invoke gl_PREREQ_GETNDELIM2.
71342         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
71343         gl_PREREQ_GETNDELIM2.
71344         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
71345         gl_GETNDELIM2.
71346
71347 2003-07-18  Bruno Haible  <bruno@clisp.org>
71348
71349         * lib/getndelim2.h: New file.
71350         * lib/getndelim2.c: Make into a module of its own. Include config.h,
71351         getndelim2.h.
71352         (getndelim2): Make non-static. Change return type to ssize_t.
71353         * lib/getline.h: Change argument names.
71354         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
71355         * lib/getnline.c: Include getndelim2.h.
71356
71357 2003-07-18  Andreas Schwab  <schwab@suse.de>
71358
71359         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
71360
71361 2003-07-17  Karl Berry  <karl@gnu.org>
71362
71363         * config/config.sub: update from prep.
71364
71365 2003-07-17  Bruno Haible  <bruno@clisp.org>
71366
71367         * modules/getnline: New file.
71368         * modules/getline: Add lib/getndelim2.c to source file list.
71369         * MODULES.html.sh (func_all_modules): Add getnline.
71370
71371 2003-07-17  Bruno Haible  <bruno@clisp.org>
71372
71373         * m4/getnline.m4: New file.
71374
71375 2003-07-17  Bruno Haible  <bruno@clisp.org>
71376
71377         * m4/Makefile.am.in: Remove file.
71378         * m4/Makefile.am: Remove file.
71379         * m4/Makefile.in: Remove file.
71380
71381 2003-07-17  Bruno Haible  <bruno@clisp.org>
71382
71383         * lib/getnline.h: New file.
71384         * lib/getnline.c: New file.
71385         * lib/getndelim2.c: New file, extracted from getline.c.
71386         (getndelim2): Renamed from getdelim2, with added nmax argument.
71387         * lib/getline.c: Include getndelim2.c.
71388         (getdelim2): Moved out to getndelim2.c.
71389         (getline, getdelim): Update.
71390
71391 2003-07-17  Bruno Haible  <bruno@clisp.org>
71392
71393         * lib/Makefile.am: Remove file.
71394         * lib/Makefile.in: Remove file.
71395
71396 2003-07-17  Bruno Haible  <bruno@clisp.org>
71397
71398         * configure.in: Remove file.
71399         * Makefile.in: Remove file.
71400
71401 2003-07-17  Bruno Haible  <bruno@clisp.org>
71402
71403         * MODULES.html.sh: Put the </BODY> right before </HTML>.
71404
71405 2003-07-16  Karl Berry  <karl@gnu.org>
71406
71407         * config/srclist-update: was running fixlicense twice, which caused
71408                 texinfo.tex to be nullified for some reason.  Simplify,
71409                 $gplsrc is no longer needed as far as I can see?
71410
71411 2003-07-16  Jim Meyering  <jim@meyering.net>
71412
71413         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
71414
71415 2003-07-15  Paul Eggert  <eggert@twinsun.com>
71416
71417         * config/srclist.txt: Get the following files from gettext-runtime/intl
71418         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
71419         ref-del.sin.  From Bruno Haible.
71420         * config/srclist-update (fixfile): Change grep pattern again, since the
71421         previous fix didn't work (there was another trailing $).  Use
71422         '[$]' to escape the $s.
71423
71424 2003-07-15  Karl Berry  <karl@gnu.org>
71425
71426         * lib/vasnprintf.c: update from gettext.
71427
71428 2003-07-15  Karl Berry  <karl@gnu.org>
71429
71430         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
71431         gets expanded when surrounded by '$'.
71432
71433 2003-07-15  Jim Meyering  <jim@meyering.net>
71434
71435         * modules/save-cwd: Don't depend on error.  From Derek Price.
71436
71437 2003-07-15  Jim Meyering  <jim@meyering.net>
71438
71439         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
71440
71441 2003-07-14  Simon Josefsson  <jas@extundo.com>
71442
71443         * modules/mempcpy: New file.
71444         * MODULES.html.sh (func_all_modules): Add mempcpy.
71445
71446 2003-07-14  Simon Josefsson  <jas@extundo.com>
71447
71448         * m4/mempcpy.m4: New file.
71449
71450 2003-07-14  Simon Josefsson  <jas@extundo.com>
71451
71452         * lib/mempcpy.h: New file.
71453         * lib/mempcpy.c: New file.
71454
71455 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71456
71457         * modules/getdate, modules/posixtm: Depend on mktime.
71458
71459 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71460
71461         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
71462         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
71463         unicodeio.c, unicodeio.h, unlocked-io.h:
71464         Switch from LGPL to GPL.
71465
71466 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71467
71468         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
71469         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
71470         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
71471         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
71472         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
71473         updated automatically by ../config/srclist-update.  This changes
71474         their license from LPGL to GPL.
71475
71476 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71477
71478         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
71479         assumed to refer to the root of the most recent stable gettext version.
71480         * config/srclistvars.sh: Add defaults for eggert.
71481         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
71482         Match "This program" as well as "The program".  This is needed
71483         for gettext.
71484
71485 2003-07-14  Jim Meyering  <jim@meyering.net>
71486
71487         Don't emit diagnostics.  Let callers do that.
71488         * lib/save-cwd.c: Don't include "error.h".
71489         (save_cwd): Don't call error.  Ensure that errno is valid
71490         when returning nonzero.
71491
71492         * lib/save-cwd.h (restore_cwd): Update prototype.
71493         * lib/save-cwd.c (restore_cwd): Remove two parameters.
71494         Simplify.  Don't call error upon failure.  Let callers do that.
71495         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
71496         when auditing is enabled.  But don't bother updating the #if.
71497
71498 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
71499
71500         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
71501         it breaks C++ compilation.
71502         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
71503
71504 2003-07-10  Simon Josefsson  <jas@extundo.com>
71505
71506         * modules/strchrnul (Makefile.am): Add strchrnul.h.
71507
71508 2003-07-10  Jim Meyering  <jim@meyering.net>
71509
71510         * m4/clock_time.m4: Remove trailing blank.
71511         * m4/intmax_t.m4: Likewise.
71512
71513 2003-07-10  Jim Meyering  <jim@meyering.net>
71514
71515         * lib/vasnprintf.c: Remove trailing blanks.
71516         Make cpp indentation consistent.
71517
71518 2003-07-09  Paul Eggert  <eggert@twinsun.com>
71519
71520         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
71521         posixver.c, strftime.c, strnlen.c, strverscmp.c:
71522         Switch from LGPL to GPL.
71523
71524 2003-07-09  Paul Eggert  <eggert@twinsun.com>
71525
71526         * config/srclist.txt: Sort sublists.  Add
71527         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
71528         that differ from gnulib for one reason or another; we'd like this list
71529         to be smaller but for now let's document what we have.
71530
71531 2003-07-08  Paul Eggert  <eggert@twinsun.com>
71532
71533         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
71534         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
71535         and sweeter "eval x=$x".
71536         * config/srclist.txt: Get lib/argp* from glibc.
71537
71538 2003-07-07  Paul Eggert  <eggert@twinsun.com>
71539
71540         * lib/mktime.c: Fix some boundary cases and remove need for floating
71541         point.
71542
71543         Issue a compile-time diagnostic if time_t is floating point, or if
71544         two's complement arithmetic is not in effect, or if arithmetic
71545         right shift does not propagate the sign.  These assumptions were
71546         all in the original code but they weren't checked.
71547
71548         (TIME_T_MIDPOINT, verify): New macros.
71549         (__isleap): Remove; it has integer overflow problems.
71550         (leapyear): New function, without those problems.
71551         (ydhms_tm_diff): Remove; splitting into two parts.
71552         (ydhms_diff): New function, containing the arithmetic part of
71553         the old ydhms_tm_diff function.  Issue a compile-time
71554         diagnostic if we are not using C99 integer division.
71555         Avoid casts when possible.
71556         (guess_time_tm): New function, containing the checking part of
71557         the old ydhms_tm_diff function.  Return the new value, rather than
71558         the difference between it and the old.  Accept a new argument T
71559         so that *T specifies the old value.  Check for overflow in the result.
71560
71561         (__mktime_internal): Use a time_t offset, not a long int offset.
71562         This undoes the 2003-06-04 change, which is no longer needed now
71563         that we have better overflow checking.
71564         (localtime_offset): Likewise.
71565
71566         (__mktime_internal): Avoid harmful overflow on hosts where time_t
71567         and long are 64-bit but int is only 32-bit.
71568         (ydhms_diff): Use long int to store year1 and yday1.
71569         Issue a compile-time diagnostic if long int is not wide enough.
71570
71571         (__mktime_internal): Use long int to store adjusted year and yday.
71572         Use plain C rather than preprocessor commands, if that doesn't
71573         affect efficiency.
71574         Check for overflow (and try to repair) after each probe
71575         rather than checking only at the very end.  This avoids some bugs
71576         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
71577         does not equal GMT offset at maximum time).
71578         Use integer to check for overflow rather than floating point; this
71579         is more portable to non-IEEE hosts, and is a tad faster.
71580         When we detect that we are oscillating between two values,
71581         don't check whether tm_isdst has the requested value, since
71582         we already know the answer.  When tm_isdst has the wrong value,
71583         use a different heuristic to find the right one, based on the
71584         extreme values actually observed in practice in tz2003a,
71585         rather than the (overly optimistic) "previous 3 calendar quarters".
71586
71587         (not_equal_tm, print_tm, check_result): Use "const T" rather than
71588         "T const" to accommodate glibc style.
71589         (check_result): Use less-confusing report format.  "long" -> "long int.
71590         (main): Likewise.
71591         Don't loop if the iteration overflows time_t.
71592         Allow a negative step in the iteration.
71593
71594 2003-07-06  Karl Berry  <karl@gnu.org>
71595
71596         * config/depcomp: update from automake.
71597         * config/config.sub: update from prep.
71598
71599 2003-07-03  Karl Berry  <karl@gnu.org>
71600
71601         * config/config.guess: update from prep.
71602
71603 2003-07-01  Paul Eggert  <eggert@twinsun.com>
71604
71605         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
71606         xreadlink.c now includes it unconditionally.
71607
71608 2003-07-01  Paul Eggert  <eggert@twinsun.com>
71609
71610         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
71611         having it depend on HAVE_SYS_TYPES_H.
71612
71613 2003-07-01  Bruno Haible  <bruno@clisp.org>
71614
71615         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
71616         <sys/types.h> should be sufficient.
71617         Reported by Paul Eggert.
71618
71619 2003-06-26  Karl Berry  <karl@gnu.org>
71620
71621         * config/depcomp: update from automake.
71622
71623 2003-06-26  Bruno Haible  <bruno@clisp.org>
71624
71625         * modules/human: Depend on module stdbool.
71626
71627 2003-06-25  Bruno Haible  <bruno@clisp.org>
71628
71629         * modules/readlink: New file.
71630         * modules/xreadlink: Depend on it.
71631         * MODULES.html.sh (func_all_modules): Add readlink.
71632
71633 2003-06-25  Bruno Haible  <bruno@clisp.org>
71634
71635         * m4/readlink.m4: New file.
71636
71637 2003-06-25  Bruno Haible  <bruno@clisp.org>
71638
71639         * lib/readlink.c: New file.
71640
71641 2003-06-22  Karl Berry  <karl@gnu.org>
71642
71643         * config/srclist.txt: update mkinstalldirs from automake.
71644         * config/mkinstalldirs: update.
71645
71646 2003-06-22  Bruno Haible  <bruno@clisp.org>
71647
71648         Portability to mingw32.
71649         * m4/ssize_t.m4: New file, from GNU gettext.
71650         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
71651         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
71652
71653 2003-06-22  Bruno Haible  <bruno@clisp.org>
71654
71655         * modules/safe-read: Add m4/ssize_t.m4.
71656         * modules/xreadlink: Add m4/ssize_t.m4.
71657
71658 2003-06-20  Bruno Haible  <bruno@clisp.org>
71659
71660         Assume C89, so PARAMS isn't needed.
71661         * lib/unicodeio.h (PARAMS): Remove.
71662         * lib/unicodeio.c: Don't use PARAMS.
71663
71664 2003-06-18  Karl Berry  <karl@gnu.org>
71665
71666         * config/config.{guess,sub}: update from prep.
71667
71668 2003-06-18  Jim Meyering  <jim@meyering.net>
71669
71670         Merge changes from coreutils.
71671         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
71672         Remove explicit declarations of xmalloc and realloc.
71673         Include xalloc.h.
71674         (read_utmp): Remove anachronistic cast of xmalloc.
71675
71676 2003-06-17  Paul Eggert  <eggert@twinsun.com>
71677
71678         Assume C89, so PARAMS isn't needed.
71679         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
71680         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
71681         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
71682         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
71683         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
71684         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
71685         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
71686         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
71687         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
71688         lib/xstrtod.h, lib/xstrtol.h: Likewise.
71689         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
71690         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
71691         no longer needed. Anyway, config.h should always be included before any
71692         other file.
71693
71694 2003-06-11  Simon Josefsson  <jas@extundo.com>
71695
71696         * modules/sysexits: New file.
71697         * MODULES.html.sh (func_all_modules): Add sysexits.
71698
71699 2003-06-11  Simon Josefsson  <jas@extundo.com>
71700
71701         * lib/sysexit_.h: New file.
71702
71703 2003-06-11  Derek Price  <derek@ximbiot.com>
71704
71705         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
71706         necessary.
71707
71708 2003-06-11  Bruno Haible  <bruno@clisp.org>
71709
71710         * m4/sysexits.m4: New file.
71711
71712 2003-06-10  Simon Josefsson  <jas@extundo.com>
71713
71714         * lib/argp.h: New file, from glibc.
71715         * lib/argp-ba.c: New file, from glibc.
71716         * lib/argp-eexst.c: New file, from glibc.
71717         * lib/argp-fmtstream.c: New file, from glibc.
71718         * lib/argp-fmtstream.h: New file, from glibc.
71719         * lib/argp-fs-xinl.c: New file, from glibc.
71720         * lib/argp-help.c: New file, from glibc.
71721         * lib/argp-namefrob.h: New file, from glibc.
71722         * lib/argp-parse.c: New file, from glibc.
71723         * lib/argp-pv.c: New file, from glibc.
71724         * lib/argp-pvh.c: New file, from glibc.
71725         * lib/argp-xinl.c: New file, from glibc.
71726
71727 2003-06-10  Simon Josefsson  <jas@extundo.com>
71728
71729         * modules/strchrnul: New file.
71730
71731 2003-06-10  Simon Josefsson  <jas@extundo.com>
71732
71733         * modules/argp: New file.
71734
71735 2003-06-10  Simon Josefsson  <jas@extundo.com>
71736
71737         * m4/strchrnul.m4: New file.
71738
71739 2003-06-10  Simon Josefsson  <jas@extundo.com>
71740
71741         * lib/strchrnul.h: New file.
71742         * lib/strchrnul.c: New file.
71743
71744 2003-06-10  Bruno Haible  <bruno@clisp.org>
71745
71746         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
71747
71748 2003-06-07  Karl Berry  <karl@gnu.org>
71749
71750         * config/config.{guess,sub}: update from prep.
71751
71752 2003-06-07  Jim Meyering  <jim@meyering.net>
71753
71754         * modules/strtod: Use $(...) notation, not @...@ for
71755         AC_REPLACE'd variables.
71756         * modules/localcharset: Likewise.
71757
71758 2003-06-07  Jim Meyering  <jim@meyering.net>
71759
71760         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
71761         in place of my name in the copyright comment.
71762         Remove definition and uses of __P.
71763
71764         From coreutils.
71765         * lib/stat.c: Don't declare xmalloc explicitly.
71766         Instead, include "xalloc.h".
71767         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
71768         xrealloc, and xcalloc return values.
71769         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
71770         Improve comment.
71771         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
71772
71773 2003-06-07  Bruno Haible  <bruno@clisp.org>
71774
71775         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
71776         avoid AC_CONFIG_LINKS.
71777         * modules/fnmatch (Makefile.am): Use explicit creation rule for
71778         fnmatch.h, to avoid AC_CONFIG_LINKS.
71779         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
71780
71781 2003-06-07  Bruno Haible  <bruno@clisp.org>
71782
71783         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
71784         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
71785         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
71786         directory.
71787         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
71788         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
71789         directory.
71790
71791 2003-06-06  Jim Meyering  <jim@meyering.net>
71792
71793         Merge from coreutils.
71794         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
71795         Consolidate declarations and initializations of *_base* locals.
71796
71797         Merge from coreutils.
71798         This avoids a core dump on systems without GNU putenv,
71799         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
71800         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
71801         (unsetenv): New static function, from GNU libc.
71802         (rpl_putenv): Use it.
71803
71804         * lib/modechange.c: Remove trailing blanks.
71805
71806         Merge from coreutils.
71807         * lib/fsusage.c: Remove declaration of statfs.
71808         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
71809
71810         * lib/posixtm.c: Include <stdbool.h> unconditionally.
71811
71812 2003-06-06  Jim Meyering  <jim@meyering.net>
71813
71814         * lib/stdbool_.h: Renamed from stdbool.h.in.
71815
71816 2003-06-06  Jim Meyering  <jim@meyering.net>
71817             Bruno Haible  <bruno@clisp.org>
71818
71819         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
71820         Adjust Makefile.am snippet not to redirect directly to target.
71821         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
71822
71823 2003-06-05  Paul Eggert  <eggert@twinsun.com>
71824
71825         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
71826         mismatch, look in future quarters as well as past.  This fixes a
71827         bug when processing fall-backwards gaps immediately after a long
71828         period of daylight-saving time.
71829
71830         * lib/mktime.c: Assume freestanding C89 or better.
71831         (HAVE_LIMITS_H): Remove.  Assume it's 1.
71832         (__P): Remove; not used.
71833         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
71834         (mktime, not_equal_tm, print_tm, check_result,
71835         main): Use prototypes.  Use const * where appropriate.
71836         (main): Fix typo in testing code that uncovered by above changes.
71837         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
71838
71839 2003-06-04  Paul Eggert  <eggert@twinsun.com>
71840
71841         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
71842         locale.h, localeconv.  This merges changes from coreutils.
71843
71844         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
71845         It can be removed after the next Autoconf is released.
71846         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
71847         needed.
71848
71849 2003-06-04  Paul Eggert  <eggert@twinsun.com>
71850
71851         * lib/mktime.c: Fix Debian bug 177940
71852         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
71853         (localtime_offset): Now long int, not time_t, because we want it
71854         to be guaranteed to be signed.  All uses changed.
71855         (__mktime_internal): If overflow would occur when adding offset,
71856         don't add it.
71857
71858         Merge 'human' changes from coreutils.  Rewrite to support
71859         locale-specific notations like thousands separators.
71860         * lib/human.c: Simplify authorship notice.
71861         Include human.h immediately after config.h.
71862         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
71863         <limits.h>: Do not include, since human.h does.
71864         (SIZE_MAX, UINTMAX_MAX): New macros.
71865         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
71866         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
71867         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
71868         (power_letter): Renamed from suffixes.
71869         (generate_suffix_backwards): Remove.
71870         (adjust_value): Now takes int style (because of human.h changes)
71871         and long double value (for greater precision on some platforms).
71872         (group_number): New function.
71873         (human_readable): Use it.  Use integer options, not enum.
71874         Put the options before the sizes in the arg list.
71875         Support all the new options.
71876         The old human_readable function has been removed;
71877         use inttostr.h instead.
71878         (human_readable, default_block_size, humblock):
71879         Use uintmax_t, not int, for block sizes.
71880         (human_readable_inexact, block_size_types): Remove.
71881         (block_size_opts): New constant.
71882         (human_options): Renamed from human_block_size, with new signature
71883         that allows block sizes up to UINTMAX_MAX.  All callers changed.
71884         * lib/human.h: Add copyright and authorship notice.
71885         Include <limits.h> and <stdbool.h> unconditionally.
71886         (PARAMS): Remove.  All uses removed.
71887         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
71888         (enum human_inexact_style): Remove tag; now a nameless enum.
71889         (human_floor, human_ceiling, human_round_to_even): Now have
71890         values 2, 0, 1 rather than -1, 1, 0.
71891         (human_group_digits, human_suppress_point_zero, human_autoscale,
71892         human_base_1024, human_SI, human_B): New constants.
71893         (human_readable_inexact, human_block_size): Remove.
71894         (human_readable): Size args are now uintmax_t, not int.
71895         (human_options): New decl.
71896
71897         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
71898         unnecessary now that we assume C89 or better.  This change
71899         imported from coreutils.
71900
71901         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
71902         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
71903         in the 2003-05-30 sync from glibc.
71904
71905         .h files should stand alone, but we shouldn't include <sys/types.h>
71906         if we can get away with just <stddef.h>.
71907
71908         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
71909         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
71910         rather than <sys/types.h>, as we merely need size_t.
71911         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
71912         to get size_t.
71913         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
71914         Include <stdio.h>, to get FILE.
71915         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
71916         memcasecmp.h has included <stddef.h> and all we need is size_t.
71917         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
71918         our interface, instead of including <sys/types.h>
71919
71920 2003-06-04  Paul Eggert  <eggert@twinsun.com>
71921
71922         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
71923         now, as glibc mktime is buggy on non-glibc systems.
71924
71925 2003-06-03  Karl Berry  <karl@gnu.org>
71926
71927         * config/config.sub: update from prep.
71928
71929 2003-06-02  Paul Eggert  <eggert@twinsun.com>
71930
71931         [from coreutils]
71932         Fix some minor time-related bugs with POSIX time arguments.
71933         Some valid time stamps were being rejected (notably -1, and
71934         time stamps before 1900 on 64-bit hosts).  And some invalid
71935         time stamps were being accepted, e.g. September 31.
71936
71937         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
71938         that we can return (time_t) -1 successfully.
71939         * lib/posixtm.c: Likewise.
71940         [HAVE_STDBOOL_H]: Include <stdbool.h>.
71941         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
71942         (t): Remove static var.
71943         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
71944         of static var.  All uses changed.
71945         (year): Do not reject years before 1900; they can occur with
71946         64-bit time_t.
71947         (posix_time_parse): Do not check for out-of-range components;
71948         that is now the caller's responsibility, since our checks were
71949         only approximations.
71950         (posixtime): Use mktime to check for out-of-range components,
71951         since it knows them exactly.
71952         If mktime returns (time_t) -1, check whether an error actually occurred
71953         by invoking localtime on -1.
71954         (main) [TEST_POSIXTIME]: Check for input data errors, and report
71955         posixtime failures better.
71956         Improve the test data (in comments only).
71957
71958 2003-06-02  Karl Berry  <karl@gnu.org>
71959
71960         * config/mkinstalldirs (version): new variable.
71961         (--version): new option.
71962         (usage): improve message.
71963
71964 2003-05-30  Karl Berry  <karl@gnu.org>
71965
71966         * lib/mktime.c: update from libc.
71967
71968 2003-05-30  Bruno Haible  <bruno@clisp.org>
71969
71970         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
71971         * config/config.rpath: Upgrade to gettext-0.12.1.
71972
71973 2003-05-30  Bruno Haible  <bruno@clisp.org>
71974
71975         * m4/gettext.m4: Upgrade to gettext-0.12.1.
71976         * m4/nls.m4: New file, from gettext-0.12.1.
71977         * m4/po.m4: New file, from gettext-0.12.1.
71978         * m4/progtest.m4: Upgrade to gettext-0.12.1.
71979
71980 2003-05-30  Bruno Haible  <bruno@clisp.org>
71981
71982         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
71983         * lib/localcharset.h: Likewise.
71984         * lib/localcharset.c: Likewise.
71985
71986 2003-05-29  Karl Berry  <karl@gnu.org>
71987
71988         * config/config.rpath: update from gettext.
71989
71990 2003-05-28  Paul Eggert  <eggert@twinsun.com>
71991
71992         Assume the headers required for C89 freestanding compilers.
71993         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
71994         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
71995         * m4/human.m4 (gl_HUMAN): Likewise.
71996         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
71997         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
71998         * m4/userspec.m4 (gl_USERSPEC): Likewise.
71999         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
72000         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72001         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
72002
72003 2003-05-28  Paul Eggert  <eggert@twinsun.com>
72004
72005         Assume the headers required for C89 freestanding compilers.
72006         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
72007         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
72008         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
72009         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
72010         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
72011         define, since <limits.h> is guaranteed to do that.
72012         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
72013         * lib/exclude.c: Include <stdbool.h> unconditionally.
72014         * lib/tempname.c: Include <stddef.h> unconditionally.
72015         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
72016         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
72017         <stddef.h> does that.
72018         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
72019         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
72020         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
72021         needed.
72022         * lib/xstrtol.c: Likewise.
72023         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
72024         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
72025
72026         * lib/addext.c (addext): Use assignment rather than cast, to avoid
72027         warnings on some platforms.
72028
72029         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
72030         arbitrarily.
72031
72032 2003-05-26  Jim Meyering  <jim@meyering.net>
72033
72034         Merge in a change from coreutils:
72035         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
72036         that is guaranteed to be `no'.  Use `no_such_member' to indicate
72037         that condition, rather than `-1' which is slightly misleading.
72038         Change the name of the cache variable to have the gl_ prefix.
72039         Prompted by a patch from Richard Dawe for DJGPP.
72040
72041 2003-05-24  Karl Berry  <karl@gnu.org>
72042
72043         * config/config.guess: update from prep.
72044
72045 2003-05-22  Karl Berry  <karl@gnu.org>
72046
72047         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
72048
72049 2003-05-20  Karl Berry  <karl@gnu.org>
72050
72051         * config/config.guess: update from prep.
72052
72053 2003-05-18  Karl Berry  <karl@gnu.org>
72054
72055         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
72056         might actually be set by the user.
72057
72058         * config/depcomp, install-sh, mdate-sh: update from automake.
72059
72060 2003-05-17  Bruno Haible  <bruno@clisp.org>
72061
72062         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
72063         invalid expansion for AC_EGREP_CPP.
72064         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
72065         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
72066         Suggested by Akim Demaille <akim@epita.fr> in
72067         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
72068
72069 2003-05-12  Jim Meyering  <jim@meyering.net>
72070
72071         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
72072         the space-padded-by-default conversion specifiers, %e, %k, %l.
72073
72074 2003-05-12  Bruno Haible  <bruno@clisp.org>
72075
72076         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
72077         the string is longer than 4 KB.
72078
72079 2003-05-11  Karl Berry  <karl@gnu.org>
72080
72081         * config/config.{guess,sub}: update from prep.
72082
72083 2003-05-09  Bruno Haible  <bruno@clisp.org>
72084
72085         * modules/error: Add m4/strerror_r.m4 to file list.
72086
72087 2003-05-03  Bruno Haible  <bruno@clisp.org>
72088
72089         Upgrade to Unicode-4.0.
72090         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
72091         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
72092         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
72093         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
72094         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
72095         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
72096         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
72097         Change width of U+E0100..U+E01EF from 1 to 0.
72098
72099 2003-04-25  Jim Meyering  <jim@meyering.net>
72100
72101         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
72102         of type size_t, not int.
72103
72104 2003-04-25  Bruno Haible  <bruno@clisp.org>
72105
72106         * lib/copy-file.c: Include <stddef.h>, for size_t.
72107
72108 2003-04-21  Paul Eggert  <eggert@twinsun.com>
72109
72110         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
72111         code which expansion is under static control.  Patch imported from
72112         Akim Demaille's patch to Bison; see
72113         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
72114
72115 2003-04-14  Bruno Haible  <bruno@clisp.org>
72116
72117         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
72118
72119 2003-04-11  Jim Meyering  <jim@meyering.net>
72120
72121         Merge changes from Coreutils.
72122
72123         2003-03-22  Jim Meyering  <jim@meyering.net>
72124
72125         * lib/strftime.c (widen): Cast alloca return value to proper type.
72126
72127         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
72128
72129         From GNU libc.
72130         * lib/strftime.c (my_strftime): Handle very large width
72131         specifications for numeric values correctly.  Improve checks for
72132         overflow.
72133
72134         2003-01-19  Jim Meyering  <jim@meyering.net>
72135
72136         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
72137         definitions.
72138         (nl_get_alt_digit) [! defined my_strftime]: Define.
72139         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
72140         _nl_get_alt_digit and _nl_get_walt_digit.
72141
72142         * lib/strftime.c (my_strftime): Merge in locale-related changes from
72143         libc. These changes have no effect outside of _LIBC.
72144
72145 2003-04-10  Bruno Haible  <bruno@clisp.org>
72146
72147         * modules/findprog: New file.
72148         * MODULES.html.sh (func_all_modules): Add it.
72149
72150 2003-04-10  Bruno Haible  <bruno@clisp.org>
72151
72152         * m4/findprog.m4: New file.
72153         * m4/eaccess.m4: New file.
72154
72155 2003-04-10  Bruno Haible  <bruno@clisp.org>
72156
72157         * lib/findprog.h: New file, from GNU gettext.
72158         * lib/findprog.c: New file, from GNU gettext.
72159
72160 2003-04-05  Jim Meyering  <jim@meyering.net>
72161
72162         Merge changes from Coreutils.
72163
72164         * lib/exclude.h (PARAMS): Remove definition and uses.
72165         * lib/exclude.c: Remove uses of `PARAMS'.
72166
72167         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
72168         Add test-cases for DOS filenames. Declare program_name.
72169         (main): Set up program_name.  Patch by Rich Dawe.
72170
72171         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
72172         error from mntctl.
72173         Use mntctl's return value to drive the entry-processing loop, since
72174         we can't rely on the value of the vmt_length member in the last
72175         entry.  On some systems doing so could result in exhausting
72176         virtual memory.  Based in part on a patch from Mike Jetzer.
72177
72178 2003-04-04  Bruno Haible  <bruno@clisp.org>
72179
72180         * modules/linebreak: New file.
72181         * MODULES.html.sh (func_all_modules): Add it.
72182
72183 2003-04-04  Bruno Haible  <bruno@clisp.org>
72184
72185         * m4/linebreak.m4: New file.
72186
72187 2003-04-04  Bruno Haible  <bruno@clisp.org>
72188
72189         * lib/linebreak.h: New file, from GNU gettext.
72190         * lib/linebreak.c: New file, from GNU gettext with slight
72191         modifications.
72192         * lib/lbrkprop.h: New file, from GNU gettext.
72193
72194 2003-04-03  Bruno Haible  <bruno@clisp.org>
72195
72196         * modules/utf8-ucs4: New file.
72197         * modules/utf16-ucs4: New file.
72198         * modules/ucs4-utf8: New file.
72199         * modules/ucs4-utf16: New file.
72200         * MODULES.html.sh (func_all_modules): Add them.
72201
72202 2003-04-03  Bruno Haible  <bruno@clisp.org>
72203
72204         * m4/utf-ucs4.m4: New file.
72205         * m4/ucs4-utf.m4: New file.
72206
72207 2003-04-03  Bruno Haible  <bruno@clisp.org>
72208
72209         * lib/utf8-ucs4.h: New file, from GNU gettext.
72210         * lib/utf16-ucs4.h: New file, from GNU gettext.
72211         * lib/ucs4-utf8.h: New file, from GNU gettext.
72212         * lib/ucs4-utf16.h: New file, from GNU gettext.
72213
72214 2003-04-02  Bruno Haible  <bruno@clisp.org>
72215
72216         * modules/binary-io: New file.
72217         * MODULES.html.sh (func_all_modules): Add it.
72218
72219 2003-04-02  Bruno Haible  <bruno@clisp.org>
72220
72221         * lib/binary-io.h: New file, from GNU gettext.
72222
72223 2003-04-01  Bruno Haible  <bruno@clisp.org>
72224
72225         * modules/pathname: New file.
72226         * MODULES.html.sh (func_all_modules): Add it.
72227
72228 2003-04-01  Bruno Haible  <bruno@clisp.org>
72229
72230         * lib/pathname.h: New file, from GNU gettext.
72231         * lib/concatpath.c: New file, from GNU gettext.
72232
72233 2003-03-30  Bruno Haible  <bruno@clisp.org>
72234
72235         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
72236
72237 2003-03-30  Bruno Haible  <bruno@clisp.org>
72238
72239         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
72240         function chown() doesn't exist.
72241
72242 2003-03-28  Bruno Haible  <bruno@clisp.org>
72243
72244         * modules/copy-file: New file.
72245         * MODULES.html.sh (func_all_modules): Add it.
72246
72247 2003-03-28  Bruno Haible  <bruno@clisp.org>
72248
72249         * m4/copy-file.m4: New file.
72250
72251 2003-03-28  Bruno Haible  <bruno@clisp.org>
72252
72253         * lib/copy-file.h: New file, from GNU gettext.
72254         * lib/copy-file.c: New file, from GNU gettext.
72255
72256 2003-03-18  Jim Meyering  <jim@meyering.net>
72257
72258         * lib/quote.c (quote_n): Fix typo in comment.
72259
72260 2003-03-18  Bruno Haible  <bruno@clisp.org>
72261
72262         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
72263         checking.
72264         * m4/onceonly_2_57.m4: Likewise.
72265
72266 2003-03-17  Bruno Haible  <bruno@clisp.org>
72267
72268         * m4/onceonly.m4: Require autoconf 2.54 or newer.
72269         (m4_quote): Remove macro.
72270         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
72271
72272 2003-03-14  Jim Meyering  <jim@meyering.net>
72273
72274         Merge changes from Coreutils.
72275         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
72276         to be const, in order to avoid warnings.
72277         (obstack_room): Likewise.
72278         (obstack_empty_p): Likewise.
72279
72280 2003-03-14  Bruno Haible  <bruno@clisp.org>
72281
72282         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
72283         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
72284
72285 2003-03-13  Paul Eggert  <eggert@twinsun.com>
72286
72287         Merge changes from Bison.
72288         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
72289         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
72290         when compiling Bison 1.875's `bitset bset = obstack_alloc
72291         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
72292         * lib/hash.c: Include <stdbool.h> unconditionally.
72293
72294 2003-03-13  Paul Eggert  <eggert@twinsun.com>
72295
72296         * m4/onceonly.m4 (m4_quote): New macro.
72297         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
72298         Quote AC_FOREACH variable-expansions properly.
72299
72300 2003-03-13  Paul Eggert  <eggert@twinsun.com>
72301
72302         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
72303
72304 2003-03-09  Paul Eggert  <eggert@twinsun.com>
72305
72306         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
72307         Reported by Bruce Becker; see:
72308         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
72309
72310 2003-03-03  Paul Eggert  <eggert@twinsun.com>
72311             Bruno Haible  <bruno@clisp.org>
72312
72313         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
72314         Reported by John Hughes, see
72315         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
72316
72317 2003-02-20  Bruno Haible  <bruno@clisp.org>
72318
72319         * MODULES.html.sh (func_all_modules): Add poll.
72320
72321 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
72322
72323         * modules/poll: New file.
72324
72325 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
72326
72327         * lib/poll_.h: New file.
72328         * lib/poll.c: New file.
72329
72330 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
72331
72332         * m4/poll.m4: New file.
72333
72334 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
72335
72336         * modules/mathl: New file.
72337
72338 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
72339
72340         * lib/mathl.h: New file.
72341         * lib/acosl.c: New file.
72342         * lib/asinl.c: New file.
72343         * lib/atanl.c: New file.
72344         * lib/ceill.c: New file.
72345         * lib/cosl.c: New file.
72346         * lib/expl.c: New file.
72347         * lib/floorl.c: New file.
72348         * lib/frexpl.c: New file.
72349         * lib/ldexpl.c: New file.
72350         * lib/logl.c: New file.
72351         * lib/sincosl.c: New file.
72352         * lib/sinl.c: New file.
72353         * lib/sqrtl.c: New file.
72354         * lib/tanl.c: New file.
72355         * lib/trigl.c: New file.
72356         * lib/trigl.h: New file.
72357
72358 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
72359
72360         * m4/mathl.m4: New file.
72361
72362 2003-02-18  Bruno Haible  <bruno@clisp.org>
72363
72364         * MODULES.html.sh (func_all_modules): Add mathl.
72365
72366 2003-02-17  Bruno Haible  <bruno@clisp.org>
72367
72368         * modules/mkdtemp: New module.
72369         * MODULES.html.sh (func_all_modules): Add it.
72370
72371 2003-02-17  Bruno Haible  <bruno@clisp.org>
72372
72373         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
72374
72375 2003-02-17  Bruno Haible  <bruno@clisp.org>
72376
72377         * lib/mkdtemp.h: New file, from GNU gettext.
72378         * lib/mkdtemp.c: New file, from GNU gettext.
72379
72380 2003-02-02  Jim Meyering  <jim@meyering.net>
72381
72382         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
72383         e.g. glibc-2.2.93.
72384
72385 2003-01-31  Bruno Haible  <bruno@clisp.org>
72386
72387         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
72388         'rpl_rename'.
72389         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
72390         'rpl_strnlen'.
72391         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
72392         'rpl_strtod'.
72393         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
72394         'rpl_utime'.
72395
72396 2003-01-31  Bruno Haible  <bruno@clisp.org>
72397
72398         * lib/rename.c: #undef rename before defining rpl_rename.
72399         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
72400
72401 2003-01-30  Bruno Haible  <bruno@clisp.org>
72402
72403         * modules/vasnprintf, modules/vasprintf: New modules.
72404         * MODULES.html.sh (func_all_modules): Add them.
72405
72406 2003-01-30  Bruno Haible  <bruno@clisp.org>
72407
72408         * m4/signed.m4: New file, from GNU gettext.
72409         * m4/longdouble.m4: New file, from GNU gettext.
72410         * m4/wchar_t.m4: New file, from GNU gettext.
72411         * m4/wint_t.m4: New file, from GNU gettext.
72412         * m4/vasnprintf.m4: New file.
72413         * m4/vasprintf.m4: New file.
72414
72415 2003-01-30  Bruno Haible  <bruno@clisp.org>
72416
72417         * lib/printf-args.h: New file, from GNU gettext.
72418         * lib/printf-args.c: New file, from GNU gettext.
72419         * lib/printf-parse.h: New file, from GNU gettext.
72420         * lib/printf-parse.c: New file, from GNU gettext.
72421         * lib/vasnprintf.h: New file, from GNU gettext.
72422         * lib/vasnprintf.c: New file, from GNU gettext.
72423         * lib/asnprintf.c: New file, from GNU gettext.
72424         * lib/vasprintf.h: New file, from GNU gettext with modifications.
72425         * lib/vasprintf.c: New file, from GNU gettext.
72426         * lib/asprintf.c: New file, from GNU gettext.
72427
72428 2003-01-29  Bruno Haible  <bruno@clisp.org>
72429
72430         * modules/stpncpy: New module.
72431         * MODULES.html.sh (func_all_modules): Add it.
72432
72433 2003-01-29  Bruno Haible  <bruno@clisp.org>
72434
72435         * m4/stpncpy.m4: New file.
72436
72437 2003-01-29  Bruno Haible  <bruno@clisp.org>
72438
72439         * lib/stpncpy.h: New file, from GNU gettext with modifications.
72440         * lib/stpncpy.c: New file, from GNU gettext with modifications.
72441
72442 2003-01-28  Bruno Haible  <bruno@clisp.org>
72443
72444         * modules/c-ctype: New module.
72445         * MODULES.html.sh (func_all_modules): Add it.
72446
72447 2003-01-28  Bruno Haible  <bruno@clisp.org>
72448
72449         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
72450         Paul Eggert.
72451         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
72452         Paul Eggert.
72453
72454 2003-01-27  Bruno Haible  <bruno@clisp.org>
72455
72456         * modules/xsetenv: New module.
72457         * MODULES.html.sh (func_all_modules): Add it.
72458
72459 2003-01-27  Bruno Haible  <bruno@clisp.org>
72460
72461         * lib/xsetenv.h: New file, from GNU gettext.
72462         * lib/xsetenv.c: New file, from GNU gettext.
72463
72464 2003-01-23  Jim Meyering  <jim@meyering.net>
72465
72466         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
72467         from working on systems without dirfd (at least Irix and OSF1/Tru64).
72468
72469 2003-01-23  Bruno Haible  <bruno@clisp.org>
72470
72471         * modules/minmax: New module.
72472         * MODULES.html.sh (func_all_modules): Add it.
72473
72474 2003-01-23  Bruno Haible  <bruno@clisp.org>
72475
72476         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
72477         Eggert.
72478
72479 2003-01-22  Bruno Haible  <bruno@clisp.org>
72480
72481         * modules/exit: New module.
72482         * MODULES.html.sh (func_all_modules): Add it.
72483
72484 2003-01-22  Bruno Haible  <bruno@clisp.org>
72485
72486         * lib/exit.h: New file, from GNU gettext.
72487
72488 2003-01-19  Bruno Haible  <bruno@clisp.org>
72489
72490         * gnulib-tool: Recognize option --extract-maintainer.
72491         (func_get_maintainer): New function.
72492         * modules/*: Add Maintainer entry.
72493
72494 2003-01-16  Jim Meyering  <jim@meyering.net>
72495
72496         * m4/regex.m4: The `regex' struct is both input and output.
72497         Initialize it before each use.  Patch by Tim Waugh.
72498
72499 2003-01-16  Bruno Haible  <bruno@clisp.org>
72500
72501         * MODULES.html.sh: Add a table of contents. Add the module name as
72502         leftmost column. Add hyperlinks.
72503
72504 2003-01-15  Bruno Haible  <bruno@clisp.org>
72505
72506         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
72507
72508 2003-01-15  Bruno Haible  <bruno@clisp.org>
72509
72510         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
72511         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
72512         suffix.
72513
72514 2003-01-15  Bruno Haible  <bruno@clisp.org>
72515
72516         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
72517
72518 2003-01-15  Bruno Haible  <bruno@clisp.org>
72519
72520         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
72521         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
72522
72523 2003-01-14  Jim Meyering  <jim@meyering.net>
72524
72525         * lib/same.c (same_name): Tweak a comment.
72526
72527 2003-01-14  Bruno Haible  <bruno@clisp.org>
72528
72529         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
72530         when a string comparison is sufficient.
72531
72532 2003-01-14  Bruno Haible  <bruno@clisp.org>
72533
72534         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
72535         'unsigned int'.
72536
72537 2003-01-14  Bruno Haible  <bruno@clisp.org>
72538
72539         * lib/hash-pjw.c: Add comment about low quality of this function.
72540
72541 2003-01-13  Bruno Haible  <bruno@clisp.org>
72542
72543         * modules/stpcpy: Distribute lib/stpcpy.h.
72544         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
72545
72546 2003-01-13  Bruno Haible  <bruno@clisp.org>
72547
72548         * modules/*: Add a description.
72549         * modules/strpbrk: Fix Makefile.am snippet.
72550         * modules/strtoimax: Fix dependencies.
72551         * modules/strtoumax: Likewise.
72552
72553 2003-01-13  Bruno Haible  <bruno@clisp.org>
72554
72555         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
72556         * modules/alloca (Makefile.am): All object files depend on alloca.h.
72557         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
72558
72559 2003-01-13  Bruno Haible  <bruno@clisp.org>
72560
72561         * gnulib-tool (func_create_testdir): Store config/* files in the main
72562         directory.
72563         * config.rpath: Move to ...
72564         * config/config.rpath: ... here.
72565         * modules/gettext: Contains config/config.rpath, not config.rpath.
72566         * modules/iconv: Likewise.
72567
72568 2003-01-12  Paul Eggert  <eggert@twinsun.com>
72569
72570         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
72571         to avoid collisions with libcurses and libreadline.
72572
72573         * m4/getstr.m4: Remove.
72574         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
72575
72576 2003-01-12  Paul Eggert  <eggert@twinsun.com>
72577
72578         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
72579         to avoid collisions with libcurses and libreadline.
72580
72581         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
72582         * lib/getstr.h, getstr.c: Remove.
72583         * lib/getline.c: Include "getline.h", to check interface.
72584         Move body of old getstr.c here: this defines MIN_CHUNK and
72585         declares getdelim2, which is renamed from getstr.
72586         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
72587
72588         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
72589         All uses changed.
72590         * lib/linebuffer.h: Likewise.
72591         (readline): Remove backward-compatibility macro.
72592
72593 2003-01-12  Paul Eggert  <eggert@twinsun.com>
72594
72595         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
72596         to avoid collisions with libcurses and libreadline.
72597         * getstr: Remove.
72598         * MODULES.html.sh: Remove getstr.
72599         * modules/getline: Depend on unlocked-io, not getstr.
72600
72601 2003-01-12  Jim Meyering  <jim@meyering.net>
72602
72603         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
72604
72605 2003-01-10  Bruno Haible  <bruno@clisp.org>
72606
72607         * modules/alloca: Change Makefile.am requirements. Simplify Include
72608         requirements. Add lib/alloca_.h to file list.
72609
72610 2003-01-10  Bruno Haible  <bruno@clisp.org>
72611
72612         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
72613
72614 2003-01-10  Bruno Haible  <bruno@clisp.org>
72615
72616         * lib/alloca_.h: New file.
72617         * lib/getdate.y: Unconditionally include alloca.h.
72618         * lib/makepath.c: Likewise.
72619         * lib/setenv.c: Likewise.
72620         * lib/userspec.c: Likewise.
72621
72622 2003-01-09  Karl Berry  <karl@gnu.org>
72623
72624         * MODULES.html.sh: include `dirname $0` in PATH, to find
72625         gnulib-tool.
72626
72627 2003-01-09  Bruno Haible  <bruno@clisp.org>
72628
72629         * modules/stdbool: Change configure.ac, Makefile.am requirements.
72630         Simplify Include requirements. Add lib/stdbool.h.in to file list.
72631
72632 2003-01-09  Bruno Haible  <bruno@clisp.org>
72633
72634         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
72635
72636 2003-01-09  Bruno Haible  <bruno@clisp.org>
72637
72638         * lib/stdbool.h.in: New file.
72639
72640 2003-01-09  Bruno Haible  <bruno@clisp.org>
72641
72642         * gnulib-tool (func_all_modules): Ignore files ending in ~.
72643         * MODULES.html.sh: Likewise.
72644
72645 2003-01-08  Jim Meyering  <jim@meyering.net>
72646
72647         * lib/full-write.c: Undefine and define-away `const' after inclusion
72648         of errno.h, not before.  Suggestion from Bruno Haible.
72649
72650 2003-01-08  Bruno Haible  <bruno@clisp.org>
72651
72652         * modules/full-read: Depend on full-write.
72653
72654 2003-01-08  Bruno Haible  <bruno@clisp.org>
72655
72656         * lib/safe-read.c: Include specification header first, to ensure its
72657         selfcontainedness.
72658         * lib/full-write.c: Likewise.
72659
72660 2003-01-07  Jim Meyering  <jim@meyering.net>
72661
72662         * lib/full-write.c: Rework so that it may serve to define full_read,
72663         too.
72664         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
72665
72666 2003-01-07  Bruno Haible  <bruno@clisp.org>
72667
72668         * lib/strtoimax.c: Include <stdint.h> as an alternative to
72669         <inttypes.h>.
72670         * lib/xstrtol.h: Likewise.
72671         * lib/xstrtoimax.c: Likewise.
72672         * lib/xstrtoumax.c: Likewise.
72673         * lib/human.h: Likewise.
72674
72675         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
72676         on systems that have <inttypes.h> but not <stdint.h>.
72677
72678 2003-01-07  Bruno Haible  <bruno@clisp.org>
72679
72680         * MODULES.html.sh: Add copyright notice.
72681         (missed_files): Omit CVS directory entries.
72682         (func_module): Make it work with sed-3.02.
72683         * MODULES.txt: Remove file.
72684
72685 2003-01-06  Jim Meyering  <jim@meyering.net>
72686
72687         * lib/version-etc.c: Update year in translatable copyright string.
72688
72689 2003-01-03  Karl Berry  <karl@gnu.org>
72690
72691         * config/config.{guess,sub}: update from prep.
72692
72693 2003-01-02  Karl Berry  <karl@gnu.org>
72694
72695         * doc/COPYING.DOC: belatedly updated to 1.2.
72696
72697 2003-01-01  Karl Berry  <karl@gnu.org>
72698
72699         * gnulib-tool (func_verify_module): report module name $module in
72700         error message, not $1.
72701         * gnulib-tool (create-testdir): don't complain if destdir couldn't
72702         be created, only if it doesn't exist.
72703         * gnulib-tool (last_checkin_date): don't expand the $Date here.
72704
72705 2002-12-31  Paul Eggert  <eggert@twinsun.com>
72706
72707         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
72708
72709 2002-12-31  Paul Eggert  <eggert@twinsun.com>
72710
72711         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
72712         memcmp if strcoll doesn't work.
72713
72714 2002-12-31  Bruno Haible  <bruno@clisp.org>
72715
72716         * lib/utime.c (utime_null): No need to call ftruncate if the file was
72717         nonempty.
72718
72719 2002-12-31  Bruno Haible  <bruno@clisp.org>
72720
72721         * lib/memcoll.c (STRCOLL): New macro.
72722         (memcoll): Use it.
72723
72724 2002-12-31  Bruno Haible  <bruno@clisp.org>
72725
72726         * lib/localcharset.h: New file.
72727         * lib/localcharset.c: Include it.
72728         * lib/unicodeio.c: Likewise.
72729
72730 2002-12-31  Bruno Haible  <bruno@clisp.org>
72731
72732         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
72733         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
72734
72735 2002-12-31  Bruno Haible  <bruno@clisp.org>
72736
72737         * lib/getline.h: Include <stddef.h>, for size_t.
72738
72739         * lib/unicodeio.h: Include <stddef.h>, for size_t.
72740         * lib/unicodeio.c: Don't include <stddef.h>.
72741
72742 2002-12-31  Bruno Haible  <bruno@clisp.org>
72743
72744         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
72745         HAVE_TM_ZONE.
72746
72747 2002-12-24  Karl Berry  <karl@gnu.org>
72748
72749         * config/config.guess: update from prep.
72750
72751 2002-12-24  Bruno Haible  <bruno@clisp.org>
72752
72753         General infrasructure.
72754         * m4/README: Rewritten.
72755         * m4/onceonly.m4: New file.
72756         * m4/onceonly_2_57.m4: New file.
72757
72758         Module atexit.
72759         * m4/atexit.m4: New file.
72760
72761         Module strtod.
72762         * m4/strtod.m4: New file.
72763
72764         Module strtol.
72765         * m4/strtol.m4: New file.
72766
72767         Module strtoul.
72768         * m4/strtoul.m4: New file.
72769
72770         Module memchr.
72771         * m4/memchr.m4: New file.
72772
72773         Module memcmp.
72774         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
72775         (jm_FUNC_MEMCMP): Invoke it.
72776
72777         Module memcpy.
72778         * m4/memcpy.m4: New file.
72779
72780         Module memmove.
72781         * m4/memmove.m4: New file.
72782
72783         Module memset.
72784         * m4/memset.m4: New file.
72785
72786         Module strcspn.
72787         * m4/strcspn.m4: New file.
72788
72789         Module strpbrk.
72790         * m4/strpbrk.m4: New file.
72791
72792         Module strstr.
72793         * m4/strstr.m4: New file.
72794
72795         Module strerror.
72796         * m4/strerror.m4: New file.
72797
72798         Module mktime.
72799         * m4/mktime.m4: Renamed from jm-mktime.m4.
72800         (gl_PREREQ_MKTIME): New macro.
72801         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
72802
72803         Module malloc.
72804         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
72805         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
72806         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
72807
72808         Module realloc.
72809         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
72810         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
72811         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
72812
72813         Module strftime.
72814         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
72815         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
72816         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
72817         gl_TM_GMTOFF.
72818         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
72819
72820         Module xalloc.
72821         * m4/xalloc.m4: New file.
72822
72823         Module alloca.
72824         * m4/alloca.m4: New file.
72825
72826         Module putenv.
72827         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
72828         (jm_FUNC_PUTENV): Invoke it.
72829
72830         Module setenv.
72831         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
72832         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
72833         when invoked twice.
72834         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
72835         gt_FUNC_SETENV.
72836
72837         Module memrchr.
72838         * m4/memrchr.m4: New file.
72839
72840         Module stpcpy.
72841         * m4/stpcpy.m4: New file.
72842
72843         Module strcase.
72844         * m4/strcase.m4: New file.
72845
72846         Module strdup.
72847         * m4/strdup.m4: New file.
72848
72849         Module strnlen.
72850         * m4/strnlen.m4: New file.
72851
72852         Module strndup.
72853         * m4/strndup.m4: New file.
72854
72855         Module xstrtod.
72856         * m4/xstrtod.m4: New file.
72857
72858         Module xstrtol.
72859         * m4/xstrtol.m4: New file.
72860
72861         Module getdate.
72862         * m4/getdate.m4: New file.
72863
72864         Module unlocked-io.
72865         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
72866         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
72867         * m4/jm-glibc-io.m4n: Remove file.
72868
72869         Module long-options.
72870         * m4/long-options.m4: New file.
72871
72872         Module md5.
72873         * m4/md5.m4: New file.
72874
72875         Module sha.
72876         * m4/sha.m4: New file.
72877
72878         Module getstr.
72879         * m4/getstr.m4: New file.
72880
72881         Module getline.
72882         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
72883         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
72884         <sys/types.h>, for size_t. Use the function name gnu_getline, not
72885         simply getline. Infoke gl_PREREQ_GETLINE.
72886
72887         Module obstack.
72888         * m4/obstack.m4: New file.
72889
72890         Module hash.
72891         * m4/hash.m4: New file.
72892
72893         Module readtokens.
72894         * m4/readtokens.m4: New file.
72895
72896         Module strverscmp.
72897         * m4/strverscmp.m4: New file.
72898
72899         Module stdbool.
72900         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
72901         OSF/1.
72902
72903         Module strtoll.
72904         * m4/strtoll.m4: New file.
72905
72906         Module strtoull.
72907         * m4/strtoull.m4: New file.
72908
72909         Module strtoimax.
72910         * m4/strtoimax.m4: New file.
72911
72912         Module strtoumax.
72913         * m4/strtoumax.m4: New file.
72914
72915         Module xstrtoimax.
72916         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
72917         jm_AC_PREREQ_XSTRTOIMAX.
72918         Moved the strtol prerequisites to strtol.m4.
72919         Moved the strtoll prerequisites to strtoll.m4.
72920         Moved the strtoimax prerequisites to strtoimax.m4.
72921
72922         Module xstrtoumax.
72923         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
72924         jm_AC_PREREQ_XSTRTOUMAX.
72925         Moved the strtoul prerequisites to strtoul.m4.
72926         Moved the strtoull prerequisites to strtoull.m4.
72927         Moved the strtoumax prerequisites to strtoumax.m4.
72928
72929         Module chown.
72930         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
72931         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
72932
72933         Module dup2.
72934         * m4/dup2.m4: New file.
72935
72936         Module ftruncate.
72937         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
72938         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
72939
72940         Module getgroups.
72941         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
72942         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
72943
72944         Module gettimeofday.
72945         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
72946         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
72947         gl_PREREQ_GETTIMEOFDAY.
72948
72949         Module mkdir.
72950         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
72951         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
72952
72953         Module mkstemp.
72954         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
72955         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
72956         jm_AC_TYPE_UINTMAX_T.
72957         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
72958
72959         Module stat.
72960         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
72961         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
72962
72963         Module lstat.
72964         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
72965         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
72966
72967         Module timespec.
72968         * m4/timespec.m4 (gl_TIMESPEC): New macro.
72969         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
72970         * m4/st_mtim.m4: Indentation.
72971
72972         Module nanosleep.
72973         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
72974         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
72975         gl_PREREQ_NANOSLEEP.
72976
72977         Module regex.
72978         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
72979         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
72980         (gl_REGEX): New macro.
72981
72982         Module rename.
72983         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
72984         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
72985
72986         Module rmdir.
72987         * m4/rmdir.m4: New file.
72988
72989         Module utime.
72990         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
72991         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
72992         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
72993
72994         Module dirname.
72995         * m4/dirname.m4: New file.
72996
72997         Module getopt.
72998         * m4/getopt.m4: New file.
72999
73000         Module unistd-safer.
73001         * m4/unistd-safer.m4: New file.
73002
73003         Module fnmatch.
73004         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
73005         declaration.
73006         (gl_PREREQ_FNMATCH_EXTRA): New macro.
73007         (gl_FUNC_FNMATCH_POSIX): New macro.
73008         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
73009         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
73010         simply fnmatch.
73011
73012         Module exclude.
73013         * m4/exclude.m4: New file.
73014
73015         Module human.
73016         * m4/human.m4: New file.
73017
73018         Module acl.
73019         * m4/acl.m4: Nop.
73020
73021         Module backupfile.
73022         * m4/backupfile.m4: New file.
73023         * m4/d-ino.m4: Indentation.
73024
73025         Module fsusage.
73026         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
73027         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
73028         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
73029
73030         Module dirfd.
73031         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
73032         requirements.
73033
73034         Module euidaccess.
73035         * m4/euidaccess.m4: New file.
73036
73037         Module file-type.
73038         * m4/file-type.m4: New file.
73039
73040         Module fileblocks.
73041         * m4/fileblocks.m4: New file.
73042
73043         Module filemode.
73044         * m4/filemode.m4: New file.
73045
73046         Module isdir.
73047         * m4/isdir.m4: New file.
73048
73049         Module lchown.
73050         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
73051         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
73052
73053         Module makepath.
73054         * m4/makepath.m4: New file.
73055
73056         Module modechange.
73057         * m4/modechange.m4: New file.
73058
73059         Module mountlist.
73060         * m4/mountlist.m4: New file.
73061         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
73062         Indentation.
73063
73064         Module path-concat.
73065         * m4/path-concat.m4: New file.
73066
73067         Module pathmax.
73068         * m4/pathmax.m4: New file.
73069
73070         Module same.
73071         * m4/same.m4: New file.
73072
73073         Module save-cwd.
73074         * m4/save-cwd.m4: New file.
73075
73076         Module savedir.
73077         * m4/savedir.m4: New file.
73078
73079         Module xgetcwd.
73080         * m4/xgetcwd.m4: New file.
73081         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
73082
73083         Module xreadlink.
73084         * m4/xreadlink.m4: New file.
73085
73086         Module safe-read.
73087         * m4/safe-read.m4: New file.
73088
73089         Module safe-write.
73090         * m4/safe-write.m4: New file.
73091
73092         Module closeout.
73093         * m4/closeout.m4: New file.
73094
73095         Module stdio-safer.
73096         * m4/stdio-safer.m4: New file.
73097
73098         Module getpass.
73099         * m4/getpass.m4: New file.
73100
73101         Module getugroups.
73102         * m4/getugroups.m4: New file.
73103
73104         Module group-member.
73105         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
73106         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
73107
73108         Module idcache.
73109         * m4/idcache.m4: New file.
73110
73111         Module userspec.
73112         * m4/userspec.m4: New file.
73113
73114         Module gettime.
73115         * m4/clock_time.m4: New file.
73116         * m4/gettime.m4: New file.
73117
73118         Module settime.
73119         * m4/settime.m4: New file.
73120
73121         Module posixtm.
73122         * m4/posixtm.m4: New file.
73123
73124         Module gethostname.
73125         * m4/gethostname.m4: New file.
73126
73127         Module canon-host.
73128         * m4/canon-host.m4: New file.
73129
73130         Module gettext.
73131         * m4/codeset.m4: New file, from gettext-0.11.5.
73132         * m4/gettext.m4: New file, from gettext-0.11.5.
73133         * m4/glibc21.m4: New file, from gettext-0.11.5.
73134         * m4/iconv.m4: New file, from gettext-0.11.5.
73135         * m4/intdiv0.m4: New file, from gettext-0.11.5.
73136         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
73137         * m4/inttypes.m4: New file, from gettext-0.11.5.
73138         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
73139         * m4/isc-posix.m4: New file, from gettext-0.11.5.
73140         * m4/lcmessage.m4: New file, from gettext-0.11.5.
73141         * m4/lib-ld.m4: New file, from gettext-0.11.5.
73142         * m4/lib-link.m4: New file, from gettext-0.11.5.
73143         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
73144         * m4/progtest.m4: New file, from gettext-0.11.5.
73145         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
73146         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
73147         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
73148
73149         Module localcharset.
73150         * m4/localcharset.m4: New file.
73151
73152         Module hard-locale.
73153         * m4/hard-locale.m4: New file.
73154
73155         Module mbswidth.
73156         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
73157         onceonly macros.
73158         * m4/mbrtowc.m4: Add comment.
73159
73160         Module memcasecmp.
73161         * m4/memcasecmp.m4: New file.
73162
73163         Module memcoll.
73164         * m4/memcoll.m4: New file.
73165
73166         Module unicodeio.
73167         * m4/unicodeio.m4: New file.
73168
73169         Module rpmatch.
73170         * m4/rpmatch.m4: New file.
73171
73172         Module yesno.
73173         * m4/yesno.m4: New file.
73174
73175         Module exitfail.
73176         * m4/exitfail.m4: New file.
73177
73178         Module c-stack.
73179         * m4/c-stack.m4 (gl_C_STACK): New macro.
73180         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
73181
73182         Module error.
73183         * m4/error.m4 (gl_ERROR): New macro.
73184         (jm_PREREQ_ERROR): Use onceonly macros.
73185
73186         Module fatal.
73187         * m4/fatal.m4: New file.
73188
73189         Module getloadavg.
73190         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
73191         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
73192
73193         Module getpagesize.
73194         * m4/getpagesize.m4: New file.
73195
73196         Module getusershell.
73197         * m4/getusershell.m4: New file.
73198
73199         Module physmem.
73200         * m4/physmem.m4: New file.
73201
73202         Module posixver.
73203         * m4/posixver.m4: New file.
73204
73205         Module quotearg.
73206         * m4/quotearg.m4: New file.
73207
73208         Module quote.
73209         * m4/quote.m4: New file.
73210
73211         Module readutmp.
73212         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
73213
73214         Module sig2str.
73215         * m4/sig2str.m4: New file.
73216
73217         Other.
73218         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
73219         ulonglong.m4.
73220         * m4/intmax_t.m4: New file.
73221         * m4/d-type.m4: Indentation.
73222         * m4/jm-macros.m4: Update.
73223         * m4/prereq.m4 (jm_PREREQ): Update.
73224         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
73225         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
73226         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
73227         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
73228         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
73229         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
73230         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
73231         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
73232         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
73233         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
73234         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
73235         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
73236         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
73237         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
73238         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
73239         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
73240         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
73241         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
73242         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
73243
73244 2002-12-24  Bruno Haible  <bruno@clisp.org>
73245
73246         * MODULES.txt: Update according to m4/ changes.
73247
73248         Module gettext.
73249         * config.rpath: New file, from gettext-0.11.5.
73250
73251         * modules/*: New module descriptions.
73252         * gnulib-tool: New file.
73253         * MODULES.html.sh: New file.
73254
73255 2002-12-21  Karl Berry  <karl@gnu.org>
73256
73257         * doc/fdl.texi: update to version 1.2.
73258
73259 2002-12-19  Karl Berry  <karl@gnu.org>
73260
73261         * config/config.guess: update from prep.
73262
73263 2002-12-18  Bruno Haible  <bruno@clisp.org>
73264
73265         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
73266         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
73267
73268 2002-12-17  Bruno Haible  <bruno@clisp.org>
73269
73270         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
73271         stdlib.h, string.h.
73272
73273 2002-12-17  Bruno Haible  <bruno@clisp.org>
73274
73275         * lib/canon-host.c (strdup): Remove unused declaration.
73276
73277         * lib/fsusage.c: Include full_read.h.
73278         (get_fs_usage): Use full_read instead of safe_read.
73279
73280         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
73281
73282 2002-12-12  Karl Berry  <karl@gnu.org>
73283
73284         * config/config.guess: update from prep.
73285
73286 2002-12-11  Bruno Haible  <bruno@clisp.org>
73287
73288         * m4/setenv.m4: New file, from gettext-0.11.5.
73289
73290 2002-12-11  Bruno Haible  <bruno@clisp.org>
73291
73292         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
73293         not unsetenv().
73294         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
73295         modifications:
73296
73297         2002-12-11  Bruno Haible  <bruno@clisp.org>
73298
73299                 * setenv.c (alloca): Fall back to malloc.
73300                 (freea): New macro.
73301                 (setenv): Use freea() to free memory allocated with alloca().
73302
73303         2002-11-13  Bruno Haible  <bruno@clisp.org>
73304
73305                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
73306                 function declarations.
73307                 * unsetenv.c (unsetenv): Likewise.
73308
73309         2002-03-04  Bruno Haible  <bruno@clisp.org>
73310
73311                 Portability to AIX 4.3.3.
73312                 * unsetenv.c: New file, extracted from setenv.c.
73313                 * setenv.c: Move the unsetenv() function to unsetenv.c.
73314
73315         2001-12-20  Bruno Haible  <bruno@clisp.org>
73316
73317                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
73318                 use malloc instead. For SunOS 4.
73319
73320         2001-12-11  Bruno Haible  <bruno@clisp.org>
73321
73322                 * setenv.c: Declare alloca.
73323                 (compar_fn_t): New typedef.
73324                 (KNOWN_VALUE, STORE_VALUE): Use it.
73325
73326         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
73327         setenv.h.
73328
73329 2002-12-10  Paul Eggert  <eggert@twinsun.com>
73330
73331         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
73332         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
73333         Choose values that are less likely to collide with system fnmatch
73334         options.
73335         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
73336         defined (e.g., a pure POSIX system).
73337         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
73338         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
73339
73340 2002-12-06  Paul Eggert  <eggert@twinsun.com>
73341
73342         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
73343         a pain in practice to deal with generated m4 files.  This change
73344         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
73345
73346         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
73347         and jm-glibc-io.m4, as they are no longer a special case.
73348         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
73349         kludge and the auto-generation stuff.  Check only whether the
73350         functions are declared, not whether they exist, since older hosts
73351         that don't declare the functions can't use the optimization anyway.
73352
73353 2002-12-06  Jim Meyering  <jim@meyering.net>
73354
73355         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
73356
73357         Merge in changes from libc's misc/error.c, in preparation
73358         for the merge of gnulib's changes back into libc.
73359
73360         * lib/error.c (_): Define only if not already defined.
73361         Move definition to follow all #include directives.
73362         Include unlocked-io.h only if !_LIBC.
73363         [_LIBC]: Include <libio/libioP.h>.
73364         [USE_IN_LIBIO]: Include <libio/iolibio.h>
73365         (fflush): Tweak definition to use INTUSE.
73366         (putc): Define.
73367
73368 2002-12-05  Paul Eggert  <eggert@twinsun.com>
73369
73370         * lib/alloca.c [defined emacs]: Include "lisp.h".
73371         (xalloc_die) [defined emacs]: New macro.
73372         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
73373         [! defined emacs]: Include <xalloc.h>.
73374         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
73375         (pointer): Typedef to POINTER_TYPE *.
73376         (malloc): Remove decl; we now always use xmalloc.
73377         (alloca): Use old-style definition, since Emacs needs this.
73378         Check for arithmetic overflow when computing combined size.
73379
73380 2002-12-04  Paul Eggert  <eggert@twinsun.com>
73381
73382         Do not generate unlocked-io.h automatically, since it's easier to
73383         maintain it by hand.
73384
73385         * lib/unlocked-io.h: New file, from GNU diffutils,
73386         but with proper copyright notice and attribution.
73387         * lib/gen-uio: Remove.
73388         * lib/Makefile.am: Add copyright notice.
73389         (libfetish_a_SOURCES): Add unlocked-io.h.
73390         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
73391         (DISTCLEANFILES, io_functions): Remove macros.
73392         (EXTRA_DIST): Remove gen_uio.
73393         (unlocked-io.h): Remove rule.
73394
73395 2002-12-04  Jim Meyering  <jim@meyering.net>
73396
73397         Reflect the fact that stat.c and lstat.c are no longer generated.
73398         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
73399         (DISTCLEANFILES): Likewise.
73400         (EXTRA_DIST): Likewise.
73401         (all_local): Don't depend on stat.c or lstat.c.
73402         (stat.c, lstat.c): Remove rules.
73403         (EXTRA_DIST): Remove xstat.in.
73404
73405         * lib/xstat.in: Remove file.  Contents moved into stat.c.
73406         * lib/stat.c: New file.  Contents mostly from xstat.in.
73407         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
73408         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
73409
73410         * lib/safe-read.c: Rework so that it may serve to define safe_write,
73411         too.
73412         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
73413
73414 2002-12-03  Jim Meyering  <jim@meyering.net>
73415
73416         * lib/safe-read.c, safe-write.c: Change variable names and comments,
73417         but not semantics, to minimize the differences between these two files.
73418         (safe_read): Change comment to mention SAFE_READ_ERROR.
73419
73420         * lib/safe-read.c (IS_EINTR): Define.
73421         (safe_read): Use IS_EINTR in place of in-function cpp directives.
73422
73423 2002-12-02  Jim Meyering  <jim@meyering.net>
73424
73425         * lib/safe-read.c (EINTR): Define.
73426         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
73427         (INT_MAX): Provide fallback.
73428         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
73429
73430         * lib/safe-read.h (SAFE_READ_ERROR): Define.
73431
73432 2002-12-02  Bruno Haible  <bruno@clisp.org>
73433
73434         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
73435         Define, taken from safe-read.c.
73436         (INT_MAX): Provide fallback.
73437         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
73438         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
73439
73440         * lib/safe-read.c (EINTR): Remove definition.
73441         (safe_read): Don't use EINTR if it is absent.
73442
73443 2002-12-01  Jim Meyering  <jim@meyering.net>
73444
73445         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
73446         zero.
73447         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
73448
73449 2002-11-27  Paul Eggert  <eggert@twinsun.com>
73450
73451         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
73452         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
73453         with `if (! (value < limit)) abort ();', for readability.
73454
73455 2002-11-26  Karl Berry  <karl@gnu.org>
73456
73457         * lib/strdup.c: copy from libc again, with jim's ok.
73458         * lib/.cppi-disable: re-add strdup.c
73459
73460 2002-11-25  Karl Berry  <karl@gnu.org>
73461
73462         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
73463         instead of "strtol.c".
73464
73465 2002-11-25  Karl Berry  <karl@gnu.org>
73466
73467         * config/install-sh: update from automake for variable quoting, $0 in
73468         error msgs, etc.
73469
73470         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
73471         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
73472         entry.
73473
73474 2002-11-25  Jim Meyering  <jim@meyering.net>
73475
73476         * lib/mktime.c: Sync from libc, now that it has the latest fix.
73477
73478 2002-11-24  Karl Berry  <karl@gnu.org>
73479
73480         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
73481         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
73482
73483 2002-11-24  Jim Meyering  <jim@meyering.net>
73484
73485         Update from coreutils:
73486
73487         * lib/mktime.c: Merge in changes from libc.
73488
73489         Avoid a link-time failure on some Linux systems.
73490         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
73491         (otherwise).
73492         (__mon_yday): Declare with the STATIC attribute.
73493         (__mktime_internal): Likewise.
73494         Based on a report from Greg Schafer.
73495
73496 2002-11-23  Jim Meyering  <jim@meyering.net>
73497
73498         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
73499         Use `unsigned', not `int', as type of index.
73500
73501         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
73502
73503         * lib/fsusage.c: Remove unneeded parentheses around operands of
73504         `defined'.
73505
73506 2002-11-22  Paul Eggert  <eggert@twinsun.com>
73507
73508         * lib/quotearg.h: Allow multiple inclusion by surrounding with
73509         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
73510         so that we can be included first.
73511         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
73512         * lib/quotearg.c: Include quotearg.h immediately after config.h.
73513         No need to include stddef.h or sys/types.h any more.
73514         Surround local include files with "", not "<>".
73515         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
73516         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
73517         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
73518         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
73519         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
73520         (ISPRINT): Remove; no longer needed now that we assume C89.
73521
73522         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
73523         Preserve errno.
73524
73525         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
73526         quotearg_char): Use SIZE_MAX rather than
73527         (size_t) -1 when we are talking about "infinity".
73528
73529         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
73530
73531 2002-11-22  Paul Eggert  <eggert@twinsun.com>
73532
73533         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
73534         hint that one should use `if (! x) abort ();' rather than `assert
73535         (x);', and anyway it's one less thing to worry about configuring.
73536         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
73537         hash_rehash, hash_insert): Use abort rather than assert.
73538
73539 2002-11-22  Bruno Haible  <bruno@clisp.org>
73540
73541         * lib/safe-read.h: Assume C89. Add comments.
73542         (safe_read): Change return type to size_t.
73543         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
73544         byte counts > SSIZE_MAX correctly.
73545         * lib/safe-write.h: New file.
73546         * lib/safe-write.c: New file.
73547         * lib/full-read.h: New file.
73548         * lib/full-read.c: New file.
73549         * lib/full-write.h: Assume C89. Add comments.
73550         * lib/full-write.c: Include safe-write.h.
73551         (full_write): Rewritten to use safe_write.
73552         Suggested by Jim Meyering and Paul Eggert.
73553
73554 2002-11-21  Jim Meyering  <jim@meyering.net>
73555
73556         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
73557
73558         Merge in changes from the coreutils.
73559
73560         2002-09-25  Paul Eggert  <eggert@twinsun.com>
73561         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
73562         <stdint.h>.
73563         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
73564         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
73565         int.  Work more efficiently if X is the same width as uintmax_t.
73566         Do not compare X to -1, to avoid bogus compiler warning.
73567         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
73568         Don't assume that f_frsize and f_bsize are the same type.
73569
73570         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
73571         warning on FreeBSD.
73572
73573         * lib/makepath.c (make_path): Restore umask *before* creating the final
73574         component.
73575         (make_path): Minor reformatting.
73576
73577         * lib/xmalloc.c: Adjust to work with new autoconf macros,
73578         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
73579         HAVE_MALLOC/HAVE_REALLOC.
73580
73581         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
73582         dummy ones.  At least on GNU/Linux systems, `auto' means something
73583         else.
73584         From Michael Stone.
73585
73586 2002-11-21  Bruno Haible  <bruno@clisp.org>
73587
73588         Remove case insensitive option matching.
73589         * lib/argmatch.h (argcasematch): Remove declaration.
73590         (ARGCASEMATCH): Remove macro.
73591         (__xargmatch_internal): Remove case_sensitive argument.
73592         (XARGMATCH): Update.
73593         (XARGCASEMATCH): Remove macro.
73594         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
73595         case_sensitive argument.
73596         (argcasematch): Remove function.
73597         (__xargmatch_internal): Remove case_sensitive argument.
73598         (main): Use XARGMATCH instead of XARGCASEMATCH.
73599
73600         * lib/xmalloc.c: Change compile-time error message. Add comment about
73601         required autoconf version.
73602
73603 2002-11-20  Paul Eggert  <eggert@twinsun.com>
73604
73605         Merge argmatch cleanups from Bison.  Assume C89.
73606
73607         * lib/argmatch.c: Include config.h here, not in argmatch.h.
73608         Include stdlib.h, for EXIT_FAILURE.
73609         Always include <string.h>, since we assume C89.
73610         (EXIT_FAILURE): Remove pre-C89 bug workaround.
73611         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
73612         Include <stddef.h> instead, since it's all we need for size_t.
73613         (PARAMS): Remove.  All uses removed.
73614         (ARRAY_CARDINALITY): Do not bother to #undef.
73615         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
73616         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
73617         Remove unnecessary parentheses.
73618         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
73619         Insert necessary parentheses.
73620         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
73621         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
73622
73623 2002-11-19  Bruno Haible  <bruno@clisp.org>
73624
73625         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
73626         * lib/mbswidth.h: Include <stddef.h>, for size_t.
73627
73628         * lib/mbswidth.h (PARAMS): Remove macro.
73629         (mbswidth, mbsnwidth): Use ANSI C function declarations.
73630         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
73631
73632         * lib/gcd.h (PARAMS): Remove macro.
73633         (gcd): Use ANSI C function declarations.
73634         * lib/gcd.c (gcd): Likewise.
73635
73636 2002-11-15  Bruno Haible  <bruno@clisp.org>
73637
73638         * lib/strcspn.c: Include <stddef.h>.
73639         (strcspn): Use ANSI C function declaration. Change return type to
73640         size_t. Use NULL.
73641         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
73642         (strpbrk): Use NULL.
73643         * lib/strpbrk.h (PARAMS): Remove macro.
73644         (strpbrk): Use ANSI C function declaration.
73645         * lib/strstr.c: Don't include <sys/types.h>.
73646         * lib/strstr.h (PARAMS): Remove macro.
73647         (strstr): Use ANSI C function declarations.
73648
73649 2002-11-14  Karl Berry  <karl@gnu.org>
73650
73651         * config/mkinstalldirs: `do' on separate line, instead of
73652         `for var; do'.
73653
73654 2002-11-06  Bruno Haible  <bruno@clisp.org>
73655
73656         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
73657         * lib/gcd.c (gcd): Likewise.
73658
73659 2002-11-05  Bruno Haible  <bruno@clisp.org>
73660
73661         * lib/gcd.h: New file, from gettext-0.11.5.
73662         * lib/gcd.c: New file, from gettext-0.11.5.
73663
73664 2002-11-05  Bruno Haible  <bruno@clisp.org>
73665
73666         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73667         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73668         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73669         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73670
73671         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
73672         <libintl.h>.
73673         * lib/makepath.c: Include gettext.h instead of <locale.h> and
73674         <libintl.h>.
73675
73676         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
73677         * lib/human.c: Include gettext.h instead of <libintl.h>.
73678         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
73679         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
73680         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
73681         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
73682         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
73683         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
73684         (textdomain): Remove definition.
73685         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
73686
73687         * lib/long-options.c: Remove include of <libintl.h> and definition of
73688         _.
73689         * lib/same.c: Remove include of <libintl.h> and definition of _.
73690
73691 2002-11-04  Owen Taylor  <otaylor@redhat.com>
73692
73693         * lib/config.charset: A few additions for Solaris.
73694
73695 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
73696
73697         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
73698         * lib/localcharset.c (locale_charset): Declare as extern "C".
73699
73700 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
73701
73702         * lib/config.charset: msdos in uk_UA uses CP1125.
73703
73704 2002-11-04  Bruno Haible  <bruno@clisp.org>
73705
73706         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
73707         * lib/strcase.h: New file, from GNU gettext-0.11.5.
73708         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
73709         * lib/strstr.h: New file, from GNU gettext-0.11.5.
73710         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
73711
73712 2002-11-04  Bruno Haible  <bruno@clisp.org>
73713
73714         * lib/localcharset.c (locale_charset): Don't return an empty string.
73715
73716 2002-11-04  Bruno Haible  <bruno@clisp.org>
73717
73718         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
73719         aliases.
73720
73721 2002-11-04  Bruno Haible  <bruno@clisp.org>
73722
73723         * lib/config.charset: Update for newest glibc. Add canonical names
73724         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
73725
73726 2002-11-04  Bruno Haible  <bruno@clisp.org>
73727
73728         * lib/config.charset: Add support for NetBSD.
73729
73730 2002-11-04  Bruno Haible  <bruno@clisp.org>
73731
73732         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
73733
73734 2002-11-01  Bruno Haible  <bruno@clisp.org>
73735
73736         * configure.in: Add AC_CONFIG_AUX_DIR call.
73737         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
73738         test/Makefile.
73739         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
73740
73741 2002-09-28  Karl Berry  <karl@gnu.org>
73742
73743         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
73744         installed automake until the next release, since changes have been
73745         made.
73746
73747 2002-09-25  Karl Berry  <karl@gnu.org>
73748
73749         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
73750         * lib/getopt*: copy from libc/posix.
73751         * lib/gettext.h: copy from gettext.
73752         * lib/.cppi-disable: add strdup.c, gettext.h.
73753
73754 2002-09-25  Karl Berry  <karl@gnu.org>
73755
73756         * config/srclist.txt: enable gettext.h check.
73757         * config/config.{guess,sub}: update from prep.
73758         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
73759                 from automake 1.6.3.
73760         See srclist*.
73761
73762 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
73763
73764         * regex.c (PATFETCH): Remove the translating fetch.
73765         (PATFETCH_RAW): Rename to PATFETCH.
73766         (set_image_of_range): New fun.
73767         (SET_RANGE_TABLE_WORK_AREA): Use it.
73768         (regex_compile): Don't translate the pattern chars so eagerly.
73769         Only do it when inserting an `exactn' bytecode or when handling
73770         a char-range.
73771         (mutually_exclusive_p): Avoid empty statement.
73772
73773 2002-07-06  Jim Meyering  <meyering@lucent.com>
73774
73775         * m4/README: Don't mention Makefile.am.in.
73776         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
73777
73778 2002-07-01  Jim Meyering  <meyering@lucent.com>
73779
73780         * lib/c-stack.c: Include sys/time.h.
73781         From Volker Borchert.
73782
73783 2002-06-26  Paul Eggert  <eggert@twinsun.com>
73784
73785         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
73786
73787 2002-06-26  Paul Eggert  <eggert@twinsun.com>
73788
73789         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
73790         New macro.  Use it uniformly instead of
73791         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
73792         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
73793         reported by Vin Shelton.
73794
73795 2002-06-22  Paul Eggert  <eggert@twinsun.com>
73796
73797         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
73798         Do not assume SA_SIGINFO behavior.
73799         Bug reported by Jim Meyering on NetBSD 1.5.2.
73800
73801 2002-06-22  Jim Meyering  <meyering@lucent.com>
73802
73803         * m4/c-stack.m4: New file, from diffutils-2.8.2.
73804         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
73805
73806         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
73807         now that configure.ac uses AC_GNU_SOURCE.
73808         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
73809         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
73810
73811         Update to latest tools.  Suggestions from Paul Eggert.
73812         * m4/stdbool.m4: New file, from diffutils-2.8.2.
73813         * m4/gnu-source.m4: Update from diffutils-2.8.2.
73814         * m4/fnmatch.m4: Likewise.
73815         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
73816         to AC_HEADER_STDBOOL
73817
73818 2002-06-22  Jim Meyering  <meyering@lucent.com>
73819
73820         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
73821         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
73822
73823 2002-06-22  Jim Meyering  <meyering@lucent.com>
73824
73825         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
73826
73827         * lib/exitfail.c, exitfail.h: Likewise.
73828         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
73829
73830         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
73831         of fnmatch.h.
73832         (EXTRA_DIST): Add fnmatch_loop.c.
73833         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
73834
73835         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
73836         * lib/fnmatch.c: Update from diffutils-2.8.2.
73837         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
73838         * lib/fnmatch.h: Remove file.
73839
73840 2002-06-21  Jim Meyering  <meyering@lucent.com>
73841
73842         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
73843         * m4/mbrtowc.m4: Likewise.
73844
73845         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
73846         * m4/mbswidth.m4: Reflect name change:
73847         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
73848         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
73849
73850         * m4/lib-link.m4: Update from gettext-0.11.2.
73851         * m4/gettext.m4: Likewise.
73852
73853         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
73854         From Alfred M. Szmidt.
73855
73856 2002-06-18  Paul Eggert  <eggert@twinsun.com>
73857
73858         * lib/file-type.h: Report an error if neither S_ISREG nor
73859         S_IFREG is defined, instead of using a test specific to glibc
73860         2.2.  This should be safe, since POSIX requires S_ISREG and
73861         Unix Version 7 had S_IFREG.  We don't need to check for
73862         <sys/types.h> since we don't use any symbols that it defines.
73863
73864 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
73865
73866         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
73867         $@-t, so that each temporary file name is unique and valid in the first
73868         8 characters, for operation under DOS.
73869
73870 2002-06-15  Paul Eggert  <eggert@twinsun.com>
73871
73872         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
73873
73874 2002-06-15  Jim Meyering  <meyering@lucent.com>
73875
73876         Work even with DJGPP 2.03, which lacks support for symlinks.
73877         From Richard Dawe.
73878         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
73879         is defined.
73880         * lib/lchown.c (S_ISLNK): Likewise.
73881
73882 2002-06-15  Jim Meyering  <meyering@lucent.com>
73883
73884         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
73885         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
73886         have been included before this file.
73887
73888 2002-06-14  Jim Meyering  <meyering@lucent.com>
73889
73890         * lib/file-type.h: Use the version from diffutils-2.8.2.
73891         * lib/file-type.c: Likewise.
73892
73893 2002-06-07  Jim Meyering  <meyering@lucent.com>
73894
73895         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
73896         They're needed at least for NetBSD 1.5.2.
73897         ($statxfs_includes): Include those same headers.
73898         ($statxfs_includes): Include sys/vfs.h if available.
73899         ($statxfs_includes): Likewise for sys/statvfs.h.
73900         Check for the following members in both structs statfs and statvfs:
73901         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
73902
73903 2002-06-01  Jim Meyering  <meyering@lucent.com>
73904
73905         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
73906         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
73907
73908 2002-05-28  Jim Meyering  <meyering@lucent.com>
73909
73910         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
73911         Reported by Volker Borchert.
73912
73913 2002-05-27  Jim Meyering  <meyering@lucent.com>
73914
73915         Fix a problem seen only on nonconforming systems whereby ls.c's
73916         use of localtime, and then of gettimeofday would cause trouble:
73917         the localtime call used to initialize rpl_gettimeofday's save
73918         mechanism would clobber ls's current local time information so
73919         that in any long listing the first file would always be listed
73920         with date 1970-01-01.  Analysis by Volker Borchert.
73921
73922         * lib/gettimeofday.c (localtime): Undefine.
73923         (rpl_localtime): New function.
73924
73925 2002-05-27  Jim Meyering  <meyering@lucent.com>
73926
73927         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
73928         localtime.
73929
73930         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
73931         use the replacement function; it wouldn't resolve at link time.
73932         Reported by Volker Borchert.
73933
73934 2002-05-22  Jim Meyering  <meyering@lucent.com>
73935
73936         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
73937         file-type.h.
73938         * lib/file-type.h: New file.
73939         * lib/file-type.c (file_type): New file/function.  Extracted from
73940         diffutils.
73941
73942 2002-04-30  Jim Meyering  <meyering@lucent.com>
73943
73944         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
73945
73946 2002-04-29  Paul Eggert  <eggert@twinsun.com>
73947
73948         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
73949
73950 2002-04-29  Paul Eggert  <eggert@twinsun.com>
73951
73952         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
73953         Do not check for alloca.h (no longer used) or stdbool.h (was never
73954         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
73955
73956 2002-04-29  Paul Eggert  <eggert@twinsun.com>
73957
73958         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
73959
73960 2002-04-29  Jim Meyering  <meyering@lucent.com>
73961
73962         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
73963         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
73964         Use AC_FUNC_STRNLEN here instead.
73965
73966         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
73967         With autoconf-2.53a, it's part of AC_PROG_CC.
73968
73969 2002-04-28  Paul Eggert  <eggert@twinsun.com>
73970
73971         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
73972         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
73973
73974 2002-04-28  Paul Eggert  <eggert@twinsun.com>
73975
73976         * lib/sig2str.h, lib/sig2str.c: New files.
73977         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
73978
73979 2002-04-28  Paul Eggert  <eggert@twinsun.com>
73980
73981         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
73982         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
73983         of 127, since 64 is the largest conceivable number for ancient
73984         nonstandard hosts.
73985         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
73986
73987 2002-04-28  Jim Meyering  <meyering@lucent.com>
73988
73989         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
73990
73991 2002-04-24  Jim Meyering  <meyering@lucent.com>
73992
73993         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
73994         (jm_PREREQ): Use it.
73995
73996         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
73997         mach/mach.h fcntl.h.
73998         Check for this function: setlocale.
73999
74000 2002-04-24  Jim Meyering  <meyering@lucent.com>
74001
74002         * lib/gettext.h: New file, from Gettext.
74003         * lib/Makefile.am (INCLUDES): Remove -I../intl.
74004         (libfetish_a_SOURCES): Add gettext.h.
74005
74006 2002-04-16  Jim Meyering  <meyering@lucent.com>
74007
74008         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
74009         ut_pid, ut_id, ut_exit.
74010
74011 2002-04-16  Jim Meyering  <meyering@lucent.com>
74012
74013         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
74014         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
74015         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
74016
74017 2002-04-12  Jim Meyering  <meyering@lucent.com>
74018
74019         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
74020         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
74021         existence of the getmntinfo function.  Needed for Darwin 5.3.
74022
74023         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
74024         This is necessary at least on Darwin 5.3.
74025
74026         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
74027         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
74028         strnlen.o in the library, and that makes some versions of ranlib
74029         object.
74030
74031 2002-04-12  Jim Meyering  <meyering@lucent.com>
74032
74033         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
74034
74035 2002-04-09  Jim Meyering  <meyering@lucent.com>
74036
74037         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
74038         to be more precise.  Rather than saying we're checking whether the
74039         function `works', say what we're testing.
74040         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
74041         Reported by Bruno Haible.
74042
74043 2002-03-10  Jim Meyering  <meyering@lucent.com>
74044
74045         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
74046         Suggestion from Santiago Vila.
74047
74048 2002-03-08  Jim Meyering  <meyering@lucent.com>
74049
74050         * lib/rename.c: Mention that this wrapper is needed also on
74051         mips-dec-ultrix4.4 systems.
74052
74053 2002-03-02  Jim Meyering  <meyering@lucent.com>
74054
74055         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
74056         not HAVE_CLOCK_SETTIME.
74057
74058 2002-02-27  Paul Eggert  <eggert@twinsun.com>
74059
74060         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
74061         Check for clock_settime.
74062
74063 2002-02-27  Paul Eggert  <eggert@twinsun.com>
74064
74065         * lib/nanosleep.h: Rename to....
74066         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
74067
74068         * lib/gettime.c: New file.
74069         * lib/settime.c: New file.
74070         * lib/stime.c: Remove.
74071
74072         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
74073         timespec.h.  Remove nanosleep.h.
74074
74075 2002-02-25  Paul Eggert  <eggert@twinsun.com>
74076
74077         * m4/acl.m4: New file.
74078         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
74079         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
74080
74081 2002-02-25  Paul Eggert  <eggert@twinsun.com>
74082
74083         * lib/acl.c, lib/acl.h: New files.
74084         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
74085
74086 2002-02-24  Jim Meyering  <meyering@lucent.com>
74087
74088         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
74089         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
74090         cause trouble.  Reported by Nelson Beebe.
74091
74092 2002-02-23  Paul Eggert  <eggert@twinsun.com>
74093
74094         * lib/path-concat.c (xpath_concat): Reorder code to pacify
74095         compilers that don't know that xalloc_die never returns.
74096
74097 2002-02-20  Jim Meyering  <meyering@lucent.com>
74098
74099         * lib/getdate.c: Regenerate using bison-1.33.
74100
74101 2002-02-17  Jim Meyering  <meyering@lucent.com>
74102
74103         * config/config.guess (main): Don't use `head -1'; it's no longer
74104         portable. Use `sed 1q' instead.
74105
74106 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
74107
74108         * m4/codeset.m4: Upgrade to gettext-0.11.
74109         * m4/gettext.m4: Upgrade to gettext-0.11.
74110         * m4/glibc21.m4: Upgrade to gettext-0.11.
74111         * m4/iconv.m4: Upgrade to gettext-0.11.
74112         * m4/isc-posix.m4: Upgrade to gettext-0.11.
74113         * m4/lcmessage.m4: Upgrade to gettext-0.11.
74114         * m4/lib-ld.m4: New file, from gettext-0.11.
74115         * m4/lib-link.m4: New file, from gettext-0.11.
74116         * m4/lib-prefix.m4: New file, from gettext-0.11.
74117         * m4/progtest.m4: Upgrade to gettext-0.11.
74118
74119 2002-02-15  Paul Eggert  <eggert@twinsun.com>
74120
74121         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
74122         (jm_PREREQ): Use it.
74123
74124 2002-02-15  Paul Eggert  <eggert@twinsun.com>
74125
74126         * lib/posixver.c, lib/posixver.h: New files.
74127         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
74128
74129 2002-02-02  Paul Eggert  <eggert@twinsun.com>
74130             Bruno Haible  <bruno@clisp.org>
74131
74132         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
74133         (fwrite_success_callback): New declaration.
74134         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
74135         print_unicode_char. Call failure callback instead of error.
74136         (fwrite_success_callback): New function.
74137         (exit_failure_callback): New function.
74138         (fallback_failure_callback): New function.
74139         (print_unicode_char): Call unicode_to_mb.
74140
74141 2002-01-26  Jim Meyering  <meyering@lucent.com>
74142
74143         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
74144         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
74145
74146 2002-01-26  Jim Meyering  <meyering@lucent.com>
74147
74148         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
74149
74150 2002-01-22  Paul Eggert  <eggert@twinsun.com>
74151
74152         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
74153
74154 2002-01-22  Jim Meyering  <meyering@lucent.com>
74155
74156         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
74157         Otherwise, some versions of automake would omit the rule that makes
74158         Makefile from Makefile.in.
74159
74160 2002-01-21  Paul Eggert  <eggert@twinsun.com>
74161
74162         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
74163         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
74164         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
74165         (memcoll): Set errno to zero if there is no error.
74166
74167         * lib/quotearg.c (quotearg_buffer_restyled):
74168         Fix bug with quoting buffers containing NUL when backslashing escapes.
74169         This bug was exposed by the other changes in this patch.
74170         (quotearg_n_options): New arg ARGSIZE.
74171         All callers changed.
74172         (quoting_options_from_style): New function.
74173         (quotearg_n_style): Use it.
74174         (quotearg_n_style_mem): New function.
74175
74176         * lib/quotearg.h (quotearg_n_style_mem): New function.
74177
74178 2002-01-19  Jim Meyering  <meyering@lucent.com>
74179
74180         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
74181         Remove useless quotes: DF_PROG="df".
74182         * m4/strnlen.m4: New file.
74183
74184 2002-01-16  Paul Eggert  <eggert@twinsun.com>
74185
74186         * lib/backupfile.c (ISDIGIT): Comment fix.
74187         * lib/getdate.y (ISDIGIT): Likewise.
74188         * lib/posixtm.c (ISDIGIT, year): Likewise.
74189         * lib/strverscmp.c (ISDIGIT): Likewise.
74190         * lib/userspec.c (ISDIGIT): Likewise.
74191
74192 2002-01-16  Jim Meyering  <meyering@lucent.com>
74193
74194         * lib/getdate.y: Add three semicolons, each just before a closing
74195         brace. Bison (as of version 1.31) no longer papers over that mistake.
74196
74197 2002-01-05  Jim Meyering  <meyering@lucent.com>
74198
74199         * lib/version-etc.c (version_etc_copyright): Update copyright year.
74200
74201 2001-12-19  Paul Eggert  <eggert@twinsun.com>
74202
74203         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
74204         not silently exit merely because the output buffer happens to
74205         have nothing pending.
74206
74207 2001-12-18  Paul Eggert  <eggert@twinsun.com>
74208
74209         See the big note in ../ChangeLog.
74210         * lib/human.c (suffixes): Prefer K to k for 1024.
74211         (generate_suffix_backwards): New function.
74212         (human_readable_inexact): Use it.
74213         * lib/xstrtol.c (__xstrtol): If there is no number but there
74214         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
74215         Accept 'K' as well as 'k'.
74216
74217 2001-12-15  Jim Meyering  <meyering@lucent.com>
74218
74219         * lib/regex.h (__restrict_arr): Update from libc.
74220
74221         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
74222         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
74223         (STREQ): Define.
74224
74225 2001-12-14  Jim Meyering  <meyering@lucent.com>
74226
74227         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
74228         Suggestion from Bruno Haible.
74229
74230 2001-12-10  Jim Meyering  <meyering@lucent.com>
74231
74232         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
74233         xrealloc, Instead, include "xalloc.h".
74234         (initbuffer): Don't cast xmalloc return value to char*.
74235         (readline): Reword comment.
74236         Don't cast xrealloc return value to char*
74237         Return NULL, not 0.
74238
74239 2001-12-09  Jim Meyering  <meyering@lucent.com>
74240
74241         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
74242         about `signed and unsigned type in conditional expression'.
74243         * lib/posixtm.c (posix_time_parse): Likewise.
74244
74245         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
74246
74247         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
74248         to avoid a pedantic warning.
74249
74250         * lib/getstr.c: Don't include assert.h.
74251         (getstr): Remove warning-evoking assertions.
74252         Return -1 if offset parameter is out of bounds.
74253         Change the type of a local from int to size_t.
74254
74255         * lib/strftime.c (my_strftime_localtime_r): Include this function
74256         definition in the `#if ! HAVE_TM_GMTOFF' block.
74257
74258         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
74259         Include xalloc.h instead.
74260
74261 2001-12-02  Jim Meyering  <meyering@lucent.com>
74262
74263         * lib/tempname.c: Don't declare getenv, thus reverting the change of
74264         2001-11-18.  It's no longer necessary, now that stdlib.h is always
74265         included.
74266
74267         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
74268         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
74269
74270 2001-11-30  Akim Demaille  <akim@epita.fr>
74271
74272         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
74273         before being defined.
74274
74275 2001-11-27  Paul Eggert  <eggert@twinsun.com>
74276
74277         * lib/quotearg.h (quotearg_n, quotearg_n_style):
74278         First arg is int, not unsigned.
74279         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
74280         (SIZE_MAX, UINT_MAX): New macros.
74281         (quotearg_n_options): Abort if N is negative.
74282         Avoid overflow check on hosts where size_t is 64 bits and int
74283         is 32 bits, as overflow is impossible there.
74284         Fix off-by-one typo that caused unnecessary reallocation.
74285
74286 2001-11-27  Jim Meyering  <meyering@lucent.com>
74287
74288         * lib/tempname.c: Merge with version from libc.
74289         * lib/regex.c: Likewise.
74290
74291         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
74292         systems for which STDC_HEADERS is 0, it was not included, resulting in
74293         a warning about an integer-to-pointer conversion problem with getenv.
74294         Reported by Volker Borchert.
74295
74296 2001-11-26  Jim Meyering  <meyering@lucent.com>
74297
74298         * lib/gtod.h: Remove file.
74299         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
74300         * lib/gettimeofday.c: Don't include gtod.h.
74301         (GTOD_init): Remove function.
74302         (rpl_gettimeofday): Do its job here instead, rather than aborting.
74303         Suggestion from Volker Borchert.
74304
74305 2001-11-23  Jim Meyering  <meyering@lucent.com>
74306
74307         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
74308         it.
74309         * lib/hash.c (struct hash_table): Define it here instead.
74310
74311 2001-11-22  Jim Meyering  <meyering@lucent.com>
74312
74313         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
74314
74315 2001-11-20  Jim Meyering  <meyering@lucent.com>
74316
74317         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
74318         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
74319
74320 2001-11-19  Jim Meyering  <meyering@lucent.com>
74321
74322         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
74323         directory.  Use "conftestXXXXXX" as the template.
74324         Suggestion from Paul Eggert.
74325
74326         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
74327         immediately, so the test doesn't mistakenly hit the max-open-files
74328         limit.
74329
74330 2001-11-18  Paul Eggert  <eggert@twinsun.com>
74331
74332         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
74333         (TEMPORARIES): New macro.
74334         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
74335         removes an artificial limitation (e.g. HP-UX 10.20, where
74336         TMP_MAX is 17576).
74337
74338 2001-11-18  Jim Meyering  <meyering@lucent.com>
74339
74340         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
74341
74342 2001-11-18  Jim Meyering  <meyering@lucent.com>
74343
74344         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
74345         on SunOS 4.
74346
74347         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
74348         files will be created before anything else.
74349
74350 2001-11-17  Paul Eggert  <eggert@twinsun.com>
74351
74352         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
74353         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
74354
74355 2001-11-17  Jim Meyering  <meyering@lucent.com>
74356
74357         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
74358         Prompted by a report from Bob Proulx.
74359
74360         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
74361         Instead, require UTILS_FUNC_MKSTEMP.
74362
74363 2001-11-17  Jim Meyering  <meyering@lucent.com>
74364
74365         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
74366         Now, that's done as part of AC_FUNC_STRTOD.
74367
74368 2001-11-17  Jim Meyering  <meyering@lucent.com>
74369
74370         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
74371         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
74372         rather than group writable.  Patch by Juan F. Codagnone.
74373
74374         * lib/readtokens.c: Remove explicit declarations of xmalloc and
74375         xrealloc, Instead, include "xalloc.h".
74376
74377         * lib/mountlist.c: Include unlocked-io.h after all system headers.
74378         Remove explicit declarations of xmalloc, xrealloc,
74379         and xstrdup.  Instead, include "xalloc.h".
74380
74381         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
74382         unlocked-io.h.
74383         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
74384         Likewise.
74385         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
74386
74387         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
74388         Reported by Padraig Brady.
74389
74390         * lib/mkstemp.c: #undef mkstemp.
74391         Include config.h.
74392         (rpl_mkstemp): Rename from mkstemp.
74393         Protoize.
74394
74395 2001-11-16  Jim Meyering  <meyering@lucent.com>
74396
74397         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
74398         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
74399         determine the amount of total physical memory, use pstat_getstatic.
74400         HPUX-11 doesn't define _SC_PHYS_PAGES.
74401         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
74402         If sysconf couldn't be used to determine the amount of available
74403         physical memory, use both pstat_getstatic and pstat_getdynamic.
74404         Based on a patch from Bob Proulx.
74405
74406 2001-11-10  Jim Meyering  <meyering@lucent.com>
74407
74408         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
74409         (jm_PREREQ): Use it.
74410
74411 2001-11-09  Jim Meyering  <meyering@lucent.com>
74412
74413         * m4/jm-macros.m4: Require autoconf-2.52f.
74414         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
74415         Use these AC_-prefixed names, not the AM_-prefixed ones.
74416
74417         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
74418
74419 2001-11-05  Jim Meyering  <meyering@lucent.com>
74420
74421         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
74422
74423 2001-11-04  Jim Meyering  <meyering@lucent.com>
74424
74425         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
74426         $DEFS.
74427
74428 2001-11-03  Jim Meyering  <meyering@lucent.com>
74429
74430         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
74431         of AC_DEFUN.
74432
74433         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
74434         know the name of the variable in the macro definition.
74435
74436 2001-11-03  Jim Meyering  <meyering@lucent.com>
74437
74438         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
74439         in argmatch_to_argument call.
74440
74441         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
74442         argument.
74443
74444         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
74445         e.g., a fault due to an attempt to free a NULL pointer.
74446
74447 2001-11-01  Jim Meyering  <meyering@lucent.com>
74448
74449         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
74450         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
74451
74452 2001-11-01  Jim Meyering  <meyering@lucent.com>
74453
74454         * lib/dirfd.c, lib/dirfd.h: New files.
74455         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
74456
74457         * lib/hash.c (hash_print) [TESTING]: Clean up.
74458
74459 2001-10-22  Paul Eggert  <eggert@twinsun.com>
74460
74461         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
74462         to avoid a warning if -Wall.
74463
74464 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
74465
74466         * README: New file
74467         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
74468         (per RMS's instructions, this is now the canonical source)
74469         * lgpl/, gpl/: New directories.
74470
74471 2001-10-21  Paul Eggert  <eggert@twinsun.com>
74472
74473         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
74474
74475 2001-10-21  Jim Meyering  <meyering@lucent.com>
74476
74477         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
74478         this code would end up calling gettext even in packages built
74479         with --disable-nls.
74480         * lib/getopt.c (_): Likewise.
74481         * lib/regex.c (_): Likewise.
74482
74483 2001-10-20  Paul Eggert  <eggert@twinsun.com>
74484
74485         * m4/error.m4 (jm_PREREQ_ERROR):
74486         Do not invoke AC_CHECK_FUNCS with strerror_r, as
74487         AC_FUNC_STRERROR_R does that.
74488         Check for strerror declaration.
74489
74490         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
74491         are supposed to have them these days.
74492         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
74493         Merge changes from latest Autoconf CVS.
74494         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
74495         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
74496         POSIX decided to standardize on the int flavor of strerror_r.
74497
74498 2001-10-20  Paul Eggert  <eggert@twinsun.com>
74499
74500         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
74501         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
74502         Use strerror_r that is only a macro, even if it is not a function.
74503         (strerror): Check for HAVE_DECL_STRERROR before declaring.
74504         (private_strerror): Use prototypes, not old-style function definition.
74505         (print_errno_message): New function.
74506         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
74507         char*-flavored one.
74508         (error_tail, error, error_at_line): Use it.
74509
74510 2001-10-11  Jim Meyering  <meyering@lucent.com>
74511
74512         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
74513         and quote_n (1, ... to avoid clobbering a buffer.
74514
74515 2001-10-05  Jim Meyering  <meyering@lucent.com>
74516
74517         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
74518         hash-pjw.h.
74519         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
74520         * lib/hash-pjw.h: New file.
74521
74522 2001-09-30  Jim Meyering  <meyering@lucent.com>
74523
74524         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
74525         `struct fsstat' has the `f_fstypename' member.
74526         Use that to define FS_TYPE, which is now used to make
74527         the getfsstat link test tighter.
74528
74529 2001-09-30  Jim Meyering  <meyering@lucent.com>
74530
74531         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
74532         Include <sys/ucred.h>, for Apple Darwin.
74533         Include sys/mount.h and sys/fs_types.h only if available.
74534         (FS_TYPE): Define.
74535         (read_filesystem_list): Use FS_TYPE.
74536
74537 2001-09-29  Paul Eggert  <eggert@twinsun.com>
74538
74539         * lib/exclude.c (excluded_filename): 0 -> false, since it's
74540         a boolean context.
74541
74542 2001-09-29  Jim Meyering  <meyering@lucent.com>
74543
74544         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
74545         [one-argument getmntent function]): Include stdio.h before mntent.h.
74546         SunOS 4.1.x needs it for the declaration of `FILE'.
74547         Patch by Volker Borchert.
74548
74549         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
74550         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
74551         sys/fs_types.h, and make the link-test for getfsstat guard #include
74552         directives with appropriate #if HAVE_*_H tests so that we can
74553         detect getfsstat on Apple Darwin1.3.7 systems.
74554         Reported by Nelson Beebe.
74555         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
74556
74557 2001-09-28  Paul Eggert  <eggert@twinsun.com>
74558
74559         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
74560         #defines strtoimax.  Also treat the other strto* functions
74561         like strtoimax.
74562
74563         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
74564         Check for strtoul and strtoumax,
74565         as those declarations are made even in the signed case.
74566         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
74567         Likewise, for strtol and strtoimax.
74568
74569 2001-09-28  Paul Eggert  <eggert@twinsun.com>
74570
74571         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
74572         #defines strtoimax.  Also treat the other strto* functions
74573         like strtoimax.
74574
74575         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
74576         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
74577         (strtoimax, strtoumax): Do not declare if already defined as a macro.
74578
74579 2001-09-26  Jim Meyering  <meyering@lucent.com>
74580
74581         Most macros in unlocked-io.h had the wrong number of arguments.
74582         * lib/gen-uio: New script.
74583         (USE_UNLOCKED_IO): Define to 1 if not already defined.
74584         * lib/unlocked-io.hin: Remove file.
74585         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
74586         rather than trying to embed it here.
74587         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
74588         Reported by Padraig Brady.
74589
74590 2001-09-25  Volker Borchert  <bt@teknon.de>
74591
74592         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
74593         `result'.
74594
74595 2001-09-24  Jim Meyering  <meyering@lucent.com>
74596
74597         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
74598
74599 2001-09-23  Jim Meyering  <meyering@lucent.com>
74600
74601         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
74602         instead of the mere test for existence of mntent.h.  The latter
74603         would get a false-positive on AIX 3.4 systems.
74604         In the outer getmntent if-block, don't die if neither of the getmntent
74605         tests succeeds.  Instead, just fall through and continue with the
74606         remaining tests.
74607
74608 2001-09-23  Jim Meyering  <meyering@lucent.com>
74609
74610         * lib/mountlist.c: Remove useless parentheses in #if directives.
74611         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
74612         the deprecated MOUNTED symbol is no longer defined in mntent.h.
74613
74614 2001-09-22  Jim Meyering  <meyering@lucent.com>
74615
74616         * m4/gettext.m4: New file.  From gettext.
74617         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
74618         * m4/progtest.m4: Likewise
74619         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
74620         * m4/glibc21.m4: Likewise.
74621
74622         * m4/libintl.m4: Remove.  No longer used.
74623
74624 2001-09-22  Jim Meyering  <meyering@lucent.com>
74625
74626         * lib/localcharset.c: Update from latest gettext.
74627         * lib/config.charset: Likewise.
74628
74629 2001-09-20  Jim Meyering  <meyering@lucent.com>
74630
74631         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
74632         strtoimax.
74633         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
74634         strtoumax.
74635
74636 2001-09-20  Jim Meyering  <meyering@lucent.com>
74637
74638         * lib/xstrtol.c (strtoimax): Guard declaration with
74639         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
74640         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
74641         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
74642         (strtoumax): Likewise, for completeness (it wasn't necessary).
74643
74644 2001-09-17  Paul Eggert  <eggert@twinsun.com>
74645
74646         * lib/strtoimax.c (HAVE_LONG_LONG):
74647         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
74648         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
74649         to work around bug in IBM C compiler.
74650
74651 2001-09-17  Jim Meyering  <meyering@lucent.com>
74652
74653         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
74654         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
74655         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
74656         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
74657         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
74658         whenever the right hand side need not be expanded by the shell.
74659
74660 2001-09-16  Paul Eggert  <eggert@twinsun.com>
74661
74662         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
74663         library.  It's not correct, as some older glibcs are buggy.
74664         fnmatch wasn't fixed until glibc 2.2.
74665
74666         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
74667         special shell magic here.
74668
74669 2001-09-16  Jim Meyering  <meyering@lucent.com>
74670
74671         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
74672         * m4/jm-macros.m4: Require it.
74673
74674 2001-09-16  Jim Meyering  <meyering@lucent.com>
74675
74676         * lib/mkdir.c: New file.
74677
74678 2001-09-15  Jim Meyering  <meyering@lucent.com>
74679
74680         * m4/jm-macros.m4: Check for help2man.
74681
74682 2001-09-11  Jim Meyering  <meyering@lucent.com>
74683
74684         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
74685         The body, by Paul Eggert, was moved here from configure.in.
74686         * m4/jm-macros.m4: Require UTILS_HOST_OS.
74687
74688 2001-09-04  Paul Eggert  <eggert@twinsun.com>
74689
74690         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
74691         (jm_PREREQ): Use it.
74692
74693 2001-09-04  Paul Eggert  <eggert@twinsun.com>
74694
74695         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
74696         Use ssize_t, not int, to store result of readlink.
74697         Check for ssize_t overflow as well as size_t overflow,
74698         as POSIX says the result of readlink is implementation-defined
74699         when ssize_t overflows.
74700         Remove unnecessary cast to char*.
74701         Use free+malloc instead of realloc, as the storage doesn't need
74702         to be preserved and it's clearer and can be more efficient that way.
74703         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
74704         * lib/xreadlink.h (xreadlink): Update prototype.
74705
74706 2001-09-04  Paul Eggert  <eggert@twinsun.com>
74707
74708         * lib/xgetcwd.c: Revert some of the previous change; intead,
74709         fix the HAVE_GETCWD_NULL code to behave more like the
74710         !HAVE_GETCWD_NULL code used to.
74711
74712         Include "xalloc.h".
74713         (xgetcwd): Do not return NULL when memory is exhausted; instead,
74714         invoke xalloc_die.
74715
74716 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74717
74718         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
74719         sys/param.h, as pathmax.h includes them.
74720
74721 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74722
74723         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
74724         (jm_PREREQ_XGETCWD): New macro.
74725
74726         * m4/getcwd.m4: New file.
74727
74728 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74729
74730         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
74731         like the HAVE_GETCWD_NULL code.
74732         Include pathmax.h if not HAVE_GETCWD.
74733         Do not include xalloc.h.
74734         (INITIAL_BUFFER_SIZE): New symbol.
74735         Do not use xmalloc / xrealloc, since the caller is responsible for
74736         handling errors.  Preserve errno around `free' during failure.
74737         Do not overrun buffer when using getwd.
74738
74739 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74740
74741         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
74742         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
74743         getcwd (NULL, 0).
74744
74745 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74746
74747         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
74748         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
74749         spotted by Jim Meyering.
74750
74751 2001-09-03  Jim Meyering  <meyering@lucent.com>
74752
74753         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
74754         failure.
74755
74756 2001-09-02  Jim Meyering  <meyering@lucent.com>
74757
74758         * lib/error.c: Update from GNU libc.
74759
74760 2001-09-01  Jim Meyering  <meyering@lucent.com>
74761
74762         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
74763         Used by df.
74764
74765 2001-09-01  Jim Meyering  <meyering@lucent.com>
74766
74767         * lib/xreadlink.c: New file.
74768         * lib/xreadlink.h: New file.
74769         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
74770         xreadlink.h.
74771
74772         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
74773         doesn't conflict with sparc Solaris 7's definition in
74774         /usr/include/sys/int_types.h.
74775
74776         * lib/exclude.c: Use `""', not `<>' to #include non-system header
74777         files.
74778         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
74779         and strncasecmp as r-values.  Unixware didn't have declarations.
74780
74781 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74782
74783         * lib/xstrtol.h: Add copyright notice.
74784         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
74785         LONGINT_INVALID_SUFFIX_CHAR.
74786
74787 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74788
74789         * lib/xstrtol.c (strtoimax): New decl.
74790
74791 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74792
74793         * lib/xgetcwd.c: Don't include pathmax.h.
74794         Include stdlib.h and unistd.h if available.
74795         Include xalloc.h.
74796         (xmalloc, xstrdup, free): Remove decls.
74797         (xgetcwd): Don't assume sizes fit in unsigned.
74798         Check for overflow when computing sizes.
74799         Simplify reallocation code.
74800
74801 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74802
74803         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
74804         a directory's st_size can have an arbitrary value, so the old
74805         usage could waste an arbitrary amount of memory.  All uses
74806         changed.
74807         * lib/savedir.h: Update prototype.
74808
74809 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74810
74811         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
74812
74813         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
74814         old strtoimax.c.
74815
74816         Also, make the following further changes to make this file's
74817         configuration more similar to that of strtol.c:
74818         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
74819         (strtoumax, uintmax_t, strtoull, strtol): Remove.
74820         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
74821         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
74822         changed to signed values.
74823
74824         And make the following changes as well:
74825         Fix copyright notice, as 1999 was missing.
74826         (verify): New macro.
74827         (strtoimax): Check sizes at compile-time, not run-time.
74828         Prefer strtol to strtoll if both work.
74829         (main): Remove; it was not that useful and was a pain to maintain.
74830
74831         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
74832
74833 2001-08-31  Jim Meyering  <meyering@lucent.com>
74834
74835         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
74836         Use an initial, malloc'd, buffer of length 128 rather than
74837         a statically allocated one of length 1024.
74838
74839 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74840
74841         Simplify code, partly by assuming autoconf 2.52 semantics.
74842
74843         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
74844
74845         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
74846         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
74847         All uses removed.
74848         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
74849         Move AC_REQUIRE to next-to-top level, to avoid confusion.
74850         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
74851         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
74852         jm_AC_HEADER_INTTYPES_H.
74853         * m4/jm-macros.m4 (jm_MACROS): Likewise.
74854
74855         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
74856
74857         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
74858         Quote first arg of AC_DEFUN.
74859         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
74860         since they are needed to parse the include file even if we need
74861         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
74862         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
74863         but with opposite signedness.
74864
74865 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74866
74867         Merge 'exclude' changes from tar 1.13.22.
74868         This fixes one or two unlikely storage allocation overflow bugs,
74869         but doesn't change user-visible behavior otherwise.
74870
74871 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74872
74873         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
74874         (jm_PREREQ_EXCLUDE): New macro.
74875
74876 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74877
74878         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
74879         tm to be declared.
74880
74881 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74882
74883         * lib/hash.c: Remove '2001' from copyright notice.
74884
74885 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74886
74887         * lib/full-write.h: New file.
74888         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
74889         * lib/full-write.c: Correct credits, as cccp.c no longer
74890         exists and anyway it was so heavily changed from the old cccp
74891         code as to be unrecognizable.  Include full-write.h.
74892         (full_write) Return size_t, with short writes meaning failure.
74893         All callers changed.  This fixes a bug with large buffers
74894         on 64-bit hosts.
74895         * lib/utime.c: Include full-write.h.
74896
74897 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74898
74899         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
74900         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
74901         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
74902         Include if available.
74903         (<xalloc.h>): Include
74904         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
74905         (verify): New macro.  Use it to verify that EXCLUDE macros do not
74906         collide with FNM macros.
74907         (struct patopts): New struct.
74908         (struct exclude): Use it, as exclude patterns now come with options.
74909         (new_exclude): Support above changes.
74910         (new_exclude, add_exclude_file):
74911         Initial size must now be a power of two to simplify overflow checking.
74912         (free_exclude, fnmatch_no_wildcards): New function.
74913         (excluded_filename): No longer requires options arg, as the options
74914         are determined by add_exclude.  Now returns bool, not int.
74915         (excluded_filename, add_exclude):
74916         Add support for the fancy new exclusion options.
74917         (add_exclude, add_exclude_file): Now takes int options arg.
74918         Check for arithmetic overflow when computing sizes.
74919         (add_exclude_file): xrealloc might modify errno, so don't
74920         realloc until after errno might be used.
74921
74922         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
74923         New macros.
74924         (free_exclude): New decl.
74925         (add_exclude, add_exclude_file): Now takes int options arg.
74926         (excluded_filename): No longer requires options arg, as the options
74927         are determined by add_exclude.  Now returns bool, not int.
74928
74929 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74930
74931         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
74932
74933 2001-08-27  Jim Meyering  <meyering@lucent.com>
74934
74935         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
74936
74937         * lib/version-etc.c (N_): Remove definition.
74938         Revert most of last change.
74939         Instead, simply don't mark the `Copyright...' string for translation.
74940         Based on advice from Paul Eggert.
74941
74942         * lib/strtoxmax.c: Tweak comment.
74943
74944 2001-08-26  Jim Meyering  <meyering@lucent.com>
74945
74946         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
74947
74948         * m4/xstrtoimax.m4: New file.
74949         * m4/xstrtoumax.m4: Add comments explaining why we
74950         AC_REPLACE_FUNCS(strtol).
74951
74952 2001-08-26  Jim Meyering  <meyering@lucent.com>
74953
74954         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
74955         of copyright with `%s' so translators don't get an untranslated
74956         message in 2002.
74957         (COPYRIGHT_YEAR): Define.
74958         (version_etc): Use fprintf rather than fputs.
74959         Suggestion from Ulrich Drepper.
74960
74961         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
74962
74963         * lib/strtoll.c: New file, from GNU libc.
74964         * lib/xstrtoimax.c: New file.
74965
74966         * lib/xstrtol.h: Add xstrtoimax.
74967         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
74968         * lib/strtoimax.c: New file.  Likewise, but first define
74969         STRTOUXMAX_SIGNED.
74970
74971         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
74972         ...
74973         * lib/strtoxmax.c: ... then renamed to this.
74974
74975 2001-08-18  Paul Eggert  <eggert@twinsun.com>
74976
74977         * m4/inttypes.m4: Add AC_PREREQ(2.13).
74978         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
74979         (jm_AC_TYPE_INTMAX_T): New macro.
74980         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
74981
74982         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
74983
74984         * m4/longlong.m4: Renamed from ulonglong.m4.
74985         * m4/inttypes.m4: Renamed from inttypes_h.m4.
74986         * m4/uintmax_t.m4: Removed.
74987
74988 2001-08-13  Paul Eggert  <eggert@twinsun.com>
74989
74990         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
74991         Port to Solaris 8, where 'sed' requires a space after the 'r'
74992         command, and where sh dislikes "$/".  Clean up the spacing a bit.
74993         Redirect output to $tmp just once.
74994
74995 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
74996
74997         * lib/addext.c (<errno.h>): Include.
74998         (errno): Declare if not defined.
74999         (addext): Work correctly when pathconf returns -1 and leaves
75000         errno alone because there is no limit.  Also, work even if
75001         pathconf returns a value greater than SIZE_MAX.
75002
75003 2001-08-12  Jim Meyering  <meyering@lucent.com>
75004
75005         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
75006         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
75007         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
75008         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
75009         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
75010         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
75011         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
75012         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
75013         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
75014         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
75015         utime.m4, utimes.m4, xstrtoumax.m4:
75016         Quote the first argument in each use of AC_DEFUN.
75017
75018 2001-08-12  Jim Meyering  <meyering@lucent.com>
75019
75020         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
75021         Simply `return getcwd (NULL, 0);'.
75022         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
75023         Use 1300 as initial value for length, not PATH_MAX.
75024
75025         * lib/pathmax.h: Clean up cpp syntax.
75026
75027 2001-08-12  Jim Meyering  <meyering@lucent.com>
75028
75029         * lib/gettimeofday.c: New file.
75030         * lib/gtod.h: New file.
75031         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
75032
75033 2001-08-05  Jim Meyering  <meyering@lucent.com>
75034
75035         * m4/jm-macros.m4: Require autoconf-2.52.
75036
75037 2001-08-04  Jim Meyering  <meyering@lucent.com>
75038
75039         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
75040         stmt, to get in sync with glibc.
75041
75042 2001-08-03  Paul Eggert  <eggert@twinsun.com>
75043
75044         The following changes are from gettext 0.10.39 as maintained by
75045         Bruno Haible.
75046
75047         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
75048         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
75049         with inverted sense.  All uses changed.
75050
75051         * lib/mbswidth.c: Don't include <limits.h>.
75052         Include <stdlib.h> and <string.h> unconditionally.
75053         (iswcntrl, mbsinit, ISCNTRL): New macros.
75054         (mbsnwidth): Use K&R style function declarations.
75055         Don't bother checking for MB_LEN_MAX == 1, since the compiler
75056         can optimize it when MB_CUR_MAX == 1.
75057         The width of control characters is zero, not 1.
75058
75059 2001-08-03  Paul Eggert  <eggert@twinsun.com>
75060
75061         The following changes are from gettext 0.10.39 as maintained by
75062         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
75063
75064         * m4/codeset.m4: Upgrade to serial AM1.
75065         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
75066         all uses changed.  Quote first arg of AC_DEFUN.
75067         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
75068
75069         * m4/iconv.m4: Upgrade to serial AM2.
75070         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
75071         Add --with-libconv-prefix.
75072         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
75073         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
75074         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
75075         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
75076         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
75077
75078         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
75079         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
75080         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
75081         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
75082         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
75083         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
75084         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
75085         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
75086         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
75087
75088         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
75089         string.h any more.
75090
75091         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
75092         not the default value.
75093
75094         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
75095         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
75096         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
75097         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
75098         Also check for iswcntrl, used for wcwidth fallback.
75099         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
75100         to Autoconf 2.13.
75101
75102 2001-08-03  Jim Meyering  <meyering@lucent.com>
75103
75104         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
75105         as it was in the original.  Reported by Paul Eggert.
75106
75107 2001-07-16  Jim Meyering  <meyering@lucent.com>
75108
75109         * m4/gettimeofday.m4: New file.
75110         Prompted by a report from Bernhard Baehr.
75111
75112 2001-07-15  Jim Meyering  <meyering@lucent.com>
75113
75114         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
75115         stuff. Now it's in ../Makefile.cfg.
75116
75117 2001-07-15  Jim Meyering  <meyering@lucent.com>
75118
75119         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
75120         (BUILT_SOURCES): Add unlocked-io.h.
75121         (io_functions): Define.
75122         (unlocked-io.h): New rule.
75123         (DISTCLEANFILES): Add unlocked-io.h.
75124         (all-local): Depend on unlocked-io.h, to ensure it is created.
75125
75126         * lib/unlocked-io.hin: New file
75127
75128         * lib/regex.c: Update from glibc.
75129
75130 2001-07-05  Jim Meyering  <meyering@lucent.com>
75131
75132         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
75133         recommendation.
75134         (libfetish_a_SOURCES): Put all .h files here instead.
75135         Remove a thus-exposed (better checks in automake) duplicate and
75136         two unnecessary .h files.
75137
75138 2001-07-04  Jim Meyering  <meyering@lucent.com>
75139
75140         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
75141         that generates jm-glibc-io.m4 so that it doesn't trigger any make
75142         distcheck failure.
75143
75144 2001-07-02  Jim Meyering  <meyering@lucent.com>
75145
75146         The following changes were prompted by suggestions from Bruno Haible.
75147
75148         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
75149         is now generated.
75150         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
75151         definition of EXTRA_DIST.
75152         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
75153         ensure that the generated file is created/updated whenever the list
75154         of $(unlocked_functions) is changed.
75155         (jm-glibc-io.m4): New rule.
75156         (unlocked-io.h): New rule -- currently unused.
75157
75158 2001-06-24  Jim Meyering  <meyering@lucent.com>
75159
75160         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
75161         unmatched right bracket, rather than kludging it with an extra,
75162         falsely-matching quote in a comment.  Patch by Akim Demaille.
75163
75164 2001-06-11  Jim Meyering  <meyering@lucent.com>
75165
75166         * lib/regex.c: Update from GNU libc.
75167
75168 2001-05-27  Jim Meyering  <meyering@lucent.com>
75169
75170         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
75171         Check for ut_type in struct utmp.
75172
75173 2001-05-27  Jim Meyering  <meyering@lucent.com>
75174
75175         * lib/readutmp.h (UT_TYPE): Define.
75176
75177 2001-05-24  Jim Meyering  <meyering@lucent.com>
75178
75179         * lib/argmatch.c: Include "quote.h".
75180         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
75181         quote function.  Reported by Göran Uddeborg.
75182
75183 2001-05-22  Jim Meyering  <meyering@lucent.com>
75184
75185         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
75186         now that we use the package-supplied version unconditionally.
75187         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
75188
75189 2001-05-21  Jim Meyering  <meyering@lucent.com>
75190
75191         * m4/regex.m4: Change a couple backticks to single quotes to avoid
75192         shell syntax errors.
75193
75194 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
75195
75196         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
75197
75198 2001-05-20  Paul Eggert  <eggert@twinsun.com>
75199
75200         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
75201         Don't bother to check library strftime, since
75202         we'll be using our own my_strftime function anyway.
75203         Define my_strftime instead of strftime.
75204
75205 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
75206
75207         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
75208         which is not yet declared.
75209
75210 2001-05-15  Jim Meyering  <meyering@lucent.com>
75211
75212         * m4/regex.m4: Use proper quoting so brackets appear in the test
75213         program.
75214         Reported by, and with help from, Bruno Haible.
75215
75216 2001-05-13  Jim Meyering  <meyering@lucent.com>
75217
75218         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
75219         undefined.
75220
75221 2001-05-11  Paul Eggert  <eggert@twinsun.com>
75222
75223         dirname code cleanup.  base_name now behaves more compatibly
75224         with POSIX basename when given file names that have trailing
75225         slashes, and similarly for dir_name.  Add new primitives
75226         base_len and dir_len.  Put the directory-name-related decls
75227         into dirname.h.
75228
75229         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
75230         * lib/backupfile.c (base_name): Likewise.
75231         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
75232         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
75233         * lib/makepath.c (strip_trailing_slashes): Likewise.
75234         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
75235         ISSLASH): Likewise.
75236         * lib/rename.c (strip_trailing_slashes): Likewise.
75237         * lib/same.c (base_name): Likewise.
75238         * lib/stripslash.c (ISSLASH): Likewise.
75239
75240         * lib/addext.c: Include <dirname.h> after size_t is defined.
75241         * lib/backupfile.c: Likewise.
75242
75243         * lib/addext.c (addext): Use base_len to trim redundant
75244         trailing slashes instead of doing it ourselves.
75245         But do not trim the last slash if it is not redundant.
75246
75247         * lib/backupfile.c (find_backup_file_name,
75248         max_backup_version): Use base_len instead of rolling it ourselves.
75249         Handle the case of "" and (on DOS) "C:" correctly.
75250
75251         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
75252         needed. Include <string.h>, <dirname.h>.
75253         (base_name): Allow file names ending in slashes, other than names
75254         that are all slashes.  In this case, return the basename followed
75255         by the slashes.  This is more general, and can be used in places
75256         where the original base_name purposely had an assertion failure.
75257         (base_len): New function.
75258
75259         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
75260         Do not include <assert.h>; no longer needed.
75261         Include xalloc.h.
75262         (memrchr): Remove decl.
75263         (dir_name_r): Remove.
75264         (dir_len): Renamed from dirlen.  All callers changed.
75265         Rewrite in terms of base_name, for simplicity and consistency.
75266         (dir_name): Never return NULL.  All callers changed.
75267         Do not include <stdlib.h> in test program; no longer needed.
75268         return 0; is fine for test program.
75269
75270         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
75271         New macros.
75272         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
75273
75274         * lib/path-concat.c (path_concat): Use base_len to compute
75275         base length, not strlen; this means we cannot rely on memcpy
75276         to null-terminate.
75277
75278         * lib/same.c (STREQ): Remove.
75279         (same_name): Handle the case where the basename ends in trailing '/'.
75280
75281         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
75282         a slash was stripped.  Do not strip the last slash after a
75283         file system prefix.
75284
75285 2001-05-11  Paul Eggert  <eggert@twinsun.com>
75286
75287         * lib/Makefile.am (libfetish_a_SOURCES):
75288         Add strftime.c, since we now compile it on all hosts.
75289
75290         * lib/strftime.c (my_strftime):
75291         Define to nstrftime if emacs, but only if my_strftime is not defined.
75292         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
75293         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
75294         Add one more extra argument: a nanoseconds value.
75295         All uses changed.
75296         (ns): New macro.
75297         (my_strftime function): Add %N format.
75298         (emacs_strftimeu): Renamed from emacs_strftime,
75299         with extra ut argument.
75300
75301 2001-05-09  Paul Eggert  <eggert@twinsun.com>
75302
75303         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
75304
75305 2001-04-21  Jim Meyering  <meyering@lucent.com>
75306
75307         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
75308         doesn't interfere.
75309
75310 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
75311
75312         * m4/ftruncate.m4: Check for chsize.
75313         Link with ftruncate.o unconditionally if ftruncate is missing.
75314         This was required when cross-compiling to i586-mingw32msvc.
75315
75316 2001-04-08  Jim Meyering  <meyering@lucent.com>
75317
75318         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
75319         recomputed; that's necessary when the offset spans a DST transition.
75320         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
75321
75322 2001-04-02  Jim Meyering  <meyering@lucent.com>
75323
75324         * lib/regex.h, regex.c: Update from GNU libc.
75325
75326 2001-03-24  Jim Meyering  <meyering@lucent.com>
75327
75328         * m4/jm-macros.m4: Require autoconf-2.49d.
75329
75330 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
75331
75332         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
75333
75334 2001-03-19  Paul Eggert  <eggert@twinsun.com>
75335
75336         * lib/version-etc.c (version_etc_copyright): Update to 2001.
75337
75338 2001-03-17  Jim Meyering  <meyering@lucent.com>
75339
75340         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
75341         now that the version in autoconf is equivalent.
75342         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
75343
75344         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
75345         Suggestion from Akim Demaille.
75346
75347         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
75348         (jm_PREREQ_TEMPNAME): New function.
75349
75350 2001-03-16  Paul Eggert  <eggert@twinsun.com>
75351
75352         * lib/tempname.c (uint64_t): Define to uintmax_t if
75353         not defined, and if UINT64_MAX is not defined.
75354         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
75355         Reported by John David Anglin.
75356
75357 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
75358
75359         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
75360         resolve alias if codeset is empty.
75361         * lib/config.charset (BeOS): Use wildcard syntax.
75362
75363 2001-03-13  Jim Meyering  <meyering@lucent.com>
75364
75365         * lib/path-concat.c (path_concat)
75366         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
75367         concatenating e.g., `C:' and `foo'.
75368         From Bruno Haible.
75369
75370 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
75371
75372         * lib/localcharset.c (locale_charset): Don't use
75373         setlocale(LC_CTYPE,NULL). Don't return NULL.
75374         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
75375
75376 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
75377
75378         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
75379         support for DOS/DJGPP.
75380
75381 2001-03-01  Paul Eggert  <eggert@twinsun.com>
75382
75383         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
75384         lacks mkstemp.  Compile our own tempname.c if we compile our own
75385         mkstemp.c, as mkstemp relies on tempname.
75386
75387 2001-03-01  Jim Meyering  <meyering@lucent.com>
75388
75389         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
75390         AH_VERBATIM really does output its argument verbatim.
75391
75392 2001-02-28  Paul Eggert  <eggert@twinsun.com>
75393
75394         * lib/Makefile.am (libfetish_a_SOURCES):
75395         Add dup-safer.c, fopen-safer.c.
75396         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
75397
75398         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
75399         * lib/unistd-safer.h: New files.
75400
75401 2001-02-25  Paul Eggert  <eggert@twinsun.com>
75402
75403         The mkstemp replacement is taken from glibc 2.2.2, with some
75404         portability fixes for use outside glibc, as follows:
75405
75406         * lib/tempname.c (struct_stat64): New macro.
75407         (direxists, __gen_tempname): Use it.
75408         This avoids a portability problem with Solaris 8.
75409
75410         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
75411         (<stddef.h>, <stdint.h>, <string.h>):
75412         Include only if STDC_HEADERS || _LIBC.
75413         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
75414         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
75415         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
75416         (__set_errno): Define this macro if <errno.h> doesn't.
75417         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
75418         Define these macros if <stdio.h> doesn't.
75419         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
75420         Define these macros if <sys/stat.h>
75421         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
75422         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
75423         __xstat64): Define if not _LIBC.
75424         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
75425         (__gen_tempname): Invoke gettimeofday only if
75426         HAVE_GETTIMEOFDAY || _LIBC;
75427         otherwise, fall back on plain "time".
75428         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
75429
75430         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
75431
75432         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
75433
75434 2001-02-18  Paul Eggert  <eggert@twinsun.com>
75435
75436         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
75437
75438 2001-02-17  Paul Eggert  <eggert@twinsun.com>
75439
75440         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
75441         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
75442         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
75443         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
75444
75445 2001-02-17  Paul Eggert  <eggert@twinsun.com>
75446
75447         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
75448         Remove workaround macros for hosts that have mbrtowc but not
75449         mbstate_t, as we now insist on proper declarations for both
75450         before using mbrtowc.
75451
75452 2001-02-17  Jim Meyering  <meyering@lucent.com>
75453
75454         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
75455         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
75456         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
75457         UnixWare 7.1.1.
75458
75459         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
75460         rather than AC_CACHE_VAL.
75461
75462 2001-02-17  Jim Meyering  <meyering@lucent.com>
75463
75464         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
75465         around included file name.
75466
75467         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
75468
75469         * lib/strftime.c: Update from GNU libc (the only changes were to
75470         comments).
75471
75472 2001-02-17  Jim Meyering  <meyering@lucent.com>
75473
75474         * lib/regex.c: Update from libc.
75475
75476 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
75477
75478         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
75479         clash.
75480
75481 2001-02-16  Paul Eggert  <eggert@twinsun.com>
75482
75483         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
75484         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
75485         Reported by Mark Hounschell via Paul Eggert.
75486
75487 2001-02-07  Jim Meyering  <meyering@lucent.com>
75488
75489         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
75490
75491 2001-02-05  Jim Meyering  <meyering@lucent.com>
75492
75493         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
75494         it includes the patch required for `large file' support with at least
75495         HP-UX's 10.20 /bin/cc.
75496
75497 2001-02-03  Jim Meyering  <meyering@lucent.com>
75498
75499         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
75500         AS_IF, now that it works once again (mysteriously).
75501         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
75502
75503 2001-01-30  Jim Meyering  <meyering@lucent.com>
75504
75505         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
75506         * m4/chown.m4: Rename conftestchown to conftest.chown.
75507         * m4/rename.m4: s/conftestdir/conftest.d1/ and
75508         s/conftestdir2/conftest.d2/.
75509         * m4/utimes.m4: s/conftestdata/conftest.data/
75510         Inspired by Pavel Roskin's change in autoconf.
75511
75512 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
75513
75514         * lib/config.charset: Update for FreeBSD 4.2.
75515
75516 2001-01-27  Jim Meyering  <meyering@lucent.com>
75517
75518         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
75519         a use of AS_IF.
75520         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
75521
75522 2001-01-26  Jim Meyering  <meyering@lucent.com>
75523
75524         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
75525         quotearg.c includes it.
75526
75527 2001-01-26  Jim Meyering  <meyering@lucent.com>
75528
75529         * lib/quotearg.c: Include stddef.h.
75530         * lib/quote.c: Include stddef.h.
75531         Reported by Axel Kittenberger.
75532
75533         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
75534         line in double quotes so that it evokes a better diagnostic.
75535         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
75536         Reported by Axel Kittenberger.
75537
75538 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
75539
75540         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
75541         as if it was a `charset'.
75542
75543 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
75544
75545         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
75546         has const.
75547
75548 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
75549
75550         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
75551         to avoid a warning.  Add back 'const' to inptr.
75552
75553 2001-01-20  Jim Meyering  <meyering@lucent.com>
75554
75555         Be sure that headers are checked before used in code compiled
75556         for the type checks.
75557         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
75558         In place of that, invoke jm_CHECK_ALL_TYPES.
75559         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
75560         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
75561         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
75562         The check for ssize_t was mistakenly run before the test for unistd.h.
75563
75564         The configure-time check for stdbool.h was missing.
75565         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
75566         (jm_PREREQ_HASH): New function.
75567
75568 2001-01-17  Jim Meyering  <meyering@lucent.com>
75569
75570         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
75571         for autoconf-2.49c.
75572         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
75573
75574 2001-01-16  Jim Meyering  <meyering@lucent.com>
75575
75576         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
75577         From Bruno Haible.
75578
75579 2001-01-14  Jim Meyering  <meyering@lucent.com>
75580
75581         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
75582         foo and bar.  Create conftestdir/ in the script, not in the C code.
75583         Remove directories in the script, not in the C code.
75584         Remove conftestdir{,2} before trying to create the directory.
75585         Make the entire configure script fail if the mkdir fails.
75586
75587 2001-01-14  Jim Meyering  <meyering@lucent.com>
75588
75589         * lib/rename.c: New file.  From Volker Borchert.
75590         Include stdlib.h, string.h or strings.h, and xalloc.h.
75591         Use strip_trailing_slashes rather than open-coding it.
75592
75593 2001-01-03  Paul Eggert  <eggert@twinsun.com>
75594
75595         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
75596
75597 2001-01-03  Jim Meyering  <meyering@lucent.com>
75598
75599         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
75600         of local `inptr' to avoid warning with some system declarations of
75601         iconv.
75602
75603 2001-01-02  Volker Borchert  <bt@teknon.de>
75604
75605         * m4/rename.m4: New file.
75606         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
75607
75608 2001-01-01  Jim Meyering  <meyering@lucent.com>
75609
75610         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
75611         even on systems with utmpx.h.  It's necessary for the declaration of
75612         utmp's ut_user member.  Reported by Andreas Jaeger.
75613
75614         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
75615         available. They are required for the declarations of getgrgid and
75616         getpwuid resp.
75617         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
75618         Reported by Andreas Jaeger.
75619
75620 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
75621
75622         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
75623         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
75624         so `make install' also works in VPATH builds.
75625
75626 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
75627
75628         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
75629         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
75630         can be used in subdirectories.
75631
75632 2000-12-29  Paul Eggert  <eggert@twinsun.com>
75633
75634         * lib/modechange.c: Do not assume that mode_t uses the
75635         traditional octal encoding.  E.g. "chmod 1 FOO" should set
75636         the other-execute bit of FOO even if S_IXOTH != 1.
75637
75638         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
75639         WOTH, XOTH, ALLM): New macros.
75640         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
75641          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
75642         Use them.
75643         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
75644         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
75645         (mode_compile):
75646         No need to use uintmax_t; unsigned long is long enough.
75647         Don't bother to get suffix since we don't use it.
75648
75649 2000-12-26  Jim Meyering  <meyering@lucent.com>
75650
75651         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
75652         better with autoheader.
75653
75654 2000-12-24  Jim Meyering  <meyering@lucent.com>
75655
75656         * lib/hash.c (is_prime): Return explicit boolean values.
75657         (hash_get_first): Return NULL to appease Irix5.6's 89.
75658         Reported by Nelson Beebe.
75659
75660 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
75661
75662         * lib/localcharset.c (locale_charset): Add support for Win32.
75663
75664 2000-12-18  Paul Eggert  <eggert@twinsun.com>
75665
75666         * lib/physmem.h, lib/physmem.c: New files.
75667
75668         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
75669         (noinst_HEADERS): Add physmem.h.
75670
75671         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
75672         't' for compatibility with Solaris 8 sort.
75673
75674 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
75675
75676         * lib/config.charset: Add support for BeOS.
75677
75678 2000-12-17  Jim Meyering  <meyering@lucent.com>
75679
75680         * m4/dos.m4 (jm_AC_DOS): New file and macro.
75681         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
75682
75683 2000-12-16  Jim Meyering  <meyering@lucent.com>
75684
75685         This bug had a serious impact on chown: `chown N:M FILE' (for integer
75686         N and M) would have treated it like `chown N:N FILE'.
75687
75688         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
75689
75690 2000-12-16  Jim Meyering  <meyering@lucent.com>
75691
75692         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
75693         SHELLS_FILE to a file name that's useful on djgpp systems.
75694         Include stdlib.h.
75695         (ADDITIONAL_DEFAULT_SHELLS): Define.
75696         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
75697         Based mostly on a patch from Prashant TR.
75698
75699 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
75700
75701         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
75702         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
75703         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
75704
75705 2000-12-08  Andreas Schwab  <schwab@suse.de>
75706
75707         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
75708         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
75709
75710 2000-12-07  Jim Meyering  <meyering@lucent.com>
75711
75712         * lib/stripslash.c (ISSLASH): Define.
75713         (strip_trailing_slashes): Use ISSLASH rather than comparing against
75714         `/'.
75715         From Prashant TR.
75716
75717         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
75718         (dir_name_r): Declare this function as static.
75719         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
75720         manifest itself on a name containing a mix of slashes and
75721         backslashes.
75722         Make this function work with names starting with a DOS-style
75723         drive letter and colon prefix.
75724         (dir_name): Append `.' if necessary.
75725         Based mostly on patches from Prashant TR and Eli Zaretskii.
75726
75727         * lib/dirname.h (dir_name_r): Remove prototype.
75728
75729 2000-12-06  Paul Eggert  <eggert@twinsun.com>
75730
75731         * m4/off_t-format.m4: Remove this file.
75732         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
75733
75734 2000-12-06  Jim Meyering  <meyering@lucent.com>
75735
75736         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
75737         replacement strtoull, we may well need the replacement strtoul, too.
75738         Check for declarations of strtoul and strtoull.
75739         Check for strtol.  Mainly as a cue to cause automake to include
75740         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
75741         Check for limits.h -- strtol.c needs it.
75742
75743 2000-12-05  Jim Meyering  <meyering@lucent.com>
75744
75745         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
75746
75747 2000-12-04  Jim Meyering  <meyering@lucent.com>
75748
75749         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
75750         Also include memory.h, stdlib.h, unistd.h if appropriate.
75751         Reported by Andreas Jaeger (conflicting declaration of malloc).
75752
75753 2000-12-02  Jim Meyering  <meyering@lucent.com>
75754
75755         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
75756         * m4/jm-macros.m4 (jm_MACROS): require it.
75757
75758 2000-12-02  Jim Meyering  <meyering@lucent.com>
75759
75760         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
75761
75762 2000-12-01  Paul Eggert  <eggert@twinsun.com>
75763
75764         * lib/memrchr.c: Include <config.h> before any system include file.
75765
75766 2000-11-30  Jim Meyering  <meyering@lucent.com>
75767
75768         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
75769
75770 2000-11-30  Jim Meyering  <meyering@lucent.com>
75771
75772         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
75773
75774 2000-11-29  Paul Eggert  <eggert@twinsun.com>
75775
75776         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
75777
75778 2000-11-26  Jim Meyering  <meyering@lucent.com>
75779
75780         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
75781
75782 2000-11-22  Paul Eggert  <eggert@twinsun.com>
75783
75784         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
75785         size of (size_t) -1; it's not portable.
75786
75787 2000-11-17  Jim Meyering  <meyering@lucent.com>
75788
75789         * lib/strstr.c: Update from GNU libc.
75790
75791 2000-11-17  Akim Demaille  <akim@epita.fr>
75792
75793         * lib/obstack.h: Formatting changes.
75794         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
75795         prevent type checking.
75796         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
75797         cast the value to (void *): assigning a `foo *' to a `void *'
75798         variable is valid.
75799         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
75800
75801 2000-11-16  Jim Meyering  <meyering@lucent.com>
75802
75803         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
75804
75805 2000-11-11  Jim Meyering  <meyering@lucent.com>
75806
75807         * lib/error.c: Add a couple #includes, merging from GNU libc version.
75808
75809 2000-11-10  Jim Meyering  <meyering@lucent.com>
75810
75811         * lib/obstack.h: Update from GNU libc.
75812         * lib/obstack.c: Likewise.
75813
75814 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
75815
75816         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
75817
75818 2000-11-06  Paul Eggert  <eggert@twinsun.com>
75819
75820         * lib/getusershell.c (setusershell): Use rewind rather than
75821         fseek/fseeko, to avoid configuration hassles with fseeko.
75822         Don't bother opening SHELLS_FILE if shellstream is NULL;
75823         it's not necessary.
75824
75825 2000-11-05  Jim Meyering  <meyering@lucent.com>
75826
75827         * lib/makepath.h (make_dir): Declare.
75828         * lib/makepath.c (make_dir): Remove `static' attribute.
75829         Tweak a comment.
75830
75831 2000-11-04  Jim Meyering  <meyering@lucent.com>
75832
75833         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
75834
75835 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
75836
75837         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
75838         last one in a bucket, advance to the next bucket.
75839
75840 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
75841
75842         * lib/fnmatch.c: Do not comment out all the code if we are using
75843         the GNU C library, because in some cases we are replacing buggy
75844         code in the GNU C library itself.
75845
75846 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
75847
75848         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
75849         (regex_compile): Catch bogus \(\1\).
75850
75851 2000-10-30  Paul Eggert  <eggert@twinsun.com>
75852
75853         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
75854         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
75855         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
75856
75857 2000-10-30  Paul Eggert  <eggert@twinsun.com>
75858
75859         * lib/error.h, getline.h, modechange.h:
75860         Remove "2000" from Copyright line, as the file hasn't been
75861         changed this year other than in the copyright notice.
75862
75863         * lib/xalloc.h: Add "2000" to Copyright line, as this file
75864         was changed this year.
75865
75866 2000-10-29  Jim Meyering  <meyering@lucent.com>
75867
75868         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
75869         renaming.
75870         * m4/ls-mntd-fs.m4: Likewise
75871
75872 2000-10-29  Jim Meyering  <meyering@lucent.com>
75873
75874         * lib/xstat.in: Fix grammar in comment.
75875
75876 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
75877
75878         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
75879         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
75880         doesn't define __restrict_arr.
75881
75882 2000-10-28  Jim Meyering  <meyering@lucent.com>
75883
75884         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
75885         (jm_PREREQ_MEMCHR): New function.
75886
75887 2000-10-28  Jim Meyering  <meyering@lucent.com>
75888
75889         * lib/memchr.c: Update from libc.
75890         Adjust for portability:
75891         [HAVE_STDLIB_H]: Include stdlib.h.
75892         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
75893         Undef __memchr, too.
75894         [!weak_alias]: Define __memchr to memchr.
75895
75896         * lib/regex.c: Update from libc.
75897         * lib/regex.h: Likewise.
75898         * lib/getopt1.c: Likewise.
75899         * lib/memcmp.c: Likewise.
75900
75901         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
75902         Avoid using fseek, when possible -- it's broken by design.
75903         Patch by Ulrich Drepper.
75904
75905 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
75906
75907         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
75908         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
75909         Giving in to popular pressure to shut up the compiler with casts.
75910
75911 2000-10-26  Jim Meyering  <meyering@lucent.com>
75912
75913         * lib/strftime.c: Update from libc.
75914
75915 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
75916
75917         * regex.c: More `unsigned char' -> `re_char' changes.
75918         Also change several `int' into `re_wchar_t'.
75919         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
75920         (PUSH_FAILURE_POINTER): Don't cast any more.
75921         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
75922         We want GCC to complain, since this piece of code makes
75923         re_match non-reentrant, which *should* be fixed.
75924         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
75925         (EXTEND_BUFFER): Use RETALLOC.
75926         (SET_LIST_BIT): Don't cast.
75927         (re_wchar_t): New type.
75928         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
75929         that those two functions will always properly return.
75930         (IMMEDIATE_QUIT_CHECK): Cast to void.
75931         (analyse_first): Use recursion rather than an explicit stack.
75932         (re_compile_fastmap): Can't fail anymore.
75933         (re_search_2): Don't check re_compile_fastmap for failure.
75934         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
75935         Now also sets the new value (passed in a new argument).
75936         (re_match_2_internal): Use it.
75937         Also, use a new var `reg' of type size_t when looping through regs
75938         rather than reuse the inappropriate `mcnt'.
75939
75940 2000-10-25  Jim Meyering  <meyering@lucent.com>
75941
75942         * lib/obstack.c: Update from libc.
75943
75944 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
75945
75946         * regex.c (regex_compile): Change the way of handling a range from
75947         a char less than 256 to a char not less than 256.
75948
75949 2000-10-24  Andrew Innes  <andrewi@gnu.org>
75950
75951         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
75952         NT-Emacs only.
75953         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
75954         so that re_search functions only quit when callers expect them to.
75955
75956 2000-10-23  Jim Meyering  <meyering@lucent.com>
75957
75958         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
75959         wrong.  That set_locale call must not have any side effects.
75960         From Paul Eggert.
75961
75962 2000-10-22  Jim Meyering  <meyering@lucent.com>
75963
75964         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
75965         [CYCLIC]: Remove now-unused definition.
75966
75967         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
75968         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
75969         Suggestion from Ulrich Drepper.
75970
75971 2000-10-21  Jim Meyering  <meyering@lucent.com>
75972
75973         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
75974         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
75975         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
75976
75977 2000-10-21  Jim Meyering  <meyering@lucent.com>
75978
75979         * lib/dirname.c (memrchr): Declare if necessary.
75980         (dir_name): Remove the restriction that there be no
75981         trailing slashes.  Now, this code skips past them, effectively
75982         ignoring them.
75983         [TEST_DIRNAME] (main): New unit tests.
75984
75985         * lib/memrchr.c: New file from GNU libc.
75986         Undef __memrchr, too.
75987         [!weak_alias]: Define __memrchr to memrchr.
75988         Guard weak_alias use with `#ifdef weak_alias'.
75989
75990 2000-10-21  Jim Meyering  <meyering@lucent.com>
75991
75992         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
75993         (dir_name): Use dir_name_r.
75994         * lib/dirname.h (dir_name_r): Declare it.
75995
75996 2000-10-17  Jim Meyering  <meyering@lucent.com>
75997
75998         * lib/quote.h (PARAMS): Define and use.
75999         Reported by Akim Demaille.
76000
76001         * lib/getopt.c: Update from libc.
76002
76003 2000-10-16  Jim Meyering  <meyering@lucent.com>
76004
76005         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
76006         setlocale.
76007         From Jan Fedak.
76008
76009 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
76010
76011         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
76012
76013 2000-09-25  Jim Meyering  <meyering@lucent.com>
76014
76015         * lib/md5.h (rol): Define (from GnuPG).
76016
76017         * lib/sha.c: Give credit (GnuPG) where due.
76018         (M): Use rol rather than open-coding it.
76019         Add a FIXME comment.
76020
76021 2000-09-21  Jim Meyering  <meyering@lucent.com>
76022
76023         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
76024         Reported by Michael Stone.
76025
76026 2000-09-20  Jim Meyering  <meyering@lucent.com>
76027
76028         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
76029         (noinst_HEADERS): Add sha.h.
76030         Based on code from Scott G. Miller and from GnuPG.
76031
76032 2000-09-18  Jim Meyering  <meyering@lucent.com>
76033
76034         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
76035         LIBS. Otherwise, everyone ends up linking with -lelf for some
76036         configurations.
76037         Reported by Mike Stone.
76038
76039 2000-09-15  Jim Meyering  <meyering@lucent.com>
76040
76041         * lib/regex.c: Update from libc.
76042
76043 2000-09-10  Jim Meyering  <meyering@lucent.com>
76044
76045         * lib/getopt.c (_getopt_internal): Update from glibc.
76046
76047 2000-09-09  Jim Meyering  <meyering@lucent.com>
76048
76049         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
76050         think it should be used as a general replacement for isascii.
76051         * lib/fnmatch.c: Likewise.
76052         * lib/mbswidth.c: Likewise
76053         * lib/regex.c: Likewise.
76054
76055         Don't use atoi.
76056         * lib/userspec.c: Include sys/param.h and limits.h.
76057         Include xstrtol.h.
76058         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
76059         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
76060         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
76061         UID, GID.  Check range.
76062
76063 2000-09-06  Jim Meyering  <meyering@lucent.com>
76064
76065         * lib/getopt.c (_getopt_internal): Update from glibc.
76066
76067 2000-08-30  Jim Meyering  <meyering@lucent.com>
76068
76069         * lib/strftime.c: Merge in changes from GNU libc.
76070
76071 2000-08-26  Jim Meyering  <meyering@lucent.com>
76072
76073         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
76074         * m4/fpending.m4: New file.
76075
76076 2000-08-26  Jim Meyering  <meyering@lucent.com>
76077
76078         * lib/closeout.c: Include "__fpending.h".
76079         (close_stdout_status): Return right away if there's nothing to flush.
76080
76081         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
76082         * lib/__fpending.c: New file.
76083         * lib/__fpending.h: New file.
76084
76085 2000-08-20  Jim Meyering  <meyering@lucent.com>
76086
76087         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
76088         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
76089         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
76090
76091 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
76092
76093         Improve fileutils installation on systems where running
76094         programs (like install) can't be unlinked.
76095         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
76096         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
76097
76098 2000-08-07  Paul Eggert  <eggert@twinsun.com>
76099
76100         Standardize on "memory exhausted" instead of "Memory exhausted"
76101         or "virtual memory exhausted".
76102         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
76103         "virtual memory exhausted".
76104         * lib/same.c (same_name): Invoke xalloc_die instead of printing
76105         our own message.
76106         * lib/userspec.c (parse_user_spec): Likewise.
76107         * lib/bumpalloc.h: comment fix
76108         * lib/same.c, userspec.c: Include xalloc.h.
76109
76110         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
76111         not char *const and pointing to a constant array.
76112         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
76113         (xrealloc): Comment fix.
76114
76115         * lib/userspec.c (parse_user_spec):
76116         Don't translate a message until just before returning,
76117         to avoid unnecessary translation.
76118
76119 2000-08-07  Jim Meyering  <meyering@lucent.com>
76120
76121         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
76122         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
76123         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
76124         getgroups.c, gethostname.c, getopt.h, group-member.c,
76125         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
76126         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
76127         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
76128         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
76129         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
76130         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
76131         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
76132         yesno.c: Back out Copyright date changes for each file with no change
76133         this year.  This eases coordination with other programs using the same
76134         source code modules.  From Paul Eggert.
76135
76136 2000-08-06  Paul Eggert  <eggert@twinsun.com>
76137
76138         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
76139         not char, for compatibility with glibc 2.1.3 strftime.c.
76140
76141 2000-08-03  Greg McGary  <greg@mcgary.org>
76142
76143         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
76144         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
76145         (EXTEND_BUFFER): Use them.
76146
76147 2000-08-01  Jim Meyering  <meyering@lucent.com>
76148
76149         * lib/dirname.c (ISSLASH): Define.
76150         (BACKSLASH_IS_PATH_SEPARATOR): Define.
76151         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
76152         both `\' and `/' may be use as path separators.
76153         Based on a patch from Prashant TR.
76154
76155 2000-07-31  Paul Eggert  <eggert@twinsun.com>
76156
76157         * lib/quotearg.c (quotearg_n_options): Don't make the initial
76158         slot vector a constant, since it might get modified.
76159
76160 2000-07-31  Jim Meyering  <meyering@lucent.com>
76161
76162         * lib/xmalloc.c: Use `virtual memory exhausted', not
76163         `Memory exhausted'.
76164         * lib/obstack.c (print_and_abort): Likewise.
76165
76166 2000-07-30  Paul Eggert  <eggert@twinsun.com>
76167
76168         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
76169         buffer, so that the caller can always quote one small
76170         component of a "memory exhausted" message in slot 0.
76171         From a suggestion by Jim Meyering.
76172
76173 2000-07-30  Jim Meyering  <meyering@lucent.com>
76174
76175         * lib/makepath.c (make_path): Quote the other instance, too.
76176
76177         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
76178         (STATIC_BUF_SIZE): Define.
76179         (quotearg_n_options): Use only statically allocated storage when
76180         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
76181         than STATIC_BUF_SIZE.
76182
76183 2000-07-29  Jim Meyering  <meyering@lucent.com>
76184
76185         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
76186         * lib/dirname.c (dir_name): Likewise.
76187
76188         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
76189         `/'.
76190
76191         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
76192         (dir_name): Assert that there are no trailing slashes.
76193
76194 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
76195
76196         * lib/mbswidth.h (mbswidth): Add a flags argument.
76197         (mbswidth): New declaration.
76198         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
76199         * lib/mbswidth.c (mbswidth): Add a flags argument.
76200         (mbsnwidth): New function.
76201
76202 2000-07-24  Jim Meyering  <meyering@lucent.com>
76203
76204         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
76205
76206 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76207
76208         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
76209
76210 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76211
76212         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
76213         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
76214         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
76215         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
76216         invoke multibyte primitives.
76217
76218 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76219
76220         * lib/quotearg.c:
76221         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
76222         so that mbstate_t is always defined.
76223
76224         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
76225         be 1 in at least one GCC installation, and this configuration
76226         error is likely to be common.  Ignoring MB_LEN_MAX hurts
76227         performance on hosts that have mbrtowc but have only unibyte
76228         locales, but I assume these hosts are rare.
76229
76230 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76231
76232         * lib/mbswidth.c (_XOPEN_SOURCE):
76233         Don't define; this causes problems on Solaris 7.
76234         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
76235
76236 2000-07-23  Jim Meyering  <meyering@lucent.com>
76237
76238         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
76239         too: getgrgid, getpwuid, getuid.
76240
76241 2000-07-23  Jim Meyering  <meyering@lucent.com>
76242
76243         * lib/basename.c (base_name): Add an assertion.
76244
76245 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
76246
76247         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
76248         shadow its mbsinit function.
76249
76250 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
76251
76252         * lib/mbswidth.h: New file.
76253         * lib/mbswidth.c: New file.
76254         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
76255         (noinst_HEADERS): Add mbswidth.h.
76256
76257 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
76258
76259         * lib/config.charset: Add support for FreeBSD. Improve support for
76260         HP-UX and IRIX 6.
76261
76262 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
76263
76264         * m4/mbswidth.m4: New file.
76265         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
76266
76267 2000-07-15  Jim Meyering  <meyering@lucent.com>
76268
76269         * lib/makepath.c: Include quote.h.
76270         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
76271         corresponding argument in a `quote (...)' call.
76272         Give better diagnostics.
76273
76274         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
76275         (noinst_HEADERS): Add quote.h.
76276
76277         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
76278         from tar's src/misc.c.
76279         * lib/quote.h: New file.  Prototypes for same.
76280
76281 2000-07-14  Paul Eggert  <eggert@twinsun.com>
76282
76283         From a suggestion by Bruno Haible.
76284         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
76285         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
76286         to decide whether to define the BeOS workaround macro;
76287         this adjusts to the change to AC_MBSTATE_T.
76288
76289 2000-07-14  Jim Meyering  <meyering@lucent.com>
76290
76291         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
76292         jm_AC_TYPE_UINTMAX_T.
76293
76294 2000-07-13  Paul Eggert  <eggert@twinsun.com>
76295
76296         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
76297
76298         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
76299         quotearg_buffer_restyled): Add support for
76300         clocale_quoting_style.  Undo previous change to
76301         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
76302         and "{RIGHT QUOTATION MARK}" msgids.
76303
76304 2000-07-10  Paul Eggert  <eggert@twinsun.com>
76305
76306         From a suggestion by Bruno Haible.
76307         * m4/mbstate_t.m4 (AC_MBSTATE_T):
76308         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
76309         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
76310         and mbstate_t, to a single-part test that simply defines mbstate_t.
76311         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
76312         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
76313
76314 2000-07-10  Jim Meyering  <meyering@lucent.com>
76315
76316         * m4/strerror_r.m4: Mirror the correction made in autoconf.
76317
76318         * m4/gnu-source.m4: Output to confdefs.h directly.
76319         Suggestion from Akim Demaille.
76320
76321 2000-07-09  Paul Eggert  <eggert@twinsun.com>
76322
76323         The old behavior of quoting `like this' doesn't look good with
76324         newer, ISO-style fonts.  See:
76325         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
76326
76327         Instead, quote "like this" by default.  Let the translator
76328         tailor the locale-specific quoting behavior by providing
76329         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
76330
76331         * lib/quotearg.c (N_): New macro.
76332         (gettext_default): New function.
76333         (quotearg_buffer_restyled): Use
76334         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
76335         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
76336
76337 2000-07-09  Jim Meyering  <meyering@lucent.com>
76338
76339         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
76340         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
76341
76342         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
76343         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
76344
76345 2000-07-09  Jim Meyering  <meyering@lucent.com>
76346
76347         * lib/Most files: Update copyright dates to include 2000.
76348
76349 2000-07-08  Jim Meyering  <meyering@lucent.com>
76350
76351         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
76352         if not defined.
76353         (xgethostname): Remove now-unnecessary #ifdef.
76354         Move declaration of `err' into loop where it's used.
76355
76356 2000-07-05  Paul Eggert  <eggert@twinsun.com>
76357         and Bruno Haible  <haible@clisp.cons.org>
76358
76359         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
76360         only if the test for an object-type mbstate_t fails.  This
76361         prevents us from mistakenly reporting that mbstate_t is a
76362         system object type after we "#define mbstate_t int" to work
76363         around its lack.
76364
76365 2000-07-05  Paul Eggert  <eggert@twinsun.com>
76366         and Bruno Haible  <haible@clisp.cons.org>
76367
76368         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
76369
76370 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
76371
76372         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
76373         to strerror_r.
76374         Include <ctype.h> for use of isalpha.
76375
76376 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
76377
76378         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
76379         by allocating a larger buffer. Test the gethostname return value for
76380         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
76381         returns an error and ENAMETOOLONG isn't defined.
76382
76383 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
76384
76385         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
76386         dimension.
76387
76388 2000-07-04  Jim Meyering  <meyering@lucent.com>
76389
76390         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
76391         of the deprecated AC_CHECKING.
76392
76393 2000-07-04  Jim Meyering  <meyering@lucent.com>
76394
76395         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
76396         Reported by Bruno Haible.
76397
76398 2000-07-04  Jim Meyering  <meyering@lucent.com>
76399
76400         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
76401         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
76402         lacks mbrtowc.
76403
76404 2000-07-03  Paul Eggert  <eggert@twinsun.com>
76405
76406         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
76407         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
76408
76409 2000-07-03  Paul Eggert  <eggert@twinsun.com>
76410         and Bruno Haible  <haible@clisp.cons.org>
76411
76412         * lib/quotearg.c (mbrtowc):
76413         Assign to *pwc, and return 1 only if result is nonzero.
76414         (iswprint): Use ISPRINT when substituting our own mbrtowc.
76415
76416 2000-07-03  Jim Meyering  <meyering@lucent.com>
76417
76418         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
76419
76420 2000-07-03  Jim Meyering  <meyering@lucent.com>
76421
76422         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
76423         This is necessary to get a definition of e.g., UTMP_FILE on
76424         HP-UX 10.20.
76425         From Bob Proulx.
76426
76427 2000-07-02  Jim Meyering  <meyering@lucent.com>
76428
76429         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
76430
76431         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
76432         AC_LIBOBJ(function_name).
76433         * m4/chown.m4: Likewise.
76434         * m4/fnmatch.m4: Likewise.
76435         * m4/ftruncate.m4: Likewise.
76436         * m4/getgroups.m4: Likewise.
76437         * m4/getline.m4: Likewise.
76438         * m4/group-member.m4: Likewise.
76439         * m4/jm-macros.m4: Likewise.
76440         * m4/lstat.m4: Likewise.
76441         * m4/malloc.m4: Likewise.
76442         * m4/memcmp.m4: Likewise.
76443         * m4/nanosleep.m4: Likewise.
76444         * m4/putenv.m4: Likewise.
76445         * m4/realloc.m4: Likewise.
76446         * m4/regex.m4: Likewise.
76447         * m4/stat.m4: Likewise.
76448         * m4/strftime.m4: Likewise.
76449
76450 2000-07-02  Jim Meyering  <meyering@lucent.com>
76451
76452         * lib/quotearg.c (mbstate_t): Don't define here.
76453
76454 2000-07-02  Jim Meyering  <meyering@lucent.com>
76455
76456         * lib/nanosleep.c (SIGCONT): Define if not already defined.
76457
76458 2000-07-01  Jim Meyering  <meyering@lucent.com>
76459
76460         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
76461
76462 2000-07-01  Jim Meyering  <meyering@lucent.com>
76463
76464         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
76465         problem.
76466
76467 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
76468
76469         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
76470         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
76471
76472 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
76473
76474         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
76475         per change in ../m4/ls-mntd-fs.m4.
76476         (read_filesystem_list): Ignore symbolic links.
76477
76478 2000-06-29  Jim Meyering  <meyering@lucent.com>
76479
76480         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
76481         for declaration of strcmp.
76482
76483         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
76484
76485         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
76486         Avoid warning by casting result to `char *' to remove `const'.
76487
76488 2000-06-28  Jim Meyering  <meyering@lucent.com>
76489
76490         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
76491         included by quotearg.c, for which we perform this test.  From
76492         Bruno Haible.
76493
76494 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
76495
76496         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
76497         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
76498         <utmpx.h> exists, put readutmp.o into LIBOBJS.
76499
76500 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
76501
76502         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
76503
76504 2000-06-26  Paul Eggert  <eggert@twinsun.com>
76505
76506         savedir now sets errno on failure and invokes xmalloc to get memory.
76507         Fix a couple of other minor bugs while we're at it.
76508
76509         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
76510         (NAMLEN): Remove macro.
76511         (malloc, realloc): Remove decls.
76512         (stpcpy): Likewise.
76513         ("xalloc.h"): Include.
76514         (NAME_SIZE_DEFAULT): New macro.
76515         (savedir): Use xmalloc / xrealloc to allocate memory.
76516         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
76517         Skip "" directory entries.
76518         Use strlen to calculate directory entry length, since the old method
76519         is rarely used these days and isn't worth supporting.
76520         Don't use a pointer after freeing it.
76521         Check for integer overflow when calculating allocation size.
76522         Use memcpy to copy entries, instead of stpcpy.
76523         Set errno properly when returning NULL.
76524         Check for readdir error.
76525
76526 2000-06-26  Jim Meyering  <meyering@lucent.com>
76527
76528         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
76529
76530 2000-06-25  Jim Meyering  <meyering@lucent.com>
76531
76532         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
76533         Linux header bug when _XOPEN_SOURCE is defined to 500.
76534
76535 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
76536
76537         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
76538         deficiency.
76539
76540 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
76541
76542         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
76543         Include xalloc.h.
76544         Don't include <stdlib.h>.  Don't declare malloc, realloc.
76545
76546 2000-06-24  Jim Meyering  <meyering@lucent.com>
76547
76548         * m4/strerror_r.m4: Revive this file -- to try out an experimental
76549         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
76550         for which strerror does return char*, but which lacks a conveniently
76551         accessible declaration of the function.  If the compile-test says
76552         strerror_r doesn't work, then resort to a `run'-test that works on
76553         BeOS and segfaults on DEC Unix.
76554
76555 2000-06-24  Jim Meyering  <meyering@lucent.com>
76556
76557         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
76558
76559 2000-06-23  Paul Eggert  <eggert@twinsun.com>
76560
76561         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
76562         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
76563
76564 2000-06-23  Paul Eggert  <eggert@twinsun.com>
76565
76566         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
76567         (mbrtowc, mbstate_t): Define substitutes if
76568         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
76569         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
76570         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
76571
76572 2000-06-23  Jim Meyering  <meyering@lucent.com>
76573
76574         * m4/afs.m4: Add missing AC_MSG_RESULT.
76575         Reported by Bruno Haible.
76576
76577         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
76578         Suggestion from Bruno Haible.
76579
76580 2000-06-23  Jim Meyering  <meyering@lucent.com>
76581
76582         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
76583
76584 2000-06-21  Jim Meyering  <meyering@lucent.com>
76585
76586         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
76587
76588 2000-06-21  Jim Meyering  <meyering@lucent.com>
76589
76590         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
76591         (noinst_HEADERS): Add getstr.h.
76592
76593         * lib/getline.c (getstr): Move into a separate file.
76594         * lib/getstr.c (getstr): New file, extracted from getline.c, with
76595         the following changes: new parameter, delim2; both delim[12]
76596         parameters have type `int', not `char'.  The latter would lose
76597         with 8-bit delimiters.
76598         * lib/getstr.h: New file.
76599
76600 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
76601
76602         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
76603         than 1024, return a memory chunk of least possible size, instead
76604         of size PATH_MAX + 2. In the loop, increment the size proportionally.
76605         Use free/xmalloc instead of xrealloc to avoid copying for very long
76606         paths.
76607
76608 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
76609
76610         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
76611         the empty string.
76612
76613 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
76614
76615         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
76616         address, not strdup.  Include <stdlib.h> and don't declare free().
76617
76618 2000-06-19  Jim Meyering  <meyering@lucent.com>
76619
76620         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
76621
76622 2000-06-18  Jim Meyering  <meyering@lucent.com>
76623
76624         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
76625
76626         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
76627         `checking whether...' message to be consistent with that of the
76628         lstat test.
76629
76630 2000-06-18  Jim Meyering  <meyering@lucent.com>
76631
76632         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
76633         Besides, these days every porting target provides a mkdir function.
76634
76635         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
76636         needed. (this snippet comes from src/system.h).
76637
76638 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
76639
76640         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
76641
76642 2000-06-15  Paul Eggert  <eggert@twinsun.com>
76643
76644         * lib/human.c (adjust_value): New function.
76645         (human_readable_inexact): Apply rounding style even when
76646         printing approximate values.
76647
76648 2000-06-14  Paul Eggert  <eggert@twinsun.com>
76649
76650         * lib/human.c (human_readable_inexact): Allow an input block
76651         size that is not a multiple of the output block size, and vice versa.
76652         Reported by Piergiorgio Sartor.
76653
76654 2000-06-14  Paul Eggert  <eggert@twinsun.com>
76655
76656         * lib/getdate.y (get_date): Apply relative times after time
76657         zone indicator, not before.  Reported by Todd A. Jacobs.
76658
76659 2000-06-13  Jim Meyering  <meyering@lucent.com>
76660
76661         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
76662
76663         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
76664
76665 2000-06-12  Paul Eggert  <eggert@twinsun.com>
76666
76667         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
76668
76669 2000-06-12  Jim Meyering  <meyering@lucent.com>
76670
76671         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
76672         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
76673         optional argument.
76674         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
76675         the optional argument, `lib'.
76676
76677 2000-06-08  Jim Meyering  <meyering@lucent.com>
76678
76679         * m4/largefile.m4: Remove file (now that it's part of autoconf).
76680
76681 2000-06-04  Paul Eggert  <eggert@twinsun.com>
76682
76683         Rewrite largefile configuration so that we don't need to run
76684         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
76685         AC_CANONICAL_HOST in configure.in -- jmm]
76686
76687         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
76688         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
76689         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
76690         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
76691         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
76692         All uses changed.
76693         Instead of inspecting the output of getconf, try to compile the
76694         test program without and with the macro definition.
76695         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
76696         for getconf.  Instead, check for the needed flags by compiling
76697         test programs.
76698
76699 2000-06-04  Paul Eggert  <eggert@twinsun.com>
76700
76701         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
76702
76703 2000-06-04  Jim Meyering  <meyering@lucent.com>
76704
76705         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
76706         SunOS 4.1.4 for which gid_t is an unsigned type.
76707
76708 2000-06-03  Jim Meyering  <meyering@lucent.com>
76709
76710         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
76711         now that autoconf requires that.
76712
76713         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
76714         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
76715         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
76716
76717 2000-06-03  Jim Meyering  <meyering@lucent.com>
76718
76719         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
76720
76721 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
76722
76723         * m4/glibc21.m4: New file.
76724         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
76725
76726 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
76727
76728         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
76729         newer, don't install charset.alias.
76730         * lib/config.charset: Change the Linux/glibc rules so they become empty
76731         on glibc-2.1 or newer.
76732
76733 2000-06-02  Jim Meyering  <meyering@lucent.com>
76734
76735         * lib/mountlist.c: Back out last change.  Instead, do this...
76736         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
76737         me_dummy member using the same `ignore'-testing code.
76738         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
76739         fs_type strings.
76740         From Mark D. Roth.
76741
76742 2000-05-29  Jim Meyering  <meyering@lucent.com>
76743
76744         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
76745         mounts with the `ignore' attribute.  Based on a patch from
76746         Mark D. Roth.
76747
76748 2000-05-28  Jim Meyering  <meyering@lucent.com>
76749
76750         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
76751         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76752         * m4/stat.m4: Likewise.
76753         * m4/lstat.m4: Likewise.
76754         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
76755
76756         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
76757         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
76758
76759 2000-05-26  Jim Meyering  <meyering@lucent.com>
76760
76761         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
76762
76763 2000-05-24  Jim Meyering  <meyering@lucent.com>
76764
76765         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
76766         autoconf requires that.
76767         * m4/lib-check.m4: Likewise.
76768         * m4/jm-macros.m4: Likewise.
76769         * m4/strftime.m4: Likewise.
76770
76771         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
76772         AC_CHECK_DECLS, now that autoconf requires that.
76773
76774 2000-05-22  Jim Meyering  <meyering@lucent.com>
76775
76776         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76777         * m4/lstat.m4: Likewise.
76778
76779 2000-05-22  Jim Meyering  <meyering@lucent.com>
76780
76781         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
76782
76783 2000-05-20  Jim Meyering  <meyering@lucent.com>
76784
76785         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
76786         (jm_PREREQ): Use it.
76787
76788 2000-05-18  Jim Meyering  <meyering@lucent.com>
76789
76790         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
76791         back, too, since it may have been modified by allocate_entry.
76792         (hash_delete): Rewrite to use neither the assignment operator
76793         nor the comma operator in an if-expression.
76794
76795 2000-05-15  Paul Eggert  <eggert@twinsun.com>
76796
76797         * lib/closeout.c:
76798         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
76799         Remove; no longer needed.
76800         "quotearg.h": Add include.
76801         (file_name): Do not bother to explicitly initialize to NULL; it's less
76802         efficient on some hosts.
76803         (close_stdout_status): Remove test as to whether stdout was already
76804         closed; it breaks for the case "echo x | sort >&-".
76805         Quote file name colons.
76806         Do not assume that _("write error") lacks format strings.
76807
76808 2000-05-15  Jim Meyering  <meyering@lucent.com>
76809
76810         * lib/version-etc.c (version_etc_copyright): Update the copyright
76811         string used in all --version output.
76812
76813 2000-05-14  Jim Meyering  <meyering@lucent.com>
76814
76815         * lib/closeout.c (close_stdout_set_file_name): New function.
76816         (close_stdout_status): Use new file-scoped global.
76817         Return right away if fstat says the stdout file descriptor is invalid.
76818         * lib/closeout.h (close_stdout_set_file_name): Declare.
76819
76820 2000-05-10  Jim Meyering  <meyering@lucent.com>
76821
76822         * lib/closeout.c [default_exit_status]: New file-scoped variable.
76823         (close_stdout_set_status): New function.
76824         * lib/closeout.h (close_stdout_set_status): Declare.
76825
76826 2000-05-09  Jim Meyering  <meyering@lucent.com>
76827
76828         * m4/gettext.m4: Rename this...
76829         * m4/libintl.m4: ...to this.
76830
76831 2000-05-08  Jim Meyering  <meyering@lucent.com>
76832
76833         * lib/long-options.c: Don't include closeout.h.
76834         (parse_long_options): Don't call close_stdout for --version.
76835
76836 2000-05-06  Paul Eggert  <eggert@twinsun.com>
76837
76838         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
76839         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
76840         2.1.3 bug.  This avoids a clash when files like regex.c define
76841         _GNU_SOURCE.
76842
76843 2000-05-06  Jim Meyering  <meyering@lucent.com>
76844
76845         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
76846         (AC_REPLACE_FUNCS): Add strnlen.
76847
76848         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
76849         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
76850
76851         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
76852         AC_SEARCH_LIBS call for nanosleep.
76853         (LIB_NANOSLEEP): Set and AC_SUBST.
76854
76855 2000-05-06  Jim Meyering  <meyering@lucent.com>
76856
76857         * lib/strnlen.c: Undefine __strnlen and strnlen.
76858         [!weak_alias]: Define __strnlen to strnlen.
76859
76860         * lib/atexit.c: New file, from libiberty.
76861
76862 2000-05-06  Jim Meyering  <meyering@lucent.com>
76863
76864         * lib/closeout.c (close_stdout_status): Also check for errors on the
76865         stderr stream.
76866
76867 2000-05-05  Jim Meyering  <meyering@lucent.com>
76868
76869         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
76870         AC_SEARCH_LIBS call for clock_gettime.
76871         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
76872
76873         * m4/search-libs.m4: Update from autoconf.
76874
76875         su doesn't work on Solaris 2.6.
76876         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
76877         <shadow.h>.  Reported by Dragos Harabor.
76878
76879 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
76880
76881         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
76882         memcpy instead of xmalloc, xrealloc, path_concat.
76883         (locale_charset): Treat empty environment variables as absent.
76884         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
76885
76886 2000-05-04  Jim Meyering  <meyering@lucent.com>
76887
76888         * lib/getopt.c: Update from glibc.
76889         * lib/obstack.c: Likewise.
76890         * lib/obstack.h: Likewise.
76891         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
76892         file
76893
76894         * lib/regex.h: Likewise.
76895         * lib/strndup.c: Likewise.
76896         * lib/strnlen.c: New file, from glibc.
76897
76898 2000-05-03  Jim Meyering  <meyering@lucent.com>
76899
76900         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
76901
76902 2000-05-02  Paul Eggert  <eggert@twinsun.com>
76903
76904         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
76905         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
76906         compile-time test, rather than inspecting host and OS, to
76907         decide whether to define _LARGEFILE_SOURCE.
76908
76909 2000-05-01  Jim Meyering  <meyering@lucent.com>
76910
76911         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
76912
76913         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
76914         Based on a patch from Bruno Haible.
76915
76916 2000-05-01  Jim Meyering  <meyering@lucent.com>
76917
76918         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
76919
76920 2000-04-29  Jim Meyering  <meyering@lucent.com>
76921
76922         * lib/path-concat.c: Declare strdup only if it's not defined.
76923         * lib/canon-host.c: Likewise.
76924
76925 2000-04-28  Jim Meyering  <meyering@lucent.com>
76926
76927         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
76928         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
76929         is included first, then limits.h is included by locale.h by libintl.h.
76930         From John David Anglin.
76931
76932 2000-04-25  Jim Meyering  <meyering@lucent.com>
76933
76934         * lib/makepath.c (S_IRWXUGO): Define.
76935         (make_path): Always perform explicit chmod if MODE specifies any
76936         of the `special' permission bits.  Prompted by a bug report against
76937         install from Mate Wierdl and Joost van Baal.
76938
76939 2000-04-18  Jim Meyering  <meyering@lucent.com>
76940
76941         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
76942         (jm_PREREQ): Use it.
76943
76944 2000-04-18  Jim Meyering  <meyering@lucent.com>
76945
76946         * lib/README: New file.
76947
76948         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
76949         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
76950
76951 2000-04-17  Jim Meyering  <meyering@lucent.com>
76952
76953         Get it right :-)
76954         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
76955         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
76956         Suggestion from Akim Demaille.
76957
76958 2000-04-17  Jim Meyering  <meyering@lucent.com>
76959
76960         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
76961         the definition of it to rpl_strftime also defined-away the system's
76962         declaration.
76963
76964 2000-04-15  Jim Meyering  <meyering@lucent.com>
76965
76966         Use `C' to denote so-called `contiguous' files, the same way
76967         that tar does.
76968         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
76969         (ftypelet): Use S_ISCTG.
76970         From Michael Deutschmann.
76971
76972 2000-04-14  Jim Meyering  <meyering@lucent.com>
76973
76974         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
76975         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
76976         clobbered.
76977
76978 2000-04-14  Jim Meyering  <meyering@lucent.com>
76979
76980         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
76981
76982 2000-04-13  Jim Meyering  <meyering@lucent.com>
76983
76984         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
76985         AH_VERBATIM to insert required #ifndef into config.h.in.
76986         Suggestion from Akim Demaille.
76987
76988 2000-04-12  Jim Meyering  <meyering@lucent.com>
76989
76990         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
76991         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
76992         Christian Krackowizer.
76993
76994         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
76995         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
76996         (AC_SYS_LARGEFILE): Require.
76997         (AM_C_PROTOTYPES): Require.
76998
76999 2000-04-08  Jim Meyering  <meyering@lucent.com>
77000
77001         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
77002         names don't conflict.  Reported by Eli Zaretskii.
77003
77004 2000-04-07  Jim Meyering  <meyering@lucent.com>
77005
77006         * lib/putenv.c: Move inclusion of errno.h so it follows that of
77007         sys/types.h, to work around system header problems on AIX 3.2.5.
77008         From Bruno Haible.
77009
77010 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
77011
77012         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
77013         bug.  Deal with the different error behavior of Irix iconv.
77014
77015 2000-04-05  Paul Eggert  <eggert@twinsun.com>
77016
77017         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
77018         IRIX if the installer said otherwise.
77019
77020 2000-04-05  Jim Meyering  <meyering@lucent.com>
77021
77022         Portability tweaks required for ultrix4.3.
77023         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
77024         (jm_CHECK_DECLS): Add getutent to the list of functions.
77025         (_jm_DECL_HEADERS): Add utmpx.h.
77026         From John David Anglin.
77027
77028         * m4/strftime.m4: Back out the 2000-04-02 change.
77029         Instead of that change, simply undefine putenv in the test program.
77030
77031 2000-04-05  Jim Meyering  <meyering@lucent.com>
77032
77033         Portability tweaks required for ultrix4.3.
77034         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
77035         getutent.
77036         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
77037         * lib/canon-host.c: Declare strdup.
77038         * lib/path-concat.c: Likewise.
77039         From John David Anglin.
77040
77041 2000-04-04  Jim Meyering  <meyering@lucent.com>
77042
77043         Be more DOS 8.3-friendly.
77044         * lib/ref-add.sin: Renamed from ref-add.sed.in.
77045         * lib/ref-del.sin: Renamed from ref-del.sed.in.
77046         * lib/Makefile.am: Reflect renaming.
77047         Reported by Eli Zaretskii.
77048
77049         Use a temporary file name that won't clash with `charset.alias'
77050         in the DOS 8.3 name space.
77051         * lib/Makefile.am (charset_tmp): Define.
77052         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
77053         (uninstall-local): Likewise.
77054         Reported by Eli Zaretskii.
77055
77056 2000-04-03  Jim Meyering  <meyering@lucent.com>
77057
77058         * m4/gettext.m4: Fix typo in comment.
77059
77060         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
77061         textutils/configure.in).  Suggestion from Paul Eggert.
77062         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
77063
77064 2000-04-02  Paul Eggert  <eggert@twinsun.com>
77065
77066         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
77067         variable in the shell rather than using putenv, which isn't
77068         portable.  This avoids the configure-time inter-test dependency
77069         on the potentially-renamed putenv function.
77070
77071 2000-03-30  Paul Eggert  <eggert@twinsun.com>
77072
77073         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
77074         before checking struct stat.st_blksize, so that
77075         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
77076
77077 2000-03-29  Paul Eggert  <eggert@twinsun.com>
77078
77079         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
77080         since strftime.c uses HAVE_STRFTIME to decide whether to use
77081         the underlying strftime.
77082
77083 2000-03-29  Paul Eggert  <eggert@twinsun.com>
77084
77085         * lib/time/strftime.c (my_strftime): Make sure we call the system
77086         strftime, not ourselves, when invoking the underlying strftime.
77087
77088 2000-03-24  Jim Meyering  <meyering@lucent.com>
77089
77090         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
77091         (charset_alias): Define.
77092         (install-exec-local): Factor out common code.
77093         (uninstall-local): Split lines longer than 80.
77094         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
77095         (SUFFIXES): Define.
77096         (.sed.in.sed): New rule.  Don't redirect directly to $@.
77097         (CLEANFILES): Add ref-add.sed and ref-del.sed.
77098
77099 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
77100
77101         * lib/config.charset: Output a line containing "Packages using this
77102         file".
77103         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
77104         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
77105         ref-del.sed): New rules.
77106
77107 2000-03-17  Jim Meyering  <meyering@lucent.com>
77108
77109         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
77110         Otherwise, include <strings.h>
77111
77112 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
77113
77114         * lib/unicodeio.c (utf8_wctomb): New function.
77115         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
77116         format instead of in UCS-4 with platform dependent endianness.
77117
77118 2000-03-10  Jim Meyering  <meyering@lucent.com>
77119
77120         * m4/lib-check.m4: Look for getspnam in -lgen, too.
77121         From Marco Franzen.
77122
77123 2000-03-07  Paul Eggert  <eggert@twinsun.com>
77124
77125         * lib/savedir.c (savedir): Work even if directory size is
77126         negative; this can happen with some screwy NFS configurations.
77127
77128 2000-03-06  Jim Meyering  <meyering@lucent.com>
77129
77130         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
77131         if it's NULL (because we ran out of memory).  From Bruno Haible.
77132
77133 2000-03-05  Jim Meyering  <meyering@lucent.com>
77134
77135         * lib/localcharset.c ("path-concat.h"): Include.
77136         (get_charset_aliases): Use path_concat instead of ANSI string
77137         concatenation.
77138
77139         * lib/unicodeio.h (PARAMS): Define.
77140         Use it to guard prototype.
77141
77142 2000-03-04  Jim Meyering  <meyering@lucent.com>
77143
77144         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
77145         for lib/localcharset.c.
77146
77147 2000-03-04  Jim Meyering  <meyering@lucent.com>
77148
77149         * lib/Makefile.am (install-exec-local): Create $(libdir) before
77150         installing into it.
77151         (uninstall-local): Uncomment this rule so `make distcheck' works
77152         once again.
77153
77154         * lib/unicodeio.c (<errno.h>): Include it.
77155         (errno): Declare if not defined.
77156
77157         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
77158
77159         * lib/config.charset: New version, incorporating remarks from a linux
77160         i18n mailing list.  From Bruno Haible.
77161
77162 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
77163
77164         * m4/codeset.m4: New file.
77165         * m4/iconv.m4: New file.
77166         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
77167
77168 2000-03-03  Jim Meyering  <meyering@lucent.com>
77169
77170         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
77171
77172 2000-03-02  Jim Meyering  <meyering@lucent.com>
77173
77174         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
77175         the messages come out on separate lines.
77176
77177         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
77178         rather than jm_CHECK_DECLARATIONS.
77179         * m4/decl.m4: Remove now-unused file.
77180
77181         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
77182         geteuid.
77183
77184 2000-03-02  Jim Meyering  <meyering@lucent.com>
77185
77186         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
77187
77188 2000-03-01  Jim Meyering  <meyering@lucent.com>
77189
77190         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
77191         * lib/unicodeio.c: Likewise.
77192
77193 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
77194
77195         * lib/config.charset: New file.
77196         * lib/localcharset.c: New file.
77197         * lib/unicodeio.h, lib/unicodeio.c: New files.
77198         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
77199         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
77200         (noinst_HEADERS): Add unicodeio.h.
77201         (all-local, install-exec-local, charset.alias): New targets.
77202
77203 2000-02-28  Paul Eggert  <eggert@twinsun.com>
77204
77205         * lib/quotearg.c (ALERT_CHAR): New macro.
77206         (quotearg_buffer_restyled): Use it.
77207
77208 2000-02-27  Jim Meyering  <meyering@lucent.com>
77209
77210         * m4/check-decl.m4: Add getenv to the list.
77211
77212 2000-02-27  Jim Meyering  <meyering@lucent.com>
77213
77214         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
77215         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
77216
77217         * lib/backupfile.c: Guard inclusion of stdlib.h with
77218         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
77219         Declare malloc if needed.
77220
77221         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
77222         `#ifndef HAVE_DECL..'
77223         now that autoconf always defines the HAVE_DECL_ symbols.
77224         * lib/human.c: Likewise.
77225         * lib/same.c: Likewise.
77226         * lib/strtoumax.c: Likewise.
77227
77228         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
77229         declaration check was not run.
77230         * lib/hash.c: Likewise.
77231         * lib/human.c: Likewise.
77232         * lib/same.c: Likewise.
77233         * lib/strtoumax.c: Likewise.
77234
77235         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
77236         `.', then first look up the entire `.'-containing string as a login
77237         name.
77238
77239 2000-02-23  Jim Meyering  <meyering@lucent.com>
77240
77241         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
77242         in place of my hack.
77243
77244 2000-02-18  Paul Eggert  <eggert@twinsun.com>
77245
77246         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
77247         (textint): New typedef.
77248         (parser_control): Member year changed from int to textint.
77249         All uses changed.
77250         (YYSTYPE): Removed; replaced by %union with int and textint members.
77251         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
77252         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
77253         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
77254         (tSNUMBER, tUNUMBER): Now of type <textintval>.
77255         (date, number, to_year): Use width of number in digits, not its value,
77256         to determine whether it's a 2-digit year, or a 2-digit time.
77257         (yylex): Store number of digits of numeric tokens.
77258         Reported by John Kendall.
77259
77260         (parser_control): Changed from struct parser_control to typedef (for
77261         consistency).  All uses changed.
77262
77263         (tID): Removed; not used.
77264         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
77265
77266 2000-02-14  Paul Eggert  <eggert@twinsun.com>
77267
77268         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
77269         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
77270
77271 2000-02-12  Jim Meyering  <meyering@lucent.com>
77272
77273         * lib/userspec.c (ISDIGIT): Define it.
77274         (isdigit): Remove definition.
77275         (is_number): Use ISDIGIT, not isdigit.
77276         <libintl.h>: Include.
77277         (_ and N_): Define.
77278         (parse_user_spec): Mark translatable strings.
77279
77280 2000-02-10  Jim Meyering  <meyering@lucent.com>
77281
77282         With these changes, nanosleep.[ch] are finally enough like the other
77283         lib/* replacement files to compile on a few more losing systems.
77284
77285         * lib/nanosleep.h: Don't include config.h.
77286         Remove prototype from declaration of nanosleep.
77287         (PARAMS): Remove now-unneeded definition.
77288         * lib/nanosleep.c: #undef nanosleep.
77289         (rpl_nanosleep): Rename from nanosleep.
77290
77291 2000-02-10  Jim Meyering  <meyering@lucent.com>
77292
77293         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
77294         gnu_nanosleep to rpl_nanosleep.
77295
77296 2000-02-09  Jim Meyering  <meyering@lucent.com>
77297
77298         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
77299         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
77300
77301 2000-02-08  Akim Demaille  <akim@epita.fr>
77302
77303         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
77304         `[' and `]' and remove uses of `changequote'.
77305         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
77306         (AC_SYS_LARGEFILE): Likewise.
77307         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
77308         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
77309         of changequote.
77310         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
77311         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
77312         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
77313         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
77314
77315 2000-02-05  Jim Meyering  <meyering@lucent.com>
77316
77317         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
77318         Remove explicit use of AC_HEADER_TIME.  It is required by
77319         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
77320         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
77321         in autoconf whereby the expansion of the latter ended up preceding
77322         the expansion of its prerequisite, AC_HEADER_TIME.
77323         Reported by Volker Borchert.
77324
77325 2000-02-03  Jim Meyering  <meyering@lucent.com>
77326
77327         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
77328
77329 2000-02-03  Jim Meyering  <meyering@lucent.com>
77330
77331         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
77332         rather than with `#if HAVE_UTMPNAME'.
77333
77334 2000-02-02  Jim Meyering  <meyering@lucent.com>
77335
77336         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
77337         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
77338         Reported by Eli Zaretskii.
77339
77340 2000-02-01  Jim Meyering  <meyering@lucent.com>
77341
77342         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
77343
77344 2000-01-31  Jim Meyering  <meyering@lucent.com>
77345
77346         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
77347         functions.  Add the time.h and sys/time.h headers along with the
77348         AC_REQUIRE'ment of AC_HEADER_TIME.
77349
77350 2000-01-31  Jim Meyering  <meyering@lucent.com>
77351
77352         * lib/nanosleep.h (nanosleep): Guard declaration with
77353         `#if ! HAVE_DECL_NANOSLEEP'.
77354         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
77355         the declaration in that vendor's sys/timers.h.
77356         Reported by Christian Krackowizer.
77357
77358         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
77359         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
77360         (ISPRINT): Likewise.
77361         Reported by Tom Tromey.
77362
77363 2000-01-30  Jim Meyering  <meyering@lucent.com>
77364
77365         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
77366
77367         * m4/prereq.m4 (utmp_includes): Define.
77368         Check for ut_user and ut_name members in both struct utmpx
77369         and struct utmp.
77370
77371 2000-01-30  Jim Meyering  <meyering@lucent.com>
77372
77373         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
77374         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
77375         header files where only utmpx.ut_user is declared.
77376
77377         * lib/readutmp.h (UT_USER): Define.
77378
77379 2000-01-29  Jim Meyering  <meyering@lucent.com>
77380
77381         * m4/lib-check.m4: New file containing library-related checks from
77382         fileutils and sh-utils (textutils had none).
77383
77384 2000-01-28  Jim Meyering  <meyering@lucent.com>
77385
77386         * m4/perl.m4: Change format of warning message to look more like that
77387         from the missing script.  Suggestion from François Pinard.
77388
77389 2000-01-25  Jim Meyering  <meyering@lucent.com>
77390
77391         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
77392         well as time.h in the compile check.
77393         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
77394         Fix typo in cross-compiling case: s/yes/no/.
77395
77396 2000-01-23  Jim Meyering  <meyering@lucent.com>
77397
77398         * m4/jm-macros.m4: Move df-related tests here from
77399         fileutils/configure.in
77400
77401         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
77402         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
77403
77404         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
77405         s/space/ac_fsusage_space/.
77406         (jm_FILE_SYSTEM_USAGE): Take two parameters.
77407
77408         * m4/ftruncate.m4: New file (derived from part of
77409         fileutils/configure.in).
77410         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
77411         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
77412
77413         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
77414         AC_SUBST these here, rather than just in sh-util/configure.in, so
77415         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
77416         all the same.
77417         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
77418         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
77419         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
77420         (AC_SUBST(POW_LIBM)): Likewise.
77421         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
77422
77423 2000-01-23  Jim Meyering  <meyering@lucent.com>
77424
77425         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
77426         obstack.c.
77427
77428 2000-01-22  Jim Meyering  <meyering@lucent.com>
77429
77430         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
77431
77432         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
77433
77434         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
77435         configure.in
77436         (AC_CHECK_HEADERS): Likewise for sh-utils.
77437         (AC_CHECK_HEADERS): Likewise for textutils.
77438         Merge the three lists of headers.
77439
77440         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
77441         from fileutils' configure.in.
77442
77443         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
77444         code. Moved tests into their own function (_jm_DECL_HEADERS) in
77445         check-decl.m4.
77446
77447         * m4/check-decl.m4: Use #if rather than #ifdef.
77448         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
77449         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
77450         (_jm_DECL_HEADERS): Define new function.
77451         (jm_CHECK_DECLARATIONS): Require it.
77452
77453 2000-01-22  Jim Meyering  <meyering@lucent.com>
77454
77455         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
77456         [! HAVE_DECL_STRTOULL]: Declare strtoull.
77457         Required for some AIX systems.  Reported by Christian Krackowizer.
77458         [TESTING] (main): New function.
77459
77460         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
77461         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
77462         letters.
77463
77464         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
77465         iswprint.
77466
77467         * lib/strverscmp.c (ISDIGIT): Define.
77468         (strverscmp): Use ISDIGIT, not isdigit.
77469
77470 2000-01-19  Jim Meyering  <meyering@lucent.com>
77471
77472         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
77473         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
77474         defines `struct timespec' in <sys/time.h>
77475
77476         * m4/c-bs-a.m4: Remove uses of changequote altogether.
77477         Thanks to Akim for explaining.
77478
77479 2000-01-17  Paul Eggert  <eggert@twinsun.com>
77480
77481         * lib/nanosleep.c (nanosleep):
77482         Don't use SA_INTERRUPT to decide whether to call sigaction, as
77483         POSIX.1 doesn't require SA_INTERRUPT and some systems
77484         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
77485         it's been part of POSIX.1 since day 1 (in 1988).
77486
77487 2000-01-17  Jim Meyering  <meyering@lucent.com>
77488
77489         * lib/interlock: Remove unused file.  Reported by François Pinard.
77490
77491 2000-01-16  Paul Eggert  <eggert@twinsun.com>
77492
77493         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
77494         alert, backslash, formfeed, and vertical tab unnecessarily in
77495         shell quoting style.
77496
77497 2000-01-16  Jim Meyering  <meyering@lucent.com>
77498
77499         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
77500         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
77501         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
77502         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
77503
77504 2000-01-16  Jim Meyering  <meyering@lucent.com>
77505
77506         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
77507         because the latter didn't work.
77508
77509 2000-01-15  Jim Meyering  <meyering@lucent.com>
77510
77511         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
77512         (AC_REPLACE_FUNCS): Add memcpy and memset.
77513         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
77514         Add strpbrk.
77515         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
77516
77517 2000-01-12  Jim Meyering  <meyering@lucent.com>
77518
77519         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
77520         (jm_PREREQ): Use it.
77521         (jm_PREREQ_READUTMP): New macro.
77522         (jm_PREREQ): Use it.
77523
77524 2000-01-11  Paul Eggert  <eggert@twinsun.com>
77525
77526         Quote multibyte characters correctly.
77527         * m4/c-bs-a.m4: New file.
77528         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
77529         (jm_PREREQ): Use it.
77530
77531 2000-01-11  Paul Eggert  <eggert@twinsun.com>
77532
77533         * m4/uintmax_t.m4: Port to autoconf 2.13.
77534
77535 2000-01-08  Jim Meyering  <meyering@ascend.com>
77536
77537         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
77538         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
77539
77540 2000-01-04  Jim Meyering  <meyering@ascend.com>
77541
77542         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
77543         jm_STRUCT_DIRENT_D_TYPE.
77544         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
77545         jm_STRUCT_DIRENT_D_INO.
77546         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
77547         jm_STRUCT_UTIMBUF.
77548         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
77549         renamings.
77550         * m4/utime.m4: Likewise.
77551
77552         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
77553         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
77554
77555 2000-01-03  Paul Eggert  <eggert@twinsun.com>
77556
77557         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
77558         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
77559
77560 2000-01-02  Jim Meyering  <meyering@ascend.com>
77561
77562         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
77563         remember if this is necessary.
77564
77565 1999-12-26  Jim Meyering  <meyering@ascend.com>
77566
77567         * m4/jm-macros.m4: Use it here.
77568         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
77569
77570 1999-12-23  Jim Meyering  <meyering@ascend.com>
77571
77572         * m4/jm-macros.m4: Check for clock_gettime (moved from
77573         fileutils/configure.in)
77574         Check for gettimeofday.
77575
77576 1999-12-20  Jim Meyering  <meyering@ascend.com>
77577
77578         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
77579         autoconf-2.14a-1999-12-20.
77580
77581 1999-12-19  Jim Meyering  <meyering@ascend.com>
77582
77583         * m4/lstat-slash.m4: New file.
77584         * m4/jm-macros.m4: Use the new macro:
77585         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77586
77587 1999-12-07  Jim Meyering  <meyering@ascend.com>
77588
77589         * m4/perl.m4: Require that File::Compare be available, too.
77590         Too many systems seem to lack it.
77591
77592         * m4/strftime.m4: Add checks for most of the cpp macros tested in
77593         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
77594
77595 1999-11-18  Paul Eggert  <eggert@twinsun.com>
77596
77597         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
77598         problem with the QNX 4.25 shell, which doesn't propagate exit
77599         status of failed commands inside shell assignments.
77600
77601 1999-11-17  Jim Meyering  <meyering@ascend.com>
77602
77603         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
77604
77605 1999-11-07  Jim Meyering  <meyering@ascend.com>
77606
77607         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
77608
77609 1999-11-06  Jim Meyering  <meyering@ascend.com>
77610
77611         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
77612         * m4/jm-macros.m4 (jm_MACROS): Use it here.
77613
77614 1999-11-05  Jim Meyering  <meyering@ascend.com>
77615
77616         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
77617         configure.in of textutils, fileutils, and sh-utils into this one
77618         (shared between those packages) file.
77619         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
77620         AC_STRUCT_ST_BLKSIZE.
77621
77622 1999-11-03  Jim Meyering  <meyering@ascend.com>
77623
77624         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
77625         of AC_CHECK_TYPE checks includes unistd.h.
77626         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
77627         Suggestion from Akim Demaille.
77628
77629 1999-10-30  Jim Meyering  <meyering@ascend.com>
77630
77631         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
77632         m4-quoted string.
77633         * m4/ls-mntd-fs.m4: Likewise.
77634         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
77635         * m4/jm-winsz1.m4: Likewise.
77636
77637         * m4/const.m4: Remove file, since the fix made it into the experimental
77638         version of autoconf.
77639         * m4/mktime.m4: Likewise.
77640
77641         * m4/check-type.m4: Remove file, now that the latest version of
77642         AC_CHECK_TYPE takes a third arg to specify additional #includes.
77643
77644         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
77645         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
77646         AC_CHECK_TYPE.
77647
77648 1999-10-04  Jim Meyering  <meyering@ascend.com>
77649
77650         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
77651
77652 1999-09-22  Paul Eggert  <eggert@twinsun.com>
77653
77654         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
77655         2.95.1 bug with HP-UX 10.20.
77656
77657 1999-09-17  Jim Meyering  <meyering@ascend.com>
77658
77659         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
77660         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
77661         due to missing strdup (against sh-utils-2.0).
77662
77663 1999-08-29  Jim Meyering  <meyering@ascend.com>
77664
77665         * m4/jm-macros.m4: Require jm_BISON.
77666         * m4/bison.m4: New file.
77667
77668 1999-08-17  Paul Eggert  <eggert@twinsun.com>
77669
77670         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
77671         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
77672
77673 1999-08-05  Jim Meyering  <meyering@ascend.com>
77674
77675         * m4/getline.m4: Rename test file from conftestdata to conftest.data
77676         to avoid conflicts with `conftest' on 8+3 filesystems.
77677         Suggestion from Eli Zaretskii.
77678
77679 1999-08-04  Jim Meyering  <meyering@ascend.com>
77680
77681         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
77682         fileutils and sh-utils (textutils's getline test was inadequate).
77683         (AM_FUNC_GETLINE): Run this test.
77684         (AC_CHECK_FUNCS): Check for getdelim.
77685         Reported by Bob Proulx.
77686
77687 1999-08-02  Jim Meyering  <meyering@ascend.com>
77688
77689         * m4/jm-macros.m4: Add a comment.
77690
77691 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77692
77693         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
77694         <inttypes.h> defines strtoumax as a macro (and not as a
77695         function).
77696
77697 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77698
77699         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
77700         that we can shift, multiply and divide unsigned long long
77701         values; Ultrix cc can't do it.
77702
77703 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77704
77705         * m4/mktime.m4: New file, which is a preview of what should appear
77706         in the next public autoconf release.
77707
77708 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77709
77710         * m4/lfs.m4: Remove this file.
77711         * m4/largefile.m4: New file.  It contains the old contents of
77712         lfs.m4, except that all names with prefix AC_LFS have been
77713         changed to use the prefix AC_SYS_LARGEFILE instead, to be
77714         compatible with future autoconf versions.  Also, some minor m4
77715         quoting problems have been fixed.
77716
77717 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77718
77719         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
77720         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
77721         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
77722         and simplify the shell code.
77723
77724 1999-08-01  Jim Meyering  <meyering@ascend.com>
77725
77726         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
77727         m4.
77728
77729 1999-07-20  Jim Meyering  <meyering@ascend.com>
77730
77731         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
77732
77733 1999-07-15  Jim Meyering  <meyering@ascend.com>
77734
77735         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
77736
77737 1999-05-22  Jim Meyering  <meyering@ascend.com>
77738
77739         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
77740
77741 1999-05-20  Jim Meyering  <meyering@ascend.com>
77742
77743         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
77744         Add a colon after each `then' in case $4 is empty.
77745
77746 1999-05-16  Jim Meyering  <meyering@ascend.com>
77747
77748         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
77749
77750 1999-05-10  Jim Meyering  <meyering@ascend.com>
77751
77752         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
77753
77754         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
77755         AC_FUNC_MKTIME.
77756
77757 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
77758
77759         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
77760
77761 1999-05-04  Paul Eggert  <eggert@twinsun.com>
77762
77763         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
77764         not CPPFLAGS, so that linking works correctly in IRIX.
77765
77766 1999-04-30  Paul Eggert  <eggert@twinsun.com>
77767
77768         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
77769
77770 1999-04-20  Paul Eggert  <eggert@twinsun.com>
77771
77772         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
77773         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
77774         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
77775         jm_AC_TYPE_UNSIGNED_LONG_LONG.
77776         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
77777
77778         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
77779
77780 1999-04-20  Jim Meyering  <meyering@ascend.com>
77781
77782         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
77783         AC_REPLACE xstroull if necessary.  From Paul Eggert.
77784         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
77785
77786 1999-04-18  Jim Meyering  <meyering@ascend.com>
77787
77788         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
77789         * m4/jm-macros.m4: Use it.
77790
77791 1999-04-06  Jim Meyering  <meyering@ascend.com>
77792
77793         * m4/strftime.m4: Remove test for %f.
77794
77795 1999-03-29  Jim Meyering  <meyering@ascend.com>
77796
77797         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
77798         superset of the AC_TYPE_* checks in the textutils, fileutils,
77799         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
77800         AC_TYPE_PID_T.
77801
77802 1999-03-28  Jim Meyering  <meyering@ascend.com>
77803
77804         * m4/jm-macros.m4: Define GNU_PACKAGE here.
77805         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
77806         replaced e.g., in the *.sh files of the sh-utils.
77807
77808 1999-03-20  Jim Meyering  <meyering@ascend.com>
77809
77810         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
77811         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
77812         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
77813
77814 1999-03-19  Jim Meyering  <meyering@ascend.com>
77815
77816         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
77817
77818 1999-03-12  Jim Meyering  <meyering@ascend.com>
77819
77820         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
77821
77822 1999-03-07  Jim Meyering  <meyering@ascend.com>
77823
77824         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
77825         declared.
77826
77827 1999-02-17  Jim Meyering  <meyering@ascend.com>
77828
77829         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
77830         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
77831
77832 1999-02-07  Jim Meyering  <meyering@ascend.com>
77833
77834         * m4/group-member.m4: New file -- extracted from sh-utils'
77835         configure.in.
77836
77837         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
77838         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
77839
77840 1999-02-06  Jim Meyering  <meyering@ascend.com>
77841
77842         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
77843         * m4/fnmatch.m4: Likewise.
77844         * m4/getgroups.m4: Likewise.
77845         * m4/lstat.m4: Likewise.
77846         * m4/malloc.m4: Likewise.
77847         * m4/putenv.m4: Likewise.
77848         * m4/realloc.m4: Likewise.
77849         * m4/regex.m4: Likewise.
77850         * m4/stat.m4: Likewise.
77851         * m4/strftime.m4: Likewise.
77852         Suggestion from Alain Magloire.
77853
77854         * m4/chown.m4: Use `.$ac_objext', not `.o'.
77855         * m4/fnmatch.m4: Likewise.
77856         * m4/getgroups.m4: Likewise.
77857         * m4/getline.m4: Likewise.
77858         * m4/lstat.m4: Likewise.
77859         * m4/malloc.m4: Likewise.
77860         * m4/memcmp.m4: Likewise.
77861         * m4/putenv.m4: Likewise.
77862         * m4/realloc.m4: Likewise.
77863         * m4/regex.m4: Likewise.
77864         * m4/stat.m4: Likewise.
77865         * m4/strftime.m4: Likewise.
77866         Suggestion from Alain Magloire.
77867
77868         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
77869         an argument.
77870
77871         * m4/regex.m4: Add a run-time Test for proper operation of
77872         re_compile_pattern.
77873
77874 1999-01-31  Jim Meyering  <meyering@ascend.com>
77875
77876         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
77877
77878 1999-01-30  Jim Meyering  <meyering@ascend.com>
77879
77880         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
77881
77882         * m4/jm-mktime.m4: Make this a wrapper around the official
77883         AM_FUNC_MKTIME rather than my private copy, now that the official one
77884         is up to date.
77885         * m4/mktime.m4: Remove file.
77886
77887         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
77888         * m4/uptime.m4: Likewise.
77889         * m4/uintmax_t.m4: Likewise.
77890
77891 1999-01-28  Jim Meyering  <meyering@ascend.com>
77892
77893         * m4/jm-macros.m4: Use jm_AFS.
77894         * m4/afs.m4: New file (from fileutils' configure.in).
77895
77896         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
77897         * m4/chown.m4: Likewise.
77898         * m4/d-ino.m4: Likewise.
77899         * m4/d-type.m4: Likewise.
77900         * m4/fnmatch.m4: Likewise.
77901         * m4/getgroups.m4: Likewise.
77902         * m4/gettext.m4: Likewise.
77903         * m4/jm-mktime.m4: Likewise.
77904         * m4/jm-winsz2.m4: Likewise.
77905         * m4/lcmessage.m4: Likewise.
77906         * m4/ls-mntd-fs.m4: Likewise.
77907         * m4/malloc.m4: Likewise.
77908         * m4/memcmp.m4: Likewise.
77909         * m4/putenv.m4: Likewise.
77910         * m4/realloc.m4: Likewise.
77911         * m4/st_mtim.m4: Likewise.
77912         * m4/strftime.m4: Likewise.
77913
77914 1999-01-16  Jim Meyering  <meyering@ascend.com>
77915
77916         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
77917         (ARGMATCH_DIE_DECL): Define.
77918
77919 1999-01-12  Jim Meyering  <meyering@ascend.com>
77920
77921         * m4/Makefile.am.in: Rewrite to avoid using fmt.
77922         Reported by Lars Hecking.
77923
77924 1999-01-10  Jim Meyering  <meyering@ascend.com>
77925
77926         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
77927         gross kludge.
77928         * m4/inttypes_h.m4: Likewise.
77929         * m4/lstat.m4: Likewise.
77930         * m4/malloc.m4: Likewise.
77931         * m4/readdir.m4: Likewise.
77932         * m4/realloc.m4: Likewise.
77933         * m4/st_dm_mode.m4: Likewise.
77934         * m4/stat.m4: Likewise.
77935         * m4/utimbuf.m4: Likewise.
77936         * m4/utimes.m4: Likewise.
77937
77938         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
77939         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
77940         comments in config.h.in are meaningful.
77941
77942         * m4/jm-macros.m4: Require autoconf-2.13 here.
77943
77944         * m4/regex.m4: By default, don't use the included regex.c on systems
77945         with glibc 2.  Suggestion from Uli Drepper.
77946
77947 1999-01-02  Jim Meyering  <meyering@ascend.com>
77948
77949         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
77950
77951 1998-12-18  Jim Meyering  <meyering@ascend.com>
77952
77953         * m4/Makefile.am.in (Makefile.am): Simplify rule.
77954         Based on a suggestion from Lars Hecking.
77955
77956 1998-11-16  Paul Eggert  <eggert@twinsun.com>
77957
77958         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
77959
77960 1998-11-16  Jim Meyering  <meyering@ascend.com>
77961
77962         * m4/lfs.m4: Double-quote the `uname...` expression.
77963
77964 1998-11-14  Jim Meyering  <meyering@ascend.com>
77965
77966         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
77967         * m4/stat.m4: Likewise.
77968
77969 1998-11-03  Jim Meyering  <meyering@ascend.com>
77970
77971         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
77972         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
77973
77974 1998-10-18  Jim Meyering  <meyering@ascend.com>
77975
77976         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
77977
77978 1998-10-17  Jim Meyering  <meyering@ascend.com>
77979
77980         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
77981         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
77982         calls for those previously hard-coded headers.  Instead, take a new
77983         parameter.
77984         (jm_CHECK_DECLARATIONS): Reflect interface change.
77985         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
77986         (jm_CHECK_DECL_LOCALTIME_R): New macro.
77987
77988         * m4/mktime.m4: Test for spring-forward gap before long-running test.
77989
77990 1998-10-14  Jim Meyering  <meyering@ascend.com>
77991
77992         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
77993         instead of "TZ=America/Vancouver".  From Paul Eggert.
77994
77995 1998-10-11  Jim Meyering  <meyering@ascend.com>
77996
77997         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
77998         This adds a test for a recently added compatibility fix for mktime.c.
77999         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
78000
78001 1998-09-27  Jim Meyering  <meyering@ascend.com>
78002
78003         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
78004
78005         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
78006         ../configure.in, including a change from Gordon Matzigkeit to allow
78007         cross-compiling for the Hurd.
78008
78009         * m4/glibc.m4: New file/macro to test for the GNU C Library
78010         versions 1 and 2.  From Gordon Matzigkeit.
78011         Indent.
78012
78013 1998-09-21  Jim Meyering  <meyering@ascend.com>
78014
78015         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
78016
78017 1998-08-18  Paul Eggert  <eggert@twinsun.com>
78018
78019         Port nanosecond-resolution times to UnixWare 2.1.2 and
78020         pedantic Solaris 2.6.
78021
78022         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
78023         AC_STRUCT_ST_MTIM.
78024         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
78025         Generate name of ns member, instead of just 1 or undef.
78026         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
78027
78028 1998-08-15  Jim Meyering  <meyering@ascend.com>
78029
78030         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
78031         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
78032         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
78033         instead of jm_TYPE_SSIZE_T.
78034
78035 1998-08-12  Jim Meyering  <meyering@ascend.com>
78036
78037         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
78038
78039 1998-08-02  Jim Meyering  <meyering@ascend.com>
78040
78041         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
78042         in acconfig.h manually.
78043
78044 1998-07-31  Paul Eggert  <eggert@twinsun.com>
78045
78046         * m4/st_mtim.m4: New file.
78047
78048 1998-07-28  Jim Meyering  <meyering@ascend.com>
78049
78050         * m4/utimes.m4: Undef stat.
78051
78052 1998-07-25  Jim Meyering  <meyering@ascend.com>
78053
78054         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
78055         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
78056
78057 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
78058
78059         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
78060         uid and gid actually remain unchanged.
78061
78062 1998-07-07  Jim Meyering  <meyering@ascend.com>
78063
78064         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
78065
78066 1998-07-04  Jim Meyering  <meyering@ascend.com>
78067
78068         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
78069         to prove that this macro can be used in packages without regex.c.
78070
78071 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
78072
78073         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
78074         is to be used.
78075
78076 1998-07-03  Jim Meyering  <meyering@ascend.com>
78077
78078         * m4/gettext.m4: Add -lintl if it's found to be necessary.
78079
78080         * m4/gettext.m4: New file -- from gettext-0.10.35.
78081         * m4/lcmessage.m4: Likewise.
78082         * m4/progtest.m4: Likewise.
78083
78084         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
78085         * m4/jm-macros.m4: Require the new macro.
78086
78087 1998-06-29  Jim Meyering  <meyering@ascend.com>
78088
78089         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
78090         for the definition of NGROUPS (used in a system header included
78091         by sys/mount.h).
78092
78093 1998-06-28  Jim Meyering  <meyering@ascend.com>
78094
78095         * m4/ls-mntd-fs.m4: New file.
78096         * m4/fstypename.m4: New file.
78097
78098         * m4/jm-macros.m4: Require the new macro.
78099         * m4/jm-glibc-io.m4: New file.
78100
78101 1998-05-19  Jim Meyering  <meyering@ascend.com>
78102
78103         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
78104         * m4/lchown.m4: New file.
78105
78106         * m4/Makefile.am.in: New file.
78107         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
78108
78109 1998-05-14  Jim Meyering  <meyering@ascend.com>
78110
78111         * m4/Makefile.am (EXTRA_DIST): Add them.
78112         * m4/jm-macros.m4: New file.
78113         * m4/utimbuf.m4: New file.
78114
78115 1998-05-12  Jim Meyering  <meyering@ascend.com>
78116
78117         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
78118
78119 1998-05-11  Jim Meyering  <meyering@ascend.com>
78120
78121         * m4/isc-posix.m4: New file.
78122
78123 1998-05-10  Jim Meyering  <meyering@ascend.com>
78124
78125         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
78126
78127 1998-05-09  Jim Meyering  <meyering@ascend.com>
78128
78129         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
78130         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
78131         with automake.
78132
78133         * m4/ssize_t.m4: New file.
78134         * m4/mktime.m4: Remove file -- the new automake has this now.
78135
78136 1998-04-26  Jim Meyering  <meyering@ascend.com>
78137
78138         * m4/assert.m4: New file.
78139         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
78140
78141 1998-04-05  Jim Meyering  <meyering@ascend.com>
78142
78143         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
78144         (jm_PREREQ): Use it here.
78145
78146 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
78147
78148         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
78149         in acconfig.h.
78150
78151 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
78152
78153         * m4/prereq.m4: New file.
78154         * m4/error.m4: New file.
78155         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
78156
78157 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
78158
78159         * m4/getline.m4: Don't set am_cv_func_working_getline before the
78160         cache-check for the same variable -- that defeated the purpose of
78161         the test; the test program was never run.  This was a problem only
78162         on systems with losing getline functions -- HP-UX 10.20 is one.
78163         Reported by Bjorn Helgaas.
78164
78165 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
78166
78167         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
78168
78169 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
78170
78171         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
78172
78173         * m4/const.m4: New file.  Use an initializer in this declaration
78174         typedef int charset[2]; const charset x;
78175         Reported by Bob Glickstein.
78176
78177 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
78178
78179         * m4/chown.m4: Fix reversed types on -1 args to chown.
78180         From Kaveh Ghazi.
78181
78182 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
78183
78184         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
78185         Add lseek and memchr.
78186
78187         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
78188         T.E.Dickey <dickey@clark.net> said that some older preprocessors
78189         have a 20-character limit on names.
78190
78191 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
78192
78193         * m4/inttypes_h.m4: New file.
78194         * m4/uintmax_t.m4: New file.
78195         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
78196
78197
78198         -----
78199
78200         Local Variables:
78201         coding: utf-8
78202         End:
78203
78204         Copyright (C) 1997-2011 Free Software Foundation, Inc.
78205
78206         Copying and distribution of this file, with or without
78207         modification, are permitted provided the copyright notice
78208         and this notice are preserved.