nonblocking: Add comment.
[pspp] / ChangeLog
1 2011-04-17  Bruno Haible  <bruno@clisp.org>
2
3         nonblocking: Add comment.
4         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
5
6 2011-04-17  Bruno Haible  <bruno@clisp.org>
7
8         nonblocking: Add tests for sockets.
9         * tests/test-nonblocking-socket.sh: New file.
10         * tests/test-nonblocking-socket-main.c: New file.
11         * tests/test-nonblocking-socket-child.c: New file.
12         * tests/test-nonblocking-socket.h: New file.
13         * tests/socket-server.h: New file.
14         * tests/socket-client.h: New file.
15         * modules/nonblocking-socket-tests: New file.
16         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17
18 2011-04-17  Bruno Haible  <bruno@clisp.org>
19
20         nonblocking: Add tests for pipes.
21         * tests/test-nonblocking-pipe.sh: New file.
22         * tests/test-nonblocking-pipe-main.c: New file.
23         * tests/test-nonblocking-pipe-child.c: New file.
24         * tests/test-nonblocking-pipe.h: New file.
25         * tests/test-nonblocking-writer.h: New file.
26         * tests/test-nonblocking-reader.h: New file.
27         * tests/test-nonblocking-misc.h: New file.
28         * modules/nonblocking-pipe-tests: New file.
29         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
30
31 2011-04-16  Bruno Haible  <bruno@clisp.org>
32
33         gettext: Clarify the needed programmer actions.
34         * modules/gettext (Notice): New field.
35         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
36
37 2011-04-16  Bruno Haible  <bruno@clisp.org>
38
39         strchrnul: Tweak last commit.
40         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
41         bug.
42         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
43         as in _GL_FUNCDECL_SYS.
44         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
45         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
46
47 2011-04-15  Eric Blake  <eblake@redhat.com>
48
49         strchrnul: work around cygwin bug
50         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
51         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
52         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
53         * modules/string (Makefile.am): Substitute it.
54         * lib/string.in.h (strchrnul): Use it.
55
56 2011-04-15  Bruno Haible  <bruno@clisp.org>
57
58         Don't require lib/stdio-write.c when only module 'stdio' is used.
59         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
60         invocation.
61         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
62
63 2011-04-14  Bruno Haible  <bruno@clisp.org>
64
65         Support non-blocking pipe I/O in read() on native Windows.
66         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
67         (read): New declaration.
68         * lib/read.c: New file.
69         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
70         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
71         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
72         vscanf): New declarations.
73         * lib/stdio-read.c: New file.
74         * m4/read.m4: New file.
75         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
76         REPLACE_READ.
77         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
78         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
79         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
80         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
81         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
82         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
83         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
84         * modules/read: New file.
85         * modules/nonblocking (Files): Add lib/stdio-read.c.
86         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
87         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
88         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
89         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
90         * modules/pread (Depends-on): Add read.
91         * modules/safe-read (Depends-on): Likewise.
92         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
93         gets, scanf, vfscanf, vscanf): Verify signatures.
94         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
95         problem with non-blocking pipes.
96         * doc/posix-functions/fgetc.texi: Likewise.
97         * doc/posix-functions/fgets.texi: Likewise.
98         * doc/posix-functions/fread.texi: Likewise.
99         * doc/posix-functions/fscanf.texi: Likewise.
100         * doc/posix-functions/getc.texi: Likewise.
101         * doc/posix-functions/getchar.texi: Likewise.
102         * doc/posix-functions/gets.texi: Likewise.
103         * doc/posix-functions/scanf.texi: Likewise.
104         * doc/posix-functions/vfscanf.texi: Likewise.
105         * doc/posix-functions/vscanf.texi: Likewise.
106
107 2011-04-14  Bruno Haible  <bruno@clisp.org>
108
109         Support non-blocking pipe I/O in write() on native Windows.
110         * lib/write.c (rpl_write): Split a write request that failed merely
111         because the byte count was larger than the pipe buffer's size.
112         * doc/posix-functions/write.texi: Mention the problem with large byte
113         counts.
114
115 2011-04-14  Bruno Haible  <bruno@clisp.org>
116
117         wchar: Ensure that wchar_t gets defined on uClibc.
118         * lib/wchar.in.h: On uClibc, include <stddef.h>.
119         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
120
121 2011-04-13  Bruno Haible  <bruno@clisp.org>
122
123         safe-write, full-read: Avoid unnecessary compilation units.
124         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
125         (Depends-on): Remove safe-read. Add ssize_t.
126         * modules/full-read (Files): Add lib/full-write.c.
127         (Depends-on): Add full-write.
128
129 2011-04-13  Bruno Haible  <bruno@clisp.org>
130
131         Support non-blocking pipe I/O and SIGPIPE in pwrite().
132         * modules/pwrite (Depends-on): Add 'write'.
133
134 2011-04-13  Bruno Haible  <bruno@clisp.org>
135
136         Support non-blocking pipe I/O in write() on native Windows.
137         * lib/unistd.in.h (write): Enable replacement also if
138         GNULIB_UNISTD_H_NONBLOCKING is 1.
139         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
140         (rpl_write): When failing to write on a non-blocking pipe, change
141         errno from ENOSPC to EAGAIN.
142         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
143         putchar, puts, vfprintf, vprintf): Enable replacement also if
144         GNULIB_STDIO_H_NONBLOCKING is 1.
145         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
146         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
147         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
148         CALL_WITH_SIGPIPE_EMULATION.
149         (CALL_WITH_SIGPIPE_EMULATION): Use them.
150         * m4/nonblocking.m4: New file.
151         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
152         for non-blocking I/O support.
153         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
154         GNULIB_UNISTD_H_NONBLOCKING.
155         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
156         required for non-blocking I/O support.
157         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
158         * modules/nonblocking (Files): Add m4/nonblocking.m4,
159         lib/stdio-write.c, m4/asm-underscore.m4.
160         (Depends-on): Add stdio, unistd.
161         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
162         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
163         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
164         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
165         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
166         problem with non-blocking pipes.
167         * doc/posix-functions/fputc.texi: Likewise.
168         * doc/posix-functions/fputs.texi: Likewise.
169         * doc/posix-functions/fwrite.texi: Likewise.
170         * doc/posix-functions/printf.texi: Likewise.
171         * doc/posix-functions/putc.texi: Likewise.
172         * doc/posix-functions/putchar.texi: Likewise.
173         * doc/posix-functions/puts.texi: Likewise.
174         * doc/posix-functions/vfprintf.texi: Likewise.
175         * doc/posix-functions/vprintf.texi: Likewise.
176         * doc/posix-functions/write.texi: Likewise.
177
178 2011-04-10  Jim Meyering  <meyering@redhat.com>
179
180         maint.mk: prohibit doubled words
181         Detect them also when they're separated by a newline.
182         There are 3 ways to customize it:
183           - disable the test on a per file basis, as usual with rules using
184             $(VC_LIST_EXCEPT)
185           - replace the default doubled-word-selecting regexp (affects all files)
186           - ignore a particular file-vs-doubled-word match
187         I nearly used that last one to ignore the "is is" match in
188         coreutils' NEWS file, since the text was "ls -is is ..."
189         To do that, I would have added this line to cfg.mk:
190           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
191         but it would have ignored any "is is" match in NEWS.
192         Low probability, but still...
193         Instead, I changed the text, slightly:
194           -  ls -is is now consistent with ls -lis in ignoring values returned
195           +  "ls -is" is now consistent with ls -lis in ignoring values returned
196         * top/maint.mk (prohibit_double_word_RE_): Provide default.
197         (prohibit_doubled_word_): Define.
198         (sc_prohibit_doubled_word): New rule.
199         (sc_prohibit_the_the): Remove.  Subsumed by the above.
200
201 2011-04-10  Jim Meyering  <meyering@redhat.com>
202
203         maint: fix doubled-word typo in comment
204         * m4/gethostname.m4: s/is is/it is/
205         * m4/getdomainname.m4: Likewise.
206
207 2011-04-10  Jim Meyering  <meyering@redhat.com>
208
209         maint: remove doubled word: s/it it/it/
210         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
211
212 2011-04-10  Jim Meyering  <meyering@redhat.com>
213
214         maint.mk: remove useless semicolon and backslash
215         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
216         semicolon and backslash.
217
218 2011-04-10  Bruno Haible  <bruno@clisp.org>
219
220         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
221         * modules/stdint-tests (Depends-on): Add wchar.
222
223 2011-04-10  Jim Meyering  <meyering@redhat.com>
224
225         maint: remove doubled words in comments, e.g., s/a a/a/
226         * lib/strptime.c (day_of_the_week): s/the the/the/
227         * tests/test-chown.h (test_chown): s/a a/a/
228
229         test-chown.h: correct a cast
230         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
231         when the destination is a stat.st_gid.
232
233 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
234
235         getaddrinfo: Fix test for sa_len member.
236         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
237         include <sys/types.h> before <sys/socket.h>.
238
239 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
240
241         maint: change "can not" to "cannot"
242         * doc/posix-functions/iconv.texi (iconv): This one crossed line
243         boundaries.
244
245 2011-04-09  Jim Meyering  <meyering@redhat.com>
246
247         maint: change "a a" to "a"
248         * tests/test-lchown.h (test_lchown): s/a a/a/
249
250         maint.mk: prohibit \<the the\>
251         * top/maint.mk (sc_prohibit_the_the): New rule.
252
253         maint: fix "the the" in comment
254         * lib/count-one-bits.h: s/the the/the/
255
256         maint: change "can not" to "cannot"
257         But do not change the occurrences in maintain.texi or in
258         build-aux/po/Makefile.in.in, which I presume comes from gettext.
259         * doc/gnulib-tool.texi: s/can not/cannot/
260         * doc/posix-functions/accept.texi (accept): Likewise.
261         * doc/posix-functions/socket.texi (socket): Likewise.
262         * lib/mbrtowc.c: Likewise.
263
264         maint.mk: prohibit use of "can not"
265         * top/maint.mk (sc_prohibit_can_not): New rule.
266         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
267
268 2011-04-09  Bruno Haible  <bruno@clisp.org>
269
270         careadlinkat: Guard against misuse of careadlinkatcwd.
271         * lib/careadlinkat.c: Include <stdlib.h>.
272         (careadlinkatcwd): Check that the fd argument is as expected.
273
274 2011-04-09  Bruno Haible  <bruno@clisp.org>
275
276         careadlinkat: Use common coding style.
277         * lib/careadlinkat.c: Move gnulib includes after system includes.
278
279 2011-04-09  Bruno Haible  <bruno@clisp.org>
280
281         careadlinkat: Clarify specification.
282         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
283         (careadlinkatcwd): Add comment.
284         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
285
286 2011-04-09  Bruno Haible  <bruno@clisp.org>
287
288         areadlinkat: Avoid link error on many platforms.
289         * modules/areadlinkat (Depends-on): Add areadlink.
290
291 2011-04-09  Bruno Haible  <bruno@clisp.org>
292
293         allocator, careadlinkat: Fix double-inclusion guard.
294         * lib/allocator.h: Fix double-inclusion guard.
295         * lib/careadlinkat.h: Likewise.
296
297 2011-04-09  Bruno Haible  <bruno@clisp.org>
298
299         relocatable-prog-wrapper: Update after module 'areadlink' changed.
300         * lib/relocwrapper.c: Update dependencies hierarchy.
301         * build-aux/install-reloc: Update list of files to be compiled.
302         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
303         lib/allocator.[hc].
304
305 2011-04-08  Eric Blake  <eblake@redhat.com>
306
307         strftime: silence gnulib-tool warning
308         * modules/strftime-tests (Depends-on): Drop automatic dependency.
309
310 2011-04-08  Bruno Haible  <bruno@clisp.org>
311
312         verify: Fix syntax error with GCC 4.6 in C++ mode.
313         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
314         (HAVE_STATIC_ASSERT): New macro.
315         (verify_true, verify): Use 'static_assert' if it is supported and
316         '_Static_assert' is not supported.
317
318 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
319
320         allocator: New module.
321         * modules/allocator, lib/allocator.c: New files.
322         * lib/allocator.h (stdlib_allocator): New decl.
323         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
324         Remove.  Do not include <stdlib.h>.
325         (careadlinkat): Use stdlib_allocator instead of rolling our own.
326         * modules/careadlinkat (Files): Remove lib/allocator.h.
327         (Depends-on): Add allocator.
328
329         stdlib: let modules use system malloc, realloc
330         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
331         if !_GL_USE_STDLIB_ALLOC.
332         (malloc, realloc): Limit this change to a smaller scope.
333
334         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
335         (malloc, realloc): Don't #undef; no longer needed.
336         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
337         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
338         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
339         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
340         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
341         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
342         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
343         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
344
345         careadlinkat: rename members to avoid problem
346         * lib/allocator.h (struct allocator): Rename members from
347         malloc/realloc to allocate/reallocate, to avoid problems if malloc
348         and realloc are #define'd.  Reported by Eric Blake in
349         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
350         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
351
352 2011-04-08  Eric Blake  <eblake@redhat.com>
353
354         nonblocking: reduce dependency
355         * tests/test-nonblocking.c: Only test sockets when in use.
356         * modules/nonblocking-tests (Depends-on): Drop socket.
357         (Makefile.am): Link even if sockets are not present.
358         * modules/pipe2-tests (Makefile.am): Likewise.
359         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
360
361         pipe2: fix O_NONBLOCK support on mingw
362         * modules/pipe2 (Depends-on): Add nonblocking.
363         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
364         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
365         * tests/test-nonblocking.c (main): Likewise.
366         * modules/pipe2-tests (Makefile.am): Avoid link failure.
367
368         fcntl-h: fix O_ACCMODE on cygwin
369         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
370         * lib/fcntl.in.h (O_ACCMODE): Fix it.
371
372         pipe-filter: drop O_NONBLOCK workarounds
373         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
374         * modules/pipe-filter-ii (Depends-on): Likewise.
375         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
376
377         nonblocking: provide O_NONBLOCK for mingw
378         * modules/nonblocking (Depends-on): Add open.
379         (configure.ac): Set new witness macro.
380         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
381         * modules/fcntl-h (Makefile.am): Substitute it.
382         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
383         nonblocking module is in use.
384         * lib/nonblocking.c: Adjust portability test.
385         * lib/open.c (open): Don't let native open see gnulib flag.
386         * tests/test-fcntl-h.c (main): Enhance test.
387         * tests/test-open.h (test_open): Likewise.
388         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
389
390         careadlinkat: fix compilation error on mingw
391         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
392         within struct allocator.
393
394 2011-04-06  Eric Blake  <eblake@redhat.com>
395
396         binary-io: relicense under LGPLv2+
397         * modules/binary-io (License): Relax to LGPLv2+.
398         Requested for libvirt, and required by pipe2.
399
400 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
401
402         verify: use _Static_assert if available
403         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
404         (verify_true, verify): Use it if available.  This generates better
405         diagnostics with GCC 4.6.0 and later.
406
407 2011-04-05  Bruno Haible  <bruno@clisp.org>
408
409         Remove leftover generated .h files after config.status changed.
410
411         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
412         GL_GENERATE_ALLOCA_H.
413         * modules/alloca-opt (Makefile.am): Remove alloca.h if
414         GL_GENERATE_ALLOCA_H evaluates to false.
415
416         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
417         GL_GENERATE_ARGZ_H.
418         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
419         evaluates to false.
420
421         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
422         GL_GENERATE_BYTESWAP_H.
423         * modules/byteswap (Makefile.am): Remove byteswap.h if
424         GL_GENERATE_BYTESWAP_H evaluates to false.
425
426         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
427         GL_GENERATE_ERRNO_H.
428         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
429         evaluates to false.
430
431         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
432         GL_GENERATE_FLOAT_H.
433         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
434         evaluates to false.
435
436         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
437         GL_GENERATE_FNMATCH_H.
438         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
439         GL_GENERATE_FNMATCH_H evaluates to false.
440
441         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
442         GL_GENERATE_GLOB_H.
443         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
444         evaluates to false.
445
446         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
447         automake conditional GL_GENERATE_ICONV_H.
448         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
449         evaluates to false.
450
451         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
452         GL_GENERATE_NETINET_IN_H.
453         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
454         GL_GENERATE_NETINET_IN_H evaluates to false.
455
456         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
457         conditional GL_GENERATE_PTHREAD_H.
458         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
459         * modules/pthread (Makefile.am): Remove pthread.h if
460         GL_GENERATE_PTHREAD_H evaluates to false.
461
462         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
463         GL_GENERATE_SCHED_H.
464         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
465         evaluates to false.
466
467         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
468         conditional GL_GENERATE_SELINUX_CONTEXT_H.
469         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
470         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
471
472         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
473         GL_GENERATE_STDARG_H.
474         * modules/stdarg (Makefile.am): Remove stdarg.h if
475         GL_GENERATE_STDARG_H evaluates to false.
476
477         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
478         GL_GENERATE_STDBOOL_H.
479         * modules/stdbool (Makefile.am): Remove stdbool.h if
480         GL_GENERATE_STDBOOL_H evaluates to false.
481
482         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
483         conditional GL_GENERATE_STDDEF_H.
484         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
485         * modules/stddef (Makefile.am): Remove stddef.h if
486         GL_GENERATE_STDDEF_H evaluates to false.
487
488         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
489         GL_GENERATE_STDINT_H.
490         * modules/stdint (Makefile.am): Remove stdint.h if
491         GL_GENERATE_STDINT_H evaluates to false.
492
493         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
494         GL_GENERATE_SYSEXITS_H.
495         * modules/sysexits (Makefile.am): Remove sysexits.h if
496         GL_GENERATE_SYSEXITS_H evaluates to false.
497
498         Reported by Karl Berry and Ralf Wildenhues.
499
500 2011-04-05  Bruno Haible  <bruno@clisp.org>
501
502         Ensure to rebuild generated .h files when config.status has changed.
503         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
504         config.status.
505         * modules/ctype (Makefile.am): Likewise.
506         * modules/dirent (Makefile.am): Likewise.
507         * modules/errno (Makefile.am): Likewise.
508         * modules/fcntl-h (Makefile.am): Likewise.
509         * modules/float (Makefile.am): Likewise.
510         * modules/getopt-posix (Makefile.am): Likewise.
511         * modules/glob (Makefile.am): Likewise.
512         * modules/iconv-h (Makefile.am): Likewise.
513         * modules/inttypes (Makefile.am): Likewise.
514         * modules/langinfo (Makefile.am): Likewise.
515         * modules/locale (Makefile.am): Likewise.
516         * modules/math (Makefile.am): Likewise.
517         * modules/netdb (Makefile.am): Likewise.
518         * modules/netinet_in (Makefile.am): Likewise.
519         * modules/poll-h (Makefile.am): Likewise.
520         * modules/pthread (Makefile.am): Likewise.
521         * modules/pty (Makefile.am): Likewise.
522         * modules/sched (Makefile.am): Likewise.
523         * modules/search (Makefile.am): Likewise.
524         * modules/selinux-h (Makefile.am): Likewise.
525         * modules/signal (Makefile.am): Likewise.
526         * modules/spawn (Makefile.am): Likewise.
527         * modules/stdarg (Makefile.am): Likewise.
528         * modules/stdbool (Makefile.am): Likewise.
529         * modules/stddef (Makefile.am): Likewise.
530         * modules/stdint (Makefile.am): Likewise.
531         * modules/stdio (Makefile.am): Likewise.
532         * modules/stdlib (Makefile.am): Likewise.
533         * modules/string (Makefile.am): Likewise.
534         * modules/strings (Makefile.am): Likewise.
535         * modules/sys_file (Makefile.am): Likewise.
536         * modules/sys_ioctl (Makefile.am): Likewise.
537         * modules/sys_select (Makefile.am): Likewise.
538         * modules/sys_socket (Makefile.am): Likewise.
539         * modules/sys_stat (Makefile.am): Likewise.
540         * modules/sys_time (Makefile.am): Likewise.
541         * modules/sys_times (Makefile.am): Likewise.
542         * modules/sys_utsname (Makefile.am): Likewise.
543         * modules/sys_wait (Makefile.am): Likewise.
544         * modules/sysexits (Makefile.am): Likewise.
545         * modules/termios (Makefile.am): Likewise.
546         * modules/time (Makefile.am): Likewise.
547         * modules/unistd (Makefile.am): Likewise.
548         * modules/wchar (Makefile.am): Likewise.
549         * modules/wctype-h (Makefile.am): Likewise.
550         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
551
552 2011-04-05  Bruno Haible  <bruno@clisp.org>
553
554         pipe2: Relicense under LGPLv2+.
555         * modules/pipe2 (License): Change to LGPLv2+.
556         Requested by Eric Blake, for libvirt.
557
558 2011-04-05  Bruce Korb  <bkorb@gnu.org>
559
560         bootstrap: compute gnulib_extra_files after updating build_aux
561         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
562         change build_aux or also supply gnulib_extra_files.  Handle correctly.
563
564 2011-04-05  Eric Blake  <eblake@redhat.com>
565
566         bootstrap: preserve git whitelist item sorting
567         * build-aux/bootstrap (sort_patterns): New function.
568         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
569
570 2011-04-05  Simon Josefsson  <simon@josefsson.org>
571
572         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
573         sc_space_tab check.
574
575 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
576
577         areadlink, areadlinkat: rewrite in terms of careadlinkat
578         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
579         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
580         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
581         (malloc, realloc): Remove #undefs.
582         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
583         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
584         readlink, ssize_t, stdint, unistd.
585         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
586         areadlink, stdint.
587
588         careadlinkat: new module
589         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
590         * modules/careadlinkat: New files, written by me with
591         a review and feedback from Ben Pfaff in
592         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
593
594 2011-04-01  Bruno Haible  <bruno@clisp.org>
595
596         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
597         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
598         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
599         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
600         Reported by Bruce Korb <bruce.korb@gmail.com>.
601
602 2011-04-01  Bruno Haible  <bruno@clisp.org>
603
604         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
605         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
606         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
607         * modules/wcpcpy (Depends-on): Add extensions.
608         * modules/wcpncpy (Depends-on): Likewise.
609         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
610         systems.
611         * doc/posix-functions/wcpncpy.texi: Likewise.
612         * doc/posix-functions/wcwidth.texi: Likewise.
613
614 2011-03-31  Eric Blake  <eblake@redhat.com>
615
616         nonblocking: fix mingw test failures
617         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
618         non-blocking flag on regular file.
619         (get_nonblocking_flag): Set errno on invalid fd.
620         * tests/test-nonblocking.c (main): Avoid test failure on
621         directories if fchdir is not active.
622         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
623
624 2011-03-31  Bruno Haible  <bruno@clisp.org>
625
626         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
627         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
628         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
629         Reported by Simon Josefsson <simon@josefsson.org>.
630
631 2011-03-31  Bruno Haible  <bruno@clisp.org>
632         and Eric Blake  <eblake@redhat.com>
633
634         nonblocking: new module
635         * modules/nonblocking: New module.
636         * modules/nonblocking-tests: Likewise.
637         * lib/nonblocking.h: New file.
638         * lib/nonblocking.c: Likewise.
639         * tests/test-nonblocking.c: New test.
640         * lib/ioctl.c (ioctl) [mingw]: Update comment.
641
642 2011-03-30  Bruno Haible  <bruno@clisp.org>
643
644         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
645         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
646         instead of 'printf' format for GCC >= 4.4.
647         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
648         (fprintf, printf, vfprintf, vprintf): Declare with
649         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
650         the system's vfprintf() function.
651         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
652
653 2011-03-30  Eric Blake  <eblake@redhat.com>
654
655         passfd: fix scoping bug
656         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
657         before sendmsg/recvmsg.
658
659         passfd: standardize coding conventions
660         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
661         can be learned at compile time.
662         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
663         ifdefs.
664         (sendfd, recvfd): Follow gnulib code conventions.
665
666         passfd: fix incorrect sendmsg arguments
667         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
668         incorrect msg_controllen value.
669         * modules/passfd-tests (Depends-on): Check for alarm.
670         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
671         Reported by Bastien ROUCARIES.
672
673 2011-03-30  Bruno Haible  <bruno@clisp.org>
674
675         c-strcasestr: Relicense under LGPLv2+.
676         * modules/c-strcasestr (License): Change to LGPLv2+.
677         Requested by Eric Blake, for libvirt.
678
679 2011-03-30  Simon Josefsson  <simon@josefsson.org>
680
681         * users.txt: Add libidn2.  Fix libtasn1 link.
682
683 2011-03-30  Jim Meyering  <meyering@redhat.com>
684
685         tests: readlink* ("",... fails with EINVAL on newer kernels
686         readlink and readlinkat have typically failed with ENOENT for
687         the invalid, empty file name,  "".  However, with the advent
688         of linux-2.6.39, they fail with EINVAL.
689         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
690         when operating on the empty file name.
691         * tests/test-readlink.h (test_readlink): Likewise.
692
693 2011-03-29  Bruno Haible  <bruno@clisp.org>
694
695         Relicense some modules under LGPLv2+, for libidn2.
696         * modules/array-mergesort (License): Change to LGPLv2+.
697         * modules/c-strcaseeq (License): Likewise.
698         * modules/striconveh (License): Likewise.
699         * modules/striconveha (License): Likewise.
700         * modules/uniconv/base (License): Likewise.
701         * modules/uniconv/u8-conv-from-enc (License): Likewise.
702         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
703         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
704         * modules/unictype/base (License): Likewise.
705         * modules/unictype/bidiclass-of (License): Likewise.
706         * modules/unictype/category-M (License): Likewise.
707         * modules/unictype/category-none (License): Likewise.
708         * modules/unictype/category-of (License): Likewise.
709         * modules/unictype/category-test (License): Likewise.
710         * modules/unictype/category-test-withtable (License): Likewise.
711         * modules/unictype/combining-class (License): Likewise.
712         * modules/unictype/joiningtype-of (License): Likewise.
713         * modules/unictype/scripts (License): Likewise.
714         * modules/uninorm/base (License): Likewise.
715         * modules/uninorm/canonical-decomposition (License): Likewise.
716         * modules/uninorm/composition (License): Likewise.
717         * modules/uninorm/decompose-internal (License): Likewise.
718         * modules/uninorm/decomposition-table (License): Likewise.
719         * modules/uninorm/nfc (License): Likewise.
720         * modules/uninorm/nfd (License): Likewise.
721         * modules/uninorm/u32-normalize (License): Likewise.
722         * modules/unistr/base (License): Likewise.
723         * modules/unistr/u32-cpy (License): Likewise.
724         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
725         * modules/unistr/u32-to-u8 (License): Likewise.
726         * modules/unistr/u32-uctomb (License): Likewise.
727         * modules/unistr/u8-check (License): Likewise.
728         * modules/unistr/u8-mblen (License): Likewise.
729         * modules/unistr/u8-mbtouc (License): Likewise.
730         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
731         * modules/unistr/u8-mbtoucr (License): Likewise.
732         * modules/unistr/u8-prev (License): Likewise.
733         * modules/unistr/u8-strlen (License): Likewise.
734         * modules/unistr/u8-to-u32 (License): Likewise.
735         * modules/unistr/u8-uctomb (License): Likewise.
736         * modules/unitypes (License): Likewise.
737         Requested by Simon Josefsson.
738
739 2011-03-29  Simon Josefsson  <simon@josefsson.org>
740
741         lib-symbol-visibility: Add a notice.
742         * modules/lib-symbol-visibility (Notice): New field.
743
744 2011-03-29  Bruno Haible  <bruno@clisp.org>
745
746         getaddrinfo: Doc fix.
747         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
748         section "fixed in Gnulib".
749
750 2011-03-28  Simon Josefsson  <simon@josefsson.org>
751
752         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
753         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
754
755 2011-03-26  Bruno Haible  <bruno@clisp.org>
756
757         unictype/property-byname: Reduce the number of load-time relocations.
758         * lib/unictype/pr_byname.c: Include <stdlib.h>.
759         (UC_PROPERTY_INDEX_*): New enumeration values.
760         (uc_property_byname): Convert an index from the lookup table to an
761         uc_property_t.
762         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
763         values.
764
765 2011-03-26  Bruno Haible  <bruno@clisp.org>
766
767         unictype/property-byname: Allow omitted word separators and aliases.
768         * lib/unictype/pr_byname.gperf: Add property names without word
769         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
770         for 'space'.
771
772 2011-03-26  Bruno Haible  <bruno@clisp.org>
773
774         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
775         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
776         also hyphens to space.
777         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
778         without spaces.
779         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
780
781 2011-03-26  Bruno Haible  <bruno@clisp.org>
782
783         unictype/joiningtype-byname: Recognize long names as well.
784         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
785         a long name.
786         * lib/unictype/joiningtype_byname.c: Include <string.h>,
787         unictype/joiningtype_byname.h.
788         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
789         * lib/unictype/joiningtype_byname.gperf: New file.
790         * modules/unictype/joiningtype-byname (Files): Add
791         lib/unictype/joiningtype_byname.gperf.
792         (Depends-on): Add gperf.
793         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
794         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
795         long names.
796
797         Tests for module 'unictype/joiningtype-longname'.
798         * modules/unictype/joiningtype-longname-tests: New file.
799         * tests/unictype/test-joiningtype_longname.c: New file.
800
801         New module 'unictype/joiningtype-longname'.
802         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
803         * lib/unictype/joiningtype_longname.c: New file.
804         * modules/unictype/joiningtype-longname: New file.
805         * modules/unictype/joiningtype-all (Depends-on): Add
806         unictype/joiningtype-longname.
807
808 2011-03-26  Bruno Haible  <bruno@clisp.org>
809
810         unictype/bidiclass-byname: Recognize long names as well.
811         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
812         name.
813         * lib/unictype/bidi_byname.c: Include <string.h>,
814         unictype/bidi_byname.h.
815         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
816         * lib/unictype/bidi_byname.gperf: New file.
817         * modules/unictype/bidiclass-byname (Files): Add
818         lib/unictype/bidi_byname.gperf.
819         (Depends-on): Add gperf.
820         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
821         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
822         long names.
823
824         Tests for module 'unictype/bidiclass-longname'.
825         * modules/unictype/bidiclass-longname-tests: New file.
826         * tests/unictype/test-bidi_longname.c: New file.
827
828         New module 'unictype/bidiclass-longname'.
829         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
830         * lib/unictype/bidi_longname.c: New file.
831         * modules/unictype/bidiclass-longname: New file.
832         * modules/unictype/bidiclass-all (Depends-on): Add
833         unictype/bidiclass-longname.
834
835 2011-03-26  Bruno Haible  <bruno@clisp.org>
836
837         unictype/bidi*: Rename modules.
838         * modules/unictype/bidiclass-all: Renamed from
839         modules/unictype/bidicategory-all.
840         * modules/unictype/bidiclass-name: Renamed from
841         modules/unictype/bidiclass-name.
842         (Description): Update.
843         * modules/unictype/bidiclass-name-tests: Renamed from
844         modules/unictype/bidicategory-name-tests.
845         * modules/unictype/bidiclass-byname: Renamed from
846         modules/unictype/bidicategory-byname.
847         (Description): Update.
848         * modules/unictype/bidiclass-byname-tests: Renamed from
849         modules/unictype/bidicategory-byname-tests.
850         * modules/unictype/bidiclass-of: Renamed from
851         modules/unictype/bidicategory-of.
852         (Description): Update.
853         * modules/unictype/bidiclass-of-tests: Renamed from
854         modules/unictype/bidicategory-of-tests.
855         * modules/unictype/bidiclass-test: Renamed from
856         modules/unictype/bidicategory-test.
857         (Description): Update.
858         * modules/unictype/bidiclass-test-tests: Renamed from
859         modules/unictype/bidicategory-test-tests.
860         * modules/unictype/bidicategory-all: New file, a simple redirection.
861         * modules/unictype/bidicategory-name: Likewise.
862         * modules/unictype/bidicategory-byname: Likewise.
863         * modules/unictype/bidicategory-of: Likewise.
864         * modules/unictype/bidicategory-test: Likewise.
865         * modules/unictype/property-bidi-* (Dependencies): Update.
866         * lib/unictype/bidi_*.c: Update comment.
867
868 2011-03-26  Bruno Haible  <bruno@clisp.org>
869
870         unictype/bidi*: Rename functions, part 2.
871         * modules/unictype/bidicategory-name (configure.ac): Update required
872         libunistring version.
873         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
874
875 2011-03-25  Bruno Haible  <bruno@clisp.org>
876
877         New module 'unictype/combining-class-all'.
878         * modules/unictype/combining-class-all: New file.
879
880         Tests for module 'unictype/combining-class-byname'.
881         * modules/unictype/combining-class-byname-tests: New file.
882         * tests/unictype/test-combiningclass_byname.c: New file.
883
884         New module 'unictype/combining-class-byname'.
885         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
886         * lib/unictype/combiningclass_byname.c: New file.
887         * lib/unictype/combiningclass_byname.gperf: New file.
888         * modules/unictype/combining-class-byname: New file.
889
890         Tests for module 'unictype/combining-class-longname'.
891         * modules/unictype/combining-class-longname-tests: New file.
892         * tests/unictype/test-combiningclass_longname.c: New file.
893
894         New module 'unictype/combining-class-longname'.
895         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
896         * lib/unictype/combiningclass_longname.c: New file.
897         * modules/unictype/combining-class-longname: New file.
898
899         Tests for module 'unictype/combining-class-name'.
900         * modules/unictype/combining-class-name-tests: New file.
901         * tests/unictype/test-combiningclass_name.c: New file.
902
903         New module 'unictype/combining-class-name'.
904         * lib/unictype.in.h (uc_combining_class_name): New declaration.
905         * lib/unictype/combiningclass_name.c: New file.
906         * modules/unictype/combining-class-name: New file.
907
908 2011-03-25  Bruno Haible  <bruno@clisp.org>
909
910         unictype/combining-class: Rename source files.
911         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
912         of unictype/combining.h.
913         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
914         Update.
915         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
916         * modules/unictype/combining-class (Description): Fix.
917         (Files, Makefile.am): Update.
918         * tests/unictype/test-combiningclass.c: Renamed from
919         tests/unictype/test-combining.c.
920         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
921
922 2011-03-25  Bruno Haible  <bruno@clisp.org>
923
924         unictype: Update list of canonical combining classes.
925         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
926
927 2011-03-25  Bruno Haible  <bruno@clisp.org>
928
929         unictype/category-byname: Recognize long names as well.
930         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
931         a long name.
932         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
933         unictype/categ_byname.h.
934         (UC_CATEGORY_INDEX_*): New enumeration values.
935         (uc_general_category_byname): Use uc_general_category_lookup and
936         convert from index to value.
937         * lib/unictype/categ_byname.gperf: New file.
938         * modules/unictype/category-byname (Files): Add
939         lib/unictype/categ_byname.gperf.
940         (Depends-on): Add gperf.
941         (Makefile.am): Add rule for generating unictype/categ_byname.h.
942         * tests/unictype/test-categ_byname.c (main): Test the recognition of
943         long names.
944
945         Tests for module 'unictype/category-longname'.
946         * modules/unictype/category-longname-tests: New file.
947         * tests/unictype/test-categ_longname.c: New file.
948
949         New module 'unictype/category-longname'.
950         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
951         * lib/unictype/categ_longname.c: New file.
952         * modules/unictype/category-longname: New file.
953         * modules/unictype/category-all (Depends-on): Add it.
954
955 2011-03-25  Bruno Haible  <bruno@clisp.org>
956
957         Tests for module 'unictype/category-LC'.
958         * modules/unictype/category-LC-tests: New file.
959         * tests/unictype/test-categ_LC.c: New file, automatically generated.
960
961         New module 'unictype/category-LC'.
962         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
963         (UC_CATEGORY_LC): New declaration.
964         (UC_CASED_LETTER): New macro.
965         * lib/gen-uni-tables.c (is_category_LC): New function.
966         (output_categories): Also handle category LC.
967         (UC_CATEGORY_MASK_LC): New enumeration value.
968         (general_category_byname): Also handle category LC.
969         * lib/unictype/categ_LC.c: New file.
970         * lib/unictype/categ_LC.h: New file, automatically generated.
971         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
972         category LC.
973         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
974         * modules/unictype/category-LC: New file.
975         * modules/unictype/category-byname (Depends-on): Add
976         unictype/category-LC.
977         * modules/unictype/category-all (Depends-on): Likewise.
978
979 2011-03-25  Eric Blake  <eblake@redhat.com>
980
981         xmalloc: revert yesterday's regression
982         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
983         realloc's underlying behavior (allowing allocation of zero-size
984         objects, especially if malloc-gnu is also in use).
985
986 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
987
988         maint.mk: add missing version to VC-tag
989         * top/maint.mk: git tag was missing actual tag name; add it.
990
991         valgrind: do leak checking, and exit with code 1 on error (not 0)
992         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
993         to VALGRIND.
994
995 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
996
997         posix-modules: say what it does.
998         * posix-modules: Add a line to the --help output saying what it does.
999
1000 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
1001
1002         xmalloc: Do not leak if underlying realloc is C99 compatible.
1003         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
1004         This avoids a leak on C99-based systems.  See
1005         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
1006
1007 2011-03-24  Eric Blake  <eblake@redhat.com>
1008
1009         realloc: document portability problem
1010         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
1011         passing 0 size to realloc.
1012
1013 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
1014
1015         doc: update users.txt
1016         * users.txt: Add cvsps, tmpwatch
1017
1018 2011-03-23  Matt Rice  <ratmice@gmail.com>
1019
1020         doc: update users.txt
1021         * users.txt: Add gdb.
1022
1023 2011-03-23  Jim Meyering  <meyering@redhat.com>
1024
1025         doc: update users.txt
1026         Looking through matches up to the following URL (there are still
1027         several more pages), I found several projects that use gnulib:
1028         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
1029         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
1030         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
1031
1032 2011-03-22  Bruno Haible  <bruno@clisp.org>
1033
1034         unictype/bidi*: Rename functions.
1035         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
1036         uc_bidi_class, uc_is_bidi_class): New declarations.
1037         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
1038         uc_bidi_category_byname.
1039         (uc_bidi_category_byname): New function.
1040         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
1041         u_bidi_category_name.
1042         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
1043         (uc_bidi_category_name): New function.
1044         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
1045         uc_bidi_category.
1046         (uc_bidi_category): New function.
1047         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
1048         uc_is_bidi_category. Invoke uc_bidi_class.
1049         (uc_is_bidi_category): New function.
1050         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
1051         instead of uc_bidi_category_byname.
1052         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
1053         instead of uc_bidi_category_name.
1054         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
1055         uc_bidi_category.
1056         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
1057         instead of uc_is_bidi_category.
1058
1059 2011-03-21  Bruno Haible  <bruno@clisp.org>
1060
1061         New module 'unictype/joininggroup-all'.
1062         * modules/unictype/joininggroup-all: New file.
1063
1064         Tests for module 'unictype/joininggroup-of'.
1065         * modules/unictype/joininggroup-of-tests: New file.
1066         * tests/unictype/test-joininggroup_of.c: New file.
1067         * tests/unictype/test-joininggroup_of.h: New file, automatically
1068         generated by gen-uni-tables.
1069
1070         New module 'unictype/joininggroup-of'.
1071         * modules/unictype/joininggroup-of: New file.
1072         * lib/unictype/joininggroup_of.c: New file.
1073         * lib/unictype/joininggroup_of.h: New file, automatically generated by
1074         gen-uni-tables.
1075
1076         Tests for module 'unictype/joininggroup-byname'.
1077         * modules/unictype/joininggroup-byname-tests: New file.
1078         * tests/unictype/test-joininggroup_byname.c: New file.
1079
1080         New module 'unictype/joininggroup-byname'.
1081         * modules/unictype/joininggroup-byname: New file.
1082         * lib/unictype/joininggroup_byname.c: New file.
1083         * lib/unictype/joininggroup_byname.gperf: New file.
1084
1085         Tests for module 'unictype/joininggroup-name'.
1086         * modules/unictype/joininggroup-name-tests: New file.
1087         * tests/unictype/test-joininggroup_name.c: New file.
1088
1089         New module 'unictype/joininggroup-name'.
1090         * modules/unictype/joininggroup-name: New file.
1091         * lib/unictype/joininggroup_name.c: New file.
1092         * lib/unictype/joininggroup_name.h: New file.
1093
1094         New module 'unictype/joiningtype-all'.
1095         * modules/unictype/joiningtype-all: New file.
1096
1097         Tests for module 'unictype/joiningtype-of'.
1098         * modules/unictype/joiningtype-of-tests: New file.
1099         * tests/unictype/test-joiningtype_of.c: New file.
1100         * tests/unictype/test-joiningtype_of.h: New file, automatically
1101         generated by gen-uni-tables.
1102
1103         New module 'unictype/joiningtype-of'.
1104         * modules/unictype/joiningtype-of: New file.
1105         * lib/unictype/joiningtype_of.c: New file.
1106         * lib/unictype/joiningtype_of.h: New file, automatically generated by
1107         gen-uni-tables.
1108
1109         Tests for module 'unictype/joiningtype-byname'.
1110         * modules/unictype/joiningtype-byname-tests: New file.
1111         * tests/unictype/test-joiningtype_byname.c: New file.
1112
1113         New module 'unictype/joiningtype-byname'.
1114         * modules/unictype/joiningtype-byname: New file.
1115         * lib/unictype/joiningtype_byname.c: New file.
1116
1117         Tests for module 'unictype/joiningtype-name'.
1118         * modules/unictype/joiningtype-name-tests: New file.
1119         * tests/unictype/test-joiningtype_name.c: New file.
1120
1121         New module 'unictype/joiningtype-name'.
1122         * modules/unictype/joiningtype-name: New file.
1123         * lib/unictype/joiningtype_name.c: New file.
1124
1125         unictype: Add support for Arabic shaping properties.
1126         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
1127         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
1128         declarations.
1129         (UC_JOINING_GROUP_*): New enumeration values.
1130         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
1131         declarations.
1132         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
1133         (unicode_joining_type): New variable.
1134         (UC_JOINING_GROUP_*): New enumeration values.
1135         (unicode_joining_group): New variable.
1136         (fill_arabicshaping, joining_type_as_c_identifier,
1137         output_joining_type_test, output_joining_type,
1138         joining_group_as_c_identifier, output_joining_group_test,
1139         output_joining_group): New functions.
1140         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
1141         fill_arabicshaping and output_joining_type_test, output_joining_type,
1142         output_joining_group_test, output_joining_group.
1143         Reported by Simon Josefsson.
1144
1145 2011-03-21  Jim Meyering  <meyering@redhat.com>
1146
1147         strftime: fix a bug in yesterday's change
1148         * lib/strftime.c (add): Accommodate width's initial value of -1.
1149         Otherwise, nstrftime would copy uninitialized data into
1150         the result buffer.
1151
1152 2011-03-21  Jim Meyering  <meyering@redhat.com>
1153
1154         tests: add strftime-tests module
1155         * tests/test-strftime.c: New file.
1156         * modules/strftime-tests: New module.
1157
1158 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
1159
1160         strftime: don't assume a byte count fits in 'int'
1161         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
1162         found this problem by static analysis, using gcc -Wstrict-overflow
1163         (GCC 4.5.2, x86-64).  This reported an optimization that depended
1164         on an integer overflow having undefined behavior, but it turns out
1165         that the argument is a size, which might not fit in 'int' anyway,
1166
1167 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
1168
1169         stdio: don't require ignore_value around fwrite
1170
1171         This patch works around libc bug 11959
1172         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
1173         Without this patch, applications must often write
1174         ignore_value (fwrite (...)) even though the ignore_value is
1175         not helpful here.  It's common to write many objects, using
1176         fwrite/printf/etc., and then use ferror to detect output error.
1177
1178         I considered making this patch optional, but decided against it,
1179         because libc is obviously being inconsistent here: there is no
1180         reason libc should insist that user code must inspect fwrite
1181         return's value without also insisting that it inspect printf's,
1182         putchar's, etc.  If user code wants to have a strict style where
1183         all these functions' values are checked (so that ferror need not
1184         be checked), we could add support for that style in a new gnulib
1185         module, but in the meantime it's better to be consistent and to
1186         support common usage.
1187
1188         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
1189         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
1190         that we are compiling in checking mode, and if not C++, and
1191         if not already wrapping fwrite for some other reason.
1192         (fwrite): #define to rpl_fwrite if the latter is defined.
1193
1194 2011-03-20  Bruno Haible  <bruno@clisp.org>
1195
1196         verror: Fix compilation error introduced on 2011-02-13.
1197         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
1198         instead of __attribute__.
1199         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1200
1201 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
1202             Bruno Haible  <bruno@clisp.org>
1203
1204         socklen: do not depend on sys_socket
1205         While trying to modify Emacs to use gnulib's socklen module,
1206         I discovered a circular dependency: socklen depends on sys_socket
1207         and vice versa.  Emacs can use socklen, but it does not need
1208         sys_socket because it has its own substitute for sys/socket.h.
1209         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
1210         gl_TYPE_SOCKLEN_T.
1211         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
1212         gl_PREREQ_SYS_H_SOCKET.
1213         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
1214         gl_PREREQ_SYS_H_SOCKET.
1215         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
1216         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
1217         * modules/socklen (Depends-on): Do not depend on sys_socket.
1218         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
1219
1220 2011-03-20  Jim Meyering  <meyering@redhat.com>
1221
1222         maint.mk: sort file names *after* new transformation
1223         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
1224         prefix would have led to an unwarranted failure in GNU parted.
1225         Sort after that transformation.
1226
1227 2011-03-19  Jim Meyering  <meyering@redhat.com>
1228
1229         maint.mk: fix po-file syntax-check rule
1230         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
1231         Patch by Bruno Haible.
1232
1233 2011-03-19  Bruno Haible  <bruno@clisp.org>
1234
1235         socklen: Update comment.
1236         * m4/socklen.m4: Update comment about platforms.
1237
1238 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1239             Bruno Haible  <bruno@clisp.org>
1240
1241         inet_ntop, inet_pton: Simplify.
1242         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
1243         documented to provide socklen_t and we already depend on sys_socket.
1244         * modules/inet_pton (Depends-on): Likewise.
1245         * lib/arpa_inet.in.h: Adjust comment.
1246
1247 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1248             Bruno Haible  <bruno@clisp.org>
1249
1250         netdb: Simplify.
1251         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
1252         documented to provide socklen_t and we already depend on sys_socket.
1253         * lib/netdb.in.h: Adjust comment.
1254
1255 2011-03-19  Bruno Haible  <bruno@clisp.org>
1256
1257         sys_socket, netdb: Document problem with socklen_t.
1258         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
1259         platforms.
1260         * doc/posix-headers/netdb.texi: Likewise.
1261
1262 2011-03-18  Eric Blake  <eblake@redhat.com>
1263
1264         maint.mk: let po check work in VPATH build
1265         * top/maint.mk (po_file): Allow cfg.mk override.
1266         (sc_po_check): Allow VPATH use.
1267         Reported by Jiri Denemark.
1268
1269 2011-03-16  Jim Meyering  <meyering@redhat.com>
1270
1271         maint.mk: allow fine-grained syntax-check exclusion via Make variables
1272         Before, you would have had to create one .x-sc_ file per rule in order
1273         to exempt offending files.  Now, you may instead use a Make variable --
1274         usually defined in cfg.mk -- whose name identifies the affected rule.
1275         * top/maint.mk (_sc_excl): Define.
1276         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
1277         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
1278
1279 2011-03-13  Bruno Haible  <bruno@clisp.org>
1280
1281         ignore-value tests: Avoid warnings.
1282         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
1283         empty for gcc < 3.4.
1284
1285 2011-03-13  Bruno Haible  <bruno@clisp.org>
1286
1287         passfd: Fix link error on Solaris.
1288         * modules/passfd (Description): Correct.
1289         (Depends-on): Add socketlib.
1290         (Link): New section.
1291         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
1292
1293 2011-03-13  Bruno Haible  <bruno@clisp.org>
1294
1295         passfd: Fix link error on AIX 5.2.
1296         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
1297
1298 2011-03-13  Bruno Haible  <bruno@clisp.org>
1299
1300         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
1301         * lib/sys_socket.in.h: Include <stddef.h>.
1302         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
1303         CMSG_FIRSTHDR. Remove unused variable.
1304
1305 2011-03-13  Bruno Haible  <bruno@clisp.org>
1306
1307         passfd: Fix compilation error on OpenBSD.
1308         * lib/passfd.c: Include <sys/uio.h>.
1309
1310 2011-03-13  Bruno Haible  <bruno@clisp.org>
1311
1312         passfd test: Fix warnings.
1313         * tests/test-passfd.c: Include <sys/wait.h>.
1314         (main): Fix typo.
1315
1316 2011-03-13  Bruno Haible  <bruno@clisp.org>
1317
1318         passfd module, part 4, tweaks.
1319         * tests/test-passfd.c: Reorder includes.
1320         (main): Fix perror and printf calls.
1321
1322 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
1323
1324         passfd module, part 4.
1325         * modules/passfd-tests: New file.
1326         * tests/test-passfd.c: New file.
1327
1328 2011-03-13  Jim Meyering  <meyering@redhat.com>
1329
1330         Makefile: rely on GNU make; derive syntax-check rule names
1331         Rather than requiring that each sc_ rule be listed as a dependent
1332         of "check", use features of GNU make to derive the list.
1333         * Makefile (syntax-check-rules): Define.
1334         (check): Depend on the new variable, not the hard-coded list.
1335
1336 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
1337             Bruno Haible  <bruno@clisp.org>
1338
1339         passfd module, part 3.
1340         * lib/passfd.h (recvfd): Add a flags argument.
1341         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
1342         (recvfd): Add a flags argument.
1343         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
1344         exists.
1345         * modules/passfd (Depends-on): Add cloexec.
1346         Suggested by Eric Blake.
1347
1348 2011-03-13  Bruno Haible  <bruno@clisp.org>
1349
1350         passfd module, part 2, tweaks.
1351         * modules/passfd (Files): Reorder.
1352         (Depends-on): Remove errno.
1353         (Include): Remove <sys/socket.h>, <sys/un.h>.
1354         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
1355         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
1356         specification header. Include <sys/socket.h> always. Don't include
1357         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
1358         (sendfd): Clarify that it sets errno when it fails.
1359         (recvfd): Fix specification.
1360
1361 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
1362
1363         passfd module, part 2.
1364         * modules/passfd: New file.
1365         * lib/passfd.h: New file.
1366         * lib/passfd.c: New file.
1367
1368 2011-03-12  Bruno Haible  <bruno@clisp.org>
1369
1370         wcswidth, mbswidth: Avoid integer overflow.
1371         * lib/wcswidth.c: Include <limits.h>.
1372         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
1373         * lib/mbswidth.c: Include <limits.h>.
1374         (mbsnwidth): Avoid 'int' overflow.
1375         Reported by Jim Meyering.
1376
1377 2011-03-12  Bruno Haible  <bruno@clisp.org>
1378
1379         futimens, utimensat: Avoid endless recursion on Solaris 10.
1380         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
1381         Solaris.
1382         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
1383         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
1384
1385 2011-03-11  Jim Meyering  <meyering@redhat.com>
1386
1387         maint.mk: relax a regexp to accommodate other formatting styles
1388         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
1389         between "ngettext" and the following "(".
1390
1391 2011-03-11  Pádraig Brady <P@draigBrady.com>
1392
1393         maint.mk: suppress a false positive warning
1394         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
1395         diagnostics are marked with ngettext.
1396
1397 2011-03-10  Eric Blake  <eblake@redhat.com>
1398
1399         wchar: add explicit dependencies, for Tru64
1400         * modules/mbmemcasecoll (Depends-on): Add wchar.
1401         * modules/mbtowc (Depends-on): Likewise.
1402         * modules/vasnprintf (Depends-on): Likewise.
1403         * modules/unistdio/u-printf-args (Depends-on): Likewise.
1404         * modules/wctomb (Depends-on): Likewise.
1405         Reported by Peter O'Gorman.
1406
1407 2011-03-08  Bruno Haible  <bruno@clisp.org>
1408
1409         passfd module, part 1, tweaks.
1410         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
1411         Improve indentation. Improve AC_MSG_CHECKING messages.
1412         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
1413         gl_SOCKET_FAMILIES.
1414
1415 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
1416
1417         passfd module, part 1.
1418         * m4/afunix.m4: New file.
1419         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
1420         sockets.
1421
1422 2011-03-08  Bruno Haible  <bruno@clisp.org>
1423
1424         regex-quote: New API.
1425         * lib/regex-quote.h: Include <stdbool.h>.
1426         (struct regex_quote_spec): New type.
1427         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
1428         New declarations.
1429         (regex_quote_length, regex_quote_copy, regex_quote): Take a
1430         'const struct regex_quote_spec *' argument.
1431         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
1432         (pcre_special): New constant.
1433         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
1434         New functions.
1435         (regex_quote_length, regex_quote_copy, regex_quote): Take a
1436         'const struct regex_quote_spec *' argument.
1437         * modules/regex-quote (Depends-on): Add stdbool.
1438         * tests/test-regex-quote.c (check): Update for new API. Add test for
1439         anchored results.
1440         * NEWS: Mention the API change.
1441         Reported by Reuben Thomas and Eric Blake.
1442
1443 2011-03-06  Bruno Haible  <bruno@clisp.org>
1444
1445         regex-quote: Fix creation of POSIX extended regular expressions.
1446         * lib/regex-quote.c (ere_special): Add grouping and alternation
1447         operators.
1448
1449 2011-03-05  Bruno Haible  <bruno@clisp.org>
1450
1451         doc: Improve doc regarding autopoint vs. gnulib.
1452         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
1453         disable autopoint while running autoreconf.
1454         Suggested by Ralf Wildenhues.
1455
1456 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1457
1458         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
1459         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
1460
1461 2011-03-03  Bruce Korb  <bkorb@gnu.org>
1462
1463         parse-duration: remove xalloc.h dependency
1464         * lib/parse-duration.c (parse_period): handle NULL return from
1465         strdup instead of calling xstrdup().
1466         * modules/parse-duration: remove "xalloc" dependency
1467
1468 2011-03-03  Matthew Booth  <mbooth@redhat.com>
1469
1470         bootstrap: honor m4_base when running aclocal
1471         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
1472
1473 2011-03-02  Jim Meyering  <meyering@redhat.com>
1474
1475         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
1476         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
1477         on request from Matt Booth.
1478
1479 2011-03-01  Eric Blake  <eblake@redhat.com>
1480
1481         test-link: work on Hurd
1482         * tests/test-link.h (test_link): Hurd rejects linking directories
1483         with EISDIR instead of the POSIX-mandated EPERM.
1484
1485 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
1486
1487         stdio: simplify by moving files to printf-posix, sigpipe
1488         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
1489         since this symbol is needed only if printf is replaced.
1490         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
1491         Require gl_ASM_SYMBOL_PREFIX.
1492         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
1493         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
1494         (Depends-on): Add 'raise'.
1495         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
1496         * modules/stdio (Files): Remove lib/stdio-write.c,
1497         m4/asm-underscore.m4.
1498         (Depends-on): Remove 'raise'.
1499
1500         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
1501         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
1502         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
1503         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
1504
1505 2011-02-28  Bruno Haible  <bruno@clisp.org>
1506
1507         localcharset: Assume ANSI C behaviour of free().
1508         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
1509         calling free().
1510         Suggested by Simon Josefsson <simon@josefsson.org>.
1511
1512 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
1513             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
1514             Bruno Haible  <bruno@clisp.org>  (tiny change)
1515
1516         On Cygwin, use /proc file system instead of win32 API.
1517         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
1518         Win32 file names.
1519         (DllMain): Simplify by removing Cygwin specific code.
1520         (find_shared_library_fullname): Use Linux specific implementation also
1521         for Cygwin.
1522         (get_shared_library_fullname): Update accordingly.
1523         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
1524         Win32 file names.
1525         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
1526         Cygwin specific code.
1527
1528 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
1529             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
1530
1531         Fix OpenMP flag detection for various Fortran compilers.
1532         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
1533         OpenMP-conditional compilation construct, to force compile
1534         failure with missing OpenMP flag.
1535         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
1536
1537 2011-02-25  Eric Blake  <eblake@redhat.com>
1538
1539         strstr: expand test coverage
1540         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
1541         compilation.
1542         * tests/test-memmem.c (main): Duplicate tests.
1543         * tests/test-strcasestr.c (main): Likewise.
1544         * tests/test-c-strcasestr.c (main): Likewise.
1545
1546 2011-02-25  Jim Meyering  <meyering@redhat.com>
1547
1548         maint.mk: detect missing-NL-at-EOF, too
1549         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
1550         it also detects when a file lacks a newline at EOF.
1551         (require_exactly_one_NL_at_EOF_): Renamed from
1552         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
1553         since people may well have .x-sc_... file names tied to the
1554         existing name.  Suggested by Eric Blake.
1555
1556 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
1557
1558         dirname: move m4/dos.m4 functionality into lib/dosname.h
1559
1560         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
1561         extracts symbols from it, puts them into config.h; but it's much
1562         easier to use the symbols directly.  filename.h already does this,
1563         but it disagrees with dos.m4 in some respects.  This patch
1564         introduces a different include file dosname.h that packages up
1565         dos.m4, and then later we can work on merging filename.h and
1566         dosname.h.  Applications that need only the easy-to-configure
1567         symbols should consider including dosname.h rather than dirname.h.
1568         * NEWS: Mention incompatible changes.
1569         * m4/dos.m4: Remove.
1570         * lib/dosname.h, modules/dosname: New files.
1571         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
1572         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
1573         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
1574         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
1575         Include dosname.h, not dirname.h.
1576         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
1577         Include dosname.h, for definitions of symbols like ISSLASH
1578         that used to be in config.h.
1579         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
1580         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
1581         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
1582         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
1583         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
1584         * modules/rmdir (Files): Likewise.
1585         * modules/stat (Files): Likewise.
1586         * modules/unlink (Files): Likewise.
1587         * modules/dirname-lgpl (Depends-on): Add dosname.
1588         * modules/lstat (Depends-on): Likewise.
1589         * modules/openat (Depends-on): Likewise.
1590         * modules/rmdir (Depends-on): Likewise.
1591         * modules/savewd (Depends-on): Likewise.
1592         * modules/stat (Depends-on): Likewise.
1593         * modules/unlink (Depends-on): Likewise.
1594         * modules/openat (Depends-on): Remove dirname-lgpl.
1595         * modules/savewd (Depends-on): Likewise.
1596         * tests/test-dirname.c: Do not use removed symbols like
1597         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
1598         the remaining symbols, e.g., ISSLASH ('\\').
1599
1600 2011-02-25  Eric Blake  <eblake@redhat.com>
1601
1602         strstr: revert patches that introduced bug and pessimization
1603         * lib/str-two-way.h: Add another reference.
1604         (two_way_short_needle, two_way_long_needle): Revert changes from
1605         2011-02-24; they pessimize search speed.
1606         (critical_factorization): Partially revert changes from
1607         2010-06-22; they violate the requirement that the left half of the
1608         needle be smaller than the period of the needle.
1609
1610 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
1611
1612         filenamecat: remove unnecessary dependency on dirname-lgpl
1613         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
1614         is no direct dependency, just an indirect one via filenamecat-lgpl.
1615
1616         remove: remove unnecessary use of m4/dos.m4
1617         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
1618         * modules/remove (FILES): Remove m4/dos.m4.
1619
1620         * lib/openat-proc.c: Don't include dirname.h; not needed.
1621
1622         backupfile: remove unnecessary use of m4/dos.m4
1623         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
1624         of its symbols are used by the backupfile code.  backupfile.c does
1625         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
1626         for the rare case of programs that want all their backup file
1627         names to live within 8+3 limits, and dos.m4 doesn't address that.
1628         * modules/backupfile (Files): Remove m4/dos.m4.
1629
1630 2011-02-24  Jim Meyering  <meyering@redhat.com>
1631
1632         strstr: fix a bug whereby strstr would mistakenly return NULL
1633         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
1634         in period calculation.
1635         (two_way_long_needle): Likewise.
1636         The original problem was reported by Mike Stump in
1637         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
1638         Ralf Wildenhues provided the short needle and haystack.
1639         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
1640         Add a more involved test to trigger the bug in two_way_long_needle.
1641
1642 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
1643
1644         gnulib-tool: remove use of bold display in help screen
1645         * gnulib-tool (func_usage): Do not use bold display anymore in the
1646         help screen.  That was just meant to be a temporary emphasis for a
1647         backward-incompatible change.
1648
1649 2011-02-23  Bruno Haible  <bruno@clisp.org>
1650
1651         Fix misindentation of preprocessor directives.
1652         * lib/argp-namefrob.h: Reindent preprocessor directives.
1653         * lib/getopt_int.h (struct _getopt_data): Likewise.
1654         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
1655         * lib/vasnprintf.c (decode_long_double): Likewise.
1656         * tests/test-argmatch.c: Insert blank lines, for clarity.
1657         * tests/test-exclude.c: Likewise.
1658
1659 2011-02-22  Bruno Haible  <bruno@clisp.org>
1660
1661         ioctl: Fix for MacOS X in 64-bit mode.
1662         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
1663         value.
1664         Suggested by Eric Blake.
1665         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
1666
1667 2011-02-22  Jim Meyering  <meyering@redhat.com>
1668
1669         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
1670         * Makefile (sc_cpp_indent_check): Don't limit the check to files
1671         in lib/.
1672
1673 2011-02-22  Eric Blake  <eblake@redhat.com>
1674
1675         maint: avoid any CDPATH issue
1676         * Makefile (sc_cpp_indent_check): Anchor cd argument.
1677
1678         maint: adjust cpp indentation for my modules, as well
1679         * Makefile (sc_cpp_indent_check): Add my name.
1680         * lib/fbufmode.c: Filter through cppi.
1681         * lib/fpurge.c: Likewise.
1682         * lib/freadable.c: Likewise.
1683         * lib/freading.c: Likewise.
1684         * lib/fwritable.c: Likewise.
1685         * lib/fwriting.c: Likewise.
1686         * lib/sigaction.c: Likewise.
1687
1688 2011-02-22  Jim Meyering  <meyering@redhat.com>
1689
1690         maint: adjust cpp indentation to reflect nesting depth
1691         I.e., in a block of code that begins with an unnested "#if",
1692         put one space between the "#" in column 1 and following token.
1693         For example,
1694         -#include <sys/vfs.h>
1695         +# include <sys/vfs.h>
1696         Do this only in .c files that are part of a module I maintain.
1697         * lib/linkat.c: Filter through cppi.
1698         * lib/nanosleep.c: Likewise.
1699         * lib/openat.c: Likewise.
1700         * lib/openat-die.c: Likewise.
1701         * lib/dup3.c: Likewise.
1702         * lib/fchownat.c: Likewise.
1703         * lib/flock.c: Likewise.
1704         * lib/fsync.c: Likewise.
1705         * lib/fts.c: Likewise.
1706         * lib/getpass.c: Likewise.
1707         * lib/gettimeofday.c: Likewise.
1708         * lib/userspec.c: Likewise.
1709         * Makefile (sc_cpp_indent_check): New rule, to check this.
1710
1711 2011-02-22  Bruno Haible  <bruno@clisp.org>
1712
1713         New module 'wctomb'.
1714         * lib/stdlib.in.h (wctomb): New declaration.
1715         * lib/wctomb.c: New file.
1716         * lib/wctomb-impl.h: New file.
1717         * m4/wctomb.m4: New file.
1718         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
1719         REPLACE_WCTOMB.
1720         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
1721         REPLACE_WCTOMB.
1722         * modules/wctomb: New file.
1723         * tests/test-stdlib-c++.cc: Test signature of wctomb.
1724         * doc/posix-functions/wctomb.texi: Mention the new module.
1725         * modules/wctob (Depends-on): Add wctomb.
1726
1727 2011-02-22  Bruno Haible  <bruno@clisp.org>
1728
1729         New module 'mbtowc'.
1730         * lib/stdlib.in.h (mbtowc): New declaration.
1731         * lib/mbtowc.c: New file.
1732         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
1733         * m4/mbtowc.m4: New file.
1734         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
1735         REPLACE_MBTOWC.
1736         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
1737         REPLACE_MBTOWC.
1738         * modules/mbtowc: New file.
1739         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
1740         * doc/posix-functions/mbtowc.texi: Mention the new module.
1741         * modules/btowc (Depends-on): Add mbtowc.
1742
1743 2011-02-22  Bruno Haible  <bruno@clisp.org>
1744
1745         wcrtomb: Add more tests for native Windows platforms.
1746         * tests/test-wcrtomb-w32-1.sh: New file.
1747         * tests/test-wcrtomb-w32-2.sh: New file.
1748         * tests/test-wcrtomb-w32-3.sh: New file.
1749         * tests/test-wcrtomb-w32-4.sh: New file.
1750         * tests/test-wcrtomb-w32-5.sh: New file.
1751         * tests/test-wcrtomb-w32.c: New file.
1752         * modules/wcrtomb-tests (Files): Add them.
1753         (Makefile.am): Arrange to run these tests.
1754         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
1755         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
1756
1757 2011-02-20  Bruno Haible  <bruno@clisp.org>
1758
1759         wcrtomb: Enhance test.
1760         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
1761
1762 2011-02-20  Bruno Haible  <bruno@clisp.org>
1763
1764         mbrtowc: Tiny optimization.
1765         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
1766
1767 2011-02-20  Jim Meyering  <meyering@redhat.com>
1768
1769         test-exclude.c: remove unmatched #endif
1770         * tests/test-exclude.c: Remove stray #endif, left over from
1771         the change of a week ago.
1772
1773 2011-02-19  Jim Meyering  <meyering@redhat.com>
1774
1775         git-version-gen: skip "-dirty" check when appropriate
1776         * build-aux/git-version-gen: Don't run any git commands when the
1777         version string comes from .tarball-version.  Prior to this, we
1778         would run git update-index --refresh even from a just-unpacked
1779         tarball directory, and that could affect a .git/ directory in a
1780         parent of the build directory.  Reported by Mike Frysinger.
1781
1782 2011-02-19  Bruno Haible  <bruno@clisp.org>
1783
1784         unictype/property-byname: Reduce the size of the 'data' segment.
1785         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
1786
1787 2011-02-19  Bruno Haible  <bruno@clisp.org>
1788
1789         unictype/scripts: Reduce the size of the 'data' segment.
1790         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
1791         '%pic'.
1792         * lib/unictype/scripts_byname.gperf: Regenerated.
1793
1794 2011-02-19  Bruno Haible  <bruno@clisp.org>
1795
1796         stdint: Update documentation.
1797         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
1798
1799 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
1800
1801         stdint: omit redundant check for wchar.h
1802         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
1803         always tests whether wchar.h exists, so remove the now-redundant test.
1804
1805 2011-02-18  Bruno Haible  <bruno@clisp.org>
1806
1807         stdint: Cut dependency to module 'wchar'.
1808         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
1809         include the necessary prerequisites.
1810         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
1811         * modules/stdint (Depends-on): Remove wchar.
1812         (Makefile.am): Substitute HAVE_WCHAR_H.
1813         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
1814
1815 2011-02-18  Eric Blake  <eblake@redhat.com>
1816
1817         longlong: skip, rather than fail, on cross-compilation
1818         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
1819         when cross-compiling; regression from 2011-02-16.
1820
1821 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
1822
1823         * NEWS: Mention 2011-02-08 change to stdlib.
1824
1825 2011-02-17  Bruno Haible  <bruno@clisp.org>
1826
1827         getloadavg: Add comments about platforms.
1828         * m4/getloadavg.m4: Add comment.
1829         * lib/getloadavg.c: Likewise.
1830
1831 2011-02-17  Bruno Haible  <bruno@clisp.org>
1832
1833         getloadavg: Fix link error on Solaris 2.6.
1834         * modules/getloadavg (Link): New section.
1835         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
1836         linking test-getloadavg.
1837         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
1838         getloadavg.
1839
1840 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
1841
1842         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
1843         It was 'int', but this doesn't match the IRIX 6.5 manual.
1844         Suggested by Bruno Haible in
1845         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
1846
1847 2011-02-17  Bruno Haible  <bruno@clisp.org>
1848
1849         havelib: Fix comments.
1850         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
1851         change.
1852
1853 2011-02-17  Bruno Haible  <bruno@clisp.org>
1854
1855         havelib: Update config.rpath.
1856         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
1857
1858 2011-02-17  Bruno Haible  <bruno@clisp.org>
1859
1860         getloadavg test: Add some plausibility checks.
1861         * tests/test-getloadavg.c (check_avg): Print a warning when the value
1862         is improbable.
1863
1864 2011-02-16  Eric Blake  <eblake@redhat.com>
1865
1866         maintainer-makefile: make syntax-check a no-op from tarballs
1867         * top/maint.mk (no-vc-detected): New rule.
1868         (local-checks-available): Use it to avoid hanging if someone tries
1869         'make syntax-check' from a tarball.  Also append to any non-syntax
1870         checks already defined in cfg.mk.
1871
1872 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
1873
1874         longlong: tune, particularly for common case of c99
1875
1876         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
1877         or running anything if c99, or if unsigned long long int does not
1878         work.  In either case, we know the answer without further tests.
1879         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
1880         it at most once, and use its results for both long long int and
1881         unsigned long long int.  This is more likely to be efficient in
1882         the common case where the program wants to check for both long
1883         long int and unsigned long long int.
1884         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
1885         since the answer is already known.
1886
1887 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
1888
1889         getloadavg: set errno
1890         * lib/getloadavg.c: Set errno when returning -1.  If no other
1891         error number looks appropriate, set it to ENOSYS if the getloadavg
1892         looks like it can't possibly ever work, ENOTSUP otherwise.
1893         Suggested by Bruno Haible in
1894         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
1895
1896         getloadavg: trim unused parts and speed up 'configure'
1897         * NEWS: Document this.
1898         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
1899         always compiled if getloadavg is absent.
1900         Move test code to ...
1901         * tests/test-getloadavg.c: New file, containing previous
1902         contents of test from lib/getloadavg.c.  It also contains
1903         suggestions by Bruno Haible in
1904         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
1905         * modules/getloadavg-tests: New file.
1906         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
1907         Do tests in the same order as they're needed for getloadavg.c.
1908         Omit setgid-related tests that generate symbols KMEM_GROUP,
1909         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
1910         Do only the tests that are needed to see whether the system has
1911         getloadavg, moving the other tests into ...
1912         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
1913         NLIST_NAME_UNION; nobody should be using it.  Do not define
1914         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
1915         relevant, as the user of this module shouldn't care how getloadavg
1916         is implemented.
1917
1918         getloadavg: omit unused var
1919         * lib/getloadavg.c (getloadavg): Omit unused local variable.
1920
1921 2011-02-15  Jim Meyering  <meyering@redhat.com>
1922
1923         doc: update users.txt
1924         * users.txt: Update iwhd's URL.
1925
1926 2011-02-13  Bruno Haible  <bruno@clisp.org>
1927
1928         Consistent macro naming for macros that use GCC __attribute__.
1929         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
1930         _ATTRIBUTE_NONNULL_.
1931         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
1932         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
1933         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
1934         ATTRIBUTE_DEPRECATED.
1935         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
1936         ATTRIBUTE_NORETURN.
1937         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
1938         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
1939         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
1940         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
1941         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
1942         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
1943         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
1944         ATTRIBUTE_SENTINEL.
1945         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
1946         ATTRIBUTE_RETURN_CHECK.
1947         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
1948         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
1949         ATTRIBUTE_NORETURN.
1950         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
1951         Reported by Paul Eggert.
1952
1953 2011-02-13  Bruno Haible  <bruno@clisp.org>
1954
1955         Don't interfere with a program's definition of __attribute__.
1956         * lib/argp.h (__attribute__): Remove definition.
1957         (_GL_ATTRIBUTE_FORMAT): New macro.
1958         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
1959         * lib/argp-fmtstream.h (__attribute__): Remove definition.
1960         (_GL_ATTRIBUTE_FORMAT): New macro.
1961         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
1962         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
1963         GCC 3 or newer.
1964         * lib/error.h (__attribute__): Remove definition.
1965         (_GL_ATTRIBUTE_FORMAT): New macro.
1966         (error, error_at_line): Use it.
1967         * lib/hash.h (__attribute__): Remove definition.
1968         (ATTRIBUTE_WUR): Update definition. Define always.
1969         * lib/openat.h (__attribute__): Remove definition.
1970         (ATTRIBUTE_NORETURN): Update definition. Define always.
1971         * lib/sigpipe-die.h (__attribute__): Remove definition.
1972         (ATTRIBUTE_NORETURN): Update definition. Define always.
1973         * lib/vasnprintf.h (__attribute__): Remove definition.
1974         (_GL_ATTRIBUTE_FORMAT): New macro.
1975         (asnprintf, vasnprintf): Use it.
1976         * lib/xalloc.h (__attribute__): Remove definition.
1977         (ATTRIBUTE_NORETURN): Update definition. Define always.
1978         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
1979         * lib/xmemdup0.h (__attribute__): Remove definition.
1980         (ATTRIBUTE_NORETURN): Update definition. Define always.
1981         * lib/xprintf.h (__attribute__): Remove definition.
1982         (_GL_ATTRIBUTE_FORMAT): New macro.
1983         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
1984         * lib/xstrtol.h (__attribute__): Remove definition.
1985         (ATTRIBUTE_NORETURN): Update definition. Define always.
1986         * lib/xvasprintf.h (__attribute__): Remove definition.
1987         (_GL_ATTRIBUTE_FORMAT): New macro.
1988         (xasprintf, xvasprintf): Use it.
1989         * tests/test-argmatch.c (__attribute__): Remove definition.
1990         (ATTRIBUTE_NORETURN): Update definition. Define always.
1991         * tests/test-exclude.c (__attribute__): Remove definition.
1992         (ATTRIBUTE_NORETURN): Update definition. Define always.
1993         Reported by Paul Eggert.
1994
1995 2011-02-13  Bruno Haible  <bruno@clisp.org>
1996
1997         mbrtowc: Add more tests for native Windows platforms.
1998         * tests/test-mbrtowc-w32-1.sh: New file.
1999         * tests/test-mbrtowc-w32-2.sh: New file.
2000         * tests/test-mbrtowc-w32-3.sh: New file.
2001         * tests/test-mbrtowc-w32-4.sh: New file.
2002         * tests/test-mbrtowc-w32-5.sh: New file.
2003         * tests/test-mbrtowc-w32.c: New file.
2004         * modules/mbrtowc-tests (Files): Add them.
2005         (Makefile.am): Arrange to run these tests.
2006         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
2007         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
2008
2009 2011-02-13  Bruno Haible  <bruno@clisp.org>
2010
2011         mbrtowc: Work around native Windows bug.
2012         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
2013         guess when no suitable locale for testing was found.
2014         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
2015
2016 2011-02-13  Bruno Haible  <bruno@clisp.org>
2017
2018         mbsinit: Work around mingw bug.
2019         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
2020         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
2021         Windows.
2022         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
2023
2024 2011-02-13  Bruno Haible  <bruno@clisp.org>
2025
2026         mbsinit: Don't crash for a NULL argument.
2027         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
2028         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
2029
2030 2011-02-13  Bruno Haible  <bruno@clisp.org>
2031
2032         Don't interfere with a program's definition of __attribute__.
2033         * lib/stdio.in.h (__attribute__): Remove definition.
2034         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
2035         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
2036         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
2037         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
2038         * lib/string.in.h (__attribute__): Remove definition.
2039         Reported by Paul Eggert.
2040
2041 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
2042
2043         stdlib: don't get in the way of non-GCC __attribute__
2044         See thread starting at
2045         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
2046         Revert previous stdlib change, installing the following instead:
2047         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
2048         to get in the way of a non-GCC compiler that supports __attribute__.
2049         (_GL_ATTRIBUTE_RETURN): New macro.
2050         (_Exit): Use it instead of __attribute__.
2051
2052 2011-02-12  Bruno Haible  <bruno@clisp.org>
2053
2054         quotearg test: Avoid test failure on mingw.
2055         * tests/test-quotearg.sh: Convert the locale identifier from native
2056         Windows syntax to Unix syntax.
2057
2058 2011-02-12  Bruno Haible  <bruno@clisp.org>
2059
2060         setlocale: Prefer gnulib's override over libintl's override.
2061         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
2062         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
2063         GNULIB_defined_setlocale is set.
2064
2065 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
2066
2067         stdlib: support non-GCC __attribute__
2068
2069         Fix a serious and tricky problem encountered when attempting to
2070         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
2071         5.5, but it crashed due to memory corruption on Solaris 10 with
2072         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
2073         bits that are otherwise zero.  This tagging is optional inside
2074         Emacs but is preferred and is used when __attribute__ ((__aligned
2075         (8))) works, as it does with both recent-enough GCC and with Sun C
2076         5.11.  However, Sun C 5.11 is not GCC and does not #define
2077         __GNUC__ and __GNUC_MINOR__.
2078
2079         When I added the getloadavg module to Emacs, it brought in
2080         stdlib.in.h, which contained this fragment:
2081
2082            #ifndef __attribute__
2083            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
2084            #  define __attribute__(Spec)   /* empty */
2085            # endif
2086            #endif
2087
2088         When files that include <stdlib.h> were compiled with Sun C 5.11,
2089         the above code disabled __attribute__ ((__aligned (8))), which
2090         caused variables to not be properly aligned, which eventually led
2091         to the pointer corruption mentioned above.  (This was a bit hard
2092         to diagnose, unfortunately.)
2093
2094         Several "#define __attribute__(X) /* empty */" code snippets need
2095         to be eradicated from Gnulib to work with non-GCC compilers that
2096         support __attribute__.  The Autoconf way to do this is to test for
2097         each kind of attribute that we want support for, and selectively
2098         enable that in source code.
2099
2100         Fix this problem just for stdlib.h, by adding a test for the
2101         __noreturn__ attribute, and change stdlib.in.h to use that test
2102         when needed.  This technique can be easily generalized to the
2103         other *.in.h files and attributes, and a similar technique can be
2104         used for *.h and *.c files.  This patch is enough to solve the
2105         problem for Emacs + getloadavg, and I thought I'd publish it for
2106         feedback before undertaking further, similar fixes in other
2107         modules.
2108
2109         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
2110         because it's not needed for stdlib.h.  It merely substitutes the
2111         value directly into stdlib.h.  We may well need to #define it, or
2112         similar symbols, for other modules, but it's nice to also have an
2113         option to not #define it for applications like Emacs that do not
2114         need it.
2115
2116         * lib/stdlib.in.h (__attribute__): Do not #define.
2117         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
2118         be defined only if the _Exit module is also used.
2119         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
2120         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
2121         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
2122         platforms.
2123         * modules/_Exit (Files): Add m4/attribute.m4.
2124         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
2125         * m4/attribute.m4: New file.
2126
2127 2011-02-12  Bruno Haible  <bruno@clisp.org>
2128
2129         wcsrtombs: Work around bug on native Windows.
2130         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
2131         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
2132         instead of len.
2133         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
2134
2135 2011-02-12  Bruno Haible  <bruno@clisp.org>
2136
2137         mbsrtowcs: Work around bug on native Windows.
2138         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
2139         against mingw bug.
2140         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
2141
2142 2011-02-12  Bruno Haible  <bruno@clisp.org>
2143
2144         Avoid setlocale bugs in tests.
2145         * modules/btowc (Dependencies): Add setlocale.
2146         * modules/c-strcase (Dependencies): Likewise.
2147         * modules/mbmemcasecmp (Dependencies): Likewise.
2148         * modules/mbmemcasecoll (Dependencies): Likewise.
2149         * modules/mbrtowc (Dependencies): Likewise.
2150         * modules/mbscasecmp (Dependencies): Likewise.
2151         * modules/mbscasestr (Dependencies): Likewise.
2152         * modules/mbschr (Dependencies): Likewise.
2153         * modules/mbscspn (Dependencies): Likewise.
2154         * modules/mbsinit (Dependencies): Likewise.
2155         * modules/mbsncasecmp (Dependencies): Likewise.
2156         * modules/mbsnrtowcs (Dependencies): Likewise.
2157         * modules/mbspbrk (Dependencies): Likewise.
2158         * modules/mbspcasecmp (Dependencies): Likewise.
2159         * modules/mbsrchr (Dependencies): Likewise.
2160         * modules/mbsrtowcs (Dependencies): Likewise.
2161         * modules/mbsspn (Dependencies): Likewise.
2162         * modules/mbsstr (Dependencies): Likewise.
2163         * modules/nl_langinfo (Dependencies): Likewise.
2164         * modules/quotearg (Dependencies): Likewise.
2165         * modules/unicase/locale-language (Dependencies): Likewise.
2166         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
2167         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
2168         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
2169         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
2170         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
2171         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
2172         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
2173         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
2174         * modules/vasnprintf-posix (Dependencies): Likewise.
2175         * modules/wcrtomb (Dependencies): Likewise.
2176         * modules/wcsnrtombs (Dependencies): Likewise.
2177         * modules/wcsrtombs (Dependencies): Likewise.
2178
2179 2011-02-12  Bruno Haible  <bruno@clisp.org>
2180
2181         setlocale: Workaround native Windows bug.
2182         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
2183         succeeds but sets LC_CTYPE to "C", report a failure.
2184         * tests/test-setlocale2.sh: New file.
2185         * tests/test-setlocale2.c: New file.
2186         * modules/setlocale-tests (Files): Add the new files.
2187         (Makefile.am): Enable test-setlocale2.sh test.
2188         * doc/posix-functions/setlocale.texi: Mention workaround.
2189
2190 2011-02-11  Bruno Haible  <bruno@clisp.org>
2191
2192         Tests for module 'setlocale'.
2193         * modules/setlocale-tests: New file.
2194         * tests/test-setlocale1.sh: New file.
2195         * tests/test-setlocale1.c: New file.
2196
2197         New module 'setlocale'.
2198         * lib/locale.in.h (setlocale): New declaration.
2199         * lib/setlocale.c: New file, based on
2200         gettext/gettext-runtime/intl/setlocale.c.
2201         * m4/setlocale.m4: New file.
2202         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
2203         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
2204         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
2205         REPLACE_SETLOCALE.
2206         * modules/setlocale: New file.
2207         * tests/test-locale-c++.cc: Test the declaration of setlocale.
2208         * doc/posix-functions/setlocale.texi: Mention the new module.
2209
2210 2011-02-11  Bruno Haible  <bruno@clisp.org>
2211
2212         Prepare for locale dependent tests on mingw.
2213         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
2214         because it has the wrong locale encoding.
2215         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
2216         French_France.1252 instead of "fr".
2217         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
2218         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
2219         because it has the wrong locale encoding.
2220         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
2221         native Windows, try Turkish_Turkey.65001.
2222         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
2223         Chinese_China.54936.
2224
2225         Prepare for locale dependent tests on mingw.
2226         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
2227         differently.
2228         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
2229         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
2230         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
2231         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
2232
2233 2011-02-11  Eric Blake  <eblake@redhat.com>
2234
2235         strptime: avoid compiler warnings
2236         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
2237         compiler warnings about dead code.
2238         Reported by Daniel P. Berrange.
2239
2240 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
2241
2242         doc: update users.txt
2243         * users.txt: Add rcs.
2244
2245 2011-02-10  John W. Eaton  <jwe@gnu.org>
2246
2247         doc: update users.txt
2248         * users.txt: Add octave.
2249
2250 2011-02-10  Jim Meyering  <meyering@redhat.com>
2251
2252         doc: update users.txt
2253         * users.txt: Add iwhd.
2254
2255 2011-02-09  Bruno Haible  <bruno@clisp.org>
2256
2257         gnulib-tool: Make copyright notice adjustment more robust.
2258         * gnulib-tool (func_import): In sed_transform_main_lib_file,
2259         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
2260         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
2261         License".
2262         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
2263
2264 2011-02-06  Bruno Haible  <bruno@clisp.org>
2265
2266         New module 'towctrans'.
2267         * modules/towctrans: New file.
2268         * lib/wctype.in.h (towctrans): New declaration.
2269         * lib/towctrans.c: New file.
2270         * lib/towctrans-impl.h: New file.
2271         * m4/towctrans.m4: New file.
2272         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
2273         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
2274         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
2275         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
2276         * doc/posix-functions/towctrans.texi: Mention the new module.
2277
2278 2011-02-06  Bruno Haible  <bruno@clisp.org>
2279
2280         New module 'wctrans'.
2281         * modules/wctrans: New file.
2282         * lib/wctype.in.h (wctrans): New declaration.
2283         * lib/wctrans.c: New file.
2284         * lib/wctrans-impl.h: New file.
2285         * m4/wctrans.m4: New file.
2286         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
2287         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
2288         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
2289         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
2290         * doc/posix-functions/wctrans.texi: Mention the new module.
2291
2292 2011-02-06  Bruno Haible  <bruno@clisp.org>
2293
2294         New module 'iswctype'.
2295         * modules/iswctype: New file.
2296         * lib/wctype.in.h (iswctype): New declaration.
2297         * lib/iswctype.c: New file.
2298         * lib/iswctype-impl.h: New file.
2299         * m4/iswctype.m4: New file.
2300         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
2301         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
2302         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
2303         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
2304         * doc/posix-functions/iswctype.texi: Mention the new module and the
2305         HP-UX 11.00 problem.
2306
2307 2011-02-06  Bruno Haible  <bruno@clisp.org>
2308
2309         New module 'wctype'.
2310         * modules/wctype: Change to represent the wctype() substitute.
2311         * lib/wctype.in.h (wctype): New declaration.
2312         * lib/wctype.c: New file.
2313         * lib/wctype-impl.h: New file.
2314         * m4/wctype.m4: New file.
2315         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
2316         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
2317         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
2318         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
2319         * doc/posix-functions/wctype.texi: Mention the new module and the
2320         HP-UX 11.00 problem.
2321
2322 2011-02-06  Bruno Haible  <bruno@clisp.org>
2323
2324         wctype-h: Ensure wctype_t and wctrans_t are defined.
2325         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
2326         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
2327         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
2328         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
2329         HAVE_WCTRANS_T.
2330         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
2331
2332 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
2333
2334         flock: fix license typo
2335
2336         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
2337         omitted.
2338
2339 2011-02-08  Bruno Haible  <bruno@clisp.org>
2340
2341         Split large sed scripts, for HP-UX sed.
2342         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
2343         to avoid HP-UX limit of 99 commands, in the near future.
2344         * modules/stdlib (Makefile.am): Likewise.
2345         * modules/unistd (Makefile.am): Likewise.
2346         * modules/wchar (Makefile.am): Likewise.
2347         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2348         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
2349         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
2350
2351 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
2352             Bruno Haible  <bruno@clisp.org>
2353
2354         stdlib: improve random_r modularization
2355         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
2356         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
2357         you also need the random_r module to get this material right.
2358         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
2359         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
2360         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
2361
2362 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
2363
2364         stdlib: don't depend on stdint
2365         * lib/stdlib.in.h: Don't include <stdint.h> merely because
2366         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
2367         be independent of whether stdint.h is needed.
2368         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
2369         here, instead of ...
2370         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
2371         struct random_data should be using the random_r module, not just
2372         the stdlib module (which wouldn't make sense: what package needs
2373         just struct random_data without also needing random_r?).
2374         * modules/stdlib (Depends-on): Remove stdint.
2375
2376         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
2377         See the thread rooted at
2378         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
2379         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
2380         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
2381         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
2382         __VMS)); previously it was always included (via fcntl--.h).
2383         (getloadavg): Do not use c_strtod.  Instead, approximate it by
2384         hand; this is good enough for load averages.  Also, do not use
2385         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
2386         flags directly if available and don't bother otherwise.  (Packages
2387         that need the extra reliability should use the modules that define
2388         these flags on older platforms that lack them.)
2389         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
2390         fcntl-safer.
2391
2392 2011-02-08  Jim Meyering  <meyering@redhat.com>
2393
2394         di-set.h, ino-map.h: add multiple-inclusion guard
2395         Technically, the guard is required only for ino-map.h, due to its
2396         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
2397         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
2398         * lib/ino-map.h: Likewise.
2399
2400 2011-02-06  Bruno Haible  <bruno@clisp.org>
2401
2402         iswblank: Ensure declaration on glibc systems.
2403         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
2404         * modules/iswblank (Dependencies): Add 'extensions'.
2405         * doc/posix-functions/iswblank.texi: Document the glibc problem.
2406
2407 2011-02-06  Bruno Haible  <bruno@clisp.org>
2408
2409         New module 'iswblank'.
2410         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
2411         * modules/iswblank: New file.
2412         * modules/wctype-h (Files): Remove lib/iswblank.c.
2413         (Makefile.am): Substitute GNULIB_ISWBLANK.
2414         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
2415         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
2416         (gl_WCTYPE_H_DEFAULTS): New macro.
2417         (gl_WCTYPE_H): Require it. Remove iswblank related code.
2418         * modules/iswblank-tests: New file.
2419         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
2420         * tests/test-wctype-h.c (main): Remove iswblank tests.
2421         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
2422         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
2423         of 'wctype-h'.
2424         * NEWS: Mention the change.
2425         * modules/mbchar (Depends-on): Add iswblank.
2426
2427 2011-02-08  Bruno Haible  <bruno@clisp.org>
2428
2429         di-set tests: Refactor.
2430         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
2431         unnecessary includes.
2432         (ASSERT): Remove macro.
2433         (main): Make C90 compliant by avoiding variable declaration after
2434         statement.
2435         * modules/di-set-tests (Files): Add tests/macros.h.
2436
2437 2011-02-08  Bruno Haible  <bruno@clisp.org>
2438
2439         ino-map tests: Refactor.
2440         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
2441         unnecessary includes.
2442         (ASSERT): Remove macro.
2443         (main): Make C90 compliant by avoiding variable declaration after
2444         statement.
2445         * modules/ino-map-tests (Files): Add tests/macros.h.
2446
2447 2011-02-08  Jim Meyering  <meyering@redhat.com>
2448
2449         di-set: add "const" to a cast
2450         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
2451         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
2452
2453 2011-02-06  Bruno Haible  <bruno@clisp.org>
2454
2455         Rename module 'wctype' to 'wctype-h'.
2456         * modules/wctype-h: Renamed from modules/wctype.
2457         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
2458         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
2459         (Files, Depends-on, Makefile.am): Update.
2460         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
2461         (Files, Makefile.am): Update.
2462         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
2463         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
2464         * doc/posix-headers/wctype.texi: Update.
2465         * doc/posix-functions/iswalnum.texi: Update.
2466         * doc/posix-functions/iswalpha.texi: Update.
2467         * doc/posix-functions/iswblank.texi: Update.
2468         * doc/posix-functions/iswcntrl.texi: Update.
2469         * doc/posix-functions/iswdigit.texi: Update.
2470         * doc/posix-functions/iswgraph.texi: Update.
2471         * doc/posix-functions/iswlower.texi: Update.
2472         * doc/posix-functions/iswprint.texi: Update.
2473         * doc/posix-functions/iswpunct.texi: Update.
2474         * doc/posix-functions/iswspace.texi: Update.
2475         * doc/posix-functions/iswupper.texi: Update.
2476         * doc/posix-functions/iswxdigit.texi: Update.
2477         * doc/posix-functions/towlower.texi: Update.
2478         * doc/posix-functions/towupper.texi: Update.
2479         * NEWS: Mention the change.
2480         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
2481         * modules/mbchar (Dependencies): Likewise.
2482         * modules/mbswidth (Dependencies): Likewise.
2483         * modules/quotearg (Dependencies): Likewise.
2484         * modules/regex (Dependencies): Likewise.
2485         * modules/wcscasecmp (Dependencies): Likewise.
2486         * modules/wcsncasecmp (Dependencies): Likewise.
2487         * modules/wcwidth (Dependencies): Likewise.
2488
2489 2011-02-06  Bruno Haible  <bruno@clisp.org>
2490
2491         New module 'wcswidth'.
2492         * modules/wcswidth: New file.
2493         * lib/wchar.in.h (wcswidth): New declaration.
2494         * lib/wcswidth.c: New file.
2495         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
2496         * m4/wcswidth.m4: New file.
2497         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
2498         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
2499         REPLACE_WCSWIDTH.
2500         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
2501         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
2502         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
2503         * doc/posix-functions/wcswidth.texi: Mention the new module.
2504
2505 2011-02-06  Bruno Haible  <bruno@clisp.org>
2506
2507         New module 'wcstok'.
2508         * modules/wcstok: New file.
2509         * lib/wchar.in.h (wcstok): New declaration.
2510         * lib/wcstok.c: New file.
2511         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
2512         * m4/wcstok.m4: New file.
2513         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
2514         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
2515         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
2516         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
2517         * doc/posix-functions/wcstok.texi: Mention the new module.
2518
2519 2011-02-06  Bruno Haible  <bruno@clisp.org>
2520
2521         New module 'wcsstr'.
2522         * modules/wcsstr: New file.
2523         * lib/wchar.in.h (wcsstr): New declaration.
2524         * lib/wcsstr.c: New file.
2525         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
2526         * m4/wcsstr.m4: New file.
2527         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
2528         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
2529         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
2530         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
2531         * doc/posix-functions/wcsstr.texi: Mention the new module.
2532
2533 2011-02-06  Bruno Haible  <bruno@clisp.org>
2534
2535         New module 'wcspbrk'.
2536         * modules/wcspbrk: New file.
2537         * lib/wchar.in.h (wcspbrk): New declaration.
2538         * lib/wcspbrk.c: New file.
2539         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
2540         * m4/wcspbrk.m4: New file.
2541         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
2542         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
2543         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
2544         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
2545         * doc/posix-functions/wcspbrk.texi: Mention the new module.
2546
2547 2011-02-06  Bruno Haible  <bruno@clisp.org>
2548
2549         New module 'wcsspn'.
2550         * modules/wcsspn: New file.
2551         * lib/wchar.in.h (wcsspn): New declaration.
2552         * lib/wcsspn.c: New file.
2553         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
2554         * m4/wcsspn.m4: New file.
2555         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
2556         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
2557         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
2558         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
2559         * doc/posix-functions/wcsspn.texi: Mention the new module.
2560
2561 2011-02-06  Bruno Haible  <bruno@clisp.org>
2562
2563         New module 'wcscspn'.
2564         * modules/wcscspn: New file.
2565         * lib/wchar.in.h (wcscspn): New declaration.
2566         * lib/wcscspn.c: New file.
2567         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
2568         * m4/wcscspn.m4: New file.
2569         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
2570         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
2571         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
2572         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
2573         * doc/posix-functions/wcscspn.texi: Mention the new module.
2574
2575 2011-02-06  Bruno Haible  <bruno@clisp.org>
2576
2577         New module 'wcsrchr'.
2578         * modules/wcsrchr: New file.
2579         * lib/wchar.in.h (wcsrchr): New declaration.
2580         * lib/wcsrchr.c: New file.
2581         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
2582         * m4/wcsrchr.m4: New file.
2583         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
2584         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
2585         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
2586         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
2587         * doc/posix-functions/wcsrchr.texi: Mention the new module.
2588
2589 2011-02-06  Bruno Haible  <bruno@clisp.org>
2590
2591         New module 'wcschr'.
2592         * modules/wcschr: New file.
2593         * lib/wchar.in.h (wcschr): New declaration.
2594         * lib/wcschr.c: New file.
2595         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
2596         * m4/wcschr.m4: New file.
2597         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
2598         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
2599         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
2600         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
2601         * doc/posix-functions/wcschr.texi: Mention the new module.
2602
2603 2011-02-06  Bruno Haible  <bruno@clisp.org>
2604
2605         New module 'wcsdup'.
2606         * modules/wcsdup: New file.
2607         * lib/wchar.in.h (wcsdup): New declaration.
2608         * lib/wcsdup.c: New file.
2609         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
2610         * m4/wcsdup.m4: New file.
2611         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
2612         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
2613         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
2614         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
2615         * doc/posix-functions/wcsdup.texi: Mention the new module.
2616
2617 2011-02-06  Bruno Haible  <bruno@clisp.org>
2618
2619         New module 'wcsxfrm'.
2620         * modules/wcsxfrm: New file.
2621         * lib/wchar.in.h (wcsxfrm): New declaration.
2622         * lib/wcsxfrm.c: New file.
2623         * lib/wcsxfrm-impl.h: New file.
2624         * m4/wcsxfrm.m4: New file.
2625         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
2626         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
2627         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
2628         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
2629         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
2630
2631 2011-02-06  Bruno Haible  <bruno@clisp.org>
2632
2633         New module 'wcscoll'.
2634         * modules/wcscoll: New file.
2635         * lib/wchar.in.h (wcscoll): New declaration.
2636         * lib/wcscoll.c: New file.
2637         * lib/wcscoll-impl.h: New file.
2638         * m4/wcscoll.m4: New file.
2639         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
2640         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
2641         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
2642         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
2643         * doc/posix-functions/wcscoll.texi: Mention the new module.
2644
2645 2011-02-06  Bruno Haible  <bruno@clisp.org>
2646
2647         New module 'wcsncasecmp'.
2648         * modules/wcsncasecmp: New file.
2649         * lib/wchar.in.h (wcsncasecmp): New declaration.
2650         * lib/wcsncasecmp.c: New file.
2651         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
2652         * m4/wcsncasecmp.m4: New file.
2653         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
2654         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
2655         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
2656         HAVE_WCSNCASECMP.
2657         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
2658         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
2659
2660 2011-02-06  Bruno Haible  <bruno@clisp.org>
2661
2662         New module 'wcscasecmp'.
2663         * modules/wcscasecmp: New file.
2664         * lib/wchar.in.h (wcscasecmp): New declaration.
2665         * lib/wcscasecmp.c: New file.
2666         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
2667         * m4/wcscasecmp.m4: New file.
2668         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
2669         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
2670         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
2671         HAVE_WCSCASECMP.
2672         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
2673         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
2674
2675 2011-02-05  Bruno Haible  <bruno@clisp.org>
2676
2677         New module 'wcsncmp'.
2678         * modules/wcsncmp: New file.
2679         * lib/wchar.in.h (wcsncmp): New declaration.
2680         * lib/wcsncmp.c: New file.
2681         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
2682         * m4/wcsncmp.m4: New file.
2683         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
2684         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
2685         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
2686         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
2687         * doc/posix-functions/wcsncmp.texi: Mention the new module.
2688
2689 2011-02-05  Bruno Haible  <bruno@clisp.org>
2690
2691         New module 'wcscmp'.
2692         * modules/wcscmp: New file.
2693         * lib/wchar.in.h (wcscmp): New declaration.
2694         * lib/wcscmp.c: New file.
2695         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
2696         * m4/wcscmp.m4: New file.
2697         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
2698         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
2699         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
2700         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
2701         * doc/posix-functions/wcscmp.texi: Mention the new module.
2702
2703 2011-02-05  Bruno Haible  <bruno@clisp.org>
2704
2705         New module 'wcsncat'.
2706         * modules/wcsncat: New file.
2707         * lib/wchar.in.h (wcsncat): New declaration.
2708         * lib/wcsncat.c: New file.
2709         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
2710         * m4/wcsncat.m4: New file.
2711         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
2712         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
2713         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
2714         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
2715         * doc/posix-functions/wcsncat.texi: Mention the new module.
2716
2717 2011-02-05  Bruno Haible  <bruno@clisp.org>
2718
2719         New module 'wcscat'.
2720         * modules/wcscat: New file.
2721         * lib/wchar.in.h (wcscat): New declaration.
2722         * lib/wcscat.c: New file.
2723         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
2724         * m4/wcscat.m4: New file.
2725         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
2726         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
2727         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
2728         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
2729         * doc/posix-functions/wcscat.texi: Mention the new module.
2730
2731 2011-02-05  Bruno Haible  <bruno@clisp.org>
2732
2733         New module 'wcpncpy'.
2734         * modules/wcpncpy: New file.
2735         * lib/wchar.in.h (wcpncpy): New declaration.
2736         * lib/wcpncpy.c: New file.
2737         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
2738         * m4/wcpncpy.m4: New file.
2739         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
2740         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
2741         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
2742         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
2743         * doc/posix-functions/wcpncpy.texi: Mention the new module.
2744
2745 2011-02-05  Bruno Haible  <bruno@clisp.org>
2746
2747         New module 'wcsncpy'.
2748         * modules/wcsncpy: New file.
2749         * lib/wchar.in.h (wcsncpy): New declaration.
2750         * lib/wcsncpy.c: New file.
2751         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
2752         * m4/wcsncpy.m4: New file.
2753         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
2754         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
2755         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
2756         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
2757         * doc/posix-functions/wcsncpy.texi: Mention the new module.
2758
2759 2011-02-05  Bruno Haible  <bruno@clisp.org>
2760
2761         New module 'wcpcpy'.
2762         * modules/wcpcpy: New file.
2763         * lib/wchar.in.h (wcpcpy): New declaration.
2764         * lib/wcpcpy.c: New file.
2765         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
2766         * m4/wcpcpy.m4: New file.
2767         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
2768         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
2769         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
2770         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
2771         * doc/posix-functions/wcpcpy.texi: Mention the new module.
2772
2773 2011-02-05  Bruno Haible  <bruno@clisp.org>
2774
2775         New module 'wcscpy'.
2776         * modules/wcscpy: New file.
2777         * lib/wchar.in.h (wcscpy): New declaration.
2778         * lib/wcscpy.c: New file.
2779         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
2780         * m4/wcscpy.m4: New file.
2781         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
2782         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
2783         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
2784         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
2785         * doc/posix-functions/wcscpy.texi: Mention the new module.
2786
2787 2011-02-05  Bruno Haible  <bruno@clisp.org>
2788
2789         New module 'wcsnlen'.
2790         * modules/wcsnlen: New file.
2791         * lib/wchar.in.h (wcsnlen): New declaration.
2792         * lib/wcsnlen.c: New file.
2793         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
2794         * m4/wcsnlen.m4: New file.
2795         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
2796         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
2797         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
2798         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
2799         * doc/posix-functions/wcsnlen.texi: Mention the new module.
2800
2801 2011-02-05  Bruno Haible  <bruno@clisp.org>
2802
2803         New module 'wcslen'.
2804         * modules/wcslen: New file.
2805         * lib/wchar.in.h (wcslen): New declaration.
2806         * lib/wcslen.c: New file.
2807         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
2808         * m4/wcslen.m4: New file.
2809         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
2810         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
2811         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
2812         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
2813         * doc/posix-functions/wcslen.texi: Mention the new module.
2814
2815 2011-02-05  Bruno Haible  <bruno@clisp.org>
2816
2817         New module 'wmemset'.
2818         * modules/wmemset: New file.
2819         * lib/wchar.in.h (wmemset): New declaration.
2820         * lib/wmemset.c: New file.
2821         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
2822         * m4/wmemset.m4: New file.
2823         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
2824         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
2825         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
2826         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
2827         * doc/posix-functions/wmemset.texi: Mention the new module.
2828
2829 2011-02-05  Bruno Haible  <bruno@clisp.org>
2830
2831         New module 'wmemmove'.
2832         * modules/wmemmove: New file.
2833         * lib/wchar.in.h (wmemmove): New declaration.
2834         * lib/wmemmove.c: New file.
2835         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
2836         * m4/wmemmove.m4: New file.
2837         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
2838         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
2839         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
2840         HAVE_WMEMMOVE.
2841         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
2842         * doc/posix-functions/wmemmove.texi: Mention the new module.
2843
2844 2011-02-05  Bruno Haible  <bruno@clisp.org>
2845
2846         New module 'wmemcpy'.
2847         * modules/wmemcpy: New file.
2848         * lib/wchar.in.h (wmemcpy): New declaration.
2849         * lib/wmemcpy.c: New file.
2850         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
2851         * m4/wmemcpy.m4: New file.
2852         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
2853         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
2854         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
2855         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
2856         * doc/posix-functions/wmemcpy.texi: Mention the new module.
2857
2858 2011-02-05  Bruno Haible  <bruno@clisp.org>
2859
2860         New module 'wmemcmp'.
2861         * modules/wmemcmp: New file.
2862         * lib/wchar.in.h (wmemcmp): New declaration.
2863         * lib/wmemcmp.c: New file.
2864         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
2865         * m4/wmemcmp.m4: New file.
2866         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
2867         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
2868         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
2869         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
2870         * doc/posix-functions/wmemcmp.texi: Mention the new module.
2871
2872 2011-02-07  Jim Meyering  <meyering@redhat.com>
2873
2874         di-set, ino-map: new modules, from coreutils
2875         * lib/di-set.c: New file.
2876         * lib/di-set.h: Likewise.
2877         * lib/ino-map.c: Likewise.
2878         * lib/ino-map.h: Likewise.
2879         * modules/di-set: Likewise.
2880         * modules/di-set-tests: Likewise.
2881         * modules/ino-map: Likewise.
2882         * modules/ino-map-tests: Likewise.
2883         * tests/test-di-set.c: Likewise.
2884         * tests/test-ino-map.c: Likewise.
2885
2886 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
2887
2888         getloadavg: merge minor changes from Emacs
2889
2890         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
2891         (getloadavg): Use memset, not bzero.
2892
2893         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
2894         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
2895         clash (bug#86).
2896
2897 2010-11-14  Bruno Haible  <bruno@clisp.org>
2898
2899         Allow multiple gnulib generated replacements to coexist.
2900         * lib/getopt.in.h (struct option): Avoid identical redefinition.
2901         * lib/inttypes.in.h (imaxdiv_t): Likewise.
2902         * lib/langinfo.in.h (nl_item): Likewise.
2903         * lib/math.in.h (_NaN, NAN): Likewise.
2904         * lib/netdb.in.h (struct addrinfo): Likewise.
2905         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
2906         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
2907         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
2908         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
2909         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
2910         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
2911         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
2912         pthread_mutexattr_init, pthread_mutexattr_settype,
2913         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
2914         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
2915         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
2916         pthread_spin_trylock, pthread_spin_unlock): Likewise.
2917         * lib/sched.in.h (struct sched_param): Likewise.
2918         * lib/se-selinux.in.h (security_class_t, security_context_t,
2919         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
2920         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
2921         lsetfilecon, fsetfilecon, security_check_context,
2922         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
2923         Likewise.
2924         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
2925         Likewise.
2926         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
2927         _gl_function_taking_int_returning_void_t, union sigval,
2928         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
2929         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
2930         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
2931         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
2932         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
2933         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
2934         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
2935         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
2936         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
2937         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
2938         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
2939         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
2940         socklen_t, rpl_fd_isset): Likewise.
2941         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
2942         * lib/sys_time.in.h (struct timeval): Likewise.
2943         * lib/sys_times.in.h (struct tms): Likewise.
2944         * lib/sys_utsname.in.h (struct utsname):
2945         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
2946         * lib/unistd.in.h (getpagesize): Likewise.
2947         * lib/wchar.in.h (mbstate_t): Likewise.
2948         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
2949         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
2950         towlower, towupper): Likewise.
2951         Reported by Sam Steingold <sds@gnu.org>.
2952
2953 2011-02-05  Eric Blake  <eblake@redhat.com>
2954
2955         unsetenv: work around Haiku issues
2956         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
2957         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
2958
2959 2010-12-30  Bruce Korb  <bkorb@gnu.org>
2960
2961         libposix: avoid calling error() within libposix
2962         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
2963         is defined.
2964
2965 2011-02-05  Eric Blake  <eblake@redhat.com>
2966
2967         strerror_r-posix: port to cygwin
2968         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
2969         implementation.
2970         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
2971         * tests/test-strerror_r.c (main): Fix test.
2972         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
2973         issue.
2974
2975 2011-02-05  Bruno Haible  <bruno@clisp.org>
2976
2977         New module 'wmemchr'.
2978         * modules/wmemchr: New file.
2979         * lib/wchar.in.h (wmemchr): New declaration.
2980         * lib/wmemchr.c: New file.
2981         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
2982         * m4/wmemchr.m4: New file.
2983         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
2984         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
2985         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
2986         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
2987         * doc/posix-functions/wmemchr.texi: Mention the new module.
2988
2989 2011-02-04  Eric Blake  <eblake@redhat.com>
2990
2991         fdopendir: detect FreeBSD bug
2992         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
2993         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
2994
2995 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
2996
2997         stdbool: do not define HAVE_STDBOOL_H
2998         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
2999         AC_HEADER_STDBOOL.  All uses changed.  Do not define
3000         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
3001         imported from the latest Autoconf git.  It was motivated by Emacs,
3002         which uses gnulib but does not need HAVE_STDBOOL_H.
3003
3004 2011-02-04  Bruno Haible  <bruno@clisp.org>
3005
3006         wcsnrtombs: Prepare for new module wwcsnrtombs.
3007         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
3008         * lib/wcsnrtombs.c: Include it.
3009         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
3010
3011         wcsrtombs: Prepare for new module wwcsrtombs.
3012         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
3013         * lib/wcsrtombs.c: Include it.
3014         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
3015
3016         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
3017         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
3018         * lib/mbsnrtowcs.c: Include it.
3019         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
3020
3021         mbsrtowcs: Prepare for new module mbsrtowwcs.
3022         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
3023         * lib/mbsrtowcs.c: Include it.
3024         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
3025
3026 2011-02-04  Bruno Haible  <bruno@clisp.org>
3027
3028         vasnprintf: Reduce use of malloc for small format strings.
3029         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
3030         (arguments): Add room for the first 7 arguments.
3031         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
3032         (char_directives, u8_directives, u16_directives, u32_directives): Add
3033         room for the first 7 directives.
3034         * lib/printf-parse.c: Include <string.h>.
3035         (PRINTF_PARSE): Change memory handling code so that it uses the first
3036         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
3037         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
3038         Reported by Pádraig Brady <P@draigbrady.com>.
3039
3040 2011-01-31  Eric Blake  <eblake@redhat.com>
3041
3042         dup2: work around Haiku bug
3043         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
3044         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
3045         * doc/posix-functions/dup2.texi (dup2): Document the bug.
3046         * tests/test-dup2.c (main): Enhance test.
3047
3048 2011-01-31  Simon Josefsson  <simon@josefsson.org>
3049
3050         doc: off_t is not available in eglibc 2.11.2 stdio.h.
3051         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
3052         declared by eglibc 2.11.2.
3053         * lib/stdio.in.h: Likewise.
3054
3055 2011-01-31  Eric Blake  <eblake@redhat.com>
3056
3057         ignore-value: add missing test dependency
3058         * tests/test-ignore-value.c: Revert previous change; stdio.h
3059         provides off_t.
3060         * modules/ignore-value-tests (Depends-on): Add missing dependency.
3061
3062 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
3063
3064         mktime: clarify long_int width checking
3065         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
3066         the top level, to make it clearer that the assumption about
3067         long_int width is being checked.  See
3068         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
3069
3070 2011-01-30  Simon Josefsson  <simon@josefsson.org>
3071
3072         ignore-value: Fix self-test.
3073         * tests/test-ignore-value.c: Include sys/types.h for off_t.
3074
3075 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
3076
3077         TYPE_MAXIMUM: avoid theoretically undefined behavior
3078         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
3079         negative number, which the C Standard says has undefined behavior.
3080         In practice this is not a problem, but might as well do it by the book.
3081         Reported by Rich Felker and Eric Blake; see
3082         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
3083         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
3084         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
3085         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
3086         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
3087         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3088         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
3089
3090         mktime: #undef mktime before #defining it
3091         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
3092
3093         mktime: systematically normalize tm_isdst comparisons
3094         * lib/mktime.c (isdst_differ): New function.
3095         (__mktime_internal): Use it systematically for all isdst comparisons.
3096         This completes the fix for libc BZ #6723, and removes the need for
3097         normalizing tm_isdst.  See
3098         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
3099         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
3100
3101         mktime: fix some integer overflow issues and sidestep the rest
3102
3103         This was prompted by a bug report by Benjamin Lindner for MinGW
3104         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
3105         His bug is due to signed integer overflow (0 - INT_MIN), and I
3106         I scanned through mktime.c looking for other integer overflow
3107         problems, fixing all the bugs I found.
3108
3109         Although the C Standard says the resulting code is still not safe
3110         in the presence of integer overflow, in practice it should be good
3111         enough for all real-world two's-complement implementations, except
3112         for debugging environments that deliberately trap on integer
3113         overflow (e.g., gcc -ftrapv).
3114
3115         * lib/mktime.c (WRAPV): New macro.
3116         (SHR): Also check that long_int and time_t shift right in the
3117         usual way, before using the fast-but-unportable method.
3118         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
3119         used.  The code already assumed two's complement, so there's
3120         no need to test for alternatives.  All uses removed.
3121         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
3122         the C standard.  Problem reported by Rich Felker in
3123         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
3124         (twos_complement_arithmetic): Also check long_int and time_t.
3125         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
3126         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
3127         (__mktime_internal): Avoid integer overflow with unary subtraction
3128         in two instances where -1 - X is an adequate replacement for -X,
3129         since the calculations are approximate.
3130
3131 2011-01-29  Eric Blake  <eblake@redhat.com>
3132
3133         mktime: avoid infinite loop
3134         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
3135         type; behavior is still undefined but portable to all known targets.
3136         Reported by Rich Felker.
3137
3138 2011-01-29  Simon Josefsson  <simon@josefsson.org>
3139
3140         rename, unlink, same-inode: Relicense.
3141         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
3142         * modules/unlink (License): Likewise.
3143         * modules/same-inode (License): Likewise.
3144
3145 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3146
3147         mktime: avoid problems on NetBSD 5 / i386
3148         * lib/mktime.c (long_int): New type.  This works around a problem
3149         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
3150         but time_t is 64 bits, and where I expect the existing code is
3151         wrong in some cases.
3152         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
3153         (ydhms_diff): Bring back the compile-time check for wide-enough
3154         year and yday.
3155
3156         mktime: fix misspelling in comment
3157         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
3158         This merges all recent glibc changes of importance.
3159
3160 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3161
3162         move-if-change: cope with concurrent mv of identical file.
3163         * build-aux/move-if-change (CMPPROG): Accept environment
3164         variable as an override for `cmp'.
3165         (usage): Document CMPPROG.
3166         Adjust comparison to drop stdout.  Cope with failure of mv if
3167         the target file exists and is identical to the source, for
3168         parallel builds.
3169         Report from H.J. Lu against binutils in PR binutils/12283.
3170
3171 2011-01-28  Bruce Korb  <bkorb@gnu.org>
3172
3173         * users.txt: Mention sharutils.
3174
3175 2011-01-28  Simon Josefsson  <simon@josefsson.org>
3176
3177         * users.txt: Mention OATH Toolkit.
3178
3179 2011-01-27  Bruno Haible  <bruno@clisp.org>
3180
3181         Prepare for supporting FreeBSD 10.
3182         * build-aux/config.libpath: Remove handling of freebsd1*.
3183
3184 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
3185
3186         Prepare for supporting FreeBSD 10.
3187         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
3188         match FreeBSD 10.0.
3189
3190 2011-01-27  Bruno Haible  <bruno@clisp.org>
3191
3192         vma-iter, get-rusage-as: Add OpenBSD support.
3193         * modules/vma-iter (configure.ac): Test for mquery.
3194         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
3195         * lib/vma-iter.c: Include <sys/mman.h>.
3196         (vma_iterate): Add an implementation based on mquery().
3197         * lib/resource-ext.h (get_rusage_as): Update comments.
3198         * lib/get-rusage-as.c: Likewise.
3199         * lib/get-rusage-data.c: Likewise.
3200
3201 2011-01-26  Karl Berry  <karl@gnu.org>
3202
3203         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
3204         variables to make it easier to override the makeinfo program used.
3205
3206 2011-01-26  Eric Blake  <eblake@redhat.com>
3207
3208         fcntl: work around Haiku F_DUPFD bugs
3209         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
3210         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
3211         cloexec bit on duplication.
3212         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
3213
3214 2011-01-26  Bruno Haible  <bruno@clisp.org>
3215
3216         Enable memory leak tests on AIX.
3217         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
3218         * tests/test-fprintf-posix3.c (main): Likewise.
3219
3220 2011-01-26  Bruno Haible  <bruno@clisp.org>
3221
3222         Tests for module 'get-rusage-data'.
3223         * modules/get-rusage-data-tests: New file.
3224         * tests/test-get-rusage-data.c: New file.
3225
3226         New module 'get-rusage-data'.
3227         * lib/resource-ext.h (get_rusage_data): New declaration.
3228         * lib/get-rusage-data.c: New file.
3229         * modules/get-rusage-data: New file.
3230
3231 2011-01-25  Bruno Haible  <bruno@clisp.org>
3232
3233         get-rusage-as: Allow for easier testing.
3234         * lib/resource-ext.h (get_rusage_as): Add comment.
3235         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
3236         (main): New function for interactive testing.
3237
3238 2011-01-25  Bruno Haible  <bruno@clisp.org>
3239
3240         vma-iter: Treat Haiku like BeOS.
3241         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
3242         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
3243
3244 2011-01-25  Eric Blake  <eblake@redhat.com>
3245
3246         c-stack: fix regression on cygwin when libsigsegv is present
3247         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
3248
3249 2011-01-24  Bruno Haible  <bruno@clisp.org>
3250
3251         vma-iter: Avoid empty intervals.
3252         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
3253         on an empty interval.
3254
3255 2011-01-24  Jim Meyering  <meyering@redhat.com>
3256
3257         u64: remove unnecessary #include
3258         * lib/u64.h: Don't include <stddef.h>.  It was not used.
3259
3260 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3261
3262         Allow the user to avoid the HAVE_RAW_DECL_* macros.
3263         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
3264
3265 2011-01-23  Bruno Haible  <bruno@clisp.org>
3266
3267         New module 'vma-iter'.
3268         * lib/vma-iter.h: New file.
3269         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
3270         * modules/vma-iter: New file.
3271         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
3272         for get_rusage_as_via_iterator.
3273         (vma_iterate_callback): New function.
3274         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
3275         * modules/get-rusage-as (Depends-on): Add vma-iter.
3276
3277 2011-01-23  Bruno Haible  <bruno@clisp.org>
3278
3279         uninorm: Tweak includes.
3280         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
3281         Reported by Jim Meyering.
3282
3283 2011-01-23  Bruno Haible  <bruno@clisp.org>
3284
3285         get-rusage-as: Improve on NetBSD.
3286         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
3287         /proc, like on FreeBSD.
3288
3289 2011-01-23  Jim Meyering  <meyering@redhat.com>
3290
3291         xreadlink.h: remove unnecessary #include
3292         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
3293
3294         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
3295         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
3296
3297 2011-01-23  Bruno Haible  <bruno@clisp.org>
3298
3299         get-rusage-as: Fix bug.
3300         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
3301         original limit when aborting the first loop.
3302
3303 2011-01-23  Bruno Haible  <bruno@clisp.org>
3304
3305         wctype: Ensure valid C syntax.
3306         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
3307         unconditionally, instead of gl_NEXT_HEADERS conditionally.
3308
3309 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
3310
3311         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
3312         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
3313         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
3314         as they are needed only for configure's test case.
3315         This removes two unnecessary symbols from config.h.
3316
3317         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
3318         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
3319         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
3320         AC_CHECK_HEADERS_ONCE on a header that we also invoke
3321         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
3322         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
3323         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
3324         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
3325         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3326         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3327         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
3328         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3329         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3330         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3331         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
3332         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3333         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
3334         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
3335
3336 2011-01-21  Eric Blake  <eblake@redhat.com>
3337
3338         maintainer-makefile: work with older git for submodule check
3339         * top/maint.mk (public-submodule-commit): Rewrite to avoid
3340         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
3341         Reported by Matthias Bolte.
3342
3343         bootstrap: minor portability fixes
3344         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
3345         (usage): Omit leading capital and trailing . on help phrases, per
3346         GNU Coding Standards.
3347         (check_versions, top level): Prefix messages with script name.
3348
3349 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
3350
3351         bootstrap: support --no-git option
3352         * build-aux/bootstrap: Add --no-git option, to be used when
3353         --gnulib-srcdir points to the exact desired checkout.
3354
3355 2011-01-21  Eric Blake  <eblake@redhat.com>
3356
3357         strerror_r-posix: work with glibc 2.13
3358         * lib/strerror_r.c (strerror_r): Fix return type.
3359
3360 2011-01-21  Pádraig Brady  <P@draigBrady.com>
3361             Bruno Haible  <bruno@clisp.org>
3362
3363         uN_strstr: New unit tests.
3364         * modules/unistr/u8-strstr-tests: New file.
3365         * modules/unistr/u16-strstr-tests: New file.
3366         * modules/unistr/u32-strstr-tests: New file.
3367         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
3368         * tests/unistr/test-u8-strstr.c: New file.
3369         * tests/unistr/test-u16-strstr.c: New file.
3370         * tests/unistr/test-u32-strstr.c: New file.
3371
3372 2011-01-21  Pádraig Brady  <P@draigBrady.com>
3373             Bruno Haible  <bruno@clisp.org>
3374
3375         Make uN_strstr functions O(n) worst-case.
3376         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
3377         16-bit and 32-bit unit cases, use the unibyte algorithm from
3378         lib/mbsstr.c.
3379         * lib/unistr/u8-strstr.c: Include <string.h>.
3380         (UNIT_IS_UINT8_T): New macro.
3381         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
3382         (U_STRLEN, U_STRNLEN): New macros.
3383         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
3384         (U_STRLEN, U_STRNLEN): New macros.
3385         * modules/unistr/u8-strstr (Depends-on): Add strstr.
3386         (configure.ac): Update required libunistring version.
3387         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
3388         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
3389         malloca.
3390         (configure.ac): Update required libunistring version.
3391         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
3392         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
3393         malloca.
3394         (configure.ac): Update required libunistring version.
3395
3396 2011-01-21  Pádraig Brady  <P@draigBrady.com>
3397             Bruno Haible  <bruno@clisp.org>
3398
3399         Prepare for faster uN_strstr functions.
3400         * lib/str-kmp.h: Support definable UNITs.
3401         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
3402         needle_len argument.
3403         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
3404         * lib/mbscasestr.c (mbscasestr): Likewise.
3405
3406 2011-01-21  Pádraig Brady <P@draigBrady.com>
3407
3408         malloca-tests: make faster by unsetting MALLOC_PERTURB_
3409         * tests/test-malloca.c (main): Unset the environment variable
3410         to greatly speed up the test.
3411         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
3412         * modules/malloca-tests: Depend on unsetenv.
3413
3414 2011-01-21  Pádraig Brady <P@draigBrady.com>
3415
3416         ignore-value: remove stdint dependency
3417         * lib/ignore-value.h: Remove <stdint.h>
3418         * modules/ignore-value: Remove stdint dependency.
3419
3420 2011-01-21  Jim Meyering  <meyering@redhat.com>
3421
3422         maint.mk: adjust variable name to be consistent with other gl_ vars
3423         * top/maint.mk (gl_public_submodule_commit): Rename the variable
3424         to be lower case.
3425
3426 2011-01-20  Jim Meyering  <meyering@redhat.com>
3427
3428         maint.mk: make "check" depend on public-submodule-commit by default
3429         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
3430
3431 2011-01-20  Bruno Haible  <bruno@clisp.org>
3432
3433         mbfile, mbiter: Complete change from 2008-12-21.
3434         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
3435         * m4/mbiter.m4 (gl_MBITER): Likewise.
3436
3437 2011-01-20  Jim Meyering  <meyering@redhat.com>
3438
3439         init.sh: insert space between each function name and "()"
3440         * tests/init.sh: Make it a little easier to see that a function's
3441         name is "warn_", and not "warn" when looking at the first part of
3442         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
3443
3444 2011-01-20  Jim Meyering  <meyering@redhat.com>
3445
3446         mountlist: clean up code formatting
3447         * lib/mountlist.c (read_file_system_list): Split a long line,
3448         correct bracing style, use NULL in place of "(struct statfs *)0",
3449         don't parenthesize return value, add spaces around "=" and after
3450         ";-in-for-stmt".
3451
3452 2011-01-14  Markus Duft <mduft@gentoo.org>
3453
3454         mountlist: add support for Interix
3455         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
3456         Apply statvfs to all entries of /dev/fs.
3457         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
3458         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
3459
3460 2011-01-20  Jim Meyering  <meyering@redhat.com>
3461
3462         maint.mk: improve the public-submodule-commit rule
3463         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
3464         to suppress printing of its commands... unless V=1.
3465         Add git submodule's --quiet option to suppress printing of e.g.,
3466         "Entering gnulib" output.
3467         "cd" into $(srcdir) before running git submodule.
3468
3469 2011-01-20  Bruno Haible  <bruno@clisp.org>
3470
3471         include_next: Fix bug introduced on 2011-01-18.
3472         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
3473         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
3474         ac_cv_header_... variable if the second argument is not 'check'.
3475         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
3476         gl_NEXT_HEADERS_INTERNAL.
3477
3478 2011-01-20  Bruno Haible  <bruno@clisp.org>
3479
3480         Allow the user to avoid the GNULIB_TEST_* macros.
3481         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
3482         Suggested by Paul Eggert.
3483
3484 2011-01-14  Jim Meyering  <meyering@redhat.com>
3485
3486         bootstrap: avoid failure when there is no .gitmodules file
3487         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
3488         has been assigned to, even when its value is the empty string.
3489         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
3490         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
3491         Reported by John W. Eaton <jwe@gnu.org>.
3492
3493 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
3494
3495         assume <ctype.h>, ..., <time.h> exist
3496         For years gnulib has been assuming the existence of the headers
3497         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
3498         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
3499         them, since they don't appear to be needed.
3500         * README (Portability guidelines): Document this.
3501         * lib/flock.c: Assume <fcntl.h> exists.
3502         * lib/regex_internal.h: Assume <locale.h> exists.
3503         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
3504         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
3505         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
3506         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
3507         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
3508         * m4/regex.m4 (gl_REGEX): Likewise.
3509         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
3510         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
3511         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
3512         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
3513         * tests/test-argp.c: Likewise.
3514         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
3515
3516         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
3517         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
3518         AA_APPLE_UNIVERSAL_BUILD.  See
3519         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
3520         * NEWS: Document this.
3521
3522 2011-01-19  Eric Blake  <eblake@redhat.com>
3523
3524         c-stack: assume stack overflow if SA_SIGINFO unsupported
3525         * lib/c-stack.c (SIGACTION_WORKS): Rename...
3526         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
3527         sigaction will work.
3528         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
3529         behavior match Linux.
3530         * tests/test-c-stack.c (main): Prefer NULL for pointers.
3531
3532         stdbool-tests: accomodate Haiku
3533         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
3534
3535         binary-io: fix O_TEXT on Haiku
3536         * modules/binary-io (Depends-on): Add fcntl-h.
3537         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
3538         than blindly undefining O_TEXT.
3539         Reported by Scott McCreary.
3540
3541 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
3542
3543         include_next: do not check for standard headers like stddef.h
3544
3545         I found this problem when modifying Emacs to use gnulib.
3546         I noticed that it added HAVE_STDDEF_H to config.h, even though
3547         gnulib always assumes <stddef.h> exists as per README and this
3548         symbol is unnecessary.
3549         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
3550         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
3551         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
3552         faster for headers like stddef.h that are known to exist.
3553         (gl_CHECK_NEXT_HEADERS): Use it.
3554         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
3555         rather than gl_CHECK_NEXT_HEADERS.
3556         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
3557         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
3558
3559 2011-01-18  Eric Blake  <eblake@redhat.com>
3560
3561         ansi-c++-opt: skip C++ dependency style if C++ is unused
3562         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
3563         tests when we know C++ compilation is not desired.
3564         Reported by Scott McCreary.
3565
3566 2011-01-18  Bruno Haible  <bruno@clisp.org>
3567
3568         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
3569         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
3570         (main): Perform test also when getrlimit and setrlimit don't exist or
3571         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
3572         limiting the address space size using setrlimit, compare the address
3573         space size before and after the the test.
3574         * tests/test-dprintf-posix2.c: Likewise.
3575         * tests/test-fprintf-posix3.sh: Update skip messages.
3576         * tests/test-dprintf-posix2.sh: Likewise.
3577         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
3578         * modules/dprintf-posix-tests (Depends-on): Likewise.
3579         Reported by Bruce Korb <bkorb@gnu.org> and
3580         Gary V. Vaughan <gary@gnu.org>.
3581
3582 2011-01-18  Bruno Haible  <bruno@clisp.org>
3583
3584         get-rusage-as: Improvement for Cygwin.
3585         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
3586         areas that are merely reserved.
3587
3588 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
3589
3590         strftime: remove dependencies on multibyte modules
3591
3592         strftime depended on mbrlen, mbsinit, and wchar, but these modules
3593         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
3594         only if __osf__ is defined, and I suspect OSF doesn't need these
3595         other modules.  If my guess is wrong, we'll need to come up with a
3596         variant of strftime that doesn't need the multibyte modules.
3597
3598         I discovered this problem when attempting modify Emacs to use the
3599         strftime module.  With the previous gnulib, this caused Emacs to
3600         need 31 new files, ranging from lib/config.charset to
3601         m4/wint_t.m4.  This was overkill and I expect would be offputting
3602         to the Emacs maintainers.  After this change, only 6 new files are
3603         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
3604         stdbool.m4, and tm_gmtoff.m4.
3605
3606         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
3607         Suggested by Bruno Haible in
3608         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
3609         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
3610         and do not check for wchar.h.
3611         * modules/strftime (Files): Remove m4/mbstate_t.m4.
3612         (Depends-on): Remove mbrlen, mbsinit, wchar.
3613
3614 2011-01-18  Bruno Haible  <bruno@clisp.org>
3615
3616         Tests for module 'get-rusage-as'.
3617         * modules/get-rusage-as-tests: New file.
3618         * tests/test-get-rusage-as.c: New file.
3619
3620         New module 'get-rusage-as'.
3621         * modules/get-rusage-as: New file.
3622         * lib/resource-ext.h: New file.
3623         * lib/get-rusage-as.c: New file.
3624
3625 2011-01-17  Eric Blake  <eblake@redhat.com>
3626
3627         sigaction: relax license from LGPLv3+ to LGPLv2+
3628         * modules/sigaction (License): Relax to LGPLv2+.
3629
3630 2011-01-14  Bruno Haible  <bruno@clisp.org>
3631
3632         filemode: Make function declarations usable in C++ mode.
3633         * lib/filemode.h: Enclose function declarations in extern "C" block.
3634         Reported by John W. Eaton <jwe@gnu.org>.
3635
3636 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
3637
3638         save-cwd: no longer include "xgetcwd.h"
3639         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
3640         This avoids a compilation failure in projects that use save-cwd
3641         without also using the xgetcwd module.
3642
3643 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
3644
3645         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
3646         This is so that a program like Emacs, which needs only dtoastr,
3647         does not have to bother with distributing and compiling ftoastr
3648         and ldtoastr.
3649         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
3650         * modules/dtoastr, modules/ldtoastr: New files.
3651         * modules/ftoastr: Now works just for 'float'.
3652         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
3653         (Makefile.am): Remove ftoastr.h (not needed and no effect),
3654         dtoastr.c, ldtoastr.c.
3655
3656 2011-01-11  Jim Meyering  <meyering@redhat.com>
3657
3658         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
3659         There is no need to work around the lack of the fchdir function,
3660         since gnulib can now provide a replacement when required.
3661         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
3662         * modules/save-cwd (Depends-on): Add fchdir.
3663
3664 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
3665
3666         openat, save-cwd: avoid xmalloc
3667
3668         This removes a direct (but undocumented) dependency of openat on
3669         xalloc, along with an indirect dependency via save-cwd.  It also
3670         removes a dependency of save-cwd on xgetcwd, and thereby
3671         indirectly on xalloc.  This change causes the openat substitute
3672         to fall back on save_cwd when memory is tight, and for save_cwd to
3673         fail instead of dying when memory is tight, but that's good enough.
3674         Problem and initial idea for fix reported by Bastien Roucaries in
3675         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
3676
3677         * lib/openat-proc.c: Include stdlib.h (for malloc), not
3678         xalloc.h (for xmalloc).
3679         (openat_proc_name): Use malloc, not xmalloc.
3680         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
3681         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
3682
3683         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
3684         This avoids heap allocation for file names whose lengths are in
3685         the range 512..1023, with the upper bound increasing to at most
3686         4031 depending on the platform's PATH_MAX.  (We do not want
3687         pathmax.h here as it might supply a non-constant PATH_MAX.)
3688         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
3689         Perhaps they should be moved to malloca.h?
3690         (OPENAT_BUFFER_SIZE): Use them.
3691
3692 2011-01-10  Bruno Haible  <bruno@clisp.org>
3693
3694         doc: Update users.txt.
3695         * users.txt: Add recutils.
3696
3697 2011-01-09  Karl Berry  <karl@gnu.org>
3698
3699         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
3700
3701         * doc/configmake.texi: New file.
3702         * doc/gnulib.texi: Include it.
3703         * modules/configmake: Move documentation from here.
3704
3705 2011-01-09  Bruno Haible  <bruno@clisp.org>
3706
3707         Update to Unicode 6.0.0.
3708         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
3709         (get_lbp): Update for Unicode 6.0.0.
3710         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
3711         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
3712         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
3713         U+11001, U+11038..U+11046. Remove U+06DE.
3714         (uc_width): Fix bounds of planes.
3715         * tests/uniwidth/test-uc_width2.sh: Same updates as in
3716         lib/uniwidth/width.c.
3717         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
3718         trailing whitespace removed.
3719         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
3720         without comments, but with the original copyright notice.
3721         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
3722         * lib/unicase/ignorable.h: Likewise.
3723         * lib/unicase/tocasefold.h: Likewise.
3724         * lib/unicase/tolower.h: Likewise.
3725         * lib/unicase/totitle.h: Likewise.
3726         * lib/unicase/toupper.h: Likewise.
3727         * lib/unictype/bidi_of.h: Likewise.
3728         * lib/unictype/blocks.h: Likewise.
3729         * lib/unictype/categ_C.h: Likewise.
3730         * lib/unictype/categ_Cn.h: Likewise.
3731         * lib/unictype/categ_L.h: Likewise.
3732         * lib/unictype/categ_Ll.h: Likewise.
3733         * lib/unictype/categ_Lm.h: Likewise.
3734         * lib/unictype/categ_Lo.h: Likewise.
3735         * lib/unictype/categ_Lu.h: Likewise.
3736         * lib/unictype/categ_M.h: Likewise.
3737         * lib/unictype/categ_Mc.h: Likewise.
3738         * lib/unictype/categ_Me.h: Likewise.
3739         * lib/unictype/categ_Mn.h: Likewise.
3740         * lib/unictype/categ_N.h: Likewise.
3741         * lib/unictype/categ_Nd.h: Likewise.
3742         * lib/unictype/categ_No.h: Likewise.
3743         * lib/unictype/categ_P.h: Likewise.
3744         * lib/unictype/categ_Po.h: Likewise.
3745         * lib/unictype/categ_S.h: Likewise.
3746         * lib/unictype/categ_Sc.h: Likewise.
3747         * lib/unictype/categ_Sk.h: Likewise.
3748         * lib/unictype/categ_Sm.h: Likewise.
3749         * lib/unictype/categ_So.h: Likewise.
3750         * lib/unictype/categ_of.h: Likewise.
3751         * lib/unictype/combining.h: Likewise.
3752         * lib/unictype/ctype_alnum.h: Likewise.
3753         * lib/unictype/ctype_alpha.h: Likewise.
3754         * lib/unictype/ctype_graph.h: Likewise.
3755         * lib/unictype/ctype_lower.h: Likewise.
3756         * lib/unictype/ctype_print.h: Likewise.
3757         * lib/unictype/ctype_punct.h: Likewise.
3758         * lib/unictype/ctype_upper.h: Likewise.
3759         * lib/unictype/decdigit.h: Likewise.
3760         * lib/unictype/digit.h: Likewise.
3761         * lib/unictype/numeric.h: Likewise.
3762         * lib/unictype/pr_alphabetic.h: Likewise.
3763         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
3764         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
3765         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
3766         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
3767         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
3768         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
3769         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
3770         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
3771         * lib/unictype/pr_case_ignorable.h: Likewise.
3772         * lib/unictype/pr_cased.h: Likewise.
3773         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
3774         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
3775         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
3776         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
3777         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
3778         * lib/unictype/pr_combining.h: Likewise.
3779         * lib/unictype/pr_composite.h: Likewise.
3780         * lib/unictype/pr_currency_symbol.h: Likewise.
3781         * lib/unictype/pr_decimal_digit.h: Likewise.
3782         * lib/unictype/pr_deprecated.h: Likewise.
3783         * lib/unictype/pr_format_control.h: Likewise.
3784         * lib/unictype/pr_grapheme_base.h: Likewise.
3785         * lib/unictype/pr_grapheme_extend.h: Likewise.
3786         * lib/unictype/pr_grapheme_link.h: Likewise.
3787         * lib/unictype/pr_id_continue.h: Likewise.
3788         * lib/unictype/pr_id_start.h: Likewise.
3789         * lib/unictype/pr_ideographic.h: Likewise.
3790         * lib/unictype/pr_lowercase.h: Likewise.
3791         * lib/unictype/pr_math.h: Likewise.
3792         * lib/unictype/pr_numeric.h: Likewise.
3793         * lib/unictype/pr_other_alphabetic.h: Likewise.
3794         * lib/unictype/pr_other_id_continue.h: Likewise.
3795         * lib/unictype/pr_other_math.h: Likewise.
3796         * lib/unictype/pr_punctuation.h: Likewise.
3797         * lib/unictype/pr_sentence_terminal.h: Likewise.
3798         * lib/unictype/pr_terminal_punctuation.h: Likewise.
3799         * lib/unictype/pr_unassigned_code_value.h: Likewise.
3800         * lib/unictype/pr_unified_ideograph.h: Likewise.
3801         * lib/unictype/pr_uppercase.h: Likewise.
3802         * lib/unictype/pr_xid_continue.h: Likewise.
3803         * lib/unictype/pr_xid_start.h: Likewise.
3804         * lib/unictype/scripts.h: Likewise.
3805         * lib/unictype/scripts_byname.gperf: Likewise.
3806         * lib/unictype/sy_java_ident.h: Likewise.
3807         * lib/unigbrk/gbrkprop.h: Likewise.
3808         * lib/unilbrk/lbrkprop1.h: Likewise.
3809         * lib/unilbrk/lbrkprop2.h: Likewise.
3810         * lib/uninorm/decomposition-table2.h: Likewise.
3811         * lib/uniwbrk/wbrkprop.h: Likewise.
3812         * tests/unicase/test-cased.c: Likewise.
3813         * tests/unicase/test-ignorable.c: Likewise.
3814         * tests/unicase/test-uc_tolower.c: Likewise.
3815         * tests/unicase/test-uc_totitle.c: Likewise.
3816         * tests/unicase/test-uc_toupper.c: Likewise.
3817         * tests/unictype/test-categ_C.c: Likewise.
3818         * tests/unictype/test-categ_Cn.c: Likewise.
3819         * tests/unictype/test-categ_L.c: Likewise.
3820         * tests/unictype/test-categ_Ll.c: Likewise.
3821         * tests/unictype/test-categ_Lm.c: Likewise.
3822         * tests/unictype/test-categ_Lo.c: Likewise.
3823         * tests/unictype/test-categ_Lu.c: Likewise.
3824         * tests/unictype/test-categ_M.c: Likewise.
3825         * tests/unictype/test-categ_Mc.c: Likewise.
3826         * tests/unictype/test-categ_Me.c: Likewise.
3827         * tests/unictype/test-categ_Mn.c: Likewise.
3828         * tests/unictype/test-categ_N.c: Likewise.
3829         * tests/unictype/test-categ_Nd.c: Likewise.
3830         * tests/unictype/test-categ_No.c: Likewise.
3831         * tests/unictype/test-categ_P.c: Likewise.
3832         * tests/unictype/test-categ_Po.c: Likewise.
3833         * tests/unictype/test-categ_S.c: Likewise.
3834         * tests/unictype/test-categ_Sc.c: Likewise.
3835         * tests/unictype/test-categ_Sk.c: Likewise.
3836         * tests/unictype/test-categ_Sm.c: Likewise.
3837         * tests/unictype/test-categ_So.c: Likewise.
3838         * tests/unictype/test-ctype_alnum.c: Likewise.
3839         * tests/unictype/test-ctype_alpha.c: Likewise.
3840         * tests/unictype/test-ctype_graph.c: Likewise.
3841         * tests/unictype/test-ctype_lower.c: Likewise.
3842         * tests/unictype/test-ctype_print.c: Likewise.
3843         * tests/unictype/test-ctype_punct.c: Likewise.
3844         * tests/unictype/test-ctype_upper.c: Likewise.
3845         * tests/unictype/test-decdigit.h: Likewise.
3846         * tests/unictype/test-digit.h: Likewise.
3847         * tests/unictype/test-numeric.h: Likewise.
3848         * tests/unictype/test-pr_alphabetic.c: Likewise.
3849         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
3850         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
3851         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
3852         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
3853         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
3854         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
3855         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
3856         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
3857         * tests/unictype/test-pr_case_ignorable.c: Likewise.
3858         * tests/unictype/test-pr_cased.c: Likewise.
3859         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
3860         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
3861         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
3862         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
3863         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
3864         * tests/unictype/test-pr_combining.c: Likewise.
3865         * tests/unictype/test-pr_composite.c: Likewise.
3866         * tests/unictype/test-pr_currency_symbol.c: Likewise.
3867         * tests/unictype/test-pr_decimal_digit.c: Likewise.
3868         * tests/unictype/test-pr_deprecated.c: Likewise.
3869         * tests/unictype/test-pr_format_control.c: Likewise.
3870         * tests/unictype/test-pr_grapheme_base.c: Likewise.
3871         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
3872         * tests/unictype/test-pr_grapheme_link.c: Likewise.
3873         * tests/unictype/test-pr_id_continue.c: Likewise.
3874         * tests/unictype/test-pr_id_start.c: Likewise.
3875         * tests/unictype/test-pr_ideographic.c: Likewise.
3876         * tests/unictype/test-pr_lowercase.c: Likewise.
3877         * tests/unictype/test-pr_math.c: Likewise.
3878         * tests/unictype/test-pr_numeric.c: Likewise.
3879         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
3880         * tests/unictype/test-pr_other_id_continue.c: Likewise.
3881         * tests/unictype/test-pr_other_math.c: Likewise.
3882         * tests/unictype/test-pr_punctuation.c: Likewise.
3883         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
3884         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
3885         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
3886         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
3887         * tests/unictype/test-pr_uppercase.c: Likewise.
3888         * tests/unictype/test-pr_xid_continue.c: Likewise.
3889         * tests/unictype/test-pr_xid_start.c: Likewise.
3890         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
3891         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
3892         changes.
3893         * lib/unictype/categ_Cc.h: Likewise.
3894         * lib/unictype/categ_Cf.h: Likewise.
3895         * lib/unictype/categ_Co.h: Likewise.
3896         * lib/unictype/categ_Cs.h: Likewise.
3897         * lib/unictype/categ_Lt.h: Likewise.
3898         * lib/unictype/categ_Nl.h: Likewise.
3899         * lib/unictype/categ_Pc.h: Likewise.
3900         * lib/unictype/categ_Pd.h: Likewise.
3901         * lib/unictype/categ_Pe.h: Likewise.
3902         * lib/unictype/categ_Pf.h: Likewise.
3903         * lib/unictype/categ_Pi.h: Likewise.
3904         * lib/unictype/categ_Ps.h: Likewise.
3905         * lib/unictype/categ_Z.h: Likewise.
3906         * lib/unictype/categ_Zl.h: Likewise.
3907         * lib/unictype/categ_Zp.h: Likewise.
3908         * lib/unictype/categ_Zs.h: Likewise.
3909         * lib/unictype/ctype_blank.h: Likewise.
3910         * lib/unictype/ctype_cntrl.h: Likewise.
3911         * lib/unictype/ctype_digit.h: Likewise.
3912         * lib/unictype/ctype_space.h: Likewise.
3913         * lib/unictype/ctype_xdigit.h: Likewise.
3914         * lib/unictype/mirror.h: Likewise.
3915         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
3916         * lib/unictype/pr_bidi_block_separator.h: Likewise.
3917         * lib/unictype/pr_bidi_common_separator.h: Likewise.
3918         * lib/unictype/pr_bidi_control.h: Likewise.
3919         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
3920         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
3921         * lib/unictype/pr_bidi_european_digit.h: Likewise.
3922         * lib/unictype/pr_bidi_pdf.h: Likewise.
3923         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
3924         * lib/unictype/pr_bidi_whitespace.h: Likewise.
3925         * lib/unictype/pr_dash.h: Likewise.
3926         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
3927         * lib/unictype/pr_diacritic.h: Likewise.
3928         * lib/unictype/pr_extender.h: Likewise.
3929         * lib/unictype/pr_hex_digit.h: Likewise.
3930         * lib/unictype/pr_hyphen.h: Likewise.
3931         * lib/unictype/pr_ids_binary_operator.h: Likewise.
3932         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
3933         * lib/unictype/pr_ignorable_control.h: Likewise.
3934         * lib/unictype/pr_iso_control.h: Likewise.
3935         * lib/unictype/pr_join_control.h: Likewise.
3936         * lib/unictype/pr_left_of_pair.h: Likewise.
3937         * lib/unictype/pr_line_separator.h: Likewise.
3938         * lib/unictype/pr_logical_order_exception.h: Likewise.
3939         * lib/unictype/pr_non_break.h: Likewise.
3940         * lib/unictype/pr_not_a_character.h: Likewise.
3941         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
3942         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
3943         * lib/unictype/pr_other_id_start.h: Likewise.
3944         * lib/unictype/pr_other_lowercase.h: Likewise.
3945         * lib/unictype/pr_other_uppercase.h: Likewise.
3946         * lib/unictype/pr_paired_punctuation.h: Likewise.
3947         * lib/unictype/pr_paragraph_separator.h: Likewise.
3948         * lib/unictype/pr_pattern_syntax.h: Likewise.
3949         * lib/unictype/pr_pattern_white_space.h: Likewise.
3950         * lib/unictype/pr_private_use.h: Likewise.
3951         * lib/unictype/pr_quotation_mark.h: Likewise.
3952         * lib/unictype/pr_radical.h: Likewise.
3953         * lib/unictype/pr_soft_dotted.h: Likewise.
3954         * lib/unictype/pr_space.h: Likewise.
3955         * lib/unictype/pr_titlecase.h: Likewise.
3956         * lib/unictype/pr_variation_selector.h: Likewise.
3957         * lib/unictype/pr_white_space.h: Likewise.
3958         * lib/unictype/pr_zero_width.h: Likewise.
3959         * lib/unictype/sy_c_ident.h: Likewise.
3960         * lib/unictype/sy_c_whitespace.h: Likewise.
3961         * lib/unictype/sy_java_whitespace.h: Likewise.
3962         * lib/uninorm/composition-table.gperf: Likewise.
3963         * lib/uninorm/decomposition-table1.h: Likewise.
3964         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
3965         LB8.
3966         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
3967         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
3968         * modules/unictype/*: Bump version number of expected libunistring
3969         version.
3970
3971 2011-01-09  Bruno Haible  <bruno@clisp.org>
3972
3973         Update to Unicode 5.2.0.
3974         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
3975         trailing whitespace removed.
3976
3977 2011-01-09  Bruno Haible  <bruno@clisp.org>
3978
3979         New Unicode character properties, from Unicode 5.2.0.
3980         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
3981         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
3982         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
3983         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
3984         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
3985         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
3986         uc_is_property_cased, uc_is_property_case_ignorable,
3987         uc_is_property_changes_when_lowercased,
3988         uc_is_property_changes_when_uppercased,
3989         uc_is_property_changes_when_titlecased,
3990         uc_is_property_changes_when_casefolded,
3991         uc_is_property_changes_when_casemapped): New declarations.
3992         * lib/unictype/pr_byname.gperf: Add the new properties.
3993         * modules/unictype/property-byname (Depends-on): Depend on the new
3994         properties modules.
3995         * modules/unictype/property-all (Depends-on): Likewise.
3996         * MODULES.html.sh (Unicode string functions): Add
3997         unictype/property-case-ignorable, unictype/property-cased,
3998         unictype/property-changes-when-casefolded,
3999         unictype/property-changes-when-casemapped,
4000         unictype/property-changes-when-lowercased,
4001         unictype/property-changes-when-titlecased,
4002         unictype/property-changes-when-uppercased.
4003
4004         New module 'unictype/property-changes-when-casemapped'.
4005         * modules/unictype/property-changes-when-casemapped: New file.
4006         * lib/unictype/pr_changes_when_casemapped.c: New file.
4007         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
4008         generated by gen-uni-tables.
4009         * modules/unictype/property-changes-when-casemapped-tests: New file.
4010         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
4011         automatically generated by gen-uni-tables.
4012
4013         New module 'unictype/property-changes-when-casefolded'.
4014         * modules/unictype/property-changes-when-casefolded: New file.
4015         * lib/unictype/pr_changes_when_casefolded.c: New file.
4016         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
4017         generated by gen-uni-tables.
4018         * modules/unictype/property-changes-when-casefolded-tests: New file.
4019         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
4020         automatically generated by gen-uni-tables.
4021
4022         New module 'unictype/property-changes-when-titlecased'.
4023         * modules/unictype/property-changes-when-titlecased: New file.
4024         * lib/unictype/pr_changes_when_titlecased.c: New file.
4025         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
4026         generated by gen-uni-tables.
4027         * modules/unictype/property-changes-when-titlecased-tests: New file.
4028         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
4029         automatically generated by gen-uni-tables.
4030
4031         New module 'unictype/property-changes-when-uppercased'.
4032         * modules/unictype/property-changes-when-uppercased: New file.
4033         * lib/unictype/pr_changes_when_uppercased.c: New file.
4034         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
4035         generated by gen-uni-tables.
4036         * modules/unictype/property-changes-when-uppercased-tests: New file.
4037         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
4038         automatically generated by gen-uni-tables.
4039
4040         New module 'unictype/property-changes-when-lowercased'.
4041         * modules/unictype/property-changes-when-lowercased: New file.
4042         * lib/unictype/pr_changes_when_lowercased.c: New file.
4043         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
4044         generated by gen-uni-tables.
4045         * modules/unictype/property-changes-when-lowercased-tests: New file.
4046         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
4047         automatically generated by gen-uni-tables.
4048
4049         New module 'unictype/property-case-ignorable'.
4050         * modules/unictype/property-case-ignorable: New file.
4051         * lib/unictype/pr_case_ignorable.c: New file.
4052         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
4053         by gen-uni-tables.
4054         * modules/unictype/property-case-ignorable-tests: New file.
4055         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
4056         generated by gen-uni-tables.
4057
4058         New module 'unictype/property-cased'.
4059         * modules/unictype/property-cased: New file.
4060         * lib/unictype/pr_cased.c: New file.
4061         * lib/unictype/pr_cased.h: New file, automatically generated by
4062         gen-uni-tables.
4063         * modules/unictype/property-cased-tests: New file.
4064         * tests/unictype/test-pr_cased.c: New file, automatically generated by
4065         gen-uni-tables.
4066
4067 2011-01-09  Bruno Haible  <bruno@clisp.org>
4068
4069         Update to Unicode 5.2.0.
4070         * lib/gen-uni-tables.c (output_predicate, output_category,
4071         output_combclass, output_bidi_category, output_decimal_digit_test,
4072         output_decimal_digit, output_digit_test, output_digit,
4073         output_numeric_test, output_numeric, output_mirror, output_scripts,
4074         output_scripts_byname, output_blocks, output_ident_category): Fix
4075         comment header.
4076         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
4077         get_wbp.
4078         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
4079         items.
4080         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
4081         Changes_When_Lowercased, Changes_When_Uppercased,
4082         Changes_When_Titlecased, Changes_When_Casefolded,
4083         Changes_When_Casemapped.
4084         (is_property_alphabetic, is_property_default_ignorable_code_point):
4085         Update for Unicode 5.2.0.
4086         (is_property_cased, is_property_case_ignorable,
4087         is_property_changes_when_lowercased,
4088         is_property_changes_when_uppercased,
4089         is_property_changes_when_titlecased,
4090         is_property_changes_when_casefolded,
4091         is_property_changes_when_casemapped): New functions.
4092         (output_properties): Output also the properties cased, case_ignorable,
4093         changes_when_lowercased, changes_when_uppercased,
4094         changes_when_titlecased, changes_when_casefolded,
4095         changes_when_casemapped.
4096         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
4097         Unicode TR#11 revision 17 -> 19.
4098         (LBP_CP): New enumeration value.
4099         (LBP_*): Adjust values accordingly.
4100         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
4101         TR#14 revision 22 -> 24.
4102         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
4103         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
4104         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
4105         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
4106         is_WBP_MIDLETTER.
4107         (output_composition_tables): Allow for 24 bits instead of 16 bits in
4108         the code1 and code2 of each composition rule.
4109         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
4110         * lib/unicase/ignorable.h: Likewise.
4111         * lib/unicase/tocasefold.h: Likewise.
4112         * lib/unicase/tolower.h: Likewise.
4113         * lib/unicase/totitle.h: Likewise.
4114         * lib/unicase/toupper.h: Likewise.
4115         * lib/unictype/bidi_of.h: Likewise.
4116         * lib/unictype/blocks.h: Likewise.
4117         * lib/unictype/categ_C.h: Likewise.
4118         * lib/unictype/categ_Cf.h: Likewise.
4119         * lib/unictype/categ_Cn.h: Likewise.
4120         * lib/unictype/categ_L.h: Likewise.
4121         * lib/unictype/categ_Ll.h: Likewise.
4122         * lib/unictype/categ_Lm.h: Likewise.
4123         * lib/unictype/categ_Lo.h: Likewise.
4124         * lib/unictype/categ_Lu.h: Likewise.
4125         * lib/unictype/categ_M.h: Likewise.
4126         * lib/unictype/categ_Mc.h: Likewise.
4127         * lib/unictype/categ_Mn.h: Likewise.
4128         * lib/unictype/categ_N.h: Likewise.
4129         * lib/unictype/categ_Nd.h: Likewise.
4130         * lib/unictype/categ_Nl.h: Likewise.
4131         * lib/unictype/categ_No.h: Likewise.
4132         * lib/unictype/categ_P.h: Likewise.
4133         * lib/unictype/categ_Pd.h: Likewise.
4134         * lib/unictype/categ_Po.h: Likewise.
4135         * lib/unictype/categ_S.h: Likewise.
4136         * lib/unictype/categ_Sc.h: Likewise.
4137         * lib/unictype/categ_So.h: Likewise.
4138         * lib/unictype/categ_of.h: Likewise.
4139         * lib/unictype/combining.h: Likewise.
4140         * lib/unictype/ctype_alnum.h: Likewise.
4141         * lib/unictype/ctype_alpha.h: Likewise.
4142         * lib/unictype/ctype_graph.h: Likewise.
4143         * lib/unictype/ctype_lower.h: Likewise.
4144         * lib/unictype/ctype_print.h: Likewise.
4145         * lib/unictype/ctype_punct.h: Likewise.
4146         * lib/unictype/ctype_upper.h: Likewise.
4147         * lib/unictype/decdigit.h: Likewise.
4148         * lib/unictype/digit.h: Likewise.
4149         * lib/unictype/numeric.h: Likewise.
4150         * lib/unictype/pr_alphabetic.h: Likewise.
4151         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
4152         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
4153         * lib/unictype/pr_bidi_european_digit.h: Likewise.
4154         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
4155         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
4156         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
4157         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
4158         * lib/unictype/pr_combining.h: Likewise.
4159         * lib/unictype/pr_composite.h: Likewise.
4160         * lib/unictype/pr_currency_symbol.h: Likewise.
4161         * lib/unictype/pr_dash.h: Likewise.
4162         * lib/unictype/pr_decimal_digit.h: Likewise.
4163         * lib/unictype/pr_deprecated.h: Likewise.
4164         * lib/unictype/pr_diacritic.h: Likewise.
4165         * lib/unictype/pr_extender.h: Likewise.
4166         * lib/unictype/pr_grapheme_base.h: Likewise.
4167         * lib/unictype/pr_grapheme_extend.h: Likewise.
4168         * lib/unictype/pr_grapheme_link.h: Likewise.
4169         * lib/unictype/pr_id_continue.h: Likewise.
4170         * lib/unictype/pr_id_start.h: Likewise.
4171         * lib/unictype/pr_ideographic.h: Likewise.
4172         * lib/unictype/pr_ignorable_control.h: Likewise.
4173         * lib/unictype/pr_logical_order_exception.h: Likewise.
4174         * lib/unictype/pr_lowercase.h: Likewise.
4175         * lib/unictype/pr_numeric.h: Likewise.
4176         * lib/unictype/pr_other_alphabetic.h: Likewise.
4177         * lib/unictype/pr_punctuation.h: Likewise.
4178         * lib/unictype/pr_sentence_terminal.h: Likewise.
4179         * lib/unictype/pr_terminal_punctuation.h: Likewise.
4180         * lib/unictype/pr_unassigned_code_value.h: Likewise.
4181         * lib/unictype/pr_unified_ideograph.h: Likewise.
4182         * lib/unictype/pr_uppercase.h: Likewise.
4183         * lib/unictype/pr_xid_continue.h: Likewise.
4184         * lib/unictype/pr_xid_start.h: Likewise.
4185         * lib/unictype/pr_zero_width.h: Likewise.
4186         * lib/unictype/scripts.h: Likewise.
4187         * lib/unictype/scripts_byname.gperf: Likewise.
4188         * lib/unictype/sy_java_ident.h: Likewise.
4189         * lib/unigbrk/gbrkprop.h: Likewise.
4190         * lib/unilbrk/lbrkprop1.h: Likewise.
4191         * lib/unilbrk/lbrkprop2.h: Likewise.
4192         * lib/unilbrk/lbrktables.h: Likewise.
4193         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
4194         LBP_CP. Implement rule LB30.
4195         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
4196         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
4197         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
4198         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
4199         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
4200         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
4201         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
4202         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
4203         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
4204         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
4205         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
4206         bits instead of 16 bits in the code1 and code2 of each composition
4207         rule.
4208         (uc_composition): Update for Unicode 5.2.0.
4209         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
4210         * lib/uninorm/decomposition-table2.h: Likewise.
4211         * lib/uniwbrk/wbrkprop.h: Likewise.
4212         * tests/unicase/test-cased.c: Likewise.
4213         * tests/unicase/test-ignorable.c: Likewise.
4214         * tests/unicase/test-uc_tolower.c: Likewise.
4215         * tests/unicase/test-uc_totitle.c: Likewise.
4216         * tests/unicase/test-uc_toupper.c: Likewise.
4217         * tests/unictype/test-categ_C.c: Likewise.
4218         * tests/unictype/test-categ_Cf.c: Likewise.
4219         * tests/unictype/test-categ_Cn.c: Likewise.
4220         * tests/unictype/test-categ_L.c: Likewise.
4221         * tests/unictype/test-categ_Ll.c: Likewise.
4222         * tests/unictype/test-categ_Lm.c: Likewise.
4223         * tests/unictype/test-categ_Lo.c: Likewise.
4224         * tests/unictype/test-categ_Lu.c: Likewise.
4225         * tests/unictype/test-categ_M.c: Likewise.
4226         * tests/unictype/test-categ_Mc.c: Likewise.
4227         * tests/unictype/test-categ_Mn.c: Likewise.
4228         * tests/unictype/test-categ_N.c: Likewise.
4229         * tests/unictype/test-categ_Nd.c: Likewise.
4230         * tests/unictype/test-categ_Nl.c: Likewise.
4231         * tests/unictype/test-categ_No.c: Likewise.
4232         * tests/unictype/test-categ_P.c: Likewise.
4233         * tests/unictype/test-categ_Pd.c: Likewise.
4234         * tests/unictype/test-categ_Po.c: Likewise.
4235         * tests/unictype/test-categ_S.c: Likewise.
4236         * tests/unictype/test-categ_Sc.c: Likewise.
4237         * tests/unictype/test-categ_So.c: Likewise.
4238         * tests/unictype/test-ctype_alnum.c: Likewise.
4239         * tests/unictype/test-ctype_alpha.c: Likewise.
4240         * tests/unictype/test-ctype_graph.c: Likewise.
4241         * tests/unictype/test-ctype_lower.c: Likewise.
4242         * tests/unictype/test-ctype_print.c: Likewise.
4243         * tests/unictype/test-ctype_punct.c: Likewise.
4244         * tests/unictype/test-ctype_upper.c: Likewise.
4245         * tests/unictype/test-decdigit.h: Likewise.
4246         * tests/unictype/test-digit.h: Likewise.
4247         * tests/unictype/test-numeric.h: Likewise.
4248         * tests/unictype/test-pr_alphabetic.c: Likewise.
4249         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
4250         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
4251         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
4252         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
4253         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
4254         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
4255         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
4256         * tests/unictype/test-pr_combining.c: Likewise.
4257         * tests/unictype/test-pr_composite.c: Likewise.
4258         * tests/unictype/test-pr_currency_symbol.c: Likewise.
4259         * tests/unictype/test-pr_dash.c: Likewise.
4260         * tests/unictype/test-pr_decimal_digit.c: Likewise.
4261         * tests/unictype/test-pr_deprecated.c: Likewise.
4262         * tests/unictype/test-pr_diacritic.c: Likewise.
4263         * tests/unictype/test-pr_extender.c: Likewise.
4264         * tests/unictype/test-pr_grapheme_base.c: Likewise.
4265         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
4266         * tests/unictype/test-pr_grapheme_link.c: Likewise.
4267         * tests/unictype/test-pr_id_continue.c: Likewise.
4268         * tests/unictype/test-pr_id_start.c: Likewise.
4269         * tests/unictype/test-pr_ideographic.c: Likewise.
4270         * tests/unictype/test-pr_ignorable_control.c: Likewise.
4271         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
4272         * tests/unictype/test-pr_lowercase.c: Likewise.
4273         * tests/unictype/test-pr_numeric.c: Likewise.
4274         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
4275         * tests/unictype/test-pr_punctuation.c: Likewise.
4276         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
4277         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
4278         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
4279         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
4280         * tests/unictype/test-pr_uppercase.c: Likewise.
4281         * tests/unictype/test-pr_xid_continue.c: Likewise.
4282         * tests/unictype/test-pr_xid_start.c: Likewise.
4283         * tests/unictype/test-pr_zero_width.c: Likewise.
4284         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
4285         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
4286         changed behaviour: line breaking is now disallowed between a letter
4287         or '=' and '('.
4288         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
4289         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
4290         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
4291         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
4292         * tests/uniwidth/test-uc_width2.sh: Same updates as in
4293         lib/uniwidth/width.c.
4294         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
4295         without comments, but with the original copyright notice.
4296         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
4297         changes.
4298         * lib/unictype/categ_Cc.h: Likewise.
4299         * lib/unictype/categ_Co.h: Likewise.
4300         * lib/unictype/categ_Cs.h: Likewise.
4301         * lib/unictype/categ_Lt.h: Likewise.
4302         * lib/unictype/categ_Me.h: Likewise.
4303         * lib/unictype/categ_Pc.h: Likewise.
4304         * lib/unictype/categ_Pe.h: Likewise.
4305         * lib/unictype/categ_Pf.h: Likewise.
4306         * lib/unictype/categ_Pi.h: Likewise.
4307         * lib/unictype/categ_Ps.h: Likewise.
4308         * lib/unictype/categ_Sk.h: Likewise.
4309         * lib/unictype/categ_Sm.h: Likewise.
4310         * lib/unictype/categ_Z.h: Likewise.
4311         * lib/unictype/categ_Zl.h: Likewise.
4312         * lib/unictype/categ_Zp.h: Likewise.
4313         * lib/unictype/categ_Zs.h: Likewise.
4314         * lib/unictype/ctype_blank.h: Likewise.
4315         * lib/unictype/ctype_cntrl.h: Likewise.
4316         * lib/unictype/ctype_digit.h: Likewise.
4317         * lib/unictype/ctype_space.h: Likewise.
4318         * lib/unictype/ctype_xdigit.h: Likewise.
4319         * lib/unictype/mirror.h: Likewise.
4320         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
4321         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
4322         * lib/unictype/pr_bidi_block_separator.h: Likewise.
4323         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
4324         * lib/unictype/pr_bidi_common_separator.h: Likewise.
4325         * lib/unictype/pr_bidi_control.h: Likewise.
4326         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
4327         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
4328         * lib/unictype/pr_bidi_pdf.h: Likewise.
4329         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
4330         * lib/unictype/pr_bidi_whitespace.h: Likewise.
4331         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
4332         * lib/unictype/pr_format_control.h: Likewise.
4333         * lib/unictype/pr_hex_digit.h: Likewise.
4334         * lib/unictype/pr_hyphen.h: Likewise.
4335         * lib/unictype/pr_ids_binary_operator.h: Likewise.
4336         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
4337         * lib/unictype/pr_iso_control.h: Likewise.
4338         * lib/unictype/pr_join_control.h: Likewise.
4339         * lib/unictype/pr_left_of_pair.h: Likewise.
4340         * lib/unictype/pr_line_separator.h: Likewise.
4341         * lib/unictype/pr_math.h: Likewise.
4342         * lib/unictype/pr_non_break.h: Likewise.
4343         * lib/unictype/pr_not_a_character.h: Likewise.
4344         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
4345         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
4346         * lib/unictype/pr_other_id_continue.h: Likewise.
4347         * lib/unictype/pr_other_id_start.h: Likewise.
4348         * lib/unictype/pr_other_lowercase.h: Likewise.
4349         * lib/unictype/pr_other_math.h: Likewise.
4350         * lib/unictype/pr_other_uppercase.h: Likewise.
4351         * lib/unictype/pr_paired_punctuation.h: Likewise.
4352         * lib/unictype/pr_paragraph_separator.h: Likewise.
4353         * lib/unictype/pr_pattern_syntax.h: Likewise.
4354         * lib/unictype/pr_pattern_white_space.h: Likewise.
4355         * lib/unictype/pr_private_use.h: Likewise.
4356         * lib/unictype/pr_quotation_mark.h: Likewise.
4357         * lib/unictype/pr_radical.h: Likewise.
4358         * lib/unictype/pr_soft_dotted.h: Likewise.
4359         * lib/unictype/pr_space.h: Likewise.
4360         * lib/unictype/pr_titlecase.h: Likewise.
4361         * lib/unictype/pr_variation_selector.h: Likewise.
4362         * lib/unictype/pr_white_space.h: Likewise.
4363         * lib/unictype/sy_c_ident.h: Likewise.
4364         * lib/unictype/sy_c_whitespace.h: Likewise.
4365         * lib/unictype/sy_java_whitespace.h: Likewise.
4366         * modules/uni*/*: Bump version number of expected libunistring version.
4367         Reported by Simon Josefsson.
4368
4369 2011-01-09  Karl Heuer  <kwzh@gnu.org>
4370
4371         useless-if-before-free: fix typo in --help and make the internal,
4372         automatic version date update process work once again.
4373         --help output contained a NUL character instead of the
4374         backslash-zero that was intended.  Also, the "must lie within
4375         the first 8 lines" line is on line 9, and hence not getting
4376         automatically updated.
4377         * build-aux/useless-if-before-free: Fix the former by adding a
4378         backslash, and the latter by condensing the three lines of what-it-does
4379         to a single line, leaving one line of slack for the future.
4380
4381 2011-01-09  Bruno Haible  <bruno@clisp.org>
4382
4383         uniwidth/width: Fix width of U+1D173..U+1D17A.
4384         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
4385         symbolic_width, output_width_property_test): New functions.
4386         (main): Invoke output_nonspacing_property, output_width_property_test.
4387         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
4388         U+1D173..U+1D17A.
4389         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
4390         1.
4391         * modules/uniwidth/*: Bump version number of expected libunistring
4392         version.
4393         * modules/unilbrk/*: Likewise.
4394
4395 2011-01-08  Bruno Haible  <bruno@clisp.org>
4396
4397         uninorm tests: Preserve copyright of Unicode data file.
4398         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
4399         Mention modifications.
4400
4401 2011-01-08  Bruno Haible  <bruno@clisp.org>
4402
4403         gen-uni-tables: Prepare for Unicode 5.2.0.
4404         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
4405         (debug_output_lbp, output_lbp): Update.
4406
4407 2011-01-08  Bruno Haible  <bruno@clisp.org>
4408
4409         unilbrk: Clarify gen-uni-tables.c code.
4410         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
4411         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
4412         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
4413
4414 2011-01-07  Bruno Haible  <bruno@clisp.org>
4415
4416         strtod: Restore errno when successfully parsing Infinity or NaN.
4417         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
4418         restore the original errno.
4419
4420 2011-01-07  Bruno Haible  <bruno@clisp.org>
4421
4422         remove test: Avoid failure on HP-UX 11.
4423         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
4424
4425 2011-01-07  Bruno Haible  <bruno@clisp.org>
4426
4427         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
4428         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
4429         error code.
4430
4431 2011-01-07  Pádraig Brady <P@draigBrady.com>
4432
4433         ignore-value: fixup comments, and add Eric Blake
4434         as an author since he rewrote the macros.
4435         * lib/ignore-value.h (ignore_value):  State that
4436         we now support aggregates.  Also specify exactly
4437         when the GCC warn_unused_result feature was added.
4438
4439 2011-01-06  Eric Blake  <eblake@redhat.com>
4440
4441         ignore-value: support aggregate types
4442         * lib/ignore-value.h (ignore_value): Provide separate gcc
4443         definition.
4444         * modules/ignore-value-tests: New test module.
4445         * tests/test-ignore-value.c: New test.
4446
4447         maint.mk: improve sc_prohibit_strcmp regex
4448         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
4449         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
4450         definition of STRNEQ.
4451
4452         signal: work around Haiku issue with SIGBUS
4453         * lib/siglist.h: Add comment.
4454         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
4455         strsignal's favoring of SIGSEGV.
4456         * tests/test-signal.c (main): Avoid test failure.
4457         * doc/posix-headers/signal.texi (signal.h): Document the issue.
4458         Reported by Scott McCreary.
4459
4460         maint.mk: add pre-release check to ensure submodule commits are public
4461         * top/maint.mk (public-submodule-commit): New rule.
4462         (submodule-checks): New variable.
4463         (alpha beta stable): Depend on the variable.
4464
4465 2011-01-05  Pádraig Brady <P@draigBrady.com>
4466         and Jim Meyering  <meyering@redhat.com>
4467
4468         ignore-value: make ignore_value more generic; deprecate ignore_ptr
4469         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
4470         (ATTRIBUTE_DEPRECATED): Define.
4471         (_ignore_case): New function.
4472         (ignore_value): New macro, to replace the old function.
4473         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
4474         * modules/ignore-value (Depends-on): Add stdint.
4475
4476 2011-01-04  Eric Blake  <eblake@redhat.com>
4477
4478         doc: regenerate INSTALL
4479         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
4480         @firstparagraphindent support, now that autoconf dropped it.
4481         (INSTALL_PRELUDE): Reinstate old macro.
4482         * doc/install.texi: Resync from autoconf.
4483         * doc/INSTALL: Reflect recent autoconf update.
4484         * doc/INSTALL.ISO: Likewise.
4485         * doc/INSTALL.UTF-8: Likewise.
4486         Reported by Karl Berry.
4487
4488 2011-01-04  Bruce Korb  <address@hidden>
4489
4490         git-version-gen: avoid a sub-shell
4491         * build-aux/git-version-gen: Redirect stderr in `...` via
4492         "exec 2>...", rather than via an added sub-shell.
4493
4494 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
4495
4496         git-version-gen: use (...) rather than sh -c '...'
4497         * build-aux/git-version-gen: Rather than hard-coding a shell's name
4498         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
4499
4500 2011-01-03  Jim Meyering  <meyering@redhat.com>
4501
4502         git-version-gen: convert leading TABs to spaces
4503         * build-aux/git-version-gen: Expand leading TABs.
4504
4505         git-version-gen: handle failed "git rev-list"
4506         * build-aux/git-version-gen: Rather than leaking a "fatal" error
4507         from git and proceeding as if it had succeeded but printed no SHA1
4508         checksums, suppress the diagnostic and handle the failure.
4509         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
4510
4511         git-version-gen: include command name in one more diagnostic
4512         * build-aux/git-version-gen: When the required .tarball-version file
4513         was missing or unreadable, you might see the diagnostic from "cat",
4514         but no trace of the name of the invoking script.  Now, you still see
4515         the diagnostic from cat, but also get one from "git-version-gen: ".
4516         Inspired by a patch from Bruce Korb.
4517
4518         update-copyright: adjust test to match changed code
4519         * tests/test-update-copyright.sh: Change test's expected output
4520         to match new actual output.
4521
4522 2011-01-02  Bruno Haible  <bruno@clisp.org>
4523
4524         getlogin_r: Avoid test failure on HP-UX 11.
4525         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
4526         ERANGE when the second argument is zero.
4527         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
4528         portability problem.
4529
4530 2011-01-02  Bruce Korb  <bkorb@gnu.org>
4531
4532         * build-aux/update-copyright: doc Simon's changes
4533
4534 2011-01-02  Simon Josefsson  <simon@josefsson.org>
4535
4536         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
4537         environment variable.
4538
4539 2011-01-02  Bruno Haible  <bruno@clisp.org>
4540
4541         unigbrk: Avoid gcc warnings.
4542         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
4543         unused variable.
4544         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
4545         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
4546         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
4547         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
4548         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
4549         Change type of first argument to 'const char *'.
4550         (main): Remove unused variable.
4551         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
4552         type of first argument to 'const char *'.
4553         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
4554         Likewise.
4555         (main): Change type of variable 's'.
4556         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
4557         to 'int'.
4558
4559 2011-01-02  Bruno Haible  <bruno@clisp.org>
4560
4561         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
4562         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
4563         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
4564         bug.
4565         * lib/pwrite.c: Undo 2010-12-31 patch.
4566         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
4567
4568 2011-01-02  Bruno Haible  <bruno@clisp.org>
4569
4570         pread: Fix test whether it works.
4571         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
4572
4573 2011-01-02  Bruno Haible  <bruno@clisp.org>
4574
4575         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
4576         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
4577         ends in "6". Don't require a specific month name. Try also the locale
4578         names found on HP-UX 11 and Solaris 7.
4579
4580 2011-01-02  Bruno Haible  <bruno@clisp.org>
4581
4582         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
4583         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
4584         C linkage.
4585         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
4586
4587 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
4588
4589         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
4590         for consistency, since the "cluster" term is not used elsewhere.
4591         * lib/unigbrk.in.h: Update name.
4592         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
4593         * lib/unigbrk/u16-grapheme-next.c: Update name.
4594         * lib/unigbrk/u16-grapheme-prev.c: Update name.
4595         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
4596         * lib/unigbrk/u32-grapheme-next.c: Update name.
4597         * lib/unigbrk/u32-grapheme-prev.c: Update name.
4598         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
4599         * lib/unigbrk/u8-grapheme-next.c: Update name.
4600         * lib/unigbrk/u8-grapheme-prev.c: Update name.
4601         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
4602         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
4603         Suggested by Bruno Haible.
4604
4605 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
4606
4607         Remove module 'u8-grapheme-len' as too redundant with
4608         'u8-grapheme-next'.
4609         * modules/unigbrk/u8-grapheme-len: Delete file.
4610         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
4611         * lib/unigbrk.in.h: Remove prototype for deleted function.
4612         * lib/unigbrk/u8-grapheme-len.c: Delete file.
4613         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
4614
4615         Remove module 'u16-grapheme-len' as too redundant with
4616         'u16-grapheme-next'.
4617         * modules/unigbrk/u16-grapheme-len: Delete file.
4618         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
4619         * lib/unigbrk.in.h: Remove prototype for deleted function.
4620         * lib/unigbrk/u16-grapheme-len.c: Delete file.
4621         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
4622
4623         Remove module 'u32-grapheme-len' as too redundant with
4624         'u32-grapheme-next'.
4625         * modules/unigbrk/u32-grapheme-len: Delete file.
4626         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
4627         * lib/unigbrk.in.h: Remove prototype for deleted function.
4628         * lib/unigbrk/u32-grapheme-len.c: Delete file.
4629         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
4630
4631         Suggested by Bruno Haible.
4632
4633 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
4634
4635         * unigbrk.in.h: Fix typo: "ben" => "been".
4636         Reported by Bruno Haible.
4637
4638 2011-01-01  Jim Meyering  <meyering@redhat.com>
4639
4640         maint: update almost all copyright ranges to include 2011
4641         Run the new "make update-copyright" rule.
4642
4643 2011-01-01  Jim Meyering  <meyering@redhat.com>
4644
4645         maint: update-copyright: exempt doc/INSTALL*
4646         * Makefile (update-copyright): Also exclude doc/INSTALL*,
4647         since they are generated.  Suggested by Bruno Haible.
4648
4649 2011-01-01  Jim Meyering  <meyering@redhat.com>
4650
4651         maint: refine the update-copyright rule
4652         * Makefile (update-copyright): Also exclude any file that includes
4653         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
4654         code that merely generates the comment.
4655
4656 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
4657
4658         New module 'u8-grapheme-len'.
4659         * modules/unigbrk/u8-grapheme-len: New file.
4660         * modules/unigbrk/u8-grapheme-len-tests: New file.
4661         * lib/unigbrk.in.h: Add prototype for new function.
4662         * lib/unigbrk/u8-grapheme-len.c: New file.
4663         * tests/unigbrk/test-u8-grapheme-len.c: New file.
4664
4665         New module 'u16-grapheme-len'.
4666         * modules/unigbrk/u16-grapheme-len: New file.
4667         * modules/unigbrk/u16-grapheme-len-tests: New file.
4668         * lib/unigbrk.in.h: Add prototype for new function.
4669         * lib/unigbrk/u16-grapheme-len.c: New file.
4670         * tests/unigbrk/test-u16-grapheme-len.c: New file.
4671
4672         New module 'u32-grapheme-len'.
4673         * modules/unigbrk/u32-grapheme-len: New file.
4674         * modules/unigbrk/u32-grapheme-len-tests: New file.
4675         * lib/unigbrk.in.h: Add prototype for new function.
4676         * lib/unigbrk/u32-grapheme-len.c: New file.
4677         * tests/unigbrk/test-u32-grapheme-len.c: New file.
4678
4679         New module 'u8-grapheme-next'.
4680         * modules/unigbrk/u8-grapheme-next: New file.
4681         * modules/unigbrk/u8-grapheme-next-tests: New file.
4682         * lib/unigbrk.in.h: Add prototype for new function.
4683         * lib/unigbrk/u8-grapheme-next.c: New file.
4684         * tests/unigbrk/test-u8-grapheme-next.c: New file.
4685
4686         New module 'u16-grapheme-next'.
4687         * modules/unigbrk/u16-grapheme-next: New file.
4688         * modules/unigbrk/u16-grapheme-next-tests: New file.
4689         * lib/unigbrk.in.h: Add prototype for new function.
4690         * lib/unigbrk/u16-grapheme-next.c: New file.
4691         * tests/unigbrk/test-u16-grapheme-next.c: New file.
4692
4693         New module 'u32-grapheme-next'.
4694         * modules/unigbrk/u32-grapheme-next: New file.
4695         * modules/unigbrk/u32-grapheme-next-tests: New file.
4696         * lib/unigbrk.in.h: Add prototype for new function.
4697         * lib/unigbrk/u32-grapheme-next.c: New file.
4698         * tests/unigbrk/test-u32-grapheme-next.c: New file.
4699
4700         New module 'u8-grapheme-prev'.
4701         * modules/unigbrk/u8-grapheme-prev: New file.
4702         * modules/unigbrk/u8-grapheme-prev-tests: New file.
4703         * lib/unigbrk.in.h: Add prototype for new function.
4704         * lib/unigbrk/u8-grapheme-prev.c: New file.
4705         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
4706
4707         New module 'u16-grapheme-prev'.
4708         * modules/unigbrk/u16-grapheme-prev: New file.
4709         * modules/unigbrk/u16-grapheme-prev-tests: New file.
4710         * lib/unigbrk.in.h: Add prototype for new function.
4711         * lib/unigbrk/u16-grapheme-prev.c: New file.
4712         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
4713
4714         New module 'u32-grapheme-prev'.
4715         * modules/unigbrk/u32-grapheme-prev: New file.
4716         * modules/unigbrk/u32-grapheme-prev-tests: New file.
4717         * lib/unigbrk.in.h: Add prototype for new function.
4718         * lib/unigbrk/u32-grapheme-prev.c: New file.
4719         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
4720
4721         New module 'u8-grapheme-breaks'.
4722         * modules/unigbrk/u8-grapheme-breaks: New file.
4723         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
4724         * lib/unigbrk.in.h: Add prototype for new function.
4725         * lib/unigbrk/u8-grapheme-breaks.c: New file.
4726         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
4727
4728         New module 'u16-grapheme-breaks'.
4729         * modules/unigbrk/u16-grapheme-breaks: New file.
4730         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
4731         * lib/unigbrk.in.h: Add prototype for new function.
4732         * lib/unigbrk/u16-grapheme-breaks.c: New file.
4733         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
4734
4735         New module 'u32-grapheme-breaks'.
4736         * modules/unigbrk/u32-grapheme-breaks: New file.
4737         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
4738         * lib/unigbrk.in.h: Add prototype for new function.
4739         * lib/unigbrk/u32-grapheme-breaks.c: New file.
4740         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
4741
4742         New module 'ulc-grapheme-breaks'.
4743         * modules/unigbrk/ulc-grapheme-breaks: New file.
4744         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
4745         * m4/locale-ar.m4: New file.
4746         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
4747         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
4748         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
4749
4750 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
4751
4752         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
4753         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
4754         modified how this file was generated before I initially submitted
4755         the module, but failed to regenerate it.  This meant that several
4756         of the level2 entries were wrong.
4757         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
4758         Remove the division-by-2 that is folded into the table now that
4759         gbrkprop.h has been regenerated properly.  Now -1 entries are
4760         handled correctly.
4761
4762         New module 'unigbrk/uc-gbrk-prop-tests'.
4763         * modules/unigbrk/uc-gbrk-prop-tests: New file.
4764         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
4765         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
4766         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
4767
4768 2011-01-01  Bruno Haible  <bruno@clisp.org>
4769
4770         Avoid use of hexadecimal escapes.
4771         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
4772         instead of hexadecimal escapes.
4773
4774 2011-01-01  Jim Meyering  <meyering@redhat.com>
4775
4776         maint: new rule to update copyright year ranges
4777         * Makefile (update-copyright): New rule.
4778
4779         maint: indent with TABs in Makefile
4780         * Makefile: Expand leading sequences of spaces to TABs
4781
4782         version-etc: update the copyright year it reports
4783         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
4784
4785 2010-12-31  Bruno Haible  <bruno@clisp.org>
4786
4787         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
4788         * lib/isfinite.c (zerof, zerod, zerol): New variables.
4789         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
4790         zero.
4791
4792 2010-12-31  Bruno Haible  <bruno@clisp.org>
4793
4794         pwrite: Work around HP-UX 11.11 bug.
4795         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
4796         works and set REPLACE_PWRITE if not.
4797         * lib/pwrite.c (pwrite): Add an implementation that uses the system
4798         function.
4799         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
4800
4801 2010-12-31  Bruno Haible  <bruno@clisp.org>
4802
4803         pread: Work around HP-UX 11 bugs.
4804         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
4805         and set REPLACE_PREAD if not.
4806         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
4807
4808 2010-12-31  Eric Blake  <eblake@redhat.com>
4809
4810         nl_langinfo: fix YESEXPR on Irix 6.5
4811         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
4812         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
4813         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
4814         it.
4815
4816 2010-12-31  Bruno Haible  <bruno@clisp.org>
4817
4818         iconv: Document HP-UX 11 bug.
4819         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
4820
4821 2010-12-31  Bruno Haible  <bruno@clisp.org>
4822
4823         ldexpl: Fix link error on HP-UX 11.
4824         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
4825         LDEXPL_LIBM, using $ISNANL_LIBM.
4826
4827 2010-12-31  Eric Blake  <eblake@redhat.com>
4828
4829         ftello: avoid compilation failure with SunStudio c89
4830         * lib/ftello.c (ftello): Use lseek, not llseek.
4831
4832         tests: avoid failing coreutils tests on cygwin
4833         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
4834         (create_exe_shims_): Return 0 when skipping.
4835
4836 2010-12-31  Bruno Haible  <bruno@clisp.org>
4837
4838         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
4839         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
4840
4841 2010-12-31  Bruno Haible  <bruno@clisp.org>
4842
4843         waitpid: Fix link error in C++ mode.
4844         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
4845
4846 2010-12-31  Bruno Haible  <bruno@clisp.org>
4847
4848         isnan: Use GCC built-ins when possible.
4849         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
4850         __builtin_isnan.
4851         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
4852         (isnan): Define using GCC built-ins for GCC >= 4.0.
4853
4854 2010-12-31  Bruno Haible  <bruno@clisp.org>
4855
4856         isnand: Fix mistake.
4857         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
4858         __builtin_isnand.
4859
4860 2010-12-31  Bruno Haible  <bruno@clisp.org>
4861
4862         open: Avoid C++ error on HP-UX 11.
4863         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
4864
4865 2010-12-31  Bruno Haible  <bruno@clisp.org>
4866
4867         time_r: Add missing declarations on HP-UX 11.
4868         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
4869         instead of HAVE_LOCALTIME_R.
4870         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
4871         HAVE_LOCALTIME_R always.
4872         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
4873         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
4874         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
4875         HAVE_LOCALTIME_R.
4876         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
4877         * doc/posix-functions/localtime_r.texi: Likewise.
4878
4879 2010-12-29  Eric Blake  <eblake@redhat.com>
4880
4881         mountlist: tweak previous commit
4882         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
4883         Reported by Paul Eggert.
4884
4885         mountlist: fix local drive detection on cygwin
4886         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
4887         that works for cygwin.
4888
4889 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
4890
4891         ftoastr, snprintf: ftoastr + snprintf module
4892         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
4893         since the snprintf module now should be good enough here.
4894         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
4895         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
4896         and gl_MODULE_INDICATOR([snprintf]), but the former enables
4897         GNULIB_SNPRINTF only for the test directory, and the latter
4898         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
4899         seems to suffice by itself.
4900
4901 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
4902
4903         alloca: one step towards thread-safety
4904         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
4905         need for a static variable.  All callers changed.  This does not
4906         make the alloca replacement thread-safe, but it's one step.
4907
4908         tests: minor indenting change
4909         * tests/init.sh: Sync from coreutils housekeeping patch
4910         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
4911         to keep lines within 80 columns.
4912
4913 2010-12-28  Jim Meyering  <meyering@redhat.com>
4914
4915         regex: don't infloop on persistent failing calloc
4916         * lib/regexec.c (build_trtable): Return failure indication upon
4917         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
4918         In glibc, this was fixed for version 2.13:
4919         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
4920
4921 2010-12-28  Bruno Haible  <bruno@clisp.org>
4922             Paul Eggert <eggert@cs.ucla.edu>
4923
4924         linkat: Make implementation robust against system behaviour variations.
4925         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
4926         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
4927         way, and to -2 if it needs a generic runtime test.
4928         * lib/linkat.c (solaris_optimized_link_immediate,
4929         solaris_optimized_link_follow): New functions.
4930         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
4931         (check_same_link): Use it.
4932
4933 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
4934
4935         New module 'unigbrk/base'.
4936         * modules/unigbrk/base: New file.
4937         * lib/unigbrk.in.h: New file.
4938
4939         New module 'unigbrk/uc-gbrk-prop'.
4940         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
4941         * modules/unigbrk/uc-gbrk-prop: New file.
4942         * lib/unigbrk/gbrkprop.h: New file.
4943         * lib/unigbrk/uc-gbrk-prop.c: New file.
4944
4945         New module 'unigbrk/uc-is-grapheme-break'.
4946         * modules/unigbrk/uc-is-grapheme-break: New file.
4947         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
4948         * lib/unigbrk/uc-is-grapheme-break.c: New file.
4949         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
4950         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
4951         * tests/unigbrk/GraphemeBreakTest.txt: New file.
4952
4953         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
4954
4955 2010-12-27  Bruno Haible  <bruno@clisp.org>
4956
4957         linkat test: Avoid failure on Solaris 11 2010-11.
4958         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
4959
4960 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
4961
4962         utimens: work around glibc rounding bug on more platforms
4963         * lib/utimens.c (fdutimens): Work around rounding bug even if
4964         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
4965         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
4966
4967 2010-12-27  Bruno Haible  <bruno@clisp.org>
4968
4969         select tests: Improve comments.
4970         * tests/test-select.c (do_select): Add comments.
4971
4972 2010-12-27  Bruno Haible  <bruno@clisp.org>
4973
4974         select tests: Safer way of handling timeout.
4975         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
4976         at every invocation.
4977
4978 2010-12-27  Bruno Haible  <bruno@clisp.org>
4979
4980         select tests: Use 'bool' where appropriate.
4981         * tests/test-select.c (connect_to_socket): Change argument type to
4982         'bool'.
4983
4984 2010-12-27  Bruno Haible  <bruno@clisp.org>
4985
4986         select tests: Use existing modules.
4987         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
4988         (configure.ac): Don't test for unistd.h.
4989         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
4990         declared in <unistd.h>.
4991
4992 2010-12-27  Bruno Haible  <bruno@clisp.org>
4993
4994         mbrtowc: Work around a Solaris 7 bug.
4995         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
4996         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
4997         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
4998         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
4999         MBRTOWC_NULL_ARG1_BUG.
5000         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
5001         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
5002         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
5003         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
5004
5005 2010-12-27  Jim Meyering  <meyering@redhat.com>
5006
5007         read-file.c: tweak syntax
5008         * lib/read-file.c (fread_file): Remove space after "*" in function
5009         definitions.
5010
5011 2010-12-27  Bruno Haible  <bruno@clisp.org>
5012
5013         times test: Avoid gcc warnings on OSF/1.
5014         * tests/test-times.c (main): Cast printf arguments from clock_t to
5015         'long int'.
5016
5017 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
5018
5019         utimens: work around glibc rounding bug on older Linux kernels
5020         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
5021         on Linux with a glibc whose utimes might not work, then work
5022         around a longstanding glibc bug involving rounding rather than
5023         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
5024         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
5025
5026 2010-12-26  Bruno Haible  <bruno@clisp.org>
5027
5028         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
5029         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
5030         _GL_CXXALIAS_SYS.
5031         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5032
5033 2010-12-26  Bruno Haible  <bruno@clisp.org>
5034
5035         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
5036         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
5037         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
5038         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
5039         looking for the declaration.
5040         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
5041         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
5042         problem.
5043         * doc/posix-functions/inet_pton.texi: Likewise.
5044
5045 2010-12-26  Bruno Haible  <bruno@clisp.org>
5046
5047         arpa_inet: Use the common idioms with C++ support.
5048         * lib/arpa_inet.in.h: Include c++defs.h.
5049         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
5050         support.
5051         * modules/arpa_inet (Depends-on): Add c++defs.
5052         (Makefile.am): Substitute the contents of c++defs.h.
5053         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
5054         * modules/arpa_inet-c++-tests: New file.
5055         * tests/test-arpa_inet-c++.cc: New file.
5056
5057 2010-12-25  Bruno Haible  <bruno@clisp.org>
5058
5059         Fix more C++ link errors on Solaris 8.
5060         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
5061         $(LIB_EACCESS).
5062         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
5063         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
5064         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
5065         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
5066         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
5067
5068 2010-12-25  Bruno Haible  <bruno@clisp.org>
5069
5070         printf-posix: Fix link error when a non-GCC compiler is used.
5071         * lib/stdio.in.h (printf): When not using GCC, override printf
5072         correctly.
5073         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5074
5075 2010-12-25  Bruno Haible  <bruno@clisp.org>
5076
5077         strerror_r-posix: Update doc.
5078         * doc/posix-functions/strerror_r.texi: Update doc about the return
5079         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
5080
5081 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5082
5083         utimens: simplify the logic of the previous change
5084         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
5085         This should not affect whether the test succeeds or fails.
5086
5087         utimens: configure better on hosts with NFS clock skew
5088         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
5089         uses the clock of the local host.  It might use the clock of the
5090         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
5091         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
5092
5093 2010-12-25  Bruno Haible  <bruno@clisp.org>
5094
5095         ptsname test: Avoid failure on Solaris.
5096         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
5097         open a pseudo-terminal; don't use BSD-style ptys.
5098         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
5099
5100 2010-12-25  Bruno Haible  <bruno@clisp.org>
5101
5102         ptsname: Avoid ERANGE failure on some systems.
5103         * lib/ptsname.c (buffer): Increase size.
5104
5105 2010-12-25  Bruno Haible  <bruno@clisp.org>
5106
5107         rename, renameat: Avoid test failures at NFS mounted locations.
5108         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
5109         so that subsequent mkdir calls succeed.
5110
5111 2010-12-25  Bruno Haible  <bruno@clisp.org>
5112
5113         iswblank: Fix C++ link error on Solaris 8.
5114         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
5115         _GL_FUNCDECL_SYS.
5116
5117 2010-12-25  Bruno Haible  <bruno@clisp.org>
5118
5119         unistd: Fix C++ link error on Solaris 8.
5120         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
5121
5122 2010-12-25  Bruno Haible  <bruno@clisp.org>
5123
5124         readlink doc: Mention an old glibc bug.
5125         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
5126
5127 2010-12-25  Bruno Haible  <bruno@clisp.org>
5128
5129         fcntl-h: Fix for use of C++ on glibc systems.
5130         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
5131         also on glibc systems in C++ mode.
5132         Reported by Gary V. Vaughan <gary@gnu.org>.
5133
5134 2010-12-25  Bruno Haible  <bruno@clisp.org>
5135
5136         roundl-ieee: Make it work on OSF/1 5.1 with cc.
5137         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
5138
5139 2010-12-25  Bruno Haible  <bruno@clisp.org>
5140
5141         truncl-ieee: Make it work on OSF/1 5.1 with cc.
5142         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
5143         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
5144         test whether truncl works according to ISO C 99 with IEC 60559.
5145         * m4/truncl-ieee.m4: New file.
5146         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
5147         m4/signbit.m4.
5148         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
5149
5150 2010-12-25  Bruno Haible  <bruno@clisp.org>
5151
5152         ceill-ieee: Make it work on OSF/1 5.1 with cc.
5153         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
5154         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
5155         test whether ceill works according to ISO C 99 with IEC 60559.
5156         * m4/ceill-ieee.m4: New file.
5157         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
5158         m4/signbit.m4.
5159         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
5160
5161 2010-12-25  Bruno Haible  <bruno@clisp.org>
5162
5163         Ensure all prerequisites of <wchar.h> are included.
5164         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
5165         before <wchar.h>.
5166         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
5167         gl_MBRLEN_NUL_RETVAL): Likewise.
5168         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
5169         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
5170         AC_FUNC_MBRTOWC): Likewise.
5171         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
5172         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
5173         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
5174         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
5175         Likewise.
5176         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5177         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
5178         (gl_WCHAR_H): Improve comments.
5179         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
5180
5181 2010-12-25  Bruno Haible  <bruno@clisp.org>
5182
5183         strtok_r: Fix C syntax error in autoconf macro.
5184         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
5185         characters in test program.
5186
5187 2010-12-24  Bruno Haible  <bruno@clisp.org>
5188
5189         ceil, trunc, round: Fix gcc warnings.
5190         * lib/ceil.c (MIN): Undefine before redefining.
5191         * lib/trunc.c (MIN): Likewise.
5192         * lib/round.c (MIN): Likewise.
5193         Include <math.h> first.
5194
5195 2010-12-24  Bruno Haible  <bruno@clisp.org>
5196
5197         select tests: Avoid failures on OSF/1 5.1.
5198         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
5199         failure of closing the last socket; it may fail with ECONNRESET.
5200
5201 2010-12-24  Eric Blake  <eblake@redhat.com>
5202
5203         stdint: avoid HP-UX 10.20 preprocessor bug
5204         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
5205         than #if.
5206         * tests/test-floor2.c (main): Likewise.
5207         Reported by Peter O'Gorman.
5208
5209         pipe: make obsoletion transition easier
5210         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
5211         * modules/pipe (Files): Include revived file.
5212         (Include): Drop reference, to mirror getdate's behavior.
5213
5214 2010-12-24  Bruno Haible  <bruno@clisp.org>
5215
5216         sys_socket: Hide mismatch of declarations on NonStop Kernel.
5217         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
5218         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
5219         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5220
5221 2010-12-24  Bruno Haible  <bruno@clisp.org>
5222
5223         gethostname: Ensure declaration on NonStop Kernel.
5224         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
5225         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5226
5227 2010-12-24  Bruno Haible  <bruno@clisp.org>
5228
5229         sys_select: Ensure all necessary types on NonStop Kernel.
5230         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
5231         include <sys/time.h>.
5232         * doc/posix-headers/sys_select.texi: Mention that it's missing on
5233         NonStop Kernel.
5234         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5235
5236 2010-12-24  Bruno Haible  <bruno@clisp.org>
5237
5238         sys_select: Remove unneeded include.
5239         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
5240         have <sys/select.h>.
5241
5242 2010-12-24  Bruno Haible  <bruno@clisp.org>
5243
5244         gethostname: Provide a fallback for HOST_NAME_MAX.
5245         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
5246         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
5247         instead.
5248         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5249
5250 2010-12-24  Bruno Haible  <bruno@clisp.org>
5251
5252         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
5253         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
5254         (SA_RESTART): Likewise.
5255         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5256
5257 2010-12-24  Bruno Haible  <bruno@clisp.org>
5258
5259         signal: Define NSIG.
5260         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
5261         * tests/test-signal.c (nsig): New variable.
5262         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5263
5264 2010-12-24  Bruno Haible  <bruno@clisp.org>
5265
5266         rename, renameat: Avoid test failures on OSF/1 5.1.
5267         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
5268         alternative error codes.
5269         * tests/test-renameat.c (main): Likewise.
5270
5271 2010-12-24  Bruno Haible  <bruno@clisp.org>
5272
5273         *printf: Detect large precisions bug on Solaris 10/SPARC.
5274         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
5275         by Paul Eggert.
5276         * tests/test-snprintf-posix.h (test_function): Add this test code here
5277         too.
5278         * tests/test-sprintf-posix.h (test_function): Likewise.
5279         * tests/test-vasnprintf-posix.c (test_function): Likewise.
5280         * tests/test-vasprintf-posix.c (test_function): Likewise.
5281         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
5282         around by gnulib.
5283         * doc/posix-functions/printf.texi: Likewise.
5284         * doc/posix-functions/snprintf.texi: Likewise.
5285         * doc/posix-functions/sprintf.texi: Likewise.
5286         * doc/posix-functions/vfprintf.texi: Likewise.
5287         * doc/posix-functions/vprintf.texi: Likewise.
5288         * doc/posix-functions/vsnprintf.texi: Likewise.
5289         * doc/posix-functions/vsprintf.texi: Likewise.
5290         * doc/posix-functions/dprintf.texi: Undo last commit.
5291         * doc/posix-functions/vdprintf.texi: Likewise.
5292
5293 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
5294
5295         tests: port test-fdutimensat.c to Solaris 8
5296         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
5297         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
5298         On Solaris 8, it fails with errno == ENOSYS, because there is no
5299         futimens (so it can't use the fd), and there is no lutimens (so it
5300         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
5301
5302         vsnprintf: make more consistent with snprintf; doc fixes
5303
5304         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
5305         the byte count return problem was promoted from the snprintf-posix
5306         to the snprintf module.
5307         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
5308         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
5309         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
5310         * tests/test-snprintf.c (main): Check the byte count returned.
5311         * tests/test-vsnprintf.c (main): Likewise.
5312
5313 2010-12-23  Eric Blake  <eblake@redhat.com>
5314
5315         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
5316         * modules/sigpipe (License): Relax license.
5317
5318 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5319
5320         doc: document Solaris printf bug with large float precisions
5321         * doc/posix-functions/dprintf.texi (dprintf):
5322         * doc/posix-functions/fprintf.texi (fprintf):
5323         * doc/posix-functions/printf.texi (printf):
5324         * doc/posix-functions/snprintf.texi (snprintf):
5325         * doc/posix-functions/sprintf.texi (sprintf):
5326         * doc/posix-functions/vdprintf.texi (vdprintf):
5327         * doc/posix-functions/vfprintf.texi (vfprintf):
5328         * doc/posix-functions/vprintf.texi (vprintf):
5329         * doc/posix-functions/vsnprintf.texi (vsnprintf):
5330         * doc/posix-functions/vsprintf.texi (vsprintf):
5331         Mention that these functions mishandle large floating point
5332         precisions on Solaris 10.  The same bug is also present in Solaris
5333         8, and I assume earlier.  This causes "cd gnulib-tests; make
5334         check" to fail on Solaris 8 (and I assume, later) when building
5335         the latest coreutils, in test-vasprintf-posix's call to
5336         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
5337         the wide flavors (e.g., wprintf) so this patch just updates the
5338         documentation for the narrow ones.
5339
5340         test-posixtm.c: add two tests
5341         * tests/test-posixtm.c: Add two tests, to highlight the
5342         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
5343         around this bug; this is merely to document it.
5344
5345 2010-12-22  Bruno Haible  <bruno@clisp.org>
5346
5347         getlogin_r: Work around portability problem on OSF/1.
5348         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
5349         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
5350         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
5351         test for a truncated result.
5352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
5353         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
5354         * modules/getlogin_r (Depends-on): Add memchr.
5355         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
5356
5357 2010-12-22  Bruno Haible  <bruno@clisp.org>
5358
5359         ptsname: Avoid test failure on OSF/1 5.1.
5360         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
5361         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
5362         (same_slave): New function.
5363         (main): Use it to compare ptsname's result with the expected file name.
5364
5365 2010-12-22  Bruno Haible  <bruno@clisp.org>
5366
5367         Port extended stdio modules to HP NonStop Kernel.
5368         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
5369         macros.
5370         * lib/fbufmode.c: Update comments.
5371         * lib/fflush.c: Likewise.
5372         * lib/fpurge.c: Likewise.
5373         * lib/freadable.c: Likewise.
5374         * lib/freadahead.c: Likewise.
5375         * lib/freading.c: Likewise.
5376         * lib/freadptr.c: Likewise.
5377         * lib/freadseek.c: Likewise.
5378         * lib/fseeko.c: Likewise.
5379         * lib/fseterr.c: Likewise.
5380         * lib/fwritable.c: Likewise.
5381         * lib/fwriting.c: Likewise.
5382         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5383
5384 2010-12-22  Bruno Haible  <bruno@clisp.org>
5385
5386         ttyname_r: Work around bug on OSF/1 5.1.
5387         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
5388         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
5389         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
5390         present.
5391         * lib/ttyname_r.c (ttyname_r): Update comments.
5392
5393 2010-12-22  Bruno Haible  <bruno@clisp.org>
5394
5395         round: Implement result sign according to IEEE 754.
5396         * lib/round.c (MIN, MINUS_ZERO): New macros.
5397         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
5398         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
5399         * tests/test-round-ieee.c (main): Likewise.
5400         * tests/test-roundl-ieee.c (main): Likewise.
5401
5402         trunc: Implement result sign according to IEEE 754.
5403         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
5404         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
5405         * tests/test-trunc2.c: Include minus-zero.h.
5406         (MINUS_ZERO): New macro.
5407         (trunc_reference): Keep in sync with lib/trunc.c.
5408         * tests/test-truncf2.c: Include minus-zero.h.
5409         (MINUS_ZERO): New macro.
5410         (truncf_reference): Keep in sync with lib/trunc.c.
5411         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
5412         * tests/test-trunc-ieee.c (main): Likewise.
5413         * tests/test-truncl-ieee.c (main): Likewise.
5414
5415         ceil: Implement result sign according to IEEE 754.
5416         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
5417         (FUNC): Return -0.0 for -1 < x < 0.
5418         * tests/test-ceil2.c: Include minus-zero.h.
5419         (MINUS_ZERO): New macro.
5420         (ceil_reference): Keep in sync with lib/ceil.c.
5421         * tests/test-ceilf2.c: Include minus-zero.h.
5422         (MINUS_ZERO): New macro.
5423         (ceilf_reference): Keep in sync with lib/ceil.c.
5424         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
5425         * tests/test-ceil-ieee.c (main): Likewise.
5426         * tests/test-ceill-ieee.c (main): Likewise.
5427
5428         floor: Implement result sign according to IEEE 754.
5429         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
5430         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
5431         * tests/test-floorf2.c (floorf_reference): Likewise.
5432         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
5433         * tests/test-floor-ieee.c (main): Likewise.
5434         * tests/test-floorl-ieee.c (main): Likewise.
5435
5436 2010-12-22  Bruno Haible  <bruno@clisp.org>
5437
5438         getaddrinfo: Update doc.
5439         * doc/posix-functions/gai_strerror.texi: Return type is also different
5440         on AIX and HP-UX.
5441
5442 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5443
5444         getaddrinfo, inet_ntop: Update doc for Solaris.
5445         * doc/posix-functions/gai_strerror.texi: Return type is also an
5446         issue on Solaris 9 and earlier.
5447         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
5448         on Solaris 10 and earlier.
5449
5450 2010-12-21  Bruno Haible  <bruno@clisp.org>
5451
5452         New module 'roundl-ieee'.
5453         * modules/roundl-ieee: New file.
5454         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
5455         test whether roundl works according to ISO C 99 with IEC 60559.
5456         * m4/roundl-ieee.m4: New file.
5457         * modules/roundl-ieee-tests: New file.
5458         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
5459         * tests/test-roundl.c (main): Remove signbit tests.
5460         * modules/roundl-tests (Depends-on): Remove signbit.
5461         * doc/posix-functions/roundl.texi: Mention the new module.
5462
5463 2010-12-21  Bruno Haible  <bruno@clisp.org>
5464
5465         New module 'truncl-ieee'.
5466         * modules/truncl-ieee: New file.
5467         * modules/truncl-ieee-tests: New file.
5468         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
5469         * tests/test-truncl.c (main): Remove signbit tests.
5470         * modules/truncl-tests (Depends-on): Remove signbit.
5471         * doc/posix-functions/truncl.texi: Mention the new module.
5472
5473 2010-12-21  Bruno Haible  <bruno@clisp.org>
5474
5475         New module 'ceill-ieee'.
5476         * modules/ceill-ieee: New file.
5477         * modules/ceill-ieee-tests: New file.
5478         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
5479         * tests/test-ceill.c (main): Remove signbit tests.
5480         * modules/ceill-tests (Depends-on): Remove signbit.
5481         * doc/posix-functions/ceill.texi: Mention the new module.
5482
5483 2010-12-21  Bruno Haible  <bruno@clisp.org>
5484
5485         New module 'floorl-ieee'.
5486         * modules/floorl-ieee: New file.
5487         * modules/floorl-ieee-tests: New file.
5488         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
5489         * tests/test-floorl.c (main): Remove signbit tests.
5490         * modules/floorl-tests (Depends-on): Remove signbit.
5491         * doc/posix-functions/floorl.texi: Mention the new module.
5492
5493 2010-12-21  Bruno Haible  <bruno@clisp.org>
5494
5495         New module 'round-ieee'.
5496         * modules/round-ieee: New file.
5497         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
5498         whether round works according to ISO C 99 with IEC 60559.
5499         * m4/round-ieee.m4: New file.
5500         * modules/round-ieee-tests: New file.
5501         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
5502         * tests/test-round1.c (main): Remove signbit tests.
5503         * modules/round-tests (Depends-on): Remove 'signbit'.
5504         * doc/posix-functions/round.texi: Mention the new module.
5505
5506 2010-12-21  Bruno Haible  <bruno@clisp.org>
5507
5508         New module 'trunc-ieee'.
5509         * modules/trunc-ieee: New file.
5510         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
5511         whether trunc works according to ISO C 99 with IEC 60559.
5512         * m4/trunc-ieee.m4: New file.
5513         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
5514         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
5515         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
5516         * modules/trunc-ieee-tests: New file.
5517         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
5518         * tests/test-trunc1.c (main): Remove signbit tests.
5519         * modules/trunc-tests (Depends-on): Remove 'signbit'.
5520         * doc/posix-functions/trunc.texi: Mention the new module.
5521
5522 2010-12-21  Bruno Haible  <bruno@clisp.org>
5523
5524         New module 'ceil-ieee'.
5525         * modules/ceil-ieee: New file.
5526         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
5527         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
5528         ISO C 99 with IEC 60559.
5529         * m4/ceil-ieee.m4: New file.
5530         * modules/ceil (Files): Add lib/ceil.c.
5531         (Depends-on): Add 'float'.
5532         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5533         * lib/math.in.h (ceil): New declaration.
5534         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
5535         REPLACE_CEIL.
5536         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
5537         * modules/ceil-ieee-tests: New file.
5538         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
5539         * tests/test-math-c++.cc: Check the signature of 'ceil'.
5540         * doc/posix-functions/ceil.texi: Mention the new module.
5541
5542 2010-12-21  Bruno Haible  <bruno@clisp.org>
5543
5544         New module 'floor-ieee'.
5545         * modules/floor-ieee: New file.
5546         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
5547         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
5548         ISO C 99 with IEC 60559.
5549         * m4/floor-ieee.m4: New file.
5550         * modules/floor (Files): Add lib/floor.c.
5551         (Depends-on): Add 'float'.
5552         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5553         * lib/math.in.h (floor): New declaration.
5554         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
5555         REPLACE_FLOOR.
5556         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
5557         * modules/floor-ieee-tests: New file.
5558         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
5559         * tests/test-math-c++.cc: Check the signature of 'floor'.
5560         * doc/posix-functions/floor.texi: Mention the new module.
5561
5562 2010-12-21  Bruno Haible  <bruno@clisp.org>
5563
5564         New module 'roundf-ieee'.
5565         * modules/roundf-ieee: New file.
5566         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
5567         test whether roundf works according to ISO C 99 with IEC 60559.
5568         * m4/roundf-ieee.m4: New file.
5569         * modules/roundf-ieee-tests: New file.
5570         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
5571         * tests/test-roundf1.c (main): Remove signbit tests.
5572         * modules/roundf-tests (Depends-on): Remove 'signbit'.
5573         * doc/posix-functions/roundf.texi: Mention the new module.
5574
5575 2010-12-21  Bruno Haible  <bruno@clisp.org>
5576
5577         New module 'truncf-ieee'.
5578         * modules/truncf-ieee: New file.
5579         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
5580         test whether truncf works according to ISO C 99 with IEC 60559.
5581         * m4/truncf-ieee.m4: New file.
5582         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
5583         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
5584         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
5585         * modules/truncf-ieee-tests: New file.
5586         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
5587         * tests/test-truncf1.c (main): Remove signbit tests.
5588         * modules/truncf-tests (Depends-on): Remove 'signbit'.
5589         * doc/posix-functions/truncf.texi: Mention the new module.
5590
5591 2010-12-21  Bruno Haible  <bruno@clisp.org>
5592
5593         New module 'ceilf-ieee'.
5594         * modules/ceilf-ieee: New file.
5595         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
5596         test whether ceilf works according to ISO C 99 with IEC 60559.
5597         * m4/ceilf-ieee.m4: New file.
5598         * modules/ceilf-ieee-tests: New file.
5599         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
5600         * tests/test-ceilf1.c (main): Remove signbit tests.
5601         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
5602         * doc/posix-functions/ceilf.texi: Mention the new module.
5603
5604 2010-12-21  Bruno Haible  <bruno@clisp.org>
5605
5606         New module 'floorf-ieee'.
5607         * modules/floorf-ieee: New file.
5608         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
5609         test whether floorf works according to ISO C 99 with IEC 60559.
5610         * m4/floorf-ieee.m4: New file.
5611         * modules/floorf-ieee-tests: New file.
5612         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
5613         * tests/test-floorf1.c (main): Remove signbit tests.
5614         * modules/floorf-tests (Depends-on): Remove 'signbit'.
5615         * doc/posix-functions/floorf.texi: Mention the new module.
5616
5617 2010-12-21  Bruno Haible  <bruno@clisp.org>
5618
5619         Support for minus zero in autoconf macros.
5620         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
5621         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
5622         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
5623         * tests/minus-zero.h: Update comments.
5624
5625 2010-12-21  Bruno Haible  <bruno@clisp.org>
5626
5627         Tests for module 'ceil'.
5628         * modules/ceil-tests: New file.
5629         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
5630         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
5631
5632 2010-12-21  Bruno Haible  <bruno@clisp.org>
5633
5634         Tests for module 'floor'.
5635         * modules/floor-tests: New file.
5636         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
5637         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
5638
5639 2010-12-21  Bruno Haible  <bruno@clisp.org>
5640
5641         math: Fix indentation.
5642         * lib/math.in.h (floorf): Fix indentation.
5643
5644 2010-12-21  Bruno Haible  <bruno@clisp.org>
5645
5646         Fix cross-compilation guesses on Solaris.
5647         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
5648         not match "solaris2.10".
5649         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
5650         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
5651         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
5652
5653 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
5654
5655         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
5656         This fixes a problem observed with the latest coreutils snapshot
5657         that caused a test to fail on Solaris 8.  src/csplit.c's call
5658         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
5659         earlier, instead of returning the number of bytes that would have
5660         been generated; this causes csplit to incorrectly report memory
5661         exhaustion.
5662         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
5663         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
5664         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
5665         comments to match.
5666         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
5667         Fix typo in matching older versions of Solaris: "solaris2.10"
5668         is matched by the shell pattern "solaris2.[0-9]*".  This matters
5669         only for guessing while cross-compiling.
5670         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
5671
5672 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
5673
5674         ftoastr: fix comment again
5675         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
5676         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
5677         Also, simplify example a bit by using flags = 0.
5678
5679 2010-12-20  Bruno Haible  <bruno@clisp.org>
5680
5681         round*, trunc*: Update documentation regarding glibc.
5682         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
5683         * doc/posix-functions/round.texi: Likewise.
5684         * doc/posix-functions/roundl.texi: Likewise.
5685         * doc/posix-functions/truncf.texi: Likewise.
5686         * doc/posix-functions/trunc.texi: Likewise.
5687         * doc/posix-functions/truncl.texi: Likewise.
5688
5689 2010-12-20  Bruno Haible  <bruno@clisp.org>
5690
5691         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
5692         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
5693         * doc/posix-functions/round.texi: Likewise.
5694         * doc/posix-functions/roundl.texi: Likewise.
5695
5696 2010-12-20  Bruno Haible  <bruno@clisp.org>
5697
5698         ttyname_r: Add missing declaration on HP-UX 11.
5699         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
5700         HAVE_TTYNAME_R.
5701         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
5702         declared. Set HAVE_TTYNAME_R always.
5703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5704         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
5705         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
5706         HAVE_TTYNAME_R.
5707         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
5708
5709 2010-12-20  Bruno Haible  <bruno@clisp.org>
5710
5711         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
5712         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
5713         * doc/posix-functions/getlogin_r.texi: Likewise.
5714         * tests/test-getlogin.c: Include <errno.h>.
5715         (main): Avoid test failure on HP-UX 11.11.
5716         * tests/test-getlogin_r.c (main): Likewise.
5717
5718 2010-12-20  Bruno Haible  <bruno@clisp.org>
5719
5720         getlogin_r: Add missing declaration on HP-UX 11.
5721         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
5722         declared also when it exists as a function.
5723         * doc/posix-functions/getlogin_r.texi: Document this workaround.
5724
5725 2010-12-20  Bruno Haible  <bruno@clisp.org>
5726
5727         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
5728         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
5729         through wcrtomb.
5730
5731 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
5732
5733         ftoastr: fix comment
5734         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
5735         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
5736
5737 2010-12-19  Bruno Haible  <bruno@clisp.org>
5738
5739         isnan: Ensure it is a macro.
5740         * lib/math.in.h (isnan): Define as a macro if not already a macro.
5741         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
5742         Solaris.
5743
5744 2010-12-19  Bruno Haible  <bruno@clisp.org>
5745
5746         ldexpl test: Fix link error on OSF/1 5.1.
5747         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
5748
5749 2010-12-19  Bruno Haible  <bruno@clisp.org>
5750
5751         wctype: Make it work in C++ mode on OSF/1 5.1.
5752         * lib/wctype.in.h (iswblank): Declare but not define here.
5753         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
5754         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
5755         * modules/wctype (Files): Add lib/iswblank.c.
5756
5757 2010-12-19  Bruno Haible  <bruno@clisp.org>
5758
5759         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
5760         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
5761         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
5762
5763 2010-12-19  Bruno Haible  <bruno@clisp.org>
5764
5765         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
5766         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
5767         _POSIX_PII_SOCKET.
5768         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
5769         * doc/posix-functions/recvfrom.texi: Likewise.
5770         * doc/posix-functions/send.texi: Likewise.
5771         * doc/posix-functions/sendto.texi: Likewise.
5772
5773 2010-12-19  Bruno Haible  <bruno@clisp.org>
5774
5775         tcgetsid: Add missing declaration on OSF/1 5.1.
5776         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
5777         HAVE_TCGETSID.
5778         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
5779         Don't set HAVE_TCGETSID.
5780         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
5781         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
5782         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
5783         HAVE_TCGETSID.
5784         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
5785
5786 2010-12-19  Bruno Haible  <bruno@clisp.org>
5787
5788         stdio: Fix problem with popen() declaration on OSF/1 5.1.
5789         * lib/stdio.in.h: During the include_next statement, let recursive
5790         includes of this file include only the system header file.
5791
5792 2010-12-19  Bruno Haible  <bruno@clisp.org>
5793
5794         iconv_open: Fix regression from 2010-12-04.
5795         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
5796         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
5797
5798 2010-12-19  Bruno Haible  <bruno@clisp.org>
5799
5800         stdbool test: Avoid a gcc warning.
5801         * tests/test-stdbool.c (main): Fail if e1 is false.
5802         Reported by Jim Meyering.
5803
5804 2010-12-19  Jim Meyering  <meyering@redhat.com>
5805
5806         setenv: restore to working order
5807         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
5808         mistakenly removed.
5809         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
5810         HAVE_SETENV.
5811         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
5812         HAVE_SETENV.
5813
5814 2010-12-19  Bruno Haible  <bruno@clisp.org>
5815
5816         Document some different function declarations on OSF/1 5.1.
5817         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
5818         * doc/posix-functions/inet_ntop.texi: Likewise.
5819         * doc/posix-functions/gethostname.texi: Likewise.
5820         * lib/unistd.in.h (gethostname): Update comment.
5821
5822 2010-12-19  Bruno Haible  <bruno@clisp.org>
5823
5824         doc: Mention vasprintf-posix module.
5825         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
5826         the 'vasprintf-posix' module.
5827         * doc/glibc-functions/vasprintf.texi: Likewise.
5828
5829 2010-12-19  Bruno Haible  <bruno@clisp.org>
5830
5831         unsetenv: Add missing declaration on OSF/1 5.1.
5832         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
5833         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
5834         Don't set HAVE_UNSETENV. In the test program, set _BSD.
5835         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
5836         not HAVE_UNSETENV.
5837         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
5838         HAVE_UNSETENV.
5839         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
5840
5841 2010-12-19  Bruno Haible  <bruno@clisp.org>
5842
5843         setenv: Add missing declaration on OSF/1 5.1.
5844         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
5845         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
5846         declared. Don't set HAVE_SETENV.
5847         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
5848         not HAVE_SETENV.
5849         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
5850         HAVE_SETENV.
5851         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
5852
5853 2010-12-19  Bruno Haible  <bruno@clisp.org>
5854
5855         nl_langinfo tests: Avoid gcc warning.
5856         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
5857
5858 2010-12-19  Bruno Haible  <bruno@clisp.org>
5859
5860         mknod: Avoid error in C++ mode on OSF/1 with GCC.
5861         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
5862         _GL_CXXALIAS_SYS.
5863
5864 2010-12-19  Bruno Haible  <bruno@clisp.org>
5865
5866         stdbool: Relax test.
5867         * tests/test-stdbool.c (e): Don't require that casts from a variable's
5868         address to 'bool' work in static initializer, for compilers other than
5869         GCC.
5870
5871 2010-12-19  Bruno Haible  <bruno@clisp.org>
5872
5873         ftello: Add missing declaration on OSF/1 5.1.
5874         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
5875         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
5876         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
5877         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
5878         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
5879
5880 2010-12-19  Bruno Haible  <bruno@clisp.org>
5881
5882         fseeko: Add missing declaration on OSF/1 5.1.
5883         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
5884         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
5885         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
5886         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
5887         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
5888
5889 2010-12-19  Bruno Haible  <bruno@clisp.org>
5890
5891         fchdir: Add missing declaration on OSF/1 5.1.
5892         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
5893         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
5894         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
5895         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
5896         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
5897
5898 2010-12-19  Bruno Haible  <bruno@clisp.org>
5899
5900         relocatable-prog-wrapper: Separate from relocatable-prog.
5901         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
5902         uninstall-relocwrapper rule here.
5903         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
5904         Reported by Ian Beckwith <ianb@erislabs.net>.
5905
5906 2010-12-19  Bruno Haible  <bruno@clisp.org>
5907
5908         unistr/u8-mbsnlen: Add missing dependency.
5909         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
5910         Reported by Ian Beckwith <ianb@erislabs.net>.
5911
5912 2010-12-19  Bruno Haible  <bruno@clisp.org>
5913
5914         iconv: Make it possible again to use this module without 'iconv-h'.
5915         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
5916         if it is not defined.
5917         Reported by Ian Beckwith <ianb@erislabs.net>.
5918
5919 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5920
5921         acl: port to Solaris 8 when copying from tmpfs to ufs
5922         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
5923         error number.  Problem observed on Solaris 8 with latest
5924         coreutils, with "mv A B", where A is on a tmpfs file system and B
5925         is on a ufs file system.  This caused coreutils' mv/part-symlink
5926         test to fail.
5927
5928         tests: set fail=0 at start
5929         * tests/init.sh (setup_): Move fail=0 initialization here ...
5930         (mktempd_): ... from here, so that tests can rely on fail being
5931         set to 0 initially.  This fixes a problem in coreutils; see:
5932         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
5933
5934 2010-12-18  Bruno Haible  <bruno@clisp.org>
5935
5936         memmem-simple: Stylistic changes.
5937         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
5938         Fix preprocessor directive indentation.
5939
5940 2010-12-15  Pádraig Brady <P@draigBrady.com>
5941
5942         memmem, memmem-simple: reorganize and expand empty needle check
5943         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
5944         functional checks to memmem-simple so that one has a fully functional
5945         memmem by using just this module.
5946         Restrict the performance only check to the memmem module.
5947         Also expand the empty needle check to ensure the correct
5948         pointer is returned, not just a non NULL pointer.
5949         * doc/glibc-functions/memmem.texi: Rearrange the portability
5950         documentation to correlate with the rearranged checks.
5951         Clarify exactly how the memmem and memmem-simple modules
5952         relate to each other.
5953
5954 2010-12-15  Pádraig Brady <P@draigBrady.com>
5955             Bruno Haible  <bruno@clisp.org>
5956
5957         Improve cross-compilation guesses for uClibc.
5958         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
5959         that uClibc does not have the glibc bug.
5960         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
5961         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
5962
5963 2010-12-14  Eric Blake  <eblake@redhat.com>
5964
5965         configmake: provide fallbacks for oldest supported autotools
5966         * m4/configmake.m4: New file.
5967         * modules/configmake (Files): Ship it.
5968         (configure.ac): Use it to guarantee fallbacks.
5969
5970 2010-12-13  Pádraig Brady <P@draigBrady.com>
5971
5972         read-file: Improve handling of large files
5973         * lib/read-file.c (fread_file): Minimize realloc()s
5974         for regular files, and better manage sizes around SIZE_MAX.
5975
5976 2010-12-13  Eric Blake  <eblake@redhat.com>
5977
5978         cloexec, fcntl: relax license
5979         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
5980         consent from all contributors.
5981         * modules/fcntl (License): Likewise.
5982
5983 2010-12-10  Bruno Haible  <bruno@clisp.org>
5984
5985         Tests for module 'pipe-posix'.
5986         * modules/pipe-posix-tests: New file.
5987         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
5988
5989 2010-12-10  Bruno Haible  <bruno@clisp.org>
5990
5991         pipe-posix: Make it work in C++ mode.
5992         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
5993         (pipe): Use common idiom, not a macro definition.
5994         * lib/pipe.c: New file.
5995         * m4/pipe.m4: New file.
5996         * modules/pipe-posix (Description): Enhance.
5997         (Files): Add lib/pipe.c, m4/pipe.m4.
5998         (configure.ac): Invoke gl_FUNC_PIPE.
5999         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
6000         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
6001         * tests/test-unistd-c++.cc: Check the signature of pipe.
6002
6003 2010-12-10  Bruno Haible  <bruno@clisp.org>
6004
6005         Rename module 'pipe' to 'spawn-pipe'.
6006         * modules/spawn-pipe: New file, renamed from modules/pipe.
6007         (Files, configure.ac, Makefile.am): Update.
6008         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
6009         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
6010         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
6011         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
6012         "spawn-pipe.h" instead of "pipe.h".
6013         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
6014         to gl_SPAWN_PIPE.
6015         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
6016         (Files, Makefile.am): Update.
6017         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
6018         Update.
6019         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
6020         Include "spawn-pipe.h" instead of "pipe.h".
6021         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
6022         * lib/javacomp.c: Likewise.
6023         * lib/javaversion.c: Likewise.
6024         * lib/pipe-filter-gi.c: Likewise.
6025         * lib/pipe-filter-ii.c: Likewise.
6026         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
6027         * modules/javacomp (Depends-on): Likewise.
6028         * modules/javaversion (Depends-on): Likewise.
6029         * modules/pipe-filter-gi (Depends-on): Likewise.
6030         * modules/pipe-filter-ii (Depends-on): Likewise.
6031         * MODULES.html.sh (Executing programs): Update.
6032         * NEWS: Mention the change.
6033
6034 2010-12-10  Eric Blake  <eblake@redhat.com>
6035
6036         pipe-posix: new module
6037         * modules/pipe-posix: New file.
6038         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
6039         (gl_UNISTD_H): Check for declaration.
6040         * modules/unistd (Makefile.am): Substitute it.
6041         * lib/unistd.in.h (pipe): Provide it for mingw.
6042         * doc/posix-functions/pipe.texi (pipe): Update documentation.
6043         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
6044
6045 2010-12-07  Bruno Haible  <bruno@clisp.org>
6046
6047         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
6048         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
6049         u8_strcmp_gnu.
6050         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
6051
6052 2010-12-06  Bruno Haible  <bruno@clisp.org>
6053
6054         Update internal documentation.
6055         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
6056
6057 2010-12-04  Bruno Haible  <bruno@clisp.org>
6058
6059         Put more information about failed tests into the test return codes.
6060         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
6061         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
6062         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6063         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6064         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
6065         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6066         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6067         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
6068         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
6069         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6070         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
6071         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6072         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6073         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6074         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
6075         returns a bit mask.
6076         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
6077         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
6078         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
6079         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
6080         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6081         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
6082         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
6083         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
6084         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
6085         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
6086         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
6087         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
6088         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6089         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
6090         * m4/link.m4 (gl_FUNC_LINK): Likewise.
6091         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
6092         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
6093         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
6094         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6095         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
6096         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
6097         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
6098         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
6099         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
6100         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
6101         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
6102         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
6103         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
6104         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
6105         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
6106         gl_PRINTF_PRECISION): Likewise.
6107         * m4/regex.m4 (gl_REGEX): Likewise.
6108         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
6109         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6110         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
6111         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
6112         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6113         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6114         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
6115         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
6116         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
6117         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6118         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
6119         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
6120         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
6121         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6122         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6123         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6124         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
6125         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6126         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6127         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
6128         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
6129         enumerated value.
6130         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
6131
6132 2010-12-04  Bruno Haible  <bruno@clisp.org>
6133
6134         Update for Solaris 11 2010-11.
6135         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
6136         Express, released in November 2010.
6137
6138 2010-12-04  Bruno Haible  <bruno@clisp.org>
6139
6140         nproc: Relax license.
6141         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
6142         and Paul Eggert.
6143         Requested by Ludovic Courtès <ludo@gnu.org>.
6144
6145 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
6146
6147         utimecmp: fine-grained src to nearby coarse-grained dest
6148
6149         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
6150         and the source is on a file system with higher-resolution time
6151         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
6152         not work, and the time stamps are close together, the algorithm to
6153         determine the exact resolution from the read-back mtime was buggy:
6154         it had a "!=" where it should have had an "==".  This bug has been
6155         in the code ever since it was introduced to gnulib.
6156         Problem reported by Dan Jacobson in
6157         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
6158
6159 2010-11-30  Bruno Haible  <bruno@clisp.org>
6160
6161         strerror_r-posix: Fix autoconf test.
6162         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
6163
6164 2010-11-28  Bruno Haible  <bruno@clisp.org>
6165             Paul Eggert  <eggert@cs.ucla.edu>
6166
6167         Tests for module 'getdomainname'.
6168         * modules/getdomainname-tests: New file.
6169         * tests/test-getdomainname.c: New file, based on
6170         tests/test-gethostname.c.
6171
6172 2010-11-28  Bruno Haible  <bruno@clisp.org>
6173             Paul Eggert  <eggert@cs.ucla.edu>
6174
6175         getdomainname: Use the system function when possible.
6176         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
6177         (getdomainname): Replace if needed. Provide the declaration if it is
6178         missing. Don't use _GL_CXXALIAS_SYS_CAST.
6179         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
6180         (getdomainname): When the system has getdomainname, call the system
6181         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
6182         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
6183         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
6184         found in libnsl. Look for the declaration also in <netdb.h>. Replace
6185         the function if its second argument is of type 'int' or if it is found
6186         in libnsl.
6187         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
6188         <sys/systeminfo.h> and sysinfo().
6189         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
6190         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6191         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
6192         HAVE_GETDOMAINNAME.
6193         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
6194         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
6195         * doc/glibc-functions/getdomainname.texi: Document the problems with
6196         the getdomainname declaration.
6197
6198 2010-11-28  Bruno Haible  <bruno@clisp.org>
6199
6200         sys_socket: Ensure ss_family field on AIX.
6201         * lib/sys_socket.in.h (ss_family): New macro definition.
6202         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
6203         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
6204         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
6205         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
6206         * modules/sys_socket (Makefile.am): Substitute
6207         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
6208         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
6209
6210 2010-11-27  Bruno Haible  <bruno@clisp.org>
6211
6212         readline: Improve configure output.
6213         * m4/readline.m4 (gl_FUNC_READLINE): Make the
6214         "checking for readline..." result understandable.
6215
6216 2010-11-27  Bruno Haible  <bruno@clisp.org>
6217
6218         *printf-posix: Detect a bug on Solaris 10/x86.
6219         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
6220         for floating-point output.
6221         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
6222         directive.
6223         * tests/test-snprintf-posix.h (test_function): Likewise.
6224         * tests/test-sprintf-posix.h (test_function): Likewise.
6225         * tests/test-vasprintf-posix.c (test_function): Likewise.
6226         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
6227         * doc/posix-functions/printf.texi: Likewise.
6228         * doc/posix-functions/snprintf.texi: Likewise.
6229         * doc/posix-functions/sprintf.texi: Likewise.
6230         * doc/posix-functions/vfprintf.texi: Likewise.
6231         * doc/posix-functions/vprintf.texi: Likewise.
6232         * doc/posix-functions/vsnprintf.texi: Likewise.
6233         * doc/posix-functions/vsprintf.texi: Likewise.
6234         * doc/glibc-functions/obstack_printf.texi: Likewise.
6235         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
6236
6237 2010-11-27  Bruno Haible  <bruno@clisp.org>
6238
6239         Fix link error when module libunistring-optional is in use.
6240         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
6241         * modules/striconveha-tests (Makefile.am): Likewise.
6242
6243 2010-11-27  Bruno Haible  <bruno@clisp.org>
6244
6245         regex: Mention link dependencies.
6246         * modules/regex (Link): New section.
6247         * modules/rpmatch (Link): Likewise.
6248         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
6249
6250 2010-11-27  Bruno Haible  <bruno@clisp.org>
6251
6252         ftoastr: Fix compilation error on Solaris.
6253         * lib/ftoastr.c: Include <config.h>.
6254
6255 2010-11-27  Bruno Haible  <bruno@clisp.org>
6256
6257         getloadavg: Update documentation.
6258         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
6259
6260 2010-11-27  Bruno Haible  <bruno@clisp.org>
6261
6262         sys_socket: Fix test whether the functions are declared.
6263         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
6264         not <sys/select.h>.
6265
6266 2010-11-27  Bruno Haible  <bruno@clisp.org>
6267
6268         getpass: Make sure to get system declaration on some platforms.
6269         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
6270         gl_USE_SYSTEM_EXTENSIONS.
6271         * modules/getpass (Depends-on): Add extensions.
6272
6273 2010-11-26  Bruno Haible  <bruno@clisp.org>
6274
6275         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
6276         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
6277         'iconv' module is present.
6278         (ICONV_CONST): New macro.
6279         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
6280         ICONV_CONST.
6281         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
6282         set ICONV_CONST.
6283         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
6284         here.
6285         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
6286         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
6287         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
6288         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
6289         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
6290         present.
6291
6292 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
6293
6294         ftoastr: comment fix
6295         * lib/ftoastr.c: "little" -> "little or no" in comment
6296
6297 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
6298
6299         stdint: port to GCC 4.3 + OSX + Octave
6300         On this platform, stdint.h is buggy and defines int64_t to long
6301         long int.  The replacement defined it to long int, causing
6302         problems with C++ style name mangling.  Instead, trust the system
6303         definition if INT64_MAX is defined, and likewise for the unsigned
6304         variant.   Problem reported by Jarno Rajahalme in
6305         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
6306         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
6307         and don't mess with int64_t and INT64_MAX in this case.
6308         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
6309
6310 2010-11-24  Bruno Haible  <bruno@clisp.org>
6311
6312         doc: Corrections regarding MacOS X 10.4 and 10.5.
6313         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
6314         MacOS X.
6315         Reported by Simon Josefsson.
6316
6317 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
6318
6319         Uninstall ".bin" files installed by relocwrapper.
6320         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
6321         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
6322         unless it is already there.
6323
6324 2010-11-21  Bruno Haible  <bruno@clisp.org>
6325
6326         Update for NetBSD 5.0.
6327         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
6328         NetBSD; the test fails on NetBSD 5.0.
6329         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
6330         about NetBSD.
6331
6332 2010-11-21  Bruno Haible  <bruno@clisp.org>
6333
6334         Update for HP-UX 11.23 and HP-UX 11.31.
6335         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
6336         HP-UX.
6337
6338 2010-11-21  Bruno Haible  <bruno@clisp.org>
6339
6340         Update for MacOS X 10.5.
6341         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
6342         MacOS X; the test fails on MacOS X 10.5.8.
6343         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
6344         about MacOS X.
6345
6346 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
6347
6348         bootstrap: add bootstrap_sync option.
6349         See discussion at
6350         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
6351         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
6352         * build-aux/bootstrap: Accept --bootstrap-sync to update
6353         bootstrap if it is not identical to the local gnulib's
6354         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
6355         enable this by default.  Accept --no-bootstrap-sync to disable
6356         it.
6357
6358 2010-11-20  Bruno Haible  <bruno@clisp.org>
6359
6360         Ensure that <features.h> is included before __GLIBC__ is tested.
6361         * lib/printf-parse.h: Include <features.h>.
6362         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
6363         Reported by Mike Frysinger <vapier@gentoo.org>.
6364
6365         Ensure that <features.h> is included before __GLIBC__ is tested.
6366         * lib/wchar.in.h: Include <features.h>.
6367         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
6368         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
6369         Reported by Mike Frysinger <vapier@gentoo.org>.
6370
6371         Ensure that <features.h> is included before __GLIBC__ is tested.
6372         * lib/arpa_inet.in.h: Include <features.h>.
6373         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
6374         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
6375         Reported by Mike Frysinger <vapier@gentoo.org>.
6376
6377         Ensure that <features.h> is included before __GLIBC__ is tested.
6378         * build-aux/link-warning.h: Include <features.h>.
6379         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
6380         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
6381         Reported by Mike Frysinger <vapier@gentoo.org>.
6382
6383         Ensure that <features.h> is included before __GLIBC__ is tested.
6384         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
6385         Reported by Mike Frysinger <vapier@gentoo.org>.
6386
6387 2010-11-20  Bruno Haible  <bruno@clisp.org>
6388
6389         memmem: Fix autoconf test.
6390         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
6391
6392 2010-11-20  Bruno Haible  <bruno@clisp.org>
6393
6394         Port to uClibc.
6395         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
6396         * lib/fcntl.in.h: Likewise.
6397         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
6398         * lib/mbrtowc.c (mbrtowc): Likewise.
6399         * lib/relocatable.c (find_shared_library_fullname): Likewise.
6400         * lib/strerror_r.c: Likewise.
6401         * lib/unistr/u8-strnlen.c: Likewise.
6402         * lib/vasnprintf.c (decimal_point_char): Likewise.
6403         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
6404         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
6405         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
6406         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
6407         * tests/test-sigaction.c (handler, main): Likewise.
6408         * lib/freading.h: Treat uClibc like a non-glibc platform.
6409         * lib/freading.c: Likewise.
6410         * lib/gettext.h: Likewise.
6411         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
6412         Likewise.
6413         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
6414         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
6415         * lib/propername.c (proper_name_utf8): Likewise.
6416         * lib/spawn.in.h: Likewise.
6417         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
6418         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
6419         mem_cd_iconveh_internal): Likewise.
6420         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
6421         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
6422         strstr, strcasestr): Likewise.
6423         * lib/unicodeio.c (unicode_to_mb): Likewise.
6424         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
6425         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
6426         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
6427         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
6428         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
6429         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
6430         * lib/unistr/u8-stpncpy.c: Likewise.
6431         * lib/vasnprintf.c (VASNPRINTF): Likewise.
6432         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
6433         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6434         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6435         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
6436         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
6437         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
6438         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
6439         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
6440         Likewise.
6441         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
6442         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6443         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
6444         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6445         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6446         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6447         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6448         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
6449         * tests/test-getopt.h (OPTIND_MIN): Likewise.
6450         * tests/test-striconveha.c (main): Likewise.
6451         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6452         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
6453         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
6454         * doc/posix-functions/getline.texi: Likewise.
6455         Reported by Mike Frysinger <vapier@gentoo.org>.
6456
6457 2010-11-20  Bruno Haible  <bruno@clisp.org>
6458
6459         nproc: Fix condition.
6460         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
6461         HAVE_PTHREAD_AFFINITY_NP.
6462
6463 2010-11-20  Bruno Haible  <bruno@clisp.org>
6464
6465         Fix a comment.
6466         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
6467
6468 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
6469
6470         ftoastr: don't assume snprintf
6471         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
6472         Implement a subset of snprintf here, by using sprintf safely.
6473         * modules/ftoastr (Depends-on): Remove snprintf.
6474
6475 2010-11-19  Jim Meyering  <meyering@redhat.com>
6476
6477         test-rename.h: fix compilation failure
6478         * tests/test-rename.h (test_rename): Add omitted "}".
6479
6480 2010-11-17  Jim Meyering  <meyering@redhat.com>
6481
6482         maint.mk: add a URL discussing the no-@acronym policy
6483         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
6484
6485 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
6486
6487         ftoastr: depend on snprintf, improve comments
6488         * lib/ftoastr.c: Also mention Loitsch's draft.
6489         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
6490         needed in the current implementation, but it might simplify
6491         speeding up the code later.
6492         * modules/ftoastr: Depend on snprintf; this improves portability.
6493         Suggested by Bruno Haible in the same email.
6494
6495         ftoastr: port to hosts lacking strtof and strtold
6496         Problem reported by Bruno Haible in
6497         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
6498         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
6499         environment and strtold (and presumably strtof) are not available.
6500         * modules/ftoastr (Files): Add m4/c-strtod.m4.
6501         (configure.ac): Require gl_C99_STRTOLD.
6502
6503 2010-11-18  Bruno Haible  <bruno@clisp.org>
6504
6505         c-strtold: Avoid link error on AIX 7.
6506         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
6507         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
6508         (gl_C_STRTOLD): Test whether strtold_l exists.
6509         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6510
6511 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6512
6513         intprops: new macro INT_BITS_STRLEN_BOUND
6514         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
6515         ftoastr.h.  This exposes an internal of intprops.h that was formerly
6516         not exposed.  Also, it uses a slightly tighter bound than before;
6517         though this makes no practical difference, we might as well be as
6518         tight as we easily can.
6519
6520         ftoastr: new module, for lossless conversion of floats to short strings
6521         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
6522         * modules/ftoastr: New files.
6523
6524 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
6525
6526         bootstrap: port to Solaris sed
6527         * build-aux/bootstrap (get_version): Port to Solaris sed.
6528         See Ralf Wildenhues's note in
6529         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
6530
6531 2010-11-14  Jim Meyering  <meyering@redhat.com>
6532
6533         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
6534         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
6535         and move definition closer to sole use.
6536
6537 2010-11-13  Jim Meyering  <meyering@redhat.com>
6538
6539         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
6540         Now we require at least autoconf-2.59, which means the work-around
6541         is no longer needed.
6542         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
6543         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6544         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
6545         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
6546         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
6547
6548 2010-11-13  Bruno Haible  <bruno@clisp.org>
6549
6550         rename, renameat: Avoid test failures at NFS mounted locations.
6551         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
6552         functions.
6553         (test_rename): Use assert_nonexistent.
6554         * tests/test-rename.c: Include <dirent.h>.
6555         * tests/test-renameat.c: Likewise.
6556         Reported by Gary V. Vaughan <gary@gnu.org>.
6557
6558         rename, renameat: Document Linux bug with NFS
6559         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
6560         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
6561         * doc/posix-functions/renameat.texi: Likewise.
6562         Suggested by Eric Blake.
6563
6564 2010-11-13  Bruno Haible  <bruno@clisp.org>
6565
6566         rename test: Add comments.
6567         * tests/test-rename.h (test_rename): Add structure and comments.
6568
6569 2010-11-13  Eric Blake  <eblake@redhat.com>
6570
6571         maintainer-makefile: cover a few more files
6572         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
6573         scripts generated within C files, for libvirt.
6574
6575 2010-11-13  Bruno Haible  <bruno@clisp.org>
6576
6577         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
6578         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
6579         character, return the number of bytes that belong together, not always
6580         1.
6581         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
6582         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
6583         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
6584         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
6585         number of bytes of an invalid character.
6586         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
6587         (main): Invoke it.
6588         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
6589         results.
6590         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
6591         malformed byte sequences.
6592         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
6593         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
6594         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
6595         Reported by Ben Pfaff and Paolo Bonzini.
6596
6597 2010-11-13  Bruno Haible  <bruno@clisp.org>
6598
6599         openat: Work around glibc bug with fchownat() and empty file names.
6600         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
6601         (gl_FUNC_FCHOWNAT): Invoke it.
6602         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
6603         * doc/posix-functions/fchownat.texi: Document the glibc bug.
6604         Reported by Gary V. Vaughan <gary@gnu.org>.
6605
6606 2010-11-13  Bruno Haible  <bruno@clisp.org>
6607
6608         openat: Ensure autoconf macro ordering.
6609         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
6610         gl_USE_SYSTEM_EXTENSIONS.
6611         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
6612
6613 2010-11-13  Bruno Haible  <bruno@clisp.org>
6614
6615         Update comments.
6616         * lib/unistr/u8-check.c: Update file name in comments.
6617         * lib/unistr/u8-mblen.c: Likewise.
6618         * lib/unistr/u8-prev.c: Likewise.
6619         * lib/unistr/u8-strmblen.c: Likewise.
6620         * lib/unistr/u8-strmbtouc.c: Likewise.
6621
6622 2010-11-13  Jim Meyering  <meyering@redhat.com>
6623
6624         tests: avoid test failure on Solaris 10 due to lack of PATH export
6625         * tests/test-update-copyright.sh: Don't forget to export PATH.
6626
6627         init.sh: ensure that IFS is defined, just in case...
6628         * tests/init.sh (setup_): Ensure that IFS is defined,
6629         so that saving and restoring it works as expected.  This
6630         appears to be useful at least for an old version of dash
6631         from a long time ago (RH 6).  See here for details:
6632         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
6633
6634         maint.mk: tighten "test a == b" check
6635         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
6636         test to files that contain something like #!/bin/sh.
6637         Without this, coreutils would get two false positives in
6638         the comments of C source files.
6639
6640 2010-11-12  Eric Blake  <eblake@redhat.com>
6641
6642         bootstrap: fix typo in previous attempt
6643         * build-aux/bootstrap (buildreq): Correct the grouping.
6644         Reported by Paul Eggert.
6645
6646         maintainer-makefile: prohibit test x == x
6647         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
6648         Based on a report by Matthias Bolte.
6649
6650         bootstrap: allow FreeBSD gzip
6651         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
6652         which has no '.' and goes to stderr.
6653         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
6654         Reported by Matthias Bolte.
6655
6656         maintainer-makefile: check for i18n setup
6657         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
6658         will likely work.
6659
6660 2010-11-12  Bruno Haible  <bruno@clisp.org>
6661
6662         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
6663         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
6664         * lib/nanosleep.c (nanosleep): Likewise.
6665
6666 2010-11-11  Bruno Haible  <bruno@clisp.org>
6667
6668         fcntl-h: Fix for use of C++ on glibc systems.
6669         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
6670         also on glibc systems in C++ mode.
6671         Reported by Gary V. Vaughan <gary@gnu.org>.
6672
6673 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
6674
6675         mknod: avoid false failure with dash
6676         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
6677
6678 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
6679
6680         unlink: Fix "is it should" typo in diagnostic.
6681         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
6682         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
6683
6684 2010-11-11  Bruno Haible  <bruno@clisp.org>
6685
6686         Tests for module 'strerror_r-posix'.
6687         * modules/strerror_r-posix-tests: New file.
6688         * tests/test-strerror_r.c: New file.
6689         * tests/test-string-c++.cc: Check the signature of strerror_r.
6690
6691         New module 'strerror_r-posix'.
6692         * lib/string.in.h (strerror_r): New declaration.
6693         * lib/strerror_r.c: New file.
6694         * m4/strerror_r.m4: New file.
6695         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
6696         of strerror_r.
6697         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
6698         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
6699         * modules/strerror_r-posix: New file.
6700         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
6701         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
6702         * doc/posix-functions/strerror_r.texi: Mention the new module and the
6703         portability problems.
6704
6705 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
6706
6707         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
6708         line is also considered for output. Quoted function name in shell
6709         command, so temporary files for functions like MyClass::operator()
6710         are removed correctly without errors.
6711
6712 2010-11-09  Bruno Haible  <bruno@clisp.org>
6713
6714         * doc/posix-functions/strerror.texi: List more failing platforms.
6715
6716         * doc/posix-functions/strerror.texi: Add a comment.
6717
6718 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
6719
6720         fdopendir: fix bug on MacOS X when low on file descriptors
6721
6722         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
6723         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
6724         All callers changed.
6725         (fdopendir): Invoke save_cwd at the top level, not after using
6726         multiple dup() calls to use up file descriptors.  Then retry
6727         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
6728         less than the maximum number of open file descriptors, because
6729         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
6730         on Mac OS X 10.6.4 for tar 1.24
6731         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
6732         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
6733         and for tar 1.25
6734         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
6735
6736 2010-11-07  Bruno Haible  <bruno@clisp.org>
6737
6738         vasnprintf: Support I flag on glibc systems.
6739         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
6740         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
6741         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
6742         snprintf function.
6743         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
6744         glibc systems.
6745         * tests/test-vasnprintf-posix3.c: New file.
6746         * modules/vasnprintf-posix-tests (Files): Add it.
6747         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
6748
6749 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
6750
6751         [html] Fix copy/paste bug: Use unique name for compiler warnings.
6752         * MODULES.html.sh: For compiler warnings, use name
6753         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
6754
6755 2010-11-05  Eric Blake  <eblake@redhat.com>
6756
6757         ceil, floor: avoid spurious failure with icc
6758         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
6759         [denormals-as-zero] when optimizing without -mieee-fp option.
6760         * tests/test-floorf2.c (floorf_reference): Likewise.
6761         * tests/test-ceilf1.c (dummy): New function.
6762         (main): Use it to outsmart icc's optimization.
6763         * tests/test-floorf1.c (dummy, main): Likewise.
6764
6765         tests: require working signbit
6766         * modules/ceilf-tests (Depends-on): Add signbit.
6767         * modules/ceill-tests (Depends-on): Likewise.
6768         * modules/floorf-tests (Depends-on): Likewise.
6769         * modules/floorl-tests (Depends-on): Likewise.
6770         * modules/round-tests (Depends-on): Likewise.
6771         * modules/roundf-tests (Depends-on): Likewise.
6772         * modules/roundl-tests (Depends-on): Likewise.
6773         * modules/trunc-tests (Depends-on): Likewise.
6774         * modules/truncf-tests (Depends-on): Likewise.
6775         * modules/truncl-tests (Depends-on): Likewise.
6776
6777         strtod: work around icc bug
6778         * lib/strtod.c (minus_zero): Define to working value.
6779         (strtod): Use it to avoid icc bug.
6780
6781         copysign: enhance tests
6782         * modules/copysign-tests (Files): Add minus-zero.h.
6783         * tests/test-copysign.c (main): Also test zeros.
6784
6785 2010-11-04  Eric Blake  <eblake@redhat.com>
6786
6787         ceil, floor, round, trunc: enhance tests of -0
6788         * tests/test-ceilf1.c (main): Ensure correct sign of result.
6789         * tests/test-ceill.c (main): Likewise.
6790         * tests/test-floorf1.c (main): Likewise.
6791         * tests/test-floorl.c (main): Likewise.
6792         * tests/test-round1.c (main): Likewise.
6793         * tests/test-roundf1.c (main): Likewise.
6794         * tests/test-roundl.c (main): Likewise.
6795         * tests/test-trunc1.c (main): Likewise.
6796         * tests/test-truncf1.c (main): Likewise.
6797         * tests/test-truncl.c (main): Likewise.
6798
6799 2010-11-04  Eric Blake  <eblake@redhat.com>
6800
6801         frexp, tests: work around ICC bug with -zero
6802         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
6803         works with more compilers.
6804         * tests/minus-zero.h: New file.
6805         * modules/ceilf-tests (Files): Include it.
6806         * modules/ceill-tests (Files): Likewise.
6807         * modules/floorf-tests (Files): Likewise.
6808         * modules/floorl-tests (Files): Likewise.
6809         * modules/frexp-nolibm-tests (Files): Likewise.
6810         * modules/frexp-tests (Files): Likewise.
6811         * modules/frexpl-nolibm-tests (Files): Likewise.
6812         * modules/frexpl-tests (Files): Likewise.
6813         * modules/isnan-tests (Files): Likewise.
6814         * modules/isnand-nolibm-tests (Files): Likewise.
6815         * modules/isnand-tests (Files): Likewise.
6816         * modules/isnanf-nolibm-tests (Files): Likewise.
6817         * modules/isnanf-tests (Files): Likewise.
6818         * modules/isnanl-nolibm-tests (Files): Likewise.
6819         * modules/isnanl-tests (Files): Likewise.
6820         * modules/round-tests (Files): Likewise.
6821         * modules/roundf-tests (Files): Likewise.
6822         * modules/roundl-tests (Files): Likewise.
6823         * modules/ldexpl-tests (Files): Likewise.
6824         * modules/signbit-tests (Files): Likewise.
6825         * modules/snprintf-posix-tests (Files): Likewise.
6826         * modules/sprintf-posix-tests (Files): Likewise.
6827         * modules/strtod-tests (Files): Likewise.
6828         * modules/trunc-tests (Files): Likewise.
6829         * modules/truncf-tests (Files): Likewise.
6830         * modules/truncl-tests (Files): Likewise.
6831         * modules/vsnprintf-posix-tests (Files): Likewise.
6832         * modules/vsprintf-posix-tests (Files): Likewise.
6833         * modules/vasnprintf-posix-tests (Files): Likewise.
6834         * modules/vasprintf-posix-tests (Files): Likewise.
6835         * tests/test-ceilf1.c (main): Use it.
6836         * tests/test-ceill.c (main): Likewise.
6837         * tests/test-floorf1.c (main): Likewise.
6838         * tests/test-floorl.c (main): Likewise.
6839         * tests/test-frexp.c (main): Likewise.
6840         * tests/test-frexpl.c (main): Likewise.
6841         * tests/test-isnan.c (main): Likewise.
6842         * tests/test-isnand.h (main): Likewise.
6843         * tests/test-isnanf.h (main): Likewise.
6844         * tests/test-isnanl.h (main): Likewise.
6845         * tests/test-ldexpl.c (main): Likewise.
6846         * tests/test-round.c (main): Likewise.
6847         * tests/test-roundf.c (main): Likewise.
6848         * tests/test-roundl.c (main): Likewise.
6849         * tests/test-signbit.c (test_signbitf, test_signbitd)
6850         (test_signbitl): Likewise.
6851         * tests/test-snprintf-posix.h (test_function): Likewise.
6852         * tests/test-sprintf-posix.h (test_function): Likewise.
6853         * tests/test-strtod.c (main): Likewise.
6854         * tests/test-trunc1.c (main): Likewise.
6855         * tests/test-truncf1.c (main): Likewise.
6856         * tests/test-truncl.c (main): Likewise.
6857
6858         isnanl: work around icc bug
6859         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
6860
6861 2010-11-03  Eric Blake  <eblake@redhat.com>
6862
6863         tests: fix compiler warnings
6864         * tests/test-getopt.h (test_getopt): Fix condition.
6865         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6866         * tests/test-pipe2.c (main): Likewise.
6867         * tests/test-quotearg-simple.c (main): Avoid icc warning.
6868
6869         utimens: fix broken m4 test
6870         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
6871
6872 2010-10-28  Bruno Haible  <bruno@clisp.org>
6873
6874         posix_spawn*, getdtablesize: Relax license.
6875         * modules/posix_spawn (License): Change to LGPLv2+.
6876         * modules/posix_spawnp (License): Likewise.
6877         * modules/posix_spawn-internal (License): Likewise.
6878         * modules/posix_spawnattr_init (License): Likewise.
6879         * modules/posix_spawnattr_getflags (License): Likewise.
6880         * modules/posix_spawnattr_setflags (License): Likewise.
6881         * modules/posix_spawnattr_getpgroup (License): Likewise.
6882         * modules/posix_spawnattr_setpgroup (License): Likewise.
6883         * modules/posix_spawnattr_getschedparam (License): Likewise.
6884         * modules/posix_spawnattr_setschedparam (License): Likewise.
6885         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
6886         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
6887         * modules/posix_spawnattr_getsigdefault (License): Likewise.
6888         * modules/posix_spawnattr_setsigdefault (License): Likewise.
6889         * modules/posix_spawnattr_getsigmask (License): Likewise.
6890         * modules/posix_spawnattr_setsigmask (License): Likewise.
6891         * modules/posix_spawnattr_destroy (License): Likewise.
6892         * modules/posix_spawn_file_actions_init (License): Likewise.
6893         * modules/posix_spawn_file_actions_addclose (License): Likewise.
6894         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
6895         * modules/posix_spawn_file_actions_addopen (License): Likewise.
6896         * modules/posix_spawn_file_actions_destroy (License): Likewise.
6897         * modules/getdtablesize (License): Likewise.
6898         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
6899
6900 2010-10-26  Bruno Haible  <bruno@clisp.org>
6901
6902         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
6903         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
6904         Cygwin and mingw.
6905         Suggested by Eric Blake.
6906
6907 2010-10-26  Bruno Haible  <bruno@clisp.org>
6908
6909         stdio: Work around compilation error due to renameat() on Solaris 10.
6910         * lib/stdio.in.h: Include <unistd.h> on Solaris.
6911         * lib/renameat.c: Don't include <unistd.h> here.
6912         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
6913         Reported by Paul Eggert and Eric Blake.
6914
6915 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
6916
6917         renameat: port to Solaris 10, which declares renameat in unistd.h
6918
6919         * lib/renameat.c: Include unistd.h before stdio.h, because
6920         Solaris 10 declares renameat in unistd.h.  Problem encountered
6921         when building GNU tar 1.24 on Solaris 10.
6922
6923 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
6924
6925         fdopendir: fix C89 compilation
6926         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
6927         compilers.
6928
6929 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
6930
6931         inttostr: simplify by removing unnecessary redundancy
6932         * lib/anytostr.c: Don't include verify.h.
6933         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
6934         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
6935         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
6936         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
6937         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
6938         Likewise.
6939         * modules/inttostr (Depends-on): Remove 'verify'.
6940
6941 2010-10-23  Bruno Haible  <bruno@clisp.org>
6942
6943         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
6944         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
6945         Reported by Eric Blake.
6946
6947 2010-10-23  Bruno Haible  <bruno@clisp.org>
6948
6949         Tests: Fix LOCALE_JA on MirBSD 10.
6950         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
6951         to an UTF-8 locale.
6952         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
6953         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6954         Reported by Eric Blake.
6955
6956 2010-10-21  Bruno Haible  <bruno@clisp.org>
6957
6958         nl_langinfo test: Avoid test failure on NetBSD 5.
6959         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
6960         Reported by Eric Blake.
6961
6962 2010-10-21  Eric Blake  <eblake@redhat.com>
6963
6964         c-stack: work around libsigsegv 2.8 bug
6965         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
6966         overflow on at least PowerPC64.
6967
6968 2010-10-17  Bruno Haible  <bruno@clisp.org>
6969
6970         userspec: Drop redundant file.
6971         * modules/userspec (Files): Remove lib/inttostr.h.
6972
6973 2010-10-17  Bruno Haible  <bruno@clisp.org>
6974
6975         nl_langinfo tests: Silence some warnings.
6976         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
6977         Reported by Jim Meyering.
6978
6979 2010-10-17  Bruno Haible  <bruno@clisp.org>
6980
6981         Make use of GCC's attribute __alloc_size__.
6982         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
6983         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
6984         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
6985         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
6986         __alloc_size__.
6987         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
6988         Suggested by Jim Meyering.
6989
6990 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
6991
6992         bootstrap: anchor .gitignore entries.
6993         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
6994         with...
6995         (insert_vc_ignore): ... this new function, which prepends `/' to
6996         all .gitignore entries before passing them to
6997         insert_sorted_if_absent.
6998
6999 2010-10-16  Bruno Haible  <bruno@clisp.org>
7000
7001         nextafter: Fix configure check.
7002         * modules/nextafter (configure.ac): Correct expected prototype.
7003
7004 2010-10-16  Bruno Haible  <bruno@clisp.org>
7005
7006         termios: Update documentation.
7007         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
7008
7009 2010-10-16  Bruno Haible  <bruno@clisp.org>
7010
7011         tests: Make them compile with TinyCC.
7012         * tests/test-strstr.c (main): Remove parentheses around array
7013         initializer.
7014
7015 2010-10-15  Eric Blake  <eblake@redhat.com>
7016
7017         ignore-value: make header idempotent
7018         * lib/ignore-value.h: Add double-inclusion guards.
7019         Reported by Stefan Berger.
7020
7021 2010-10-15  Jim Meyering  <meyering@redhat.com>
7022
7023         GNUmakefile: handle "stable" target, not "major"
7024         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
7025         lists in maint.mk and announce-gen.  Without this, "make stable"
7026         would fail to ensure that $(VERSION) is up to date.
7027
7028 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
7029
7030         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
7031         & co.
7032
7033 2010-10-14  Bruno Haible  <bruno@clisp.org>
7034
7035         vasnprintf: Don't set errno to 0.
7036         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
7037         block that sets it to 0.
7038         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
7039
7040 2010-10-14  Bruno Haible  <bruno@clisp.org>
7041
7042         socketlib: Fix.
7043         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
7044         gl_PREREQ_SYS_H_WINSOCK2.
7045         Reported by Ian Beckwith <ianb@erislabs.net>.
7046
7047 2010-10-13  Jim Meyering  <meyering@redhat.com>
7048
7049         test-select-stdin.c: avoid warn_unused_result warnings
7050         * tests/test-select-stdin.c: Include "macros.h".
7051         ASSERT that read and fflush succeed.
7052
7053 2010-10-13  Jim Meyering  <meyering@redhat.com>
7054
7055         git-version-gen: do require git-VC'd files in cwd
7056         * build-aux/git-version-gen: Reject a git version string
7057         if there are no commits associated with the current directory.
7058         This avoids an unlikely false-positive (unrelated dir whose parent
7059         repository also contains a tag matching v*), as pointed out
7060         by Giuseppe Scrivano in
7061         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
7062
7063 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
7064
7065         argv-iter: omit nonconforming declaration
7066         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
7067         enum arg_iter_err declaration, which doesn't conform to C99.
7068         Solaris 10 cc warns about this.
7069
7070 2010-10-13  Eric Blake  <eblake@redhat.com>
7071
7072         termios: fix compilation on mingw
7073         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
7074         (gl_TERMIOS_H): Adjust it on mingw.
7075         * modules/termios (Makefile.am): Substitute new key.
7076         * lib/termios.in.h (includes): Make include_next conditional.
7077         * doc/posix-headers/termios.texi (termios.h): Update
7078         documentation.
7079         Reported by Daniel P. Berrange.
7080
7081 2010-10-13  Jim Meyering  <meyering@redhat.com>
7082
7083         git-version-gen: don't require that .git/ be in the current dir
7084         * build-aux/git-version-gen: Adjust this script so that it works
7085         when run from any working directory beneath the top-level .git/-
7086         containing directory.  Inspired by a patch from Giuseppe Scrivano,
7087         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
7088
7089         test-select: avoid warn_unused_result warnings
7090         * tests/test-select.c: Include "macros.h".
7091         ASSERT that each call to read, write, and pipe succeeds.
7092         While not technically required, also check each "close".
7093         * modules/select-tests (Files): Add tests/macros.h.
7094
7095         test-symlinkat: remove declaration of unused local
7096         * tests/test-symlinkat.c (main): Remove unused local, "buf".
7097
7098         test-inttostr: avoid shadowing warnings
7099         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
7100         and use malloc rather than the stack for the same reason as
7101         mentioned in the comment justifying the other allocation.
7102
7103 2010-10-11  Bruno Haible  <bruno@clisp.org>
7104
7105         stdlib: Allow multiple gnulib generated replacements to coexist.
7106         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
7107         Reported by Sam Steingold <sds@gnu.org>.
7108
7109 2010-10-11  Jim Meyering  <meyering@redhat.com>
7110
7111         fix a documentation typo
7112         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
7113
7114 2010-10-11  Eric Blake  <eblake@redhat.com>
7115
7116         futimens: work around Solaris 11 bug
7117         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
7118         * tests/test-futimens.h (test_futimens): Enhance, rather than
7119         weaken test.
7120         * doc/posix-functions/futimens.texi (futimens): Document the bug.
7121
7122 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
7123
7124         Indentation.
7125         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
7126         higher-level operators more to the left.
7127
7128 2010-10-11  Jim Meyering  <meyering@redhat.com>
7129
7130         test-futimens: avoid unwarranted test failure on Solaris 5.11
7131         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
7132         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
7133         because it tries to dereference the NULL name argument.
7134
7135 2010-10-11  Bruno Haible  <bruno@clisp.org>
7136
7137         Indentation.
7138         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
7139         indentation.
7140
7141 2010-10-11  Jim Meyering  <meyering@redhat.com>
7142
7143         spawn.in.h: make indentation consistent with parentheses
7144         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
7145         Make indentation consistent with parentheses.
7146
7147 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
7148
7149         Fix mismatched parens in previous commit
7150         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
7151         parens.
7152
7153 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
7154
7155         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
7156
7157         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
7158         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
7159         * lib/malloca.c: Include "verify.h".
7160         (verify1): Remove, replacing with a verify call.
7161         * lib/relocwrapper.c (verify1): Likewise.
7162         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
7163         Likewise.
7164         * modules/malloca (Depends-on): Add 'verify'.
7165         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
7166         * modules/vasnprintf (Depends-on): Add 'verify'.
7167         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7168         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7169         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7170         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7171         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7172         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7173         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7174
7175         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
7176
7177         Formerly the style was sometimes 2*X - 1, because the C standard
7178         was wrongly thought to disallow ?: in integral constant expressions.
7179         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
7180         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
7181         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
7182         * lib/stdint.in.h (_verify_intmax_size): Likewise.
7183         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
7184         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
7185         verify that time_t cannot be floating.
7186
7187 2010-10-08  Eric Blake  <eblake@redhat.com>
7188
7189         time: enforce recent POSIX ruling that time_t is integral
7190         * lib/time.in.h (__time_t_must_be_integral): Detect any
7191         problematic systems, allowing the rest of gnulib to assume POSIX.
7192
7193 2010-10-08  Jim Meyering  <meyering@redhat.com>
7194
7195         fdopendir: fix a bug on systems lacking openat and /proc support
7196         OpenBSD 4.7 is one such system.  The most noticeable effect was
7197         failure of any application making nontrivial use of fts: rm, du,
7198         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
7199           ./rm: traversal failed: `a': Bad file descriptor
7200         Debugging that, you see that even though FD 6 was closed just
7201         prior to the opendir call in fd_clone_opendir, its resulting
7202         dir->dd_fd was 8, rather than the expected value of 6:
7203
7204         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
7205         93                close (fd);
7206         (gdb) n
7207         94                dir = fd_clone_opendir (dupfd);
7208         (gdb) n
7209         95                saved_errno = errno;
7210         (gdb) p dir->dd_fd
7211         $11 = 8
7212
7213         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
7214         The problem is that on OpenBSD, fd_clone_opendir has to resort
7215         to using the old-style save/restore CWD mechanism, due to its
7216         lack of openat/proc support, and *that* would steal the FD (6)
7217         that opendir was supposed to use.
7218
7219         The fix is to squirrel away the desired FD so that save_cwd uses a
7220         different one, and then free the dest FD right before calling opendir.
7221         That guarantees opendir will use the required file descriptor.
7222
7223         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
7224
7225 2010-10-08  Bruno Haible  <bruno@clisp.org>
7226
7227         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
7228         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
7229
7230 2010-10-08  Bruno Haible  <bruno@clisp.org>
7231
7232         nanosleep: Make replacement POSIX compliant.
7233         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
7234         is out of range.
7235         Reported by Jim Meyering.
7236
7237 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
7238
7239         bootstrap: add hook for altering gnulib.mk, for Bison
7240         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
7241         the Bison bootstrapping process can rewrite file names and variables
7242         in this file before later parts of 'bootstrap' use the file.
7243         Bison wants to include lib/gnulib.mk from the top-level makefile,
7244         so it needs the file names in this file to be relative to the top
7245         level, not relative to lib; plus it needs variable names to be
7246         rewritten.
7247         (slurp): Use the new function.
7248
7249         bootstrap: reformat for readability
7250         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
7251
7252 2010-10-08  Eric Blake  <eblake@redhat.com>
7253
7254         docs: update cygwin progress
7255         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
7256         1.7.7.
7257         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
7258         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
7259         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
7260         * doc/posix-functions/carg.texi (carg): Likewise.
7261         * doc/posix-functions/cargf.texi (cargf): Likewise.
7262         * doc/posix-functions/casin.texi (casin): Likewise.
7263         * doc/posix-functions/casinf.texi (casinf): Likewise.
7264         * doc/posix-functions/casinh.texi (casinh): Likewise.
7265         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
7266         * doc/posix-functions/catan.texi (catan): Likewise.
7267         * doc/posix-functions/catanf.texi (catanf): Likewise.
7268         * doc/posix-functions/catanh.texi (catanh): Likewise.
7269         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
7270         * doc/posix-functions/ccos.texi (ccos): Likewise.
7271         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
7272         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
7273         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
7274         * doc/posix-functions/cexp.texi (cexp): Likewise.
7275         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
7276         * doc/posix-functions/cimag.texi (cimag): Likewise.
7277         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
7278         * doc/posix-functions/clog.texi (clog): Likewise.
7279         * doc/posix-functions/clogf.texi (clogf): Likewise.
7280         * doc/posix-functions/conj.texi (conj): Likewise.
7281         * doc/posix-functions/conjf.texi (conjf): Likewise.
7282         * doc/posix-functions/cpow.texi (cpow): Likewise.
7283         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
7284         * doc/posix-functions/cproj.texi (cproj): Likewise.
7285         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
7286         * doc/posix-functions/creal.texi (creal): Likewise.
7287         * doc/posix-functions/crealf.texi (crealf): Likewise.
7288         * doc/posix-functions/csin.texi (csin): Likewise.
7289         * doc/posix-functions/csinf.texi (csinf): Likewise.
7290         * doc/posix-functions/csinh.texi (csinh): Likewise.
7291         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
7292         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
7293         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
7294         * doc/posix-functions/ctan.texi (ctan): Likewise.
7295         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
7296         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
7297         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
7298         * doc/posix-headers/complex.texi (complex.h): Likewise.
7299
7300 2010-10-07  Jim Meyering  <meyering@redhat.com>
7301
7302         parse-datetime: avoid compilation failure on OpenBSD 4.7
7303         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
7304         This works around a compilation failure on OpenBSD 4.7:
7305         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
7306
7307 2010-10-07  Eric Blake  <eblake@redhat.com>
7308
7309         docs: update cygwin progress
7310         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
7311         1.7.6.
7312         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
7313         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
7314         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
7315         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
7316         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
7317         Likewise.
7318         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
7319         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
7320         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
7321         Likewise.
7322         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
7323         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
7324         Likewise.
7325         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
7326         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
7327         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
7328         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
7329         Likewise.
7330         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
7331         Likewise.
7332         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
7333
7334         docs: update parse-datetime history
7335         * doc/parse-datetime.texi (Authors of parse_datetime): Better
7336         documentation of this function's history and alternatives.
7337
7338         cygwin: use more robust version check
7339         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
7340         exclude an eventual cygwin 1.9.1.
7341         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
7342         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
7343         (gl_FUNC_STRCASESTR): Likewise.
7344         Reported by Bruno Haible.
7345
7346 2010-10-06  Bruno Haible  <bruno@clisp.org>
7347
7348         string, sys_select: Avoid #including large headers unless necessary.
7349         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
7350         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
7351         OSF/1, BeOS, Haiku.
7352         Reported by Jim Meyering.
7353
7354 2010-10-05  Eric Blake  <eblake@redhat.com>
7355
7356         memmem, strstr, strcasestr: fix bug with long periodic needle
7357         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
7358         periodic needle having false positive.
7359         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
7360         and cygwin 1.7.7.
7361         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
7362         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
7363         (gl_FUNC_STRCASESTR): Likewise.
7364         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
7365         * tests/test-memmem.c (main): Expose the bug.
7366         * tests/test-strcasestr.c (main): Likewise.
7367         * tests/test-strstr.c (main): Likewise.
7368         * tests/test-c-strcasestr.c (main): Likewise.
7369         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
7370         * doc/posix-functions/strstr.texi (strstr): Likewise.
7371         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
7372         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
7373
7374 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7375
7376         parse-datetime: do some more renaming
7377         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
7378         parse_datetime, not get_date.  Mention the renaming.
7379         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
7380         in comments.
7381         * m4/bison.m4: Likewise.
7382
7383 2010-10-05  Eric Blake  <eblake@redhat.com>
7384
7385         parse-datetime: better name than get_date
7386         * NEWS: Reword the deprecation notice.
7387         * modules/get_date: Rename to modules/parse-datetime.
7388         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
7389         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
7390         * lib/get_date.y: Rename to lib/parse-datetime.y.
7391         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
7392         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
7393         * doc/getdate.texi: Provide fallback wrapper.
7394         * lib/getdate.h: Move guts, and wrap...
7395         * lib/parse-datetime.h: ...new file.
7396         * lib/parse-datetime.y (get_date): Rename...
7397         (parse_datetime): ...to this.
7398         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
7399         (gl_PARSE_DATETIME): ...to this.
7400         * doc/posix-functions/getdate.texi (get_date): Provide fallback
7401         documentation.
7402         * modules/getdate (Files): Provide fallback docs and header.
7403         (Notice, Depends-on): Update references.
7404         * tests/test-parse-datetime.c: Likewise.
7405         * DEPENDENCIES: Likewise.
7406         * MODULES.html.sh (Date and time <time.h>): Likewise.
7407         * doc/parse-datetime.texi (Date input formats)
7408         (Authors of parse_datetime): Likewise.
7409         * modules/parse-datetime (Files, configure.ac, Makefile.am)
7410         (Include): Likewise.
7411         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
7412         * gnulib-tool: Likewise.
7413         * m4/bison.m4 (gl_BISON): Likewise.
7414         Suggested by Bruno Haible.
7415
7416 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7417
7418         more ports to Solaris tr, which needs [] around ranges
7419         * gnulib-tool: Solaris tr needs [] around ranges.
7420         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7421         * tests/test-pipe-filter-gi1.c (main): Likewise.
7422         * tests/test-pipe-filter-ii1.c (main): Likewise.
7423
7424 2010-10-05  Eric Blake  <eblake@redhat.com>
7425
7426         bootstrap: fix Solaris regression
7427         * build-aux/bootstrap (check_versions): Solaris tr still needs []
7428         around ranges.
7429         Reported by Pádraig Brady.
7430
7431         bootstrap: work with pkg-config
7432         * build-aux/bootstrap (check_versions): Also transliterate - in
7433         prerequisite name.
7434         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
7435         prerequisites that were already found, to avoid confusion.
7436         Reported by Justin Clift.
7437
7438         faccessat: remove unused wrappers
7439         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
7440         presence of these wrappers dragged in -lgen on Solaris.
7441         Reported by Clemens Brogi; fix suggested by Paul Eggert.
7442
7443 2010-10-05  Jim Meyering  <meyering@redhat.com>
7444
7445         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
7446         * Makefile (sc_pragma_columns): New syntax-check rule.
7447
7448 2010-10-04  Bruno Haible  <bruno@clisp.org>
7449
7450         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
7451         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
7452         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
7453         Reported by Bruce Korb and Eric Blake.
7454
7455 2010-10-04  Bruno Haible  <bruno@clisp.org>
7456
7457         threadlib: Make option --with-libpth-prefix work.
7458         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
7459         use $LIBPTH, not just -lpth.
7460
7461 2010-10-04  Bruno Haible  <bruno@clisp.org>
7462
7463         Avoid line length limitation from HP NonStop system header files.
7464         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
7465         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
7466         * lib/ctype.in.h: Likewise.
7467         * lib/dirent.in.h: Likewise.
7468         * lib/errno.in.h: Likewise.
7469         * lib/fcntl.in.h: Likewise.
7470         * lib/float.in.h: Likewise.
7471         * lib/getopt.in.h: Likewise.
7472         * lib/iconv.in.h: Likewise.
7473         * lib/inttypes.in.h: Likewise.
7474         * lib/langinfo.in.h: Likewise.
7475         * lib/locale.in.h: Likewise.
7476         * lib/math.in.h: Likewise.
7477         * lib/netdb.in.h: Likewise.
7478         * lib/netinet_in.in.h: Likewise.
7479         * lib/poll.in.h: Likewise.
7480         * lib/pthread.in.h: Likewise.
7481         * lib/pty.in.h: Likewise.
7482         * lib/sched.in.h: Likewise.
7483         * lib/se-selinux.in.h: Likewise.
7484         * lib/search.in.h: Likewise.
7485         * lib/signal.in.h: Likewise.
7486         * lib/spawn.in.h: Likewise.
7487         * lib/stdarg.in.h: Likewise.
7488         * lib/stddef.in.h: Likewise.
7489         * lib/stdint.in.h: Likewise.
7490         * lib/stdio.in.h: Likewise.
7491         * lib/stdlib.in.h: Likewise.
7492         * lib/string.in.h: Likewise.
7493         * lib/strings.in.h: Likewise.
7494         * lib/sys_file.in.h: Likewise.
7495         * lib/sys_ioctl.in.h: Likewise.
7496         * lib/sys_select.in.h: Likewise.
7497         * lib/sys_socket.in.h: Likewise.
7498         * lib/sys_stat.in.h: Likewise.
7499         * lib/sys_time.in.h: Likewise.
7500         * lib/sys_times.in.h: Likewise.
7501         * lib/sys_utsname.in.h: Likewise.
7502         * lib/sys_wait.in.h: Likewise.
7503         * lib/sysexits.in.h: Likewise.
7504         * lib/termios.in.h: Likewise.
7505         * lib/time.in.h: Likewise.
7506         * lib/unistd.in.h: Likewise.
7507         * lib/wchar.in.h: Likewise.
7508         * lib/wctype.in.h: Likewise.
7509         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
7510         * modules/ctype (Makefile.am): Likewise.
7511         * modules/dirent (Makefile.am): Likewise.
7512         * modules/errno (Makefile.am): Likewise.
7513         * modules/fcntl-h (Makefile.am): Likewise.
7514         * modules/float (Makefile.am): Likewise.
7515         * modules/getopt-posix (Makefile.am): Likewise.
7516         * modules/iconv-h (Makefile.am): Likewise.
7517         * modules/inttypes (Makefile.am): Likewise.
7518         * modules/langinfo (Makefile.am): Likewise.
7519         * modules/locale (Makefile.am): Likewise.
7520         * modules/math (Makefile.am): Likewise.
7521         * modules/netdb (Makefile.am): Likewise.
7522         * modules/netinet_in (Makefile.am): Likewise.
7523         * modules/poll-h (Makefile.am): Likewise.
7524         * modules/pthread (Makefile.am): Likewise.
7525         * modules/pty (Makefile.am): Likewise.
7526         * modules/sched (Makefile.am): Likewise.
7527         * modules/search (Makefile.am): Likewise.
7528         * modules/selinux-h (Makefile.am): Likewise.
7529         * modules/signal (Makefile.am): Likewise.
7530         * modules/spawn (Makefile.am): Likewise.
7531         * modules/stdarg (Makefile.am): Likewise.
7532         * modules/stddef (Makefile.am): Likewise.
7533         * modules/stdint (Makefile.am): Likewise.
7534         * modules/stdio (Makefile.am): Likewise.
7535         * modules/stdlib (Makefile.am): Likewise.
7536         * modules/string (Makefile.am): Likewise.
7537         * modules/strings (Makefile.am): Likewise.
7538         * modules/sys_file (Makefile.am): Likewise.
7539         * modules/sys_ioctl (Makefile.am): Likewise.
7540         * modules/sys_select (Makefile.am): Likewise.
7541         * modules/sys_socket (Makefile.am): Likewise.
7542         * modules/sys_stat (Makefile.am): Likewise.
7543         * modules/sys_time (Makefile.am): Likewise.
7544         * modules/sys_times (Makefile.am): Likewise.
7545         * modules/sys_utsname (Makefile.am): Likewise.
7546         * modules/sys_wait (Makefile.am): Likewise.
7547         * modules/sysexits (Makefile.am): Likewise.
7548         * modules/termios (Makefile.am): Likewise.
7549         * modules/time (Makefile.am): Likewise.
7550         * modules/unistd (Makefile.am): Likewise.
7551         * modules/wchar (Makefile.am): Likewise.
7552         * modules/wctype (Makefile.am): Likewise.
7553
7554 2010-10-04  Bruno Haible  <bruno@clisp.org>
7555
7556         read-file tests: Avoid a test failure on NonStop Kernel.
7557         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
7558         a regular file.
7559         Reported by Joachim Schmitz <schmitz@hp.com>.
7560
7561 2010-10-03  Bruno Haible  <bruno@clisp.org>
7562
7563         gnulib-tool: Fixes for --create-testdir with --libtool.
7564         * gnulib-tool (func_get_automake_snippet): Don't augment
7565         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
7566         an executable.
7567         (func_create_testdir): Handle module 'alloca' like func_import.
7568         Reported by Bruce Korb <bruce.korb@gmail.com>.
7569
7570 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
7571
7572         Avoid some lines longer than 80 characters.
7573         * lib/stdint.in.h: Break long comment lines.
7574         * lib/math.in.h: Likewise.
7575         (_GL_NUM_UINT_WORDS): New macro, for readability.
7576         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
7577         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
7578         * lib/stdlib.in.h: Likewise.
7579         * lib/spawn.in.h: Likewise.
7580         * lib/sys_socket.in.h: Update an URL.
7581         * lib/sys_stat.in.h: Break long line.
7582
7583 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
7584
7585         Improve pmccabe2html.
7586         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
7587         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
7588         when the sources change. Remove the line in the HTML about "Used
7589         ranges" (which implied that there might be other unused ranges),
7590         rename "Resume" to "Summary" (easier to understand for more users).
7591         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
7592         styles, and some unnecessary blank lines.
7593
7594 2010-10-03  Bruno Haible  <bruno@clisp.org>
7595             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
7596
7597         acl: Add support for ACLs on NonStop Kernel.
7598         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
7599         Check whether the function aclsort() exists.
7600         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
7601         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
7602         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
7603         (acl_nontrivial [HAVE_ACLSORT]: New function.
7604         (file_has_acl): Implement for NonStop Kernel.
7605         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
7606         (qset_acl): Implement for NonStop Kernel.
7607         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
7608         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
7609         (main): Implement for NonStop Kernel.
7610         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
7611         Kernel. Handle this flavor.
7612         * tests/test-set-mode-acl.sh: Likewise.
7613         * tests/test-copy-acl.sh: Likewise.
7614         * tests/test-copy-file.sh: Likewise.
7615
7616 2010-10-03  Bruno Haible  <bruno@clisp.org>
7617
7618         Info about ACLs on NonStop Kernel.
7619         * doc/acl-resources.txt: Add info about NonStop Kernel.
7620         References by Joachim Schmitz <schmitz@hp.com>.
7621
7622 2010-10-02  Bruno Haible  <bruno@clisp.org>
7623
7624         Define missing EDQUOT on NonStop Kernel.
7625         * lib/errno.in.h (EDQUOT): Assign a value if missing.
7626         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
7627         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
7628         missing.
7629         * doc/posix-headers/errno.texi: Mention the NSK bug.
7630         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
7631         Reported by Joachim Schmitz <schmitz@hp.com>.
7632
7633 2010-10-02  Bruno Haible  <bruno@clisp.org>
7634
7635         Update doc for POSIX:2008.
7636         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
7637         Update URL of POSIX specification.
7638
7639 2010-10-02  Bruno Haible  <bruno@clisp.org>
7640
7641         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
7642         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
7643         from gnulib, not from Automake.
7644
7645 2010-10-02  Bruno Haible  <bruno@clisp.org>
7646
7647         New module 'system-posix'.
7648         * modules/system-posix: New file.
7649         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
7650         module is present.
7651         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
7652         GNULIB_SYSTEM_POSIX.
7653         * modules/stdlib (Depends-on): Remove sys_wait.
7654         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
7655         * doc/posix-functions/system.texi: Mention the new module.
7656         * doc/posix-headers/stdlib.texi: Likewise.
7657         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
7658         define test_sys_wait_macros to a no-op.
7659         Reported by Sam Steingold <sds@gnu.org>.
7660
7661 2010-09-30  Bruno Haible  <bruno@clisp.org>
7662
7663         More renaming from 'getdate' to 'get_date'.
7664         * doc/get_date.texi: Renamed from doc/getdate.texi.
7665         * modules/get_date (Files): Update.
7666         * MODULES.html.sh (Date and time <time.h>): Update.
7667         * DEPENDENCIES: Update.
7668         * gnulib-tool: Update comment.
7669         * m4/bison.m4 (gl_BISON): Likewise.
7670         * m4/get_date.m4 (gl_GET_DATE): Likewise.
7671
7672 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
7673
7674         bootstrap: support ACLOCAL_FLAGS during aclocal
7675         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
7676         can add additional -I dir for third-party .m4 files.
7677
7678 2010-09-30  Eric Blake  <eblake@redhat.com>
7679
7680         bootstrap: use glibtoolize on MacOS
7681         * build-aux/bootstrap (check_versions): Convert libtool into
7682         libtoolize.
7683         (tool search): Move libtool check earlier, and look for
7684         glibtoolize for MacOS.
7685         (gnulib_tool_options): Auto-add --libtool when appropriate.
7686         Reported by Justin Clift.
7687
7688         poll: fix typo that broke test on MacOS
7689         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
7690         Reported by Justin Clift.
7691
7692         getdate: rename to get_date
7693         Note: getdate.h is not renamed, to minimize client impact.
7694         * modules/getdate: Mark obsolete.  Move old contents...
7695         * modules/get_date: ...to new module name.
7696         * modules/getdate-tests: Move...
7697         * modules/get_date-tests: ...here.
7698         * m4/getdate.m4: Move...
7699         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
7700         * lib/getdate.y: Move...
7701         * lib/get_date.y: ...here.
7702         * tests/test-getdate.c: Move...
7703         * tests/test-get_date.c: ...here.
7704         * doc/posix-functions/getdate.texi (getdate): Update name.
7705         * NEWS: Mention the change.
7706
7707 2010-09-29  Bruno Haible  <bruno@clisp.org>
7708
7709         Separate the module 'waitpid' from the module 'sys_wait'.
7710         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
7711         present.
7712         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
7713         gl_MODULE_INDICATOR_FOR_TESTS.
7714         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
7715         * modules/sys_wait (Depends-on): Remove waitpid.
7716         (Makefile.am): Substitute GNULIB_WAITPID.
7717         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
7718         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
7719         signature only if the 'waitpid' module is present.
7720         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
7721         * NEWS: Mention the change.
7722         * modules/grantpt (Depends-on): Add waitpid.
7723         * modules/wait-process (Depends-on): Likewise.
7724
7725 2010-09-29  Bruno Haible  <bruno@clisp.org>
7726
7727         More tests for module 'sys_wait'.
7728         * modules/sys_wait-c++-tests: New file.
7729         * tests/test-sys_wait-c++.cc: New file.
7730         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
7731         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7732
7733 2010-09-29  Bruno Haible  <bruno@clisp.org>
7734
7735         New module 'waitpid'.
7736         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
7737         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
7738         Don't include <process.h>.
7739         (waitpid): Declare only, using modern idiom.
7740         * m4/waitpid.m4: New file.
7741         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
7742         * modules/waitpid: New file.
7743         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
7744         (Makefile.am): Update.
7745         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7746
7747 2010-09-28  Bruno Haible  <bruno@clisp.org>
7748
7749         poll: Assume ANSI C.
7750         * lib/poll.c (poll): Use an ANSI C declaration.
7751
7752 2010-09-28  Bruno Haible  <bruno@clisp.org>
7753
7754         poll-h: Create poll.h on all platforms.
7755         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
7756         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
7757         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
7758         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
7759         (gl_REPLACE_POLL_H): Don't set POLL_H.
7760         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
7761         * modules/poll-h (Depends-on): Add include_next.
7762         (Makefile.am): Create poll.h unconditionally. Substitute also
7763         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
7764
7765 2010-09-28  Bruno Haible  <bruno@clisp.org>
7766
7767         Tests for module 'poll-h'.
7768         * modules/poll-h-c++-tests: New file.
7769         * tests/test-poll-h-c++.cc: New file.
7770
7771         Tests for module 'poll-h'.
7772         * modules/poll-h-tests: New file.
7773         * tests/test-poll-h.c: New file.
7774
7775 2010-09-28  Bruno Haible  <bruno@clisp.org>
7776
7777         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
7778         * modules/poll-h (Depends-on): Add 'extensions'.
7779
7780 2010-09-28  Bruno Haible  <bruno@clisp.org>
7781
7782         New module 'poll-h'.
7783         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
7784         (poll): Use modern idiom.
7785         * modules/poll-h: New file.
7786         * modules/poll (Files): Remove lib/poll.in.h.
7787         (Depends-on): Add poll-h.
7788         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
7789         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
7790         * m4/poll_h.m4: New file.
7791         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
7792         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
7793         and invoke gl_REPLACE_POLL_H.
7794         * lib/poll.c: Use common idiom.
7795         * tests/test-poll.c: Likewise.
7796         * doc/posix-headers/poll.texi: Mention the poll-h module.
7797         Suggested by Eric Blake.
7798
7799 2010-09-26  Bruno Haible  <bruno@clisp.org>
7800
7801         sys_wait: Implement WSTOPSIG.
7802         * lib/sys_wait.in.h (WSTOPSIG): New macro.
7803         Reported by Simon Josefsson.
7804
7805 2010-09-26  Simon Josefsson  <simon@josefsson.org>
7806
7807         stdlib, sys_wait: Avoid compilation error on mingw.
7808         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
7809
7810 2010-09-26  Bruno Haible  <bruno@clisp.org>
7811
7812         stdlib tests: Avoid code duplication.
7813         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
7814         * modules/sys_wait-tests (Files): Likewise.
7815         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
7816         * tests/test-stdlib.c: Include test-sys_wait.h.
7817         (main): Invoke test_sys_wait_macros.
7818         * tests/test-sys_wait.c: Include test-sys_wait.h.
7819         (main): Invoke test_sys_wait_macros.
7820
7821 2010-09-25  Simon Josefsson  <simon@josefsson.org>
7822
7823         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
7824         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
7825         sure Windows sockets are working before calling getaddrinfo.
7826         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
7827         * doc/gnulib.texi (Windows sockets): Fix typo.
7828
7829 2010-09-25  Bruno Haible  <bruno@clisp.org>
7830
7831         Tests for module 'regex-quote'.
7832         * modules/regex-quote-tests: New file.
7833         * tests/test-regex-quote.c: New file.
7834
7835         New module 'regex-quote'.
7836         * lib/regex-quote.h: New file.
7837         * lib/regex-quote.c: New file.
7838         * modules/regex-quote: New file.
7839         Suggested by Reuben Thomas <rrt@sc3d.org>.
7840
7841 2010-09-24  Bruno Haible  <bruno@clisp.org>
7842
7843         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
7844         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
7845
7846 2010-09-23  Bruno Haible  <bruno@clisp.org>
7847
7848         setenv: Relax license.
7849         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
7850         Blake.
7851         Requested by Eric Blake.
7852
7853 2010-09-22  Bruno Haible  <bruno@clisp.org>
7854
7855         termios: Relax license.
7856         * modules/termios (License): Change to LGPLv2+.
7857         Requested by Eric Blake.
7858
7859 2010-09-22  Bruno Haible  <bruno@clisp.org>
7860
7861         threadlib: Allow the package to change the default to 'no'.
7862         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
7863         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
7864         Reported by Paul Eggert.
7865
7866 2010-09-22  Pádraig Brady  <P@draigbrady.com>
7867             Bruno Haible  <bruno@clisp.org>
7868
7869         Fix endless loop in mbmemcasecoll.
7870         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
7871         byte.
7872         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
7873
7874 2010-09-22  Bruno Haible  <bruno@clisp.org>
7875
7876         Tests for module 'memcoll'.
7877         * modules/memcoll-tests: New file.
7878         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
7879
7880         memcoll, xmemcoll: Clarify size vs. length.
7881         * modules/memcoll.c (memcoll0): Clarify specification.
7882         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
7883         passed to collate_error.
7884
7885 2010-09-22  Bruno Haible  <bruno@clisp.org>
7886
7887         Tests for module 'memcasecmp'.
7888         * modules/memcasecmp-tests: New file.
7889         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
7890
7891 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
7892
7893         * lib/pthread.in.h: Add split double-inclusion guard, and include
7894         system <pthread.h> if there is one.  Use @@-style as in other
7895         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
7896         pthread.h doesn't.
7897         (pthread_mutexattr_destroy, pthread_mutexattr_init):
7898         (pthread_mutexattr_settype, pthread_mutex_trylock):
7899         New static inline functions, if there's no system <pthread.h>.
7900         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
7901         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
7902         Approximate with mutexes if the system lacks spinlocks, as in
7903         MacOS.
7904         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
7905         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
7906         @@-style.  Check for spinlocks separately.
7907         (gl_PTHREAD_DEFAULTS): New macro.
7908         * modules/pthread: Redo to use a more typical style for in.h files.
7909
7910 2010-09-21  Eric Blake  <eblake@redhat.com>
7911
7912         net_if: enhance tests
7913         * tests/test-net_if.c (main): Move signature checks earlier.
7914         Print failures to stderr.
7915         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
7916         Document the bug that we do not yet fix.
7917
7918 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
7919
7920         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
7921         about gnulib, not GSS.
7922
7923 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
7924
7925         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
7926         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
7927         for Emacs.
7928         * build-aux/pmccabe2html: Make Makefile.am example code more
7929         cut-and-paste friendly.
7930
7931 2010-09-21  Simon Josefsson  <simon@josefsson.org>
7932
7933         * tests/test-net_if.c: New file.
7934         * modules/net_if-tests: New file.
7935
7936 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
7937
7938         pthread: add pthread_spin_destroy
7939         * lib/pthread.in.h (pthread_spin_destroy): New function.
7940
7941 2010-09-19  Bruno Haible  <bruno@clisp.org>
7942
7943         gnulib-tool: Fix --help output.
7944         * gnulib-tool (func_usage): Fix help message.
7945         Reported by Reuben Thomas <rrt@sc3d.org>.
7946
7947 2010-09-18  Jim Meyering  <meyering@redhat.com>
7948
7949         maint.mk: avoid unexpanded \n in two diagnostics
7950         * top/maint.mk (sc_prohibit_always_true_header_tests):
7951         Don't use a literal \n in a halt=... assignment.  It would not be
7952         expanded, and the two \n bytes would appear in the diagnostic output
7953         rather than the desired newline.  Use halt=$$(printf ... instead.
7954         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
7955
7956 2010-09-18  Bruno Haible  <bruno@clisp.org>
7957
7958         netinet_in: Doc tweak.
7959         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
7960         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7961
7962 2010-09-18  Jim Meyering  <meyering@redhat.com>
7963
7964         init.sh: correct an outdated comment
7965         * tests/init.sh (create_exe_shims_):  s/function/alias/
7966
7967         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
7968         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
7969         a file named "*.exe" is removed between the glob expansion and the
7970         processing of that oddly named file.
7971
7972 2010-09-17  Eric Blake  <eblake@redhat.com>
7973
7974         mirbsd: add some more support
7975         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
7976         in BSD family.
7977         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
7978         devices as OpenBSD.
7979         * m4/host-os.m4 (mirbsd): Add MirBSD.
7980
7981         tests: fix unportable assumption on sys/wait.h
7982         * tests/test-sys_wait.c (main): Relax test.
7983         * tests/test-stdlib.c (main): Likewise.
7984
7985         init.sh: accomodate directory with no .exes
7986         * tests/init.sh: Accomodate directory containing only scripts.
7987
7988         tests: avoid compiler warning
7989         * tests/test-stdlib.c (main): Use the variable.
7990
7991         fdutimens, fdutimensat: update signature, again
7992         * lib/utimens.h (gl_futimens): Delete, and move signature...
7993         (fdutimens): ...here.
7994         (fdutimensat): Rearrange signature.
7995         (lutimensat): Rename variable for clarity.
7996         * lib/fdutimensat.c (fdutimensat): Update signature.
7997         * lib/utimens.c (fdutimens): Likewise.
7998         (gl_futimens): Delete.
7999         (utimens, lutimens): Update callers.
8000         * lib/futimens.c (futimens): Likewise.
8001         * tests/test-fdutimensat.c: Likewise.
8002         * tests/test-utimens.c: Likewise.
8003         * tests/test-futimens.h: Update comment.
8004         * NEWS: Mention this.
8005         Suggested by Paul Eggert.
8006
8007 2010-09-17  Bruno Haible  <bruno@clisp.org>
8008
8009         Take over the maintenance of some older macros from Autoconf.
8010         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
8011         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
8012         GNU Autoconf.
8013         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
8014         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
8015
8016 2010-09-17  Eric Blake  <eblake@redhat.com>
8017
8018         fdutimensat: drop atflag validation
8019         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
8020         with valid fd, to close a race scenario where futimens is
8021         unsupported and FILE was replaced by a symlink.
8022         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
8023         accordingly.
8024         Suggested by Paul Eggert.
8025
8026 2010-09-16  Bruno Haible  <bruno@clisp.org>
8027
8028         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
8029         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
8030
8031 2010-09-16  Bruno Haible  <bruno@clisp.org>
8032
8033         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
8034         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
8035         login_tty exists.
8036         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8037
8038 2010-09-16  Bruno Haible  <bruno@clisp.org>
8039
8040         login_tty: Make the replacement code work on BSD systems.
8041         * lib/login_tty.c: Include <sys/ioctl.h>.
8042         (login_tty): Use ioctl TIOCSCTTY when available.
8043         * modules/login_tty (Depends-on): Add sys_ioctl.
8044         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8045
8046 2010-09-16  Bruno Haible  <bruno@clisp.org>
8047
8048         login_tty: Stricter unit test.
8049         * modules/login_tty-tests (Depends-on): Add tcgetsid.
8050         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
8051         and tcgetsid() after login_tty.
8052         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8053
8054 2010-09-16  Bruno Haible  <bruno@clisp.org>
8055
8056         New module 'tcgetsid'.
8057         * lib/tcgetsid.c: New file.
8058         * m4/tcgetsid.m4: New file.
8059         * modules/tcgetsid: New file.
8060         * modules/termios (Depends-on): Add c++defs, warn-on-use.
8061         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
8062         GNULIB_TCGETSID, HAVE_TCGETSID.
8063         * lib/termios.in.h: Include <sys/types.h>.
8064         (tcgetsid): New declaration.
8065         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
8066         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
8067         * doc/posix-functions/tcgetsid.texi: Mention the new module.
8068         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
8069
8070 2010-09-16  Bruno Haible  <bruno@clisp.org>
8071
8072         Tests for module 'termios'.
8073         * modules/termios-c++-tests: New file.
8074         * modules/termios-tests: New file.
8075         * tests/test-termios-c++.cc: New file.
8076         * tests/test-termios.c: New file.
8077
8078         New module 'termios'.
8079         * modules/termios: New file.
8080         * lib/termios.in.h: New file.
8081         * m4/termios_h.m4: New file.
8082         * doc/posix-headers/termios.texi: Mention the new module.
8083
8084 2010-09-16  Eric Blake  <eblake@redhat.com>
8085
8086         fdutimensat: add an atflag parameter
8087         * lib/fdutimensat.c (fdutimensat): Add new parameter.
8088         * lib/utimens.h (fdutimensat): Update prototype.
8089         * tests/test-fdutimensat.c: Adjust test to match.
8090         * NEWS: Document the change.
8091         Suggested by Paul Eggert.
8092
8093 2010-09-16  Bruno Haible  <bruno@clisp.org>
8094
8095         Fix typos in comments.
8096         * lib/striconveh.h: Fix typo in comment.
8097         * lib/login_tty.c (login_tty): Likewise.
8098
8099 2010-09-15  Bruno Haible  <bruno@clisp.org>
8100
8101         stdlib: clarify MirBSD WEXITSTATUS bug
8102         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
8103         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
8104
8105 2010-09-15  Eric Blake  <eblake@redhat.com>
8106
8107         stdlib: work around MirBSD WEXITSTATUS bug
8108         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
8109         * modules/stdlib (Depends-on): Add sys_wait.
8110         * tests/test-sys_wait.c (main): Enhance test.
8111         * tests/test-stdlib.c (main): Likewise.
8112         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
8113
8114         docs: mention MacOS issue with WEXITSTATUS(constant)
8115         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
8116         issue.
8117         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
8118
8119         strnlen: add tests
8120         * modules/strnlen-tests: New file.
8121         * tests/test-strnlen.c: Likewise.
8122
8123 2010-09-14  Bruno Haible  <bruno@clisp.org>
8124
8125         unistr/base: Avoid link errors when module 'libunistring' is also used.
8126         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
8127         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
8128         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
8129         Declare also when HAVE_LIBUNISTRING is set.
8130         Reported by Pádraig Brady <P@draigbrady.com>.
8131
8132 2010-09-14  Eric Blake  <eblake@redhat.com>
8133
8134         test-rawmemchr: make more robust
8135         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
8136         (Depends-on, configure.ac): Add needed prerequisites to use it.
8137         * modules/memchr-tests (Files, Depends-on, configure.ac):
8138         Likewise, to avoid implicit reliance on memchr module prereqs.
8139         * tests/test-memchr.c (main): Ensure proper masking.
8140         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
8141         reads.
8142
8143         memchr: detect glibc Alpha bug
8144         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
8145         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
8146         Alpha.
8147         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
8148         * tests/test-memchr.c (main): Enhance test.
8149         Reported by Nelson H. F. Beebe.
8150
8151 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
8152
8153         fts, getcwd, glob: audit for dirfd returning -1
8154         * lib/fts.c (opendir): Remove #define; no longer used.
8155         (opendirat): New arg PDIR_FD.  All callers changed.
8156         (fts_build, _opendir2): Use new opendirat to avoid the need for
8157         dirfd, or for checking whether dirfd returns a negative value.
8158         Don't use opendir; always use openat followed by fdopendir.
8159         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
8160         it.
8161         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
8162         returns -1 here.
8163         * modules/fts (Depends-on): Remove dirfd.
8164         * modules/getcwd (Depends-on): Likewise.
8165
8166 2010-09-13  Eric Blake  <eblake@redhat.com>
8167
8168         float: fix broken MirBSD header
8169         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
8170         * doc/posix-headers/float.texi (float.h): Document it.
8171
8172 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
8173
8174         fts: use O_NOFOLLOW to avoid race condition when opening a directory
8175         * lib/fts.c (opendirat): New arg extra_flags.
8176         (__opendir2): Use it to avoid following symlinks when opening
8177         a directory, if symlinks are not supposed to be followed.  See
8178         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
8179
8180         fdopendir: preserve argument fd before returning
8181         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
8182         (fdopendir_with_dup, fd_clone_opendir): New static functions.
8183         (fdopendir): Use them, arranging for FD to be open to the same
8184         directory that it was when it started.  (It might be temporarily
8185         closed while fdopendir is running, so this not thread- or
8186         signal-safe.)  Be careful to do the right thing even when file
8187         descriptors are scarce and dup fails with errno == EMFILE.  See
8188         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
8189
8190 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
8191
8192         regex: Pass the system regex if its only problem is 32-bit regoff_t.
8193         * NEWS: Document change.
8194         * m4/regex.m4: Disable test for regoff_t size.
8195
8196 2010-09-13  Jim Meyering  <meyering@redhat.com>
8197
8198         fts: don't operate on an invalid file descriptor after failed dup
8199         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
8200         negative file descriptor.
8201
8202 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
8203
8204         savedir: add streamsavedir, deprecate fdsavedir
8205         * NEWS: Mention deprecation of fdsavedir.
8206         * lib/savedir.c (streamsavedir): New extern function, whose name
8207         ends in "savedir" to be consistent with the others.  This differs
8208         from savedirstream in that it doesn't close its argument.  The
8209         next version of GNU tar will use this instead of fdsavedir, to
8210         avoid some race conditions and conserve file descriptors.
8211         (savedirstream): Reimplement as a wrapper around streamsavedir.
8212         (fdsavedir): Add a comment deprecating this function.  As far as
8213         I know, only GNU tar used it, and GNU tar doesn't need it any more.
8214         * lib/savedir.h (streamsavedir): New decl.
8215         (fdsavedir): Add a comment deprecating this.
8216
8217 2010-09-10  Bruno Haible  <bruno@clisp.org>
8218
8219         langinfo: Fix last commit.
8220         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
8221         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
8222         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8223
8224 2010-09-10  Bruno Haible  <bruno@clisp.org>
8225
8226         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
8227         * lib/progreloc.c (O_EXEC): Define fallback.
8228
8229 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
8230
8231         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
8232         * NEWS: Document recent changes to fcntl-h.
8233         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
8234         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
8235         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
8236         Similarly for O_SEARCH; this last was already true, but not documented.
8237         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
8238         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
8239         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
8240         Likewise.
8241         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
8242         is zero, not whether it is defined.
8243         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
8244         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
8245         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
8246
8247 2010-09-10  Bruno Haible  <bruno@clisp.org>
8248
8249         langinfo, nl_langinfo: Fix for IRIX 5.3.
8250         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
8251         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
8252         HAVE_LANGINFO_YESEXPR.
8253         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
8254         HAVE_LANGINFO_YESEXPR.
8255         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
8256         HAVE_LANGINFO_T_FMT_AMPM is 0.
8257         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
8258         HAVE_LANGINFO_YESEXPR is 0.
8259         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
8260         NOEXPR.
8261         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
8262         * doc/posix-functions/nl_langinfo.texi: Likewise.
8263         Reported by Eric Blake.
8264
8265 2010-09-10  Bruno Haible  <bruno@clisp.org>
8266
8267         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
8268         * doc/glibc-functions/login_tty.texi: Mention the include file problem
8269         on FreeBSD 8.0 and OpenBSD 4.6.
8270         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
8271         * m4/pty_h.m4 (gl_PTY_H): Likewise.
8272         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
8273         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
8274         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
8275         ac_includes_default.
8276         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8277
8278 2010-09-09  Eric Blake  <eblake@redhat.com>
8279
8280         strsignal: work around NetBSD bug
8281         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
8282         * lib/string.in.h (includes): Likewise.
8283         * doc/posix-functions/strsignal.texi (strsignal): Document the
8284         bug.
8285         Reported by Nelson H. F. Beebe.
8286
8287         gnulib-tool: work with NetBSD /bin/sh
8288         * gnulib-tool (func_cache_var, func_cache_lookup_module)
8289         (func_get_description, func_get_comment, func_get_status)
8290         (func_get_notice, func_get_applicability, func_get_filelist)
8291         (func_get_dependencies, func_get_autoconf_early_snippet)
8292         (func_get_autoconf_snippet, func_get_automake_snippet)
8293         (func_get_include_directive, func_get_link_directive)
8294         (func_get_license, func_get_maintainer, func_import): Avoid
8295         shell syntax errors from parsing syntax extensions.
8296
8297 2010-09-09  Bruno Haible  <bruno@clisp.org>
8298
8299         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
8300         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
8301         a reliable way to determine whether the 'alias' command works.
8302
8303 2010-09-08  Jim Meyering  <meyering@redhat.com>
8304
8305         init.sh: penalize a set-x-impaired shell; don't disqualify it
8306         * tests/init.sh: Too many shells corrupt application stderr when
8307         you set -x, so we can't afford to disqualify them, since at least
8308         on Irix-6.5, that would disqualify all bourne shells.
8309         Instead, use a two-pass approach.
8310         On the first pass, try to find a shell that meets the stricter
8311         condition that set -x does not corrupt stderr.
8312         If no shell meets the stricter condition, retest each candidate
8313         shell, but without that extra condition.  Finally, when
8314         VERBOSE=yes is requested and set -x might cause trouble, simply
8315         issue a warning and refrain from enabling debug output.
8316
8317 2010-09-08  Eric Blake  <eblake@redhat.com>
8318
8319         unsetenv: fix OpenBSD bug
8320         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
8321         * doc/posix-functions/unsetenv.texi (unsetenv): Update
8322         documentation.
8323         Reported by Jim Meyering.
8324
8325         strtod: work around IRIX 6.5 bug
8326         * lib/strtod.c (strtod): Reparse number on shorter string if
8327         exponent parse was invalid.
8328         * tests/test-strtod.c (main): Add check for "0x1p 2".
8329         Reported by Tom G. Christensen.
8330
8331         getopt: optimize previous patch
8332         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
8333         empty variable.  Speed up awk script.
8334         Reported by Paolo Bonzini.
8335
8336 2010-09-08  Jim Meyering  <meyering@redhat.com>
8337
8338         test.sh: disqualify shells for which set -x corrupts stderr
8339         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
8340         and OpenBSD 4.7.  They make it so with "set -x", environment settings
8341         appear in stderr output.  For example, this command:
8342             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
8343         prints "P=1" on those two systems:
8344
8345 2010-09-08  Bruno Haible  <bruno@clisp.org>
8346
8347         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
8348         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
8349         commands, because some shells ignore redirections when there is an
8350         error in the command lookup.
8351         Reported by Eric Blake.
8352
8353 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
8354
8355         * lib/regex.h: Fix a mention of `regex_compile' (should be
8356         `re_compile_pattern').
8357         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
8358         (re_set_registers): Correct name of parameter in comment.
8359
8360         * doc/regex.texi: Add documentation for missing syntax flags.
8361         Remove commented-out documentation of defunct syntax option
8362         RE_NO_EMPTY_ALTS.
8363         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
8364         Add documentation of re_set_registers.
8365         Document trick to re-use a pattern buffer by setting fastmap manually.
8366         Update documentation of struct re_pattern_buffer per public members.
8367         Uncomment documentation of equivalence class operators and
8368         collating symbol operators, since they are now implemented,
8369         Explain leftmost-longest matching in relation to alternatives.
8370         Tidy documentation of substring matching.
8371         Remove POSIX documentation, which is done better in
8372         glibc, and refer the reader there. Keep BSD API documentation, as
8373         that is not readily available elsewhere.
8374
8375 2010-09-07  Eric Blake  <eblake@redhat.com>
8376
8377         getopt: handle POSIXLY_CORRECT set but not exported
8378         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
8379         export state of POSIXLY_CORRECT, due to bash set -o posix.
8380         Reported by Dustin J. Mitchell.
8381
8382 2010-09-05  Bruno Haible  <bruno@clisp.org>
8383
8384         gnulib-tool: Highlight the changed options.
8385         * gnulib-tool (func_usage): Display the --import, --add-import,
8386         --remove-import explanations in bold font.
8387
8388 2010-09-06  Karl Berry  <karl@gnu.org>
8389
8390         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
8391
8392 2010-09-05  Bruno Haible  <bruno@clisp.org>
8393
8394         uniwidth/width: Update comment.
8395         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
8396         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
8397
8398 2010-09-05  Bruno Haible  <bruno@clisp.org>
8399
8400         isinf, isnan: Relax license.
8401         * modules/isinf (License): Change from GPL to LGPL, with consent from
8402         Ben Pfaff.
8403         * modules/isnan (License): Likewise.
8404         Requested by Ludovic Courtès.
8405
8406 2010-09-04  Bruno Haible  <bruno@clisp.org>
8407
8408         gnulib-tool: Help migration from --import to --add-import or --update.
8409         * gnulib-tool: Emit a verbose error message when --import is used
8410         without any module name.
8411
8412 2010-09-04  Bruno Haible  <bruno@clisp.org>
8413
8414         Update doc about gnulib-tool.
8415         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
8416         'gnulib-tool --update' in more detail.
8417         Reported by Eric Blake.
8418
8419 2010-09-04  Bruno Haible  <bruno@clisp.org>
8420
8421         gnulib-tool: Change --import. New options --add/remove-import.
8422         * gnulib-tool: New options --add-import, --remove-import.
8423         (func_usage): Document them.
8424         (have_associative): Define always.
8425         (func_import): In import mode, don't merge the specified settings with
8426         the cached settings. Implement remove-import mode.
8427         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
8428         Explain when to use them versus --import.
8429         (Simple update): Use --add-import instead of --import.
8430         * NEWS: Mention the change.
8431
8432 2010-09-04  Bruno Haible  <bruno@clisp.org>
8433
8434         * doc/gnulib-tool.texi (Initial import): Update paragraph about
8435         separate gnulib.mk.
8436
8437 2010-09-04  Bruno Haible  <bruno@clisp.org>
8438
8439         gnulib-tool: Don't talk about CVS any more.
8440         * gnulib-tool (func_usage, func_import): Write "version control"
8441         instead of CVS.
8442
8443 2010-09-04  Jim Meyering  <meyering@redhat.com>
8444
8445         maint.mk: avoid obscure sc_copyright_check failure in coreutils
8446         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
8447         false positives (whose names may be ill-chosen) when searching
8448         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
8449         would cause a false-positive.
8450
8451         avoid coreutils "make distcheck" failure
8452         Coreutils tests with an absolute build directory name that contains
8453         a space.  Not quoting this directory name caused a failure.
8454         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
8455         * tests/test-vc-list-files-cvs.sh: Likewise.
8456
8457 2010-09-04  Bruno Haible  <bruno@clisp.org>
8458
8459         gnulib-tool: Avoid error when run in a package without Makefile.am.
8460         * gnulib-tool: When collecting the m4dirs in a package that does not
8461         have a Makefile.am, eliminate those directories that contain no
8462         gnulib-cache.m4. Fix expression that counts these directories.
8463
8464 2010-09-04  Bruno Haible  <bruno@clisp.org>
8465
8466         update-copyright test: Improve output when perl is missing or too old.
8467         * tests/test-update-copyright.sh: Move test of Perl version down after
8468         the test whether Perl exists. Provide an explanation relating Perl's
8469         error message to Automake's SKIP: message.
8470
8471 2010-09-04  Bruno Haible  <bruno@clisp.org>
8472
8473         Don't augment PATH in TESTS_ENVIRONMENT.
8474         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
8475         set abs_aux_dir instead of augmenting PATH.
8476         * modules/vc-list-files-tests (Makefile.am): Likewise.
8477         * tests/test-update-copyright.sh: Augment PATH here.
8478         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
8479         path_prepend_.
8480         * tests/test-vc-list-files-git.sh: Likewise.
8481
8482 2010-09-04  Jim Meyering  <meyering@redhat.com>
8483
8484         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
8485         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
8486
8487 2010-09-04  Bruno Haible  <bruno@clisp.org>
8488
8489         strdup: Fix compilation error in C++ mode.
8490         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
8491         the macro.
8492
8493 2010-09-04  Bruno Haible  <bruno@clisp.org>
8494
8495         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
8496         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
8497         macro into a function.
8498         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8499
8500 2010-09-04  Bruno Haible  <bruno@clisp.org>
8501
8502         Set PATH_SEPARATOR the same way autoconf does.
8503         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
8504         the value of PATH_SEPARATOR the same way autoconf-generated configure
8505         scripts do.
8506         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
8507         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
8508
8509 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
8510
8511         Set PATH_SEPARATOR the same way autoconf does.
8512         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
8513         the same way autoconf-generated configure scripts do.
8514         * posix-modules: Likewise.
8515
8516 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
8517
8518         hash: fix safe_hasher const typo
8519         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
8520         const; otherwise, there is a type error later.
8521
8522 2010-09-02  Jim Meyering  <meyering@redhat.com>
8523
8524         test-update-copyright.sh: require perl 5.8.0
8525         * tests/test-update-copyright.sh: Require 5.8.0,
8526         which Tom G. Christensen has confirmed is adequate,
8527         while 5.6.1 is not.
8528
8529 2010-09-02  Eric Blake  <eblake@redhat.com>
8530
8531         tests: init.sh improvements for re-exec'ing with zsh
8532         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
8533         -vx through shell re-exec.
8534         Reported by Tom G. Christensen.
8535
8536         wctype: fix typo in previous commit
8537         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
8538         Reported by Ludovic Courtès.
8539
8540 2010-09-02  Jim Meyering  <meyering@redhat.com>
8541
8542         test-update-copyright.sh: skip test if Perl is too old
8543         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
8544         Reported by Tom G. Christensen.
8545
8546 2010-09-02  Bruno Haible  <bruno@clisp.org>
8547
8548         wctype: Avoid compilation error on IRIX 6.5.30.
8549         * lib/wctype.in.h (iswblank): Declare with a replacement if
8550         REPLACE_ISWBLANK is set.
8551         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
8552         declared. Set REPLACE_ISWBLANK.
8553         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
8554         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
8555         * doc/posix-headers/wctype.texi: Likewise.
8556         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8557
8558 2010-09-01  Bruno Haible  <bruno@clisp.org>
8559
8560         New module 'socketlib'.
8561         * modules/socketlib: New file.
8562         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
8563         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
8564         * modules/sockets (Depends-on): Add socketlib.
8565         Suggested by Sam Steingold <sds@gnu.org>.
8566
8567 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
8568
8569         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
8570
8571         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
8572         when one needs search access to a directory but not read access.
8573         On systems where it is available, it works in some cases where
8574         O_RDONLY does not, namely on directories that are searchable but
8575         not readable, and which need only to be searchable.  If O_SEARCH
8576         is not available, fall back to the traditional method of using
8577         O_RDONLY.
8578
8579         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
8580         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
8581         when opening a directory that needs only to be searchable.
8582         * lib/chdir-safer.c (chdir_no_follow): Likewise.
8583         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
8584         * lib/openat-proc.c (openat_proc_name): Likewise.
8585         * lib/openat.c (openat_needs_fchdir): Likewise.
8586         * lib/save-cwd.c (save_cwd): Likewise.
8587         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
8588
8589 2010-08-28  Bruno Haible  <bruno@clisp.org>
8590
8591         New module 'host-cpu-c-abi'.
8592         * modules/host-cpu-c-abi: New file.
8593         * m4/host-cpu-c-abi.m4: New file, based on part of
8594         clisp/src/m4/general.m4.
8595         Requested by Sam Steingold <sds@gnu.org>.
8596
8597 2010-08-31  Eric Blake  <eblake@redhat.com>
8598         and Jim Meyering  <meyering@redhat.com>
8599
8600         hash: factor, and guard against misbehaving hasher function
8601         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
8602         of table->hasher's return value.  Also protect against a hash value
8603         so large that adding it to table->bucket results in a NULL pointer.
8604         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
8605         Use it in place of open-coded check-and-abort.
8606
8607 2010-08-30  Bruno Haible  <bruno@clisp.org>
8608
8609         hash: silence spurious clang warning
8610         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
8611         Reported by Eric Blake.
8612
8613 2010-08-30  Eric Blake  <eblake@redhat.com>
8614
8615         strstr, memmem, strcasestr: avoid leaked shell message
8616         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
8617         FreeBSD.
8618         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
8619         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
8620
8621         tests: silence clang warning
8622         * tests/test-malloca.c (do_allocation): Avoid dead store.
8623
8624 2010-08-29  Bruno Haible  <bruno@clisp.org>
8625
8626         gettext: Fix recent mistake.
8627         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
8628
8629 2010-08-29  Bruno Haible  <bruno@clisp.org>
8630
8631         selinux-h: Offer a --without-selinux option.
8632         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
8633         --without-selinux was specified, skip all tests and define
8634         HAVE_SELINUX_SELINUX_H to 0.
8635         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
8636         set LIB_SELINUX to empty.
8637         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
8638         gl_LIBSELINUX. If --without-selinux was specified, replace
8639         selinux/context.h.
8640         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
8641
8642 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8643             Bruno Haible  <bruno@clisp.org>
8644
8645         Make the module 'realloc-gnu' work again on AIX and OSF/1.
8646         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
8647         of HAVE_REALLOC.
8648         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
8649         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
8650         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
8651         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
8652
8653 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8654             Bruno Haible  <bruno@clisp.org>
8655
8656         Make the module 'calloc-gnu' work again on AIX and OSF/1.
8657         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
8658         HAVE_CALLOC.
8659         * lib/xmalloc.c: Update accordingly.
8660         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
8661         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
8662         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
8663
8664 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8665             Bruno Haible  <bruno@clisp.org>
8666
8667         Make the module 'malloc-gnu' work again on AIX and OSF/1.
8668         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
8669         HAVE_MALLOC.
8670         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
8671         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
8672         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
8673
8674 2010-08-29  Bruno Haible  <bruno@clisp.org>
8675
8676         Update modules list.
8677         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
8678         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
8679         (String handling <string.h>): Add astrxfrm.
8680         (File system functions): Add readlinkat.
8681
8682 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8683
8684         Tests for module 'realloc-gnu'.
8685         * modules/realloc-gnu-tests: New file.
8686         * tests/test-realloc-gnu.c: New file.
8687
8688         Tests for module 'calloc-gnu'.
8689         * modules/calloc-gnu-tests: New file.
8690         * tests/test-calloc-gnu.c: New file.
8691
8692         Tests for module 'malloc-gnu'.
8693         * modules/malloc-gnu-tests: New file.
8694         * tests/test-malloc-gnu.c: New file.
8695
8696 2010-08-28  Bruno Haible  <bruno@clisp.org>
8697
8698         Rename module 'realloc' -> 'realloc-gnu'.
8699         * modules/realloc-gnu: New file, copied from modules/realloc.
8700         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
8701         obsolete.
8702         * modules/mgetgroups (Depends-on): Update.
8703         * doc/posix-functions/realloc.texi: Update.
8704         * NEWS: Mention the change.
8705
8706         Rename module 'calloc' -> 'calloc-gnu'.
8707         * modules/calloc-gnu: New file, copied from modules/calloc.
8708         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
8709         obsolete.
8710         * doc/posix-functions/calloc.texi: Update.
8711         * NEWS: Mention the change.
8712
8713         Rename module 'malloc' -> 'malloc-gnu'.
8714         * modules/malloc-gnu: New file, copied from modules/malloc.
8715         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
8716         obsolete.
8717         * modules/argp (Depends-on): Update.
8718         * modules/regex (Depends-on): Update.
8719         * doc/posix-functions/malloc.texi: Update.
8720         * NEWS: Mention the change.
8721
8722 2010-08-28  Eric Blake  <eblake@redhat.com>
8723
8724         pread, pwrite: add missing dependency
8725         * modules/pread (Depends-on): Add extensions.
8726         * modules/pwrite (Depends-on): Likewise.
8727
8728 2010-08-28  Bruno Haible  <bruno@clisp.org>
8729
8730         unistr/u*-strchr: Fix tests dependencies.
8731         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
8732         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
8733         Reported by Ian Beckwith <ianb@erislabs.net>.
8734
8735 2010-08-28  Bruno Haible  <bruno@clisp.org>
8736
8737         read-file: Don't occupy too much unused memory.
8738         * lib/read-file.c (fread_file): Shrink the buffer at the end.
8739
8740 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
8741             Eric Blake  <eblake@redhat.com>
8742             Bruno Haible  <bruno@clisp.org>
8743
8744         read-file: Avoid memory reallocations with regular files.
8745         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
8746         (fread_file): With regular files, use the remaining length as the
8747         initial buffer size.  Check against overflow.
8748         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
8749         sys_stat.
8750
8751 2010-08-28  Bruno Haible  <bruno@clisp.org>
8752
8753         ftello: Relax license.
8754         * modules/ftello (License): Relax to LGPLv2+.
8755         Reported by Eric Blake.
8756
8757 2010-08-28  Bruno Haible  <bruno@clisp.org>
8758
8759         Avoid relocwrapper link errors due to gnulib replacement functions.
8760         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
8761         function.
8762         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8763
8764 2010-08-28  Bruno Haible  <bruno@clisp.org>
8765
8766         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
8767         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
8768         defined.
8769         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
8770         Suggested by Eric Blake.
8771
8772 2010-08-28  Bruno Haible  <bruno@clisp.org>
8773
8774         sys_socket, netdb: Ensure socklen_t gets defined.
8775         * modules/sys_socket (Depends-on): Add socklen.
8776         * modules/netdb (Depends-on): Likewise.
8777         * modules/getaddrinfo (Depends-on): Remove socklen.
8778         * modules/getsockopt (Depends-on): Likewise.
8779         * modules/setsockopt (Depends-on): Likewise.
8780         * tests/test-sys_socket.c: Check that socklen_t is defined.
8781         * tests/test-netdb.c: Likewise.
8782         * m4/socklen.m4: Update comments.
8783         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8784
8785 2010-08-27  Eric Blake  <eblake@redhat.com>
8786
8787         login_tty: add missing dependency
8788         * modules/login_tty (Depends-on): Add pty.
8789
8790 2010-08-26  Eric Blake  <eblake@redhat.com>
8791
8792         lib-symbol-versions: fix m4 quoting
8793         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
8794         format for AC_LINK_IFELSE.
8795
8796         glob: fix compile test
8797         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
8798
8799         btowc: fix missing file
8800         * modules/btowc (Files): Also ship locale-fr.m4.
8801
8802         lseek: fix link test
8803         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
8804         AC_LINK_IFELSE.
8805
8806         include_next: silence autoconf 2.68 warning
8807         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
8808         AC_COMPILE_IFELSE as special.
8809         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
8810         autoconf < 2.68.
8811
8812         acl: fix compilation test
8813         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
8814         AC_COMPILE_IFELSE.
8815
8816 2010-08-26  Bruno Haible  <bruno@clisp.org>
8817
8818         Modernize AC_TRY_RUN invocations.
8819         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
8820         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
8821         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
8822         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
8823         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
8824         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
8825         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
8826         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
8827         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
8828         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
8829         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
8830         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
8831         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
8832         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
8833         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
8834         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
8835         gl_MBRLEN_NUL_RETVAL): Likewise.
8836         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
8837         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
8838         Likewise.
8839         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8840         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8841         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
8842         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
8843         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
8844         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
8845         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
8846         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
8847         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
8848         Likewise.
8849         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
8850         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
8851         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8852         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
8853         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8854         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
8855         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8856         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
8857         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8858         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8859
8860 2010-08-26  Bruno Haible  <bruno@clisp.org>
8861
8862         Modernize AC_TRY_LINK invocations.
8863         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
8864         AC_TRY_LINK.
8865         * m4/argp.m4 (gl_ARGP): Likewise.
8866         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
8867         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8868         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
8869         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
8870         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
8871         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
8872         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
8873         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
8874         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
8875         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
8876         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
8877         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
8878         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
8879         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
8880         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
8881         * m4/hostent.m4 (gl_HOSTENT): Likewise.
8882         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
8883         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
8884         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
8885         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
8886         Likewise.
8887         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
8888         Likewise.
8889         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
8890         Likewise.
8891         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
8892         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
8893         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
8894         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
8895         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
8896         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
8897         * m4/servent.m4 (gl_SERVENT): Likewise.
8898         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
8899         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
8900         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
8901         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
8902         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
8903         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
8904         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8905         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8906         * modules/tsearch-tests (configure.ac): Likewise.
8907
8908 2010-08-26  Bruno Haible  <bruno@clisp.org>
8909
8910         Modernize AC_TRY_COMPILE invocations.
8911         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
8912         AC_TRY_COMPILE.
8913         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
8914         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
8915         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
8916         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
8917         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
8918         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
8919         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
8920         * m4/lock.m4 (gl_LOCK): Likewise.
8921         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
8922         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
8923         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
8924         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
8925         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
8926         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
8927         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
8928         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
8929         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
8930         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
8931         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
8932         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
8933         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
8934         extraneous semicolon.
8935
8936 2010-08-26  Jim Meyering  <meyering@redhat.com>
8937
8938         stat-time: relax license LGPL
8939         * modules/stat-time (License): Change from GPL to LGPL,
8940         with consent from all contributors, for use in libguile.
8941         Requested by Ludovic Courtès.
8942
8943 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
8944
8945         poll: return immediately on POLLHUP.
8946         * lib/poll.c (poll): Always set timeout before wait_timeout is
8947         computed.
8948
8949 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8950
8951         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
8952         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
8953         rmdir ("dir/.//"), unlinkat.
8954
8955 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
8956
8957         stdbool: avoid spurious failure with modern xlc
8958         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
8959
8960 2010-08-24  Bruno Haible  <bruno@clisp.org>
8961
8962         getloadavg: simplify code
8963         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
8964         gl_have_func. Update comments.
8965
8966 2010-08-24  Eric Blake  <eblake@redhat.com>
8967
8968         getloadavg: don't define SVR4 on cygwin
8969         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
8970         only define SVR4 when -lkvm is required.
8971         Reported by Yaakov Selkowitz.
8972
8973 2010-08-24  Bruno Haible  <bruno@clisp.org>
8974
8975         priv-set: fix comment
8976         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
8977
8978 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
8979
8980         priv-set: fix comments
8981         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
8982         to match code, as suggested by David Bartley in:
8983         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
8984
8985 2010-08-23  Eric Blake  <eblake@redhat.com>
8986
8987         stdbool: avoid rejecting clang
8988         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
8989         * tests/test-stdbool.c: Enable more tests if using the system
8990         <stdbool.h> instead of the gnulib replacement.
8991         (main): Move xlc bug test to a runtime test for all compilers.
8992         Reported by Anders Kaseorg.
8993
8994         argz: fix shell quoting issue
8995         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
8996         Reported by Charles Wilson.
8997
8998 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
8999             Erik Faye-Lund <kusmabite@gmail.com>
9000
9001         poll, select: handle ERROR_BROKEN_PIPE.
9002         * lib/poll.c (win32_compute_revents): Return POLLHUP when
9003         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
9004         * lib/select.c (win32_compute_revents): Do not mark a pipe
9005         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
9006
9007 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
9008
9009         fts: allow compilation with C++
9010         * lib/fts_.h: Specify extern "C" linkage with C++.
9011
9012 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9013
9014         Fix gnulib-tool sed script de-commentation for AIX sed.
9015         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
9016         sed.
9017
9018 2010-08-17  Eric Blake  <eblake@redhat.com>
9019
9020         test-stddef: test for (some) offsetof bugs
9021         * tests/test-stddef.c: Enhance test to ensure correct type of
9022         offsetof.
9023         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
9024         that we are not fixing at this time.
9025
9026 2010-08-15  Bruno Haible  <bruno@clisp.org>
9027
9028         stpncpy: Allow stpncpy to be defined as a macro.
9029         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
9030         if it's already correctly declared.
9031         * lib/string.in.h (stpncpy): Undefine before redefining.
9032         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
9033
9034 2010-08-14  Bruno Haible  <bruno@clisp.org>
9035
9036         Rename module 'memxfrm' to 'amemxfrm'.
9037         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
9038         (amemxfrm): Renamed from memxfrm.
9039         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
9040         (amemxfrm): Renamed from memxfrm.
9041         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
9042         * NEWS: Mention the change.
9043         * MODULES.html.sh (String handling <string.h>): Update.
9044         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
9045         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
9046         * lib/unicase/u16-casexfrm.c: Likewise.
9047         * lib/unicase/u32-casexfrm.c: Likewise.
9048         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
9049         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
9050         * lib/uninorm/u16-normxfrm.c: Likewise.
9051         * lib/uninorm/u32-normxfrm.c: Likewise.
9052         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
9053         memxfrm.
9054         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
9055         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
9056         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
9057         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
9058         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
9059         Suggested by Paul Eggert.
9060
9061 2010-08-14  Bruno Haible  <bruno@clisp.org>
9062
9063         Tests for module 'astrxfrm'.
9064         * modules/astrxfrm-tests: New file.
9065         * tests/test-astrxfrm.c: New file.
9066
9067         New module 'astrxfrm'.
9068         * lib/astrxfrm.h: New file.
9069         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
9070         * modules/astrxfrm: New file.
9071
9072 2010-08-14  Reuben Thomas <rrt@sc3d.org>
9073
9074         regex: Tweak doc.
9075         * doc/regex.texi (Overview): Don't mention regex.c.
9076         (GNU Regular Expression Compiling): Likewise.
9077         (Match-end-of-line Operator): Mention 'not_eol'.
9078
9079 2010-08-14  Brian Gough  <bjg@gnu.org>
9080             Bruno Haible  <bruno@clisp.org>
9081
9082         git-merge-changelog: add doc relating to use with bzr and hg.
9083         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
9084
9085 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
9086
9087         pthread: fix pthread.h creation for srcdir != builddir
9088         * modules/pthread (Makefile.am): Fix the rule to work also in a
9089         non-srcdir build.
9090
9091 2010-08-13  Karl Berry  <karl@gnu.org>
9092
9093         * doc/regex.texi (Predefined Syntaxes): @smallexample.
9094         * doc/posix-*/*: force line break before @url of POSIX
9095         specifications.
9096         Suggested by Werner Lemberg.
9097
9098 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
9099
9100         strtod: fix const diagnostic
9101         * lib/strtod.c (strtod): Don't assign const char * to char *,
9102         as this elicits a warning from GCC when warnings are enabled.
9103
9104 2010-08-10  Pádraig Brady <P@draigbrady.com>
9105         and Eric Blake  <eblake@redhat.com>
9106
9107         copy-acl: ignore ENOTSUP on HP-UX
9108         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
9109         so that it is available for HP-UX.
9110         * lib/copy-acl.c (qcopy_acl): Use it.
9111         Reported by Patrick M. Callahan.
9112
9113 2010-08-10  Eric Blake  <eblake@redhat.com>
9114
9115         open, chown: relax license
9116         * modules/open (License): Change to LGPLv2+, with consent by all
9117         authors, for use in augeas.
9118         * modules/chown (License): Likewise.
9119         * modules/lchown (Likewise): Likewise.
9120         Requested by Adam Stokes.
9121
9122 2010-08-09  Karl Berry  <karl@gnu.org>
9123
9124         * build-aux/ar-lib: new file, import from Automake.
9125         * config/srclist.txt: autocheck for updates.
9126
9127 2010-08-09  Eric Blake  <eblake@redhat.com>
9128
9129         readlinkat: adjust client modules
9130         * modules/areadlinkat (Depends-on): Use readlinkat, not
9131         symlinkat.
9132         * modules/areadlinkat-with-size (Depends-on): Likewise.
9133
9134         mknod: be more vocal about danger of running tests as root
9135         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
9136         root, since that is just asking for problems.
9137         Suggested by Bruno Haible, based on a report by Rainer Tammer.
9138
9139         readlinkat: split into its own module
9140         * modules/symlinkat: Split readlinkat...
9141         * modules/readlinkat: ...into separate module.
9142         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
9143         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
9144         * lib/symlinkat.c (readlinkat): Move...
9145         * lib/readlinkat.c: ...into new file.
9146         * modules/symlinkat-tests: Split readlinkat test...
9147         * modules/readlinkat-tests: ...into separate module.
9148         * tests/test-symlinkat.c: Split...
9149         * tests/test-readlinkat.c: ...into new file.
9150         * NEWS: Document the split.
9151         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9152         * lib/unistd.in.h (readlinkat): Likewise.
9153         Suggested by Bruno Haible.
9154
9155 2010-08-08  Bruno Haible  <bruno@clisp.org>
9156
9157         memxfrm: Speed up.
9158         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
9159         that usually only one call to strxfrm is necessary for each string
9160         part.
9161         Reported by Paul Eggert <eggert@cs.ucla.edu>.
9162
9163 2010-08-07  Karl Berry  <karl@gnu.org>
9164
9165         * doc/posix-headers/limits.texi,
9166         * doc/posix-functions/malloc.texi,
9167         * doc/posix-functions/strsignal.texi: missing @item.
9168         * doc/ld-version-script.texi: spurious leading i.
9169         * doc/regex.texi (Interval Operators): no commas inside @var.
9170
9171 2010-08-01  Bruno Haible  <bruno@clisp.org>
9172
9173         Integrate the regex documentation.
9174         * doc/gnulib.texi: Define 'cn' index.
9175         (Regular expressions): New a chapter that includes regex.texi and
9176         regexprops-generic.texi.
9177         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
9178         syntax.
9179
9180         Whitespace cleanup.
9181         * doc/regex.texi: Remove trailing spaces.
9182
9183         Add regex documentation.
9184         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
9185         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
9186         Written by Kathy A. Hargreaves and Karl Berry.
9187
9188 2010-08-01  Bruno Haible  <bruno@clisp.org>
9189
9190         link: Update documentation.
9191         * doc/posix-functions/link.texi: Update regarding Solaris.
9192
9193 2010-07-31  Bruno Haible  <bruno@clisp.org>
9194
9195         Update modules list.
9196         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
9197         (String handling <string.h>): Add memcmp2, memxfrm.
9198         (Container data structures): Add xlist, xsublist, xoset.
9199         (Core language properties): Add alignof, unused-parameter.
9200         (Process control, Numeric conversion functions <stdlib.h>): Renamed
9201         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
9202         (Unibyte characters <ctype.h>): New section.
9203         (String handling <string.h>): New section.
9204         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
9205         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
9206         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
9207         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
9208         tan, tanh, tanl, y0, y1, yn.
9209         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
9210         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
9211         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
9212         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
9213         unlockpt, vdprintf, vdprintf-posix.
9214         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
9215         (File system functions): Add concat-filename, sys_file, sys_ioctl,
9216         xconcat-filename.
9217         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
9218         getdtablesize, pipe2, pipe2-safer.
9219         (Security): New section.
9220         (Networking functions): Add accept4.
9221         (Signal handling): Add sigpipe.
9222         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
9223         mbmemcasecoll.
9224         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
9225         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
9226         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
9227         pipe-filter-ii.
9228         (Misc): Add argp-version-etc, login_tty, parse-duration.
9229
9230 2010-07-31  Bruno Haible  <bruno@clisp.org>
9231
9232         Improve doc in MODULES.html.
9233         * modules/linkat (Description): Add the word "function".
9234         * modules/mkfifo (Description): Likewise.
9235         * modules/mknod (Description): Likewise.
9236         * modules/remove (Description): Likewise.
9237         * modules/renameat (Description): Likewise.
9238         * modules/stat (Description): Likewise.
9239         * modules/symlink (Description): Likewise.
9240         * modules/unlink (Description): Likewise.
9241
9242 2010-07-31  Bruno Haible  <bruno@clisp.org>
9243
9244         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
9245         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
9246         option --enable/disable-c++ instead of --enable/disable-cxx.
9247         * NEWS: Mention the change.
9248
9249 2010-07-31  Bruno Haible  <bruno@clisp.org>
9250
9251         readlink, areadlink: Relax test a bit.
9252         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
9253         alternative to ENOTDIR.
9254         * tests/test-areadlink.h (test_areadlink): Likewise.
9255         Reported by Rainer Tammer.
9256
9257 2010-07-31  Bruno Haible  <bruno@clisp.org>
9258
9259         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
9260         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
9261         character, perform the search using U_STRCHR.
9262         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
9263         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
9264         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
9265         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
9266         Suggested by Paolo Bonzini.
9267
9268 2010-07-31  Bruno Haible  <bruno@clisp.org>
9269
9270         unistr/u*-strstr: Fix dependencies.
9271         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
9272         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
9273         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
9274
9275 2010-07-31  Bruno Haible  <bruno@clisp.org>
9276
9277         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
9278         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
9279         the beginning of the loop.
9280         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
9281         cases in 'switch' statement.
9282
9283         unistr/u8-strchr: Fix several bugs.
9284         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
9285         the string. When not found, return NULL, not a pointer near the end.
9286
9287         More tests for unistr/u8-strchr.
9288         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
9289         that the function does not read past the first occurrence of the byte
9290         being searched.
9291         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
9292         * tests/unistr/test-u16-strchr.c (main): New function.
9293         * tests/unistr/test-u32-strchr.c (main): New function.
9294
9295 2010-07-31  Bruno Haible  <bruno@clisp.org>
9296
9297         posix-modules: Ignore backup files of documentation files.
9298         * posix-modules: grep only through files named *.texi.
9299
9300 2010-07-31  Bruno Haible  <bruno@clisp.org>
9301
9302         symlinkat: Fix documentation.
9303         * doc/posix-functions/readlinkat.texi: Fix module name.
9304
9305 2010-07-31  Bruno Haible  <bruno@clisp.org>
9306
9307         fchownat: Replace also when chown has the trailing slash bug.
9308         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
9309         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
9310         introduced on 2010-04-10.
9311         Reported by Rainer Tammer.
9312
9313 2010-07-31  Bruno Haible  <bruno@clisp.org>
9314
9315         linkat: Work around AIX 7.1 bug.
9316         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
9317         whether linkat handles trailing slash correctly. If not, replace linkat
9318         and define LINKAT_TRAILING_SLASH_BUG.
9319         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
9320         check whether (fd1,file1) points to a directory if file1 or file2 ends
9321         in a slash. Code taken from lib/link.c.
9322         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
9323         Reported by Rainer Tammer.
9324
9325 2010-07-31  Bruno Haible  <bruno@clisp.org>
9326
9327         Correctly determine whether pow is available in libc on AIX 7 with xlc.
9328         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
9329         This disables an xlc optimization that was causing wrong test results.
9330         Reported by Rainer Tammer.
9331
9332 2010-07-31  Bruno Haible  <bruno@clisp.org>
9333
9334         iconv: Work around AIX 6.1..7.1 bug.
9335         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
9336         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
9337         cross-compiling, guess no on all versions of AIX.
9338         Reported by Rainer Tammer.
9339
9340 2010-07-31  Bruno Haible  <bruno@clisp.org>
9341
9342         readlink: Relax test a bit.
9343         * tests/test-readlink.h (test_readlink): Allow different errno value
9344         when readlink is called with a file name that ends in / and refers to
9345         a file.
9346         Suggested by Eric Blake.
9347         Reported by Rainer Tammer.
9348
9349 2010-07-31  Bruno Haible  <bruno@clisp.org>
9350
9351         copysign: Does not require -lm on glibc systems.
9352         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
9353         gl_COMMON_DOUBLE_MATHFUNC.
9354         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
9355
9356 2010-07-31  Bruno Haible  <bruno@clisp.org>
9357
9358         duplocale: Work around AIX 7.1 bug.
9359         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
9360         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
9361         * lib/duplocale.c (rpl_duplocale): Update comment.
9362         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
9363         Reported by Rainer Tammer.
9364
9365 2010-07-30  Bruno Haible  <bruno@clisp.org>
9366
9367         dirfd: Avoid link error on AIX 7.1.
9368         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
9369         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
9370         exist, set REPLACE_DIRFD.
9371         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
9372         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
9373         * doc/posix-functions/dirfd.texi: Update.
9374         Reported by Rainer Tammer.
9375
9376 2010-07-30  Eric Blake  <eblake@redhat.com>
9377
9378         strtod: next round of AIX fixes
9379         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
9380         exponent.
9381         * tests/test-strtod.c (main): Enhance tests.
9382         * doc/posix-functions/strtod.texi (strtod): Document next bug.
9383         Reported by Rainer Tammer.
9384
9385         futimens: fix configure check
9386         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
9387         Reported by Bruno Haible.
9388
9389 2010-07-30  Bruno Haible  <bruno@clisp.org>
9390
9391         getline: Update regarding AIX.
9392         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
9393         Reported by Rainer Tammer.
9394
9395 2010-07-30  Bruno Haible  <bruno@clisp.org>
9396
9397         wcwidth: Drop replacement on AIX 7.
9398         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
9399         AIX 7.
9400         Reported by Rainer Tammer.
9401
9402 2010-07-30  Bruno Haible  <bruno@clisp.org>
9403
9404         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
9405         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
9406         a 'char *'.
9407         Reported by Rainer Tammer.
9408
9409 2010-07-30  Bruno Haible  <bruno@clisp.org>
9410
9411         unlink: Update regarding AIX.
9412         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
9413         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
9414         Reported by Rainer Tammer.
9415
9416 2010-07-30  Bruno Haible  <bruno@clisp.org>
9417
9418         symlink: Update regarding AIX.
9419         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
9420         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
9421         Reported by Rainer Tammer.
9422
9423 2010-07-30  Bruno Haible  <bruno@clisp.org>
9424
9425         strndup: Update regarding AIX.
9426         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
9427         AIX 7.
9428         Reported by Rainer Tammer.
9429
9430 2010-07-30  Bruno Haible  <bruno@clisp.org>
9431
9432         stat: Update regarding AIX.
9433         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
9434         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
9435         Reported by Rainer Tammer.
9436
9437 2010-07-30  Bruno Haible  <bruno@clisp.org>
9438
9439         truncl: Fix autoconf test.
9440         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
9441         whether truncl works.
9442         Reported by Rainer Tammer.
9443
9444 2010-07-30  Bruno Haible  <bruno@clisp.org>
9445
9446         round: Update regarding AIX.
9447         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
9448         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
9449         Reported by Rainer Tammer.
9450
9451 2010-07-30  Bruno Haible  <bruno@clisp.org>
9452
9453         rename: Update regarding AIX.
9454         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
9455         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
9456         Reported by Rainer Tammer.
9457
9458 2010-07-30  Bruno Haible  <bruno@clisp.org>
9459
9460         printf.m4: Update regarding AIX.
9461         * m4/printf.m4: Update comments regarding AIX.
9462         Reported by Rainer Tammer.
9463
9464 2010-07-30  Bruno Haible  <bruno@clisp.org>
9465
9466         iconv: Update regarding AIX.
9467         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
9468         AIX 7.
9469         Reported by Rainer Tammer.
9470
9471 2010-07-30  Bruno Haible  <bruno@clisp.org>
9472
9473         getopt: Update regarding AIX.
9474         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
9475         no on AIX.
9476         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
9477         Reported by Rainer Tammer.
9478
9479 2010-07-30  Bruno Haible  <bruno@clisp.org>
9480
9481         ldexpl; Update regarding AIX.
9482         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
9483         on AIX 7.
9484         Reported by Rainer Tammer.
9485
9486 2010-07-30  Bruno Haible  <bruno@clisp.org>
9487
9488         frexpl: Update regarding AIX.
9489         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
9490         on AIX 7.
9491         Reported by Rainer Tammer.
9492
9493 2010-07-30  Bruno Haible  <bruno@clisp.org>
9494
9495         open, fopen: Update regarding AIX.
9496         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
9497         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
9498         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
9499         * doc/posix-functions/fopen.texi: Likewise.
9500         Reported by Rainer Tammer.
9501
9502 2010-07-30  Bruno Haible  <bruno@clisp.org>
9503
9504         chown: Update doc regarding AIX.
9505         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
9506         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
9507         Reported by Rainer Tammer.
9508
9509 2010-07-30  Eric Blake  <eblake@redhat.com>
9510
9511         strtod: fix bug in replacement function on AIX
9512         * lib/strtod.c (strtod): Special case broken "0x" parse in
9513         underlying strtod.
9514         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
9515         * doc/posix-functions/strtod.texi (strtod): Likewise.
9516         Reported by Rainer Tammer.
9517
9518 2010-07-30  Bruno Haible  <bruno@clisp.org>
9519
9520         mbrlen: Fix cross-compilation guess for AIX.
9521         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
9522         guess. Leftover from 2008-12-22.
9523
9524 2010-07-30  Bruno Haible  <bruno@clisp.org>
9525
9526         mbrtowc: Fix cross-compilation guess for AIX.
9527         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
9528         guess. Leftover from 2008-12-21.
9529
9530 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
9531
9532         init.sh: work around trap limitation of some shells
9533         * tests/init.sh (setup_): Move exit trap outside of shell function.
9534
9535 2010-07-29  Eric Blake  <eblake@redhat.com>
9536
9537         strtod: aid debugging
9538         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
9539         understanding why strtod is rejected.
9540
9541 2010-07-28  Bruno Haible  <bruno@clisp.org>
9542
9543         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
9544         * lib/unistr/u8-chr.c: Include <string.h>.
9545         * tests/unistr/test-u8-chr.c: Likewise.
9546         * tests/unistr/test-u16-chr.c: Likewise.
9547         * tests/unistr/test-u32-chr.c: Likewise.
9548         * tests/unistr/test-u8-strchr.c: Likewise.
9549         * tests/unistr/test-u16-strchr.c: Likewise.
9550         * tests/unistr/test-u32-strchr.c: Likewise.
9551         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
9552         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
9553         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
9554         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
9555
9556 2010-07-28  Bruno Haible  <bruno@clisp.org>
9557
9558         Use spaces for indentation, not tabs.
9559         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
9560
9561 2010-07-27  Bruno Haible  <bruno@clisp.org>
9562
9563         mbspcasecmp: Fix function specification.
9564         * lib/string.in.h (mbspcasecmp): Fix specification comment.
9565         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
9566         Reported by Eric Blake <eblake@redhat.com>.
9567
9568 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
9569
9570         timespec: use cast and not conditional, as truncation isn't possible
9571         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
9572         instead of a conditional.  Comment about the situation in more detail.
9573         This undoes most of the 2009-10-29 patch.
9574
9575 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
9576
9577         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
9578         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
9579         * lib/unistr/u8-strchr.c: Likewise.
9580         * modules/unistr/u8-chr: Depend on memchr.
9581
9582         unistr/u*-strchr: add tests
9583         * modules/unistr/u8-strchr-tests: New file.
9584         * modules/unistr/u16-strchr-tests: New file.
9585         * modules/unistr/u32-strchr-tests: New file.
9586         * tests/unistr/test-strchr.h: New file.
9587         * tests/unistr/test-u8-strchr.c: New file.
9588         * tests/unistr/test-u16-strchr.c: New file.
9589         * tests/unistr/test-u32-strchr.c: New file.
9590
9591         unistr/u*-chr: test multibyte sequences more
9592         * tests/unistr/test-chr.h: Do complete testing of the characters in the
9593         test vector.
9594         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
9595         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
9596         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
9597
9598         unistr/u*-chr: test multibyte sequences
9599         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
9600
9601         unistr/u*-chr: prepare for multibyte tests
9602         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
9603         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
9604         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
9605         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
9606         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
9607         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
9608
9609 2010-07-18  Bruno Haible  <bruno@clisp.org>
9610
9611         unistr/u8-strchr: Optimize non-ASCII argument case.
9612         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
9613         because the first byte often matches anyway.
9614         Reported by Pádraig Brady <P@draigbrady.com>.
9615
9616 2010-07-15  Karl Berry  <karl@gnu.org>
9617
9618         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
9619
9620 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
9621
9622         getcwd: on Solaris, work better if ancestors are inaccessible
9623         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
9624         buffer and size, try again with a large buffer.  This works better
9625         on Solaris, since its getcwd succeeds even if the path to the root
9626         is inaccessible, and this is helpful in common cases such as .zfs
9627         hidden directories.  Problem reported by J Chapman Flack in
9628         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
9629         Use system getcwd if it's declared, not merely if it's partly
9630         working; use the partly-working test only to avoid needless effort
9631         if the system getcwd fails.
9632         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
9633         comment that was already obsolete and is now even more obsolete.
9634         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
9635         now might call strdup.
9636
9637 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
9638
9639         pthread: Add enough so that coreutils/src/sort.c compiles.
9640         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
9641         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
9642         gnulib. Include <sched.h> and <time.h>, as per POSIX.
9643         Include <sys/types.h>, in case it defines pthread_t.
9644         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
9645         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
9646         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
9647         (pthread_rwlockattr_t, pthread_spinlock_t):
9648         New typedefs, if HAVE_PTHREAD_T is not defined.
9649         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
9650         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
9651         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
9652         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
9653         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
9654         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
9655         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
9656         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
9657         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
9658         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
9659         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
9660         New macros.
9661         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
9662         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
9663         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
9664         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
9665         (pthread_spin_unlock): New dummy functions.
9666         (pthread_create): Return EAGAIN; don't set errno.
9667         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
9668         require AC_C_INLINE.
9669         * modules/pthread (Depends-on): Add sched, time.
9670         (pthread.h): Use AM_V_GEN.
9671
9672 2010-07-13  Bruno Haible  <bruno@clisp.org>
9673
9674         striconveh: Don't malloc memory if the result buffer is sufficient.
9675         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
9676         buffer if its size is sufficient.
9677         Reported by Ludovic Courtès <ludo@gnu.org>.
9678
9679 2010-07-13  Bruno Haible  <bruno@clisp.org>
9680
9681         strtod: Add safety check.
9682         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
9683
9684 2010-07-12  Bruno Haible  <bruno@clisp.org>
9685
9686         Unify tests that set gl_cv_func_ldexpl_no_libm.
9687         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
9688         gl_FUNC_LDEXPL.
9689         (gl_FUNC_LDEXPL): Invoke it.
9690         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9691
9692 2010-07-12  Bruno Haible  <bruno@clisp.org>
9693
9694         Unify tests that set gl_cv_func_ldexp_no_libm.
9695         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
9696         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
9697         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
9698         (configure.ac): Simply invoke gl_FUNC_LDEXP.
9699         * modules/strtod (Files): Add m4/ldexp.m4.
9700
9701 2010-07-12  Bruno Haible  <bruno@clisp.org>
9702
9703         Unify tests that set gl_cv_func_frexpl_no_libm.
9704         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
9705         gl_FUNC_FREXPL_NO_LIBM.
9706         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
9707         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9708
9709 2010-07-12  Bruno Haible  <bruno@clisp.org>
9710
9711         Unify tests that set gl_cv_func_frexp_no_libm.
9712         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
9713         gl_FUNC_FREXP_NO_LIBM.
9714         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
9715         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
9716
9717 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
9718
9719         memcoll: clarify sizes versus lengths, document better, and tweak perf
9720         * lib/memcoll.c (strcoll_loop, memcoll0):
9721         Improve quality of descriptive comments.  Name variables
9722         consistently as to whether they are lengths (which do not include
9723         terminating null) versus sizes (which do).
9724         * lib/xmemcoll.c (xmemcoll0): Likewise.
9725         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
9726         returned when s1size == 0; this is easier to compile and saves
9727         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
9728
9729 2010-07-12  Bruno Haible  <bruno@clisp.org>
9730
9731         Tests for module '_Exit'.
9732         * modules/_Exit-tests: New file.
9733         * tests/test-_Exit.sh: New file.
9734         * tests/test-_Exit.c: New file.
9735
9736         New module '_Exit'.
9737         * lib/stdlib.in.h (__attribute__): New macro.
9738         (_Exit): New declaration.
9739         * lib/_Exit.c: New file.
9740         * m4/_Exit.m4: New file.
9741         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
9742         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
9743         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
9744         * modules/_Exit: New file.
9745         * tests/test-stdlib-c++.cc (_Exit): Check signature.
9746         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
9747
9748 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
9749
9750         strtod: make it more-accurate typically, and don't require libm
9751         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
9752         Include limits.h.  Don't include string.h.
9753         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
9754         (locale_isspace): New function, so that no casts are needed to
9755         check whether *s is a space.
9756         (ldexp): Provide an unused dummy if not available.
9757         (scale_radix_exp, parse_number, underlying_strtod): New functions.
9758         (strtod): Use them.  This implementation prefers to use the
9759         underlying strtod if available, falling back on our own code
9760         only to fix known bugs.  This is more likely to produce an
9761         accurate result.  Also, it avoids the use of libm functions.
9762         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
9763         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
9764         was absent, but it caused a test failure with coreutils.
9765         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
9766         with libm.
9767         * modules/strtod (Makefile.am, Link): libm is no longer needed.
9768         * modules/strtod-tests (Makefile.am): Likewise.
9769
9770 2010-07-11  Pádraig Brady  <P@draigBrady.com>
9771             Bruno Haible  <bruno@clisp.org>
9772
9773         unistr/u8-strchr: Optimize ASCII argument case.
9774         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
9775
9776 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
9777
9778         (x)memcoll: minor tweaks
9779         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
9780         is after the type that it qualifies.
9781         (memcoll0): Likewise.
9782         * lib/memcoll.h (memcoll0): Likewise.
9783         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
9784         * lib/xmemcoll.h (xmemcoll0): Likewise.
9785         * lib/memcoll.c (memcoll0): Correct the comment.  This function
9786         differs from memcoll in that the NUL byte is part of the argument.
9787         Omit the abort-checks, as performance is a real issue here.  Plus,
9788         the checks were wrong anyway (an off-by-one error).  Omit local
9789         variable 'diff', as it's a bit clearer that way.
9790         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
9791         no longer needed.
9792
9793 2010-07-08  Chen Guo <chenguo4@yahoo.com>
9794
9795         (x)memcoll: speedup when input is known to be NUL delimited
9796         * lib/memcoll.c: Include stdlib.
9797         (memcoll0) New function.
9798         (strcoll_loop) New function, refactored for use in both memcoll
9799         and memcoll0.
9800         * lib/memcoll.h: Add prototype for memcoll0.
9801         * lib/xmemcoll.c: (xmemcoll0) New function.
9802         (collate_error) New function, refactored for use in both xmemcoll
9803         and xmemcoll0.
9804         * lib/xmemcoll.h: Add prototype for xmemcoll0.
9805         * m4/memcoll.m4: add inline invocation.
9806
9807 2010-07-06  Pádraig Brady  <P@draigBrady.com>
9808
9809         * build-aux/bootstrap: Remove any local translations
9810         from the translation project synchronization directory,
9811         so that local only translations are not distributed.
9812
9813 2010-07-04  Bruno Haible  <bruno@clisp.org>
9814
9815         fsusage: Clarify which code applies to which platforms.
9816         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
9817         platform.
9818         * lib/fsusage.c (get_fs_usage): Likewise.
9819
9820 2010-07-04  Bruno Haible  <bruno@clisp.org>
9821
9822         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
9823         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
9824         Reported by Martin Lambers <marlam@marlam.de>.
9825
9826 2010-07-04  Jim Meyering  <meyering@redhat.com>
9827
9828         hash: once again explicitly disallow insertion of NULL
9829         * lib/hash.c (hash_insert0): Reinstate just-removed test:
9830         inserting a NULL pointer cannot work with these functions.
9831         Add a comment with details.
9832         This reverts part of the 2010-07-01 commit, 5bef1a35
9833         "hash: extend module to deal with non-pointer keys".
9834
9835 2010-07-01  Bruno Haible  <bruno@clisp.org>
9836
9837         stdbool: Update doc.
9838         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
9839         Info from Christian Weisgerber <naddy@mips.inka.de>.
9840
9841 2010-07-01  Jim Meyering  <meyering@redhat.com>
9842
9843         hash: extend module to deal with non-pointer keys
9844         * lib/hash.c (hash_insert0): New interface, much like hash_insert
9845         but that allows insertion of non-pointer entries.
9846         Do not disallow an ENTRY value of NULL.
9847         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
9848         * lib/hash.h (hash_insert0): Declare.
9849
9850 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9851
9852         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
9853         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
9854         not present (i.e. with autoconf 2.59 and when using gettextize, not
9855         gnulib), require AC_GNU_SOURCE instead.
9856
9857 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
9858
9859         idpriv-drop: Fix tests.
9860         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
9861         not to the test-idpriv-droptemp program.
9862
9863 2010-06-29  Bruno Haible  <bruno@clisp.org>
9864
9865         string: Fix syntax error with g++ 2.96.
9866         * lib/string.in.h (__pure__): Remove definition.
9867         (_GL_ATTRIBUTE_PURE): New macro.
9868         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
9869         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
9870         Reported by Christian Weisgerber <naddy@mips.inka.de>.
9871
9872 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
9873
9874         unitypes: Fix bug introduced on 2010-05-18.
9875         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
9876
9877 2010-06-22  Eric Blake  <eblake@redhat.com>
9878
9879         memmem: slight optimization
9880         * lib/str-two-way.h (critical_factorization): Update comments.
9881         Reduce work during factorization phase.
9882         Reported by Carlos Bueno <carlos@bueno.org>.
9883
9884 2010-06-21  Bruno Haible  <bruno@clisp.org>
9885
9886         Fix HAVE_CALLOC_POSIX misnomer.
9887         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
9888         !HAVE_CALLOC_POSIX.
9889         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
9890         HAVE_CALLOC_POSIX.
9891         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
9892         instead of HAVE_CALLOC_POSIX.
9893         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
9894         HAVE_CALLOC_POSIX.
9895
9896         Use modern idiom for calloc() replacement.
9897         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
9898         AC_FUNC_CALLOC.
9899         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
9900         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
9901         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
9902         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
9903         (gl_REPLACE_CALLOC): New macro.
9904
9905 2010-06-21  Bruno Haible  <bruno@clisp.org>
9906
9907         Fix HAVE_REALLOC_POSIX misnomer.
9908         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
9909         !HAVE_REALLOC_POSIX.
9910         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
9911         HAVE_REALLOC_POSIX.
9912         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
9913         instead of HAVE_REALLOC_POSIX.
9914         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
9915         HAVE_REALLOC_POSIX.
9916
9917         Use modern idiom for realloc() replacement.
9918         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
9919         AC_FUNC_REALLOC.
9920         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
9921         Autoconf's AC_FUNC_REALLOC.
9922         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
9923         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
9924         (gl_REPLACE_REALLOC): New macro.
9925         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
9926
9927 2010-06-21  Bruno Haible  <bruno@clisp.org>
9928
9929         Fix HAVE_MALLOC_POSIX misnomer.
9930         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
9931         !HAVE_MALLOC_POSIX.
9932         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
9933         HAVE_MALLOC_POSIX.
9934         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
9935         instead of HAVE_MALLOC_POSIX.
9936         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
9937         HAVE_MALLOC_POSIX.
9938
9939         Use modern idiom for malloc() replacement.
9940         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
9941         AC_FUNC_MALLOC.
9942         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
9943         Autoconf's AC_FUNC_MALLOC.
9944         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
9945         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
9946         (gl_REPLACE_MALLOC): New macro.
9947         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
9948
9949 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
9950
9951         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
9952         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
9953         This macro takes 3 arguments, not 4.
9954
9955 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
9956
9957         ipv6: fix detection under mingw
9958         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
9959         in6_addr.
9960
9961 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
9962
9963         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
9964         that strtod() works when cross-compiling to a glibc version known
9965         to work.
9966
9967 2010-06-15  Bruno Haible  <bruno@clisp.org>
9968
9969         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
9970
9971 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
9972
9973         select: Correct timeout.
9974         * lib/select.c (rpl_select): Compute wait_timeout correctly.
9975
9976 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
9977
9978         git-version-gen: init shell var to avoid env var influence
9979         * build-aux/git-version-gen (v): Init shell var to empty.
9980
9981 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
9982
9983         priv-set: Don't assume that priv.h exists merely because getppriv does.
9984         See Jan Andersen's bug report about AIX 5L in
9985         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
9986         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
9987         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
9988         * lib/priv-set.h: Likewise.
9989         * tests/test-priv-set.c: Likewise.
9990
9991 2010-06-13  Bruno Haible  <bruno@clisp.org>
9992
9993         relocatable: Make it easier to test whether to install wrappers.
9994         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
9995         RELOCATABLE_VIA_WRAPPER.
9996
9997 2010-06-13  Bruno Haible  <bruno@clisp.org>
9998
9999         gnulib-tool: Display specified modules and dependencies differently.
10000         * gnulib-tool (func_show_module_list): New function.
10001         (func_import, func_create_testdir): Invoke it.
10002         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
10003
10004 2010-06-13  Bruno Haible  <bruno@clisp.org>
10005
10006         gnulib-tool: Align code of func_import and func_create_testdir.
10007         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
10008         specified_modules.
10009
10010 2010-06-12  Jim Meyering  <meyering@redhat.com>
10011
10012         test-inttostr: avoid spurious failure on Solaris 9
10013         * tests/test-inttostr.c (main): Skip the test when snprintf fails
10014         to accept "%ju".  Reported by Bruno Haible.
10015
10016 2010-06-11  Jim Meyering  <meyering@redhat.com>
10017
10018         test-sys_socket: mark variables as used more readably
10019         * tests/test-sys_socket.c (main): Mark otherwise unused variables
10020         as "used" explicitly via (void) statement casts.  This is more
10021         readable than using them in an artificial return expression.
10022         Suggestion from Bruno Haible.
10023
10024 2010-06-11  Bruno Haible  <bruno@clisp.org>
10025
10026         Avoid some more warnings from "gcc -Wwrite-strings".
10027         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
10028         to 'const char *'.
10029         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
10030         * tests/test-c-strcasestr.c (main): Likewise.
10031         * tests/test-mbscasestr1.c (main): Likewise.
10032         * tests/test-mbscasestr2.c (main): Likewise.
10033         * tests/test-memmem.c (main): Likewise.
10034         * tests/test-strstr.c (main): Likewise.
10035         * tests/test-strcasestr.c (main): Likewise.
10036
10037 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10038
10039         init.sh: change framework_failure_ to fail with status 99, not 1
10040         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
10041         automake's parallel-tests rule that this is an unexpected failure,
10042         even if the test is listed in XFAIL_TESTS.
10043
10044 2010-06-11  Jim Meyering  <meyering@redhat.com>
10045
10046         test-inttostr: avoid warnings about 4-6KB literal strings
10047         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
10048         Include "macros.h", for its definition of ASSERT.
10049         (CK): s/assert/ASSERT/
10050         * modules/inttostr-tests (Files): Add macros.h.
10051
10052         init.sh: don't use $ME_ or skip_ before they are defined
10053         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
10054         their first uses.  Also hoist their companions: warn_, fail_,
10055         framework_failure_, $stderr_fileno.  Prompted by a patch from
10056         Stefano Lattarini.
10057
10058         test-sys_socket: avoid set-but-not-used warnings from gcc
10059         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
10060         avoid warning about set-but-not-used variables.
10061
10062         test-xvasprintf: avoid 'const' discard warnings
10063         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
10064         "const" when assigning from literal strings.
10065         (test_xasprintf): Add "void" in function argument list to placate
10066         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
10067
10068         tests: avoid compilation warnings in argmatch and exclude tests...
10069         in packages that define ARGMATCH_DIE_DECL, like coreutils.
10070         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
10071         Since it always exits, declare with the "noreturn" attribute.
10072         * tests/test-argmatch.c: Likewise.
10073
10074         tests: avoid 'const' discard warnings in mbsstr tests
10075         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
10076         * tests/test-mbsstr2.c (main): Likewise.
10077
10078         test-verify: avoid warning from gcc's -Wmissing-declarations
10079         * tests/test-verify.c (function): Declare to be static.
10080
10081         test-inttostr.c: include <string.h> for use of strcmp
10082         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
10083
10084         test-linkat: avoid failed assertion on "other" architectures
10085         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
10086         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
10087         sparc: https://bugs.launchpad.net/bugs/591968
10088
10089 2010-06-11  Jim Meyering  <meyering@redhat.com>
10090
10091         printf.m4: avoid autoconf's "Expanded Before Required" warning
10092         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
10093         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
10094         autoconf warning.
10095
10096 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
10097
10098         Replacement header templates are now named with ".in", not "_".
10099         * doc/gnulib-intro.texi: Correct.
10100
10101 2010-06-10  Jim Meyering  <meyering@redhat.com>
10102
10103         inttostr-tests: depend on snprintf, not snprintf-posix
10104         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
10105         snprintf-posix, to avoid this aclocal failure:
10106           missing file gnulib-tests/vasnprintf.c
10107           configure.ac:45: error: expected source file, required through \
10108           AC_LIBSOURCES, not found
10109
10110 2010-06-10  Jim Meyering  <meyering@redhat.com>
10111
10112         inttostr: add a new function, inttostr, and tests
10113         The namesake function was not available.  The existence of the
10114         template file, inttostr.c makes its addition nontrivial.
10115         * lib/anytostr.c: Rename from inttostr.c.
10116         (anytostr): Rename from inttostr.
10117         * lib/inttostr.c: New file.
10118         * modules/inttostr (Files): Add anytostr.c.
10119         (Makefile.am): Set lib_SOURCES instead of ...
10120         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
10121         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
10122         * lib/offtostr.c: Likewise.
10123         * lib/uinttostr.c: Likewise.
10124         * lib/umaxtostr.c: Likewise.
10125         * modules/inttostr-tests: New file.
10126         * tests/test-inttostr.c: New file.  Test these functions.
10127
10128 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
10129             Bruno Haible  <bruno@clisp.org>
10130
10131         Add "Extending Gnulib" chapter to manual.
10132         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
10133         chapter.
10134         (Extending Gnulib): New chapter.
10135         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
10136         chapter.
10137
10138 2010-06-09  Bruno Haible  <bruno@clisp.org>
10139
10140         Avoid relocwrapper link errors due to gnulib replacement functions.
10141         * lib/areadlink.c: Use the system's malloc, realloc functions.
10142         (areadlink): Set errno to ENOMEM explicitly.
10143         * modules/areadlink (Depends-on): Remove malloc-posix.
10144         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10145
10146 2010-06-09  Bruno Haible  <bruno@clisp.org>
10147
10148         Avoid relocwrapper link errors due to gnulib replacement functions.
10149         * lib/canonicalize-lgpl.c: Use the system's malloc function.
10150         * lib/malloca.c: Likewise.
10151         * lib/relocatable.c: Likewise.
10152         * lib/progreloc.c: Use the system's malloc, sprintf functions.
10153         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
10154         * lib/setenv.c: Use the system's malloc, realloc functions.
10155         * lib/strerror.c: Use the system's sprintf function.
10156         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10157
10158 2010-06-04  Bruno Haible  <bruno@clisp.org>
10159
10160         Prefer documented low-level autoconf macro names.
10161         * m4/lib-link.m4: Use m4_translit instead of translit.
10162         * m4/environ.m4: Likewise.
10163         * m4/mathfunc.m4: Likewise.
10164         * m4/onceonly.m4: Likewise.
10165         * m4/stdint.m4: Likewise.
10166         Suggested by Eric Blake.
10167
10168 2010-06-04  Martin Lambers  <marlam@marlam.de>
10169             Bruno Haible  <bruno@clisp.org>
10170
10171         havelib: Allow library names with '+' characters.
10172         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
10173         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
10174
10175 2010-06-09  Bruno Haible  <bruno@clisp.org>
10176
10177         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
10178         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
10179         realloc failed.
10180
10181 2010-06-08  Peter Simons  <simons@cryp.to>
10182
10183         maint.mk: make the news-check rule more configurable
10184         * top/maint.mk (news-check-lines-spec) New variable.
10185         (news-check): Use "sed -n 1,10p" in place of "head".
10186
10187 2010-06-07  Jim Meyering  <meyering@redhat.com>
10188
10189         do-release-commit-and-tag: fix typo in --help
10190         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
10191
10192         regex: avoid new dead-code warning with gcc-4.6.0
10193         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
10194         if-block containing a while-loop.  It's been unused for at least
10195         5 years.
10196
10197 2010-06-05  Bruno Haible  <bruno@clisp.org>
10198
10199         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
10200         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
10201
10202 2010-06-04  Bruno Haible  <bruno@clisp.org>
10203
10204         Update to GNU gettext 0.18.1.
10205         * modules/gettext (configure.ac): Require gettext infrastructure from
10206         version 0.18.1.
10207
10208 2010-06-03  Bruno Haible  <bruno@clisp.org>
10209
10210         Don't use AC_LIBOBJ with file names in subdirectories.
10211         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
10212         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
10213         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
10214         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
10215         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
10216         gl_LIBUNISTRING_LIBSOURCE.
10217         (Makefile.am): Augment lib_SOURCES here, conditionally.
10218         * NEWS: Drop requirement for Automake option 'subdir-objects'.
10219
10220 2010-06-03  Bruno Haible  <bruno@clisp.org>
10221
10222         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
10223         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
10224         expansion does not end with a newline.
10225         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
10226         unnecessary newline.
10227
10228 2010-06-03  Bruno Haible  <bruno@clisp.org>
10229
10230         Reduce dependencies.
10231         * tests/test-quotearg.h: New file, extracted from
10232         tests/test-quotearg.c.
10233         * tests/test-quotearg-simple.c: New file, extracted from
10234         tests/test-quotearg.c.
10235         * tests/test-quotearg.c: Don't include <ctype.h>.
10236         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
10237         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
10238         use_quote_double_quotes, use_quotearg_colon): Moved to
10239         tests/test-quotearg.h.
10240         (results_g, flag_results, custom_quotes, custom_results): Moved
10241         to tests/test-quotearg-simple.c.
10242         (main): Moved the part that does not depend on gettext to
10243         tests/test-quotearg-simple.c. Return 77 if the test cannot be
10244         performed.
10245         * modules/quotearg-simple: New file.
10246         * modules/quotearg-simple-tests: New file.
10247         * modules/quotearg (Depends-on): Add quotearg-simple.
10248         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
10249         (Files): Add tests/test-quotearg.h.
10250         Reported by Paolo Bonzini.
10251
10252 2010-06-03  Bruno Haible  <bruno@clisp.org>
10253
10254         Reduce dependencies.
10255         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
10256
10257 2010-06-03  Bruno Haible  <bruno@clisp.org>
10258
10259         time: Undefine more broken macros.
10260         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
10261         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
10262         Reported by Eric Blake.
10263
10264 2010-06-03  Bruno Haible  <bruno@clisp.org>
10265
10266         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
10267         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
10268         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
10269         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
10270         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
10271         Reported by Ludovic Courtès <ludo@gnu.org>.
10272
10273 2010-06-02  Eric Blake  <eblake@redhat.com>
10274
10275         time: work with mingw + pthreads-win32 library
10276         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
10277         if timespec is defined only in pthread.h.
10278         * modules/time (Makefile.am): Substitute it.
10279         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
10280         <pthread.h>, when needed.
10281         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
10282         from the library.
10283
10284 2010-05-31  Bruno Haible  <bruno@clisp.org>
10285
10286         Avoid expanding two macros in the wrong order.
10287         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
10288         gl_LIBUNISTRING if it is defined.
10289         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
10290         autoconf >= 2.64.
10291         Reported by Ludovic Courtès <ludo@gnu.org>.
10292
10293 2010-05-27  Jim Meyering  <meyering@redhat.com>
10294
10295         maint.mk: also prohibit "#undef" of always-defined symbols
10296         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
10297         Allow more than one space before the symbol name.
10298         (sc_prohibit_always-defined_macros): Use grep's -E, now that
10299         the regexp uses alternation.
10300
10301 2010-05-26  Eric Blake  <eblake@redhat.com>
10302
10303         maint.mk: avoid echo -e
10304         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
10305         Convert all uses of echo -* to printf.
10306         Reported by Matthias Bolte.
10307
10308 2010-05-25  Bruno Haible  <bruno@clisp.org>
10309
10310         Update to GNU gettext 0.18, part 2.
10311         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
10312         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
10313
10314 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10315
10316         Add missing include in test-pwrite.c.
10317         * tests/test-pwrite.c: Include string.h, for strcmp.
10318
10319 2010-05-24  Bruno Haible  <bruno@clisp.org>
10320
10321         * NEWS: Mention requirement for Automake option 'subdir-objects'.
10322
10323 2010-05-24  Bruno Haible  <bruno@clisp.org>
10324
10325         Don't use conversion with transliteration in u{8,16,32}_strcoll.
10326         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
10327         iconveh_error argument.
10328         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
10329         U_STRCONV_TO_LOCALE.
10330         * lib/unistr/u16-strcoll.c: Likewise.
10331         * lib/unistr/u32-strcoll.c: Likewise.
10332         * modules/unistr/u8-strcoll (Depends-on): Add
10333         uniconv/u8-strconv-to-enc, localcharset. Remove
10334         uniconv/u8-strconv-to-locale.
10335         (configure.ac): Bump version number.
10336         * modules/unistr/u16-strcoll (Depends-on): Add
10337         uniconv/u16-strconv-to-enc, localcharset. Remove
10338         uniconv/u16-strconv-to-locale.
10339         (configure.ac): Bump version number.
10340         * modules/unistr/u32-strcoll (Depends-on): Add
10341         uniconv/u32-strconv-to-enc, localcharset. Remove
10342         uniconv/u32-strconv-to-locale.
10343         (configure.ac): Bump version number.
10344
10345 2010-05-24  Bruno Haible  <bruno@clisp.org>
10346
10347         Avoid a test failure on NetBSD 5.0.
10348         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
10349         an iconv() bug.
10350
10351 2010-05-24  Bruno Haible  <bruno@clisp.org>
10352
10353         Adjust #include directive style.
10354         * modules/regex (Includes): Recommend to write <regex.h>.
10355
10356 2010-05-24  Bruno Haible  <bruno@clisp.org>
10357
10358         regex: Don't require alloca.
10359         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
10360         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
10361         only inside if (0).
10362
10363 2010-05-23  Jim Meyering  <meyering@redhat.com>
10364
10365         test-renameat.c: include <sys/stat.h>
10366         * tests/test-renameat.c: Include <sys/stat.h>; required for
10367         definition of S_IS* macros.
10368
10369 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
10370
10371         Update maintainer documentation for 'relocatable-prog' module.
10372         * doc/relocatable-maint.texi: Update.
10373         Comments by Bruno Haible.
10374
10375 2010-05-23  Bruno Haible  <bruno@clisp.org>
10376
10377         git-merge-changelog: Enable --split-merged-entry by default.
10378         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
10379         (usage): Don't mention this option any more.
10380         Reported by Ralf Wildenhues.
10381
10382 2010-05-23  Jim Meyering  <meyering@redhat.com>
10383
10384         test-pwrite: do not leave behind a test file named "out"
10385         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
10386         The trivial-looking use of init.sh is really necessary.
10387         It ensures that the temporary file, "out", is created in
10388         a temporary directory, and removed upon termination.
10389         * tests/test-pwrite.sh: Re-add file.
10390         * modules/pwrite-tests: Reference it.
10391
10392 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10393
10394         Fix output redirection buglet in init.sh.
10395         * tests/init.sh: Fix redirection of stderr.
10396
10397 2010-05-20  Simon Josefsson  <simon@josefsson.org>
10398
10399         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
10400
10401 2010-05-17  Simon Josefsson  <simon@josefsson.org>
10402
10403         * modules/valgrind-tests: New file.
10404         * m4/valgrind-tests.m4: New file.
10405         * doc/valgrind-tests.texi: New file.
10406         * doc/gnulib.texi (Running self-tests under valgrind): New
10407         section.
10408
10409 2010-05-19  Bruno Haible  <bruno@clisp.org>
10410
10411         Clean up dead code in recent commit.
10412         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
10413         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
10414         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
10415         Suggested by Paolo Bonzini.
10416
10417 2010-05-19  Bruno Haible  <bruno@clisp.org>
10418
10419         Avoid valgrind error reports from libunistring.
10420         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
10421         * modules/libunistring (Files): Add it.
10422         * modules/libunistring-optional (Files): Likewise.
10423
10424 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
10425             Bruno Haible  <bruno@clisp.org>
10426
10427         New module 'libunistring-optional'.
10428         * modules/libunistring-optional: New file.
10429         * m4/libunistring-base.m4: New file.
10430         * m4/libunistring-optional.m4: New file.
10431         * lib/unicase.in.h: Renamed from lib/unicase.h.
10432         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
10433         * lib/unictype.in.h: Renamed from lib/unictype.h.
10434         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
10435         * lib/uniname.in.h: Renamed from lib/uniname.h.
10436         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
10437         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
10438         * lib/unistr.in.h: Renamed from lib/unistr.h.
10439         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
10440         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
10441         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
10442         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
10443         gl_LIBUNISTRING. If the library was found, determine the installed
10444         version and set LIBUNISTRING_VERSION.
10445         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
10446         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
10447         handle a configuration option --with-included-libunistring.
10448         * modules/libunistring (Files): Add m4/absolute-header.m4.
10449         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
10450         Add m4/libunistring-base.m4.
10451         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10452         (Makefile.am): Build unicase.h from unicase.in.h.
10453         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
10454         Add m4/libunistring-base.m4.
10455         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10456         (Makefile.am): Build uniconv.h from uniconv.in.h.
10457         * modules/unictype/base (Files): Use unictype.in.h instead of
10458         unictype.h. Add m4/libunistring-base.m4.
10459         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10460         (Makefile.am): Build unictype.h from unictype.in.h.
10461         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
10462         Add m4/libunistring-base.m4.
10463         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10464         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
10465         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
10466         Add m4/libunistring-base.m4.
10467         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10468         (Makefile.am): Build uniname.h from uniname.in.h.
10469         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
10470         Add m4/libunistring-base.m4.
10471         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10472         (Makefile.am): Build uninorm.h from uninorm.in.h.
10473         * modules/unistdio/base (Files): Use unistdio.in.h instead of
10474         unistdio.h. Add m4/libunistring-base.m4.
10475         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10476         (Makefile.am): Build unistdio.h from unistdio.in.h.
10477         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
10478         Add m4/libunistring-base.m4.
10479         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10480         (Makefile.am): Build unistr.h from unistr.in.h.
10481         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
10482         Add m4/libunistring-base.m4.
10483         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10484         (Makefile.am): Build unitypes.h from unitypes.in.h.
10485         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
10486         Add m4/libunistring-base.m4.
10487         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10488         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
10489         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
10490         uniwidth.h. Add m4/libunistring-base.m4.
10491         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10492         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
10493         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
10494         instead of augmenting lib_SOURCES.
10495         * modules/unicase/empty-suffix-context: Likewise.
10496         * modules/unicase/locale-language: Likewise.
10497         * modules/unicase/tolower: Likewise.
10498         * modules/unicase/totitle: Likewise.
10499         * modules/unicase/toupper: Likewise.
10500         * modules/unicase/u8-casecmp: Likewise.
10501         * modules/unicase/u8-casecoll: Likewise.
10502         * modules/unicase/u8-casefold: Likewise.
10503         * modules/unicase/u8-casexfrm: Likewise.
10504         * modules/unicase/u8-ct-casefold: Likewise.
10505         * modules/unicase/u8-ct-tolower: Likewise.
10506         * modules/unicase/u8-ct-totitle: Likewise.
10507         * modules/unicase/u8-ct-toupper: Likewise.
10508         * modules/unicase/u8-is-cased: Likewise.
10509         * modules/unicase/u8-is-casefolded: Likewise.
10510         * modules/unicase/u8-is-lowercase: Likewise.
10511         * modules/unicase/u8-is-titlecase: Likewise.
10512         * modules/unicase/u8-is-uppercase: Likewise.
10513         * modules/unicase/u8-prefix-context: Likewise.
10514         * modules/unicase/u8-suffix-context: Likewise.
10515         * modules/unicase/u8-tolower: Likewise.
10516         * modules/unicase/u8-totitle: Likewise.
10517         * modules/unicase/u8-toupper: Likewise.
10518         * modules/unicase/u16-casecmp: Likewise.
10519         * modules/unicase/u16-casecoll: Likewise.
10520         * modules/unicase/u16-casefold: Likewise.
10521         * modules/unicase/u16-casexfrm: Likewise.
10522         * modules/unicase/u16-ct-casefold: Likewise.
10523         * modules/unicase/u16-ct-tolower: Likewise.
10524         * modules/unicase/u16-ct-totitle: Likewise.
10525         * modules/unicase/u16-ct-toupper: Likewise.
10526         * modules/unicase/u16-is-cased: Likewise.
10527         * modules/unicase/u16-is-casefolded: Likewise.
10528         * modules/unicase/u16-is-lowercase: Likewise.
10529         * modules/unicase/u16-is-titlecase: Likewise.
10530         * modules/unicase/u16-is-uppercase: Likewise.
10531         * modules/unicase/u16-prefix-context: Likewise.
10532         * modules/unicase/u16-suffix-context: Likewise.
10533         * modules/unicase/u16-tolower: Likewise.
10534         * modules/unicase/u16-totitle: Likewise.
10535         * modules/unicase/u16-toupper: Likewise.
10536         * modules/unicase/u32-casecmp: Likewise.
10537         * modules/unicase/u32-casecoll: Likewise.
10538         * modules/unicase/u32-casefold: Likewise.
10539         * modules/unicase/u32-casexfrm: Likewise.
10540         * modules/unicase/u32-ct-casefold: Likewise.
10541         * modules/unicase/u32-ct-tolower: Likewise.
10542         * modules/unicase/u32-ct-totitle: Likewise.
10543         * modules/unicase/u32-ct-toupper: Likewise.
10544         * modules/unicase/u32-is-cased: Likewise.
10545         * modules/unicase/u32-is-casefolded: Likewise.
10546         * modules/unicase/u32-is-lowercase: Likewise.
10547         * modules/unicase/u32-is-titlecase: Likewise.
10548         * modules/unicase/u32-is-uppercase: Likewise.
10549         * modules/unicase/u32-prefix-context: Likewise.
10550         * modules/unicase/u32-suffix-context: Likewise.
10551         * modules/unicase/u32-tolower: Likewise.
10552         * modules/unicase/u32-totitle: Likewise.
10553         * modules/unicase/u32-toupper: Likewise.
10554         * modules/unicase/ulc-casecmp: Likewise.
10555         * modules/unicase/ulc-casecoll: Likewise.
10556         * modules/unicase/ulc-casexfrm: Likewise.
10557         * modules/uniconv/u8-conv-from-enc: Likewise.
10558         * modules/uniconv/u8-conv-to-enc: Likewise.
10559         * modules/uniconv/u8-strconv-from-enc: Likewise.
10560         * modules/uniconv/u8-strconv-from-locale: Likewise.
10561         * modules/uniconv/u8-strconv-to-enc: Likewise.
10562         * modules/uniconv/u8-strconv-to-locale: Likewise.
10563         * modules/uniconv/u16-conv-from-enc: Likewise.
10564         * modules/uniconv/u16-conv-to-enc: Likewise.
10565         * modules/uniconv/u16-strconv-from-enc: Likewise.
10566         * modules/uniconv/u16-strconv-from-locale: Likewise.
10567         * modules/uniconv/u16-strconv-to-enc: Likewise.
10568         * modules/uniconv/u16-strconv-to-locale: Likewise.
10569         * modules/uniconv/u32-conv-from-enc: Likewise.
10570         * modules/uniconv/u32-conv-to-enc: Likewise.
10571         * modules/uniconv/u32-strconv-from-enc: Likewise.
10572         * modules/uniconv/u32-strconv-from-locale: Likewise.
10573         * modules/uniconv/u32-strconv-to-enc: Likewise.
10574         * modules/uniconv/u32-strconv-to-locale: Likewise.
10575         * modules/unictype/bidicategory-byname: Likewise.
10576         * modules/unictype/bidicategory-name: Likewise.
10577         * modules/unictype/bidicategory-of: Likewise.
10578         * modules/unictype/bidicategory-test: Likewise.
10579         * modules/unictype/block-list: Likewise.
10580         * modules/unictype/block-test: Likewise.
10581         * modules/unictype/category-C: Likewise.
10582         * modules/unictype/category-Cc: Likewise.
10583         * modules/unictype/category-Cf: Likewise.
10584         * modules/unictype/category-Cn: Likewise.
10585         * modules/unictype/category-Co: Likewise.
10586         * modules/unictype/category-Cs: Likewise.
10587         * modules/unictype/category-L: Likewise.
10588         * modules/unictype/category-Ll: Likewise.
10589         * modules/unictype/category-Lm: Likewise.
10590         * modules/unictype/category-Lo: Likewise.
10591         * modules/unictype/category-Lt: Likewise.
10592         * modules/unictype/category-Lu: Likewise.
10593         * modules/unictype/category-M: Likewise.
10594         * modules/unictype/category-Mc: Likewise.
10595         * modules/unictype/category-Me: Likewise.
10596         * modules/unictype/category-Mn: Likewise.
10597         * modules/unictype/category-N: Likewise.
10598         * modules/unictype/category-Nd: Likewise.
10599         * modules/unictype/category-Nl: Likewise.
10600         * modules/unictype/category-No: Likewise.
10601         * modules/unictype/category-P: Likewise.
10602         * modules/unictype/category-Pc: Likewise.
10603         * modules/unictype/category-Pd: Likewise.
10604         * modules/unictype/category-Pe: Likewise.
10605         * modules/unictype/category-Pf: Likewise.
10606         * modules/unictype/category-Pi: Likewise.
10607         * modules/unictype/category-Po: Likewise.
10608         * modules/unictype/category-Ps: Likewise.
10609         * modules/unictype/category-S: Likewise.
10610         * modules/unictype/category-Sc: Likewise.
10611         * modules/unictype/category-Sk: Likewise.
10612         * modules/unictype/category-Sm: Likewise.
10613         * modules/unictype/category-So: Likewise.
10614         * modules/unictype/category-Z: Likewise.
10615         * modules/unictype/category-Zl: Likewise.
10616         * modules/unictype/category-Zp: Likewise.
10617         * modules/unictype/category-Zs: Likewise.
10618         * modules/unictype/category-and: Likewise.
10619         * modules/unictype/category-and-not: Likewise.
10620         * modules/unictype/category-byname: Likewise.
10621         * modules/unictype/category-name: Likewise.
10622         * modules/unictype/category-none: Likewise.
10623         * modules/unictype/category-of: Likewise.
10624         * modules/unictype/category-or: Likewise.
10625         * modules/unictype/category-test: Likewise.
10626         * modules/unictype/combining-class: Likewise.
10627         * modules/unictype/ctype-alnum: Likewise.
10628         * modules/unictype/ctype-alpha: Likewise.
10629         * modules/unictype/ctype-blank: Likewise.
10630         * modules/unictype/ctype-cntrl: Likewise.
10631         * modules/unictype/ctype-digit: Likewise.
10632         * modules/unictype/ctype-graph: Likewise.
10633         * modules/unictype/ctype-lower: Likewise.
10634         * modules/unictype/ctype-print: Likewise.
10635         * modules/unictype/ctype-punct: Likewise.
10636         * modules/unictype/ctype-space: Likewise.
10637         * modules/unictype/ctype-upper: Likewise.
10638         * modules/unictype/ctype-xdigit: Likewise.
10639         * modules/unictype/decimal-digit: Likewise.
10640         * modules/unictype/digit: Likewise.
10641         * modules/unictype/mirror: Likewise.
10642         * modules/unictype/numeric: Likewise.
10643         * modules/unictype/property-alphabetic: Likewise.
10644         * modules/unictype/property-ascii-hex-digit: Likewise.
10645         * modules/unictype/property-bidi-arabic-digit: Likewise.
10646         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
10647         * modules/unictype/property-bidi-block-separator: Likewise.
10648         * modules/unictype/property-bidi-boundary-neutral: Likewise.
10649         * modules/unictype/property-bidi-common-separator: Likewise.
10650         * modules/unictype/property-bidi-control: Likewise.
10651         * modules/unictype/property-bidi-embedding-or-override: Likewise.
10652         * modules/unictype/property-bidi-eur-num-separator: Likewise.
10653         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
10654         * modules/unictype/property-bidi-european-digit: Likewise.
10655         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
10656         * modules/unictype/property-bidi-left-to-right: Likewise.
10657         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
10658         * modules/unictype/property-bidi-other-neutral: Likewise.
10659         * modules/unictype/property-bidi-pdf: Likewise.
10660         * modules/unictype/property-bidi-segment-separator: Likewise.
10661         * modules/unictype/property-bidi-whitespace: Likewise.
10662         * modules/unictype/property-byname: Likewise.
10663         * modules/unictype/property-combining: Likewise.
10664         * modules/unictype/property-composite: Likewise.
10665         * modules/unictype/property-currency-symbol: Likewise.
10666         * modules/unictype/property-dash: Likewise.
10667         * modules/unictype/property-decimal-digit: Likewise.
10668         * modules/unictype/property-default-ignorable-code-point: Likewise.
10669         * modules/unictype/property-deprecated: Likewise.
10670         * modules/unictype/property-diacritic: Likewise.
10671         * modules/unictype/property-extender: Likewise.
10672         * modules/unictype/property-format-control: Likewise.
10673         * modules/unictype/property-grapheme-base: Likewise.
10674         * modules/unictype/property-grapheme-extend: Likewise.
10675         * modules/unictype/property-grapheme-link: Likewise.
10676         * modules/unictype/property-hex-digit: Likewise.
10677         * modules/unictype/property-hyphen: Likewise.
10678         * modules/unictype/property-id-continue: Likewise.
10679         * modules/unictype/property-id-start: Likewise.
10680         * modules/unictype/property-ideographic: Likewise.
10681         * modules/unictype/property-ids-binary-operator: Likewise.
10682         * modules/unictype/property-ids-trinary-operator: Likewise.
10683         * modules/unictype/property-ignorable-control: Likewise.
10684         * modules/unictype/property-iso-control: Likewise.
10685         * modules/unictype/property-join-control: Likewise.
10686         * modules/unictype/property-left-of-pair: Likewise.
10687         * modules/unictype/property-line-separator: Likewise.
10688         * modules/unictype/property-logical-order-exception: Likewise.
10689         * modules/unictype/property-lowercase: Likewise.
10690         * modules/unictype/property-math: Likewise.
10691         * modules/unictype/property-non-break: Likewise.
10692         * modules/unictype/property-not-a-character: Likewise.
10693         * modules/unictype/property-numeric: Likewise.
10694         * modules/unictype/property-other-alphabetic: Likewise.
10695         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
10696         * modules/unictype/property-other-grapheme-extend: Likewise.
10697         * modules/unictype/property-other-id-continue: Likewise.
10698         * modules/unictype/property-other-id-start: Likewise.
10699         * modules/unictype/property-other-lowercase: Likewise.
10700         * modules/unictype/property-other-math: Likewise.
10701         * modules/unictype/property-other-uppercase: Likewise.
10702         * modules/unictype/property-paired-punctuation: Likewise.
10703         * modules/unictype/property-paragraph-separator: Likewise.
10704         * modules/unictype/property-pattern-syntax: Likewise.
10705         * modules/unictype/property-pattern-white-space: Likewise.
10706         * modules/unictype/property-private-use: Likewise.
10707         * modules/unictype/property-punctuation: Likewise.
10708         * modules/unictype/property-quotation-mark: Likewise.
10709         * modules/unictype/property-radical: Likewise.
10710         * modules/unictype/property-sentence-terminal: Likewise.
10711         * modules/unictype/property-soft-dotted: Likewise.
10712         * modules/unictype/property-space: Likewise.
10713         * modules/unictype/property-terminal-punctuation: Likewise.
10714         * modules/unictype/property-test: Likewise.
10715         * modules/unictype/property-titlecase: Likewise.
10716         * modules/unictype/property-unassigned-code-value: Likewise.
10717         * modules/unictype/property-unified-ideograph: Likewise.
10718         * modules/unictype/property-uppercase: Likewise.
10719         * modules/unictype/property-variation-selector: Likewise.
10720         * modules/unictype/property-white-space: Likewise.
10721         * modules/unictype/property-xid-continue: Likewise.
10722         * modules/unictype/property-xid-start: Likewise.
10723         * modules/unictype/property-zero-width: Likewise.
10724         * modules/unictype/scripts: Likewise.
10725         * modules/unictype/syntax-c-ident: Likewise.
10726         * modules/unictype/syntax-c-whitespace: Likewise.
10727         * modules/unictype/syntax-java-ident: Likewise.
10728         * modules/unictype/syntax-java-whitespace: Likewise.
10729         * modules/unilbrk/u8-possible-linebreaks: Likewise.
10730         * modules/unilbrk/u8-width-linebreaks: Likewise.
10731         * modules/unilbrk/u16-possible-linebreaks: Likewise.
10732         * modules/unilbrk/u16-width-linebreaks: Likewise.
10733         * modules/unilbrk/u32-possible-linebreaks: Likewise.
10734         * modules/unilbrk/u32-width-linebreaks: Likewise.
10735         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
10736         * modules/unilbrk/ulc-width-linebreaks: Likewise.
10737         * modules/uniname/uniname: Likewise.
10738         * modules/uninorm/canonical-decomposition: Likewise.
10739         * modules/uninorm/composition: Likewise.
10740         * modules/uninorm/decomposing-form: Likewise.
10741         * modules/uninorm/decomposition: Likewise.
10742         * modules/uninorm/filter: Likewise.
10743         * modules/uninorm/nfc: Likewise.
10744         * modules/uninorm/nfd: Likewise.
10745         * modules/uninorm/nfkc: Likewise.
10746         * modules/uninorm/nfkd: Likewise.
10747         * modules/uninorm/u8-normalize: Likewise.
10748         * modules/uninorm/u8-normcmp: Likewise.
10749         * modules/uninorm/u8-normcoll: Likewise.
10750         * modules/uninorm/u8-normxfrm: Likewise.
10751         * modules/uninorm/u16-normalize: Likewise.
10752         * modules/uninorm/u16-normcmp: Likewise.
10753         * modules/uninorm/u16-normcoll: Likewise.
10754         * modules/uninorm/u16-normxfrm: Likewise.
10755         * modules/uninorm/u32-normalize: Likewise.
10756         * modules/uninorm/u32-normcmp: Likewise.
10757         * modules/uninorm/u32-normcoll: Likewise.
10758         * modules/uninorm/u32-normxfrm: Likewise.
10759         * modules/unistdio/u8-asnprintf: Likewise.
10760         * modules/unistdio/u8-asprintf: Likewise.
10761         * modules/unistdio/u8-snprintf: Likewise.
10762         * modules/unistdio/u8-sprintf: Likewise.
10763         * modules/unistdio/u8-u8-asnprintf: Likewise.
10764         * modules/unistdio/u8-u8-asprintf: Likewise.
10765         * modules/unistdio/u8-u8-snprintf: Likewise.
10766         * modules/unistdio/u8-u8-sprintf: Likewise.
10767         * modules/unistdio/u8-u8-vasnprintf: Likewise.
10768         * modules/unistdio/u8-u8-vasprintf: Likewise.
10769         * modules/unistdio/u8-u8-vsnprintf: Likewise.
10770         * modules/unistdio/u8-u8-vsprintf: Likewise.
10771         * modules/unistdio/u8-vasnprintf: Likewise.
10772         * modules/unistdio/u8-vasprintf: Likewise.
10773         * modules/unistdio/u8-vsnprintf: Likewise.
10774         * modules/unistdio/u8-vsprintf: Likewise.
10775         * modules/unistdio/u16-asnprintf: Likewise.
10776         * modules/unistdio/u16-asprintf: Likewise.
10777         * modules/unistdio/u16-snprintf: Likewise.
10778         * modules/unistdio/u16-sprintf: Likewise.
10779         * modules/unistdio/u16-u16-asnprintf: Likewise.
10780         * modules/unistdio/u16-u16-asprintf: Likewise.
10781         * modules/unistdio/u16-u16-snprintf: Likewise.
10782         * modules/unistdio/u16-u16-sprintf: Likewise.
10783         * modules/unistdio/u16-u16-vasnprintf: Likewise.
10784         * modules/unistdio/u16-u16-vasprintf: Likewise.
10785         * modules/unistdio/u16-u16-vsnprintf: Likewise.
10786         * modules/unistdio/u16-u16-vsprintf: Likewise.
10787         * modules/unistdio/u16-vasnprintf: Likewise.
10788         * modules/unistdio/u16-vasprintf: Likewise.
10789         * modules/unistdio/u16-vsnprintf: Likewise.
10790         * modules/unistdio/u16-vsprintf: Likewise.
10791         * modules/unistdio/u32-asnprintf: Likewise.
10792         * modules/unistdio/u32-asprintf: Likewise.
10793         * modules/unistdio/u32-snprintf: Likewise.
10794         * modules/unistdio/u32-sprintf: Likewise.
10795         * modules/unistdio/u32-u32-asnprintf: Likewise.
10796         * modules/unistdio/u32-u32-asprintf: Likewise.
10797         * modules/unistdio/u32-u32-snprintf: Likewise.
10798         * modules/unistdio/u32-u32-sprintf: Likewise.
10799         * modules/unistdio/u32-u32-vasnprintf: Likewise.
10800         * modules/unistdio/u32-u32-vasprintf: Likewise.
10801         * modules/unistdio/u32-u32-vsnprintf: Likewise.
10802         * modules/unistdio/u32-u32-vsprintf: Likewise.
10803         * modules/unistdio/u32-vasnprintf: Likewise.
10804         * modules/unistdio/u32-vasprintf: Likewise.
10805         * modules/unistdio/u32-vsnprintf: Likewise.
10806         * modules/unistdio/u32-vsprintf: Likewise.
10807         * modules/unistdio/ulc-asnprintf: Likewise.
10808         * modules/unistdio/ulc-asprintf: Likewise.
10809         * modules/unistdio/ulc-fprintf: Likewise.
10810         * modules/unistdio/ulc-snprintf: Likewise.
10811         * modules/unistdio/ulc-sprintf: Likewise.
10812         * modules/unistdio/ulc-vasnprintf: Likewise.
10813         * modules/unistdio/ulc-vasprintf: Likewise.
10814         * modules/unistdio/ulc-vfprintf: Likewise.
10815         * modules/unistdio/ulc-vsnprintf: Likewise.
10816         * modules/unistdio/ulc-vsprintf: Likewise.
10817         * modules/unistr/u8-check: Likewise.
10818         * modules/unistr/u8-chr: Likewise.
10819         * modules/unistr/u8-cmp: Likewise.
10820         * modules/unistr/u8-cmp2: Likewise.
10821         * modules/unistr/u8-cpy: Likewise.
10822         * modules/unistr/u8-cpy-alloc: Likewise.
10823         * modules/unistr/u8-endswith: Likewise.
10824         * modules/unistr/u8-mblen: Likewise.
10825         * modules/unistr/u8-mbsnlen: Likewise.
10826         * modules/unistr/u8-mbtouc: Likewise.
10827         * modules/unistr/u8-mbtouc-unsafe: Likewise.
10828         * modules/unistr/u8-mbtoucr: Likewise.
10829         * modules/unistr/u8-move: Likewise.
10830         * modules/unistr/u8-next: Likewise.
10831         * modules/unistr/u8-prev: Likewise.
10832         * modules/unistr/u8-set: Likewise.
10833         * modules/unistr/u8-startswith: Likewise.
10834         * modules/unistr/u8-stpcpy: Likewise.
10835         * modules/unistr/u8-stpncpy: Likewise.
10836         * modules/unistr/u8-strcat: Likewise.
10837         * modules/unistr/u8-strchr: Likewise.
10838         * modules/unistr/u8-strcmp: Likewise.
10839         * modules/unistr/u8-strcoll: Likewise.
10840         * modules/unistr/u8-strcpy: Likewise.
10841         * modules/unistr/u8-strcspn: Likewise.
10842         * modules/unistr/u8-strdup: Likewise.
10843         * modules/unistr/u8-strlen: Likewise.
10844         * modules/unistr/u8-strmblen: Likewise.
10845         * modules/unistr/u8-strmbtouc: Likewise.
10846         * modules/unistr/u8-strncat: Likewise.
10847         * modules/unistr/u8-strncmp: Likewise.
10848         * modules/unistr/u8-strncpy: Likewise.
10849         * modules/unistr/u8-strnlen: Likewise.
10850         * modules/unistr/u8-strpbrk: Likewise.
10851         * modules/unistr/u8-strrchr: Likewise.
10852         * modules/unistr/u8-strspn: Likewise.
10853         * modules/unistr/u8-strstr: Likewise.
10854         * modules/unistr/u8-strtok: Likewise.
10855         * modules/unistr/u8-to-u16: Likewise.
10856         * modules/unistr/u8-to-u32: Likewise.
10857         * modules/unistr/u8-uctomb: Likewise.
10858         * modules/unistr/u16-check: Likewise.
10859         * modules/unistr/u16-chr: Likewise.
10860         * modules/unistr/u16-cmp: Likewise.
10861         * modules/unistr/u16-cmp2: Likewise.
10862         * modules/unistr/u16-cpy: Likewise.
10863         * modules/unistr/u16-cpy-alloc: Likewise.
10864         * modules/unistr/u16-endswith: Likewise.
10865         * modules/unistr/u16-mblen: Likewise.
10866         * modules/unistr/u16-mbsnlen: Likewise.
10867         * modules/unistr/u16-mbtouc: Likewise.
10868         * modules/unistr/u16-mbtouc-unsafe: Likewise.
10869         * modules/unistr/u16-mbtoucr: Likewise.
10870         * modules/unistr/u16-move: Likewise.
10871         * modules/unistr/u16-next: Likewise.
10872         * modules/unistr/u16-prev: Likewise.
10873         * modules/unistr/u16-set: Likewise.
10874         * modules/unistr/u16-startswith: Likewise.
10875         * modules/unistr/u16-stpcpy: Likewise.
10876         * modules/unistr/u16-stpncpy: Likewise.
10877         * modules/unistr/u16-strcat: Likewise.
10878         * modules/unistr/u16-strchr: Likewise.
10879         * modules/unistr/u16-strcmp: Likewise.
10880         * modules/unistr/u16-strcoll: Likewise.
10881         * modules/unistr/u16-strcpy: Likewise.
10882         * modules/unistr/u16-strcspn: Likewise.
10883         * modules/unistr/u16-strdup: Likewise.
10884         * modules/unistr/u16-strlen: Likewise.
10885         * modules/unistr/u16-strmblen: Likewise.
10886         * modules/unistr/u16-strmbtouc: Likewise.
10887         * modules/unistr/u16-strncat: Likewise.
10888         * modules/unistr/u16-strncmp: Likewise.
10889         * modules/unistr/u16-strncpy: Likewise.
10890         * modules/unistr/u16-strnlen: Likewise.
10891         * modules/unistr/u16-strpbrk: Likewise.
10892         * modules/unistr/u16-strrchr: Likewise.
10893         * modules/unistr/u16-strspn: Likewise.
10894         * modules/unistr/u16-strstr: Likewise.
10895         * modules/unistr/u16-strtok: Likewise.
10896         * modules/unistr/u16-to-u32: Likewise.
10897         * modules/unistr/u16-to-u8: Likewise.
10898         * modules/unistr/u16-uctomb: Likewise.
10899         * modules/unistr/u32-check: Likewise.
10900         * modules/unistr/u32-chr: Likewise.
10901         * modules/unistr/u32-cmp: Likewise.
10902         * modules/unistr/u32-cmp2: Likewise.
10903         * modules/unistr/u32-cpy: Likewise.
10904         * modules/unistr/u32-cpy-alloc: Likewise.
10905         * modules/unistr/u32-endswith: Likewise.
10906         * modules/unistr/u32-mblen: Likewise.
10907         * modules/unistr/u32-mbsnlen: Likewise.
10908         * modules/unistr/u32-mbtouc: Likewise.
10909         * modules/unistr/u32-mbtouc-unsafe: Likewise.
10910         * modules/unistr/u32-mbtoucr: Likewise.
10911         * modules/unistr/u32-move: Likewise.
10912         * modules/unistr/u32-next: Likewise.
10913         * modules/unistr/u32-prev: Likewise.
10914         * modules/unistr/u32-set: Likewise.
10915         * modules/unistr/u32-startswith: Likewise.
10916         * modules/unistr/u32-stpcpy: Likewise.
10917         * modules/unistr/u32-stpncpy: Likewise.
10918         * modules/unistr/u32-strcat: Likewise.
10919         * modules/unistr/u32-strchr: Likewise.
10920         * modules/unistr/u32-strcmp: Likewise.
10921         * modules/unistr/u32-strcoll: Likewise.
10922         * modules/unistr/u32-strcpy: Likewise.
10923         * modules/unistr/u32-strcspn: Likewise.
10924         * modules/unistr/u32-strdup: Likewise.
10925         * modules/unistr/u32-strlen: Likewise.
10926         * modules/unistr/u32-strmblen: Likewise.
10927         * modules/unistr/u32-strmbtouc: Likewise.
10928         * modules/unistr/u32-strncat: Likewise.
10929         * modules/unistr/u32-strncmp: Likewise.
10930         * modules/unistr/u32-strncpy: Likewise.
10931         * modules/unistr/u32-strnlen: Likewise.
10932         * modules/unistr/u32-strpbrk: Likewise.
10933         * modules/unistr/u32-strrchr: Likewise.
10934         * modules/unistr/u32-strspn: Likewise.
10935         * modules/unistr/u32-strstr: Likewise.
10936         * modules/unistr/u32-strtok: Likewise.
10937         * modules/unistr/u32-to-u16: Likewise.
10938         * modules/unistr/u32-to-u8: Likewise.
10939         * modules/unistr/u32-uctomb: Likewise.
10940         * modules/uniwbrk/u8-wordbreaks: Likewise.
10941         * modules/uniwbrk/u16-wordbreaks: Likewise.
10942         * modules/uniwbrk/u32-wordbreaks: Likewise.
10943         * modules/uniwbrk/ulc-wordbreaks: Likewise.
10944         * modules/uniwbrk/wordbreak-property: Likewise.
10945         * modules/uniwidth/u8-strwidth: Likewise.
10946         * modules/uniwidth/u8-width: Likewise.
10947         * modules/uniwidth/u16-strwidth: Likewise.
10948         * modules/uniwidth/u16-width: Likewise.
10949         * modules/uniwidth/u32-strwidth: Likewise.
10950         * modules/uniwidth/u32-width: Likewise.
10951         * modules/uniwidth/width: Likewise.
10952         * modules/unicase/cased-tests (Makefile.am): Link all test programs
10953         with $(LIBUNISTRING).
10954         * modules/unicase/ignorable-tests: Likewise.
10955         * modules/unicase/locale-language-tests: Likewise.
10956         * modules/unicase/tolower-tests: Likewise.
10957         * modules/unicase/totitle-tests: Likewise.
10958         * modules/unicase/toupper-tests: Likewise.
10959         * modules/unicase/u8-casecmp-tests: Likewise.
10960         * modules/unicase/u8-casecoll-tests: Likewise.
10961         * modules/unicase/u8-casefold-tests: Likewise.
10962         * modules/unicase/u8-is-cased-tests: Likewise.
10963         * modules/unicase/u8-is-casefolded-tests: Likewise.
10964         * modules/unicase/u8-is-lowercase-tests: Likewise.
10965         * modules/unicase/u8-is-titlecase-tests: Likewise.
10966         * modules/unicase/u8-is-uppercase-tests: Likewise.
10967         * modules/unicase/u8-tolower-tests: Likewise.
10968         * modules/unicase/u8-totitle-tests: Likewise.
10969         * modules/unicase/u8-toupper-tests: Likewise.
10970         * modules/unicase/u16-casecmp-tests: Likewise.
10971         * modules/unicase/u16-casecoll-tests: Likewise.
10972         * modules/unicase/u16-casefold-tests: Likewise.
10973         * modules/unicase/u16-is-cased-tests: Likewise.
10974         * modules/unicase/u16-is-casefolded-tests: Likewise.
10975         * modules/unicase/u16-is-lowercase-tests: Likewise.
10976         * modules/unicase/u16-is-titlecase-tests: Likewise.
10977         * modules/unicase/u16-is-uppercase-tests: Likewise.
10978         * modules/unicase/u16-tolower-tests: Likewise.
10979         * modules/unicase/u16-totitle-tests: Likewise.
10980         * modules/unicase/u16-toupper-tests: Likewise.
10981         * modules/unicase/u32-casecmp-tests: Likewise.
10982         * modules/unicase/u32-casecoll-tests: Likewise.
10983         * modules/unicase/u32-casefold-tests: Likewise.
10984         * modules/unicase/u32-is-cased-tests: Likewise.
10985         * modules/unicase/u32-is-casefolded-tests: Likewise.
10986         * modules/unicase/u32-is-lowercase-tests: Likewise.
10987         * modules/unicase/u32-is-titlecase-tests: Likewise.
10988         * modules/unicase/u32-is-uppercase-tests: Likewise.
10989         * modules/unicase/u32-tolower-tests: Likewise.
10990         * modules/unicase/u32-totitle-tests: Likewise.
10991         * modules/unicase/u32-toupper-tests: Likewise.
10992         * modules/unicase/ulc-casecmp-tests: Likewise.
10993         * modules/unicase/ulc-casecoll-tests: Likewise.
10994         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
10995         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
10996         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
10997         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
10998         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
10999         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
11000         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
11001         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
11002         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
11003         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
11004         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
11005         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
11006         * modules/unictype/bidicategory-byname-tests: Likewise.
11007         * modules/unictype/bidicategory-name-tests: Likewise.
11008         * modules/unictype/bidicategory-of-tests: Likewise.
11009         * modules/unictype/bidicategory-test-tests: Likewise.
11010         * modules/unictype/block-list-tests: Likewise.
11011         * modules/unictype/block-of-tests: Likewise.
11012         * modules/unictype/block-test-tests: Likewise.
11013         * modules/unictype/category-C-tests: Likewise.
11014         * modules/unictype/category-Cc-tests: Likewise.
11015         * modules/unictype/category-Cf-tests: Likewise.
11016         * modules/unictype/category-Cn-tests: Likewise.
11017         * modules/unictype/category-Co-tests: Likewise.
11018         * modules/unictype/category-Cs-tests: Likewise.
11019         * modules/unictype/category-L-tests: Likewise.
11020         * modules/unictype/category-Ll-tests: Likewise.
11021         * modules/unictype/category-Lm-tests: Likewise.
11022         * modules/unictype/category-Lo-tests: Likewise.
11023         * modules/unictype/category-Lt-tests: Likewise.
11024         * modules/unictype/category-Lu-tests: Likewise.
11025         * modules/unictype/category-M-tests: Likewise.
11026         * modules/unictype/category-Mc-tests: Likewise.
11027         * modules/unictype/category-Me-tests: Likewise.
11028         * modules/unictype/category-Mn-tests: Likewise.
11029         * modules/unictype/category-N-tests: Likewise.
11030         * modules/unictype/category-Nd-tests: Likewise.
11031         * modules/unictype/category-Nl-tests: Likewise.
11032         * modules/unictype/category-No-tests: Likewise.
11033         * modules/unictype/category-P-tests: Likewise.
11034         * modules/unictype/category-Pc-tests: Likewise.
11035         * modules/unictype/category-Pd-tests: Likewise.
11036         * modules/unictype/category-Pe-tests: Likewise.
11037         * modules/unictype/category-Pf-tests: Likewise.
11038         * modules/unictype/category-Pi-tests: Likewise.
11039         * modules/unictype/category-Po-tests: Likewise.
11040         * modules/unictype/category-Ps-tests: Likewise.
11041         * modules/unictype/category-S-tests: Likewise.
11042         * modules/unictype/category-Sc-tests: Likewise.
11043         * modules/unictype/category-Sk-tests: Likewise.
11044         * modules/unictype/category-Sm-tests: Likewise.
11045         * modules/unictype/category-So-tests: Likewise.
11046         * modules/unictype/category-Z-tests: Likewise.
11047         * modules/unictype/category-Zl-tests: Likewise.
11048         * modules/unictype/category-Zp-tests: Likewise.
11049         * modules/unictype/category-Zs-tests: Likewise.
11050         * modules/unictype/category-and-not-tests: Likewise.
11051         * modules/unictype/category-and-tests: Likewise.
11052         * modules/unictype/category-byname-tests: Likewise.
11053         * modules/unictype/category-name-tests: Likewise.
11054         * modules/unictype/category-none-tests: Likewise.
11055         * modules/unictype/category-of-tests: Likewise.
11056         * modules/unictype/category-or-tests: Likewise.
11057         * modules/unictype/category-test-withtable-tests: Likewise.
11058         * modules/unictype/combining-class-tests: Likewise.
11059         * modules/unictype/ctype-alnum-tests: Likewise.
11060         * modules/unictype/ctype-alpha-tests: Likewise.
11061         * modules/unictype/ctype-blank-tests: Likewise.
11062         * modules/unictype/ctype-cntrl-tests: Likewise.
11063         * modules/unictype/ctype-digit-tests: Likewise.
11064         * modules/unictype/ctype-graph-tests: Likewise.
11065         * modules/unictype/ctype-lower-tests: Likewise.
11066         * modules/unictype/ctype-print-tests: Likewise.
11067         * modules/unictype/ctype-punct-tests: Likewise.
11068         * modules/unictype/ctype-space-tests: Likewise.
11069         * modules/unictype/ctype-upper-tests: Likewise.
11070         * modules/unictype/ctype-xdigit-tests: Likewise.
11071         * modules/unictype/decimal-digit-tests: Likewise.
11072         * modules/unictype/digit-tests: Likewise.
11073         * modules/unictype/mirror-tests: Likewise.
11074         * modules/unictype/numeric-tests: Likewise.
11075         * modules/unictype/property-alphabetic-tests: Likewise.
11076         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
11077         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
11078         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
11079         * modules/unictype/property-bidi-block-separator-tests: Likewise.
11080         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
11081         * modules/unictype/property-bidi-common-separator-tests: Likewise.
11082         * modules/unictype/property-bidi-control-tests: Likewise.
11083         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
11084         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
11085         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
11086         * modules/unictype/property-bidi-european-digit-tests: Likewise.
11087         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
11088         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
11089         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
11090         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
11091         * modules/unictype/property-bidi-pdf-tests: Likewise.
11092         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
11093         * modules/unictype/property-bidi-whitespace-tests: Likewise.
11094         * modules/unictype/property-byname-tests: Likewise.
11095         * modules/unictype/property-combining-tests: Likewise.
11096         * modules/unictype/property-composite-tests: Likewise.
11097         * modules/unictype/property-currency-symbol-tests: Likewise.
11098         * modules/unictype/property-dash-tests: Likewise.
11099         * modules/unictype/property-decimal-digit-tests: Likewise.
11100         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
11101         * modules/unictype/property-deprecated-tests: Likewise.
11102         * modules/unictype/property-diacritic-tests: Likewise.
11103         * modules/unictype/property-extender-tests: Likewise.
11104         * modules/unictype/property-format-control-tests: Likewise.
11105         * modules/unictype/property-grapheme-base-tests: Likewise.
11106         * modules/unictype/property-grapheme-extend-tests: Likewise.
11107         * modules/unictype/property-grapheme-link-tests: Likewise.
11108         * modules/unictype/property-hex-digit-tests: Likewise.
11109         * modules/unictype/property-hyphen-tests: Likewise.
11110         * modules/unictype/property-id-continue-tests: Likewise.
11111         * modules/unictype/property-id-start-tests: Likewise.
11112         * modules/unictype/property-ideographic-tests: Likewise.
11113         * modules/unictype/property-ids-binary-operator-tests: Likewise.
11114         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
11115         * modules/unictype/property-ignorable-control-tests: Likewise.
11116         * modules/unictype/property-iso-control-tests: Likewise.
11117         * modules/unictype/property-join-control-tests: Likewise.
11118         * modules/unictype/property-left-of-pair-tests: Likewise.
11119         * modules/unictype/property-line-separator-tests: Likewise.
11120         * modules/unictype/property-logical-order-exception-tests: Likewise.
11121         * modules/unictype/property-lowercase-tests: Likewise.
11122         * modules/unictype/property-math-tests: Likewise.
11123         * modules/unictype/property-non-break-tests: Likewise.
11124         * modules/unictype/property-not-a-character-tests: Likewise.
11125         * modules/unictype/property-numeric-tests: Likewise.
11126         * modules/unictype/property-other-alphabetic-tests: Likewise.
11127         * modules/unictype/property-other-default-ignorable-code-point-tests:
11128         Likewise.
11129         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
11130         * modules/unictype/property-other-id-continue-tests: Likewise.
11131         * modules/unictype/property-other-id-start-tests: Likewise.
11132         * modules/unictype/property-other-lowercase-tests: Likewise.
11133         * modules/unictype/property-other-math-tests: Likewise.
11134         * modules/unictype/property-other-uppercase-tests: Likewise.
11135         * modules/unictype/property-paired-punctuation-tests: Likewise.
11136         * modules/unictype/property-paragraph-separator-tests: Likewise.
11137         * modules/unictype/property-pattern-syntax-tests: Likewise.
11138         * modules/unictype/property-pattern-white-space-tests: Likewise.
11139         * modules/unictype/property-private-use-tests: Likewise.
11140         * modules/unictype/property-punctuation-tests: Likewise.
11141         * modules/unictype/property-quotation-mark-tests: Likewise.
11142         * modules/unictype/property-radical-tests: Likewise.
11143         * modules/unictype/property-sentence-terminal-tests: Likewise.
11144         * modules/unictype/property-soft-dotted-tests: Likewise.
11145         * modules/unictype/property-space-tests: Likewise.
11146         * modules/unictype/property-terminal-punctuation-tests: Likewise.
11147         * modules/unictype/property-test-tests: Likewise.
11148         * modules/unictype/property-titlecase-tests: Likewise.
11149         * modules/unictype/property-unassigned-code-value-tests: Likewise.
11150         * modules/unictype/property-unified-ideograph-tests: Likewise.
11151         * modules/unictype/property-uppercase-tests: Likewise.
11152         * modules/unictype/property-variation-selector-tests: Likewise.
11153         * modules/unictype/property-white-space-tests: Likewise.
11154         * modules/unictype/property-xid-continue-tests: Likewise.
11155         * modules/unictype/property-xid-start-tests: Likewise.
11156         * modules/unictype/property-zero-width-tests: Likewise.
11157         * modules/unictype/scripts-tests: Likewise.
11158         * modules/unictype/syntax-c-ident-tests: Likewise.
11159         * modules/unictype/syntax-c-whitespace-tests: Likewise.
11160         * modules/unictype/syntax-java-ident-tests: Likewise.
11161         * modules/unictype/syntax-java-whitespace-tests: Likewise.
11162         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
11163         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
11164         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
11165         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
11166         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
11167         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
11168         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
11169         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
11170         * modules/uniname/uniname-tests: Likewise.
11171         * modules/uninorm/canonical-decomposition-tests: Likewise.
11172         * modules/uninorm/compat-decomposition-tests: Likewise.
11173         * modules/uninorm/composition-tests: Likewise.
11174         * modules/uninorm/decomposing-form-tests: Likewise.
11175         * modules/uninorm/decomposition-tests: Likewise.
11176         * modules/uninorm/filter-tests: Likewise.
11177         * modules/uninorm/nfc-tests: Likewise.
11178         * modules/uninorm/nfd-tests: Likewise.
11179         * modules/uninorm/nfkc-tests: Likewise.
11180         * modules/uninorm/nfkd-tests: Likewise.
11181         * modules/uninorm/u8-normcmp-tests: Likewise.
11182         * modules/uninorm/u8-normcoll-tests: Likewise.
11183         * modules/uninorm/u16-normcmp-tests: Likewise.
11184         * modules/uninorm/u16-normcoll-tests: Likewise.
11185         * modules/uninorm/u32-normcmp-tests: Likewise.
11186         * modules/uninorm/u32-normcoll-tests: Likewise.
11187         * modules/unistdio/u8-asnprintf-tests: Likewise.
11188         * modules/unistdio/u8-vasnprintf-tests: Likewise.
11189         * modules/unistdio/u8-vasprintf-tests: Likewise.
11190         * modules/unistdio/u8-vsnprintf-tests: Likewise.
11191         * modules/unistdio/u8-vsprintf-tests: Likewise.
11192         * modules/unistdio/u16-asnprintf-tests: Likewise.
11193         * modules/unistdio/u16-vasnprintf-tests: Likewise.
11194         * modules/unistdio/u16-vasprintf-tests: Likewise.
11195         * modules/unistdio/u16-vsnprintf-tests: Likewise.
11196         * modules/unistdio/u16-vsprintf-tests: Likewise.
11197         * modules/unistdio/u32-asnprintf-tests: Likewise.
11198         * modules/unistdio/u32-vasnprintf-tests: Likewise.
11199         * modules/unistdio/u32-vasprintf-tests: Likewise.
11200         * modules/unistdio/u32-vsnprintf-tests: Likewise.
11201         * modules/unistdio/u32-vsprintf-tests: Likewise.
11202         * modules/unistdio/ulc-asnprintf-tests: Likewise.
11203         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
11204         * modules/unistdio/ulc-vasprintf-tests: Likewise.
11205         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
11206         * modules/unistdio/ulc-vsprintf-tests: Likewise.
11207         * modules/unistr/u8-check-tests: Likewise.
11208         * modules/unistr/u8-chr-tests: Likewise.
11209         * modules/unistr/u8-cmp-tests: Likewise.
11210         * modules/unistr/u8-cmp2-tests: Likewise.
11211         * modules/unistr/u8-cpy-alloc-tests: Likewise.
11212         * modules/unistr/u8-cpy-tests: Likewise.
11213         * modules/unistr/u8-mblen-tests: Likewise.
11214         * modules/unistr/u8-mbsnlen-tests: Likewise.
11215         * modules/unistr/u8-mbtouc-tests: Likewise.
11216         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
11217         * modules/unistr/u8-mbtoucr-tests: Likewise.
11218         * modules/unistr/u8-move-tests: Likewise.
11219         * modules/unistr/u8-next-tests: Likewise.
11220         * modules/unistr/u8-prev-tests: Likewise.
11221         * modules/unistr/u8-set-tests: Likewise.
11222         * modules/unistr/u8-stpcpy-tests: Likewise.
11223         * modules/unistr/u8-stpncpy-tests: Likewise.
11224         * modules/unistr/u8-strcat-tests: Likewise.
11225         * modules/unistr/u8-strcmp-tests: Likewise.
11226         * modules/unistr/u8-strcoll-tests: Likewise.
11227         * modules/unistr/u8-strcpy-tests: Likewise.
11228         * modules/unistr/u8-strdup-tests: Likewise.
11229         * modules/unistr/u8-strlen-tests: Likewise.
11230         * modules/unistr/u8-strmblen-tests: Likewise.
11231         * modules/unistr/u8-strmbtouc-tests: Likewise.
11232         * modules/unistr/u8-strncat-tests: Likewise.
11233         * modules/unistr/u8-strncmp-tests: Likewise.
11234         * modules/unistr/u8-strncpy-tests: Likewise.
11235         * modules/unistr/u8-strnlen-tests: Likewise.
11236         * modules/unistr/u8-to-u16-tests: Likewise.
11237         * modules/unistr/u8-to-u32-tests: Likewise.
11238         * modules/unistr/u8-uctomb-tests: Likewise.
11239         * modules/unistr/u16-check-tests: Likewise.
11240         * modules/unistr/u16-chr-tests: Likewise.
11241         * modules/unistr/u16-cmp-tests: Likewise.
11242         * modules/unistr/u16-cmp2-tests: Likewise.
11243         * modules/unistr/u16-cpy-alloc-tests: Likewise.
11244         * modules/unistr/u16-cpy-tests: Likewise.
11245         * modules/unistr/u16-mblen-tests: Likewise.
11246         * modules/unistr/u16-mbsnlen-tests: Likewise.
11247         * modules/unistr/u16-mbtouc-tests: Likewise.
11248         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
11249         * modules/unistr/u16-mbtoucr-tests: Likewise.
11250         * modules/unistr/u16-move-tests: Likewise.
11251         * modules/unistr/u16-next-tests: Likewise.
11252         * modules/unistr/u16-prev-tests: Likewise.
11253         * modules/unistr/u16-set-tests: Likewise.
11254         * modules/unistr/u16-stpcpy-tests: Likewise.
11255         * modules/unistr/u16-stpncpy-tests: Likewise.
11256         * modules/unistr/u16-strcat-tests: Likewise.
11257         * modules/unistr/u16-strcmp-tests: Likewise.
11258         * modules/unistr/u16-strcoll-tests: Likewise.
11259         * modules/unistr/u16-strcpy-tests: Likewise.
11260         * modules/unistr/u16-strdup-tests: Likewise.
11261         * modules/unistr/u16-strlen-tests: Likewise.
11262         * modules/unistr/u16-strmblen-tests: Likewise.
11263         * modules/unistr/u16-strmbtouc-tests: Likewise.
11264         * modules/unistr/u16-strncat-tests: Likewise.
11265         * modules/unistr/u16-strncmp-tests: Likewise.
11266         * modules/unistr/u16-strncpy-tests: Likewise.
11267         * modules/unistr/u16-strnlen-tests: Likewise.
11268         * modules/unistr/u16-to-u32-tests: Likewise.
11269         * modules/unistr/u16-to-u8-tests: Likewise.
11270         * modules/unistr/u16-uctomb-tests: Likewise.
11271         * modules/unistr/u32-check-tests: Likewise.
11272         * modules/unistr/u32-chr-tests: Likewise.
11273         * modules/unistr/u32-cmp-tests: Likewise.
11274         * modules/unistr/u32-cmp2-tests: Likewise.
11275         * modules/unistr/u32-cpy-alloc-tests: Likewise.
11276         * modules/unistr/u32-cpy-tests: Likewise.
11277         * modules/unistr/u32-mblen-tests: Likewise.
11278         * modules/unistr/u32-mbsnlen-tests: Likewise.
11279         * modules/unistr/u32-mbtouc-tests: Likewise.
11280         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
11281         * modules/unistr/u32-mbtoucr-tests: Likewise.
11282         * modules/unistr/u32-move-tests: Likewise.
11283         * modules/unistr/u32-next-tests: Likewise.
11284         * modules/unistr/u32-prev-tests: Likewise.
11285         * modules/unistr/u32-set-tests: Likewise.
11286         * modules/unistr/u32-stpcpy-tests: Likewise.
11287         * modules/unistr/u32-stpncpy-tests: Likewise.
11288         * modules/unistr/u32-strcat-tests: Likewise.
11289         * modules/unistr/u32-strcmp-tests: Likewise.
11290         * modules/unistr/u32-strcoll-tests: Likewise.
11291         * modules/unistr/u32-strcpy-tests: Likewise.
11292         * modules/unistr/u32-strdup-tests: Likewise.
11293         * modules/unistr/u32-strlen-tests: Likewise.
11294         * modules/unistr/u32-strmblen-tests: Likewise.
11295         * modules/unistr/u32-strmbtouc-tests: Likewise.
11296         * modules/unistr/u32-strncat-tests: Likewise.
11297         * modules/unistr/u32-strncmp-tests: Likewise.
11298         * modules/unistr/u32-strncpy-tests: Likewise.
11299         * modules/unistr/u32-strnlen-tests: Likewise.
11300         * modules/unistr/u32-to-u16-tests: Likewise.
11301         * modules/unistr/u32-to-u8-tests: Likewise.
11302         * modules/unistr/u32-uctomb-tests: Likewise.
11303         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
11304         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
11305         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
11306         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
11307         * modules/uniwidth/u8-strwidth-tests: Likewise.
11308         * modules/uniwidth/u8-width-tests: Likewise.
11309         * modules/uniwidth/u16-strwidth-tests: Likewise.
11310         * modules/uniwidth/u16-width-tests: Likewise.
11311         * modules/uniwidth/u32-strwidth-tests: Likewise.
11312         * modules/uniwidth/u32-width-tests: Likewise.
11313         * modules/uniwidth/width-tests: Likewise.
11314
11315 2010-05-18  Richard Jones  <rjones@redhat.com>
11316
11317         doc: users.txt: list hivex
11318         * users.txt: Add hivex.
11319
11320 2010-05-18  Richard Jones  <rjones@redhat.com>
11321
11322         doc: users.txt: list febootstrap
11323         * users.txt: Add febootstrap.
11324
11325 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
11326
11327         bootstrap: fix an error when gnulib is not used as a git submodule
11328         * build-aux/bootstrap (gnulib_path): If its length is zero then
11329         assign "gnulib" to it.
11330         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
11331
11332 2010-05-16  Bruno Haible  <bruno@clisp.org>
11333
11334         Avoid autoconf warnings about AM_ICONV.
11335         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
11336         2.64.
11337
11338 2010-05-16  Bruno Haible  <bruno@clisp.org>
11339
11340         absolute-header: Make the macro usable in more situations.
11341         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
11342         from gl_ABSOLUTE_HEADER.
11343         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
11344
11345 2010-05-16  James Youngman  <jay@gnu.org>
11346
11347         doc: update users.txt
11348         * users.txt: Add CSSC.
11349
11350 2010-05-16  Jim Meyering  <meyering@redhat.com>
11351
11352         init.sh: fix an error in the previous change; add more comments
11353         * tests/init.sh: Compare exit code in loop against 9, not 2.
11354         Patch by Bruno Haible.
11355         Make the two tests more similar by adding an empty "then" clause.
11356         Add comments.
11357
11358         init.sh: avoid unnecessary shell re-exec
11359         * tests/init.sh: Improve the re-exec-required check to first test the
11360         current shell.  If it passes the test, do not search for a shell that
11361         does pass, and do not re-exec.  This test is particularly contorted to
11362         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
11363         of $(...) evokes a syntax error and causes immediate shell exit with
11364         status 2.  Bruno Haible reported that the re-exec made it impossible
11365         to single-step through any init.sh-using script.
11366
11367 2010-05-16  Bruno Haible  <bruno@clisp.org>
11368
11369         Fix collision between gnulib's and libintl's printf replacements.
11370         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
11371         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
11372         (printf): When using GNU C, map the __printf__ function to rpl_printf
11373         via __asm__. When not using GNU C, define rpl_printf instead of
11374         __printf__.
11375         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
11376         commit.
11377         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
11378         commit.
11379         * m4/asm-underscore.m4: New file.
11380         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
11381         * modules/stdio (Files): Add m4/asm-underscore.m4.
11382         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
11383         Reported by Ben Pfaff.
11384
11385 2010-05-16  Bruno Haible  <bruno@clisp.org>
11386
11387         verify: Avoid skipping the test on openSUSE 11.0.
11388         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
11389
11390 2010-05-13  Bruno Haible  <bruno@clisp.org>
11391
11392         Avoid useless warnings from G++.
11393         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
11394         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
11395         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11396
11397 2010-05-11  Jim Meyering  <meyering@redhat.com>
11398
11399         maint.mk: tweak preceding change
11400         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
11401         regexps tighter by anchoring at EOL, and make the new group "shy"
11402         for slightly decreased overhead.
11403
11404 2010-05-11  Eric Blake  <eblake@redhat.com>
11405
11406         maint.mk: gnulib doesn't guarantee NSIG
11407         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
11408
11409 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
11410
11411         test-pwrite.c: Remove unused variable declaration.
11412         * tests/test-pwrite.c (main): Remove read_buf declaration.
11413
11414         Remove useless test-pwrite.sh file.
11415         * tests/test-pwrite.sh: Delete file.
11416         * modules/pwrite-tests: Remove references.
11417         Reported by Bruno Haible.
11418
11419 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
11420
11421         init.sh: fix a typo
11422         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
11423
11424 2010-05-10  Jim Meyering  <meyering@redhat.com>
11425
11426         maint.mk: avoid using a temporary file in the always-defined-macros check
11427         * top/maint.mk (.re-defmac): Remove rule.
11428         (gl_trap_): Remove definition.
11429         (sc_prohibit_always-defined_macros): Rewrite not to create and
11430         depend on a temporary file.  Instead, depend on GNU grep's ability
11431         to read a list of regular expressions from stdin when given "-f -".
11432
11433 2010-05-09  Bruno Haible  <bruno@clisp.org>
11434
11435         Update to GNU gettext 0.18, part 1.
11436         * m4/gettext.m4: Update to GNU gettext 0.18.
11437         * m4/intl.m4: Likewise.
11438         * m4/po.m4: Likewise.
11439         * modules/gettext (Files): Add m4/fcntl-o.m4.
11440         (configure.ac): Require gettext infrastructure from version 0.18.
11441
11442 2010-05-09  Jim Meyering  <meyering@redhat.com>
11443
11444         init.sh: enable MALLOC_PERTURB_
11445         * tests/init.sh: Enable glibc's malloc-perturbing option.
11446
11447         maint.mk: improve sc_cross_check_PATH_usage_in_tests
11448         With my recent change in init.sh from the two-line form:
11449             -#   : ${srcdir=.}
11450             -#   . "$srcdir/init.sh"; path_prepend_ .
11451             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
11452         I noticed that using the one-line form would cause this test
11453         to fail with a false-positive, or to stop working altogether,
11454         depending on whether help-version changed or all the tests did.
11455         * top/maint.mk (_hv_regex): Remove this definition.
11456         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
11457         (_hv_regex_strong): Use a stronger regex to check for conformance.
11458         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
11459         Give a separate diagnostic for lack of conforming use.
11460
11461         maint.mk: prohibit definition of symbols defined by gnulib
11462         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
11463         definition of symbols defined by gnulib.
11464
11465 2010-05-09  Bruno Haible  <bruno@clisp.org>
11466
11467         acl: Avoid test failure on Cygwin-hosted mingw.
11468         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
11469
11470 2010-05-09  Bruno Haible  <bruno@clisp.org>
11471
11472         error: Use system's fcntl function.
11473         * lib/error.c (fcntl): Undefine.
11474
11475 2010-05-09  Jim Meyering  <meyering@redhat.com>
11476
11477         verify: adjust formatting to be more consistent
11478         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
11479         argument-list '('s, and after one comma.
11480
11481 2010-05-09  Bruno Haible  <bruno@clisp.org>
11482
11483         error: More reliable output on mingw.
11484         * lib/error.c: Include <windows.h>.
11485         (is_open): New function.
11486         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
11487         defined.
11488
11489 2010-05-09  Bruno Haible  <bruno@clisp.org>
11490
11491         vasnprintf: Fix syntax errors in libintl build on mingw.
11492         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
11493         pad_ourselves and prec_ourselves after use.
11494
11495 2010-05-08  Bruno Haible  <bruno@clisp.org>
11496
11497         * lib/config.charset: Update comments for Cygwin 1.7.
11498         * lib/localcharset.c: Likewise.
11499
11500 2010-05-07  Jim Meyering  <meyering@redhat.com>
11501
11502         init.sh: improve comments
11503         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
11504         . "${srcdir=.}/init.sh"; path_prepend_ .
11505         Add a note about path_prepend_ and the alternative of using
11506         TESTS_ENVIRONMENT.
11507
11508 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
11509
11510         exclude: Unescape hashed patterns in wildcard mode.
11511         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
11512         to the hash list.
11513         * tests/test-exclude8.sh: New test case.
11514         * modules/exclude-tests: Add new test.
11515
11516 2010-05-05  Eric Blake  <eblake@redhat.com>
11517
11518         verify: automate tests
11519         * modules/verify-tests: New module.
11520         * tests/test-verify.sh: New file.
11521         * tests/test-verify.c: Guard each negative test with a unique id.
11522         Also avoid warning about unused left hand of comma expressions.
11523
11524 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11525
11526         Further improvements to verify.h, suggested by Eric Blake.
11527         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
11528         the GL_* versions, to avoid collision with OpenGL.
11529         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
11530         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
11531         than testing merely whether it's defined.
11532
11533         Modify verify.h to pacify gcc -Wredundant_decls.
11534         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
11535         These use the prefix "GL_" since they're likely to be useful elsewhere.
11536         We may need to break them out into a different .h file.
11537         (__COUNTER__): Define to 0 if the compiler doesn't support it.
11538         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
11539         of verify_function__.
11540
11541 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
11542
11543         Tests for module pwrite.
11544         * modules/pwrite-tests: New file.
11545         * tests/test-pwrite.sh: New file.
11546         * tests/test-pwrite.c: New file.
11547
11548         New module pwrite.
11549         * lib/unistd.in.h (pwrite): New declaration.
11550         * lib/pwrite.c: New file, from glibc with modifications.
11551         * m4/pwrite.m4: New file.
11552         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
11553         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
11554         REPLACE_PWRITE.
11555         * modules/pwrite: New file.
11556         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
11557         REPLACE_PWRITE.
11558         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
11559         * doc/posix-functions/pwrite.texi: Mention the new module.
11560
11561 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
11562
11563         pread: Update documentation.
11564         * doc/posix-functions/pread.texi: Mention the 'pread' module.
11565
11566 2010-05-04  Eric Blake  <eblake@redhat.com>
11567
11568         docs: update cygwin progress
11569         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
11570         this bug.
11571         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
11572         Added in cygwin 1.7.2.
11573         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
11574         Likewise.
11575         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
11576         Likewise.
11577         * doc/glibc-functions/dup3.texi (dup3): Likewise.
11578         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
11579         * doc/glibc-functions/accept4.texi (accept4): Likewise.
11580         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
11581         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
11582         Mention nproc module.
11583         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
11584         bug in cygwin 1.7.5 addition.
11585         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
11586         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
11587         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
11588         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
11589         1.7.5.
11590         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
11591         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
11592         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
11593         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
11594         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
11595         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
11596         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
11597         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
11598         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
11599         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
11600         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
11601         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
11602         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
11603         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
11604         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
11605         Likewise.
11606         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
11607         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
11608         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
11609         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
11610         Likewise.
11611         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
11612         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
11613         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
11614         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
11615         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
11616         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
11617         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
11618         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
11619         Likewise.
11620         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
11621         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
11622         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
11623         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
11624         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
11625         Likewise.
11626         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
11627         Likewise.
11628         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
11629         Likewise.
11630         * doc/glibc-functions/xdrrec_endofrecord.texi
11631         (xdrrec_endofrecord): Likewise.
11632         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
11633         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
11634         Likewise.
11635         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
11636         Likewise.
11637
11638 2010-05-04  Jim Meyering  <meyering@redhat.com>
11639
11640         gendocs.sh: make its "-s FILE" option more useful
11641         * build-aux/gendocs.sh: When honoring the -s FILE option, update
11642         $PACKAGE to reflect the probably-different basename of "FILE".
11643
11644 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
11645
11646         bootstrap: don't ignore download_po_files failure
11647         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
11648         failure.
11649
11650 2010-05-03  Jim Meyering  <meyering@redhat.com>
11651
11652         maint.mk: allow to pass options to gendocs.sh
11653         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
11654         (gendocs_options_): New overridable variable.
11655
11656         gnu-web-doc-update: don't ignore configure or build failure
11657         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
11658
11659         announce-gen: backslash-escape '@'s in --help output
11660         * build-aux/announce-gen: Fix syntax errors.
11661
11662         maint.mk, announce-gen: allow project-specific announcement mail headers
11663         * top/maint.mk (translation_project_): Define default.
11664         (announcement_Cc_, announcement_mail_headers_): Likewise.
11665         (announcement): Invoke announce-gen with new --mail-headers option.
11666         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
11667
11668         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
11669         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
11670         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
11671         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
11672         line in the "err2" output file when running "make check" in verbose
11673         mode (i.e., with set -x enabled).
11674
11675 2010-05-03  Bruno Haible  <bruno@clisp.org>
11676
11677         wctob: Fix for weird platforms.
11678         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
11679         argument value.
11680
11681 2010-05-03  Jim Meyering  <meyering@redhat.com>
11682
11683         maint.mk: prohibit unwarranted use of <strings.h>
11684         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
11685         strings.h in a file that does not also use strcasecmp, strncasecmp,
11686         ffs or ffsll.
11687
11688         maint.mk: remove obsolete comments
11689         * top/maint.mk: Remove stale, commented-out rules.
11690
11691 2010-05-02  Bruno Haible  <bruno@clisp.org>
11692
11693         wcwidth: Declare also when it's aliased.
11694         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
11695         macro.
11696
11697 2010-05-02  Bruno Haible  <bruno@clisp.org>
11698
11699         Fix regression from 2010-04-25.
11700         * gnulib-tool (func_modules_transitive_closure): Check the status of
11701         all modules, not only of the tests that are of the form foo-tests where
11702         foo is a module.
11703
11704 2010-05-02  Bruno Haible  <bruno@clisp.org>
11705
11706         wctob: Work around nasty Cygwin 1.7.2 bug.
11707         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
11708         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
11709
11710 2010-05-01  Bruno Haible  <bruno@clisp.org>
11711
11712         fpurge: Sharper test.
11713         * tests/test-fpurge.c (main): Add one more ftell check.
11714         * modules/fpurge-tests (Depends-on): Add ftell.
11715         Suggested by Eric Blake.
11716
11717 2010-05-01  Bruno Haible  <bruno@clisp.org>
11718
11719         ftello: Another test.
11720         * tests/test-ftello3.c: New file.
11721         * modules/ftello-tests (Files): Add it.
11722         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
11723         MOSTLYCLEANFILES.
11724
11725         ftell: Another test.
11726         * tests/test-ftell3.c: New file.
11727         * modules/ftell-tests (Files): Add it.
11728         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
11729         MOSTLYCLEANFILES.
11730
11731 2010-05-01  Bruno Haible  <bruno@clisp.org>
11732
11733         ftell, ftello: Work around Solaris bug.
11734         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
11735         * lib/ftello.c: Include stdio-impl.h.
11736         (ftello): On Solaris, when _IOWRT is set, compute the result without
11737         looking at _IOREAD.
11738         * modules/ftello (Files): Add lib/stdio-impl.h.
11739         * doc/posix-functions/ftell.texi: Mention Solaris bug.
11740         * doc/posix-functions/ftello.texi: Likewise.
11741         Reported by Eric Blake.
11742
11743 2010-05-01  Bruno Haible  <bruno@clisp.org>
11744
11745         freading: Adapt to special meaning of _IOREAD flag on Solaris.
11746         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
11747         the _IOWRT flag is also set.
11748
11749 2010-05-01  Bruno Haible  <bruno@clisp.org>
11750
11751         Fix doc about a HP-UX stdio bug.
11752         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
11753         * doc/posix-functions/ftello.texi: Likewise.
11754
11755 2010-05-01  Bruno Haible  <bruno@clisp.org>
11756
11757         lseek test: Fix failure on Solaris.
11758         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
11759         output.
11760
11761 2010-04-30  Jim Meyering  <meyering@redhat.com>
11762
11763         bootstrap: don't ignore failure to generate po*/Makevars
11764         * build-aux/bootstrap (with_gettext): Don't ignore failure
11765         to create po/Makevars or runtime-po/Makevars.
11766
11767 2010-04-29  Eric Blake  <eblake@redhat.com>
11768
11769         headers: relax license to LGPLv2+
11770         * modules/fcntl-h (License): Relax license.
11771         * modules/getopt-posix (License): Likewise.
11772         * modules/locale (License): Likewise.
11773         * modules/math (License): Likewise.
11774         * modules/pty (License): Likewise.
11775         * modules/sched (License): Likewise.
11776         * modules/search (License): Likewise.
11777         * modules/spawn (License): Likewise.
11778         * modules/stdarg (License): Likewise.
11779         * modules/sysexits (License): Likewise.
11780
11781 2010-04-29  Jim Meyering  <meyering@redhat.com>
11782
11783         inttypes: relax license to LGPLv2+
11784         * modules/inttypes (License): Relax license.
11785
11786 2010-04-29  Simon Josefsson  <simon@josefsson.org>
11787
11788         * top/maint.mk (indent): Run twice to produce idempotent results.
11789
11790 2010-04-28  Bruno Haible  <bruno@clisp.org>
11791
11792         getdate: Generate getdate.c in the source directory.
11793         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
11794         MOSTLYCLEANFILES.
11795         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
11796
11797 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
11798
11799         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
11800         is not declared as a const *; avoid warnings in that case.
11801
11802 2010-04-28  Eric Blake  <eblake@redhat.com>
11803
11804         canonicalize-lgpl: avoid compiler warning
11805         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
11806         declaration' / 'extraneous semicolon' warning with some compilers.
11807         Reported by Andreas Gruenbacher.
11808
11809 2010-04-28  Jim Meyering  <meyering@redhat.com>
11810
11811         init.sh: ensure a more reliable exit status when exiting via trap
11812         * tests/init.sh (setup_): Don't rely on $? in signal handler.
11813         Inspired by patches from Dmitry V. Levin.
11814         Also trap on signal 3 (SIGQUIT).
11815
11816 2010-04-27  Bruno Haible  <bruno@clisp.org>
11817
11818         Update doc about utimes().
11819         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
11820         'utimens' module.
11821         Reported by Andreas Gruenbacher <agruen@suse.de>.
11822
11823 2010-04-27  Eric Blake  <eblake@redhat.com>
11824
11825         full-read, full-write: relax license
11826         * modules/full-read (License): Drop to LGPLv2+.
11827         * modules/full-write (License): Likewise.
11828         * modules/safe-read (License): Likewise.
11829         * modules/safe-write (License): Likewise.
11830
11831         pthread: mention library for linking
11832         * modules/pthread (Link): Mention $(LIB_PTHREAD).
11833
11834 2010-04-27  Jim Meyering  <meyering@redhat.com>
11835
11836         maint.mk: fix a bug introduced in last change
11837         * top/maint.mk (gl_assured_headers_): Now that all names are on
11838         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
11839         is not anchored to end of word, it should be adequate.
11840
11841         maint.mk: avoid side-effect in latest syntax-check
11842         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
11843         to run commands via $(shell...), and hence to incur cost only when
11844         the new rule is actually run.
11845
11846         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
11847         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
11848         and use that to create a regexp used to detect all #if HAVE_..._H uses.
11849         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
11850         (gl_assured_headers_, az_, AZ_): Define.
11851         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
11852
11853 2010-04-26  Jim Meyering  <jim@meyering.net>
11854             Bruno Haible  <bruno@clisp.org>
11855
11856         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
11857         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
11858         Prompted by an exchange with Gilles Espinasse.
11859
11860 2010-04-26  Jim Meyering  <meyering@redhat.com>
11861
11862         git-version-gen: aesthetic tweak
11863         * build-aux/git-version-gen: Use "$nl" rather than a literal,
11864         so that the command remains on a single line.
11865
11866 2010-04-26  Eric Blake  <eblake@redhat.com>
11867
11868         git-version-gen: allow use on EBCDIC hosts
11869         * build-aux/git-version-gen (dirty): Use literal rather than tying
11870         ourselves to ascii.
11871         Reported by Steve Goetze.
11872
11873 2010-04-25  Bruno Haible  <bruno@clisp.org>
11874
11875         netdb: Add support for GNULIB_POSIXCHECK.
11876         * lib/netdb.in.h: Include warn-on-use.h.
11877         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
11878         functions are used when GNULIB_POSIXCHECK is defined and the
11879         getaddrinfo module is not in use.
11880         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
11881         freeaddrinfo, gai_strerror, getnameinfo are declared.
11882         * modules/netdb (Depends-on): Add warn-on-use.
11883         (Makefile.am): Include warn-on-use.h in netdb.h.
11884
11885 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
11886
11887         build: avoid "make check" failure without .git/ directory
11888         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
11889         there is no .git/ directory.
11890
11891 2010-04-25  Bruno Haible  <bruno@clisp.org>
11892
11893         ptsname: Fix misuse of ttyname_r.
11894         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
11895         of errno.
11896
11897 2010-04-25  Bruno Haible  <bruno@clisp.org>
11898
11899         ttyname_r: Make it work on Solaris 10.
11900         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
11901         if the system function has the POSIX declaration. Test whether the
11902         function fails if the buffer is less than 128 bytes large.
11903         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
11904         system's ttyname_r function. Provide a reasonably large buffer.
11905         * modules/ttyname_r (Depends-on): Add extensions.
11906         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
11907
11908 2010-04-25  Bruno Haible  <bruno@clisp.org>
11909
11910         Use the 'extensions' module for some more functions on Solaris.
11911         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
11912         module.
11913         * doc/posix-functions/ctime_r.texi: Likewise.
11914         * doc/posix-functions/getgrgid_r.texi: Likewise.
11915         * doc/posix-functions/getgrnam_r.texi: Likewise.
11916         * doc/posix-functions/getpwnam_r.texi: Likewise.
11917         * doc/posix-functions/getpwuid_r.texi: Likewise.
11918         * doc/posix-functions/readdir_r.texi: Likewise.
11919         * doc/posix-functions/sigwait.texi: Likewise.
11920         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
11921         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
11922
11923 2010-04-25  Bruno Haible  <bruno@clisp.org>
11924
11925         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
11926         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
11927         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
11928         * lib/ttyname_r.c: Include <limits.h>.
11929         (ttyname_r): Define using the system's ttyname_r function, if it exists
11930         and not on Solaris.
11931         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
11932         set.
11933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
11934         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
11935         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
11936         Reported by Simon Josefsson.
11937
11938 2010-04-25  Bruno Haible  <bruno@clisp.org>
11939
11940         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
11941         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
11942         * doc/posix-functions/ctime_r.texi: Likewise.
11943         * doc/posix-functions/getgrgid_r.texi: Likewise.
11944         * doc/posix-functions/getgrnam_r.texi: Likewise.
11945         * doc/posix-functions/getlogin_r.texi: Likewise.
11946         * doc/posix-functions/getpwnam_r.texi: Likewise.
11947         * doc/posix-functions/getpwuid_r.texi: Likewise.
11948         * doc/posix-functions/readdir_r.texi: Likewise.
11949         * doc/posix-functions/sigwait.texi: Likewise.
11950         * doc/posix-functions/ttyname_r.texi: Likewise.
11951         Reported by Simon Josefsson.
11952
11953 2010-04-25  Bruno Haible  <bruno@clisp.org>
11954
11955         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
11956         * gnulib-tool (func_usage): Document that --with-*-tests options apply
11957         also to --create-testdir.
11958         (func_acceptable): Don't consider the status of *-tests modules here.
11959         (func_modules_transitive_closure): Consider it here, before including a
11960         test module.
11961         (func_import, func_create_testdir): Set inc_all_direct_tests,
11962         inc_all_indirect_tests.
11963         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
11964         --create-testdir and --create-megatestdir.
11965
11966 2010-04-25  Bruno Haible  <bruno@clisp.org>
11967
11968         gnulib-tool: Add --without-*-tests options.
11969         * gnulib-tool (func_usage): Document the --without-*-tests options.
11970         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
11971         excl_unportable_tests): New variables.
11972         Fail if they are specified with --import or --update.
11973         (func_acceptable): Respect the excl_*_tests variables.
11974         (func_import): Set the excl_*_tests variables to empty.
11975
11976 2010-04-25  Simon Josefsson  <simon@josefsson.org>
11977             Bruno Haible  <bruno@clisp.org>
11978
11979         Work around a MacOS X 10.4 bug with openpty.
11980         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
11981         * tests/test-openpty.c (main): Close the master side explicitly.
11982
11983 2010-04-25  Bruno Haible  <bruno@clisp.org>
11984
11985         strnlen: Fix a C++ test error on MacOS X and Solaris.
11986         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
11987         the function is not declared.
11988         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
11989         Simon Josefsson.
11990
11991 2010-04-24  Bruno Haible  <bruno@clisp.org>
11992
11993         Avoid a gcc warning.
11994         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
11995         of correct type for %08lx directive.
11996         Reported by Eric Blake.
11997
11998 2010-04-24  Bruno Haible  <bruno@clisp.org>
11999
12000         vasnprintf: Correct errno value in case of out-of-memory.
12001         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
12002         or sprintf. Use the errno value from SNPRINTF or sprintf.
12003         Reported by Ian Beckwith <ianb@erislabs.net>.
12004
12005 2010-04-24  Bruno Haible  <bruno@clisp.org>
12006
12007         ansi-c++-opt: Find correct compiler when cross-compiling.
12008         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
12009         AC_CHECK_PROGS.
12010         Reported by Simon Josefsson.
12011
12012 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
12013
12014         vc-list-files: Add support for subversion
12015         * build-aux/vc-list-files: Use "svn list" to generate the list of
12016         files controlled by subversion.
12017
12018 2010-04-23  Jim Meyering  <meyering@redhat.com>
12019
12020         vc-list-files tests: convert to use init.sh
12021         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
12022         path_prepend_.
12023         Use Exit, not exit.
12024         Use skip_ rather than open coding it.
12025         Remove trap set-up and compare definitions.
12026         * tests/test-vc-list-files-git.sh: Likewise.
12027         * modules/vc-list-files-tests (Files): Add tests/init.sh.
12028
12029 2010-04-22  Simon Josefsson  <simon@josefsson.org>
12030
12031         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
12032         backup files.
12033
12034 2010-04-21  Simon Josefsson  <simon@josefsson.org>
12035
12036         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
12037
12038 2010-04-20  Eric Blake  <eblake@redhat.com>
12039
12040         tests: be robust to ignored SIGPIPE
12041         * tests/test-select-in.sh: Consume all output.
12042         * tests/test-lseek.sh: Check correct exit status, while avoiding
12043         EPIPE.
12044
12045 2010-04-20  Simon Josefsson  <simon@josefsson.org>
12046             Bruno Haible  <bruno@clisp.org>
12047
12048         visibility: Don't use -fvisibility if it leads to a warning.
12049         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
12050         yes, don't pretend that visibility works if it leads to a warning.
12051         Reported by Mike Gran <spk121@yahoo.com>.
12052
12053 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
12054
12055         * build-aux/bootstrap: Use "git -h" for testing for supported options
12056         instead of "git --help".  The short-form option only shows a summary,
12057         and doesn't layout the full man page.  Grep for the full option name
12058         in the summary, too.
12059
12060 2010-04-19  Bruno Haible  <bruno@clisp.org>
12061
12062         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
12063         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
12064         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
12065         mention of RELOCATABLE_STRIP.
12066         Reported by Sylvain Beucler <beuc@beuc.net>.
12067
12068 2010-04-19  Bruno Haible  <bruno@clisp.org>
12069
12070         * lib/diffseq.h: Fix typo in comment.
12071         Reported by Eric Blake.
12072
12073 2010-04-19  Bruno Haible  <bruno@clisp.org>
12074
12075         ioctl: Move autoconf macro to a .m4 file.
12076         * m4/ioctl.m4: New file, extracted from modules/ioctl.
12077         * modules/ioctl (Files): Add it.
12078         (configure.ac): Simply invoke gl_FUNC_IOCTL.
12079         Reported by Ian Beckwith <ianb@erislabs.net>.
12080
12081 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
12082             Bruno Haible  <bruno@clisp.org>
12083
12084         diffseq: Accommodate use-case with abstract arrays.
12085         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
12086         is not defined.
12087         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
12088         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
12089
12090 2010-04-18  Bruno Haible  <bruno@clisp.org>
12091
12092         * doc/posix-headers/stdbool.texi: More precise wording.
12093
12094 2010-04-17  Jim Meyering  <meyering@redhat.com>
12095
12096         maint.mk: use gnu-style indentation in an embedded perl script
12097         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
12098         Rename variable: s/two/last_two_bytes/
12099
12100 2010-04-16  Eric Blake  <eblake@redhat.com>
12101
12102         test-stdbool: skip test that fails with Solaris CC
12103         * tests/test-stdbool.c (f): Skip test that causes compilation
12104         error under buggy C++ compiler.
12105         * lib/stdbool.in.h: Document the limitation.
12106         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
12107
12108         setenv: allow compilation with C++
12109         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
12110         register keyword.
12111
12112         stdint: allow test to pass with C++
12113         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
12114
12115         getopt: allow compilation with C++
12116         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
12117         struct.
12118         * lib/getopt.c (_getopt_internal_r): Use correct type.
12119         Reported by Dagobert Michelson, via Joel E. Denny.
12120
12121 2010-04-16  Bruno Haible  <bruno@clisp.org>
12122
12123         Override netdb.h always.
12124         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
12125         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
12126         Reported by Ludovic Courtès <ludo@gnu.org>.
12127
12128 2010-04-15  Bruno Haible  <bruno@clisp.org>
12129
12130         openpty: Fix mistake from 2010-03-21.
12131         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
12132         Reported by Simon Josefsson.
12133
12134 2010-04-15  Eric Blake  <eblake@redhat.com>
12135
12136         test-forkpty: fix expected signature
12137         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
12138         Reported by Simon Josefsson.
12139
12140 2010-04-15  Jim Meyering  <meyering@redhat.com>
12141
12142         maint.mk: texinfo_suffix_re_: correct the default regexp
12143         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
12144
12145         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
12146         make it configurable via texinfo_suffix_re_.
12147
12148 2010-04-14  Eric Blake  <eblake@redhat.com>
12149
12150         strtok_r: relax license to LGPLv2+
12151         * modules/strtok_r (License): Relax license.
12152         Reported by Matthias Bolte.
12153
12154 2010-04-14  Simon Josefsson  <simon@josefsson.org>
12155
12156         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
12157         version 1.4.4 by default instead of requiring the libgcrypt
12158         version used during build.  This makes it possible to use the
12159         application with older but still binary compatible libgcrypt
12160         versions.
12161
12162 2010-04-13  Eric Blake  <eblake@redhat.com>
12163
12164         getopt-gnu: match recent glibc fixes and posix ruling
12165         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
12166         '+' handling, when requesting extensions.
12167         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
12168         'W;' handling.
12169         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
12170         * doc/posix-functions/getopt.texi (getopt): Document this.
12171         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12172         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12173         Likewise.
12174
12175         getopt: merge bug fixes from glibc
12176         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
12177         diagnostics.  Honor '+:' correctly.  Reject ';'.
12178
12179         getopt-posix: detect MacOS bug
12180         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
12181         optind when missing a required argument.
12182         * doc/posix-functions/getopt.texi (getopt): Document the bug.
12183         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12184         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12185         Likewise.
12186
12187         getopt-posix: avoid spurious failure on Solaris
12188         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
12189         an indicator that setting optind=1 is sufficient for reset.
12190
12191         getopt-posix: avoid spurious failure on FreeBSD
12192         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
12193         in POSIX mode, since the m4 test uses it.
12194
12195         gnulib-tool: silence warning on BSD sh
12196         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
12197
12198 2010-04-13  Jim Meyering  <meyering@redhat.com>
12199
12200         doc: users.txt: GNU patch now uses gnulib
12201         * users.txt: Add patch.
12202
12203 2010-04-12  Jim Meyering  <meyering@redhat.com>
12204
12205         maint.mk: generate more concise timing data for syntax-check rules
12206         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
12207         " done" from each line that reports a syntax-check test duration.
12208
12209 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
12210
12211         git-version-gen: use "git update-index..." rather than "git status"
12212         * build-aux/git-version-gen: Use git update-index --refresh, not
12213         "git status".  With some versions of git, "git status" would fail
12214         to update the index and result in an unwarranted "-dirty" suffix.
12215
12216 2010-04-11  Jim Meyering  <meyering@redhat.com>
12217
12218         openat: correct formatting (no semantic change)
12219         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
12220         Suggested by Bruno Haible.
12221
12222 2010-04-11  Bruno Haible  <bruno@clisp.org>
12223
12224         Stricter declaration checking in testdirs.
12225         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12226         If for_tests is true, augment AM_CPPFLAGS to define
12227         GNULIB_STRICT_CHECKING.
12228         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
12229         GNULIB_STRICT_CHECKING is defined, verify that the function is
12230         declared.
12231
12232 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
12233             Bruno Haible  <bruno@clisp.org>
12234
12235         libunistring: Improve configure output.
12236         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
12237         Don't say "consider installing GNU libunistring" when checking again
12238         with libiconv.
12239
12240 2010-04-11  Bruno Haible  <bruno@clisp.org>
12241
12242         libunistring: Correct value of $LTLIBUNISTRING.
12243         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
12244         correct the value of $LTLIBUNISTRING.
12245
12246 2010-04-11  Bruno Haible  <bruno@clisp.org>
12247
12248         havelib: Add static libraries to LIBS in the right order.
12249         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
12250         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
12251
12252 2010-04-11  Bruno Haible  <bruno@clisp.org>
12253
12254         libunistring: Detect libunistring also when it depends on libiconv.
12255         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
12256         the second AC_LIB_HAVE_LINKFLAGS invocation.
12257
12258 2010-04-11  James Youngman  <jay@gnu.org>
12259
12260         close-stream: declare local scalars to be "const"
12261         * lib/close-stream.c (close_stream): Make boolean variables const
12262         to document the fact that we set but do not change them.
12263
12264 2010-04-11  Bruno Haible  <bruno@clisp.org>
12265
12266         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
12267
12268 2010-04-11  Jim Meyering  <meyering@redhat.com>
12269
12270         maint.mk: don't include dist-check.mk
12271         * top/maint.mk: Remove bogus include directive.
12272
12273         maint.mk: improve empty-line-at-EOF check
12274         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
12275         solution, rather than tail+Perl-based one.  The latter would read
12276         a few kilobytes from the end of each file, and did not handle empty
12277         files properly.
12278
12279         maint.mk: print the elapsed time for each syntax-check rule
12280         * top/maint.mk (sc_m_rules_): Save start time in a file.
12281         (sc_z_rules_): New rules: remove temp file and print elapsed time.
12282         (local-check): Interpose the .z rules
12283
12284 2010-04-11  Jim Meyering  <meyering@redhat.com>
12285
12286         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
12287         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
12288         empty file with one that ends in an empty line.
12289
12290 2010-04-10  Bruno Haible  <bruno@clisp.org>
12291
12292         mkdir: Make it work on mingw64.
12293         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
12294         * lib/mkdir.c: Update comment.
12295         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
12296
12297 2010-04-10  Bruno Haible  <bruno@clisp.org>
12298
12299         Don't override improved macro from newer autoconf.
12300         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
12301         autoconf >= 2.62.
12302         Reported by Joel E. Denny <jdenny@clemson.edu>.
12303
12304 2010-04-10  Jim Meyering  <meyering@redhat.com>
12305
12306         maint.mk: new syntax-check rule: prohibit empty lines at end of file
12307         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
12308
12309         maint.mk: correct a diagnostic
12310         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
12311         in diagnostic; now use $prohibit.
12312
12313 2010-04-10  Bruno Haible  <address@hidden>
12314
12315         fchownat: Fix a C++ test error on Solaris 8.
12316         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
12317         the function does not exist.
12318
12319 2010-04-10  Bruno Haible  <bruno@clisp.org>
12320
12321         vasnprintf: Add more tests.
12322         * tests/test-vasnprintf-posix.c: Include <errno.h>.
12323         (test_function): Test converting an invalid wide string.
12324
12325         vasnprintf: Correct handling of unconvertible wide string arguments.
12326         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
12327         VASNPRINTF.
12328         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
12329         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
12330         smaller than the expected maximum need for the directive. Set errno to
12331         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
12332         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
12333         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
12334         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
12335         * modules/vasnprintf (Files): Add m4/printf.m4.
12336         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12337
12338 2010-04-10  Bruno Haible  <bruno@clisp.org>
12339
12340         vasnprintf: Fix crash in %ls directive.
12341         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
12342         string is passed as argument to %ls, with no precision and no width.
12343         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12344
12345 2010-04-10  Bruno Haible  <bruno@clisp.org>
12346
12347         vasnprintf: Fix multiple test failures on mingw.
12348         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
12349         _snprintf, or snwprintf, not _snwprintf.
12350
12351 2010-04-10  Bruno Haible  <bruno@clisp.org>
12352
12353         write: Fix a C++ test error on mingw.
12354         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
12355
12356 2010-04-10  Bruno Haible  <bruno@clisp.org>
12357
12358         vasnprintf test: Reduce code duplication.
12359         * tests/test-vasnprintf.c (test_function): New function, extracted from
12360         test_vasnprintf.
12361         (test_vasnprintf, test_asnprintf): Invoke it.
12362
12363 2010-04-10  Bruno Haible  <bruno@clisp.org>
12364
12365         strnlen: Fix warning in C++ mode on MacOS X.
12366         * lib/string.in.h (strnlen): Use the modern idiom.
12367         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
12368         defining strnlen as a macro already in <config.h>.
12369         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12370         REPLACE_STRNLEN.
12371         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
12372         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12373
12374 2010-04-08  James Youngman  <jay@gnu.org>
12375
12376         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
12377         the example.
12378
12379 2010-04-09  Jim Meyering  <meyering@redhat.com>
12380
12381         maint.mk: print better diagnostic when there is no $(_hv_file)
12382         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
12383         announce that when $(_hv_file) (aka help-version) does not exist.
12384
12385         init.sh: run tr in the "C" locale to avoid multibyte interpretation
12386         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
12387         not try to interpret its random input bytes.  Jarno Rajahalme reported
12388         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
12389         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
12390         (mktempd_): Likewise, just in case.
12391
12392         ftruncate: add two years to projected module removal date: 2012
12393         * m4/ftruncate.m4: Adjust comments.
12394
12395         ftruncate: mark module as obsolete; even MinGW provides it, now
12396         * modules/ftruncate (Status): Obsolete.
12397         (Notice): Say that.
12398         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
12399         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
12400
12401 2010-04-08  Bruno Haible  <bruno@clisp.org>
12402
12403         Fix side effects from tests-related modules.
12404         * modules/dprintf-posix (Comment): New section.
12405         * modules/fprintf-posix (Comment): Likewise.
12406         * modules/obstack-printf-posix (Comment): Likewise.
12407         * modules/printf-posix (Comment): Likewise.
12408         * modules/snprintf-posix (Comment): Likewise.
12409         * modules/sprintf-posix (Comment): Likewise.
12410         * modules/vasnprintf-posix (Comment): Likewise.
12411         * modules/vasprintf-posix (Comment): Likewise.
12412         * modules/vdprintf-posix (Comment): Likewise.
12413         * modules/vfprintf-posix (Comment): Likewise.
12414         * modules/vprintf-posix (Comment): Likewise.
12415         * modules/vsnprintf-posix (Comment): Likewise.
12416         * modules/vsprintf-posix (Comment): Likewise.
12417         * modules/xprintf-posix (Comment): Likewise.
12418         * modules/xvasprintf-posix (Comment): Likewise.
12419         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
12420         * modules/floorf-tests (Depends-on): Likewise.
12421         * modules/round-tests (Depends-on): Likewise.
12422         * modules/roundf-tests (Depends-on): Likewise.
12423         * modules/trunc-tests (Depends-on): Likewise.
12424         * modules/truncf-tests (Depends-on): Likewise.
12425         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
12426         'fprintf-posix' module is not present.
12427         * tests/test-floorf2.c (check): Likewise.
12428         * tests/test-trunc2.c (check): Likewise.
12429         * tests/test-truncf2.c (check): Likewise.
12430         * tests/test-round2.c (equal): Likewise.
12431         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12432
12433 2010-04-07  Karl Berry  <karl@gnu.org>
12434
12435         * config/srclist.txt,
12436         * config/srclistvars.sh,
12437         * config/srclist-update: doc fixes.
12438
12439 2010-04-07  Jim Meyering  <meyering@redhat.com>
12440
12441         maint.mk: add a PATH crosschecking syntax-check rule
12442         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
12443         Useful if you use a test like the one in help-version (coreutils,
12444         diffutils, grep, gzip) that ensures $(VERSION) matches what is
12445         printed by prog --version.
12446
12447 2010-04-06  Bruno Haible  <bruno@clisp.org>
12448
12449         Fix link error on mingw.
12450         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
12451         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
12452
12453 2010-04-06  Bruno Haible  <bruno@clisp.org>
12454
12455         Assume rmdir exists.
12456         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
12457
12458 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
12459
12460         doc: update users.txt
12461         * users.txt: Add gcal.
12462
12463 2010-04-06  Jim Meyering  <meyering@redhat.com>
12464
12465         init.sh: simply unset TMPDIR rather than risking env -i
12466         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
12467         although it probably works fine on all Unix-based systems, some
12468         systems (Cygwin?) cannot tolerate a totally cleared environment.
12469         Suggestion from Eric Blake.
12470
12471 2010-04-06  Jim Meyering  <meyering@redhat.com>
12472
12473         init.sh: portability fix: use env's POSIX-specified -i option not -u
12474         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
12475         than unportable env -u.  Solaris 5.11's env lacks support for -u.
12476
12477 2010-04-05  Bruno Haible  <bruno@clisp.org>
12478
12479         btowc: Work around Cygwin 1.7.2 bug.
12480         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
12481         does not map NUL to 0.
12482         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
12483
12484 2010-04-05  Bruno Haible  <bruno@clisp.org>
12485
12486         Make the multithread modules work on Cygwin 1.7.2.
12487         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
12488         imported symbols can be declared weak, so that it returns "no" on
12489         Cygwin 1.7.2.
12490
12491 2010-04-05  Bruno Haible  <bruno@clisp.org>
12492
12493         Use the module 'strncat'.
12494         * modules/unistr/u8-strncat (Depends-on): Add strncat.
12495
12496         Tests for module 'strncat'.
12497         * modules/strncat-tests: New file.
12498         * tests/test-strncat.c: New file.
12499
12500         New module 'strncat'.
12501         * lib/string.in.h (strncat): New declaration.
12502         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
12503         * m4/strncat.m4: New file, based on m4/memchr.m4.
12504         * modules/strncat: New file.
12505         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
12506         is declared.
12507         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
12508         REPLACE_STRNCAT.
12509         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
12510         REPLACE_STRNCAT.
12511         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
12512         module.
12513         * tests/test-string-c++.cc: Check signature of strncat.
12514
12515 2010-04-05  Jim Meyering  <meyering@redhat.com>
12516
12517         xstrtoumax-tests: convert to use init.sh
12518         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
12519         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12520         Use Exit, not exit.
12521         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12522
12523         xstrtoimax-tests: convert to use init.sh
12524         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
12525         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12526         Use Exit, not exit.
12527         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12528
12529 2010-04-05  Bruno Haible  <bruno@clisp.org>
12530
12531         sys_socket: Avoid #define replacements in C++ mode.
12532         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
12533         warning to the function if possible, rather than #defining the symbol
12534         to a dysfunctional alias.
12535
12536 2010-04-05  Bruno Haible  <bruno@clisp.org>
12537
12538         fseeko: Fix C++ test error on mingw.
12539         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
12540         gl_FUNC_FSEEKO.
12541         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
12542         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
12543         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
12544         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
12545
12546 2010-04-05  Bruno Haible  <bruno@clisp.org>
12547
12548         duplocale: Improve test output.
12549         * tests/test-duplocale.c (main): Print reason for skipped test.
12550
12551 2010-04-05  Bruno Haible  <bruno@clisp.org>
12552
12553         Assume rmdir exists.
12554         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
12555         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
12556
12557 2010-04-05  Bruno Haible  <bruno@clisp.org>
12558
12559         Fix link error on Solaris 8 with cc.
12560         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
12561
12562 2010-04-05  Bruno Haible  <bruno@clisp.org>
12563
12564         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
12565         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
12566
12567 2010-04-05  Bruno Haible  <bruno@clisp.org>
12568
12569         vasprintf: Update documentation.
12570         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
12571
12572 2010-04-05  Bruno Haible  <bruno@clisp.org>
12573
12574         ptsname: Improve test.
12575         * tests/test-ptsname.c (main): Also try the various master names of BSD
12576         systems.
12577
12578 2010-04-05  Bruno Haible  <bruno@clisp.org>
12579
12580         memchr: Avoid a possible C++ test error.
12581         * lib/string.in.h (memchr): Provide declaration if function is missing.
12582         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
12583         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
12584         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
12585         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
12586
12587 2010-04-05  Bruno Haible  <bruno@clisp.org>
12588
12589         strtok_r: Improve idiom.
12590         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
12591         AC_LIBOBJ is used.
12592
12593 2010-04-05  Bruno Haible  <bruno@clisp.org>
12594
12595         strdup: Improve idiom.
12596         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
12597         AC_LIBOBJ is used.
12598         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
12599         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
12600         when AC_LIBOBJ is used.
12601
12602 2010-04-05  Bruno Haible  <bruno@clisp.org>
12603
12604         mbsinit, mbrtowc, wcrtomb: Improve idioms.
12605         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
12606         don't set REPLACE_MBSINIT to 1.
12607         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
12608         don't set REPLACE_MBRTOWC to 1.
12609         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
12610         exist, don't set REPLACE_MBSRTOWCS to 1.
12611         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
12612         exist, don't set REPLACE_MBSNRTOWCS to 1.
12613         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
12614         don't set REPLACE_WCRTOMB to 1.
12615         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
12616         exist, don't set REPLACE_WCSRTOMBS to 1.
12617         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
12618         exist, don't set REPLACE_WCSNRTOMBS to 1.
12619
12620 2010-04-05  Bruno Haible  <bruno@clisp.org>
12621
12622         ldexpl: Improve idiom.
12623         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
12624         make sure to set HAVE_DECL_LDEXPL to 0.
12625
12626 2010-04-05  Jim Meyering  <meyering@redhat.com>
12627
12628         xstrtol-tests: convert to use init.sh
12629         * modules/xstrtol-tests (Files): Add tests/init.sh.
12630         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12631         Use Exit, not exit.
12632         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12633
12634         atexit-tests: convert to use init.sh
12635         * modules/atexit-tests (Files): Add tests/init.sh.
12636         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12637         Use Exit, not exit.
12638         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12639
12640         init.sh: fix typo
12641         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
12642
12643         init.sh: make it easier for a test script to write to the tty, ...
12644         when using automake's parallel-tests mode.
12645         * tests/init.sh (stderr_fileno_): Define overridable variable.
12646         (warn_): New function, to use it.
12647         (fail_, skip_, framework_failure_): Use warn_.
12648
12649 2010-04-04  Bruno Haible  <bruno@clisp.org>
12650
12651         btowc: Avoid warning.
12652         * lib/btowc.c: Include <stdlib.h>.
12653         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
12654
12655 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
12656             Bruno Haible  <bruno@clisp.org>
12657
12658         wchar: Port to NetBSD 1.5.
12659         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
12660         * lib/wctype.in.h (WEOF): Likewise.
12661
12662 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
12663             Bruno Haible  <bruno@clisp.org>
12664
12665         Port extended stdio to NetBSD 1.5.
12666         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
12667         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
12668         older.
12669
12670 2010-04-04  Bruno Haible  <bruno@clisp.org>
12671
12672         string: Remove unused substitution.
12673         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
12674         HAVE_DECL_STRERROR.
12675         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
12676
12677 2010-04-04  Bruno Haible  <bruno@clisp.org>
12678
12679         strtod: Avoid a possible C++ test error.
12680         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
12681         set REPLACE_STRTOD.
12682
12683 2010-04-04  Bruno Haible  <bruno@clisp.org>
12684
12685         strerror: Update documentation.
12686         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
12687
12688 2010-04-04  Bruno Haible  <bruno@clisp.org>
12689
12690         stdio: Fix some C++ test errors on Solaris 8 with GCC.
12691         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
12692         _GL_CXXALIAS_SYS_CAST.
12693
12694 2010-04-04  Bruno Haible  <bruno@clisp.org>
12695
12696         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
12697         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
12698         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
12699         REPLACE_FREXPL to 1.
12700         * doc/posix-functions/frexpl.texi: Update documentation.
12701
12702 2010-04-04  Bruno Haible  <bruno@clisp.org>
12703
12704         math: Fix some C++ test errors on Solaris 8 and Cygwin.
12705         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
12706
12707 2010-04-04  Bruno Haible  <bruno@clisp.org>
12708
12709         Implement nanosleep for native Windows.
12710         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
12711
12712 2010-04-04  Bruno Haible  <bruno@clisp.org>
12713
12714         math: Fix some C++ test errors on Solaris 8.
12715         * lib/math.in.h (truncf, trunc): Use simpler idiom.
12716
12717 2010-04-04  Bruno Haible  <bruno@clisp.org>
12718
12719         math: Fix some C++ test errors on Cygwin.
12720         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
12721         truncl): Provide declaration if the system does not have it.
12722         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
12723         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
12724         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
12725         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
12726         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
12727         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
12728         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
12729         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
12730         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
12731         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
12732         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
12733         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
12734         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
12735         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
12736         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
12737         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
12738         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
12739         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
12740         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
12741         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
12742         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
12743         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
12744
12745 2010-04-04  Bruno Haible  <bruno@clisp.org>
12746
12747         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
12748         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12749         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12750         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
12751         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
12752         * m4/isinf.m4 (gl_ISINF): Likewise.
12753         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12754
12755 2010-04-04  Bruno Haible  <bruno@clisp.org>
12756
12757         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
12758         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12759
12760 2010-04-04  Bruno Haible  <bruno@clisp.org>
12761
12762         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
12763         * modules/tmpfile (configure.ac): Update.
12764
12765         tmpfile: Fix C++ test error on mingw.
12766         * lib/stdio.in.h (tmpfile): New declaration.
12767         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
12768         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
12769         * modules/tmpfile (Depends-on): Add stdio.
12770         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
12771         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
12772         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
12773         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
12774         REPLACE_TMPFILE.
12775         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
12776
12777 2010-04-04  Bruno Haible  <bruno@clisp.org>
12778
12779         ioctl: Fix C++ test error on mingw.
12780         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
12781         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
12782         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
12783
12784 2010-04-03  Bruno Haible  <bruno@clisp.org>
12785
12786         wcwidth: Fix C++ test error on mingw.
12787         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
12788         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
12789         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
12790
12791 2010-04-03  Bruno Haible  <bruno@clisp.org>
12792
12793         nanosleep: Fix C++ test error on mingw.
12794         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
12795         * lib/time.in.h (nanosleep): Use modern idiom.
12796         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
12797         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
12798         REPLACE_NANOSLEEP to 1.
12799         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
12800         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
12801
12802 2010-04-03  Bruno Haible  <bruno@clisp.org>
12803
12804         strptime: Fix C++ test error on mingw.
12805         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
12806         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
12807         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
12808         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
12809         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
12810         not REPLACE_STRPTIME.
12811         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
12812         REPLACE_STRPTIME.
12813
12814 2010-04-03  Bruno Haible  <bruno@clisp.org>
12815
12816         timegm: Fix C++ test error on mingw.
12817         * lib/time.in.h (timegm): Use modern idiom.
12818         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
12819         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
12820         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
12821         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
12822
12823 2010-04-03  Bruno Haible  <bruno@clisp.org>
12824
12825         timegm: Assume declaration if function exists.
12826         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
12827         if it exists. Don't clobber ac_cv_func_timegm.
12828
12829 2010-04-03  Bruno Haible  <bruno@clisp.org>
12830
12831         time_r: Fix C++ test error on mingw.
12832         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
12833         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
12834         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
12835         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
12836         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
12837
12838 2010-04-03  Bruno Haible  <bruno@clisp.org>
12839
12840         time_r: Minor updates.
12841         * modules/time_r (Description): Mention the provided functions.
12842         * lib/time_r.c: Don't include <string.h>.
12843         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
12844         * doc/posix-functions/localtime_r.texi: Likewise.
12845
12846 2010-04-03  Bruno Haible  <bruno@clisp.org>
12847
12848         time: Fix regression introduced on 2010-03-08.
12849         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
12850         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
12851
12852 2010-04-03  Jim Meyering  <meyering@redhat.com>
12853
12854         maint.mk: don't silently disable project-specific syntax-check rules
12855         * top/maint.mk (_prohibit_regexp): Define, to help people realize
12856         that they need to convert their project-specific syntax-check rules
12857         to use the new _sc_search_regexp.
12858
12859 2010-04-03  Bruno Haible  <bruno@clisp.org>
12860
12861         fchdir: Fix regression introduced on 2010-03-08.
12862         * lib/unistd.in.h (fchdir): Fix declaration.
12863         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
12864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
12865         REPLACE_FCHDIR.
12866         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
12867         REPLACE_FCHDIR.
12868
12869 2010-04-03  Bruno Haible  <bruno@clisp.org>
12870
12871         getpagesize: Fix C++ test error on mingw.
12872         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
12873         system does not declare the function.
12874         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
12875         declared.
12876         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12877         HAVE_DECL_GETPAGESIZE.
12878         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
12879
12880 2010-04-03  Bruno Haible  <bruno@clisp.org>
12881
12882         stdio: Make C++ tests work on mingw.
12883         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
12884         does not declare the function.
12885
12886 2010-04-03  Bruno Haible  <bruno@clisp.org>
12887
12888         ftello: Fix C++ test error on mingw.
12889         * lib/stdio.in.h (ftello): Use modern idiom.
12890         * lib/ftello.c (ftello): Renamed from rpl_ftello.
12891         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
12892         is missing and that it needs to be replaced.
12893         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
12894         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
12895         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
12896
12897 2010-04-03  Bruno Haible  <bruno@clisp.org>
12898
12899         fseeko: Fix C++ test error on mingw.
12900         * lib/stdio.in.h (fseeko): Use modern idiom.
12901         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
12902         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
12903         is missing and that it needs to be replaced.
12904         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
12905         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
12906         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
12907
12908 2010-04-03  Bruno Haible  <bruno@clisp.org>
12909
12910         mkstemp: Fix C++ test error on mingw.
12911         * lib/stdlib.in.h (mkstemp): Use modern idiom.
12912         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
12913         function is missing and that it needs to be replaced.
12914         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
12915         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
12916
12917 2010-04-03  Bruno Haible  <bruno@clisp.org>
12918
12919         stpncpy: Fix C++ test error on mingw.
12920         * lib/string.in.h (stpncpy): Use modern idiom.
12921         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
12922         function is missing and that it needs to be replaced.
12923         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12924         REPLACE_STPNCPY.
12925         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
12926
12927 2010-04-03  Bruno Haible  <bruno@clisp.org>
12928
12929         sys_stat: Fix C++ test error on mingw.
12930         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
12931         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
12932
12933 2010-04-03  Bruno Haible  <bruno@clisp.org>
12934
12935         pty: Update doc.
12936         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
12937
12938 2010-04-03  Bruno Haible  <bruno@clisp.org>
12939
12940         unistd: Fix C++ test error on mingw.
12941         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
12942
12943 2010-04-03  Bruno Haible  <bruno@clisp.org>
12944
12945         Update doc regarding mingw.
12946         * doc/glibc-functions/openpty.texi: Update regarding mingw.
12947         * doc/glibc-functions/login_tty.texi: Likewise.
12948         * doc/glibc-functions/forkpty.texi: Likewise.
12949
12950 2010-04-03  Bruno Haible  <bruno@clisp.org>
12951
12952         stdlib: Avoid compilation failure of c-strtold on mingw.
12953         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
12954
12955 2010-04-03  Bruno Haible  <bruno@clisp.org>
12956
12957         locale: Make C++ tests work on Cygwin and mingw.
12958         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
12959         cannot provide the function.
12960         Reported by Simon Josefsson.
12961
12962 2010-04-03  Bruno Haible  <bruno@clisp.org>
12963
12964         localename: Port to MacOS X 10.6.
12965         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
12966         memory layout of the locales in MacOS X 10.6 as well.
12967         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
12968
12969 2010-04-02  Bruno Haible  <bruno@clisp.org>
12970
12971         gnulib-tool: Ensure that long-running tests are executed last.
12972         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
12973         running tests after the one for the other tests.
12974
12975 2010-04-02  Bruno Haible  <bruno@clisp.org>
12976
12977         gnulib-tool: Ensure the tests in the main directory are executed first.
12978         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
12979         start with the current directory.
12980
12981 2010-04-02  Bruno Haible  <bruno@clisp.org>
12982
12983         Tests for module 'havelib', moved here from GNU gettext.
12984         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
12985         modifications.
12986         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
12987         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
12988         with modifications.
12989         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
12990         modifications.
12991         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
12992         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
12993         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
12994         with modifications.
12995         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
12996         with modifications.
12997         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
12998         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
12999         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
13000         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
13001         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
13002         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
13003         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
13004         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
13005         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
13006         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
13007         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
13008         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
13009         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
13010         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
13011         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
13012         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
13013         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
13014         with modifications.
13015         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
13016         with modifications.
13017         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
13018         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
13019         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
13020         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
13021         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
13022         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
13023         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
13024         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
13025         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
13026         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
13027         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
13028         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
13029         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
13030         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
13031         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
13032         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
13033         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
13034         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
13035         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
13036         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
13037         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
13038         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
13039         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
13040         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
13041         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
13042         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
13043         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
13044         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
13045         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
13046         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
13047         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
13048         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
13049         * tests/havelib/rpathx/rpathx.c: New file, from
13050         gettext/autoconf-lib-link.
13051         * tests/havelib/rpathx/Makefile.am: New file, from
13052         gettext/autoconf-lib-link.
13053         * tests/havelib/rpathx/configure.ac: New file, from
13054         gettext/autoconf-lib-link with modifications.
13055         * tests/havelib/rpathy/rpathy.c: New file, from
13056         gettext/autoconf-lib-link.
13057         * tests/havelib/rpathy/Makefile.am: New file, from
13058         gettext/autoconf-lib-link.
13059         * tests/havelib/rpathy/configure.ac: New file, from
13060         gettext/autoconf-lib-link with modifications.
13061         * tests/havelib/rpathz/rpathz.c: New file, from
13062         gettext/autoconf-lib-link.
13063         * tests/havelib/rpathz/Makefile.am: New file, from
13064         gettext/autoconf-lib-link.
13065         * tests/havelib/rpathz/configure.ac: New file, from
13066         gettext/autoconf-lib-link with modifications.
13067         * tests/havelib/rpathlx/usex.c: New file, from
13068         gettext/autoconf-lib-link.
13069         * tests/havelib/rpathlx/Makefile.am: New file, from
13070         gettext/autoconf-lib-link.
13071         * tests/havelib/rpathlx/configure.ac: New file, from
13072         gettext/autoconf-lib-link with modifications.
13073         * tests/havelib/rpathly/usey.c: New file, from
13074         gettext/autoconf-lib-link.
13075         * tests/havelib/rpathly/Makefile.am: New file, from
13076         gettext/autoconf-lib-link.
13077         * tests/havelib/rpathly/configure.ac: New file, from
13078         gettext/autoconf-lib-link with modifications.
13079         * tests/havelib/rpathlz/usez.c: New file, from
13080         gettext/autoconf-lib-link.
13081         * tests/havelib/rpathlz/Makefile.am: New file, from
13082         gettext/autoconf-lib-link.
13083         * tests/havelib/rpathlz/configure.ac: New file, from
13084         gettext/autoconf-lib-link with modifications.
13085         * tests/havelib/rpathlyx/usey.c: New file, from
13086         gettext/autoconf-lib-link.
13087         * tests/havelib/rpathlyx/Makefile.am: New file, from
13088         gettext/autoconf-lib-link.
13089         * tests/havelib/rpathlyx/configure.ac: New file, from
13090         gettext/autoconf-lib-link with modifications.
13091         * tests/havelib/rpathlzyx/usez.c: New file, from
13092         gettext/autoconf-lib-link.
13093         * tests/havelib/rpathlzyx/Makefile.am: New file, from
13094         gettext/autoconf-lib-link.
13095         * tests/havelib/rpathlzyx/configure.ac: New file, from
13096         gettext/autoconf-lib-link with modifications.
13097         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
13098         with modifications.
13099
13100 2010-04-02  Bruno Haible  <bruno@clisp.org>
13101
13102         gnulib-tool: Create distributed built sources also for the tests.
13103         * gnulib-tool (func_create_testdir): Also generate distributed built
13104         sources in the tests directory.
13105
13106 2010-04-02  Bruno Haible  <bruno@clisp.org>
13107
13108         gnulib-tool: Obey user's environment variables.
13109         * gnulib-tool (func_create_testdir): When creating built sources,
13110         respect the environment variables for autoconf, automake, etc. given by
13111         the user.
13112
13113 2010-04-02  Bruno Haible  <bruno@clisp.org>
13114
13115         gnulib-tool: Provide the value of --m4-base to modules.
13116         * gnulib-tool (func_import, func_create_testdir): Emit a definition
13117         of gl_m4_base.
13118
13119 2010-04-02  Eric Blake  <eblake@redhat.com>
13120
13121         maint.mk: fix some fallout
13122         * NEWS: Document the incompatible change, and its effect on cfg.mk.
13123         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
13124
13125 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
13126
13127         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
13128         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
13129         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
13130         (sc_cast_of_x_alloc_return_value): Likewise.
13131         (sc_cast_of_alloca_return_value): Likewise.
13132         (sc_space_tab): Likewise.
13133         (sc_prohibit_atoi_atof): Likewise.
13134         (sc_prohibit_magic_number_exit): Likewise.
13135         (sc_error_exit_success): Likewise.
13136         (sc_file_system): Likewise.
13137         (sc_prohibit_have_config_h): Likewise.
13138         (sc_require_config_h): Likewise.
13139         (sc_prohibit_HAVE_MBRTOWC): Likewise.
13140         (sc_obsolete_symbols): Likewise.
13141         (sc_changelog): Likewise.
13142         (sc_program_name): Likewise.
13143         (sc_the_the): Likewise.
13144         (sc_trailing_blank): Likewise.
13145         (sc_two_space_separator_in_usage): Likewise.
13146         (sc_useless_cpp_parens): Likewise.
13147         (sc_GPL_version): Likewise.
13148         (sc_GFDL_version): Likewise.
13149         (sc_texinfo_acronym): Likewise.
13150         (sc_prohibit_cvs_keyword): Likewise.
13151         (sc_prohibit_stat_st_blocks): Likewise.
13152         (sc_prohibit_S_IS_definition): Likewise.
13153         (sc_redundant_const): Likewise.
13154         (sc_makefile_TAB_only_indentation): Likewise.
13155         (sc_m4_quote_check): Likewise.
13156         (sc_makefile_path_separator_check): Likewise.
13157         (sc_copyright_check): Likewise.
13158         (sc_Wundef_boolean): Likewise.
13159         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
13160
13161         maint.mk: match 0 or more whitespace-before-function-call '('
13162         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
13163         that have zero or two-and-more spaces between the function name
13164         and the open parenthesis.
13165         (sc_error_message_warn_fatal): Likewise.
13166         (sc_error_message_uppercase): Likewise.
13167         (sc_error_message_period): Likewise.
13168
13169 2010-03-31  Eric Blake  <eblake@redhat.com>
13170
13171         maint.mk: check for [ as well as test
13172         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
13173         Based on a libvirt report by Matthias Bolte.
13174
13175         gnumakefile: don't squelch _version output
13176         * top/GNUmakefile (_version): Create one-shot dependency rather
13177         than using $(shell) when version must be regenerated.
13178         (_autoreconf): Run verbosely, by default.
13179
13180         sys_time: avoid compiler warnings
13181         * lib/sys_time.in.h (includes): Ensure gcc pragma is
13182         unconditional, fixing regression from 2010-03-29.
13183         Reported by Simon Josefsson.
13184
13185 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
13186
13187         maint.mk: s/_header_without_use/_sc_header_without_use/
13188         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
13189         (sc_prohibit_assert_without_use): Use the new name.
13190         (sc_prohibit_close_stream_without_use): Likewise.
13191         (sc_prohibit_getopt_without_use): Likewise.
13192         (sc_prohibit_quotearg_without_use): Likewise.
13193         (sc_prohibit_quote_without_use): Likewise.
13194         (sc_prohibit_long_options_without_use): Likewise.
13195         (sc_prohibit_inttostr_without_use): Likewise.
13196         (sc_prohibit_ignore_value_without_use): Likewise.
13197         (sc_prohibit_error_without_use): Likewise.
13198         (sc_prohibit_xalloc_without_use): Likewise.
13199         (sc_prohibit_hash_without_use): Likewise.
13200         (sc_prohibit_hash_pjw_without_use): Likewise.
13201         (sc_prohibit_safe_read_without_use): Likewise.
13202         (sc_prohibit_argmatch_without_use): Likewise.
13203         (sc_prohibit_canonicalize_without_use): Likewise.
13204         (sc_prohibit_root_dev_ino_without_use): Likewise.
13205         (sc_prohibit_openat_without_use): Likewise.
13206         (sc_prohibit_c_ctype_without_use): Likewise.
13207         (sc_prohibit_signal_without_use): Likewise.
13208         (sc_prohibit_intprops_without_use): Likewise.
13209
13210 2010-03-30  Eric Blake  <eblake@redhat.com>
13211
13212         maint: improve module indicators
13213         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
13214         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
13215         columns, and avoid extra macro expansion.
13216
13217         fdopendir: work around FreeBSD bug
13218         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
13219         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
13220         * modules/dirent (Makefile.am): Substitute it.
13221         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
13222         declaration.
13223         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
13224         fix.
13225         Reported by Christian Weisgerber <naddy@mips.inka.de>.
13226
13227 2010-03-29  Bruno Haible  <bruno@clisp.org>
13228
13229         Emit #pragma system_header after the inclusion guard, not before.
13230         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
13231         guard that spans the entire file, not before. This enables an
13232         optimization in GCC's preprocessor.
13233         * lib/ctype.in.h: Likewise.
13234         * lib/dirent.in.h: Likewise.
13235         * lib/errno.in.h: Likewise.
13236         * lib/float.in.h: Likewise.
13237         * lib/getopt.in.h: Likewise.
13238         * lib/iconv.in.h: Likewise.
13239         * lib/langinfo.in.h: Likewise.
13240         * lib/locale.in.h: Likewise.
13241         * lib/math.in.h: Likewise.
13242         * lib/netdb.in.h: Likewise.
13243         * lib/netinet_in.in.h: Likewise.
13244         * lib/pty.in.h: Likewise.
13245         * lib/sched.in.h: Likewise.
13246         * lib/se-selinux.in.h: Likewise.
13247         * lib/search.in.h: Likewise.
13248         * lib/spawn.in.h: Likewise.
13249         * lib/stdarg.in.h: Likewise.
13250         * lib/stdint.in.h: Likewise.
13251         * lib/string.in.h: Likewise.
13252         * lib/strings.in.h: Likewise.
13253         * lib/sys_file.in.h: Likewise.
13254         * lib/sys_ioctl.in.h: Likewise.
13255         * lib/sys_time.in.h: Likewise.
13256         * lib/sys_times.in.h: Likewise.
13257         * lib/sys_utsname.in.h: Likewise.
13258         * lib/sys_wait.in.h: Likewise.
13259         * lib/sysexits.in.h: Likewise.
13260         * lib/wctype.in.h: Likewise.
13261
13262 2010-03-28  James Youngman  <jay@gnu.org>
13263
13264         save-cwd: don't leak a file descriptor when the caller execs.
13265         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
13266         saved file descriptor.
13267         * modules/save-cwd (Depends-on): Depend on cloexec.
13268
13269 2010-03-29  Bruno Haible  <bruno@clisp.org>
13270
13271         Remove vestiges of fts-lgpl module.
13272         * lib/fts_.h: Assume GNULIB_FTS is 1.
13273         * lib/fts.c: Likewise.
13274         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
13275
13276 2010-03-28  Bruno Haible  <bruno@clisp.org>
13277
13278         Fix definition of tests witness macro.
13279         * gnulib-tool (func_import): Fix definition of witness macro.
13280
13281 2010-03-28  Bruno Haible  <bruno@clisp.org>
13282
13283         Fix ioctl's protoype on glibc systems.
13284         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
13285         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
13286         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
13287         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
13288         signature. If not, arrange to replace the ioctl function.
13289         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
13290         REPLACE_IOCTL.
13291         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
13292         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
13293         Reported by Ludovic Courtès <ludo@gnu.org>.
13294
13295 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
13296
13297         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
13298         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
13299         made it so grep -r --include=GLOB* ... did not work.
13300
13301 2010-03-26  Jim Meyering  <meyering@redhat.com>
13302             Eric Blake  <eblake@redhat.com>
13303
13304         maint.mk: prohibit use of test's -o and -a operators
13305         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
13306
13307 2010-03-28  Bruno Haible  <bruno@clisp.org>
13308
13309         Remove unused GNULIB_XYZ macro definitions.
13310         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
13311         invocation.
13312
13313 2010-03-28  Bruno Haible  <bruno@clisp.org>
13314
13315         Mark privileged tests modules.
13316         * modules/idpriv-drop-tests (Status): New section.
13317         * modules/idpriv-droptemp-tests (Status): New section.
13318
13319 2010-03-28  Bruno Haible  <bruno@clisp.org>
13320
13321         Split C++ tests into separate tests modules.
13322         * modules/dirent-c++-tests: New file, extracted from
13323         modules/dirent-tests.
13324         * modules/dirent-tests: Depend on it.
13325         * modules/fcntl-h-c++-tests: New file, extracted from
13326         modules/fcntl-h-tests.
13327         * modules/fcntl-h-tests: Depend on it.
13328         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
13329         * modules/glob-tests: Depend on it.
13330         * modules/iconv-h-c++-tests: New file, extracted from
13331         modules/iconv-h-tests.
13332         * modules/iconv-h-tests: Depend on it.
13333         * modules/langinfo-c++-tests: New file, extracted from
13334         modules/langinfo-tests.
13335         * modules/langinfo-tests: Depend on it.
13336         * modules/locale-c++-tests: New file, extracted from
13337         modules/locale-tests.
13338         * modules/locale-tests: Depend on it.
13339         * modules/math-c++-tests: New file, extracted from modules/math-tests.
13340         * modules/math-tests: Depend on it.
13341         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
13342         * modules/pty-tests: Depend on it.
13343         * modules/search-c++-tests: New file, extracted from
13344         modules/search-tests.
13345         * modules/search-tests: Depend on it.
13346         * modules/signal-c++-tests: New file, extracted from
13347         modules/signal-tests.
13348         * modules/signal-tests: Depend on it.
13349         * modules/spawn-c++-tests: New file, extracted from
13350         modules/spawn-tests.
13351         * modules/spawn-tests: Depend on it.
13352         * modules/stdio-c++-tests: New file, extracted from
13353         modules/stdio-tests.
13354         * modules/stdio-tests: Depend on it.
13355         * modules/stdlib-c++-tests: New file, extracted from
13356         modules/stdlib-tests.
13357         * modules/stdlib-tests: Depend on it.
13358         * modules/string-c++-tests: New file, extracted from
13359         modules/string-tests.
13360         * modules/string-tests: Depend on it.
13361         * modules/sys_ioctl-c++-tests: New file, extracted from
13362         modules/sys_ioctl-tests.
13363         * modules/sys_ioctl-tests: Depend on it.
13364         * modules/sys_select-c++-tests: New file, extracted from
13365         modules/sys_select-tests.
13366         * modules/sys_select-tests: Depend on it.
13367         * modules/sys_socket-c++-tests: New file, extracted from
13368         modules/sys_socket-tests.
13369         * modules/sys_socket-tests: Depend on it.
13370         * modules/sys_stat-c++-tests: New file, extracted from
13371         modules/sys_stat-tests.
13372         * modules/sys_stat-tests: Depend on it.
13373         * modules/sys_time-c++-tests: New file, extracted from
13374         modules/sys_time-tests.
13375         * modules/sys_time-tests: Depend on it.
13376         * modules/time-c++-tests: New file, extracted from modules/time-tests.
13377         * modules/time-tests: Depend on it.
13378         * modules/unistd-c++-tests: New file, extracted from
13379         modules/unistd-tests.
13380         * modules/unistd-tests: Depend on it.
13381         * modules/wchar-c++-tests: New file, extracted from
13382         modules/wchar-tests.
13383         * modules/wchar-tests: Depend on it.
13384         * modules/wctype-c++-tests: New file, extracted from
13385         modules/wctype-tests.
13386         * modules/wctype-tests: Depend on it.
13387         Reported by Simon Josefsson.
13388
13389 2010-03-28  Bruno Haible  <bruno@clisp.org>
13390
13391         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
13392         * gnulib-tool (func_exists_module): New function, extracted from
13393         func_verify_module.
13394         (func_verify_module): Use it.
13395         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
13396         'foo' only if 'foo' exists.
13397         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
13398         module.
13399
13400 2010-03-28  Bruno Haible  <bruno@clisp.org>
13401
13402         gnulib-tool: Add support for special categories of tests.
13403         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
13404         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
13405         (func_usage): Document them.
13406         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
13407         inc_unportable_tests, inc_all_tests): New variables.
13408         (func_acceptable): Consider these variables.
13409         (func_modules_transitive_closure): Make it work when the 'Status' field
13410         consists of multiple words.
13411         (func_import): Store and restore the values of inc_cxx_tests,
13412         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
13413         inc_all_tests in gnulib-comp.m4.
13414         (func_create_testdir): Set inc_all_tests to true.
13415         * doc/gnulib.texi (Extra tests modules): New section.
13416         Suggested by Jim Meyering.
13417
13418 2010-03-28  Bruno Haible  <bruno@clisp.org>
13419
13420         ansi-c++-opt: Allow turning off the C++ build by default.
13421         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
13422         gl_CXX_CHOICE_DEFAULT_NO is defined.
13423         Requested by Eric Blake.
13424
13425 2010-03-28  Bruno Haible  <bruno@clisp.org>
13426
13427         unistd: Avoid #define replacements in C++ mode.
13428         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
13429         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
13430         setsockopt, shutdown, select): In C++, attach a warning to the function
13431         if possible, rather than #defining the symbol to a dysfunctional alias.
13432         Reported by John W. Eaton <jwe@gnu.org>.
13433
13434 2010-03-28  Bruno Haible  <bruno@clisp.org>
13435
13436         Fix link errors on mingw.
13437         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
13438         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
13439         $(LIBSOCKET).
13440         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
13441         $(LIBSOCKET).
13442
13443 2010-03-28  Bruno Haible  <bruno@clisp.org>
13444             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13445
13446         lib-ignore: Determine different options for different compilers.
13447         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
13448         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
13449         Add comments.
13450         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
13451         * NEWS: Mention the change.
13452
13453 2010-03-27  Bruno Haible  <bruno@clisp.org>
13454
13455         Remove unused GNULIB_XYZ macro definitions.
13456         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
13457         * modules/fseek (configure.ac): Likewise.
13458         * modules/ioctl (configure.ac): Likewise.
13459         * modules/open (configure.ac): Likewise.
13460         * modules/stdlib-safer (configure.ac): Likewise.
13461
13462 2010-03-27  Bruno Haible  <bruno@clisp.org>
13463
13464         Add a remark about certain modules.
13465         * modules/malloc (Comment): New section.
13466         * modules/realloc (Comment): Likewise.
13467         * modules/sigpipe (Comment): Likewise.
13468
13469 2010-03-27  Bruno Haible  <bruno@clisp.org>
13470
13471         Resolve conflict between the two kinds of module indicators.
13472         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
13473         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
13474         * modules/canonicalize (configure.ac): Invoke
13475         gl_MODULE_INDICATOR_FOR_TESTS.
13476         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
13477         GNULIB_XYZ.
13478         * tests/test-dirent-c++.cc: Likewise.
13479         * tests/test-dirent-safer.c: Likewise.
13480         * tests/test-dup2.c: Likewise.
13481         * tests/test-fchdir.c: Likewise.
13482         * tests/test-fcntl-h-c++.cc: Likewise.
13483         * tests/test-getopt.c: Likewise.
13484         * tests/test-getopt.h: Likewise.
13485         * tests/test-langinfo-c++.cc: Likewise.
13486         * tests/test-locale-c++.cc: Likewise.
13487         * tests/test-math-c++.cc: Likewise.
13488         * tests/test-pty-c++.cc: Likewise.
13489         * tests/test-search-c++.cc: Likewise.
13490         * tests/test-signal-c++.cc: Likewise.
13491         * tests/test-spawn-c++.cc: Likewise.
13492         * tests/test-stdio-c++.cc: Likewise.
13493         * tests/test-stdlib-c++.cc: Likewise.
13494         * tests/test-string-c++.cc: Likewise.
13495         * tests/test-sys_ioctl-c++.cc: Likewise.
13496         * tests/test-sys_select-c++.cc: Likewise.
13497         * tests/test-sys_socket-c++.cc: Likewise.
13498         * tests/test-sys_stat-c++.cc: Likewise.
13499         * tests/test-sys_time-c++.cc: Likewise.
13500         * tests/test-time-c++.cc: Likewise.
13501         * tests/test-unistd-c++.cc: Likewise.
13502         * tests/test-wchar-c++.cc: Likewise.
13503         * tests/uninorm/test-u8-nfc.c: Likewise.
13504         * tests/uninorm/test-u8-nfd.c: Likewise.
13505         * tests/uninorm/test-u8-nfkc.c: Likewise.
13506         * tests/uninorm/test-u8-nfkd.c: Likewise.
13507         * tests/uninorm/test-u16-nfc.c: Likewise.
13508         * tests/uninorm/test-u16-nfd.c: Likewise.
13509         * tests/uninorm/test-u16-nfkc.c: Likewise.
13510         * tests/uninorm/test-u16-nfkd.c: Likewise.
13511         * tests/uninorm/test-u32-nfc.c: Likewise.
13512         * tests/uninorm/test-u32-nfc-big.c: Likewise.
13513         * tests/uninorm/test-u32-nfd.c: Likewise.
13514         * tests/uninorm/test-u32-nfd-big.c: Likewise.
13515         * tests/uninorm/test-u32-nfkc.c: Likewise.
13516         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
13517         * tests/uninorm/test-u32-nfkd.c: Likewise.
13518         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
13519         * tests/uninorm/test-u32-normalize-big.c: Likewise.
13520
13521 2010-03-27  Bruno Haible  <bruno@clisp.org>
13522
13523         Distinguish two kinds of module indicators.
13524         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
13525         gl_MODULE_INDICATOR.
13526         (gl_MODULE_INDICATOR): New macro.
13527         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
13528         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
13529         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
13530         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
13531         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
13532         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
13533         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
13534         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
13535         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
13536         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
13537         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
13538         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
13539         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
13540         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
13541         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
13542         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
13543         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
13544         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
13545         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
13546         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
13547         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
13548         * modules/cloexec (configure.ac): Likewise.
13549         * modules/getopt-gnu (configure.ac): Likewise.
13550         * modules/uninorm/u8-normalize (configure.ac): Likewise.
13551         * modules/uninorm/u16-normalize (configure.ac): Likewise.
13552         * modules/uninorm/u32-normalize (configure.ac): Likewise.
13553         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
13554
13555 2010-03-27  Bruno Haible  <bruno@clisp.org>
13556
13557         New module description field 'Comment'.
13558         * gnulib-tool: New option --extract-comment.
13559         (func_usage): Document it.
13560         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
13561         (func_get_comment): New function.
13562         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
13563
13564 2010-03-27  Bruno Haible  <bruno@clisp.org>
13565
13566         Addendum to 2010-02-07 commit.
13567         * gnulib-tool (func_usage): Document --extract-applicability option.
13568
13569 2010-03-27  Bruno Haible  <bruno@clisp.org>
13570
13571         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
13572         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
13573         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
13574         rather than link errors.
13575
13576 2010-03-27  Bruno Haible  <bruno@clisp.org>
13577
13578         Avoid side effects from tests-related modules on the compilation of lib.
13579         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
13580         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
13581         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
13582         parameter. Emit into AM_CPPFLAGS a definition of the designated C
13583         macro.
13584         (func_import): Define a witness macro. Assign it a value that depends
13585         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
13586         tests-related modules.
13587         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
13588         Reported by Jim Meyering.
13589
13590 2010-03-27  Bruno Haible  <bruno@clisp.org>
13591
13592         Factorize common .m4 code.
13593         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
13594         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
13595         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
13596         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
13597         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
13598         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
13599         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
13600         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
13601         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
13602         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
13603         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
13604         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
13605         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
13606         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
13607         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
13608         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
13609         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
13610         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
13611         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
13612         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
13613         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
13614         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
13615         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
13616         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
13617         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
13618         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
13619         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
13620         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
13621         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
13622         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
13623         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
13624         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
13625
13626 2010-03-27  Bruno Haible  <bruno@clisp.org>
13627
13628         Fix a compilation error on Cygwin with g++ >= 4.3.
13629         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
13630         if it is undefined or if we alias it to chmod.
13631         (lstat): Don't warn about the use of this function if it is undefined
13632         or if we alias it to stat.
13633         Reported by Simon Josefsson.
13634
13635 2010-03-27  Bruno Haible  <bruno@clisp.org>
13636
13637         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
13638         * modules/getlogin (configure.ac): Update.
13639
13640         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
13641         * modules/getlogin_r (configure.ac): Update.
13642
13643         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
13644         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
13645         * modules/inet_ntop (configure.ac): Update.
13646
13647         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
13648         * modules/inet_pton (configure.ac): Update.
13649
13650         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
13651         * modules/mbslen (configure.ac): Update.
13652
13653         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
13654         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
13655         * modules/forkpty (configure.ac): Update.
13656         * modules/openpty (configure.ac): Update.
13657
13658 2010-03-26  Simon Josefsson  <simon@josefsson.org>
13659
13660         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
13661         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
13662
13663 2010-03-25  Eric Blake  <eblake@redhat.com>
13664
13665         maint: use pragma consistently across replacement headers
13666         * lib/ctype.in.h (system_header): Hoist for consistent placement.
13667         * lib/dirent.in.h (system_header): Likewise.
13668         * lib/errno.in.h (system_header): Likewise.
13669         * lib/float.in.h (system_header): Likewise.
13670         * lib/getopt.in.h (system_header): Likewise.
13671         * lib/iconv.in.h (system_header): Likewise.
13672         * lib/inttypes.in.h (system_header): Likewise.
13673         * lib/langinfo.in.h (system_header): Likewise.
13674         * lib/locale.in.h (system_header): Likewise.
13675         * lib/math.in.h (system_header): Likewise.
13676         * lib/netdb.in.h (system_header): Likewise.
13677         * lib/netinet_in.in.h (system_header): Likewise.
13678         * lib/pty.in.h (system_header): Likewise.
13679         * lib/sched.in.h (system_header): Likewise.
13680         * lib/se-selinux.in.h (system_header): Likewise.
13681         * lib/search.in.h (system_header): Likewise.
13682         * lib/spawn.in.h (system_header): Likewise.
13683         * lib/stdarg.in.h (system_header): Likewise.
13684         * lib/stdint.in.h (system_header): Likewise.
13685         * lib/string.in.h (system_header): Likewise.
13686         * lib/strings.in.h (system_header): Likewise.
13687         * lib/sys_file.in.h (system_header): Likewise.
13688         * lib/sys_ioctl.in.h (system_header): Likewise.
13689         * lib/sys_socket.in.h (system_header): Likewise.
13690         * lib/sys_times.in.h (system_header): Likewise.
13691         * lib/sys_utsname.in.h (system_header): Likewise.
13692         * lib/sys_wait.in.h (system_header): Likewise.
13693         * lib/sysexits.in.h (system_header): Likewise.
13694         * lib/unistd.in.h (system_header): Likewise.
13695         * lib/wctype.in.h (system_header): Likewise.
13696
13697         arpa/inet: fix mingw compilation warning
13698         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
13699         Reported by Matthew Bolte.
13700
13701 2010-03-25  Bruno Haible  <bruno@clisp.org>
13702
13703         Avoid collision between gnulib wrapper and libintl wrapper.
13704         * lib/printf.c (printf): Don't define if a printf wrapper is already
13705         defined in intl/printf.c.
13706         Reported by Michel Boaventura <michel@michelboaventura.com>.
13707
13708 2010-03-25  Bruno Haible  <bruno@clisp.org>
13709
13710         Use ANSI C.
13711         * lib/readutmp.h (getutent): Provide ANSI C prototype.
13712
13713 2010-03-25  Bruno Haible  <bruno@clisp.org>
13714
13715         Minor formatting changes.
13716         * lib/acosl.c: Insert space before function argument list.
13717         * lib/argz.c: Likewise.
13718         * lib/asinl.c: Likewise.
13719         * lib/expl.c: Likewise.
13720         * lib/gen-uni-tables.c: Likewise.
13721         * lib/gettext.h: Likewise.
13722         * lib/glthread/lock.h: Likewise.
13723         * lib/tanl.c: Likewise.
13724         * lib/uniname/uniname.c: Likewise.
13725         * tests/test-idpriv-drop.c: Likewise.
13726         * tests/test-idpriv-droptemp.c: Likewise.
13727         * tests/test-lock.c: Likewise.
13728         * tests/test-tls.c: Likewise.
13729         * lib/argp-help.c: Insert space before function-like macro argument
13730         list.
13731         * lib/memcmp.c: Likewise.
13732         * tests/test-base64.c: Likewise.
13733         * lib/localename.c: Insert space before sizeof's argument list.
13734         * lib/safe-alloc.h: Likewise.
13735         * lib/file-set.h: Insert space before macro argument list.
13736         * tests/test-argp.c: Likewise.
13737         * lib/argp-namefrob.h: Insert space before function parameter list.
13738         * lib/getaddrinfo.c: Likewise.
13739         * lib/netdb.in.h: Likewise.
13740         * lib/parse-duration.h: Likewise.
13741         * lib/parse-duration.c: Likewise.
13742         * lib/poll.c: Likewise.
13743         * lib/select.c: Likewise.
13744         * lib/trim.h: Likewise.
13745         * tests/test-usleep.c: Likewise.
13746         * lib/ldexpl.c: Insert space before function parameter list and before
13747         function argument list.
13748         * lib/logl.c: Likewise.
13749         * lib/sqrtl.c: Likewise.
13750         * lib/trim.c: Likewise.
13751         * lib/cosl.c: Use GNU style indentation. Insert space before function
13752         argument list.
13753         * lib/sinl.c: Likewise.
13754         * lib/tsearch.c: Insert space after 'for'.
13755         Reported by Jim Meyering.
13756
13757 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
13758
13759         * maint.mk (sc_Wundef_boolean): Check for the presence of the
13760         config header before grepping, as it's not present before
13761         autoreconf/configure are run.  Reported by Simon Josefsson.
13762
13763 2010-03-23  Bruno Haible  <bruno@clisp.org>
13764
13765         pt_chown: Make it work with automake < 1.11.
13766         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
13767         Reported by Simon Josefsson.
13768
13769 2010-03-23  Bruno Haible  <bruno@clisp.org>
13770
13771         pt_chown: Don't depend on GPLed modules.
13772         * lib/pt_chown.c: Don't include idpriv.h.
13773         (main): Don't drop privileges.
13774         * modules/pt_chown (Depends-on): Remove idpriv-drop.
13775         Reported by Simon Josefsson.
13776
13777 2010-03-24  Simon Josefsson  <simon@josefsson.org>
13778
13779         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
13780         suggestions from karl@freefriends.org (Karl Berry).
13781
13782 2010-03-22  Eric Blake  <eblake@redhat.com>
13783
13784         gethostname: further tweaks
13785         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
13786         are overriding gethostname.
13787         Suggested by Bruno Haible.
13788
13789 2010-03-21  Bruno Haible  <bruno@clisp.org>
13790
13791         Fix comments.
13792         * lib/forkpty.c (rpl_forkpty): Fix comment.
13793         * lib/openpty.c (rpl_openpty): Likewise.
13794         Reported by Eric Blake.
13795
13796 2010-03-22  Eric Blake  <eblake@redhat.com>
13797
13798         gethostname: fix build on mingw
13799         * lib/unistd.in.h (includes): Work around fact that mingw
13800         <winsock2.h> re-includes <unistd.h>, by avoiding any
13801         redeclarations if we are being included by <winsock2.h>.
13802         Reported by Matthias Bolte.
13803
13804 2010-03-21  Bruno Haible  <bruno@clisp.org>
13805
13806         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
13807         * lib/forkpty.c (forkpty): New replacement function, from glibc with
13808         modifications.
13809         * lib/pty.in.h (forkpty): Update declaration. Add comments.
13810         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
13811         provide the replacement.
13812         * modules/forkpty (Depends-on): Add openpty, login_tty.
13813         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
13814         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
13815         * doc/glibc-functions/forkpty.texi: More supported platforms.
13816         * config/srclist.txt: Add forkpty.c (commented).
13817
13818 2010-03-21  Bruno Haible  <bruno@clisp.org>
13819
13820         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
13821         (Makefile.am): Verify that PTY_LIB is defined.
13822
13823         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
13824
13825 2010-03-21  Bruno Haible  <bruno@clisp.org>
13826
13827         Tests for module 'login_tty'.
13828         * modules/login_tty-tests: New file.
13829         * tests/test-login_tty.c: New file.
13830
13831         New module 'login_tty'.
13832         * lib/login_tty.c: New file.
13833         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
13834         * modules/login_tty: New file.
13835         * doc/glibc-functions/login_tty.texi: Mention the new module.
13836
13837 2010-03-21  Bruno Haible  <bruno@clisp.org>
13838
13839         login_tty: Documentation.
13840         * doc/glibc-functions/login_tty.texi: New file.
13841         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
13842
13843 2010-03-21  Bruno Haible  <bruno@clisp.org>
13844
13845         pty: Consistent macro naming.
13846         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
13847         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
13848         * modules/pty (configure.ac): Update.
13849
13850 2010-03-21  Bruno Haible  <bruno@clisp.org>
13851
13852         Tests for openpty: Make stricter.
13853         * tests/test-openpty.c (main): Add test of canonical processing and
13854         erase.
13855         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
13856
13857         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
13858         * lib/openpty.c (openpty): New replacement function.
13859         * lib/pty.in.h: Include <termios.h>.
13860         (openpty): Update declaration. Add comments.
13861         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
13862         is not declared, arrange to provide the replacement. Check for _getpty
13863         and posix_openpt.
13864         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
13865         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
13866         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
13867         * modules/pty-tests (test_pty_c___LDADD): New variable.
13868         * doc/glibc-functions/openpty.texi: More supported platforms.
13869
13870 2010-03-21  Bruno Haible  <bruno@clisp.org>
13871
13872         setenv: Tweaks.
13873         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
13874         the test program.
13875         * doc/posix-functions/setenv.texi: Update platforms list.
13876
13877 2010-03-21  Bruno Haible  <bruno@clisp.org>
13878
13879         New module 'unlockpt'.
13880         * lib/unlockpt.c: New file, from glibc with modifications.
13881         * m4/unlockpt.m4: New file.
13882         * modules/unlockpt: New file.
13883         * lib/stdlib.in.h (unlockpt): New declaration.
13884         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
13885         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
13886         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
13887         HAVE_UNLOCKPT.
13888         * doc/posix-functions/unlockpt.texi: Mention the new module.
13889         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
13890         * config/srclist.txt: Add unlockpt.c (commented).
13891
13892 2010-03-21  Jim Meyering  <meyering@redhat.com>
13893
13894         maint.mk: prohibit inclusion of "intprops.h" without use
13895         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
13896
13897 2010-03-21  Bruno Haible  <bruno@clisp.org>
13898
13899         New module 'grantpt'.
13900         * lib/grantpt.c: New file, from glibc with modifications.
13901         * m4/grantpt.m4: New file.
13902         * modules/grantpt: New file.
13903         * lib/stdlib.in.h (grantpt): New declaration.
13904         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
13905         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
13906         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
13907         HAVE_GRANTPT.
13908         * doc/posix-functions/grantpt.texi: Mention the new module.
13909         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
13910         * config/srclist.txt: Add grantpt.c (commented).
13911
13912 2010-03-21  Bruno Haible  <bruno@clisp.org>
13913
13914         New module 'pt_chown'.
13915         * lib/pt_chown.c: New file, from glibc with modifications.
13916         * lib/pty-private.h: New file, from glibc with modifications.
13917         * modules/pt_chown: New file.
13918         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
13919
13920 2010-03-21  Bruno Haible  <bruno@clisp.org>
13921
13922         Tests for module 'ptsname'.
13923         * modules/ptsname-tests: New file.
13924         * tests/test-ptsname.c: New file.
13925
13926         New module 'ptsname'.
13927         * lib/ptsname.c: New file, from glibc with modifications.
13928         * m4/ptsname.m4: New file.
13929         * modules/ptsname: New file.
13930         * lib/stdlib.in.h (ptsname): New declaration.
13931         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
13932         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
13933         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
13934         HAVE_PTSNAME.
13935         * doc/posix-functions/ptsname.texi: Mention the new module.
13936         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
13937         * config/srclist.txt: Add ptsname.c (commented).
13938
13939 2010-03-21  Bruno Haible  <bruno@clisp.org>
13940
13941         Tests for module 'ttyname_r'.
13942         * modules/ttyname_r-tests: New file.
13943         * tests/test-ttyname_r.c: New file.
13944
13945         New module 'ttyname_r'.
13946         * lib/ttyname_r.c: New file.
13947         * m4/ttyname_r.m4: New file.
13948         * modules/ttyname_r: New file.
13949         * lib/unistd.in.h (ttyname_r): New declaration.
13950         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
13951         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
13952         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
13953         HAVE_TTYNAME_R.
13954         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
13955         * doc/posix-functions/ttyname_r.texi: Mention the new module.
13956
13957 2010-03-20  Bruno Haible  <bruno@clisp.org>
13958
13959         signal: Undefine macro definitions in C++ mode.
13960         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
13961         sigfillset): Undefine macro definitions from the system header in C++
13962         mode.
13963         Reported by John W. Eaton <jwe@gnu.org>.
13964
13965 2010-03-20  Bruno Haible  <bruno@clisp.org>
13966
13967         Ensure no #include statements inside extern "C" { ... }.
13968         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
13969         contain #include statements.
13970         * lib/time.in.h: Likewise.
13971
13972 2010-03-20  Bruno Haible  <bruno@clisp.org>
13973
13974         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
13975         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
13976         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
13977         Reported by John W. Eaton <jwe@gnu.org>.
13978
13979 2010-03-20  Bruno Haible  <bruno@clisp.org>
13980
13981         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
13982         Reported by Jim Meyering.
13983
13984 2010-03-20  Bruno Haible  <bruno@clisp.org>
13985
13986         pipe: Set errno upon failure.
13987         * lib/pipe.h: Specify that when -1 is returned, errno is set.
13988         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
13989         errno value in error message.
13990
13991 2010-03-20  Bruno Haible  <bruno@clisp.org>
13992             Jim Meyering  <meyering@redhat.com>
13993
13994         lchown: Avoid "unused variable" warning.
13995         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
13996
13997 2010-03-20  Bruno Haible  <bruno@clisp.org>
13998
13999         Work around unlink() bug on MacOS X 10.5.6.
14000         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
14001         attempting to unlink a parent directory.
14002         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
14003         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
14004         activate for the replacement function.
14005         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
14006
14007 2010-03-20  Bruno Haible  <bruno@clisp.org>
14008
14009         Fix link errors on Solaris 8.
14010         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
14011         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
14012
14013 2010-03-19  Jim Meyering  <meyering@redhat.com>
14014
14015         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
14016         The _LIBC implementation of build_range_exp correctly honors the
14017         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
14018         However, the non-_LIBC implementation would ignore that syntax-bit
14019         flag and return REG_ERANGE unconditionally.
14020         This change makes it honor that flag.
14021         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
14022         Make two pointer parameters "const".
14023         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
14024         (parse_bracket_exp): Update caller.
14025
14026         regex.m4: correct the reversed range endpoint ([b-a]) test
14027         * m4/regex.m4: When requiring that [b-a] evoke failure,
14028         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
14029         test pass once again for x86-based systems.
14030
14031 2010-03-19  Bruno Haible  <bruno@clisp.org>
14032
14033         scandir: Fix link error on Solaris 8.
14034         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
14035         macros.
14036
14037 2010-03-19  Bruno Haible  <bruno@clisp.org>
14038
14039         getusershell: Fix documentation.
14040         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
14041         module.
14042         * doc/glibc-functions/setusershell.texi: Likewise.
14043
14044         getusershell: Provide declaration, missing on Solaris 9.
14045         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
14046         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
14047         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
14048         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
14049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14050         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
14051         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
14052         HAVE_GETUSERSHELL.
14053         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
14054
14055 2010-03-19  Bruno Haible  <bruno@clisp.org>
14056
14057         wctype: Provide iswblank function.
14058         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
14059         exists and is fine.
14060         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
14061         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
14062         * tests/test-wctype.c (main): Re-enable the iswblank tests.
14063         * doc/posix-functions/iswblank.texi: Update.
14064
14065 2010-03-19  Bruno Haible  <bruno@clisp.org>
14066
14067         Tests of module 'pty' in C++ mode.
14068         * modules/pty-tests: New file.
14069         * tests/test-pty-c++.cc: New file.
14070         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
14071
14072 2010-03-19  Eric Blake  <eblake@redhat.com>
14073
14074         logb: fix documentation
14075         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
14076         1.5 declaration bug.
14077
14078         forkpty, openpty: prefer glibc's const-safe prototype
14079         * lib/forkpty.c (rpl_forkpty): New file.
14080         * lib/openpty.c (rpl_openpty): Likewise.
14081         * modules/forkpty (Files): Distribute it.
14082         * modules/openpty (Files): Likewise.
14083         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
14084         check...
14085         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
14086         replacement for for non-const BSD signature.
14087         * modules/pty (Makefile.am): Substitute witnesses.
14088         * lib/pty.in.h (forkpty, openpty): Declare replacements.
14089         * tests/test-forkpty.c: Update signature check.
14090         * tests/test-openpty.c: Likewise.
14091         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
14092         * doc/glibc-functions/openpty.texi (openpty): Likewise.
14093
14094         forkpty, openpty: split functions into new modules
14095         * modules/pty (Makefile.am): Substitute new witnesses.
14096         (Libraries): Move library detection...
14097         * modules/forkpty: ...into new module.
14098         * modules/openpty: Another new module.
14099         * modules/pty-tests: Rename and split...
14100         * modules/forkpty-tests: ...to this...
14101         * modules/openpty-tests: ...and this.
14102         * tests/test-pty.c: Rename and split...
14103         * tests/test-forkpty.c: ...to this...
14104         * tests/test-openpty.c: ...and this.
14105         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
14106         (gl_PTY): Split library searching...
14107         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
14108         (gl_FORKPTY, gl_OPENPTY): New macros.
14109         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
14110         * NEWS: Mention the split.
14111         * MODULES.html.sh (Misc): Document the modules.
14112         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
14113         * doc/glibc-functions/openpty.texi (openpty): Likewise.
14114
14115         pty: improve replacement header
14116         * lib/pty.in.h: New file.
14117         * modules/pty (Files): Ship it.
14118         (Makefile.am): Always build replacement.
14119         * m4/pty.m4: Rename...
14120         * m4/pty_h.m4: ...to this.
14121         (gl_PTY): Modernize setting of witness macros; update check of
14122         forkpty to take proper advantage of cache.
14123         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
14124
14125         getopt: avoid compiler warning
14126         * lib/getopt.c (attribute_hidden): Remove unused macro.
14127
14128 2010-03-18  Bruno Haible  <bruno@clisp.org>
14129
14130         Fix link errors on Solaris 8.
14131         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
14132         * modules/search-tests (test_search_c___LDADD): Likewise.
14133         * modules/signal-tests (test_signal_c___LDADD): Likewise.
14134         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
14135         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
14136         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
14137         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
14138         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
14139         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
14140
14141 2010-03-18  Bruno Haible  <bruno@clisp.org>
14142
14143         Fix bug introduced on 2010-03-14.
14144         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
14145         (gl_SPAWN_H): Require it.
14146         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
14147         Reported by Simon Josefsson.
14148
14149 2010-03-18  Bruno Haible  <bruno@clisp.org>
14150
14151         Fix typo introduced on 2009-12-31.
14152         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
14153         posix_spawn_file_actions_adddup2.
14154
14155 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
14156         and Eric Blake  <eblake@redhat.com>
14157
14158         test-vc-list-files-git: make more robust
14159         * tests/test-vc-list-files-git.sh: Unset problematic environment
14160         variables.  Chain commands together.
14161
14162 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
14163
14164         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
14165         `AC_CHECK_DECL' invocation.
14166
14167 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
14168
14169         * lib/inttostr.c (inttostr): Make sure the invocation of verify
14170         appears before executable statements. Suggested by Petr Sumbera
14171         <Petr.Sumbera@Sun.COM>.
14172
14173 2010-03-14  Bruno Haible  <bruno@clisp.org>
14174
14175         * tests/test-flock.c (test_exclusive): Comment out a test that causes
14176         portability problems. Instead use a simpler test.
14177         (main): Check that invalid arguments are rejected only on Linux.
14178
14179 2010-03-14  Bruno Haible  <bruno@clisp.org>
14180
14181         Fix bug introduced on 2009-12-31.
14182         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
14183         gl_PREREQ_SYS_H_WINSOCK2 always.
14184         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
14185         SYS_SOCKET_H variable.
14186         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
14187         Update comments.
14188         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
14189         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
14190         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14191         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14192         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
14193
14194 2010-03-14  Bruno Haible  <bruno@clisp.org>
14195
14196         Fix values returned by sinl, cosl.
14197         * lib/trigl.h: Add specification comments.
14198         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
14199         that combines the values from the precomputed table with the values of
14200         the Chebyshev polynomials.
14201
14202 2010-03-14  Bruno Haible  <bruno@clisp.org>
14203
14204         Fix compilation error when modules 'posix_spawn[p]' are not used.
14205         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
14206         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
14207
14208 2010-03-14  Bruno Haible  <bruno@clisp.org>
14209
14210         Fix compilation error on mingw when module 'time_r' is not used.
14211         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
14212         is 1.
14213         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
14214         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
14215         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
14216         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
14217
14218 2010-03-14  Bruno Haible  <bruno@clisp.org>
14219
14220         Fix compilation error with Sun C.
14221         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
14222         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
14223         instead of GCC specific ULONG_LONG_MAX.
14224         * lib/xstrtoll.c: Likewise.
14225         * lib/xstrtoull.c: Likewise.
14226
14227 2010-03-13  Bruno Haible  <bruno@clisp.org>
14228
14229         Allow the user to disable C++ code and tests.
14230         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
14231         (gl_PROG_ANSI_CXX): Require it.
14232
14233 2010-03-13  Bruno Haible  <bruno@clisp.org>
14234
14235         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
14236         cases.
14237
14238 2010-03-13  Bruno Haible  <bruno@clisp.org>
14239
14240         Test that gnulib does not break the standard C++ headers.
14241         * tests/test-locale-c++2.cc: New file.
14242         * modules/locale-tests (Files): Add it.
14243         (Makefile.am): Compile it for test-locale-c++.
14244         * tests/test-math-c++2.cc: New file.
14245         * modules/math-tests (Files): Add it.
14246         (Makefile.am): Compile it for test-math-c++.
14247         * tests/test-signal-c++2.cc: New file.
14248         * modules/signal-tests (Files): Add it.
14249         (Makefile.am): Compile it for test-signal-c++.
14250         * tests/test-stdio-c++2.cc: New file.
14251         * modules/stdio-tests (Files): Add it.
14252         (Makefile.am): Compile it for test-stdio-c++.
14253         * tests/test-stdlib-c++2.cc: New file.
14254         * modules/stdlib-tests (Files): Add it.
14255         (Makefile.am): Compile it for test-stdlib-c++.
14256         * tests/test-string-c++2.cc: New file.
14257         * modules/string-tests (Files): Add it.
14258         (Makefile.am): Compile it for test-string-c++.
14259         * tests/test-time-c++2.cc: New file.
14260         * modules/time-tests (Files): Add it.
14261         (Makefile.am): Compile it for test-time-c++.
14262         Reported by John W. Eaton <jwe@gnu.org>.
14263
14264 2010-03-13  Bruno Haible  <bruno@clisp.org>
14265
14266         * gnulib-tool (func_usage): Clarify which options are available for
14267         --create-testdir and --create-megatestdir.
14268
14269 2010-03-13  Bruno Haible  <bruno@clisp.org>
14270
14271         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
14272         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
14273         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
14274         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
14275         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
14276         when appropriate.
14277         Reported by Jim Meyering.
14278
14279 2010-03-12  Simon Josefsson  <simon@josefsson.org>
14280
14281         * gnulib-tool (func_import): Explain origin of code.
14282
14283 2010-03-12  Bruno Haible  <bruno@clisp.org>
14284
14285         Fix problem with automake's definition of CXXLINK.
14286         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
14287         Reported by Simon Josefsson and Ludovic Courtès.
14288
14289 2010-03-12  Bruno Haible  <bruno@clisp.org>
14290
14291         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
14292         stable releases.
14293
14294 2010-03-11  Bruno Haible  <bruno@clisp.org>
14295
14296         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
14297         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
14298         whether the system provides one variant or multiple variants of the
14299         function.
14300         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
14301         C++ compilers.
14302         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
14303         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
14304         Reported by Jim Meyering.
14305
14306 2010-03-09  Simon Josefsson  <simon@josefsson.org>
14307
14308         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
14309
14310 2010-03-08  Bruno Haible  <bruno@clisp.org>
14311
14312         gnulib-tool: Add support for --libtool in --create-testdir.
14313         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
14314         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
14315
14316 2010-03-08  Eric Blake  <eblake@redhat.com>
14317
14318         gnulib-tool.texi: mention possibility of git submodule
14319         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
14320         submodules.
14321         * doc/.gitignore: Ignore another generated file.
14322
14323 2010-03-08  Karl Berry  <karl@gnu.org>
14324
14325         * doc/gnulib-tool.texi (VCS Issues): Mention third option
14326         of committing gnulib files while skipping others.
14327
14328 2010-03-07  Bruno Haible  <bruno@clisp.org>
14329
14330         Tests of module 'wctype' in C++ mode.
14331         * tests/test-wctype-c++.cc: New file.
14332         * modules/wctype-tests (Files): Add it and tests/signature.h.
14333         (Depends-on): Add ansi-c++-opt.
14334         (Makefile.am): Arrange to compile and run test-wctype-c++.
14335
14336         Tests of module 'wchar' in C++ mode.
14337         * tests/test-wchar-c++.cc: New file.
14338         * modules/wchar-tests (Files): Add it and tests/signature.h.
14339         (Depends-on): Add ansi-c++-opt.
14340         (Makefile.am): Arrange to compile and run test-wchar-c++.
14341         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
14342         gl_MODULE_INDICATOR.
14343
14344         Tests of module 'unistd' in C++ mode.
14345         * tests/test-unistd-c++.cc: New file.
14346         * modules/unistd-tests (Files): Add it and tests/signature.h.
14347         (Depends-on): Add ansi-c++-opt.
14348         (Makefile.am): Arrange to compile and run test-unistd-c++.
14349         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
14350         gl_MODULE_INDICATOR.
14351
14352         Tests of module 'time' in C++ mode.
14353         * tests/test-time-c++.cc: New file.
14354         * modules/time-tests (Files): Add it and tests/signature.h.
14355         (Depends-on): Add ansi-c++-opt.
14356         (Makefile.am): Arrange to compile and run test-time-c++.
14357         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
14358
14359         Tests of module 'sys_time' in C++ mode.
14360         * tests/test-sys_time-c++.cc: New file.
14361         * modules/sys_time-tests (Files): Add it and tests/signature.h.
14362         (Depends-on): Add ansi-c++-opt.
14363         (Makefile.am): Arrange to compile and run test-sys_time-c++.
14364         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
14365         gl_MODULE_INDICATOR.
14366
14367         Tests of module 'sys_stat' in C++ mode.
14368         * tests/test-sys_stat-c++.cc: New file.
14369         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
14370         (Depends-on): Add ansi-c++-opt.
14371         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
14372         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
14373         gl_MODULE_INDICATOR.
14374
14375         Tests of module 'sys_socket' in C++ mode.
14376         * tests/test-sys_socket-c++.cc: New file.
14377         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
14378         (Depends-on): Add ansi-c++-opt.
14379         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
14380         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
14381         gl_MODULE_INDICATOR.
14382
14383         Tests of module 'sys_select' in C++ mode.
14384         * tests/test-sys_select-c++.cc: New file.
14385         * modules/sys_select-tests (Files): Add it and tests/signature.h.
14386         (Depends-on): Add ansi-c++-opt.
14387         (Makefile.am): Arrange to compile and run test-sys_select-c++.
14388         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
14389         gl_MODULE_INDICATOR.
14390
14391         Tests of module 'sys_ioctl' in C++ mode.
14392         * tests/test-sys_ioctl-c++.cc: New file.
14393         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
14394         (Depends-on): Add ansi-c++-opt.
14395         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
14396         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
14397         gl_MODULE_INDICATOR.
14398
14399         Tests of module 'string' in C++ mode.
14400         * tests/test-string-c++.cc: New file.
14401         * modules/string-tests (Files): Add it and tests/signature.h.
14402         (Depends-on): Add ansi-c++-opt.
14403         (Makefile.am): Arrange to compile and run test-string-c++.
14404         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
14405         gl_MODULE_INDICATOR.
14406
14407         Tests of module 'stdlib' in C++ mode.
14408         * tests/test-stdlib-c++.cc: New file.
14409         * modules/stdlib-tests (Files): Add it and tests/signature.h.
14410         (Depends-on): Add ansi-c++-opt.
14411         (Makefile.am): Arrange to compile and run test-stdlib-c++.
14412         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
14413         gl_MODULE_INDICATOR.
14414
14415         Tests of module 'stdio' in C++ mode.
14416         * tests/test-stdio-c++.cc: New file.
14417         * modules/stdio-tests (Files): Add it and tests/signature.h.
14418         (Depends-on): Add ansi-c++-opt.
14419         (Makefile.am): Arrange to compile and run test-stdio-c++.
14420         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
14421         gl_MODULE_INDICATOR.
14422
14423         Tests of module 'spawn' in C++ mode.
14424         * tests/test-spawn-c++.cc: New file.
14425         * modules/spawn-tests (Files): Add it and tests/signature.h.
14426         (Depends-on): Add ansi-c++-opt.
14427         (Makefile.am): Arrange to compile and run test-spawn-c++.
14428         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
14429         gl_MODULE_INDICATOR.
14430
14431         Tests of module 'signal' in C++ mode.
14432         * tests/test-signal-c++.cc: New file.
14433         * modules/signal-tests (Files): Add it and tests/signature.h.
14434         (Depends-on): Add ansi-c++-opt.
14435         (Makefile.am): Arrange to compile and run test-signal-c++.
14436         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
14437         gl_MODULE_INDICATOR.
14438
14439         Tests of module 'search' in C++ mode.
14440         * tests/test-search-c++.cc: New file.
14441         * modules/search-tests (Files): Add it and tests/signature.h.
14442         (Depends-on): Add ansi-c++-opt.
14443         (Makefile.am): Arrange to compile and run test-search-c++.
14444         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
14445         gl_MODULE_INDICATOR.
14446
14447         Tests of module 'math' in C++ mode.
14448         * tests/test-math-c++.cc: New file.
14449         * modules/math-tests (Files): Add it and tests/signature.h.
14450         (Depends-on): Add ansi-c++-opt.
14451         (Makefile.am): Arrange to compile and run test-math-c++.
14452         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
14453
14454         Tests of module 'locale' in C++ mode.
14455         * tests/test-locale-c++.cc: New file.
14456         * modules/locale-tests (Files): Add it and tests/signature.h.
14457         (Depends-on): Add ansi-c++-opt.
14458         (Makefile.am): Arrange to compile and run test-locale-c++.
14459         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
14460         gl_MODULE_INDICATOR.
14461
14462         Tests of module 'langinfo' in C++ mode.
14463         * tests/test-langinfo-c++.cc: New file.
14464         * modules/langinfo-tests (Files): Add it and tests/signature.h.
14465         (Depends-on): Add ansi-c++-opt.
14466         (Makefile.am): Arrange to compile and run test-langinfo-c++.
14467         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
14468         gl_MODULE_INDICATOR.
14469
14470         Tests of module 'iconv-h' in C++ mode.
14471         * tests/test-iconv-h-c++.cc: New file.
14472         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
14473         (Depends-on): Add ansi-c++-opt.
14474         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
14475
14476         Tests of module 'glob' in C++ mode.
14477         * tests/test-glob-c++.cc: New file.
14478         * modules/glob-tests (Files): Add it.
14479         (Depends-on): Add ansi-c++-opt.
14480         (Makefile.am): Arrange to compile and run test-glob-c++.
14481
14482         Tests of module 'fcntl-h' in C++ mode.
14483         * tests/test-fcntl-h-c++.cc: New file.
14484         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
14485         (Depends-on): Add ansi-c++-opt.
14486         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
14487         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
14488         gl_MODULE_INDICATOR.
14489
14490         Tests of module 'dirent' in C++ mode.
14491         * tests/test-dirent-c++.cc: New file.
14492         * modules/dirent-tests (Files): Add it and tests/signature.h.
14493         (Depends-on): Add ansi-c++-opt.
14494         (Makefile.am): Arrange to compile and run test-dirent-c++.
14495         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
14496         gl_MODULE_INDICATOR.
14497
14498         New module 'ansi-c++-opt'.
14499         * modules/ansi-c++-opt: New file.
14500         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
14501
14502         Document C++ namespace mode.
14503         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
14504
14505         wctype: Avoid #define replacements in C++ mode.
14506         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
14507         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
14508         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
14509         In C++, define a namespaced alias symbol.
14510         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
14511         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
14512         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
14513         rule.
14514
14515         wchar: Avoid #define replacements in C++ mode.
14516         * lib/wchar.in.h: Include c++defs.h.
14517         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
14518         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
14519         symbol.
14520         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
14521         * modules/wchar (Depends-on): Add c++defs.
14522         (Makefile.am): Update wchar.h rule.
14523
14524         unistd: Avoid #define replacements in C++ mode.
14525         * lib/unistd.in.h: Include c++defs.h.
14526         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
14527         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
14528         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
14529         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
14530         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
14531         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
14532         symbol.
14533         (environ): Update.
14534         * modules/unistd (Depends-on): Add c++defs.
14535         (Makefile.am): Update unistd.h rule.
14536
14537         time: Avoid #define replacements in C++ mode.
14538         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
14539         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
14540         define a namespaced alias symbol.
14541         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
14542         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
14543         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
14544         * modules/time (Depends-on): Add c++defs, warn-on-use.
14545         (Makefile.am): Update time.h rule.
14546         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
14547         * modules/nanosleep (configure.ac): Likewise.
14548         * modules/strptime (configure.ac): Likewise.
14549         * modules/timegm (configure.ac): Likewise.
14550
14551         sys_time: Avoid #define replacements in C++ mode.
14552         * lib/sys_time.in.h: Include c++defs.h.
14553         (gettimeofday): In C++, define a namespaced alias symbol.
14554         * modules/sys_time (Depends-on): Add c++defs.
14555         (Makefile.am): Update sys/time.h rule.
14556
14557         sys_stat: Avoid #define replacements in C++ mode.
14558         * lib/sys_stat.in.h: Include c++defs.h.
14559         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
14560         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
14561         namespaced alias symbol.
14562         In C++, define a namespaced alias symbol.
14563         * modules/sys_stat (Depends-on): Add c++defs.
14564         (Makefile.am): Update sys/stat.h rule.
14565
14566         sys_socket: Avoid #define replacements in C++ mode.
14567         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
14568         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
14569         definitions also when the system has a <sys/socket.h>.
14570         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
14571         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
14572         In C++, define a namespaced alias symbol.
14573         * modules/sys_socket (Depends-on): Add c++defs.
14574         (Makefile.am): Update sys/socket.h rule.
14575
14576         sys_select: Avoid #define replacements in C++ mode.
14577         * lib/sys_select.in.h: Include c++defs.h. Enable the function
14578         definitions also when the system has a <sys/select.h>.
14579         (select): In C++, define a namespaced alias symbol.
14580         * modules/sys_select (Depends-on): Add c++defs.
14581         (Makefile.am): Update sys/select.h rule.
14582
14583         sys_ioctl: Avoid #define replacements in C++ mode.
14584         * lib/sys_ioctl.in.h: Include c++defs.h.
14585         (ioctl): In C++, define a namespaced alias symbol.
14586         * modules/sys_ioctl (Depends-on): Add c++defs.
14587         (Makefile.am): Update sys/ioctl.h rule.
14588
14589         string: Avoid #define replacements in C++ mode.
14590         * lib/string.in.h: Include c++defs.h.
14591         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
14592         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
14593         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
14594         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
14595         strsignal, strverscmp): In C++, define a namespaced alias symbol.
14596         * modules/string (Depends-on): Add c++defs.
14597         (Makefile.am): Update string.h rule.
14598
14599         stdlib: Avoid #define replacements in C++ mode.
14600         * lib/stdlib.in.h: Include c++defs.h.
14601         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
14602         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
14603         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
14604         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
14605         symbol.
14606         * modules/stdlib (Depends-on): Add c++defs.
14607         (Makefile.am): Update stdlib.h rule.
14608
14609         stdio: Avoid #define replacements in C++ mode.
14610         * lib/stdio.in.h: Include c++defs.h.
14611         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
14612         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
14613         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
14614         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
14615         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
14616         namespaced alias symbol.
14617         * modules/stdio (Depends-on): Add c++defs.
14618         (Makefile.am): Update stdio.h rule.
14619
14620         spawn: Avoid #define replacements in C++ mode.
14621         * lib/spawn.in.h: Include c++defs.h.
14622         (posix_spawn, posix_spawnp, posix_spawnattr_init,
14623         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
14624         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
14625         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
14626         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
14627         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
14628         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
14629         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
14630         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
14631         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
14632         In C++, define a namespaced alias symbol.
14633         * modules/spawn (Depends-on): Add c++defs.
14634         (Makefile.am): Update spawn.h rule.
14635
14636         signal: Avoid #define replacements in C++ mode.
14637         * lib/signal.in.h: Include c++defs.h.
14638         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
14639         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
14640         namespaced alias symbol.
14641         * modules/signal (Depends-on): Add c++defs.
14642         (Makefile.am): Update signal.h rule.
14643
14644         search: Avoid #define replacements in C++ mode.
14645         * lib/search.in.h: Include c++defs.h.
14646         (_gl_search_compar_fn, _gl_search_action_fn): New types.
14647         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
14648         symbol.
14649         * modules/search (Depends-on): Add c++defs.
14650         (Makefile.am): Update search.h rule.
14651
14652         math: Avoid #define replacements in C++ mode.
14653         * lib/math.in.h: Include c++defs.h.
14654         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
14655         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
14656         trunc, truncl): In C++, define a namespaced alias symbol.
14657         * modules/math (Depends-on): Add c++defs.
14658         (Makefile.am): Update math.h rule.
14659
14660         locale: Avoid #define replacements in C++ mode.
14661         * lib/locale.in.h: Include c++defs.h.
14662         (duplocale): In C++, define a namespaced alias symbol.
14663         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
14664         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
14665         * modules/locale (Depends-on): Add c++defs.
14666         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
14667
14668         langinfo: Avoid #define replacements in C++ mode.
14669         * lib/langinfo.in.h: Include c++defs.h.
14670         (nl_langinfo): In C++, define a namespaced alias symbol.
14671         * modules/langinfo (Depends-on): Add c++defs.
14672         (Makefile.am): Update langinfo.h rule.
14673
14674         iconv-h: Avoid #define replacements in C++ mode.
14675         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
14676         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
14677         symbol.
14678         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
14679         whenever iconv is present.
14680         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
14681         (Makefile.am): Update iconv.h rule.
14682
14683         glob: Avoid #define replacements in C++ mode.
14684         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
14685         (_gl_glob_errfunc_fn): New type.
14686         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
14687         symbol.
14688         * modules/glob (Depends-on): Add c++defs, warn-on-use.
14689         (Makefile.am): Update glob.h rule.
14690
14691         fcntl-h: Avoid #define replacements in C++ mode.
14692         * lib/fcntl.in.h: Include c++defs.h.
14693         (fcntl, open, openat): In C++, define a namespaced alias symbol.
14694         * modules/fcntl-h (Depends-on): Add c++defs.
14695         (Makefile.am): Update fcntl.h rule.
14696
14697         dirent: Avoid #define replacements in C++ mode.
14698         * lib/dirent.in.h: Include c++defs.h.
14699         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
14700         namespaced alias symbol.
14701         (dirfd): Update declaration.
14702         * modules/dirent (Depends-on): Add c++defs.
14703         (Makefile.am): Update dirent.h rule.
14704
14705         ctype: Make it usable in C++ code.
14706         * lib/ctype.in.h: Include c++defs.h.
14707         (isblank): Declare as extern "C".
14708         * modules/ctype (Depends-on): Add c++defs.
14709         (Makefile.am): Update ctype.h rule.
14710
14711         New module 'c++defs'.
14712         * modules/c++defs: New file.
14713         * build-aux/c++defs.h: New file.
14714         Reported by John W. Eaton <jwe@gnu.org>.
14715
14716 2010-03-07  Bruno Haible  <bruno@clisp.org>
14717
14718         logb: Provide missing declaration for Cygwin.
14719         * lib/math.in.h (logb): New declaration.
14720         * m4/logb.m4: New file.
14721         * modules/logb (Files): Add m4/logb.m4.
14722         (Depends-on): Add math.
14723         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
14724         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
14725         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
14726         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
14727         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
14728
14729 2010-03-07  Bruno Haible  <bruno@clisp.org>
14730
14731         Fix test-cond link error.
14732         * tests/test-cond.c: Include <stdio.h>.
14733
14734 2010-03-07  Bruno Haible  <bruno@clisp.org>
14735
14736         Fix test-dirent-safer link error.
14737         * modules/dirent-safer-tests (Makefile.am): Define
14738         test_dirent_safer_LDADD.
14739
14740 2010-03-07  Bruno Haible  <bruno@clisp.org>
14741
14742         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
14743         among default module list.
14744
14745 2010-03-07  Bruno Haible  <bruno@clisp.org>
14746
14747         Fix link error on platforms with GNU libiconv.
14748         * modules/unistr/u8-strcoll-tests (Makefile): Define
14749         test_u8_strcoll_LDADD.
14750         * modules/unistr/u16-strcoll-tests (Makefile): Define
14751         test_u16_strcoll_LDADD.
14752         * modules/unistr/u32-strcoll-tests (Makefile): Define
14753         test_u32_strcoll_LDADD.
14754
14755 2010-03-07  Bruno Haible  <bruno@clisp.org>
14756
14757         Use POSIX declarations for socket functions.
14758         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
14759         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
14760         rpl_sendto): Change declaration to match POSIX.
14761         * lib/connect.c (rpl_connect): Likewise.
14762         * lib/accept.c (rpl_accept): Likewise.
14763         * lib/bind.c (rpl_bind): Likewise.
14764         * lib/getpeername.c (rpl_getpeername): Likewise.
14765         * lib/getsockname.c (rpl_getsockname): Likewise.
14766         * lib/recv.c (rpl_recv): Likewise.
14767         * lib/send.c (rpl_send): Likewise.
14768         * lib/recvfrom.c (rpl_recvfrom): Likewise.
14769         * lib/sendto.c (rpl_sendto): Likewise.
14770
14771 2010-03-06  Bruno Haible  <bruno@clisp.org>
14772
14773         Clarify access, euidaccess, faccessat.
14774         * doc/posix-functions/faccessat.texi: Mention security problem under
14775         "Other problems", not "Portability problems".
14776         * doc/posix-functions/access.texi: Likewise. Mention a related security
14777         problem.
14778         * doc/glibc-functions/euidaccess.texi: Mention security problems.
14779         * lib/euidaccess.c: Add comments about platforms.
14780         * lib/unistd.in.h (access, euidaccess): Add warnings.
14781
14782 2010-03-07  Bruno Haible  <bruno@clisp.org>
14783
14784         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
14785         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
14786         (POSIX_SPAWN_SETSCHEDULER): Likewise.
14787         (POSIX_SPAWN_USEVFORK): Define in a way that works when
14788         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
14789         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
14790         declare when POSIX_SPAWN_SETSCHEDULER is zero.
14791         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
14792         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
14793         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
14794         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
14795         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
14796         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
14797         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
14798         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
14799         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
14800         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
14801         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
14802         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
14803         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
14804         Likewise.
14805         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
14806         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
14807         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
14808         Likewise.
14809         * tests/test-spawn.c (main): Make it work when
14810         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
14811
14812 2010-03-07  Bruno Haible  <bruno@clisp.org>
14813
14814         Fix incorrect Makefile.am generation in German locale.
14815         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14816         Execute sed command with character range in C locale.
14817
14818 2010-03-06  Bruno Haible  <bruno@clisp.org>
14819
14820         Tests for module 'iconv-h'.
14821         * modules/iconv-h-tests: New file.
14822         * tests/test-iconv-h.c: New file.
14823
14824         New module 'iconv-h'.
14825         * modules/iconv-h: New file.
14826         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
14827         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
14828         (configure.ac): Remove gl_ICONV_H.
14829         (Makefile.am): Remove rule for iconv.h.
14830
14831 2010-03-06  Bruno Haible  <bruno@clisp.org>
14832
14833         More consistent naming of *.m4 files.
14834         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
14835         * modules/wctype (Files): Update.
14836
14837         More consistent naming of *.m4 files.
14838         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
14839         * modules/wchar (Files): Update.
14840
14841 2010-03-06  Jim Meyering  <meyering@redhat.com>
14842
14843         euidaccess: relax license to LGPLv2+
14844         * modules/euidaccess (License): Relax to LGPLv2+.
14845
14846 2010-03-06  Bruno Haible  <bruno@clisp.org>
14847
14848         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
14849         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
14850         (Makefile.am): Augment lib_SOURCES instead.
14851
14852 2010-03-04  Jim Meyering  <meyering@redhat.com>
14853
14854         utime: remove obsolete module
14855         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
14856         unnecessary for years, and has been marked as obsolete for 10 months.
14857         * modules/utime: Remove file.
14858         * lib/utime.c: Remove file.
14859         * m4/utime.m4: Remove file.
14860         * m4/utimes-null.m4: Remove file.
14861         * doc/posix-functions/utime.texi (utime): Remove reference to
14862         the module.  Move the sole "fixed by gnulib" item into the
14863         "problems not fixed by Gnulib" list.
14864         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
14865
14866 2010-03-05  Simon Josefsson  <simon@josefsson.org>
14867
14868         * modules/exit (License): Relax license to LGPLv2+.
14869         (Status): Mark as obsolete.
14870         * NEWS: Mention deprecated 'exit' module.
14871         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
14872         of now obsolete 'exit'.
14873
14874 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14875
14876         fts-lgpl: remove unused module
14877         * modules/fts-lgpl: Remove.
14878         * MODULES.html.sh (func_all_modules): Adjust.
14879         * check-module (find_included_lib_files): Adjust.
14880         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
14881
14882 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
14883
14884         copy-acl: enhance Solaris ACL error handling
14885         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
14886         * lib/set-mode-acl.c (qset_acl): Likewise.
14887
14888 2010-03-02  Bruno Haible  <bruno@clisp.org>
14889
14890         spawn: Don't override the system defined values on FreeBSD 8.
14891         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
14892         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
14893         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
14894         if HAVE_POSIX_SPAWN is 1.
14895         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
14896
14897 2010-03-01  Bruno Haible  <bruno@clisp.org>
14898
14899         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
14900         regarding Automake.
14901
14902 2010-02-25  Bruno Haible  <bruno@clisp.org>
14903
14904         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
14905         * gnulib-tool: Define 'echo' as a function only before the ksh alias
14906         setting, not afterwards.
14907         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
14908
14909 2010-02-24  Eric Blake  <eblake@redhat.com>
14910
14911         bootstrap, git-version-gen: use timestamp
14912         * build-aux/git-version-gen (scriptversion): Force UTC.
14913         * build-aux/bootstrap (scriptversion): New variable.
14914
14915         bootstrap: allow older git
14916         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
14917         older than 1.6.4.  Requested by the libvirt project.
14918
14919 2010-02-23  Eric Blake  <eblake@redhat.com>
14920
14921         warn-on-use: work with old autoconf
14922         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
14923         AS_VAR semantics of autoconf 2.60.
14924         Reported by Bruno Haible.
14925
14926         bootstrap: improve some comments
14927         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
14928         clarification comments.
14929
14930         gettimeofday: provide correct function
14931         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
14932         when replacement is declared, otherwise provide gettimeofday.
14933         Reported by Michael Goffioul.
14934
14935 2010-02-23  Jim Meyering  <meyering@redhat.com>
14936
14937         lib-ignore: relax license to "unlimited", not LGPLv2+
14938         * modules/lib-ignore (License): Relax to "unlimited".
14939
14940 2010-02-23  Jim Meyering  <meyering@redhat.com>
14941
14942         lib-ignore: relax license to LGPLv2+
14943         * modules/lib-ignore (License): Relax to LGPLv2+.
14944
14945 2010-02-22  Eric Blake  <eblake@redhat.com>
14946
14947         lseek: avoid bash 3.2 broken pipe bug
14948         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
14949         warning from bash 3.2.
14950         Reported by Ben Pfaff, with analysis from Bruno Haible.
14951
14952         bootstrap: support non-FSF copyright holder
14953         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
14954         bootstrap.conf override of COPYRIGHT_HOLDER.
14955         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
14956
14957         bootstrap: interoperate with gettext 0.14.1
14958         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
14959
14960         bootstrap: allow for alternate submodule location
14961         * build-aux/bootstrap (gnulib_path): New variable; use instead of
14962         hardcoding submodule location.
14963         (gnulib_mk): Allow direct use of Makefile.am.
14964
14965         bootstrap: use GNULIB_SRCDIR to reduce disk usage
14966         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
14967         rather than reconfiguring where the submodule points.
14968
14969         gettimeofday: restore support for platforms that lack function
14970         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
14971         replacement if function is missing.
14972         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
14973         * modules/sys_time (Makefile.am): Substitute it.
14974         * lib/sys_time.in.h (gettimeofday): Check it.
14975         Reported by Michael Goffioul.
14976
14977 2010-02-21  Bruno Haible  <bruno@clisp.org>
14978
14979         * lib/stdio.in.h (obstack_printf): Fix typo.
14980
14981 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
14982
14983         vc-list-files: use bzr ls's -R option
14984         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
14985         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
14986
14987 2010-02-21  Jim Meyering  <meyering@redhat.com>
14988
14989         init.sh: fix EXEEXT shims to work also for names like test-prog
14990         * tests/init.sh: Re-exec a better shell, when needed.
14991         If the current shell lacks support for posix $(...), an init.sh-using
14992         test will now try to find a shell that supports that.  If EXEEXT is
14993         nonempty, we also require support for hyphen-in-alias-name and shell
14994         substitutions like ${var#glob}.  Failure to find such a shell results
14995         in a skipped test.
14996
14997 2010-02-21  Bruno Haible  <bruno@clisp.org>
14998
14999         Really work around around "broken pipe" error message from bash 3.2.
15000         * gnulib-tool (func_reset_sigpipe): Remove function.
15001         (echo): In bash 3.2, define to a function that uses printf.
15002         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
15003
15004 2010-02-20  Bruno Haible  <bruno@clisp.org>
15005
15006         Restore support for automake 1.9.6 with autoconf 2.61.
15007         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
15008         Reported by James Youngman <jay@gnu.org>.
15009
15010 2010-02-20  Bruno Haible  <bruno@clisp.org>
15011
15012         Improve *printf warning condition.
15013         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
15014         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
15015         and the function is overridden due to SIGPIPE emulation.
15016
15017 2010-02-20  Bruno Haible  <bruno@clisp.org>
15018
15019         * lib/stdio.in.h: Tweak comments.
15020
15021 2010-02-19  Bruno Haible  <bruno@clisp.org>
15022
15023         Make it easier to find modules. New gnulib-tool option '--find'.
15024         * gnulib-tool: New option --find.
15025         (func_usage): Document it.
15026         (func_sanitize_modulelist): New function, extracted from
15027         func_all_modules.
15028         (func_all_modules): Invoke it.
15029         * doc/gnulib-tool.texi (Which modules?): New node.
15030
15031 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
15032
15033         * lib/sys_select.in.h: Provide select replacement even if
15034         sys/select.h exists on a system, for Interix.
15035
15036 2010-02-18  Jim Meyering  <meyering@redhat.com>
15037
15038         init.sh: don't use $(...) just yet
15039         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
15040         to accommodate e.g., Solaris' /bin/sh.
15041
15042 2010-02-17  Bruno Haible  <bruno@clisp.org>
15043
15044         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
15045         Reported by Ludovic Courtès <ludo@gnu.org>.
15046
15047 2010-02-16  Simon Josefsson  <simon@josefsson.org>
15048
15049         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
15050         linking with -lintl.
15051
15052 2010-02-17  Simon Josefsson  <simon@josefsson.org>
15053
15054         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
15055         if not provided by the system's netdb.h.  Reported by
15056         ludo@gnu.org (Ludovic Courtès).
15057
15058 2010-02-15  Jim Meyering  <meyering@redhat.com>
15059
15060         init.sh: improve portability and efficiency
15061         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
15062         "dummy" in a for loop.
15063         Use '!', not '^' to select the complement of a character set used
15064         in a "case" statement.
15065         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
15066         Suggestions from Eric Blake.
15067
15068         init.sh: automatically accommodate programs with the .exe suffix
15069         Automatically arrange for an invocation of "prog" to execute the
15070         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
15071         may use the simpler "prog", yet still work when built on a system
15072         that requires specifying the added suffix.
15073         Do this by constructing a function named "prog" that invokes
15074         "prog.exe" for each .exe file in selected directories.
15075         * tests/init.sh (find_exe_basenames_): New function.
15076         (create_exe_shim_functions_): New function.
15077         (path_prepend_): Use it.
15078
15079         maint.mk: mark syntax-check sc_*.m rules as .PHONY
15080         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
15081         "make -t syntax-check" doesn't create a ton of sc_*.m files.
15082
15083 2010-02-14  Jim Meyering  <meyering@redhat.com>
15084
15085         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
15086         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
15087         (sc_prohibit_hash_pjw_without_use): New rule.
15088
15089         maint.mk: allow the default upload destination dir to be overridden
15090         * top/maint.mk (upload_dest_dir_): Define with a default that
15091         preserves the status quo.
15092         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
15093         Reported by Peter Simons.
15094
15095         maint.mk: prohibit inclusion of "hash.h" without_use
15096         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
15097
15098 2010-02-10  Jim Meyering  <meyering@redhat.com>
15099
15100         maint.mk: prohibit inclusion of "ignore-value.h" without_use
15101         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
15102
15103 2010-02-09  Eric Blake  <ebb9@byu.net>
15104         and Bruno Haible  <bruno@clisp.org>
15105
15106         obstack-printf-posix: ensure declaration
15107         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
15108         extracted from gl_FUNC_OBSTACK_PRINTF.
15109         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
15110         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
15111         Likewise.
15112         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
15113         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
15114         0.
15115
15116 2010-02-08  Bruno Haible  <bruno@clisp.org>
15117
15118         gnulib-tool: Fix typo in 2010-02-07 commit.
15119         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
15120         Reported by Eric Blake.
15121
15122 2010-02-07  Bruno Haible  <bruno@clisp.org>
15123
15124         gnulib-tool: Fix up caching patches.
15125         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
15126         option --no-cache. Use associative arrays when supported by the shell.
15127         (sed_comments): New variable.
15128         (modcache): Renamed from do_cache.
15129         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
15130         abbreviate unnecessarily.
15131         (have_associative): New variable.
15132         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
15133         way also for ksh and zsh.
15134         (func_init_sed_convert_to_cache_statements): New function, extracted
15135         from func_cache_lookup_module. Add support for associative arrays.
15136         Don't set the c_MODULE_cached variable here. Ignore all lines before
15137         the first field header. Remove only the final newline, not all trailing
15138         newlines. Support empty fields correctly. Limit the use of 'eval' to
15139         assignments.
15140         (func_get_description, func_get_status, func_get_notice,
15141         func_get_applicability, func_get_filelist, func_get_dependencies,
15142         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
15143         func_get_automake_snippet, func_get_include_directive,
15144         func_get_link_directive, func_get_license, func_get_maintainer):
15145         Update documentation. List the unoptimized code first. Add support for
15146         associative arrays. Limit the use of 'eval' to assignments.
15147         (func_get_applicability): Undo stylistic pessimisations.
15148         (func_get_automake_snippet, func_get_include_directive): Reduce code
15149         duplication.
15150         (func_modules_transitive_closure, func_modules_add_dummy,
15151         func_modules_notice, func_modules_to_filelist, func_add_file,
15152         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
15153         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
15154         func_create_testdir, func_create_megatestdir): Update documentation.
15155
15156 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15157
15158         * gnulib-tool (func_cache_lookup_module): Store the module name
15159         belonging to the cache variable; error out if two different
15160         module names map to the same cache variable name.
15161
15162 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15163
15164         gnulib-tool: Make caching optional.
15165         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
15166         Update matching short versions of --no-changelog.
15167         (func_usage): Update.
15168         (sed_extract_cache_prog): Renamed from ...
15169         (sed_extract_prog): ... this; revert to old extraction script.
15170         (func_get_description, func_get_status)
15171         (func_get_notice, func_get_applicability, func_get_filelist)
15172         (func_get_dependencies, func_get_autoconf_early_snippet)
15173         (func_get_autoconf_snippet, func_get_automake_snippet)
15174         (func_get_include_directive, func_get_link_directive)
15175         (func_get_license, func_get_maintainer): If $do_cache is false,
15176         use old, non-caching extraction scripts.
15177         Suggestion by Bruno Haible.
15178
15179 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15180
15181         gnulib-tool: cache module metainformation.
15182         * gnulib-tool (sed_extract_prog): Match newline before each
15183         header, and rewrite header to a shell variable suffix.
15184         (func_cache_var, func_cache_lookup_module): New functions,
15185         to turn a module name into a cache variable prefix, and to
15186         look up and cache module metainformation.
15187         (func_get_description, func_get_status)
15188         (func_get_notice, func_get_applicability, func_get_filelist)
15189         (func_get_dependencies, func_get_autoconf_early_snippet)
15190         (func_get_autoconf_snippet, func_get_automake_snippet)
15191         (func_get_include_directive, func_get_link_directive)
15192         (func_get_license, func_get_maintainer): Use
15193         func_cache_lookup_module.
15194
15195 2010-02-07  Bruno Haible  <bruno@clisp.org>
15196
15197         fnctl: Fix missing dependency.
15198         * modules/fcntl (Depends-on): Add getdtablesize.
15199         Reported by John W. Eaton <jwe@gnu.org>.
15200
15201 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
15202
15203         Argp: fix recognition of short alias options.
15204
15205         * lib/argp-parse.c (convert_options): Fix improper use of
15206         `|' between character values.
15207         * tests/test-argp.c (group1_option): New alias option
15208         --read (-r).
15209         (group1_parser): Special handling for 'r'.
15210         (test15): New test case.
15211         (test_fun): Add test15.
15212         * tests/test-argp-2.sh: Update expected --help and --usage
15213         outputs.
15214
15215 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
15216
15217         * tests/test-argp.c: Fix indentation.
15218
15219 2010-02-04  Eric Blake  <ebb9@byu.net>
15220
15221         gettimeofday: expose type of second argument
15222         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
15223         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
15224         * tests/test-gettimeofday.c: Use it to silence warning.
15225         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
15226         the issue.
15227
15228 2010-02-03  Jim Meyering  <meyering@redhat.com>
15229
15230         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
15231         * lib/regcomp.c (TYPE_SIGNED): Define.
15232         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
15233
15234         regcomp.c: avoid a new -Wshadow warning
15235         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
15236
15237 2010-02-01  Jim Meyering  <meyering@redhat.com>
15238
15239         removing useless parentheses in cpp #define directives
15240         For motivation, see commit c0221df4, "define STREQ(a,b)
15241         consistently, removing useless parentheses"
15242         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
15243         * lib/mountlist.c (MNT_IGNORE): Likewise.
15244         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
15245
15246 2010-02-01  Eric Blake  <ebb9@byu.net>
15247
15248         sys_time: use link-warning
15249         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
15250         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
15251         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
15252         * modules/sys_time (Depends-on): Add warn-on-use.
15253         (Makefile.am): Always build replacement.
15254         (configure.ac): Update substitutions.
15255         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
15256         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
15257         bother with SYS_TIME_H.
15258         * modules/gettimeofday (configure.ac): Declare indicator.
15259         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
15260         in use.
15261
15262         closein-tests: silence compiler warning
15263         * tests/test-closein.c (main): Ignore fread result.
15264         * modules/closein-tests (Depends-on): Add ignore-value.
15265
15266         tests: silence warning about system return
15267         * tests/test-areadlink-with-size.c (main): Ignore system result.
15268         * tests/test-areadlink.c (main): Likewise.
15269         * tests/test-areadlinkat-with-size.c (main): Likewise.
15270         * tests/test-areadlinkat.c (main): Likewise.
15271         * tests/test-canonicalize-lgpl.c (main): Likewise.
15272         * tests/test-canonicalize.c (main): Likewise.
15273         * tests/test-chown.c (main): Likewise.
15274         * tests/test-fchownat.c (main): Likewise.
15275         * tests/test-fdutimensat.c (main): Likewise.
15276         * tests/test-fstatat.c (main): Likewise.
15277         * tests/test-futimens.c (main): Likewise.
15278         * tests/test-lchown.c (main): Likewise.
15279         * tests/test-link.c (main): Likewise.
15280         * tests/test-linkat.c (main): Likewise.
15281         * tests/test-lstat.c (main): Likewise.
15282         * tests/test-mkdir.c (main): Likewise.
15283         * tests/test-mkdirat.c (main): Likewise.
15284         * tests/test-mkfifo.c (main): Likewise.
15285         * tests/test-mkfifoat.c (main): Likewise.
15286         * tests/test-mknod.c (main): Likewise.
15287         * tests/test-readlink.c (main): Likewise.
15288         * tests/test-remove.c (main): Likewise.
15289         * tests/test-rename.c (main): Likewise.
15290         * tests/test-renameat.c (main): Likewise.
15291         * tests/test-rmdir.c (main): Likewise.
15292         * tests/test-symlink.c (main): Likewise.
15293         * tests/test-symlinkat.c (main): Likewise.
15294         * tests/test-unlink.c (main): Likewise.
15295         * tests/test-unlinkat.c (main): Likewise.
15296         * tests/test-utimens.c (main): Likewise.
15297         * tests/test-utimensat.c (main): Likewise.
15298         * modules/areadlink-tests (Depends-on): Add ignore-value.
15299         * modules/areadlink-with-size-tests (Depends-on): Likewise.
15300         * modules/areadlinkat-tests (Depends-on): Likewise.
15301         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
15302         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15303         * modules/canonicalize-tests (Depends-on): Likewise.
15304         * modules/chown-tests (Depends-on): Likewise.
15305         * modules/fdutimensat-tests (Depends-on): Likewise.
15306         * modules/futimens-tests (Depends-on): Likewise.
15307         * modules/lchown-tests (Depends-on): Likewise.
15308         * modules/link-tests (Depends-on): Likewise.
15309         * modules/linkat-tests (Depends-on): Likewise.
15310         * modules/lstat-tests (Depends-on): Likewise.
15311         * modules/mkdir-tests (Depends-on): Likewise.
15312         * modules/mkfifo-tests (Depends-on): Likewise.
15313         * modules/mkfifoat-tests (Depends-on): Likewise.
15314         * modules/mknod-tests (Depends-on): Likewise.
15315         * modules/openat-tests (Depends-on): Likewise.
15316         * modules/readlink-tests (Depends-on): Likewise.
15317         * modules/remove-tests (Depends-on): Likewise.
15318         * modules/rename-tests (Depends-on): Likewise.
15319         * modules/renameat-tests (Depends-on): Likewise.
15320         * modules/rmdir-tests (Depends-on): Likewise.
15321         * modules/symlink-tests (Depends-on): Likewise.
15322         * modules/symlinkat-tests (Depends-on): Likewise.
15323         * modules/unlink-tests (Depends-on): Likewise.
15324         * modules/utimens-tests (Depends-on): Likewise.
15325         * modules/utimensat-tests (Depends-on): Likewise.
15326
15327 2010-01-31  Bruno Haible  <bruno@clisp.org>
15328
15329         Perform the same test for many <math.h> functions.
15330         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
15331         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
15332         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
15333         of gl_MATHFUNC.
15334         * modules/acos (configure.ac): Likewise.
15335         * modules/asin (configure.ac): Likewise.
15336         * modules/atan (configure.ac): Likewise.
15337         * modules/atan2 (configure.ac): Likewise.
15338         * modules/cbrt (configure.ac): Likewise.
15339         * modules/copysign (configure.ac): Likewise.
15340         * modules/cos (configure.ac): Likewise.
15341         * modules/cosh (configure.ac): Likewise.
15342         * modules/erf (configure.ac): Likewise.
15343         * modules/erfc (configure.ac): Likewise.
15344         * modules/exp (configure.ac): Likewise.
15345         * modules/fmod (configure.ac): Likewise.
15346         * modules/hypot (configure.ac): Likewise.
15347         * modules/j0 (configure.ac): Likewise.
15348         * modules/j1 (configure.ac): Likewise.
15349         * modules/jn (configure.ac): Likewise.
15350         * modules/lgamma (configure.ac): Likewise.
15351         * modules/log (configure.ac): Likewise.
15352         * modules/log10 (configure.ac): Likewise.
15353         * modules/log1p (configure.ac): Likewise.
15354         * modules/pow (configure.ac): Likewise.
15355         * modules/remainder (configure.ac): Likewise.
15356         * modules/sin (configure.ac): Likewise.
15357         * modules/sinh (configure.ac): Likewise.
15358         * modules/tan (configure.ac): Likewise.
15359         * modules/tanh (configure.ac): Likewise.
15360         * modules/y0 (configure.ac): Likewise.
15361         * modules/y1 (configure.ac): Likewise.
15362         * modules/yn (configure.ac): Likewise.
15363         Suggested by Paolo Bonzini.
15364
15365 2010-01-31  Bruno Haible  <bruno@clisp.org>
15366
15367         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
15368
15369 2010-01-31  Bruno Haible  <bruno@clisp.org>
15370
15371         Work around getdelim() bug on FreeBSD 8.0.
15372         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
15373         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
15374         not work.
15375         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
15376         is 1.
15377         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
15378         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
15379         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
15380         a non-zero size.
15381         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
15382
15383 2010-01-31  Bruno Haible  <bruno@clisp.org>
15384
15385         Work around getline() bug on FreeBSD 8.0.
15386         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
15387         and a non-zero size.
15388         * tests/test-getline.c (main): Likewise.
15389         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
15390         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
15391
15392 2010-01-28  Eric Blake  <ebb9@byu.net>
15393
15394         regex: fix build failure
15395         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
15396         platforms.
15397
15398 2010-01-28  Jim Meyering  <meyering@redhat.com>
15399
15400         regex: do not ignore memory allocation failure
15401         * lib/regex_internal.c (create_cd_newstate): Detect
15402         re_node_set_init_copy failure.   Extracted from glibc commit
15403         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
15404
15405         regex: sync more white-space changes from libc
15406         * lib/regex_internal.c: White-space only changes.
15407         * lib/regexec.c: Likewise.
15408
15409         regex: add many uses of __attribute_warn_unused_result__
15410         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
15411         * lib/regexec.c: Likewise.
15412         Extracted from a messy glibc commit.
15413
15414         regcomp.c: spelling and merge-artifact from glibc
15415         * lib/regcomp.c: Merge remainder of glibc's
15416         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
15417
15418         regcomp.c: sync white-space changes from glibc
15419         * lib/regcomp.c: Merge to accommodate white space
15420         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
15421
15422         regcomp.c: do not ignore internal return values
15423         * lib/regcomp.c: Do not ignore internal return values.
15424         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
15425         but without its white-space changes and spelling fixes.
15426
15427         regex_internal.h: define __attribute_warn_unused_result__
15428         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
15429
15430         maint: add a syntax-check rule to check for vulnerable Makefile.in
15431         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
15432
15433 2010-01-27  Jim Meyering  <meyering@redhat.com>
15434
15435         ncftpput-ftp: clean up spaces
15436         * build-aux/ncftpput-ftp: Make Copyright line consistent.
15437         Remove trailing blanks.
15438
15439 2010-01-27  Simon Josefsson  <simon@josefsson.org>
15440
15441         * build-aux/git-version-gen: Fix copyright statement.
15442         * build-aux/gnupload: Likewise.
15443         * tests/test-arcfour.c: Likewise.
15444         * tests/test-arctwo.c: Likewise.
15445         * tests/test-count-one-bits.c: Likewise.
15446         * tests/test-crc.c: Likewise.
15447         * tests/test-des.c: Likewise.
15448         * tests/test-gc-arcfour.c: Likewise.
15449         * tests/test-gc-arctwo.c: Likewise.
15450         * tests/test-gc-des.c: Likewise.
15451         * tests/test-gc-hmac-md5.c: Likewise.
15452         * tests/test-gc-hmac-sha1.c: Likewise.
15453         * tests/test-gc-md2.c: Likewise.
15454         * tests/test-gc-md4.c: Likewise.
15455         * tests/test-gc-md5.c: Likewise.
15456         * tests/test-gc-pbkdf2-sha1.c: Likewise.
15457         * tests/test-gc-rijndael.c: Likewise.
15458         * tests/test-gc-sha1.c: Likewise.
15459         * tests/test-gc.c: Likewise.
15460         * tests/test-gethostname.c: Likewise.
15461         * tests/test-gettimeofday.c: Likewise.
15462         * tests/test-hash.c: Likewise.
15463         * tests/test-hmac-md5.c: Likewise.
15464         * tests/test-hmac-sha1.c: Likewise.
15465         * tests/test-md2.c: Likewise.
15466         * tests/test-md4.c: Likewise.
15467         * tests/test-md5.c: Likewise.
15468         * tests/test-memchr.c: Likewise.
15469         * tests/test-memchr2.c: Likewise.
15470         * tests/test-memcmp.c: Likewise.
15471         * tests/test-memmem.c: Likewise.
15472         * tests/test-memrchr.c: Likewise.
15473         * tests/test-rawmemchr.c: Likewise.
15474         * tests/test-read-file.c: Likewise.
15475         * tests/test-rijndael.c: Likewise.
15476         * tests/test-sockets.c: Likewise.
15477         * tests/test-strchrnul.c: Likewise.
15478         * tests/test-strstr.c: Likewise.
15479         * tests/test-strtod.c: Likewise.
15480         * build-aux/ncftpput-ftp: Likewise.
15481
15482 2010-01-26  Eric Blake  <ebb9@byu.net>
15483
15484         ignore-value: update recommended header name
15485         * modules/ignore-value (Include): Only use <> for headers that
15486         exist in glibc.
15487
15488 2010-01-26  Jim Meyering  <meyering@redhat.com>
15489
15490         test-userspec.c: avoid compiler warnings
15491         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
15492         and "initialization discards qualifiers..." warnings.
15493         Put the first "uid" in its own scope, and make char* members "const".
15494
15495 2010-01-25  Bruno Haible  <bruno@clisp.org>
15496
15497         gnulib-tool: Make warning diagnostics consistent.
15498         * gnulib-tool (func_warning): New function.
15499         Use it everywhere where gnulib-tool produces output to stderr and it is
15500         not a fatal error.
15501
15502 2010-01-25  Bruno Haible  <bruno@clisp.org>
15503
15504         Fix test dependencies.
15505         * modules/xstrtol-tests (Depends-on): Add inttypes.
15506         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
15507
15508 2010-01-25 Pádraig Brady <P@draigBrady.com>
15509
15510         syntax-check: detect incorrect boolean macro values in config.h
15511         * modules/maintainer-makefile (configure.ac): Parameterize the location
15512         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
15513         The logic is from Eric Blake and the location indicated by Jim Meyering.
15514         Note the more natural CONFIG_HEADER name is prohibited by automake
15515         for backwards compatibility reasons.
15516         * top/maint.mk (sc_Wundef_boolean): New rule.
15517
15518 2010-01-25  Jim Meyering  <meyering@redhat.com>
15519
15520         bootstrap: detect MacOS 10.6's shasum, too
15521         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
15522         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
15523
15524 2010-01-23  Jim Meyering  <meyering@redhat.com>
15525
15526         xstrtoll: new module
15527         * modules/xstrtoll: New file.
15528         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
15529         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
15530         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
15531         ./configure fails if you use this module and lack "long long".
15532         * modules/xstrtoll-tests: New module.
15533         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
15534         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
15535         new init.sh-based test framework.
15536
15537 2010-01-24  Bruno Haible  <bruno@clisp.org>
15538
15539         Tests for module 'yn'.
15540         * modules/yn-tests: New file.
15541         * tests/test-yn.c: New file.
15542
15543         Tests for module 'y1'.
15544         * modules/y1-tests: New file.
15545         * tests/test-y1.c: New file.
15546
15547         Tests for module 'y0'.
15548         * modules/y0-tests: New file.
15549         * tests/test-y0.c: New file.
15550
15551         Tests for module 'tanh'.
15552         * modules/tanh-tests: New file.
15553         * tests/test-tanh.c: New file.
15554
15555         Tests for module 'tan'.
15556         * modules/tan-tests: New file.
15557         * tests/test-tan.c: New file.
15558
15559         Tests for module 'sqrt'.
15560         * modules/sqrt-tests: New file.
15561         * tests/test-sqrt.c: New file.
15562
15563         Tests for module 'sinh'.
15564         * modules/sinh-tests: New file.
15565         * tests/test-sinh.c: New file.
15566
15567         Tests for module 'sin'.
15568         * modules/sin-tests: New file.
15569         * tests/test-sin.c: New file.
15570
15571         Tests for module 'rint'.
15572         * modules/rint-tests: New file.
15573         * tests/test-rint.c: New file.
15574
15575         Tests for module 'remainder'.
15576         * modules/remainder-tests: New file.
15577         * tests/test-remainder.c: New file.
15578
15579         Tests for module 'pow'.
15580         * modules/pow-tests: New file.
15581         * tests/test-pow.c: New file.
15582
15583         Tests for module 'nextafter'.
15584         * modules/nextafter-tests: New file.
15585         * tests/test-nextafter.c: New file.
15586
15587         Tests for module 'modf'.
15588         * modules/modf-tests: New file.
15589         * tests/test-modf.c: New file.
15590
15591         Tests for module 'logb'.
15592         * modules/logb-tests: New file.
15593         * tests/test-logb.c: New file.
15594
15595         Tests for module 'log1p'.
15596         * modules/log1p-tests: New file.
15597         * tests/test-log1p.c: New file.
15598
15599         Tests for module 'log10'.
15600         * modules/log10-tests: New file.
15601         * tests/test-log10.c: New file.
15602
15603         Tests for module 'log'.
15604         * modules/log-tests: New file.
15605         * tests/test-log.c: New file.
15606
15607         Tests for module 'lgamma'.
15608         * modules/lgamma-tests: New file.
15609         * tests/test-lgamma.c: New file.
15610
15611         Tests for module 'ldexp'.
15612         * modules/ldexp-tests: New file.
15613         * tests/test-ldexp.c: New file.
15614
15615         Tests for module 'jn'.
15616         * modules/jn-tests: New file.
15617         * tests/test-jn.c: New file.
15618
15619         Tests for module 'j1'.
15620         * modules/j1-tests: New file.
15621         * tests/test-j1.c: New file.
15622
15623         Tests for module 'j0'.
15624         * modules/j0-tests: New file.
15625         * tests/test-j0.c: New file.
15626
15627         Tests for module 'hypot'.
15628         * modules/hypot-tests: New file.
15629         * tests/test-hypot.c: New file.
15630
15631         Tests for module 'fmod'.
15632         * modules/fmod-tests: New file.
15633         * tests/test-fmod.c: New file.
15634
15635         Tests for module 'fabs'.
15636         * modules/fabs-tests: New file.
15637         * tests/test-fabs.c: New file.
15638
15639         Tests for module 'exp'.
15640         * modules/exp-tests: New file.
15641         * tests/test-exp.c: New file.
15642
15643         Tests for module 'erfc'.
15644         * modules/erfc-tests: New file.
15645         * tests/test-erfc.c: New file.
15646
15647         Tests for module 'erf'.
15648         * modules/erf-tests: New file.
15649         * tests/test-erf.c: New file.
15650
15651         Tests for module 'cosh'.
15652         * modules/cosh-tests: New file.
15653         * tests/test-cosh.c: New file.
15654
15655         Tests for module 'cos'.
15656         * modules/cos-tests: New file.
15657         * tests/test-cos.c: New file.
15658
15659         Tests for module 'copysign'.
15660         * modules/copysign-tests: New file.
15661         * tests/test-copysign.c: New file.
15662
15663         Tests for module 'cbrt'.
15664         * modules/cbrt-tests: New file.
15665         * tests/test-cbrt.c: New file.
15666
15667         Tests for module 'atan2'.
15668         * modules/atan2-tests: New file.
15669         * tests/test-atan2.c: New file.
15670
15671         Tests for module 'atan'.
15672         * modules/atan-tests: New file.
15673         * tests/test-atan.c: New file.
15674
15675         Tests for module 'asin'.
15676         * modules/asin-tests: New file.
15677         * tests/test-asin.c: New file.
15678
15679         Tests for module 'acos'.
15680         * modules/acos-tests: New file.
15681         * tests/test-acos.c: New file.
15682
15683 2010-01-24  Bruno Haible  <bruno@clisp.org>
15684
15685         Fix tests for common <math.h> functions.
15686         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
15687         code snippet that references the function pointer, rather than merely
15688         calling the function. Substitute the FUNC_LIBM variable.
15689         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
15690         * modules/acos (configure.ac): Likewise.
15691         * modules/asin (configure.ac): Likewise.
15692         * modules/atan (configure.ac): Likewise.
15693         * modules/atan2 (configure.ac): Likewise.
15694         * modules/cbrt (configure.ac): Likewise.
15695         * modules/copysign (configure.ac): Likewise.
15696         * modules/cos (configure.ac): Likewise.
15697         * modules/cosh (configure.ac): Likewise.
15698         * modules/erf (configure.ac): Likewise.
15699         * modules/erfc (configure.ac): Likewise.
15700         * modules/exp (configure.ac): Likewise.
15701         * modules/fabs (configure.ac): Likewise.
15702         * modules/fmod (configure.ac): Likewise.
15703         * modules/hypot (configure.ac): Likewise.
15704         * modules/j0 (configure.ac): Likewise.
15705         * modules/j1 (configure.ac): Likewise.
15706         * modules/jn (configure.ac): Likewise.
15707         * modules/ldexp (configure.ac): Likewise.
15708         * modules/lgamma (configure.ac): Likewise.
15709         * modules/log (configure.ac): Likewise.
15710         * modules/log10 (configure.ac): Likewise.
15711         * modules/log1p (configure.ac): Likewise.
15712         * modules/logb (configure.ac): Likewise.
15713         * modules/modf (configure.ac): Likewise.
15714         * modules/nextafter (configure.ac): Likewise.
15715         * modules/pow (configure.ac): Likewise.
15716         * modules/remainder (configure.ac): Likewise.
15717         * modules/rint (configure.ac): Likewise.
15718         * modules/sin (configure.ac): Likewise.
15719         * modules/sinh (configure.ac): Likewise.
15720         * modules/tan (configure.ac): Likewise.
15721         * modules/tanh (configure.ac): Likewise.
15722         * modules/y0 (configure.ac): Likewise.
15723         * modules/y1 (configure.ac): Likewise.
15724         * modules/yn (configure.ac): Likewise.
15725
15726 2010-01-24  Bruno Haible  <bruno@clisp.org>
15727
15728         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
15729         * tests/test-acosl.c (x): New variable.
15730         (main): Store argument in x and fetch it from x.
15731         * tests/test-asinl.c (x): New variable.
15732         (main): Store argument in x and fetch it from x.
15733         * tests/test-atanl.c (x): New variable.
15734         (main): Store argument in x and fetch it from x.
15735         * tests/test-cosl.c (x): New variable.
15736         (main): Store argument in x and fetch it from x.
15737         * tests/test-expl.c (x): New variable.
15738         (main): Store argument in x and fetch it from x.
15739         * tests/test-logl.c (x): New variable.
15740         (main): Store argument in x and fetch it from x.
15741         * tests/test-sinl.c (x): New variable.
15742         (main): Store argument in x and fetch it from x.
15743         * tests/test-sqrtl.c (x): New variable.
15744         (main): Store argument in x and fetch it from x.
15745         * tests/test-tanl.c (x): New variable.
15746         (main): Store argument in x and fetch it from x.
15747
15748 2010-01-24  Bruno Haible  <bruno@clisp.org>
15749
15750         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
15751         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
15752         assignments to the initial TESTS_ENVIRONMENT.
15753         * doc/gnulib.texi (Unit test modules): Document it.
15754         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
15755         TESTS_ENVIRONMENT.
15756         * modules/btowc-tests (Makefile.am): Likewise.
15757         * modules/c-stack-tests (Makefile.am): Likewise.
15758         * modules/c-strcase-tests (Makefile.am): Likewise.
15759         * modules/copy-file-tests (Makefile.am): Likewise.
15760         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
15761         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
15762         * modules/mbrtowc-tests (Makefile.am): Likewise.
15763         * modules/mbscasecmp-tests (Makefile.am): Likewise.
15764         * modules/mbscasestr-tests (Makefile.am): Likewise.
15765         * modules/mbschr-tests (Makefile.am): Likewise.
15766         * modules/mbscspn-tests (Makefile.am): Likewise.
15767         * modules/mbsinit-tests (Makefile.am): Likewise.
15768         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
15769         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
15770         * modules/mbspbrk-tests (Makefile.am): Likewise.
15771         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
15772         * modules/mbsrchr-tests (Makefile.am): Likewise.
15773         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
15774         * modules/mbsspn-tests (Makefile.am): Likewise.
15775         * modules/mbsstr-tests (Makefile.am): Likewise.
15776         * modules/nl_langinfo-tests (Makefile.am): Likewise.
15777         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
15778         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
15779         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
15780         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
15781         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
15782         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
15783         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
15784         * modules/wcrtomb-tests (Makefile.am): Likewise.
15785         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
15786         * modules/wcsrtombs-tests (Makefile.am): Likewise.
15787         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
15788         assignments from TESTS_ENVIRONMENT.
15789         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
15790         augmentation.
15791         * modules/argp-version-etc-tests (Makefile.am): Likewise.
15792         * modules/atexit-tests (Makefile.am): Likewise.
15793         * modules/binary-io-tests (Makefile.am): Likewise.
15794         * modules/closein-tests (Makefile.am): Likewise.
15795         * modules/dprintf-posix-tests (Makefile.am): Likewise.
15796         * modules/exclude-tests (Makefile.am): Likewise.
15797         * modules/fflush-tests (Makefile.am): Likewise.
15798         * modules/fpending-tests (Makefile.am): Likewise.
15799         * modules/fprintf-posix-tests (Makefile.am): Likewise.
15800         * modules/freadahead-tests (Makefile.am): Likewise.
15801         * modules/freadptr-tests (Makefile.am): Likewise.
15802         * modules/freadseek-tests (Makefile.am): Likewise.
15803         * modules/fseek-tests (Makefile.am): Likewise.
15804         * modules/fseeko-tests (Makefile.am): Likewise.
15805         * modules/ftell-tests (Makefile.am): Likewise.
15806         * modules/ftello-tests (Makefile.am): Likewise.
15807         * modules/idpriv-drop-tests (Makefile.am): Likewise.
15808         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
15809         * modules/lseek-tests (Makefile.am): Likewise.
15810         * modules/parse-duration-tests (Makefile.am): Likewise.
15811         * modules/perror-tests (Makefile.am): Likewise.
15812         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
15813         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
15814         * modules/pipe-tests (Makefile.am): Likewise.
15815         * modules/pread-tests (Makefile.am): Likewise.
15816         * modules/printf-posix-tests (Makefile.am): Likewise.
15817         * modules/select-tests (Makefile.am): Likewise.
15818         * modules/sigpipe-tests (Makefile.am): Likewise.
15819         * modules/tsearch-tests (Makefile.am): Likewise.
15820         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
15821         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
15822         * modules/uniname/uniname-tests (Makefile.am): Likewise.
15823         * modules/uniwidth/width-tests (Makefile.am): Likewise.
15824         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
15825         * modules/version-etc-tests (Makefile.am): Likewise.
15826         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
15827         * modules/vprintf-posix-tests (Makefile.am): Likewise.
15828         * modules/xalloc-die-tests (Makefile.am): Likewise.
15829         * modules/xprintf-posix-tests (Makefile.am): Likewise.
15830         * modules/xstrtoimax-tests (Makefile.am): Likewise.
15831         * modules/xstrtol-tests (Makefile.am): Likewise.
15832         * modules/xstrtoumax-tests (Makefile.am): Likewise.
15833         * modules/yesno-tests (Makefile.am): Likewise.
15834         Suggested by Jim Meyering.
15835
15836 2010-01-24  Bruno Haible  <bruno@clisp.org>
15837
15838         More documentation.
15839         * doc/gnulib.texi (Writing modules): New chapter.
15840         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
15841         the new chapter.
15842
15843 2010-01-24  Jim Meyering  <meyering@redhat.com>
15844
15845         maint.mk: do not prepend "./" after filtering
15846         * top/maint.mk (_prepend_srcdir_prefix): New variable
15847         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
15848         "./" when $(srcdir) is ".".
15849
15850         define STREQ(a,b) consistently, removing useless parentheses
15851         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
15852         since the only risk is that "a" or "b" contains an unparenthesized
15853         comma, but if either did that, STREQ would have 3 or more arguments.
15854         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
15855         * lib/fts.c (STREQ): Remove unnecessary parentheses.
15856         * lib/hash-triple.c (STREQ): Likewise.
15857         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
15858         * lib/getugroups.c (STREQ): Likewise.
15859
15860 2010-01-23  Jim Meyering  <meyering@redhat.com>
15861
15862         maint.mk: fix syntax-check in a non-srcdir build directory
15863         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
15864         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
15865
15866 2010-01-22  Jim Meyering  <meyering@redhat.com>
15867
15868         userspec: add unit tests
15869         * tests/test-userspec.c: New file.
15870         * modules/userspec-tests: Likewise.
15871
15872 2010-01-21  Jim Meyering  <meyering@redhat.com>
15873
15874         maint.mk: handle source file names containing "." robustly
15875         * top/maint.mk (_dot_escaped_srcdir): Define.
15876         (VC_LIST): Use it in LHS of sed substitution.
15877
15878 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
15879
15880         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
15881         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
15882         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
15883         from a non-srcdir build.
15884
15885 2010-01-20  Eric Blake  <ebb9@byu.net>
15886
15887         warn-on-use: use instead of link-warning
15888         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
15889         * modules/unistd (Depends-on, Makefile.am): Likewise.
15890         * modules/arpa_inet (Depends-on): Replace link-warning with
15891         warn-on-use.
15892         (Makefile.am): Update rules accordingly.
15893         * modules/ctype (Depends-on, Makefile.am): Likewise.
15894         * modules/dirent (Depends-on, Makefile.am): Likewise.
15895         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
15896         * modules/inttypes (Depends-on, Makefile.am): Likewise.
15897         * modules/langinfo (Depends-on, Makefile.am): Likewise.
15898         * modules/locale (Depends-on, Makefile.am): Likewise.
15899         * modules/math (Depends-on, Makefile.am): Likewise.
15900         * modules/search (Depends-on, Makefile.am): Likewise.
15901         * modules/signal (Depends-on, Makefile.am): Likewise.
15902         * modules/spawn (Depends-on, Makefile.am): Likewise.
15903         * modules/stdlib (Depends-on, Makefile.am): Likewise.
15904         * modules/string (Depends-on, Makefile.am): Likewise.
15905         * modules/strings (Depends-on, Makefile.am): Likewise.
15906         * modules/sys_file (Depends-on, Makefile.am): Likewise.
15907         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
15908         * modules/sys_select (Depends-on, Makefile.am): Likewise.
15909         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
15910         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
15911         * modules/sys_times (Depends-on, Makefile.am): Likewise.
15912         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
15913         * modules/wchar (Depends-on, Makefile.am): Likewise.
15914         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
15915         should be poisoned.
15916         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
15917         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
15918         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
15919         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
15920         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
15921         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
15922         * m4/math_h.m4 (gl_MATH_H): Likewise.
15923         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15924         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
15925         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15926         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
15927         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
15928         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
15929         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
15930         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
15931         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
15932         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15933         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
15934         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
15935         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15936         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15937         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15938         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
15939         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
15940         GL_LINK_WARNING.
15941         * lib/ctype.in.h: Likewise.
15942         * lib/dirent.in.h: Likewise.
15943         * lib/fcntl.in.h: Likewise.
15944         * lib/inttypes.in.h: Likewise.
15945         * lib/langinfo.in.h: Likewise.
15946         * lib/locale.in.h: Likewise.
15947         * lib/math.in.h: Likewise.
15948         * lib/search.in.h: Likewise.
15949         * lib/signal.in.h: Likewise.
15950         * lib/spawn.in.h: Likewise.
15951         * lib/stdio.in.h: Likewise.
15952         * lib/stdlib.in.h: Likewise.
15953         * lib/string.in.h: Likewise.
15954         * lib/strings.in.h: Likewise.
15955         * lib/sys_file.in.h: Likewise.
15956         * lib/sys_ioctl.in.h: Likewise.
15957         * lib/sys_select.in.h: Likewise.
15958         * lib/sys_socket.in.h: Likewise.
15959         * lib/sys_stat.in.h: Likewise.
15960         * lib/sys_times.in.h: Likewise.
15961         * lib/sys_utsname.in.h: Likewise.
15962         * lib/unistd.in.h: Likewise.
15963         * lib/wchar.in.h: Likewise.
15964
15965 2010-01-20  Bruno Haible  <bruno@clisp.org>
15966
15967         Avoid duplicate -lm.
15968         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
15969         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
15970         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
15971         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
15972         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
15973         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
15974         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
15975         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
15976         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
15977         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
15978         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
15979         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
15980         Reported by Paolo Bonzini.
15981
15982 2010-01-19  Bruno Haible  <bruno@clisp.org>
15983
15984         langinfo, nl_langinfo: Relicense under LGPLv2+.
15985         * modules/langinfo (License): Change to LGPLv2+.
15986         * modules/nl_langinfo (License): Likewise.
15987         Patch by David Lutterkort <lutter@redhat.com>.
15988
15989 2010-01-19  Bruno Haible  <bruno@clisp.org>
15990
15991         Avoid compilation error with cc on OSF/1 5.1.
15992         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
15993         statement, not before.
15994         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15995
15996 2010-01-18  Bruno Haible  <bruno@clisp.org>
15997
15998         Avoid a link error due to the __printf__ symbol.
15999         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
16000         and 2.6.x.
16001         (__format__, __printf__): Remove definitions.
16002         * lib/argp-fmtstream.h: Likewise.
16003         * lib/argp.h: Likewise.
16004         * lib/error.h: Likewise.
16005         * lib/vasnprintf.h: Likewise.
16006         * lib/xprintf.h: Likewise.
16007         * lib/xvasprintf.h: Likewise.
16008         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16009
16010 2010-01-18  Bruno Haible  <bruno@clisp.org>
16011
16012         Tests for module 'tanl'.
16013         * modules/tanl-tests: New file.
16014         * tests/test-tanl.c: New file.
16015
16016         Tests for module 'sqrtl'.
16017         * modules/sqrtl-tests: New file.
16018         * tests/test-sqrtl.c: New file.
16019
16020         Tests for module 'sinl'.
16021         * modules/sinl-tests: New file.
16022         * tests/test-sinl.c: New file.
16023
16024         Tests for module 'logl'.
16025         * modules/logl-tests: New file.
16026         * tests/test-logl.c: New file.
16027
16028         Tests for module 'expl'.
16029         * modules/expl-tests: New file.
16030         * tests/test-expl.c: New file.
16031
16032         Tests for module 'cosl'.
16033         * modules/cosl-tests: New file.
16034         * tests/test-cosl.c: New file.
16035
16036         Tests for module 'atanl'.
16037         * modules/atanl-tests: New file.
16038         * tests/test-atanl.c: New file.
16039
16040         Tests for module 'asinl'.
16041         * modules/asinl-tests: New file.
16042         * tests/test-asinl.c: New file.
16043
16044         Tests for module 'acosl'.
16045         * modules/acosl-tests: New file.
16046         * tests/test-acosl.c: New file.
16047
16048         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
16049         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
16050         tanl): Use the standard gnulib idiom.
16051         * lib/cosl.c: Don't include trigl.c and sincosl.c.
16052         * lib/sinl.c: Likewise.
16053         * lib/tanl.c: Don't include trigl.c.
16054         (kernel_tanl): Make static.
16055         * lib/sincosl.c: Include trigl.h first.
16056         * lib/trigl.c: Likewise.
16057         * m4/acosl.m4: New file.
16058         * m4/asinl.m4: New file.
16059         * m4/atanl.m4: New file.
16060         * m4/cosl.m4: New file.
16061         * m4/expl.m4: New file.
16062         * m4/logl.m4: New file.
16063         * m4/sinl.m4: New file.
16064         * m4/sqrtl.m4: New file.
16065         * m4/tanl.m4: New file.
16066         * m4/mathl.m4: Remove file.
16067         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
16068         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
16069         Don't initialize GNULIB_MATHL.
16070         * modules/acosl: New file.
16071         * modules/asinl: New file.
16072         * modules/atanl: New file.
16073         * modules/cosl: New file.
16074         * modules/expl: New file.
16075         * modules/logl: New file.
16076         * modules/sinl: New file.
16077         * modules/sqrtl: New file.
16078         * modules/tanl: New file.
16079         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
16080         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
16081         substitute GNULIB_MATHL.
16082         * modules/mathl: Rewritten.
16083         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
16084         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
16085         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
16086         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
16087         * doc/posix-functions/expl.texi: Mention the 'expl' module.
16088         * doc/posix-functions/logl.texi: Mention the 'logl' module.
16089         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
16090         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
16091         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
16092
16093 2010-01-18  Bruno Haible  <bruno@clisp.org>
16094
16095         sqrt: Make gl_FUNC_SQRT requirable.
16096         * m4/sqrt.m4: New file.
16097         * modules/sqrt (Files): Add it.
16098         (configure.ac): Invoke gl_FUNC_SQRT.
16099
16100 2010-01-18  Bruno Haible  <bruno@clisp.org>
16101
16102         New modules for common <math.h> functions.
16103         * m4/mathfunc.m4: New file.
16104         * modules/acos: New file.
16105         * modules/asin: New file.
16106         * modules/atan: New file.
16107         * modules/atan2: New file.
16108         * modules/cbrt: New file.
16109         * modules/copysign: New file.
16110         * modules/cos: New file.
16111         * modules/cosh: New file.
16112         * modules/erf: New file.
16113         * modules/erfc: New file.
16114         * modules/exp: New file.
16115         * modules/fabs: New file.
16116         * modules/fmod: New file.
16117         * modules/hypot: New file.
16118         * modules/j0: New file.
16119         * modules/j1: New file.
16120         * modules/jn: New file.
16121         * modules/ldexp: New file.
16122         * modules/lgamma: New file.
16123         * modules/log: New file.
16124         * modules/log10: New file.
16125         * modules/log1p: New file.
16126         * modules/logb: New file.
16127         * modules/modf: New file.
16128         * modules/nextafter: New file.
16129         * modules/pow: New file.
16130         * modules/remainder: New file.
16131         * modules/rint: New file.
16132         * modules/sin: New file.
16133         * modules/sinh: New file.
16134         * modules/sqrt: New file.
16135         * modules/tan: New file.
16136         * modules/tanh: New file.
16137         * modules/y0: New file.
16138         * modules/y1: New file.
16139         * modules/yn: New file.
16140         * doc/posix-functions/acos.texi: Mention the 'acos' module.
16141         * doc/posix-functions/asin.texi: Mention the 'asin' module.
16142         * doc/posix-functions/atan.texi: Mention the 'atan' module.
16143         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
16144         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
16145         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
16146         * doc/posix-functions/cos.texi: Mention the 'cos' module.
16147         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
16148         * doc/posix-functions/erf.texi: Mention the 'erf' module.
16149         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
16150         * doc/posix-functions/exp.texi: Mention the 'exp' module.
16151         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
16152         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
16153         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
16154         * doc/posix-functions/j0.texi: Mention the 'j0' module.
16155         * doc/posix-functions/j1.texi: Mention the 'j1' module.
16156         * doc/posix-functions/jn.texi: Mention the 'jn' module.
16157         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
16158         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
16159         * doc/posix-functions/log.texi: Mention the 'log' module.
16160         * doc/posix-functions/log10.texi: Mention the 'log10' module.
16161         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
16162         * doc/posix-functions/logb.texi: Mention the 'logb' module.
16163         * doc/posix-functions/modf.texi: Mention the 'modf' module.
16164         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
16165         * doc/posix-functions/pow.texi: Mention the 'pow' module.
16166         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
16167         * doc/posix-functions/rint.texi: Mention the 'rint' module.
16168         * doc/posix-functions/sin.texi: Mention the 'sin' module.
16169         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
16170         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
16171         * doc/posix-functions/tan.texi: Mention the 'tan' module.
16172         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
16173         * doc/posix-functions/y0.texi: Mention the 'y0' module.
16174         * doc/posix-functions/y1.texi: Mention the 'y1' module.
16175         * doc/posix-functions/yn.texi: Mention the 'yn' module.
16176
16177 2010-01-18  Jim Meyering  <meyering@redhat.com>
16178
16179         ignore-value: relax license to LGPLv2+
16180         * modules/ignore-value (License): Relax to LGPLv2+.
16181
16182         getdate: don't leak when TZ contains two or more '"'s
16183         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
16184         double quote in TZ after the first one.
16185
16186         readtokens: do not leak internal token_lengths buffer
16187         * lib/readtokens.c (readtokens): Free the local, lengths,
16188         when the supplied "token_lengths" parameter is NULL.
16189
16190 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16191
16192         Fix a couple of missing LIBTHREAD link failures on AIX.
16193         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
16194         $(LIBTHREAD).
16195         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
16196
16197         Link test-poll against INET_PTON_LIB.
16198         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
16199         for inet_pton on Solaris 10.
16200
16201 2010-01-17  Bruno Haible  <bruno@clisp.org>
16202
16203         unistdio/*-sprintf: Fix typo in module description.
16204         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
16205         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
16206         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
16207         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
16208         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
16209         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
16210         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
16211         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16212
16213 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16214
16215         gnulib-tool: fix filelist for AIX, HP-UX ksh.
16216         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
16217         variables in shell case patterns, for AIX and HP-UX ksh.
16218
16219         Split large sed scripts, for HP-UX sed.
16220         * modules/stdio: Split sed scripts around 50 sed commands,
16221         to avoid HP-UX limit of 99 commands, in the near future.
16222         * modules/string: Likewise.
16223         * modules/unistd: Likewise.
16224
16225         gnulib-tool: avoid writing in the current directory.
16226         * gnulib-tool (func_emit_lib_Makefile_am)
16227         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
16228         not in the current directory, so concurrent gnulib-tool
16229         instances do not interfere.
16230
16231 2010-01-16  Jim Meyering  <meyering@redhat.com>
16232
16233         doc: update users.txt
16234         * users.txt: Add grep.
16235         (diffutils, gzip): Update URLs.
16236
16237 2010-01-12  Bruno Haible  <bruno@clisp.org>
16238
16239         posix_spawn: Avoid test failure on Cygwin.
16240         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
16241         characters.
16242         Reported by Simon Josefsson.
16243
16244 2010-01-12  Bruno Haible  <bruno@clisp.org>
16245
16246         * tests/test-cond.c (main): When skipping the test, show the reason.
16247
16248 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16249
16250         * lib/striconv.c (str_cd_iconv): Avoid if before free.
16251
16252 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16253
16254         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
16255         VC_LIST_ALWAYS_EXCLUDE_REGEX.
16256
16257 2010-01-12  Eric Blake  <ebb9@byu.net>
16258
16259         build: guarantee AS_VAR_IF
16260         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
16261         (gl_AS_VAR_IF): Move...
16262         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
16263         Reported by Simon Josefsson.
16264
16265 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16266
16267         * lib/stdio.in.h: Fix typo.
16268
16269 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16270
16271         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
16272         libgpg-error.
16273
16274 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16275
16276         * tests/test-xalloc-die.sh: Use $EXEEXT.
16277
16278 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16279             Bruno Haible  <bruno@clisp.org>
16280
16281         getlogin, getlogin_r: Avoid test failure.
16282         * tests/test-getlogin.c: Include <stdio.h>.
16283         (main): Skip the test when the function fails because stdin is not a
16284         tty.
16285         * tests/test-getlogin_r.c: Include <stdio.h>.
16286         (main): Skip the test when the function fails because stdin is not a
16287         tty.
16288
16289 2010-01-11  Eric Blake  <ebb9@byu.net>
16290
16291         tests: avoid more large file warnings
16292         * tests/test-fflush.c: Avoid warning about ftell use.
16293         * tests/test-fseek.c: Avoid warning about fseek use.
16294
16295 2010-01-10  Bruno Haible  <bruno@clisp.org>
16296
16297         nproc: Work better on Linux when /proc and /sys are not mounted.
16298         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
16299         as lower bound when, on glibc/Linux systems,
16300         sysconf (_SC_NPROCESSORS_CONF) returns 1.
16301         Suggested by Pádraig Brady <P@draigbrady.com>.
16302         Reported by Dmitry V. Levin <ldv@altlinux.org>.
16303
16304         nproc: Refactor.
16305         * lib/nproc.c (num_processors_via_affinity_mask): New function,
16306         extracted from num_processors.
16307         (num_processors): Call it.
16308
16309 2010-01-11  Jim Meyering  <meyering@redhat.com>
16310
16311         utimecmp: avoid new warning from upcoming gcc-4.5.0
16312         * lib/utimecmp.c (BILLION): Define using #define rather than an
16313         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
16314
16315 2010-01-11  Eric Blake  <ebb9@byu.net>
16316
16317         math: add portability warnings for classification macros
16318         * modules/math (Depends-on): Add warn-on-use.
16319         (Makefile.am): Provide new substitutions.
16320         * m4/math_h.m4 (gl_MATH_H): Require inline.
16321         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
16322         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
16323         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
16324         implement warnings.
16325
16326         unistd: warn on use of environ without module
16327         * modules/unistd (Depends-on): Add warn-on-use.
16328         (Makefile.am): Provide new substitutions.
16329         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
16330         * lib/unistd.in.h (environ): Wrap with a warning helper function.
16331
16332         stdio: warn on suspicious uses
16333         * modules/stdio (Depends-on): Add warn-on-use.
16334         (Makefile.am): Provide new substitutions.
16335         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
16336         fseeko.
16337         * lib/stdio.in.h (gets): Always warn on use.
16338         (fseek, ftell): Adjust when warnings are issued, and honor
16339         _GL_NO_LARGE_FILES as a way to silence the warning.
16340         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
16341         any warning about large file offsets.
16342         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
16343         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
16344         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
16345         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
16346         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
16347         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
16348         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
16349         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
16350
16351         warn-on-use: new module
16352         * modules/warn-on-use: New file.
16353         * build-aux/warn-on-use.h: Likewise.
16354         * m4/warn-on-use.m4: Likewise.
16355         * MODULES.html.sh (Support for building): Mention it.
16356
16357 2010-01-10  Bruno Haible  <bruno@clisp.org>
16358
16359         Tests for module 'unistr/u32-strdup'.
16360         * modules/unistr/u32-strdup-tests: New file.
16361         * tests/unistr/test-u32-strdup.c: New file.
16362
16363         Tests for module 'unistr/u16-strdup'.
16364         * modules/unistr/u16-strdup-tests: New file.
16365         * tests/unistr/test-u16-strdup.c: New file.
16366
16367         Tests for module 'unistr/u8-strdup'.
16368         * modules/unistr/u8-strdup-tests: New file.
16369         * tests/unistr/test-u8-strdup.c: New file.
16370         * tests/unistr/test-strdup.h: New file.
16371
16372         Tests for module 'unistr/u32-strncmp'.
16373         * modules/unistr/u32-strncmp-tests: New file.
16374         * tests/unistr/test-u32-strncmp.c: New file.
16375
16376         Tests for module 'unistr/u16-strncmp'.
16377         * modules/unistr/u16-strncmp-tests: New file.
16378         * tests/unistr/test-u16-strncmp.c: New file.
16379
16380         Tests for module 'unistr/u8-strncmp'.
16381         * modules/unistr/u8-strncmp-tests: New file.
16382         * tests/unistr/test-u8-strncmp.c: New file.
16383         * tests/unistr/test-strncmp.h: New file.
16384
16385         Tests for module 'unistr/u32-strcoll'.
16386         * modules/unistr/u32-strcoll-tests: New file.
16387         * tests/unistr/test-u32-strcoll.c: New file.
16388
16389         Tests for module 'unistr/u16-strcoll'.
16390         * modules/unistr/u16-strcoll-tests: New file.
16391         * tests/unistr/test-u16-strcoll.c: New file.
16392
16393         Tests for module 'unistr/u8-strcoll'.
16394         * modules/unistr/u8-strcoll-tests: New file.
16395         * tests/unistr/test-u8-strcoll.c: New file.
16396
16397         Tests for module 'unistr/u32-strcmp'.
16398         * modules/unistr/u32-strcmp-tests: New file.
16399         * tests/unistr/test-u32-strcmp.c: New file.
16400         * tests/unistr/test-u32-strcmp.h: New file.
16401
16402         Tests for module 'unistr/u16-strcmp'.
16403         * modules/unistr/u16-strcmp-tests: New file.
16404         * tests/unistr/test-u16-strcmp.c: New file.
16405         * tests/unistr/test-u16-strcmp.h: New file.
16406
16407         Tests for module 'unistr/u8-strcmp'.
16408         * modules/unistr/u8-strcmp-tests: New file.
16409         * tests/unistr/test-u8-strcmp.c: New file.
16410         * tests/unistr/test-u8-strcmp.h: New file.
16411         * tests/unistr/test-strcmp.h: New file.
16412
16413         Tests for module 'unistr/u32-strncat'.
16414         * modules/unistr/u32-strncat-tests: New file.
16415         * tests/unistr/test-u32-strncat.c: New file.
16416
16417         Tests for module 'unistr/u16-strncat'.
16418         * modules/unistr/u16-strncat-tests: New file.
16419         * tests/unistr/test-u16-strncat.c: New file.
16420
16421         Tests for module 'unistr/u8-strncat'.
16422         * modules/unistr/u8-strncat-tests: New file.
16423         * tests/unistr/test-u8-strncat.c: New file.
16424         * tests/unistr/test-strncat.h: New file.
16425
16426         Tests for module 'unistr/u32-strcat'.
16427         * modules/unistr/u32-strcat-tests: New file.
16428         * tests/unistr/test-u32-strcat.c: New file.
16429
16430         Tests for module 'unistr/u16-strcat'.
16431         * modules/unistr/u16-strcat-tests: New file.
16432         * tests/unistr/test-u16-strcat.c: New file.
16433
16434         Tests for module 'unistr/u8-strcat'.
16435         * modules/unistr/u8-strcat-tests: New file.
16436         * tests/unistr/test-u8-strcat.c: New file.
16437         * tests/unistr/test-strcat.h: New file.
16438
16439         Tests for module 'unistr/u32-stpncpy'.
16440         * modules/unistr/u32-stpncpy-tests: New file.
16441         * tests/unistr/test-u32-stpncpy.c: New file.
16442
16443         Tests for module 'unistr/u16-stpncpy'.
16444         * modules/unistr/u16-stpncpy-tests: New file.
16445         * tests/unistr/test-u16-stpncpy.c: New file.
16446
16447         Tests for module 'unistr/u8-stpncpy'.
16448         * modules/unistr/u8-stpncpy-tests: New file.
16449         * tests/unistr/test-u8-stpncpy.c: New file.
16450         * tests/unistr/test-stpncpy.h: New file.
16451
16452         Tests for module 'unistr/u32-strncpy'.
16453         * modules/unistr/u32-strncpy-tests: New file.
16454         * tests/unistr/test-u32-strncpy.c: New file.
16455
16456         Tests for module 'unistr/u16-strncpy'.
16457         * modules/unistr/u16-strncpy-tests: New file.
16458         * tests/unistr/test-u16-strncpy.c: New file.
16459
16460         Tests for module 'unistr/u8-strncpy'.
16461         * modules/unistr/u8-strncpy-tests: New file.
16462         * tests/unistr/test-u8-strncpy.c: New file.
16463         * tests/unistr/test-strncpy.h: New file.
16464
16465         Tests for module 'unistr/u32-stpcpy'.
16466         * modules/unistr/u32-stpcpy-tests: New file.
16467         * tests/unistr/test-u32-stpcpy.c: New file.
16468
16469         Tests for module 'unistr/u16-stpcpy'.
16470         * modules/unistr/u16-stpcpy-tests: New file.
16471         * tests/unistr/test-u16-stpcpy.c: New file.
16472
16473         Tests for module 'unistr/u8-stpcpy'.
16474         * modules/unistr/u8-stpcpy-tests: New file.
16475         * tests/unistr/test-u8-stpcpy.c: New file.
16476         * tests/unistr/test-stpcpy.h: New file.
16477
16478         Tests for module 'unistr/u32-strcpy'.
16479         * modules/unistr/u32-strcpy-tests: New file.
16480         * tests/unistr/test-u32-strcpy.c: New file.
16481
16482         Tests for module 'unistr/u16-strcpy'.
16483         * modules/unistr/u16-strcpy-tests: New file.
16484         * tests/unistr/test-u16-strcpy.c: New file.
16485
16486         Tests for module 'unistr/u8-strcpy'.
16487         * modules/unistr/u8-strcpy-tests: New file.
16488         * tests/unistr/test-u8-strcpy.c: New file.
16489         * tests/unistr/test-strcpy.h: New file.
16490
16491         Tests for module 'unistr/u32-strnlen'.
16492         * modules/unistr/u32-strnlen-tests: New file.
16493         * tests/unistr/test-u32-strnlen.c: New file.
16494
16495         Tests for module 'unistr/u16-strnlen'.
16496         * modules/unistr/u16-strnlen-tests: New file.
16497         * tests/unistr/test-u16-strnlen.c: New file.
16498
16499         Tests for module 'unistr/u8-strnlen'.
16500         * modules/unistr/u8-strnlen-tests: New file.
16501         * tests/unistr/test-u8-strnlen.c: New file.
16502         * tests/unistr/test-strnlen.h: New file.
16503
16504         Tests for module 'unistr/u32-strlen'.
16505         * modules/unistr/u32-strlen-tests: New file.
16506         * tests/unistr/test-u32-strlen.c: New file.
16507
16508         Tests for module 'unistr/u16-strlen'.
16509         * modules/unistr/u16-strlen-tests: New file.
16510         * tests/unistr/test-u16-strlen.c: New file.
16511
16512         Tests for module 'unistr/u8-strlen'.
16513         * modules/unistr/u8-strlen-tests: New file.
16514         * tests/unistr/test-u8-strlen.c: New file.
16515
16516         Tests for module 'unistr/u32-prev'.
16517         * modules/unistr/u32-prev-tests: New file.
16518         * tests/unistr/test-u32-prev.c: New file.
16519
16520         Tests for module 'unistr/u16-prev'.
16521         * modules/unistr/u16-prev-tests: New file.
16522         * tests/unistr/test-u16-prev.c: New file.
16523
16524         Tests for module 'unistr/u8-prev'.
16525         * modules/unistr/u8-prev-tests: New file.
16526         * tests/unistr/test-u8-prev.c: New file.
16527
16528         Tests for module 'unistr/u32-next'.
16529         * modules/unistr/u32-next-tests: New file.
16530         * tests/unistr/test-u32-next.c: New file.
16531
16532         Tests for module 'unistr/u16-next'.
16533         * modules/unistr/u16-next-tests: New file.
16534         * tests/unistr/test-u16-next.c: New file.
16535
16536         Tests for module 'unistr/u8-next'.
16537         * modules/unistr/u8-next-tests: New file.
16538         * tests/unistr/test-u8-next.c: New file.
16539
16540         Tests for module 'unistr/u32-strmbtouc'.
16541         * modules/unistr/u32-strmbtouc-tests: New file.
16542         * tests/unistr/test-u32-strmbtouc.c: New file.
16543
16544         Tests for module 'unistr/u16-strmbtouc'.
16545         * modules/unistr/u16-strmbtouc-tests: New file.
16546         * tests/unistr/test-u16-strmbtouc.c: New file.
16547
16548         Tests for module 'unistr/u8-strmbtouc'.
16549         * modules/unistr/u8-strmbtouc-tests: New file.
16550         * tests/unistr/test-u8-strmbtouc.c: New file.
16551
16552         Tests for module 'unistr/u32-strmblen'.
16553         * modules/unistr/u32-strmblen-tests: New file.
16554         * tests/unistr/test-u32-strmblen.c: New file.
16555
16556         Tests for module 'unistr/u16-strmblen'.
16557         * modules/unistr/u16-strmblen-tests: New file.
16558         * tests/unistr/test-u16-strmblen.c: New file.
16559
16560         Tests for module 'unistr/u8-strmblen'.
16561         * modules/unistr/u8-strmblen-tests: New file.
16562         * tests/unistr/test-u8-strmblen.c: New file.
16563
16564         Tests for module 'unistr/u32-cpy-alloc'.
16565         * modules/unistr/u32-cpy-alloc-tests: New file.
16566         * tests/unistr/test-u32-cpy-alloc.c: New file.
16567
16568         Tests for module 'unistr/u16-cpy-alloc'.
16569         * modules/unistr/u16-cpy-alloc-tests: New file.
16570         * tests/unistr/test-u16-cpy-alloc.c: New file.
16571
16572         Tests for module 'unistr/u8-cpy-alloc'.
16573         * modules/unistr/u8-cpy-alloc-tests: New file.
16574         * tests/unistr/test-u8-cpy-alloc.c: New file.
16575         * tests/unistr/test-cpy-alloc.h: New file.
16576
16577         Tests for module 'unistr/u32-mbsnlen'.
16578         * modules/unistr/u32-mbsnlen-tests: New file.
16579         * tests/unistr/test-u32-mbsnlen.c: New file.
16580
16581         Tests for module 'unistr/u16-mbsnlen'.
16582         * modules/unistr/u16-mbsnlen-tests: New file.
16583         * tests/unistr/test-u16-mbsnlen.c: New file.
16584
16585         Tests for module 'unistr/u8-mbsnlen'.
16586         * modules/unistr/u8-mbsnlen-tests: New file.
16587         * tests/unistr/test-u8-mbsnlen.c: New file.
16588
16589         Tests for module 'unistr/u32-chr'.
16590         * modules/unistr/u32-chr-tests: New file.
16591         * tests/unistr/test-u32-chr.c: New file.
16592
16593         Tests for module 'unistr/u16-chr'.
16594         * modules/unistr/u16-chr-tests: New file.
16595         * tests/unistr/test-u16-chr.c: New file.
16596
16597         Tests for module 'unistr/u8-chr'.
16598         * modules/unistr/u8-chr-tests: New file.
16599         * tests/unistr/test-u8-chr.c: New file.
16600         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
16601
16602         Tests for module 'unistr/u32-cmp2'.
16603         * modules/unistr/u32-cmp2-tests: New file.
16604         * tests/unistr/test-u32-cmp2.c: New file.
16605
16606         Tests for module 'unistr/u16-cmp2'.
16607         * modules/unistr/u16-cmp2-tests: New file.
16608         * tests/unistr/test-u16-cmp2.c: New file.
16609
16610         Tests for module 'unistr/u8-cmp2'.
16611         * modules/unistr/u8-cmp2-tests: New file.
16612         * tests/unistr/test-u8-cmp2.c: New file.
16613         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
16614
16615         Tests for module 'unistr/u32-cmp'.
16616         * modules/unistr/u32-cmp-tests: New file.
16617         * tests/unistr/test-u32-cmp.c: New file.
16618
16619         Tests for module 'unistr/u16-cmp'.
16620         * modules/unistr/u16-cmp-tests: New file.
16621         * tests/unistr/test-u16-cmp.c: New file.
16622
16623         Tests for module 'unistr/u8-cmp'.
16624         * modules/unistr/u8-cmp-tests: New file.
16625         * tests/unistr/test-u8-cmp.c: New file.
16626         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
16627
16628         Tests for module 'unistr/u32-set'.
16629         * modules/unistr/u32-set-tests: New file.
16630         * tests/unistr/test-u32-set.c: New file.
16631
16632         Tests for module 'unistr/u16-set'.
16633         * modules/unistr/u16-set-tests: New file.
16634         * tests/unistr/test-u16-set.c: New file.
16635
16636         Tests for module 'unistr/u8-set'.
16637         * modules/unistr/u8-set-tests: New file.
16638         * tests/unistr/test-u8-set.c: New file.
16639         * tests/unistr/test-set.h: New file.
16640
16641         Tests for module 'unistr/u32-move'.
16642         * modules/unistr/u32-move-tests: New file.
16643         * tests/unistr/test-u32-move.c: New file.
16644
16645         Tests for module 'unistr/u16-move'.
16646         * modules/unistr/u16-move-tests: New file.
16647         * tests/unistr/test-u16-move.c: New file.
16648
16649         Tests for module 'unistr/u8-move'.
16650         * modules/unistr/u8-move-tests: New file.
16651         * tests/unistr/test-u8-move.c: New file.
16652         * tests/unistr/test-move.h: New file.
16653
16654         Tests for module 'unistr/u32-cpy'.
16655         * modules/unistr/u32-cpy-tests: New file.
16656         * tests/unistr/test-u32-cpy.c: New file.
16657
16658         Tests for module 'unistr/u16-cpy'.
16659         * modules/unistr/u16-cpy-tests: New file.
16660         * tests/unistr/test-u16-cpy.c: New file.
16661
16662         Tests for module 'unistr/u8-cpy'.
16663         * modules/unistr/u8-cpy-tests: New file.
16664         * tests/unistr/test-u8-cpy.c: New file.
16665         * tests/unistr/test-cpy.h: New file.
16666
16667 2010-01-09  Bruno Haible  <bruno@clisp.org>
16668
16669         Tests for module 'unistr/u32-uctomb'.
16670         * modules/unistr/u32-uctomb-tests: New file.
16671         * tests/unistr/test-u32-uctomb.c: New file.
16672
16673         Tests for module 'unistr/u16-uctomb'.
16674         * modules/unistr/u16-uctomb-tests: New file.
16675         * tests/unistr/test-u16-uctomb.c: New file.
16676
16677         Tests for module 'unistr/u8-uctomb'.
16678         * modules/unistr/u8-uctomb-tests: New file.
16679         * tests/unistr/test-u8-uctomb.c: New file.
16680
16681         Tests for module 'unistr/u32-mbtoucr'.
16682         * modules/unistr/u32-mbtoucr-tests: New file.
16683         * tests/unistr/test-u32-mbtoucr.c: New file.
16684
16685         Tests for module 'unistr/u16-mbtoucr'.
16686         * modules/unistr/u16-mbtoucr-tests: New file.
16687         * tests/unistr/test-u16-mbtoucr.c: New file.
16688
16689         Tests for module 'unistr/u8-mbtoucr'.
16690         * modules/unistr/u8-mbtoucr-tests: New file.
16691         * tests/unistr/test-u8-mbtoucr.c: New file.
16692
16693         Tests for module 'unistr/u32-mbtouc'.
16694         * modules/unistr/u32-mbtouc-tests: New file.
16695         * tests/unistr/test-u32-mbtouc.c: New file.
16696
16697         Tests for module 'unistr/u16-mbtouc'.
16698         * modules/unistr/u16-mbtouc-tests: New file.
16699         * tests/unistr/test-u16-mbtouc.c: New file.
16700
16701         Tests for module 'unistr/u8-mbtouc'.
16702         * modules/unistr/u8-mbtouc-tests: New file.
16703         * tests/unistr/test-u8-mbtouc.c: New file.
16704
16705         Tests for module 'unistr/u32-mbtouc-unsafe'.
16706         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
16707         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
16708         * tests/unistr/test-u32-mbtouc.h: New file.
16709
16710         Tests for module 'unistr/u16-mbtouc-unsafe'.
16711         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
16712         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
16713         * tests/unistr/test-u16-mbtouc.h: New file.
16714
16715         Tests for module 'unistr/u8-mbtouc-unsafe'.
16716         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
16717         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
16718         * tests/unistr/test-u8-mbtouc.h: New file.
16719
16720         Tests for module 'unistr/u32-mblen'.
16721         * modules/unistr/u32-mblen-tests: New file.
16722         * tests/unistr/test-u32-mblen.c: New file.
16723
16724         Tests for module 'unistr/u16-mblen'.
16725         * modules/unistr/u16-mblen-tests: New file.
16726         * tests/unistr/test-u16-mblen.c: New file.
16727
16728         Tests for module 'unistr/u8-mblen'.
16729         * modules/unistr/u8-mblen-tests: New file.
16730         * tests/unistr/test-u8-mblen.c: New file.
16731
16732         Tests for module 'unistr/u32-to-u16'.
16733         * modules/unistr/u32-to-u16-tests: New file.
16734         * tests/unistr/test-u32-to-u16.c: New file.
16735
16736         Tests for module 'unistr/u32-to-u8'.
16737         * modules/unistr/u32-to-u8-tests: New file.
16738         * tests/unistr/test-u32-to-u8.c: New file.
16739
16740         Tests for module 'unistr/u16-to-u32'.
16741         * modules/unistr/u16-to-u32-tests: New file.
16742         * tests/unistr/test-u16-to-u32.c: New file.
16743
16744         Tests for module 'unistr/u16-to-u8'.
16745         * modules/unistr/u16-to-u8-tests: New file.
16746         * tests/unistr/test-u16-to-u8.c: New file.
16747
16748         Tests for module 'unistr/u8-to-u32'.
16749         * modules/unistr/u8-to-u32-tests: New file.
16750         * tests/unistr/test-u8-to-u32.c: New file.
16751
16752         Tests for module 'unistr/u8-to-u16'.
16753         * modules/unistr/u8-to-u16-tests: New file.
16754         * tests/unistr/test-u8-to-u16.c: New file.
16755
16756         Tests for module 'unistr/u32-check'.
16757         * modules/unistr/u32-check-tests: New file.
16758         * tests/unistr/test-u32-check.c: New file.
16759
16760         Tests for module 'unistr/u16-check'.
16761         * modules/unistr/u16-check-tests: New file.
16762         * tests/unistr/test-u16-check.c: New file.
16763
16764         Tests for module 'unistr/u8-check'.
16765         * modules/unistr/u8-check-tests: New file.
16766         * tests/unistr/test-u8-check.c: New file.
16767
16768         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
16769         (category_equals): New function.
16770         (main): Add more tests.
16771         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
16772
16773         * tests/unictype/test-bidi_byname.c (main): Add more tests.
16774
16775 2010-01-10  Bruno Haible  <bruno@clisp.org>
16776
16777         unistr/u*-strcoll: Try harder to distinguish different strings.
16778         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
16779         compare s1 and s2 to see if they are different.
16780
16781 2010-01-10  Bruno Haible  <bruno@clisp.org>
16782
16783         unistr/u*-stpncpy: Fix the return value.
16784         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
16785         description of the return value consistent with stpncpy in glibc.
16786         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
16787         written non-NUL unit.
16788
16789 2010-01-10  Bruno Haible  <bruno@clisp.org>
16790
16791         unistr/u*-next: Add missing dependencies.
16792         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
16793         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
16794         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
16795
16796 2010-01-10  Bruno Haible  <bruno@clisp.org>
16797
16798         unistr/u8-mbsnlen: Fix return value for incomplete character.
16799         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
16800         u8_mblen.
16801         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
16802         Remove unistr/u8-mblen.
16803         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
16804         u16_mblen.
16805         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
16806         Remove unistr/u16-mblen.
16807
16808 2010-01-10  Bruno Haible  <bruno@clisp.org>
16809
16810         wchar: Fix compilation error when <wchar.h> is used from coreutils.
16811         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
16812         Reported by Brian Gough <bjg@gnu.org> and
16813         Chris Clayton <chris2553@googlemail.com> via
16814         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
16815
16816 2010-01-09  Bruno Haible  <bruno@clisp.org>
16817
16818         unistr/u16-to-u32: Reject invalid input.
16819         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
16820         u16_mbtouc.
16821         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
16822         Remove unistr/u16-mbtouc.
16823
16824         unistr/u16-to-u8: Reject invalid input.
16825         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
16826         u16_mbtouc.
16827         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
16828         Remove unistr/u16-mbtouc.
16829
16830         unistr/u8-to-u32: Reject invalid input.
16831         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
16832         u8_mbtouc.
16833         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
16834         Remove unistr/u8-mbtouc.
16835
16836         unistr/u8-to-u16: Reject invalid input.
16837         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
16838         u8_mbtouc.
16839         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
16840         Remove unistr/u8-mbtouc.
16841
16842 2010-01-09  Bruno Haible  <bruno@clisp.org>
16843
16844         Tests for module 'getlogin'.
16845         * modules/getlogin-tests: New file.
16846         * tests/test-getlogin.c: New file.
16847
16848         New module 'getlogin'.
16849         * lib/unistd.in.h (getlogin): New declaration.
16850         * lib/getlogin.c: New file.
16851         * m4/getlogin.m4: New file.
16852         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
16853         HAVE_GETLOGIN.
16854         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
16855         HAVE_GETLOGIN.
16856         * modules/getlogin: New file.
16857         * doc/posix-functions/getlogin.texi: Mention the new module.
16858         Reported by John W. Eaton <jwe@gnu.org>.
16859
16860 2010-01-09  Bruno Haible  <bruno@clisp.org>
16861
16862         getlogin_r: Support for native Windows.
16863         * lib/getlogin_r.c: Include <windows.h>
16864         (getlogin_r): Implement for native Windows.
16865         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
16866         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
16867         via John W. Eaton <jwe@gnu.org>.
16868
16869 2010-01-09  Bruno Haible  <bruno@clisp.org>
16870
16871         getlogin_r: Small fixes.
16872         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
16873         succeeds.
16874         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
16875         before testing whether getlogin_r is declared. No need to set
16876         HAVE_DECL_GETLOGIN_R to 1.
16877         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
16878
16879 2010-01-09  Bruno Haible  <bruno@clisp.org>
16880
16881         * lib/unistd.in.h (getlogin_r): Add comment.
16882
16883 2010-01-09  Bruno Haible  <bruno@clisp.org>
16884
16885         Tests for module 'getlogin_r'.
16886         * modules/getlogin_r-tests: New file.
16887         * tests/test-getlogin_r.c: New file.
16888
16889 2010-01-09  Jim Meyering  <meyering@redhat.com>
16890
16891         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
16892         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
16893         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
16894
16895 2010-01-08  Simon Josefsson  <simon@josefsson.org>
16896
16897         * lib/dup2.c (rpl_dup2): Improve comment.
16898
16899 2010-01-08  Eric Blake  <ebb9@byu.net>
16900
16901         maint.mk: allow packages to add makefile @@ exceptions
16902         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
16903         (sc_makefile_check): Rename...
16904         (sc_makefile_at_at_check): ...to this, and use hook.
16905
16906         dup2: work around mingw bug
16907         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
16908         Reported by Simon Josefsson.
16909
16910 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
16911
16912         glob: Fix C++ compilation.
16913         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
16914         C++.
16915
16916 2010-01-07  Bruno Haible  <bruno@clisp.org>
16917
16918         Fix indentation of wctype.in.h, broken since 2007-01-06.
16919         * lib/wctype.in.h: Fix indentation of preprocessor directives.
16920
16921 2010-01-07  Bruno Haible  <bruno@clisp.org>
16922
16923         mbslen: Avoid collision with system function.
16924         * lib/string.in.h [MirBSD]: Include <wchar.h>.
16925         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
16926         * m4/mbslen.m4: New file.
16927         * modules/mbslen (Files): Add it.
16928         (configure.ac): Invoke gl_MBSLEN.
16929         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
16930         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
16931         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
16932         via Ian Beckwith <ianb@erislabs.net>.
16933
16934 2010-01-07  Bruno Haible  <bruno@clisp.org>
16935
16936         dirent: Document the last fix.
16937         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
16938
16939 2010-01-07  Bruno Haible  <bruno@clisp.org>
16940
16941         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
16942         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
16943         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
16944         va_list are defined.
16945         * doc/posix-headers/stdio.texi: Document the bug of missing types.
16946         Reported by Eric Blake.
16947
16948 2010-01-07  Bruno Haible  <bruno@clisp.org>
16949
16950         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
16951         * modules/xlist (Depends-on): Add 'list',
16952         * modules/xoset (Depends-on): Add 'oset'.
16953         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16954
16955 2010-01-07  Bruno Haible  <bruno@clisp.org>
16956
16957         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
16958         * doc/posix-functions/strncasecmp.texi: Likewise.
16959
16960 2010-01-07  Bruno Haible  <bruno@clisp.org>
16961
16962         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
16963
16964 2010-01-07  John W. Eaton  <jwe@octave.org>
16965
16966         wctype: allow C++ use
16967         * lib/wctype.in.h: Add extern "C" block for C++.
16968
16969 2010-01-06  Eric Blake  <ebb9@byu.net>
16970
16971         maint.mk: detect incorrect GFDL usage
16972         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
16973
16974 2010-01-06  Jim Meyering  <meyering@redhat.com>
16975         and Eric Blake  <ebb9@byu.net>
16976
16977         maint.mk: ignore multi-line copyright in NEWS
16978         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
16979
16980 2010-01-06  Eric Blake  <ebb9@byu.net>
16981
16982         select: add missing dependency
16983         * modules/select-tests (Depends-on): Move sockets dependency...
16984         * modules/select (Depends-on): ...here.
16985         Reported by Ian Beckwith.
16986
16987         doc: regenerate INSTALL
16988         * doc/INSTALL: Reflect recent autoconf update.
16989         * doc/INSTALL.ISO: Likewise.
16990         * doc/INSTALL.UTF-8: Likewise.
16991
16992         pread: fix compilation on glibc
16993         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
16994         Reported by Ralf Wildenhues.
16995
16996         dirent: fix test failure
16997         * lib/dirent.in.h (includes): Guarantee ino_t.
16998         Reported by Ralf Wildenhues.
16999
17000 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
17001
17002         linkat, renameat: avoid bad free
17003         * lib/at-func2.c (at_func2): Fix typo.
17004         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
17005
17006 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17007
17008         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
17009         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
17010         to avoid failure of symlink test later.
17011
17012 2010-01-06  Eric Blake  <ebb9@byu.net>
17013
17014         stdio, unistd: guarantee ssize_t
17015         * lib/unistd.in.h (includes): Ensure that types required by POSIX
17016         2008 are exposed when needed.
17017         * lib/stdio.in.h (includes): Likewise.
17018         Reported by Ralf Wildenhues.
17019
17020 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
17021
17022         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
17023         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
17024         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
17025
17026 2010-01-06  Jim Meyering  <meyering@redhat.com>
17027
17028         readtokens: this module *does* require xalloc.h
17029         It uses only functions that were omitted by the old syntax-check rule.
17030         * lib/readtokens.c: Include "xalloc.h" once again.
17031         * modules/readtokens (Depends-on): Add xalloc.
17032         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
17033
17034 2010-01-05  Eric Blake  <ebb9@byu.net>
17035
17036         maint: support 'make announcement' from a VPATH build
17037         * top/maint.mk (announcement): Look for correct NEWS file.
17038
17039 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
17040
17041         utimens (fdutimens): ignore a negative FD, per contract
17042         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
17043         when we have a valid file descriptor.  Otherwise, using a brand
17044         new glibc (with just-patched futimens that now fails with EBADF)
17045         would cause this function to fail with ENOSYS.
17046         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
17047         See also http://bugzilla.redhat.com/552320.
17048
17049 2010-01-05  Eric Blake  <ebb9@byu.net>
17050
17051         strcase: document what it provides
17052         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
17053         gnulib module.
17054         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
17055         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
17056
17057 2010-01-05  Jim Meyering  <meyering@redhat.com>
17058
17059         maint: remove useless inclusions of "xalloc.h"
17060         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
17061         * lib/readtokens.c: Likewise.
17062         * lib/same.c: Likewise.
17063         * modules/getloadavg (Depends-on): Remove xalloc.
17064         * modules/readtokens: Likewise.
17065         * modules/same: Likewise.
17066
17067         maint.mk: include 4 more function names in alloca.h-checking regexp
17068         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
17069         regexp.  Before, we would give a false-positive (saying alloca.h
17070         is included unnecessarily) when the only uses involved omitted symbols.
17071
17072         xalloc.h: use consistent formatting
17073         * lib/xalloc.h: Move declarations to start in the first column.
17074
17075 2010-01-05  Eric Blake  <ebb9@byu.net>
17076
17077         mkdir: avoid xalloc
17078         * lib/mkdir.c (includes): Drop unused header.
17079         Reported by John W. Eaton.
17080
17081 2010-01-04  Jim Meyering  <meyering@redhat.com>
17082
17083         nl_langinfo: avoid configure-time syntax error
17084         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
17085         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
17086         the empty string.  Don't let that provoke a shell syntax error.
17087
17088         regcomp, regexec, fnmatch: avoid array bounds read error
17089         * lib/regcomp.c (build_equiv_class): From glibc:
17090         Use only the low 24 bits of a findidx return value as an index
17091         into the weights array.  Patch by Ulrich Drepper:
17092         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
17093         * lib/regexec.c (check_node_accept_bytes): Likewise.
17094         * lib/fnmatch_loop.c (FCT): Likewise.
17095
17096         regcomp: skip collseq lookup when there are no rules
17097         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
17098         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
17099
17100         regcomp: recognize ill-formed { } expressions
17101         * lib/regcomp.c (parse_dup_op): From glibc:
17102         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
17103
17104         regcomp: fix typo in comment
17105         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
17106         s/satisfy/satisfies/.
17107
17108         regcomp: sync from glibc: remove dead store
17109         * lib/regcomp.c (duplicate_node_closure): Remove useless
17110         search_duplicated_node call and dead store.
17111
17112         regcomp: sync from glibc; always use nl_langinfo
17113         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
17114         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
17115         * modules/regex (Depends-on): Add nl_langinfo.
17116
17117 2010-01-04  Eric Blake  <ebb9@byu.net>
17118
17119         fdopendir: fix configure test
17120         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
17121
17122 2010-01-01  Bruno Haible  <bruno@clisp.org>
17123
17124         wchar: Remove unused configure check.
17125         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
17126
17127 2010-01-01  Eric Blake  <ebb9@byu.net>
17128
17129         headers: make check of system header explicit
17130         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
17131         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
17132         ourselves.
17133         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17134         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17135         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
17136         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
17137         internals.
17138         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
17139         missing.
17140         Suggested by Bruno Haible.
17141
17142 2010-01-01  Jim Meyering  <meyering@redhat.com>
17143
17144         ChangeLog: tweak to eliminate unnecessary copyright line
17145         * ChangeLog: Remove a copyright line that was mistakenly updated
17146         by today's update-copyright run.  Reported by Eric Blake.
17147
17148         test-update-copyright: don't let envvar setting cause test failure
17149         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
17150
17151 2010-01-01  Bruno Haible  <bruno@clisp.org>
17152
17153         localename: Avoid gcc warning.
17154         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
17155         function if it is not used.
17156
17157 2010-01-01  Jim Meyering  <meyering@redhat.com>
17158
17159         update nearly all FSF copyright year lists to include 2010
17160         Use the same procedure as for 2009, outlined in
17161         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
17162
17163         version-etc: set COPYRIGHT_YEAR to 2010
17164         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
17165
17166 2009-12-31  Eric Blake  <ebb9@byu.net>
17167
17168         doc: correct availability of cygwin 1.5.x getopt
17169         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
17170         variables.
17171         * doc/posix-functions/opterr.texi (opterr): Likewise.
17172         * doc/posix-functions/optind.texi (optind): Likewise.
17173         * doc/posix-functions/optopt.texi (optopt): Likewise.
17174         * doc/posix-functions/tzname.texi (tzname): Likewise.
17175
17176         openat: update maintainer
17177         * modules/openat (Maintainer): Add myself.
17178
17179         utimens: avoid shadowing warning
17180         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
17181         buffers into one, to avoid shadowing, as well as avoiding a
17182         redundant stat.
17183         Reported by Jim Meyering.
17184
17185         test-dup2: avoid compiler warning
17186         * tests/test-dup2.c (is_inheritable): Only define if used.
17187
17188 2010-01-01  Bruno Haible  <bruno@clisp.org>
17189
17190         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
17191         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
17192         defined, use wctomb instead of wcrtomb.
17193
17194 2010-01-01  Bruno Haible  <bruno@clisp.org>
17195
17196         iconv: Reject native Solaris iconv.
17197         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
17198         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
17199
17200 2009-12-31  Bruno Haible  <bruno@clisp.org>
17201
17202         * tests/test-signal.c (main): Remove test of 'SIG'.
17203
17204 2009-12-31  Bruno Haible  <bruno@clisp.org>
17205
17206         spawn: Fix incomplete fix.
17207         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
17208         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
17209         warnings for GNULIB_POSIXCHECK again.
17210         Reported by Eric Blake.
17211
17212 2009-12-31  Bruno Haible  <bruno@clisp.org>
17213
17214         Avoid namespace pollution on glibc systems.
17215         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
17216         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
17217         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
17218         glibc systems.
17219
17220 2009-12-31  Bruno Haible  <bruno@clisp.org>
17221
17222         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
17223         (gl_REPLACE_WCHAR_H): Turn into a no-op.
17224         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
17225         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
17226         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
17227         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
17228         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
17229
17230 2009-12-31  Bruno Haible  <bruno@clisp.org>
17231
17232         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
17233         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
17234         afterwards.
17235
17236 2009-12-31  Bruno Haible  <bruno@clisp.org>
17237
17238         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
17239         SYS_UTSNAME_H.
17240
17241 2009-12-31  Bruno Haible  <bruno@clisp.org>
17242
17243         spawn: Fix misapplied patch.
17244         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
17245         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
17246         warnings for GNULIB_POSIXCHECK.
17247
17248 2009-12-31  Bruno Haible  <bruno@clisp.org>
17249
17250         times: Update after sys_times changed.
17251         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
17252         * modules/times (Files): Add it.
17253         (configure.ac): Invoke gl_FUNC_TIMES.
17254
17255 2009-12-31  Bruno Haible  <bruno@clisp.org>
17256
17257         Use AC_C_INLINE where necessary.
17258         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
17259         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
17260         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
17261         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
17262         * m4/mbfile.m4 (gl_MBFILE): Likewise.
17263         * m4/mbiter.m4 (gl_MBITER): Likewise.
17264         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
17265         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17266         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
17267         * modules/u64 (configure.ac): Likewise.
17268
17269 2009-12-31  Bruno Haible  <bruno@clisp.org>
17270
17271         Use AC_C_INLINE instead of module 'inline' where possible.
17272         * modules/inline (Description): Clarify purpose.
17273         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
17274         * modules/count-one-bits (Depends-on): Remove inline.
17275         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
17276         * modules/openat (Depends-on): Remove inline.
17277         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
17278         instead of depending on module 'inline'.
17279         * modules/filevercmp (Depends-on, configure.ac): Likewise.
17280         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
17281         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
17282         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
17283         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
17284         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
17285         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
17286         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
17287         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
17288         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
17289         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
17290         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
17291         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
17292         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
17293         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
17294         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
17295         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
17296         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
17297         Likewise.
17298         * modules/unictype/property-ascii-hex-digit (Depends-on,
17299         configure.ac): Likewise.
17300         * modules/unictype/property-bidi-arabic-digit (Depends-on,
17301         configure.ac): Likewise.
17302         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
17303         configure.ac): Likewise.
17304         * modules/unictype/property-bidi-block-separator (Depends-on,
17305         configure.ac): Likewise.
17306         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
17307         configure.ac): Likewise.
17308         * modules/unictype/property-bidi-common-separator (Depends-on,
17309         configure.ac): Likewise.
17310         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
17311         Likewise.
17312         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
17313         configure.ac): Likewise.
17314         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
17315         configure.ac): Likewise.
17316         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
17317         configure.ac): Likewise.
17318         * modules/unictype/property-bidi-european-digit (Depends-on,
17319         configure.ac): Likewise.
17320         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
17321         configure.ac): Likewise.
17322         * modules/unictype/property-bidi-left-to-right (Depends-on,
17323         configure.ac): Likewise.
17324         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
17325         configure.ac): Likewise.
17326         * modules/unictype/property-bidi-other-neutral (Depends-on,
17327         configure.ac): Likewise.
17328         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
17329         Likewise.
17330         * modules/unictype/property-bidi-segment-separator (Depends-on,
17331         configure.ac): Likewise.
17332         * modules/unictype/property-bidi-whitespace (Depends-on,
17333         configure.ac): Likewise.
17334         * modules/unictype/property-combining (Depends-on, configure.ac):
17335         Likewise.
17336         * modules/unictype/property-composite (Depends-on, configure.ac):
17337         Likewise.
17338         * modules/unictype/property-currency-symbol (Depends-on,
17339         configure.ac): Likewise.
17340         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
17341         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
17342         Likewise.
17343         * modules/unictype/property-default-ignorable-code-point (Depends-on,
17344         configure.ac): Likewise.
17345         * modules/unictype/property-deprecated (Depends-on, configure.ac):
17346         Likewise.
17347         * modules/unictype/property-diacritic (Depends-on, configure.ac):
17348         Likewise.
17349         * modules/unictype/property-extender (Depends-on, configure.ac):
17350         Likewise.
17351         * modules/unictype/property-format-control (Depends-on, configure.ac):
17352         Likewise.
17353         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
17354         Likewise.
17355         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
17356         Likewise.
17357         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
17358         Likewise.
17359         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
17360         Likewise.
17361         * modules/unictype/property-hyphen (Depends-on, configure.ac):
17362         Likewise.
17363         * modules/unictype/property-id-continue (Depends-on, configure.ac):
17364         Likewise.
17365         * modules/unictype/property-id-start (Depends-on, configure.ac):
17366         Likewise.
17367         * modules/unictype/property-ideographic (Depends-on, configure.ac):
17368         Likewise.
17369         * modules/unictype/property-ids-binary-operator (Depends-on,
17370         configure.ac): Likewise.
17371         * modules/unictype/property-ids-trinary-operator (Depends-on,
17372         configure.ac): Likewise.
17373         * modules/unictype/property-ignorable-control (Depends-on,
17374         configure.ac): Likewise.
17375         * modules/unictype/property-iso-control (Depends-on, configure.ac):
17376         Likewise.
17377         * modules/unictype/property-join-control (Depends-on, configure.ac):
17378         Likewise.
17379         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
17380         Likewise.
17381         * modules/unictype/property-line-separator (Depends-on, configure.ac):
17382         Likewise.
17383         * modules/unictype/property-logical-order-exception (Depends-on,
17384         configure.ac): Likewise.
17385         * modules/unictype/property-lowercase (Depends-on, configure.ac):
17386         Likewise.
17387         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
17388         * modules/unictype/property-non-break (Depends-on, configure.ac):
17389         Likewise.
17390         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
17391         Likewise.
17392         * modules/unictype/property-numeric (Depends-on, configure.ac):
17393         Likewise.
17394         * modules/unictype/property-other-alphabetic (Depends-on,
17395         configure.ac): Likewise.
17396         * modules/unictype/property-other-default-ignorable-code-point
17397         (Depends-on, configure.ac): Likewise.
17398         * modules/unictype/property-other-grapheme-extend (Depends-on,
17399         configure.ac): Likewise.
17400         * modules/unictype/property-other-id-continue (Depends-on,
17401         configure.ac): Likewise.
17402         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
17403         Likewise.
17404         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
17405         Likewise.
17406         * modules/unictype/property-other-math (Depends-on, configure.ac):
17407         Likewise.
17408         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
17409         Likewise.
17410         * modules/unictype/property-paired-punctuation (Depends-on,
17411         configure.ac): Likewise.
17412         * modules/unictype/property-paragraph-separator (Depends-on,
17413         configure.ac): Likewise.
17414         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
17415         Likewise.
17416         * modules/unictype/property-pattern-white-space (Depends-on,
17417         configure.ac): Likewise.
17418         * modules/unictype/property-private-use (Depends-on, configure.ac):
17419         Likewise.
17420         * modules/unictype/property-punctuation (Depends-on, configure.ac):
17421         Likewise.
17422         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
17423         Likewise.
17424         * modules/unictype/property-radical (Depends-on, configure.ac):
17425         Likewise.
17426         * modules/unictype/property-sentence-terminal (Depends-on,
17427         configure.ac): Likewise.
17428         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
17429         Likewise.
17430         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
17431         * modules/unictype/property-terminal-punctuation (Depends-on,
17432         configure.ac): Likewise.
17433         * modules/unictype/property-titlecase (Depends-on, configure.ac):
17434         Likewise.
17435         * modules/unictype/property-unassigned-code-value (Depends-on,
17436         configure.ac): Likewise.
17437         * modules/unictype/property-unified-ideograph (Depends-on,
17438         configure.ac): Likewise.
17439         * modules/unictype/property-uppercase (Depends-on, configure.ac):
17440         Likewise.
17441         * modules/unictype/property-variation-selector (Depends-on,
17442         configure.ac): Likewise.
17443         * modules/unictype/property-white-space (Depends-on, configure.ac):
17444         Likewise.
17445         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
17446         Likewise.
17447         * modules/unictype/property-xid-start (Depends-on, configure.ac):
17448         Likewise.
17449         * modules/unictype/property-zero-width (Depends-on, configure.ac):
17450         Likewise.
17451         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
17452         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
17453         Likewise.
17454
17455 2009-12-31  Bruno Haible  <bruno@clisp.org>
17456
17457         Remove unnecessary AC_C_INLINE invocation.
17458         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
17459         since 2009-08-21.
17460
17461 2009-12-31  Jim Meyering  <meyering@redhat.com>
17462
17463         maint.mk: don't require explicit gpg_key_ID in cfg.mk
17464         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
17465         With this change, we can all remove the gpg_key_ID = ... definition
17466         from our respective cfg.mk files.
17467
17468         maint.mk: create announcement template in ~/, not in /tmp
17469         * top/maint.mk (emit_upload_commands): Adjust.
17470         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
17471         Remove temporary file, .ci-msg.
17472
17473 2009-12-31  Eric Blake  <ebb9@byu.net>
17474
17475         link-warning: always build headers with link warnings
17476         * modules/arpa_inet (Makefile.am): Always build replacement
17477         header.
17478         * modules/ctype (Makefile.am): Likewise.
17479         * modules/dirent (Makefile.am): Likewise.
17480         * modules/inttypes (Makefile.am): Likewise.
17481         * modules/langinfo (Makefile.am): Likewise.
17482         * modules/locale (Makefile.am): Likewise.
17483         * modules/spawn (Makefile.am): Likewise.
17484         * modules/sys_file (Makefile.am): Likewise.
17485         * modules/sys_ioctl (Makefile.am): Likewise.
17486         * modules/sys_select (Makefile.am): Likewise.
17487         * modules/sys_socket (Makefile.am): Likewise.
17488         * modules/sys_times (Makefile.am): Likewise.
17489         * modules/sys_utsname (Makefile.am): Likewise.
17490         * modules/sys_wait (Makefile.am): Likewise.
17491         * modules/wchar (Makefile.am): Likewise.
17492         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
17493         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
17494         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
17495         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
17496         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
17497         Likewise.
17498         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
17499         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17500         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
17501         Likewise.
17502         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
17503         Likewise.
17504         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
17505         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
17506         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
17507         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17508         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17509         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
17510         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
17511         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
17512         (gl_WCHAR_H_DEFAULTS): Likewise.
17513
17514 2009-12-31  Eric Blake  <ebb9@byu.net>
17515
17516         signal, spawn: use link warnings
17517         * lib/signal.in.h (sigset_t): Make unconditional.
17518         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
17519         (sigpending, sigprocmask, sigaction): Add link warnings.
17520         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
17521         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
17522         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
17523         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
17524         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
17525         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
17526         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
17527         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
17528         (posix_spawn_file_actions_destroy)
17529         (posix_spawn_file_actions_addopen)
17530         (posix_spawn_file_actions_addclose)
17531         (posix_spawn_file_actions_adddup2): Likewise.
17532         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
17533         * tests/test-signal.c (main): Enhance test.
17534
17535         spawn: improve wrapper support
17536         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
17537         (gl_SPAWN_H_DEFAULTS): New defaults.
17538         * modules/spawn (Makefile.am): Substitute them.
17539         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
17540         Only declare if missing or broken.
17541
17542         sys_times, sys_utsname: use include_next
17543         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
17544         header.
17545         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
17546         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
17547         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
17548         * modules/sys_times (Depends-on): Add include_next.
17549         (Makefile.am): Substitute additional values.
17550         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
17551         * lib/sys_times.in.h (includes): Include native header, if
17552         available.
17553         * lib/sys_utsname.in.h (includes): Likewise.
17554         * tests/test-sys_times.c (main): Enhance test.
17555
17556         fdutimensat: revert prior patch
17557         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
17558         utimens.h.
17559         Reported by Bruno Haible.
17560
17561 2009-12-30  Eric Blake  <ebb9@byu.net>
17562
17563         sys_wait: drop link-warning dependency
17564         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
17565         link-warning efforts.
17566         * lib/sys_wait.in.h: Likewise.
17567
17568         fdutimensat: remove bogus dependency
17569         * modules/fdutimensat (Depends-on): Drop inline.
17570
17571         unistd: fix typo
17572         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
17573
17574 2009-12-30  Bruno Haible  <bruno@clisp.org>
17575
17576         Fix compilation error with Solaris cc.
17577         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
17578         * lib/unicase/u16-is-invariant.c: Likewise.
17579         * lib/unicase/u32-is-invariant.c: Likewise.
17580         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
17581
17582 2009-12-30  Bruno Haible  <bruno@clisp.org>
17583
17584         Fix test crash.
17585         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
17586         locales.
17587         Reported by Simon Josefsson <simon@josefsson.org>.
17588
17589 2009-12-30  Bruno Haible  <bruno@clisp.org>
17590
17591         Fix compilation error on most platforms.
17592         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
17593         Reported by Simon Josefsson <simon@josefsson.org>
17594         and Nelson H. F. Beebe <beebe@math.utah.edu>.
17595
17596 2009-12-30  Eric Blake  <ebb9@byu.net>
17597
17598         futimens, utimensat: work around ntfs-3g bug
17599         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
17600         a ctime bug is present, and expand workaround to cover ntfs-3g.
17601         * lib/utimens.c (fdutimens, lutimens): Likewise.
17602         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
17603         (validate_timespec): Adjust return value.
17604         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
17605         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17606         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
17607
17608 2009-12-29  Eric Blake  <ebb9@byu.net>
17609
17610         link-warning: make usage consistent
17611         * modules/ctype (Depends-on): Add link-warning.
17612         (Makefile.am): Update rules accordingly.
17613         * modules/langinfo (Depends-on, Makefile.am): Likewise.
17614         * modules/locale (Depends-on, Makefile.am): Likewise.
17615         * modules/sys_file (Makefile.am): Likewise.
17616         * modules/getopt-posix (Makefile.am): Delete unused link warning
17617         efforts.
17618         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
17619         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
17620         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
17621         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
17622
17623         stdio: remove unused variables
17624         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
17625         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
17626         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17627
17628         tests: test more substitute headers
17629         * modules/ctype-tests: New file.
17630         * modules/dirent-tests: Likewise.
17631         * modules/spawn-tests: Likewise.
17632         * modules/sys_file-tests: Likewise.
17633         * modules/sys_ioctl-tests: Likewise.
17634         * modules/sys_wait-tests: Likewise.
17635         * tests/test-ctype.c: Likewise.
17636         * tests/test-dirent.c: Likewise.
17637         * tests/test-spawn.c: Likewise.
17638         * tests/test-sys_file.c: Likewise.
17639         * tests/test-sys_ioctl.c: Likewise.
17640         * tests/test-sys_wait.c: Likewise.
17641         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
17642         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
17643         whether or not flock is in use.
17644
17645         tests: remove License section from module
17646         * modules/arpa_inet-tests: Remove unneeded section.
17647         * modules/byteswap-tests: Likewise.
17648         * modules/ceilf-tests: Likewise.
17649         * modules/ceill-tests: Likewise.
17650         * modules/crypto/des-tests: Likewise.
17651         * modules/crypto/gc-arcfour-tests: Likewise.
17652         * modules/crypto/gc-arctwo-tests: Likewise.
17653         * modules/crypto/gc-des-tests: Likewise.
17654         * modules/crypto/gc-hmac-md5-tests: Likewise.
17655         * modules/crypto/gc-hmac-sha1-tests: Likewise.
17656         * modules/crypto/gc-md2-tests: Likewise.
17657         * modules/crypto/gc-md4-tests: Likewise.
17658         * modules/crypto/gc-md5-tests: Likewise.
17659         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
17660         * modules/crypto/gc-rijndael-tests: Likewise.
17661         * modules/crypto/gc-sha1-tests: Likewise.
17662         * modules/crypto/gc-tests: Likewise.
17663         * modules/crypto/md2-tests: Likewise.
17664         * modules/crypto/md4-tests: Likewise.
17665         * modules/fcntl-h-tests: Likewise.
17666         * modules/floorf-tests: Likewise.
17667         * modules/floorl-tests: Likewise.
17668         * modules/frexp-nolibm-tests: Likewise.
17669         * modules/frexp-tests: Likewise.
17670         * modules/frexpl-nolibm-tests: Likewise.
17671         * modules/frexpl-tests: Likewise.
17672         * modules/getaddrinfo-tests: Likewise.
17673         * modules/inttypes-tests: Likewise.
17674         * modules/isfinite-tests: Likewise.
17675         * modules/isinf-tests: Likewise.
17676         * modules/ldexpl-tests: Likewise.
17677         * modules/locale-tests: Likewise.
17678         * modules/math-tests: Likewise.
17679         * modules/netdb-tests: Likewise.
17680         * modules/netinet_in-tests: Likewise.
17681         * modules/printf-frexp-tests: Likewise.
17682         * modules/printf-frexpl-tests: Likewise.
17683         * modules/priv-set-tests: Likewise.
17684         * modules/random_r-tests: Likewise.
17685         * modules/round-tests: Likewise.
17686         * modules/roundf-tests: Likewise.
17687         * modules/roundl-tests: Likewise.
17688         * modules/search-tests: Likewise.
17689         * modules/select-tests: Likewise.
17690         * modules/signal-tests: Likewise.
17691         * modules/stdbool-tests: Likewise.
17692         * modules/stddef-tests: Likewise.
17693         * modules/stdint-tests: Likewise.
17694         * modules/stdio-tests: Likewise.
17695         * modules/stdlib-tests: Likewise.
17696         * modules/string-tests: Likewise.
17697         * modules/strings-tests: Likewise.
17698         * modules/sys_select-tests: Likewise.
17699         * modules/sys_socket-tests: Likewise.
17700         * modules/sys_stat-tests: Likewise.
17701         * modules/sys_time-tests: Likewise.
17702         * modules/sys_utsname-tests: Likewise.
17703         * modules/sysexits-tests: Likewise.
17704         * modules/time-tests: Likewise.
17705         * modules/trunc-tests: Likewise.
17706         * modules/truncf-tests: Likewise.
17707         * modules/truncl-tests: Likewise.
17708         * modules/tsearch-tests: Likewise.
17709         * modules/unistd-tests: Likewise.
17710         * modules/wchar-tests: Likewise.
17711         * modules/wctype-tests: Likewise.
17712
17713         tests: fix license on several tests
17714         * tests/test-des.c: Update to GPLv3+.
17715         * tests/test-flock.c: Likewise.
17716         * tests/test-fsync.c: Likewise.
17717         * tests/test-futimens.h: Likewise.
17718         * tests/test-gc-arcfour.c: Likewise.
17719         * tests/test-gc-arctwo.c: Likewise.
17720         * tests/test-gc-des.c: Likewise.
17721         * tests/test-gc-hmac-md5.c: Likewise.
17722         * tests/test-gc-hmac-sha1.c: Likewise.
17723         * tests/test-gc-md2.c: Likewise.
17724         * tests/test-gc-md4.c: Likewise.
17725         * tests/test-gc-md5.c: Likewise.
17726         * tests/test-gc-pbkdf2-sha1.c: Likewise.
17727         * tests/test-gc-rijndael.c: Likewise.
17728         * tests/test-gc-sha1.c: Likewise.
17729         * tests/test-gc.c: Likewise.
17730         * tests/test-getcwd.c: Likewise.
17731         * tests/test-link.c: Likewise.
17732         * tests/test-link.h: Likewise.
17733         * tests/test-lutimens.h: Likewise.
17734         * tests/test-md2.c: Likewise.
17735         * tests/test-md4.c: Likewise.
17736         * tests/test-mkdir.h: Likewise.
17737         * tests/test-rename.c: Likewise.
17738         * tests/test-rename.h: Likewise.
17739         * tests/test-safe-alloc.c: Likewise.
17740         * tests/test-utimens-common.h: Likewise.
17741         * tests/test-utimens.h: Likewise.
17742
17743         maint: sync license texts
17744         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
17745         * doc/gpl-3.0.texi: Revert copyright year update.
17746         * doc/lgpl-3.0.texi: Likewise.
17747
17748 2009-12-29  Jim Meyering  <meyering@redhat.com>
17749
17750         update nearly all FSF copyright year lists to include 2009
17751         The files named by the following are exempted:
17752             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
17753               test -f "$dst" && { echo "$dst"; continue; }
17754               test -d "$dst" || continue
17755               echo "$dst"/$(basename "$src")
17756             done > exempt
17757             git ls-files tests/unictype >> exempt
17758         In the remaining files, convert to all-interval notation if
17759         - there is already at least one year interval like 2000-2003
17760         - the file is maintained by me
17761         - the file is in lib/uni*/, where that style already prevails
17762         Otherwise, use update-copyright's default.
17763
17764 2009-12-29  Simon Josefsson  <simon@josefsson.org>
17765         and Eric Blake  <ebb9@byu.net>
17766
17767         tests: don't require debug system() to pass
17768         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
17769         * tests/test-rmdir.h (test_rmdir_func): Likewise.
17770         * tests/test-unlink.h (test_unlink_func): Likewise.
17771         * tests/test-fstatat.c (main): ...into callers.
17772         * tests/test-lstat.c (main): Likewise.
17773         * tests/test-rmdir.c (main): Likewise.
17774         * tests/test-unlink.c (main): Likewise.
17775         * tests/test-unlinkat.c (main): Likewise.
17776         * tests/test-areadlink-with-size.c (main): Don't require a
17777         debug-only system call to pass, aiding cross-testing to mingw.
17778         * tests/test-areadlink.c (main): Likewise.
17779         * tests/test-areadlinkat-with-size.c (main): Likewise.
17780         * tests/test-areadlinkat.c (main): Likewise.
17781         * tests/test-canonicalize-lgpl.c (main): Likewise.
17782         * tests/test-canonicalize.c (main): Likewise.
17783         * tests/test-chown.c (main): Likewise.
17784         * tests/test-fchownat.c (main): Likewise.
17785         * tests/test-lchown.c (main): Likewise.
17786         * tests/test-fdutimensat.c (main): Likewise.
17787         * tests/test-futimens.c (main): Likewise.
17788         * tests/test-link.c (main): Likewise.
17789         * tests/test-linkat.c (main): Likewise.
17790         * tests/test-mkdir.c (main): Likewise.
17791         * tests/test-mkdirat.c (main): Likewise.
17792         * tests/test-mkfifo.c (main): Likewise.
17793         * tests/test-mkfifoat.c (main): Likewise.
17794         * tests/test-mknod.c (main): Likewise.
17795         * tests/test-readlink.c (main): Likewise.
17796         * tests/test-remove.c (main): Likewise.
17797         * tests/test-rename.c (main): Likewise.
17798         * tests/test-renameat.c (main): Likewise.
17799         * tests/test-symlink.c (main): Likewise.
17800         * tests/test-symlinkat.c (main): Likewise.
17801         * tests/test-utimens.c (main): Likewise.
17802         * tests/test-utimensat.c (main): Likewise.
17803
17804 2009-12-29  Simon Josefsson  <simon@josefsson.org>
17805
17806         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
17807         on $(UNUSED_PARAMETER_H) to avoid build failure.
17808
17809 2009-12-28  Jim Meyering  <meyering@redhat.com>
17810
17811         update-copyright: you may specify a max. line length other than 72
17812         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
17813
17814         maint: use consistent FSF copyright line syntax
17815         * lib/posixtm.c: Add missing comma in FSF copyright line.
17816         * lib/posixtm.h: Likewise.
17817         * lib/getugroups.c: Add missing ", Inc.".
17818
17819         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
17820         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
17821         FSF copyright line.  Remove trailing blanks.
17822
17823 2009-12-28  Eric Blake  <ebb9@byu.net>
17824
17825         test-dup2: reduce dependencies
17826         * modules/cloexec (Configure.ac): Set witness.
17827         * modules/dup2-tests (Depends-on): Drop cloexec.
17828         * tests/test-dup2.c (main): Skip portion of test if cloexec module
17829         not present.
17830         Suggested by Bruno Haible.
17831
17832 2009-12-26  Bruno Haible  <bruno@clisp.org>
17833
17834         Remove an unneeded dependency.
17835         * modules/fseterr (Depends-on): Remove dup2.
17836
17837 2009-12-26  Eric Blake  <ebb9@byu.net>
17838
17839         tests: use macros.h in more places
17840         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
17841         (ASSERT_STREAM): Provide default of stderr.
17842         * tests/test-dirent-safer.c: Include macros.h, using alternate
17843         stream for assertions.
17844         * tests/test-dup-safer.c: Likewise.
17845         * tests/test-freopen-safer.c: Likewise.
17846         * tests/test-getopt.c: Likewise.
17847         * tests/test-openat-safer.c: Likewise.
17848         * tests/test-pipe.c: Likewise.
17849         * tests/test-popen-safer.c: Likewise.
17850         * modules/dirent-safer-tests (Files): Include macros.h.
17851         * modules/unistd-safer-tests (Files): Likewise.
17852         * modules/freopen-safer-tests (Files): Likewise.
17853         * modules/getopt-posix-tests (Files): Likewise.
17854         * modules/openat-safer-tests (Files): Likewise.
17855         * modules/pipe-tests (Files): Likewise.
17856
17857 2009-12-26  Bruno Haible  <bruno@clisp.org>
17858
17859         javacomp: Portability fix.
17860         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
17861         that it also works on Solaris.
17862
17863 2009-12-26  Bruno Haible  <bruno@clisp.org>
17864
17865         localename: Fix storage allocation of gl_locale_name_thread's result.
17866         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
17867         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
17868         all platforms that have 'uselocale'.
17869         (gl_locale_name_thread_unsafe): New function, extracted from
17870         gl_locale_name_thread.
17871         (gl_locale_name_thread): Call struniq on all platforms that have
17872         'uselocale'.
17873         * tests/test-localename.c (test_locale_name_thread): Check that the
17874         resulting strings are permanently allocated.
17875         * modules/localename-tests (Depends-on): Add strdup.
17876
17877 2009-12-26  Bruno Haible  <bruno@clisp.org>
17878
17879         * tests/test-localename.c (categories): Fill in the strings.
17880
17881 2009-12-26  Jim Meyering  <meyering@redhat.com>
17882
17883         isdir: complete the removal of m4/isdir.m4
17884         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
17885
17886         isdir: clean up, since at least grep still uses it
17887         * lib/isdir.c: Include "isdir.h".
17888         (S_ISDIR): Remove now-unneeded definition.
17889         * modules/isdir (Files): Add lib/isdir.h.
17890         * lib/isdir.h: New file, with declaration.
17891         * m4/isdir.m4: Remove file -- unneeded.
17892
17893 2009-12-25  Bruno Haible  <bruno@clisp.org>
17894
17895         selinux-h: Make generated .h files standalone.
17896         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
17897         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
17898         * lib/se-selinux.in.h: Likewise.
17899         * modules/selinux-h (Depends-on): Add unused-parameter.
17900         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
17901         selinux/selinux.h and selinux/context.h.
17902         Suggested by Eric Blake.
17903
17904 2009-12-25  Bruno Haible  <bruno@clisp.org>
17905
17906         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
17907         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
17908         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
17909         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
17910         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
17911
17912 2009-12-24  Bruno Haible  <bruno@clisp.org>
17913
17914         openat: Fix warning.
17915         * lib/openat-proc.c: Include <unistd.h>.
17916
17917 2009-12-24  Bruno Haible  <bruno@clisp.org>
17918
17919         New module 'unused-parameter'.
17920         * build-aux/unused-parameter.h: New file, extracted from earlier
17921         gnulib-common.m4.
17922         * modules/unused-parameter: New file.
17923         * lib/unistr.h: Include unused-parameter.h.
17924         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
17925         _GL_UNUSED.
17926         * modules/unistr/base (Depends-on): Add unused-parameter.
17927
17928 2009-12-24  Bruno Haible  <bruno@clisp.org>
17929
17930         Add missing dependencies to 'extensions' module.
17931         * m4/extensions.m4: Add comment.
17932         * modules/accept4 (Depends-on): Add extensions.
17933         * modules/dup3 (Depends-on): Likewise.
17934         * modules/fcntl (Depends-on): Likewise.
17935         * modules/futimens (Depends-on): Likewise.
17936         * modules/mknod (Depends-on): Likewise.
17937         * modules/pipe2 (Depends-on): Likewise.
17938         * modules/stat-time (Depends-on): Likewise.
17939         * modules/strcasestr-simple (Depends-on): Likewise.
17940         * modules/strsignal (Depends-on): Likewise.
17941         * modules/utimensat (Depends-on): Likewise.
17942         * modules/localcharset (Depends-on): Likewise. Needed because of
17943         gl_FCNTL_O_FLAGS.
17944         * modules/wcrtomb (Depends-on): Likewise. Needed because of
17945         AC_TYPE_MBSTATE_T.
17946         * modules/wcsnrtombs (Depends-on): Likewise.
17947         * modules/wcsrtombs (Depends-on): Likewise.
17948
17949 2009-12-24  Bruno Haible  <bruno@clisp.org>
17950
17951         binary-io: Avoid gcc warning due to SET_BINARY.
17952         * lib/binary-io.h (SET_BINARY): Cast the result to void.
17953         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
17954
17955 2009-12-24  Bruno Haible  <bruno@clisp.org>
17956
17957         Avoid future namespace pollution on glibc systems.
17958         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
17959         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
17960         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
17961         glibc systems.
17962
17963 2009-12-24  Bruno Haible  <bruno@clisp.org>
17964
17965         Refactor common macros used in tests.
17966         * tests/macros.h: New file.
17967         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
17968         and/or <stdlib.h>, if appropriate.
17969         (ASSERT, SIZEOF): Remove macros.
17970         * tests/test-areadlink-with-size.c: Likewise.
17971         * tests/test-areadlinkat.c: Likewise.
17972         * tests/test-areadlinkat-with-size.c: Likewise.
17973         * tests/test-argmatch.c: Likewise.
17974         * tests/test-argv-iter.c: Likewise.
17975         * tests/test-array-mergesort.c: Likewise.
17976         * tests/test-array_list.c: Likewise.
17977         * tests/test-array_oset.c: Likewise.
17978         * tests/test-avltree_list.c: Likewise.
17979         * tests/test-avltree_oset.c: Likewise.
17980         * tests/test-avltreehash_list.c: Likewise.
17981         * tests/test-base64.c: Likewise.
17982         * tests/test-binary-io.c: Likewise.
17983         * tests/test-bitrotate.c: Likewise.
17984         * tests/test-btowc.c: Likewise.
17985         * tests/test-byteswap.c: Likewise.
17986         * tests/test-c-ctype.c: Likewise.
17987         * tests/test-c-stack.c: Likewise.
17988         * tests/test-c-strcasecmp.c: Likewise.
17989         * tests/test-c-strcasestr.c: Likewise.
17990         * tests/test-c-strncasecmp.c: Likewise.
17991         * tests/test-c-strstr.c: Likewise.
17992         * tests/test-canonicalize-lgpl.c: Likewise.
17993         * tests/test-canonicalize.c: Likewise.
17994         * tests/test-carray_list.c: Likewise.
17995         * tests/test-ceilf1.c: Likewise.
17996         * tests/test-ceilf2.c: Likewise.
17997         * tests/test-ceill.c: Likewise.
17998         * tests/test-chown.c: Likewise.
17999         * tests/test-cloexec.c: Likewise.
18000         * tests/test-copy-acl.c: Likewise.
18001         * tests/test-copy-file.c: Likewise.
18002         * tests/test-count-one-bits.c: Likewise.
18003         * tests/test-dprintf-posix.c: Likewise.
18004         * tests/test-dup2.c: Likewise.
18005         * tests/test-dup3.c: Likewise.
18006         * tests/test-duplocale.c: Likewise.
18007         * tests/test-fbufmode.c: Likewise.
18008         * tests/test-fchdir.c: Likewise.
18009         * tests/test-fchownat.c: Likewise.
18010         * tests/test-fcntl-safer.c: Likewise.
18011         * tests/test-fcntl.c: Likewise.
18012         * tests/test-fdopendir.c: Likewise.
18013         * tests/test-fdutimensat.c: Likewise.
18014         * tests/test-fflush2.c: Likewise.
18015         * tests/test-file-has-acl.c: Likewise.
18016         * tests/test-filevercmp.c: Likewise.
18017         * tests/test-flock.c: Likewise.
18018         * tests/test-floorf1.c: Likewise.
18019         * tests/test-floorf2.c: Likewise.
18020         * tests/test-floorl.c: Likewise.
18021         * tests/test-fnmatch.c: Likewise.
18022         * tests/test-fopen.h: Likewise.
18023         * tests/test-fpending.c: Likewise.
18024         * tests/test-fprintf-posix.c: Likewise.
18025         * tests/test-fpurge.c: Likewise.
18026         * tests/test-freadable.c: Likewise.
18027         * tests/test-freadahead.c: Likewise.
18028         * tests/test-freading.c: Likewise.
18029         * tests/test-freadptr.c: Likewise.
18030         * tests/test-freadptr2.c: Likewise.
18031         * tests/test-freadseek.c: Likewise.
18032         * tests/test-freopen.c: Likewise.
18033         * tests/test-frexp.c: Likewise.
18034         * tests/test-frexpl.c: Likewise.
18035         * tests/test-fseek.c: Likewise.
18036         * tests/test-fseeko.c: Likewise.
18037         * tests/test-fstatat.c: Likewise.
18038         * tests/test-fstrcmp.c: Likewise.
18039         * tests/test-fsync.c: Likewise.
18040         * tests/test-ftell.c: Likewise.
18041         * tests/test-ftello.c: Likewise.
18042         * tests/test-func.c: Likewise.
18043         * tests/test-futimens.c: Likewise.
18044         * tests/test-fwritable.c: Likewise.
18045         * tests/test-fwriting.c: Likewise.
18046         * tests/test-getcwd.c: Likewise.
18047         * tests/test-getdate.c: Likewise.
18048         * tests/test-getdelim.c: Likewise.
18049         * tests/test-getdtablesize.c: Likewise.
18050         * tests/test-getgroups.c: Likewise.
18051         * tests/test-getline.c: Likewise.
18052         * tests/test-getndelim2.c: Likewise.
18053         * tests/test-glob.c: Likewise.
18054         * tests/test-hash.c: Likewise.
18055         * tests/test-i-ring.c: Likewise.
18056         * tests/test-iconv-utf.c: Likewise.
18057         * tests/test-iconv.c: Likewise.
18058         * tests/test-idpriv-drop.c: Likewise.
18059         * tests/test-idpriv-droptemp.c: Likewise.
18060         * tests/test-inet_ntop.c: Likewise.
18061         * tests/test-inet_pton.c: Likewise.
18062         * tests/test-isblank.c: Likewise.
18063         * tests/test-isfinite.c: Likewise.
18064         * tests/test-isinf.c: Likewise.
18065         * tests/test-isnan.c: Likewise.
18066         * tests/test-isnand.h: Likewise.
18067         * tests/test-isnanf.h: Likewise.
18068         * tests/test-isnanl.h: Likewise.
18069         * tests/test-lchown.c: Likewise.
18070         * tests/test-ldexpl.c: Likewise.
18071         * tests/test-link.c: Likewise.
18072         * tests/test-linkat.c: Likewise.
18073         * tests/test-linked_list.c: Likewise.
18074         * tests/test-linkedhash_list.c: Likewise.
18075         * tests/test-localename.c: Likewise.
18076         * tests/test-lseek.c: Likewise.
18077         * tests/test-lstat.c: Likewise.
18078         * tests/test-mbmemcasecmp.c: Likewise.
18079         * tests/test-mbmemcasecoll.c: Likewise.
18080         * tests/test-mbrtowc.c: Likewise.
18081         * tests/test-mbscasecmp.c: Likewise.
18082         * tests/test-mbscasestr1.c: Likewise.
18083         * tests/test-mbscasestr2.c: Likewise.
18084         * tests/test-mbscasestr3.c: Likewise.
18085         * tests/test-mbscasestr4.c: Likewise.
18086         * tests/test-mbschr.c: Likewise.
18087         * tests/test-mbscspn.c: Likewise.
18088         * tests/test-mbsinit.c: Likewise.
18089         * tests/test-mbsncasecmp.c: Likewise.
18090         * tests/test-mbsnrtowcs.c: Likewise.
18091         * tests/test-mbspbrk.c: Likewise.
18092         * tests/test-mbspcasecmp.c: Likewise.
18093         * tests/test-mbsrchr.c: Likewise.
18094         * tests/test-mbsrtowcs.c: Likewise.
18095         * tests/test-mbsspn.c: Likewise.
18096         * tests/test-mbsstr1.c: Likewise.
18097         * tests/test-mbsstr2.c: Likewise.
18098         * tests/test-mbsstr3.c: Likewise.
18099         * tests/test-memchr.c: Likewise.
18100         * tests/test-memchr2.c: Likewise.
18101         * tests/test-memcmp.c: Likewise.
18102         * tests/test-memmem.c: Likewise.
18103         * tests/test-memrchr.c: Likewise.
18104         * tests/test-mkdir.c: Likewise.
18105         * tests/test-mkdirat.c: Likewise.
18106         * tests/test-mkfifo.c: Likewise.
18107         * tests/test-mkfifoat.c: Likewise.
18108         * tests/test-mknod.c: Likewise.
18109         * tests/test-nanosleep.c: Likewise.
18110         * tests/test-nl_langinfo.c: Likewise.
18111         * tests/test-obstack-printf.c: Likewise.
18112         * tests/test-open.c: Likewise.
18113         * tests/test-openat.c: Likewise.
18114         * tests/test-pipe-filter-gi1.c: Likewise.
18115         * tests/test-pipe-filter-gi2-main.c: Likewise.
18116         * tests/test-pipe-filter-ii1.c: Likewise.
18117         * tests/test-pipe-filter-ii2-main.c: Likewise.
18118         * tests/test-pipe2.c: Likewise.
18119         * tests/test-popen.h: Likewise.
18120         * tests/test-posixtm.c: Likewise.
18121         * tests/test-pread.c: Likewise.
18122         * tests/test-printf-frexp.c: Likewise.
18123         * tests/test-printf-frexpl.c: Likewise.
18124         * tests/test-printf-posix.c: Likewise.
18125         * tests/test-priv-set.c: Likewise.
18126         * tests/test-quotearg.c: Likewise.
18127         * tests/test-random_r.c: Likewise.
18128         * tests/test-rawmemchr.c: Likewise.
18129         * tests/test-rbtree_list.c: Likewise.
18130         * tests/test-rbtree_oset.c: Likewise.
18131         * tests/test-rbtreehash_list.c: Likewise.
18132         * tests/test-readlink.c: Likewise.
18133         * tests/test-remove.c: Likewise.
18134         * tests/test-rename.c: Likewise.
18135         * tests/test-renameat.c: Likewise.
18136         * tests/test-rmdir.c: Likewise.
18137         * tests/test-round1.c: Likewise.
18138         * tests/test-roundf1.c: Likewise.
18139         * tests/test-roundl.c: Likewise.
18140         * tests/test-safe-alloc.c: Likewise.
18141         * tests/test-sameacls.c: Likewise.
18142         * tests/test-set-mode-acl.c: Likewise.
18143         * tests/test-setenv.c: Likewise.
18144         * tests/test-sigaction.c: Likewise.
18145         * tests/test-signbit.c: Likewise.
18146         * tests/test-sleep.c: Likewise.
18147         * tests/test-snprintf-posix.c: Likewise.
18148         * tests/test-snprintf.c: Likewise.
18149         * tests/test-sprintf-posix.c: Likewise.
18150         * tests/test-stat-time.c: Likewise.
18151         * tests/test-stat.c: Likewise.
18152         * tests/test-strcasestr.c: Likewise.
18153         * tests/test-strchrnul.c: Likewise.
18154         * tests/test-strerror.c: Likewise.
18155         * tests/test-striconv.c: Likewise.
18156         * tests/test-striconveh.c: Likewise.
18157         * tests/test-striconveha.c: Likewise.
18158         * tests/test-strsignal.c: Likewise.
18159         * tests/test-strstr.c: Likewise.
18160         * tests/test-strtod.c: Likewise.
18161         * tests/test-strverscmp.c: Likewise.
18162         * tests/test-symlink.c: Likewise.
18163         * tests/test-symlinkat.c: Likewise.
18164         * tests/test-trunc1.c: Likewise.
18165         * tests/test-trunc2.c: Likewise.
18166         * tests/test-truncf1.c: Likewise.
18167         * tests/test-truncf2.c: Likewise.
18168         * tests/test-truncl.c: Likewise.
18169         * tests/test-uname.c: Likewise.
18170         * tests/test-unlink.c: Likewise.
18171         * tests/test-unlinkat.c: Likewise.
18172         * tests/test-unsetenv.c: Likewise.
18173         * tests/test-usleep.c: Likewise.
18174         * tests/test-utimens.c: Likewise.
18175         * tests/test-utimensat.c: Likewise.
18176         * tests/test-vasnprintf-posix.c: Likewise.
18177         * tests/test-vasnprintf-posix2.c: Likewise.
18178         * tests/test-vasnprintf.c: Likewise.
18179         * tests/test-vasprintf-posix.c: Likewise.
18180         * tests/test-vasprintf.c: Likewise.
18181         * tests/test-vdprintf-posix.c: Likewise.
18182         * tests/test-vfprintf-posix.c: Likewise.
18183         * tests/test-vprintf-posix.c: Likewise.
18184         * tests/test-vsnprintf-posix.c: Likewise.
18185         * tests/test-vsnprintf.c: Likewise.
18186         * tests/test-vsprintf-posix.c: Likewise.
18187         * tests/test-wcrtomb.c: Likewise.
18188         * tests/test-wcsnrtombs.c: Likewise.
18189         * tests/test-wcsrtombs.c: Likewise.
18190         * tests/test-wctype.c: Likewise.
18191         * tests/test-wcwidth.c: Likewise.
18192         * tests/test-xfprintf-posix.c: Likewise.
18193         * tests/test-xmemdup0.c: Likewise.
18194         * tests/test-xprintf-posix.c: Likewise.
18195         * tests/test-xvasprintf.c: Likewise.
18196         * tests/unicase/test-locale-language.c: Likewise.
18197         * tests/unicase/test-mapping-part1.h: Likewise.
18198         * tests/unicase/test-predicate-part1.h: Likewise.
18199         * tests/unicase/test-u8-casecmp.c: Likewise.
18200         * tests/unicase/test-u8-casecoll.c: Likewise.
18201         * tests/unicase/test-u8-casefold.c: Likewise.
18202         * tests/unicase/test-u8-is-cased.c: Likewise.
18203         * tests/unicase/test-u8-is-casefolded.c: Likewise.
18204         * tests/unicase/test-u8-is-lowercase.c: Likewise.
18205         * tests/unicase/test-u8-is-titlecase.c: Likewise.
18206         * tests/unicase/test-u8-is-uppercase.c: Likewise.
18207         * tests/unicase/test-u8-tolower.c: Likewise.
18208         * tests/unicase/test-u8-totitle.c: Likewise.
18209         * tests/unicase/test-u8-toupper.c: Likewise.
18210         * tests/unicase/test-u16-casecmp.c: Likewise.
18211         * tests/unicase/test-u16-casecoll.c: Likewise.
18212         * tests/unicase/test-u16-casefold.c: Likewise.
18213         * tests/unicase/test-u16-is-cased.c: Likewise.
18214         * tests/unicase/test-u16-is-casefolded.c: Likewise.
18215         * tests/unicase/test-u16-is-lowercase.c: Likewise.
18216         * tests/unicase/test-u16-is-titlecase.c: Likewise.
18217         * tests/unicase/test-u16-is-uppercase.c: Likewise.
18218         * tests/unicase/test-u16-tolower.c: Likewise.
18219         * tests/unicase/test-u16-totitle.c: Likewise.
18220         * tests/unicase/test-u16-toupper.c: Likewise.
18221         * tests/unicase/test-u32-casecmp.c: Likewise.
18222         * tests/unicase/test-u32-casecoll.c: Likewise.
18223         * tests/unicase/test-u32-casefold.c: Likewise.
18224         * tests/unicase/test-u32-is-cased.c: Likewise.
18225         * tests/unicase/test-u32-is-casefolded.c: Likewise.
18226         * tests/unicase/test-u32-is-lowercase.c: Likewise.
18227         * tests/unicase/test-u32-is-titlecase.c: Likewise.
18228         * tests/unicase/test-u32-is-uppercase.c: Likewise.
18229         * tests/unicase/test-u32-tolower.c: Likewise.
18230         * tests/unicase/test-u32-totitle.c: Likewise.
18231         * tests/unicase/test-u32-toupper.c: Likewise.
18232         * tests/unicase/test-ulc-casecmp.c: Likewise.
18233         * tests/unicase/test-ulc-casecoll.c: Likewise.
18234         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
18235         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
18236         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
18237         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
18238         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
18239         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
18240         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
18241         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
18242         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
18243         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
18244         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
18245         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
18246         * tests/unictype/test-bidi_byname.c: Likewise.
18247         * tests/unictype/test-bidi_name.c: Likewise.
18248         * tests/unictype/test-bidi_of.c: Likewise.
18249         * tests/unictype/test-bidi_test.c: Likewise.
18250         * tests/unictype/test-block_list.c: Likewise.
18251         * tests/unictype/test-block_of.c: Likewise.
18252         * tests/unictype/test-block_test.c: Likewise.
18253         * tests/unictype/test-categ_and.c: Likewise.
18254         * tests/unictype/test-categ_and_not.c: Likewise.
18255         * tests/unictype/test-categ_byname.c: Likewise.
18256         * tests/unictype/test-categ_name.c: Likewise.
18257         * tests/unictype/test-categ_none.c: Likewise.
18258         * tests/unictype/test-categ_of.c: Likewise.
18259         * tests/unictype/test-categ_or.c: Likewise.
18260         * tests/unictype/test-categ_test_withtable.c: Likewise.
18261         * tests/unictype/test-combining.c: Likewise.
18262         * tests/unictype/test-decdigit.c: Likewise.
18263         * tests/unictype/test-digit.c: Likewise.
18264         * tests/unictype/test-mirror.c: Likewise.
18265         * tests/unictype/test-numeric.c: Likewise.
18266         * tests/unictype/test-pr_byname.c: Likewise.
18267         * tests/unictype/test-pr_test.c: Likewise.
18268         * tests/unictype/test-predicate-part1.h: Likewise.
18269         * tests/unictype/test-scripts.c: Likewise.
18270         * tests/unictype/test-sy_c_ident.c: Likewise.
18271         * tests/unictype/test-sy_java_ident.c: Likewise.
18272         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
18273         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
18274         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
18275         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
18276         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
18277         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
18278         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
18279         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
18280         * tests/uninorm/test-canonical-decomposition.c: Likewise.
18281         * tests/uninorm/test-compat-decomposition.c: Likewise.
18282         * tests/uninorm/test-composition.c: Likewise.
18283         * tests/uninorm/test-decomposing-form.c: Likewise.
18284         * tests/uninorm/test-decomposition.c: Likewise.
18285         * tests/uninorm/test-u8-nfc.c: Likewise.
18286         * tests/uninorm/test-u8-nfd.c: Likewise.
18287         * tests/uninorm/test-u8-nfkc.c: Likewise.
18288         * tests/uninorm/test-u8-nfkd.c: Likewise.
18289         * tests/uninorm/test-u8-normcmp.c: Likewise.
18290         * tests/uninorm/test-u8-normcoll.c: Likewise.
18291         * tests/uninorm/test-u16-nfc.c: Likewise.
18292         * tests/uninorm/test-u16-nfd.c: Likewise.
18293         * tests/uninorm/test-u16-nfkc.c: Likewise.
18294         * tests/uninorm/test-u16-nfkd.c: Likewise.
18295         * tests/uninorm/test-u16-normcmp.c: Likewise.
18296         * tests/uninorm/test-u16-normcoll.c: Likewise.
18297         * tests/uninorm/test-u32-nfc.c: Likewise.
18298         * tests/uninorm/test-u32-nfd.c: Likewise.
18299         * tests/uninorm/test-u32-nfkc.c: Likewise.
18300         * tests/uninorm/test-u32-nfkd.c: Likewise.
18301         * tests/uninorm/test-u32-normalize-big.c: Likewise.
18302         * tests/uninorm/test-u32-normcmp.c: Likewise.
18303         * tests/uninorm/test-u32-normcoll.c: Likewise.
18304         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
18305         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
18306         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
18307         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
18308         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
18309         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
18310         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
18311         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
18312         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
18313         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
18314         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
18315         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
18316         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
18317         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
18318         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
18319         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
18320         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
18321         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
18322         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
18323         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
18324         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
18325         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
18326         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
18327         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
18328         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
18329         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
18330         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
18331         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
18332         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
18333         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
18334         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
18335         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
18336         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
18337         * tests/uniwidth/test-u8-strwidth.c: Likewise.
18338         * tests/uniwidth/test-u8-width.c: Likewise.
18339         * tests/uniwidth/test-u16-strwidth.c: Likewise.
18340         * tests/uniwidth/test-u16-width.c: Likewise.
18341         * tests/uniwidth/test-u32-strwidth.c: Likewise.
18342         * tests/uniwidth/test-u32-width.c: Likewise.
18343         * tests/uniwidth/test-uc_width.c: Likewise.
18344         * tests/uniwidth/test-uc_width2.c: Likewise.
18345         * modules/acl-tests (Files): Add tests/macros.h.
18346         * modules/areadlink-tests (Files): Likewise.
18347         * modules/areadlink-with-size-tests (Files): Likewise.
18348         * modules/areadlinkat-tests (Files): Likewise.
18349         * modules/areadlinkat-with-size-tests (Files): Likewise.
18350         * modules/argmatch-tests (Files): Likewise.
18351         * modules/argv-iter-tests (Files): Likewise.
18352         * modules/array-list-tests (Files): Likewise.
18353         * modules/array-mergesort-tests (Files): Likewise.
18354         * modules/array-oset-tests (Files): Likewise.
18355         * modules/avltree-list-tests (Files): Likewise.
18356         * modules/avltree-oset-tests (Files): Likewise.
18357         * modules/avltreehash-list-tests (Files): Likewise.
18358         * modules/base64-tests (Files): Likewise.
18359         * modules/binary-io-tests (Files): Likewise.
18360         * modules/bitrotate-tests (Files): Likewise.
18361         * modules/btowc-tests (Files): Likewise.
18362         * modules/byteswap-tests (Files): Likewise.
18363         * modules/c-ctype-tests (Files): Likewise.
18364         * modules/c-stack-tests (Files): Likewise.
18365         * modules/c-strcase-tests (Files): Likewise.
18366         * modules/c-strcasestr-tests (Files): Likewise.
18367         * modules/c-strstr-tests (Files): Likewise.
18368         * modules/canonicalize-lgpl-tests (Files): Likewise.
18369         * modules/canonicalize-tests (Files): Likewise.
18370         * modules/carray-list-tests (Files): Likewise.
18371         * modules/ceilf-tests (Files): Likewise.
18372         * modules/ceill-tests (Files): Likewise.
18373         * modules/chown-tests (Files): Likewise.
18374         * modules/cloexec-tests (Files): Likewise.
18375         * modules/copy-file-tests (Files): Likewise.
18376         * modules/count-one-bits-tests (Files): Likewise.
18377         * modules/dprintf-posix-tests (Files): Likewise.
18378         * modules/dup2-tests (Files): Likewise.
18379         * modules/dup3-tests (Files): Likewise.
18380         * modules/duplocale-tests (Files): Likewise.
18381         * modules/fbufmode-tests (Files): Likewise.
18382         * modules/fchdir-tests (Files): Likewise.
18383         * modules/fcntl-safer-tests (Files): Likewise.
18384         * modules/fcntl-tests (Files): Likewise.
18385         * modules/fdopendir-tests (Files): Likewise.
18386         * modules/fdutimensat-tests (Files): Likewise.
18387         * modules/fflush-tests (Files): Likewise.
18388         * modules/filevercmp-tests (Files): Likewise.
18389         * modules/flock-tests (Files): Likewise.
18390         * modules/floorf-tests (Files): Likewise.
18391         * modules/floorl-tests (Files): Likewise.
18392         * modules/fnmatch-tests (Files): Likewise.
18393         * modules/fopen-safer-tests (Files): Likewise.
18394         * modules/fopen-tests (Files): Likewise.
18395         * modules/fpending-tests (Files): Likewise.
18396         * modules/fprintf-posix-tests (Files): Likewise.
18397         * modules/fpurge-tests (Files): Likewise.
18398         * modules/freadable-tests (Files): Likewise.
18399         * modules/freadahead-tests (Files): Likewise.
18400         * modules/freading-tests (Files): Likewise.
18401         * modules/freadptr-tests (Files): Likewise.
18402         * modules/freadseek-tests (Files): Likewise.
18403         * modules/freopen-tests (Files): Likewise.
18404         * modules/frexp-nolibm-tests (Files): Likewise.
18405         * modules/frexp-tests (Files): Likewise.
18406         * modules/frexpl-nolibm-tests (Files): Likewise.
18407         * modules/frexpl-tests (Files): Likewise.
18408         * modules/fseek-tests (Files): Likewise.
18409         * modules/fseeko-tests (Files): Likewise.
18410         * modules/fstrcmp-tests (Files): Likewise.
18411         * modules/fsync-tests (Files): Likewise.
18412         * modules/ftell-tests (Files): Likewise.
18413         * modules/ftello-tests (Files): Likewise.
18414         * modules/func-tests (Files): Likewise.
18415         * modules/futimens-tests (Files): Likewise.
18416         * modules/fwritable-tests (Files): Likewise.
18417         * modules/fwriting-tests (Files): Likewise.
18418         * modules/getcwd-tests (Files): Likewise.
18419         * modules/getdate-tests (Files): Likewise.
18420         * modules/getdelim-tests (Files): Likewise.
18421         * modules/getdtablesize-tests (Files): Likewise.
18422         * modules/getgroups-tests (Files): Likewise.
18423         * modules/getline-tests (Files): Likewise.
18424         * modules/getndelim2-tests (Files): Likewise.
18425         * modules/glob-tests (Files): Likewise.
18426         * modules/hash-tests (Files): Likewise.
18427         * modules/i-ring-tests (Files): Likewise.
18428         * modules/iconv-tests (Files): Likewise.
18429         * modules/iconv_open-utf-tests (Files): Likewise.
18430         * modules/idpriv-drop-tests (Files): Likewise.
18431         * modules/idpriv-droptemp-tests (Files): Likewise.
18432         * modules/inet_ntop-tests (Files): Likewise.
18433         * modules/inet_pton-tests (Files): Likewise.
18434         * modules/isblank-tests (Files): Likewise.
18435         * modules/isfinite-tests (Files): Likewise.
18436         * modules/isinf-tests (Files): Likewise.
18437         * modules/isnan-tests (Files): Likewise.
18438         * modules/isnand-nolibm-tests (Files): Likewise.
18439         * modules/isnand-tests (Files): Likewise.
18440         * modules/isnanf-nolibm-tests (Files): Likewise.
18441         * modules/isnanf-tests (Files): Likewise.
18442         * modules/isnanl-nolibm-tests (Files): Likewise.
18443         * modules/isnanl-tests (Files): Likewise.
18444         * modules/lchown-tests (Files): Likewise.
18445         * modules/ldexpl-tests (Files): Likewise.
18446         * modules/link-tests (Files): Likewise.
18447         * modules/linkat-tests (Files): Likewise.
18448         * modules/linked-list-tests (Files): Likewise.
18449         * modules/linkedhash-list-tests (Files): Likewise.
18450         * modules/localename-tests (Files): Likewise.
18451         * modules/lseek-tests (Files): Likewise.
18452         * modules/lstat-tests (Files): Likewise.
18453         * modules/mbmemcasecmp-tests (Files): Likewise.
18454         * modules/mbmemcasecoll-tests (Files): Likewise.
18455         * modules/mbrtowc-tests (Files): Likewise.
18456         * modules/mbscasecmp-tests (Files): Likewise.
18457         * modules/mbscasestr-tests (Files): Likewise.
18458         * modules/mbschr-tests (Files): Likewise.
18459         * modules/mbscspn-tests (Files): Likewise.
18460         * modules/mbsinit-tests (Files): Likewise.
18461         * modules/mbsncasecmp-tests (Files): Likewise.
18462         * modules/mbsnrtowcs-tests (Files): Likewise.
18463         * modules/mbspbrk-tests (Files): Likewise.
18464         * modules/mbspcasecmp-tests (Files): Likewise.
18465         * modules/mbsrchr-tests (Files): Likewise.
18466         * modules/mbsrtowcs-tests (Files): Likewise.
18467         * modules/mbsspn-tests (Files): Likewise.
18468         * modules/mbsstr-tests (Files): Likewise.
18469         * modules/memchr-tests (Files): Likewise.
18470         * modules/memchr2-tests (Files): Likewise.
18471         * modules/memcmp-tests (Files): Likewise.
18472         * modules/memmem-tests (Files): Likewise.
18473         * modules/memrchr-tests (Files): Likewise.
18474         * modules/mkdir-tests (Files): Likewise.
18475         * modules/mkfifo-tests (Files): Likewise.
18476         * modules/mkfifoat-tests (Files): Likewise.
18477         * modules/mknod-tests (Files): Likewise.
18478         * modules/nanosleep-tests (Files): Likewise.
18479         * modules/nl_langinfo-tests (Files): Likewise.
18480         * modules/obstack-printf-tests (Files): Likewise.
18481         * modules/open-tests (Files): Likewise.
18482         * modules/openat-tests (Files): Likewise.
18483         * modules/pipe-filter-gi-tests (Files): Likewise.
18484         * modules/pipe-filter-ii-tests (Files): Likewise.
18485         * modules/pipe2-tests (Files): Likewise.
18486         * modules/popen-safer-tests (Files): Likewise.
18487         * modules/popen-tests (Files): Likewise.
18488         * modules/posixtm-tests (Files): Likewise.
18489         * modules/pread-tests (Files): Likewise.
18490         * modules/printf-frexp-tests (Files): Likewise.
18491         * modules/printf-frexpl-tests (Files): Likewise.
18492         * modules/printf-posix-tests (Files): Likewise.
18493         * modules/priv-set-tests (Files): Likewise.
18494         * modules/quotearg-tests (Files): Likewise.
18495         * modules/random_r-tests (Files): Likewise.
18496         * modules/rawmemchr-tests (Files): Likewise.
18497         * modules/rbtree-list-tests (Files): Likewise.
18498         * modules/rbtree-oset-tests (Files): Likewise.
18499         * modules/rbtreehash-list-tests (Files): Likewise.
18500         * modules/readlink-tests (Files): Likewise.
18501         * modules/remove-tests (Files): Likewise.
18502         * modules/rename-tests (Files): Likewise.
18503         * modules/renameat-tests (Files): Likewise.
18504         * modules/rmdir-tests (Files): Likewise.
18505         * modules/round-tests (Files): Likewise.
18506         * modules/roundf-tests (Files): Likewise.
18507         * modules/roundl-tests (Files): Likewise.
18508         * modules/safe-alloc-tests (Files): Likewise.
18509         * modules/setenv-tests (Files): Likewise.
18510         * modules/sigaction-tests (Files): Likewise.
18511         * modules/signbit-tests (Files): Likewise.
18512         * modules/sleep-tests (Files): Likewise.
18513         * modules/snprintf-posix-tests (Files): Likewise.
18514         * modules/snprintf-tests (Files): Likewise.
18515         * modules/sprintf-posix-tests (Files): Likewise.
18516         * modules/stat-tests (Files): Likewise.
18517         * modules/stat-time-tests (Files): Likewise.
18518         * modules/strcasestr-tests (Files): Likewise.
18519         * modules/strchrnul-tests (Files): Likewise.
18520         * modules/strerror-tests (Files): Likewise.
18521         * modules/striconv-tests (Files): Likewise.
18522         * modules/striconveh-tests (Files): Likewise.
18523         * modules/striconveha-tests (Files): Likewise.
18524         * modules/strsignal-tests (Files): Likewise.
18525         * modules/strstr-tests (Files): Likewise.
18526         * modules/strtod-tests (Files): Likewise.
18527         * modules/strverscmp-tests (Files): Likewise.
18528         * modules/symlink-tests (Files): Likewise.
18529         * modules/symlinkat-tests (Files): Likewise.
18530         * modules/trunc-tests (Files): Likewise.
18531         * modules/truncf-tests (Files): Likewise.
18532         * modules/truncl-tests (Files): Likewise.
18533         * modules/uname-tests (Files): Likewise.
18534         * modules/unicase/cased-tests (Files): Likewise.
18535         * modules/unicase/ignorable-tests (Files): Likewise.
18536         * modules/unicase/locale-language-tests (Files): Likewise.
18537         * modules/unicase/tolower-tests (Files): Likewise.
18538         * modules/unicase/totitle-tests (Files): Likewise.
18539         * modules/unicase/toupper-tests (Files): Likewise.
18540         * modules/unicase/u8-casecmp-tests (Files): Likewise.
18541         * modules/unicase/u8-casecoll-tests (Files): Likewise.
18542         * modules/unicase/u8-casefold-tests (Files): Likewise.
18543         * modules/unicase/u8-is-cased-tests (Files): Likewise.
18544         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
18545         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
18546         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
18547         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
18548         * modules/unicase/u8-tolower-tests (Files): Likewise.
18549         * modules/unicase/u8-totitle-tests (Files): Likewise.
18550         * modules/unicase/u8-toupper-tests (Files): Likewise.
18551         * modules/unicase/u16-casecmp-tests (Files): Likewise.
18552         * modules/unicase/u16-casecoll-tests (Files): Likewise.
18553         * modules/unicase/u16-casefold-tests (Files): Likewise.
18554         * modules/unicase/u16-is-cased-tests (Files): Likewise.
18555         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
18556         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
18557         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
18558         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
18559         * modules/unicase/u16-tolower-tests (Files): Likewise.
18560         * modules/unicase/u16-totitle-tests (Files): Likewise.
18561         * modules/unicase/u16-toupper-tests (Files): Likewise.
18562         * modules/unicase/u32-casecmp-tests (Files): Likewise.
18563         * modules/unicase/u32-casecoll-tests (Files): Likewise.
18564         * modules/unicase/u32-casefold-tests (Files): Likewise.
18565         * modules/unicase/u32-is-cased-tests (Files): Likewise.
18566         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
18567         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
18568         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
18569         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
18570         * modules/unicase/u32-tolower-tests (Files): Likewise.
18571         * modules/unicase/u32-totitle-tests (Files): Likewise.
18572         * modules/unicase/u32-toupper-tests (Files): Likewise.
18573         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
18574         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
18575         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
18576         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
18577         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
18578         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
18579         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
18580         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
18581         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
18582         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
18583         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
18584         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
18585         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
18586         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
18587         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
18588         * modules/unictype/bidicategory-name-tests (Files): Likewise.
18589         * modules/unictype/bidicategory-of-tests (Files): Likewise.
18590         * modules/unictype/bidicategory-test-tests (Files): Likewise.
18591         * modules/unictype/block-list-tests (Files): Likewise.
18592         * modules/unictype/block-of-tests (Files): Likewise.
18593         * modules/unictype/block-test-tests (Files): Likewise.
18594         * modules/unictype/category-C-tests (Files): Likewise.
18595         * modules/unictype/category-Cc-tests (Files): Likewise.
18596         * modules/unictype/category-Cf-tests (Files): Likewise.
18597         * modules/unictype/category-Cn-tests (Files): Likewise.
18598         * modules/unictype/category-Co-tests (Files): Likewise.
18599         * modules/unictype/category-Cs-tests (Files): Likewise.
18600         * modules/unictype/category-L-tests (Files): Likewise.
18601         * modules/unictype/category-Ll-tests (Files): Likewise.
18602         * modules/unictype/category-Lm-tests (Files): Likewise.
18603         * modules/unictype/category-Lo-tests (Files): Likewise.
18604         * modules/unictype/category-Lt-tests (Files): Likewise.
18605         * modules/unictype/category-Lu-tests (Files): Likewise.
18606         * modules/unictype/category-M-tests (Files): Likewise.
18607         * modules/unictype/category-Mc-tests (Files): Likewise.
18608         * modules/unictype/category-Me-tests (Files): Likewise.
18609         * modules/unictype/category-Mn-tests (Files): Likewise.
18610         * modules/unictype/category-N-tests (Files): Likewise.
18611         * modules/unictype/category-Nd-tests (Files): Likewise.
18612         * modules/unictype/category-Nl-tests (Files): Likewise.
18613         * modules/unictype/category-No-tests (Files): Likewise.
18614         * modules/unictype/category-P-tests (Files): Likewise.
18615         * modules/unictype/category-Pc-tests (Files): Likewise.
18616         * modules/unictype/category-Pd-tests (Files): Likewise.
18617         * modules/unictype/category-Pe-tests (Files): Likewise.
18618         * modules/unictype/category-Pf-tests (Files): Likewise.
18619         * modules/unictype/category-Pi-tests (Files): Likewise.
18620         * modules/unictype/category-Po-tests (Files): Likewise.
18621         * modules/unictype/category-Ps-tests (Files): Likewise.
18622         * modules/unictype/category-S-tests (Files): Likewise.
18623         * modules/unictype/category-Sc-tests (Files): Likewise.
18624         * modules/unictype/category-Sk-tests (Files): Likewise.
18625         * modules/unictype/category-Sm-tests (Files): Likewise.
18626         * modules/unictype/category-So-tests (Files): Likewise.
18627         * modules/unictype/category-Z-tests (Files): Likewise.
18628         * modules/unictype/category-Zl-tests (Files): Likewise.
18629         * modules/unictype/category-Zp-tests (Files): Likewise.
18630         * modules/unictype/category-Zs-tests (Files): Likewise.
18631         * modules/unictype/category-and-not-tests (Files): Likewise.
18632         * modules/unictype/category-and-tests (Files): Likewise.
18633         * modules/unictype/category-byname-tests (Files): Likewise.
18634         * modules/unictype/category-name-tests (Files): Likewise.
18635         * modules/unictype/category-none-tests (Files): Likewise.
18636         * modules/unictype/category-of-tests (Files): Likewise.
18637         * modules/unictype/category-or-tests (Files): Likewise.
18638         * modules/unictype/category-test-withtable-tests (Files): Likewise.
18639         * modules/unictype/combining-class-tests (Files): Likewise.
18640         * modules/unictype/ctype-alnum-tests (Files): Likewise.
18641         * modules/unictype/ctype-alpha-tests (Files): Likewise.
18642         * modules/unictype/ctype-blank-tests (Files): Likewise.
18643         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
18644         * modules/unictype/ctype-digit-tests (Files): Likewise.
18645         * modules/unictype/ctype-graph-tests (Files): Likewise.
18646         * modules/unictype/ctype-lower-tests (Files): Likewise.
18647         * modules/unictype/ctype-print-tests (Files): Likewise.
18648         * modules/unictype/ctype-punct-tests (Files): Likewise.
18649         * modules/unictype/ctype-space-tests (Files): Likewise.
18650         * modules/unictype/ctype-upper-tests (Files): Likewise.
18651         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
18652         * modules/unictype/decimal-digit-tests (Files): Likewise.
18653         * modules/unictype/digit-tests (Files): Likewise.
18654         * modules/unictype/mirror-tests (Files): Likewise.
18655         * modules/unictype/numeric-tests (Files): Likewise.
18656         * modules/unictype/property-alphabetic-tests (Files): Likewise.
18657         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
18658         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
18659         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
18660         Likewise.
18661         * modules/unictype/property-bidi-block-separator-tests (Files):
18662         Likewise.
18663         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
18664         Likewise.
18665         * modules/unictype/property-bidi-common-separator-tests (Files):
18666         Likewise.
18667         * modules/unictype/property-bidi-control-tests (Files): Likewise.
18668         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
18669         Likewise.
18670         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
18671         Likewise.
18672         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
18673         Likewise.
18674         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
18675         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
18676         Likewise.
18677         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
18678         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
18679         Likewise.
18680         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
18681         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
18682         * modules/unictype/property-bidi-segment-separator-tests (Files):
18683         Likewise.
18684         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
18685         * modules/unictype/property-byname-tests (Files): Likewise.
18686         * modules/unictype/property-combining-tests (Files): Likewise.
18687         * modules/unictype/property-composite-tests (Files): Likewise.
18688         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
18689         * modules/unictype/property-dash-tests (Files): Likewise.
18690         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
18691         * modules/unictype/property-default-ignorable-code-point-tests (Files):
18692         Likewise.
18693         * modules/unictype/property-deprecated-tests (Files): Likewise.
18694         * modules/unictype/property-diacritic-tests (Files): Likewise.
18695         * modules/unictype/property-extender-tests (Files): Likewise.
18696         * modules/unictype/property-format-control-tests (Files): Likewise.
18697         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
18698         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
18699         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
18700         * modules/unictype/property-hex-digit-tests (Files): Likewise.
18701         * modules/unictype/property-hyphen-tests (Files): Likewise.
18702         * modules/unictype/property-id-continue-tests (Files): Likewise.
18703         * modules/unictype/property-id-start-tests (Files): Likewise.
18704         * modules/unictype/property-ideographic-tests (Files): Likewise.
18705         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
18706         * modules/unictype/property-ids-trinary-operator-tests (Files):
18707         Likewise.
18708         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
18709         * modules/unictype/property-iso-control-tests (Files): Likewise.
18710         * modules/unictype/property-join-control-tests (Files): Likewise.
18711         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
18712         * modules/unictype/property-line-separator-tests (Files): Likewise.
18713         * modules/unictype/property-logical-order-exception-tests (Files):
18714         Likewise.
18715         * modules/unictype/property-lowercase-tests (Files): Likewise.
18716         * modules/unictype/property-math-tests (Files): Likewise.
18717         * modules/unictype/property-non-break-tests (Files): Likewise.
18718         * modules/unictype/property-not-a-character-tests (Files): Likewise.
18719         * modules/unictype/property-numeric-tests (Files): Likewise.
18720         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
18721         * modules/unictype/property-other-default-ignorable-code-point-tests
18722         (Files): Likewise.
18723         * modules/unictype/property-other-grapheme-extend-tests (Files):
18724         Likewise.
18725         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
18726         * modules/unictype/property-other-id-start-tests (Files): Likewise.
18727         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
18728         * modules/unictype/property-other-math-tests (Files): Likewise.
18729         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
18730         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
18731         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
18732         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
18733         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
18734         * modules/unictype/property-private-use-tests (Files): Likewise.
18735         * modules/unictype/property-punctuation-tests (Files): Likewise.
18736         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
18737         * modules/unictype/property-radical-tests (Files): Likewise.
18738         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
18739         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
18740         * modules/unictype/property-space-tests (Files): Likewise.
18741         * modules/unictype/property-terminal-punctuation-tests (Files):
18742         Likewise.
18743         * modules/unictype/property-test-tests (Files): Likewise.
18744         * modules/unictype/property-titlecase-tests (Files): Likewise.
18745         * modules/unictype/property-unassigned-code-value-tests (Files):
18746         Likewise.
18747         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
18748         * modules/unictype/property-uppercase-tests (Files): Likewise.
18749         * modules/unictype/property-variation-selector-tests (Files): Likewise.
18750         * modules/unictype/property-white-space-tests (Files): Likewise.
18751         * modules/unictype/property-xid-continue-tests (Files): Likewise.
18752         * modules/unictype/property-xid-start-tests (Files): Likewise.
18753         * modules/unictype/property-zero-width-tests (Files): Likewise.
18754         * modules/unictype/scripts-tests (Files): Likewise.
18755         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
18756         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
18757         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
18758         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
18759         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
18760         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
18761         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
18762         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
18763         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
18764         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
18765         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
18766         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
18767         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
18768         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
18769         * modules/uninorm/composition-tests (Files): Likewise.
18770         * modules/uninorm/decomposing-form-tests (Files): Likewise.
18771         * modules/uninorm/decomposition-tests (Files): Likewise.
18772         * modules/uninorm/filter-tests (Files): Likewise.
18773         * modules/uninorm/nfc-tests (Files): Likewise.
18774         * modules/uninorm/nfd-tests (Files): Likewise.
18775         * modules/uninorm/nfkc-tests (Files): Likewise.
18776         * modules/uninorm/nfkd-tests (Files): Likewise.
18777         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
18778         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
18779         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
18780         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
18781         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
18782         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
18783         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
18784         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
18785         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
18786         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
18787         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
18788         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
18789         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
18790         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
18791         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
18792         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
18793         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
18794         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
18795         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
18796         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
18797         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
18798         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
18799         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
18800         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
18801         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
18802         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
18803         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
18804         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
18805         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
18806         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
18807         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
18808         * modules/uniwidth/u8-width-tests (Files): Likewise.
18809         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
18810         * modules/uniwidth/u16-width-tests (Files): Likewise.
18811         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
18812         * modules/uniwidth/u32-width-tests (Files): Likewise.
18813         * modules/uniwidth/width-tests (Files): Likewise.
18814         * modules/unlink-tests (Files): Likewise.
18815         * modules/unsetenv-tests (Files): Likewise.
18816         * modules/usleep-tests (Files): Likewise.
18817         * modules/utimens-tests (Files): Likewise.
18818         * modules/utimensat-tests (Files): Likewise.
18819         * modules/vasnprintf-posix-tests (Files): Likewise.
18820         * modules/vasnprintf-tests (Files): Likewise.
18821         * modules/vasprintf-posix-tests (Files): Likewise.
18822         * modules/vasprintf-tests (Files): Likewise.
18823         * modules/vdprintf-posix-tests (Files): Likewise.
18824         * modules/vfprintf-posix-tests (Files): Likewise.
18825         * modules/vprintf-posix-tests (Files): Likewise.
18826         * modules/vsnprintf-posix-tests (Files): Likewise.
18827         * modules/vsnprintf-tests (Files): Likewise.
18828         * modules/vsprintf-posix-tests (Files): Likewise.
18829         * modules/wcrtomb-tests (Files): Likewise.
18830         * modules/wcsnrtombs-tests (Files): Likewise.
18831         * modules/wcsrtombs-tests (Files): Likewise.
18832         * modules/wctype-tests (Files): Likewise.
18833         * modules/wcwidth-tests (Files): Likewise.
18834         * modules/xmemdup0-tests (Files): Likewise.
18835         * modules/xprintf-posix-tests (Files): Likewise.
18836         * modules/xvasprintf-tests (Files): Likewise.
18837
18838 2009-12-24  Eric Blake  <ebb9@byu.net>
18839
18840         test-nanosleep: fix typo
18841         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
18842         patch.
18843         Reported by Bruno Haible.
18844
18845 2009-12-24  Bruno Haible  <bruno@clisp.org>
18846
18847         Reduce namespace pollution on glibc systems.
18848         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
18849         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
18850         systems.
18851         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
18852         <getopt.h> on glibc systems.
18853         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
18854         systems.
18855         * lib/fcntl.c: Include <unistd.h> here instead.
18856
18857 2009-12-24  Bruno Haible  <bruno@clisp.org>
18858
18859         * lib/stdlib.in.h (includes): Fix typo in today's commit.
18860
18861 2009-12-24  Eric Blake  <ebb9@byu.net>
18862
18863         tests: add signature checks
18864         * tests/signature.h (SIGNATURE_CHECK): New file.
18865         * modules/atexit-tests (Files): Use it.
18866         * modules/btowc-tests (Files): Likewise.
18867         * modules/canonicalize-lgpl-tests (Files): Likewise.
18868         * modules/ceilf-tests (Files): Likewise.
18869         * modules/ceill-tests (Files): Likewise.
18870         * modules/chown-tests (Files): Likewise.
18871         * modules/dprintf-posix-tests (Files): Likewise.
18872         * modules/dup2-tests (Files): Likewise.
18873         * modules/dup3-tests (Files): Likewise.
18874         * modules/duplocale-tests (Files): Likewise.
18875         * modules/fchdir-tests (Files): Likewise.
18876         * modules/fcntl-tests (Files): Likewise.
18877         * modules/fdopendir-tests (Files): Likewise.
18878         * modules/fflush-tests (Files): Likewise.
18879         * modules/flock-tests (Files): Likewise.
18880         * modules/floorf-tests (Files): Likewise.
18881         * modules/floorl-tests (Files): Likewise.
18882         * modules/fnmatch-tests (Files): Likewise.
18883         * modules/fopen-tests (Files): Likewise.
18884         * modules/fprintf-posix-tests (Files): Likewise.
18885         * modules/freopen-tests (Files): Likewise.
18886         * modules/frexp-nolibm-tests (Files): Likewise.
18887         * modules/frexp-tests (Files): Likewise.
18888         * modules/frexpl-nolibm-tests (Files): Likewise.
18889         * modules/frexpl-tests (Files): Likewise.
18890         * modules/fseek-tests (Files): Likewise.
18891         * modules/fseeko-tests (Files): Likewise.
18892         * modules/fsync-tests (Files): Likewise.
18893         * modules/ftell-tests (Files): Likewise.
18894         * modules/ftello-tests (Files): Likewise.
18895         * modules/futimens-tests (Files): Likewise.
18896         * modules/getaddrinfo-tests (Files): Likewise.
18897         * modules/getcwd-tests (Files): Likewise.
18898         * modules/getdelim-tests (Files): Likewise.
18899         * modules/getdtablesize-tests (Files): Likewise.
18900         * modules/getgroups-tests (Files): Likewise.
18901         * modules/gethostname-tests (Files): Likewise.
18902         * modules/getline-tests (Files): Likewise.
18903         * modules/getopt-posix-tests (Files): Likewise.
18904         * modules/gettimeofday-tests (Files): Likewise.
18905         * modules/glob-tests (Files): Likewise.
18906         * modules/iconv-tests (Files): Likewise.
18907         * modules/inet_ntop-tests (Files): Likewise.
18908         * modules/inet_pton-tests (Files): Likewise.
18909         * modules/isblank-tests (Files): Likewise.
18910         * modules/lchown-tests (Files): Likewise.
18911         * modules/ldexpl-tests (Files): Likewise.
18912         * modules/link-tests (Files): Likewise.
18913         * modules/linkat-tests (Files): Likewise.
18914         * modules/lseek-tests (Files): Likewise.
18915         * modules/lstat-tests (Files): Likewise.
18916         * modules/mbrtowc-tests (Files): Likewise.
18917         * modules/mbsinit-tests (Files): Likewise.
18918         * modules/mbsnrtowcs-tests (Files): Likewise.
18919         * modules/mbsrtowcs-tests (Files): Likewise.
18920         * modules/memchr-tests (Files): Likewise.
18921         * modules/memcmp-tests (Files): Likewise.
18922         * modules/memmem-tests (Files): Likewise.
18923         * modules/memrchr-tests (Files): Likewise.
18924         * modules/mkdir-tests (Files): Likewise.
18925         * modules/mkfifo-tests (Files): Likewise.
18926         * modules/mkfifoat-tests (Files): Likewise.
18927         * modules/mknod-tests (Files): Likewise.
18928         * modules/nanosleep-tests (Files): Likewise.
18929         * modules/nl_langinfo-tests (Files): Likewise.
18930         * modules/obstack-printf-tests (Files): Likewise.
18931         * modules/open-tests (Files): Likewise.
18932         * modules/openat-tests (Files): Likewise.
18933         * modules/perror-tests (Files): Likewise.
18934         * modules/pipe2-tests (Files): Likewise.
18935         * modules/poll-tests (Files): Likewise.
18936         * modules/popen-tests (Files): Likewise.
18937         * modules/posix_spawn-tests (Files): Likewise.
18938         * modules/posix_spawnp-tests (Files): Likewise.
18939         * modules/pread-tests (Files): Likewise.
18940         * modules/printf-posix-tests (Files): Likewise.
18941         * modules/pty-tests (Files): Likewise.
18942         * modules/random_r-tests (Files): Likewise.
18943         * modules/rawmemchr-tests (Files): Likewise.
18944         * modules/readlink-tests (Files): Likewise.
18945         * modules/remove-tests (Files): Likewise.
18946         * modules/rename-tests (Files): Likewise.
18947         * modules/renameat-tests (Files): Likewise.
18948         * modules/rmdir-tests (Files): Likewise.
18949         * modules/round-tests (Files): Likewise.
18950         * modules/roundf-tests (Files): Likewise.
18951         * modules/roundl-tests (Files): Likewise.
18952         * modules/select-tests (Files): Likewise.
18953         * modules/setenv-tests (Files): Likewise.
18954         * modules/sigaction-tests (Files): Likewise.
18955         * modules/sleep-tests (Files): Likewise.
18956         * modules/snprintf-posix-tests (Files): Likewise.
18957         * modules/snprintf-tests (Files): Likewise.
18958         * modules/sprintf-posix-tests (Files): Likewise.
18959         * modules/stat-tests (Files): Likewise.
18960         * modules/strcasestr-tests (Files): Likewise.
18961         * modules/strchrnul-tests (Files): Likewise.
18962         * modules/strerror-tests (Files): Likewise.
18963         * modules/strsignal-tests (Files): Likewise.
18964         * modules/strstr-tests (Files): Likewise.
18965         * modules/strtod-tests (Files): Likewise.
18966         * modules/strverscmp-tests (Files): Likewise.
18967         * modules/symlink-tests (Files): Likewise.
18968         * modules/symlinkat-tests (Files): Likewise.
18969         * modules/times-tests (Files): Likewise.
18970         * modules/trunc-tests (Files): Likewise.
18971         * modules/truncf-tests (Files): Likewise.
18972         * modules/truncl-tests (Files): Likewise.
18973         * modules/tsearch-tests (Files): Likewise.
18974         * modules/uname-tests (Files): Likewise.
18975         * modules/unlink-tests (Files): Likewise.
18976         * modules/unsetenv-tests (Files): Likewise.
18977         * modules/usleep-tests (Files): Likewise.
18978         * modules/utimensat-tests (Files): Likewise.
18979         * modules/vasprintf-tests (Files): Likewise.
18980         * modules/vdprintf-posix-tests (Files): Likewise.
18981         * modules/vfprintf-posix-tests (Files): Likewise.
18982         * modules/vprintf-posix-tests (Files): Likewise.
18983         * modules/vsnprintf-posix-tests (Files): Likewise.
18984         * modules/vsnprintf-tests (Files): Likewise.
18985         * modules/vsprintf-posix-tests (Files): Likewise.
18986         * modules/wcrtomb-tests (Files): Likewise.
18987         * modules/wcsnrtombs-tests (Files): Likewise.
18988         * modules/wcsrtombs-tests (Files): Likewise.
18989         * modules/wcwidth-tests (Files): Likewise.
18990         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
18991         * tests/test-isinf.c (isinf): Likewise.
18992         * tests/test-isnan.c (isnan): Likewise.
18993         * tests/test-signbit.c (signbit): Likewise.
18994         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
18995         declaration, either as macro or with correct signature.
18996         (select): Ensure function under test is declared with correct
18997         signature in correct header.
18998         * tests/test-atexit.c (atexit): Likewise.
18999         * tests/test-btowc.c (btowc): Likewise.
19000         * tests/test-canonicalize-lgpl.c (realpath)
19001         (canonicalize_file_name): Likewise.
19002         * tests/test-ceilf1.c (ceilf): Likewise.
19003         * tests/test-ceill.c (ceill): Likewise.
19004         * tests/test-chown.c (chown): Likewise.
19005         * tests/test-dprintf-posix.c (dprintf): Likewise.
19006         * tests/test-dup2.c (dup2): Likewise.
19007         * tests/test-dup3.c (dup3): Likewise.
19008         * tests/test-duplocale.c (duplocale): Likewise.
19009         * tests/test-fchdir.c (fchdir): Likewise.
19010         * tests/test-fchownat.c (fchownat): Likewise.
19011         * tests/test-fcntl.c (fcntl): Likewise.
19012         * tests/test-fdopendir.c (fdopendir): Likewise.
19013         * tests/test-fflush.c (fflush): Likewise.
19014         * tests/test-flock.c (flock): Likewise.
19015         * tests/test-floorf1.c (floorf): Likewise.
19016         * tests/test-floorl.c (floorl): Likewise.
19017         * tests/test-fnmatch.c (fnmatch): Likewise.
19018         * tests/test-fopen.c (fopen): Likewise.
19019         * tests/test-fprintf-posix.c (fprintf): Likewise.
19020         * tests/test-freopen.c (freopen): Likewise.
19021         * tests/test-frexp.c (frexp): Likewise.
19022         * tests/test-frexpl.c (frexpl): Likewise.
19023         * tests/test-fseek.c (fseek): Likewise.
19024         * tests/test-fseeko.c (fseeko): Likewise.
19025         * tests/test-fstatat.c (fstatat): Likewise.
19026         * tests/test-fsync.c (fsync): Likewise.
19027         * tests/test-ftell.c (ftell): Likewise.
19028         * tests/test-ftello.c (ftello): Likewise.
19029         * tests/test-futimens.c (futimens): Likewise.
19030         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
19031         (gai_strerror): Likewise.
19032         * tests/test-getcwd.c (getcwd): Likewise.
19033         * tests/test-getdelim.c (getdelim): Likewise.
19034         * tests/test-getdtablesize.c (getdtablesize): Likewise.
19035         * tests/test-getgroups.c (getgroups): Likewise.
19036         * tests/test-gethostname.c (gethostname): Likewise.
19037         * tests/test-getline.c (getline): Likewise.
19038         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
19039         Likewise.
19040         * tests/test-gettimeofday.c (gettimeofday): Likewise.
19041         * tests/test-glob.c (glob, globfree): Likewise.
19042         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
19043         * tests/test-inet_ntop.c (inet_ntop): Likewise.
19044         * tests/test-inet_pton.c (inet_pton): Likewise.
19045         * tests/test-isblank.c (isblank): Likewise.
19046         * tests/test-lchown.c (lchown): Likewise.
19047         * tests/test-ldexpl.c (ldexpl): Likewise.
19048         * tests/test-link.c (link): Likewise.
19049         * tests/test-linkat.c (linkat): Likewise.
19050         * tests/test-lseek.c (lseek): Likewise.
19051         * tests/test-lstat.c (lstat): Likewise.
19052         * tests/test-mbrtowc.c (mbrtowc): Likewise.
19053         * tests/test-mbsinit.c (mbsinit): Likewise.
19054         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
19055         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
19056         * tests/test-memchr.c (memchr): Likewise.
19057         * tests/test-memcmp.c (memcmp): Likewise.
19058         * tests/test-memmem.c (memmem): Likewise.
19059         * tests/test-memrchr.c (memrchr): Likewise.
19060         * tests/test-mkdir.c (mkdir): Likewise.
19061         * tests/test-mkdirat.c (mkdirat): Likewise.
19062         * tests/test-mkfifo.c (mkfifo): Likewise.
19063         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
19064         * tests/test-mknod.c (mknod): Likewise.
19065         * tests/test-nanosleep.c (nanosleep): Likewise.
19066         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
19067         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
19068         Likewise.
19069         * tests/test-open.c (open): Likewise.
19070         * tests/test-openat.c (openat): Likewise.
19071         * tests/test-perror.c (perror): Likewise.
19072         * tests/test-pipe2.c (pipe2): Likewise.
19073         * tests/test-poll.c (poll): Likewise.
19074         * tests/test-popen.c (popen, pclose): Likewise.
19075         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
19076         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
19077         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
19078         (posix_spawn_file_actions_destroy)
19079         (posix_spawn_file_actions_addclose)
19080         (posix_spawn_file_actions_addopen)
19081         (posix_spawn_file_actions_adddup2): Likewise.
19082         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
19083         * tests/test-pread.c (pread): Likewise.
19084         * tests/test-printf-posix.c (printf): Likewise.
19085         * tests/test-pty.c (openpty, forkpty): Likewise.
19086         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
19087         (random_r): Likewise.
19088         * tests/test-rawmemchr.c (rawmemchr): Likewise.
19089         * tests/test-readlink.c (readlink): Likewise.
19090         * tests/test-remove.c (remove): Likewise.
19091         * tests/test-rename.c (rename): Likewise.
19092         * tests/test-renameat.c (renameat): Likewise.
19093         * tests/test-rmdir.c (rmdir): Likewise.
19094         * tests/test-round1.c (round): Likewise.
19095         * tests/test-roundf1.c (roundf): Likewise.
19096         * tests/test-roundl.c (roundl): Likewise.
19097         * tests/test-setenv.c (setenv): Likewise.
19098         * tests/test-sigaction.c (sigaction): Likewise.
19099         * tests/test-sleep.c (sleep): Likewise.
19100         * tests/test-snprintf.c (snprintf): Likewise.
19101         * tests/test-sprintf-posix.c (sprintf): Likewise.
19102         * tests/test-stat.c (stat): Likewise.
19103         * tests/test-stpncpy.c (stpncpy): Likewise.
19104         * tests/test-strcasestr.c (strcasestr): Likewise.
19105         * tests/test-strchrnul.c (strchrnul): Likewise.
19106         * tests/test-strerror.c (strerror): Likewise.
19107         * tests/test-strsignal.c (strsignal): Likewise.
19108         * tests/test-strstr.c (strstr): Likewise.
19109         * tests/test-strtod.c (strtod): Likewise.
19110         * tests/test-strverscmp.c (strverscmp): Likewise.
19111         * tests/test-symlink.c (symlink): Likewise.
19112         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
19113         * tests/test-times.c (times): Likewise.
19114         * tests/test-trunc1.c (trunc): Likewise.
19115         * tests/test-truncf1.c (truncf): Likewise.
19116         * tests/test-truncl.c (truncl): Likewise.
19117         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
19118         Likewise.
19119         * tests/test-uname.c (uname): Likewise.
19120         * tests/test-unlink.c (unlink): Likewise.
19121         * tests/test-unlinkat.c (unlinkat): Likewise.
19122         * tests/test-unsetenv.c (unsetenv): Likewise.
19123         * tests/test-usleep.c (usleep): Likewise.
19124         * tests/test-utimensat.c (utimensat): Likewise.
19125         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
19126         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
19127         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
19128         * tests/test-vprintf-posix.c (vprintf): Likewise.
19129         * tests/test-vsnprintf.c (vsnprintf): Likewise.
19130         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
19131         * tests/test-wcrtomb.c (wcrtomb): Likewise.
19132         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
19133         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
19134         * tests/test-wcwidth.c (wcwidth): Likewise.
19135
19136         build: pull in conditional headers during GNULIB_POSIXCHECK
19137         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
19138         definitions from any conditionally-included headers.
19139         * lib/stdlib.in.h (includes): Likewise.
19140         * lib/unistd.in.h (includes): Likewise.
19141
19142 2009-12-24  Bruno Haible  <bruno@clisp.org>
19143
19144         * tests/test-argv-iter.c: Include header file being tested immediately
19145         after config.h.
19146         * tests/test-base64.c: Likewise.
19147         * tests/test-flock.c: Likewise.
19148         * tests/test-fsync.c: Likewise.
19149         * tests/test-getdate.c: Likewise.
19150         * tests/test-getndelim2.c: Likewise.
19151         * tests/test-isfinite.c: Likewise.
19152         * tests/test-isinf.c: Likewise.
19153         * tests/test-strerror.c: Likewise.
19154         * tests/test-strsignal.c: Likewise.
19155
19156 2009-12-23  Eric Blake  <ebb9@byu.net>
19157
19158         unistd: work around cygwin bug
19159         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
19160         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
19161         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
19162
19163 2009-12-23  Bruno Haible  <bruno@clisp.org>
19164
19165         localename: More tests.
19166         * tests/test-localename.c (SIZEOF): New macro.
19167         (categories): New variable.
19168         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
19169         test_locale_name_default): Add test w.r.t. thread locale.
19170         (test_locale_name_thread): New function.
19171         (main): Invoke it.
19172
19173         localename: Make aware of thread locale.
19174         * lib/localename.h (gl_locale_name_thread): New declaration.
19175         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
19176         behaviour with respect to thread locale.
19177         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
19178         <langinfo.h>, glthread/lock.h.
19179         (SIZE_BITS): New macro.
19180         (string_hash): New function.
19181         (struct hash_node): New type.
19182         (HASH_TABLE_SIZE): New macro.
19183         (struniq_hash_table, struniq_lock): New variables.
19184         (struniq): New function.
19185         (gl_locale_name_thread): New function.
19186         (gl_locale_name): Invoke it.
19187         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
19188         * modules/localename (Depends-on): Add lock.
19189         Reported by Mike Gran <spk121@yahoo.com>.
19190
19191 2009-12-23  Eric Blake  <ebb9@byu.net>
19192
19193         va-args: new module
19194         * modules/va-args: New file.
19195         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
19196         * MODULES.html.sh (Core language properties): Mention it.
19197
19198         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
19199         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
19200         named alias for __attribute__((__unused__)).
19201         * lib/chown.c: Update client.
19202         * lib/fchmodat.c: Likewise.
19203         * lib/fts.c: Likewise.
19204         * lib/getdate.y: Likewise.
19205         * lib/getgroups.c: Likewise.
19206         * lib/getopt.c: Likewise.
19207         * lib/getugroups.c: Likewise.
19208         * lib/mkdir.c: Likewise.
19209         * lib/mkfifo.c: Likewise.
19210         * lib/mkfifoat.c: Likewise.
19211         * lib/mknod.c: Likewise.
19212         * lib/mknodat.c: Likewise.
19213         * lib/readlink.c: Likewise.
19214         * lib/se-context.in.h: Likewise.
19215         * lib/se-selinux.in.h: Likewise.
19216         * lib/sockets.c: Likewise.
19217         * lib/symlink.c: Likewise.
19218         * lib/symlinkat.c: Likewise.
19219         * lib/unicodeio.c: Likewise.
19220         * lib/unistr.h: Likewise.
19221         * tests/test-areadlink.c: Likewise.
19222         * tests/test-areadlinkat.c: Likewise.
19223         * tests/test-filenamecat.c: Likewise.
19224         * tests/test-fseeko.c: Likewise.
19225         * tests/test-ftello.c: Likewise.
19226         * tests/test-getdate.c: Likewise.
19227         * tests/test-getgroups.c: Likewise.
19228         * tests/test-gethostname.c: Likewise.
19229         * tests/test-quotearg.c: Likewise.
19230         * tests/test-version-etc.c: Likewise.
19231         * tests/test-xalloc-die.c: Likewise.
19232         * tests/test-xfprintf-posix.c: Likewise.
19233         * tests/test-xprintf-posix.c: Likewise.
19234         * tests/test-xvasprintf.c: Likewise.
19235
19236         tests: avoid compiler warnings
19237         * tests/test-fcntl.c (main): Delete unused parameters.
19238         * tests/test-freopen-safer.c (main): Likewise.
19239         * tests/test-xalloc-die.c (main): Mark unused parameters.
19240         * tests/test-fseeko.c (main): Likewise.
19241         * tests/test-ftello.c (main): Likewise.
19242         * tests/test-nanosleep.c (main): Avoid declaration warning.
19243         * tests/test-sleep.c (main): Likewise.
19244         * tests/test-unsetenv.c (main): Silence warning about string
19245         literal.
19246         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
19247
19248 2009-12-23  Bruno Haible  <bruno@clisp.org>
19249
19250         * tests/test-localename.c (test_locale_name): New function, extracted
19251         from main. Also test mixed situations.
19252         (test_locale_name_posix, test_locale_name_environ,
19253         test_locale_name_default): New functions.
19254         (main): Invoke them all.
19255         * modules/localename-tests (configure.ac): Test for newlocale.
19256
19257 2009-12-23  Bruno Haible  <bruno@clisp.org>
19258
19259         unistd: Ensure getcwd gets declared before being overridden.
19260         * lib/unistd.in.h: Conditionally include <io.h>.
19261
19262 2009-12-22  Bruno Haible  <bruno@clisp.org>
19263
19264         wchar: Diagnose broken combination of glibc and gcc versions and flags.
19265         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
19266         (gl_WCHAR_H): Invoke it.
19267         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
19268         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
19269         Reported by Karl Berry <karl@freefriends.org>.
19270
19271 2009-12-22  Eric Blake  <ebb9@byu.net>
19272
19273         math, unistd: avoid redundant includes
19274         * lib/math.in.h (isnan): No need to re-include <math.h>.
19275         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
19276
19277         getsubopt: work around cygwin bug
19278         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
19279         avoid conflicting with system getsubopt.
19280         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
19281         bug.
19282
19283         getopt: synchronize from glibc
19284         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
19285         parameter order.  Adjust all callers.
19286         (_getopt_internal_r, main): Adjust quoting in error messages.
19287         Drop considerations for outdated POSIX 1003.2 error message.
19288         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
19289         callers.
19290         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
19291
19292         test-getopt: test stderr behavior
19293         * modules/getopt-posix-tests (Depends-on): Add dup2.
19294         * tests/test-getopt.c (ASSERT): Avoid stderr.
19295         (main): Move stderr to a temporary file.
19296         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
19297         Instead, add parameter to inform caller if output occurred.
19298         (test_getopt): Adjust all existing tests to expect silence, and
19299         add new tests of leading ":".
19300         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
19301         glibc shortcomings with leading "-:" or "+:" in optstring.
19302         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19303         Likewise.
19304         * doc/posix-functions/getopt.texi (getopt): Likewise.
19305
19306         test-getopt: enhance test
19307         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
19308         supports optind=0.
19309         * tests/test-getopt.c (OPTIND_MIN): Move...
19310         * tests/test-getopt.h (OPTIND_MIN): ...here.
19311         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
19312         Require that optind=0 works, since modern BSD supports it in
19313         addition to optreset, and since coreutils expects it.
19314         (test_getopt_long_only): New test.
19315         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
19316         glibc shortcomings with 'W;', and enforcement of optind=0.
19317         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19318         Likewise.
19319
19320 2009-12-21  Bruno Haible  <bruno@clisp.org>
19321
19322         localename: Improvements for MacOS X and Cygwin.
19323         * lib/localename.h (gl_locale_name_environ): New declaration.
19324         * lib/localename.c (gl_locale_name_environ): New function, extracted from
19325         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
19326         (gl_locale_name_posix): Invoke it.
19327         (gl_locale_name_default): Add comments. Use Windows native API also on
19328         Cygwin.
19329
19330 2009-12-21  Bruno Haible  <bruno@clisp.org>
19331
19332         Update list of Win32 locale ids.
19333         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
19334         (LANG_SAMI): Renamed from LANG_SAAMI.
19335         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
19336         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
19337         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
19338         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
19339         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
19340         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
19341         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
19342         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
19343         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
19344         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
19345         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
19346         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
19347         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
19348         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
19349         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
19350         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
19351         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
19352         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
19353         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
19354         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
19355         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
19356         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
19357         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
19358         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
19359         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
19360         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
19361         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
19362         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
19363         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
19364         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
19365         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
19366         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
19367         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
19368         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
19369         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
19370         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
19371         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
19372         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
19373         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
19374         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
19375         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
19376         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
19377         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
19378         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
19379         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
19380         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
19381         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
19382         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
19383         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
19384         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
19385         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
19386         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
19387         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
19388         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
19389         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
19390         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
19391         Add more languages and countries for Sami, Sorbian. Add more countries
19392         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
19393         for Pashto. Change country for Syriac, Tswana.
19394
19395 2009-12-21  Eric Blake  <ebb9@byu.net>
19396
19397         test-utimens: avoid spurious failure
19398         * tests/test-chown.h (nap): Factor...
19399         * tests/nap.h: ...into new file.
19400         * tests/test-lchown.h (nap): Avoid duplication.
19401         * tests/test-utimens-common.h (nap): Use shared implementation,
19402         necessary on file systems with 1-second resolution.
19403         * modules/chown-tests (Files): Include new file.
19404         * modules/fdutimensat-tests (Files): Likewise.
19405         * modules/futimens-tests (Files): Likewise.
19406         * modules/lchown-tests (Files): Likewise.
19407         * modules/openat-tests (Files): Likewise.
19408         * modules/utimens-tests (Files): Likewise.
19409         * modules/utimensat-tests (Files): Likewise.
19410
19411 2009-12-19  Eric Blake  <ebb9@byu.net>
19412
19413         futimens, utimensat: work around Linux bug
19414         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
19415         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19416         * lib/utimensat.c (rpl_utimensat): Work around it.
19417         * lib/futimens.c (rpl_futimens): Adjust comment.
19418
19419         utimens: work around Linux ctime bug
19420         * lib/utimens.c (detect_ctime_bug): New helper function.
19421         (update_timespec): Differentiate between workaround needed for
19422         this bug vs. what is needed for systems that lack utimensat.
19423         (fdutimens, lutimens): Work around bug.
19424
19425         utimens: check for ctime update
19426         * tests/test-utimens-common.h (check_ctime): Define.
19427         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
19428         * tests/test-futimens.h (test_futimens): Likewise.
19429         * tests/test-lutimens.h (test_lutimens): Likewise.
19430         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19431         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
19432
19433 2009-12-19  Bruno Haible  <bruno@clisp.org>
19434
19435         dprintf-posix: Check against memory leak fixed on 2009-12-15.
19436         * tests/test-dprintf-posix2.sh: New file.
19437         * tests/test-dprintf-posix2.c: New file.
19438         * modules/dprintf-posix-tests (Files): Add them.
19439         (configure.ac): Check for getrlimit and setrlimit.
19440         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
19441
19442 2009-12-19  Bruno Haible  <bruno@clisp.org>
19443
19444         fprintf-posix: Check against memory leak fixed on 2009-12-15.
19445         * tests/test-fprintf-posix3.sh: New file.
19446         * tests/test-fprintf-posix3.c: New file.
19447         * modules/fprintf-posix-tests (Files): Add them.
19448         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
19449
19450 2009-12-19  Eric Blake  <ebb9@byu.net>
19451
19452         dirfd: fix prototype
19453         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
19454         * lib/dirfd.c (dirfd): Likewise.
19455
19456         canonicalize: reduce memory usage
19457         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
19458         allocation to size.
19459         Reported by Solar Designer <solar@openwall.com>.
19460
19461 2009-12-19  Bruno Haible  <bruno@clisp.org>
19462
19463         New module attribute 'Applicability'.
19464         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
19465         * gnulib-tool: New option --extract-applicability.
19466         (func_usage): Document it.
19467         (sed_extract_prog): Recognize it.
19468         (func_get_applicability): New function.
19469         (func_import): Generalize handling of 'link-warning' module.
19470         * modules/link-warning (Applicability): New section.
19471         * modules/arg-nonnull (Applicability): New section.
19472         Repoted by Simon Josefsson <simon@josefsson.org>.
19473
19474 2009-12-19  Bruno Haible  <bruno@clisp.org>
19475
19476         fflush: tweak
19477         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
19478         * lib/fseeko.c (rpl_fseeko): Likewise.
19479
19480 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
19481
19482         * lib/gl_list.h: Fix typo in comment.
19483
19484 2009-12-16  Eric Blake  <ebb9@byu.net>
19485
19486         fcntl: use to simplify other modules
19487         * modules/cloexec (Depends-on): Add fcntl.
19488         * modules/fchdir (Depends-on): Likewise.
19489         * modules/fd-safer-flag (Depends-on): Likewise.
19490         * modules/unistd-safer (Depends-on): Likewise.
19491         * modules/dup3 (configure.ac): Set module indicator.
19492         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
19493         missing.
19494         * lib/fchdir.c (_gl_register_dup): Fix comment.
19495         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
19496         * lib/dup-safer.c (dup_safer): Likewise.
19497         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
19498         * lib/dup3.c (dup3): Likewise.
19499         * tests/test-fchdir.c (main): Enhance test.
19500         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
19501
19502         fcntl: port portions of fcntl to mingw
19503         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
19504         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
19505         replacement for mingw.
19506         * modules/fcntl (Description): Update.
19507         (Depends-on): Add dup2.
19508         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
19509         * modules/fcntl-h (Makefile.am): Substitute it.
19510         * lib/fcntl.in.h (fcntl): Update declaration.
19511         (F_DUPFD, F_GETFD): New macros, when needed.
19512         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
19513         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
19514         * tests/test-fcntl.c (check_flags, main): Enhance test for items
19515         we now guarantee.
19516
19517         fcntl: work around cygwin bug in F_DUPFD
19518         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
19519         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
19520         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
19521         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
19522         * doc/posix-functions/fcntl.texi (fcntl): Document it.
19523
19524         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
19525         * modules/fcntl (Files): List new files.
19526         (configure.ac): Run a test.
19527         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
19528         * lib/fcntl.c (rpl_fcntl): Likewise.
19529         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
19530         (gl_FCNTL_H): Always replace fcntl.h.
19531         * modules/fcntl-h (Makefile.am): Substitute witnesses.
19532         * lib/fcntl.in.h (fcntl): Declare replacement.
19533         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
19534         needed, plus a witness.
19535         * doc/posix-functions/fcntl.texi (fcntl): Document this.
19536         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
19537         * tests/test-fcntl.c: New file.
19538         * modules/fcntl-tests: Likewise.
19539
19540         binary-io: avoid potential compilation warning
19541         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
19542         directives.
19543
19544         fflush: avoid compilation error on NetBSD
19545         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
19546         between off_t and fpos_t, since the latter is sometimes a struct.
19547         * lib/fseeko.c (rpl_fseeko): Likewise.
19548         Reported by Alexander Nasonov <alnsn@yandex.ru>.
19549
19550 2009-12-15  Eric Blake  <ebb9@byu.net>
19551
19552         fcntl-h, stdio, sys_ioctl: fix declarations
19553         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
19554         function must not take arguments.
19555         * lib/sys_ioctl.in.h (ioctl): Likewise.
19556         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
19557         (open): Add a link warning.
19558
19559 2009-12-15  Jim Meyering  <meyering@redhat.com>
19560
19561         areadlink, areadlink-with-size: relax license to LGPLv2+
19562         * modules/areadlink (License): Relax to LGPLv2+.
19563         * modules/areadlink-with-size (License): Likewise.
19564
19565 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
19566             Bruno Haible  <bruno@clisp.org>
19567
19568         *printf: Fix memory leak.
19569         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
19570         * lib/vfprintf.c (vfprintf): Likewise.
19571         * lib/dprintf.c (dprintf): Likewise.
19572         * lib/vdprintf.c (vdprintf): Likewise.
19573
19574 2009-12-14  Eric Blake  <ebb9@byu.net>
19575
19576         accept4: adjust module dependencies
19577         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
19578
19579         utimens: one more try at avoiding compiler warning
19580         * lib/utimens.c (lutimens): Lower scope of result.
19581
19582 2009-12-13  Bruno Haible  <bruno@clisp.org>
19583
19584         Move the malloc checking from module 'list' to new module 'xlist'.
19585         * modules/xlist: New file.
19586         * lib/gl_xlist.h: New file.
19587         * lib/gl_xlist.c: New file.
19588         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
19589         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
19590         gl_list_add_last, gl_list_add_before, gl_list_add_after,
19591         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
19592         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
19593         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
19594         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
19595         gl_sortedlist_nx_add): New declarations.
19596         (struct gl_list_implementation): Rename and change methods accordingly.
19597         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
19598         (gl_list_nx_create): Renamed from gl_list_create.
19599         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
19600         (gl_list_nx_set_at): Renamed from gl_list_set_at.
19601         (gl_list_nx_add_first): Renamed from gl_list_add_first.
19602         (gl_list_nx_add_last): Renamed from gl_list_add_last.
19603         (gl_list_nx_add_before): Renamed from gl_list_add_before.
19604         (gl_list_nx_add_after): Renamed from gl_list_add_after.
19605         (gl_list_nx_add_at): Renamed from gl_list_add_at.
19606         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
19607         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
19608         gl_list_create_empty.
19609         (gl_list_nx_create): Renamed from gl_list_create.
19610         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
19611         (gl_list_nx_set_at): Renamed from gl_list_set_at.
19612         (gl_list_nx_add_first): Renamed from gl_list_add_first.
19613         (gl_list_nx_add_last): Renamed from gl_list_add_last.
19614         (gl_list_nx_add_before): Renamed from gl_list_add_before.
19615         (gl_list_nx_add_after): Renamed from gl_list_add_after.
19616         (gl_list_nx_add_at): Renamed from gl_list_add_at.
19617         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
19618         * lib/gl_array_list.c: Don't include xalloc.h.
19619         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
19620         NULL upon out-of-memory.
19621         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
19622         out-of-memory.
19623         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
19624         Change return type to 'int'.
19625         (gl_array_nx_set_at): Renamed from gl_array_set_at.
19626         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
19627         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
19628         upon out-of-memory.
19629         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
19630         upon out-of-memory.
19631         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
19632         upon out-of-memory.
19633         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
19634         upon out-of-memory.
19635         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
19636         out-of-memory.
19637         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
19638         Update.
19639         (gl_array_list_implementation): Update.
19640         * lib/gl_carray_list.c: Don't include xalloc.h.
19641         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
19642         Return NULL upon out-of-memory.
19643         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
19644         out-of-memory.
19645         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
19646         Change return type to 'int'.
19647         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
19648         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
19649         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
19650         upon out-of-memory.
19651         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
19652         upon out-of-memory.
19653         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
19654         out-of-memory.
19655         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
19656         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
19657         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
19658         Update.
19659         (gl_carray_list_implementation): Update.
19660         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
19661         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
19662         gl_linked_create_empty. Return NULL upon out-of-memory.
19663         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
19664         out-of-memory.
19665         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
19666         Change return type to 'int'. Return -1 upon out-of-memory.
19667         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
19668         out-of-memory.
19669         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
19670         upon out-of-memory.
19671         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
19672         upon out-of-memory.
19673         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
19674         NULL upon out-of-memory.
19675         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
19676         upon out-of-memory.
19677         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
19678         out-of-memory.
19679         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
19680         Update.
19681         * lib/gl_linked_list.c: Don't include xalloc.h.
19682         (gl_linked_list_implementation): Update.
19683         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
19684         (add_to_bucket): Change return type to 'int'.
19685         (gl_linkedhash_list_implementation): Update.
19686         * lib/gl_anytree_list1.h (free_subtree): New function.
19687         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
19688         gl_tree_create_empty. Return NULL upon out-of-memory.
19689         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
19690         Change return type to 'int'. Return -1 upon out-of-memory.
19691         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
19692         out-of-memory.
19693         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
19694         (gl_tree_remove_node): New function, moved here from
19695         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
19696         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
19697         Update.
19698         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
19699         malloc, not xmalloc. Return NULL upon out-of-memory.
19700         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
19701         out-of-memory.
19702         (gl_tree_remove_node_from_tree): New function, extracted from
19703         gl_tree_remove_node.
19704         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
19705         upon out-of-memory.
19706         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
19707         out-of-memory.
19708         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
19709         upon out-of-memory.
19710         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
19711         upon out-of-memory.
19712         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
19713         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
19714         not xmalloc. Return NULL upon out-of-memory.
19715         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
19716         out-of-memory.
19717         (gl_tree_remove_node_from_tree): New function, extracted from
19718         gl_tree_remove_node.
19719         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
19720         upon out-of-memory.
19721         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
19722         out-of-memory.
19723         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
19724         upon out-of-memory.
19725         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
19726         upon out-of-memory.
19727         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
19728         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
19729         gl_anytree_list1.h before gl_anyavltree_list2.h.
19730         (gl_avltree_list_implementation): Update.
19731         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
19732         gl_anytree_list1.h before gl_anyavltree_list2.h.
19733         (gl_rbtree_list_implementation): Update.
19734         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
19735         Change return type to 'int'. Return -1 upon out-of-memory. Use
19736         __builtin_expect.
19737         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
19738         (gl_avltreehash_list_implementation): Update.
19739         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
19740         (gl_rbtreehash_list_implementation): Update.
19741         * modules/array-list (Depends-on): Remove xalloc.
19742         * modules/carray-list (Depends-on): Likewise.
19743         * modules/linked-list (Depends-on): Likewise.
19744         * modules/linkedhash-list (Depends-on): Likewise.
19745         * modules/avltree-list (Depends-on): Likewise.
19746         * modules/rbtree-list (Depends-on): Likewise.
19747         * modules/avltreehash-list (Depends-on): Likewise.
19748         * modules/rbtreehash-list (Depends-on): Likewise.
19749
19750         * modules/xsublist: New file.
19751         * lib/gl_xsublist.h: New file.
19752         * lib/gl_xsublist.c: New file.
19753         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
19754         (gl_sublist_nx_create): New declaration.
19755         * lib/gl_sublist.c: Don't include xalloc.h.
19756         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
19757         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
19758         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
19759         Change return type to 'int'. Return -1 upon out-of-memory.
19760         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
19761         upon out-of-memory.
19762         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
19763         NULL upon out-of-memory.
19764         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
19765         upon out-of-memory.
19766         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
19767         NULL upon out-of-memory.
19768         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
19769         NULL upon out-of-memory.
19770         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
19771         upon out-of-memory.
19772         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
19773         (gl_sublist_list_implementation): Update.
19774         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
19775         upon out-of-memory.
19776         * modules/sublist (Depends-on): Remove xalloc.
19777
19778         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
19779         * tests/test-carray_list.c: Likewise.
19780         * tests/test-linked_list.c: Likewise.
19781         * tests/test-linkedhash_list.c: Likewise.
19782         * tests/test-avltree_list.c: Likewise.
19783         * tests/test-rbtree_list.c: Likewise.
19784         * tests/test-avltreehash_list.c: Likewise.
19785         * tests/test-rbtreehash_list.c: Likewise.
19786         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
19787         * modules/carray-list-tests (Makefile.am): Likewise.
19788         * modules/linked-list-tests (Makefile.am): Likewise.
19789         * modules/linkedhash-list-tests (Makefile.am): Likewise.
19790         * modules/avltree-list-tests (Makefile.am): Likewise.
19791         * modules/rbtree-list-tests (Makefile.am): Likewise.
19792         * modules/avltreehash-list-tests (Makefile.am): Likewise.
19793         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
19794
19795         * NEWS: Mention the changes.
19796
19797         * lib/clean-temp.c: Include gl_xlist.h.
19798         * modules/clean-temp (Depends-on): Add xlist.
19799
19800         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
19801         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
19802
19803         * tests/test-array_oset.c: Include gl_xlist.h.
19804         * modules/array-oset-tests (Depends-on): Add xlist.
19805
19806         Reported by José E. Marchesi <jemarch@gnu.org>.
19807
19808 2009-12-13  Bruno Haible  <bruno@clisp.org>
19809
19810         Move the malloc checking from module 'oset' to new module 'xoset'.
19811         * modules/xoset: New file.
19812         * lib/gl_xoset.h: New file.
19813         * lib/gl_xoset.c: New file.
19814         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
19815         declarations.
19816         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
19817         (struct gl_oset_implementation): Rename and change methods accordingly.
19818         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
19819         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
19820         'int'. Mark as __warn_unused_result__.
19821         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
19822         gl_oset_create_empty.
19823         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
19824         'int'.
19825         * lib/gl_array_oset.c: Don't include xalloc.h.
19826         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
19827         malloc, not xmalloc.
19828         (grow): Change return type to 'int'. Don't call xalloc_die.
19829         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
19830         to 'int'.
19831         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
19832         'int'.
19833         (gl_array_oset_implementation): Update.
19834         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
19835         gl_tree_create_empty.
19836         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
19837         'int'.
19838         * lib/gl_avltree_oset.c: Don't include xalloc.h.
19839         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
19840         xmalloc.
19841         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
19842         not xmalloc.
19843         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
19844         xmalloc.
19845         (gl_avltree_oset_implementation): Update.
19846         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
19847         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
19848         xmalloc.
19849         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
19850         not xmalloc.
19851         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
19852         xmalloc.
19853         (gl_rbtree_oset_implementation): Update.
19854         * modules/array-oset (Depends-on): Remove xalloc.
19855         * modules/avltree-oset (Depends-on): Likewise.
19856         * modules/rbtree-oset (Depends-on): Likewise.
19857         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
19858         * tests/test-avltree_oset.c: Likewise.
19859         * tests/test-rbtree_oset.c: Likewise.
19860         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
19861         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
19862         * modules/rbtree-oset-tests (Makefile.am): Likewise.
19863         * NEWS: Mention the change.
19864
19865 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
19866
19867         maint.mk: allow a project to override release-prep commands
19868         * top/maint.mk (alpha, beta, stable): Move release-preparatory
19869         commands into a new rule.
19870         (release-prep): New rule.
19871         (release-prep-hook): New overridable variable.
19872
19873 2009-12-13  Bruno Haible  <bruno@clisp.org>
19874
19875         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
19876
19877 2009-12-13  Jim Meyering  <meyering@redhat.com>
19878
19879         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
19880         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
19881
19882 2009-12-12  Bruno Haible  <bruno@clisp.org>
19883
19884         duplocale: Tweak.
19885         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
19886
19887 2009-12-12  Karl Berry  <karl@gnu.org>
19888
19889         * config/srclist.txt (strtoll.c): tab changes, no more sync.
19890
19891 2009-12-12  Bruno Haible  <bruno@clisp.org>
19892
19893         * m4/po.m4: Undo incorrect untabification.
19894
19895 2009-12-12  Bruno Haible  <bruno@clisp.org>
19896
19897         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
19898         * modules/c-strtod (Depends-on): Add locale.
19899         * modules/c-strtold (Depends-on): Likewise.
19900
19901 2009-12-12  Bruno Haible  <bruno@clisp.org>
19902
19903         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
19904
19905 2009-12-11  Eric Blake  <ebb9@byu.net>
19906
19907         setenv: relax requirement in light of POSIX ruling
19908         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
19909         not NULL.
19910         * tests/test-setenv.c (main): Relax test.
19911         * tests/test-unsetenv.c (main): Likewise.
19912         * doc/posix-functions/setenv.texi (setenv): Document this.
19913         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
19914
19915 2009-12-11  Bruno Haible  <bruno@clisp.org>
19916
19917         New module 'fd-safer-flag'.
19918         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
19919         * lib/dup-safer.c (dup_safer_flag): Remove function.
19920         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
19921         * lib/fd-safer.c (fd_safer_flag): Remove function.
19922         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
19923         * modules/cloexec (configure.ac): Drop indicator macro.
19924         * modules/fd-safer-flag: New file.
19925         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
19926         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
19927         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
19928
19929 2009-12-11  Bruno Haible  <bruno@clisp.org>
19930
19931         Tests for module 'nl_langinfo'.
19932         * modules/nl_langinfo-tests: New file.
19933         * tests/test-nl_langinfo.sh: New file.
19934         * tests/test-nl_langinfo.c: New file.
19935
19936         New module 'nl_langinfo'.
19937         * lib/nl_langinfo.c: New file.
19938         * m4/nl_langinfo.m4: New file.
19939         * modules/nl_langinfo: New file.
19940         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
19941
19942 2009-12-11  Bruno Haible  <bruno@clisp.org>
19943
19944         Tests for module 'langinfo'.
19945         * modules/langinfo-tests: New file.
19946         * tests/test-langinfo.c: New file.
19947
19948         New module 'langinfo'.
19949         * lib/langinfo.in.h: New file.
19950         * m4/langinfo_h.m4: New file.
19951         * modules/langinfo: New file.
19952         * doc/posix-headers/langinfo.texi: Mention the new module.
19953
19954 2009-12-11  Bruno Haible  <bruno@clisp.org>
19955
19956         * lib/config.charset: Untabify.
19957
19958 2009-12-11  Bruno Haible  <bruno@clisp.org>
19959
19960         * modules/unistd-safer (configure.ac): Drop indicator macro.
19961
19962 2009-12-11  Bruno Haible  <bruno@clisp.org>
19963
19964         Move pipe2-safer code to its own file.
19965         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
19966         * lib/pipe-safer.c (pipe2_safer): Remove function.
19967         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
19968         (Makefile.am): Add it to lib_SOURCES.
19969
19970 2009-12-10  Bruno Haible  <bruno@clisp.org>
19971
19972         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
19973
19974 2009-12-10  Bruno Haible  <bruno@clisp.org>
19975
19976         Declare which arguments expect non-NULL values, for GCC and clang.
19977         * build-aux/arg-nonnull.h: New file.
19978         * modules/arg-nonnull: New file.
19979         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
19980         (inet_ntop, inet_pton): Use it.
19981         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
19982         (closedir, dirfd, opendir, scandir, alphasort): Use it.
19983         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
19984         (open, openat): Use it.
19985         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
19986         (fnmatch): Use it.
19987         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
19988         (getopt, getopt_long, getopt_long_only): Use it.
19989         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
19990         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
19991         Use it.
19992         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
19993         (iconv_open): Use it.
19994         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
19995         (strtoimax, strtoumax): Use it.
19996         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
19997         (duplocale): Use it.
19998         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
19999         (frexp, frexpl): Use it.
20000         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
20001         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
20002         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
20003         (tsearch, tfind, tdelete, twalk): Use it.
20004         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
20005         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
20006         sigpending): Use it.
20007         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
20008         (posix_spawn, posix_spawnp, posix_spawnattr_init,
20009         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
20010         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
20011         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
20012         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
20013         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
20014         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
20015         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
20016         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
20017         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
20018         Use it.
20019         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
20020         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
20021         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
20022         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
20023         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
20024         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
20025         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
20026         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
20027         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
20028         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
20029         strtoull, unsetenv): Use it.
20030         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
20031         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
20032         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
20033         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
20034         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
20035         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
20036         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
20037         (strcasecmp, strncasecmp): Use it.
20038         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
20039         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
20040         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
20041         rpl_setsockopt): Use it.
20042         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
20043         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
20044         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
20045         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
20046         (gettimeofday): Use it.
20047         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
20048         (times): Use it.
20049         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
20050         (uname): Use it.
20051         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
20052         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
20053         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
20054         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
20055         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
20056         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
20057         unlinkat, write): Use it.
20058         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
20059         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
20060         * lib/argv-iter.h: Include arg-nonnull.h.
20061         (_ATTRIBUTE_NONNULL_): Remove macro.
20062         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
20063         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
20064         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
20065         optimization.
20066         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
20067         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
20068         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
20069         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
20070         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
20071         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
20072         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
20073         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
20074         * modules/arpa_inet (Depends-on): Add arg-nonnull.
20075         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
20076         * modules/dirent (Depends-on): Add arg-nonnull.
20077         (Makefile.am): Insert arg-nonnull.h into dirent.h.
20078         * modules/fcntl-h (Depends-on): Add arg-nonnull.
20079         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
20080         * modules/fnmatch (Depends-on): Add arg-nonnull.
20081         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
20082         * modules/getopt-posix (Depends-on): Add arg-nonnull.
20083         (Makefile.am): Insert arg-nonnull.h into getopt.h.
20084         * modules/glob (Depends-on): Add arg-nonnull.
20085         (Makefile.am): Insert arg-nonnull.h into glob.h.
20086         * modules/iconv_open (Depends-on): Add arg-nonnull.
20087         (Makefile.am): Insert arg-nonnull.h into iconv.h.
20088         * modules/inttypes (Depends-on): Add arg-nonnull.
20089         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
20090         * modules/locale (Depends-on): Add arg-nonnull.
20091         (Makefile.am): Insert arg-nonnull.h into locale.h.
20092         * modules/math (Depends-on): Add arg-nonnull.
20093         (Makefile.am): Insert arg-nonnull.h into math.h.
20094         * modules/netdb (Depends-on): Add arg-nonnull.
20095         (Makefile.am): Insert arg-nonnull.h into netdb.h.
20096         * modules/search (Depends-on): Add arg-nonnull.
20097         (Makefile.am): Insert arg-nonnull.h into search.h.
20098         * modules/signal (Depends-on): Add arg-nonnull.
20099         (Makefile.am): Insert arg-nonnull.h into signal.h.
20100         * modules/spawn (Depends-on): Add arg-nonnull.
20101         (Makefile.am): Insert arg-nonnull.h into spawn.h.
20102         * modules/stdio (Depends-on): Add arg-nonnull.
20103         (Makefile.am): Insert arg-nonnull.h into stdio.h.
20104         * modules/stdlib (Depends-on): Add arg-nonnull.
20105         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
20106         * modules/string (Depends-on): Add arg-nonnull.
20107         (Makefile.am): Insert arg-nonnull.h into string.h.
20108         * modules/strings (Depends-on): Add arg-nonnull.
20109         (Makefile.am): Insert arg-nonnull.h into strings.h.
20110         * modules/sys_socket (Depends-on): Add arg-nonnull.
20111         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
20112         * modules/sys_stat (Depends-on): Add arg-nonnull.
20113         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
20114         * modules/sys_time (Depends-on): Add arg-nonnull.
20115         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
20116         * modules/sys_times (Depends-on): Add arg-nonnull.
20117         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
20118         * modules/sys_utsname (Depends-on): Add arg-nonnull.
20119         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
20120         * modules/time (Depends-on): Add arg-nonnull.
20121         (Makefile.am): Insert arg-nonnull.h into time.h.
20122         * modules/unistd (Depends-on): Add arg-nonnull.
20123         (Makefile.am): Insert arg-nonnull.h into unistd.h.
20124         * modules/wchar (Depends-on): Add arg-nonnull.
20125         (Makefile.am): Insert arg-nonnull.h into wchar.h.
20126         * modules/argv-iter (Depends-on): Add arg-nonnull.
20127         * tests/test-canonicalize.c (null_ptr): New function.
20128         (main): Use it.
20129         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
20130         (main): Use it.
20131         * tests/test-memmem.c (null_ptr): New function.
20132         (main): Use it.
20133         Reported by Jim Meyering.
20134
20135 2009-12-10  Bruno Haible  <bruno@clisp.org>
20136
20137         Use spaces for indentation, not tabs.
20138         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
20139         * m4/*.m4: Untabify.
20140         * build-aux/*.h: Untabify.
20141         * tests/**/*.[hc]: Untabify.
20142         * README: New section "Indent with spaces, not TABs", based on
20143         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
20144         * NEWS: Mention the change.
20145
20146 2009-12-10  Bruno Haible  <bruno@clisp.org>
20147
20148         pty test: Fix link error.
20149         * modules/pty-tests (Makefile.am): Add the default LDADD value to
20150         test_pty_LDADD.
20151
20152 2009-12-07  Simon Josefsson  <simon@josefsson.org>
20153
20154         * modules/pty: New file.
20155         * modules/pty-tests: New file.
20156         * m4/pty.m4: New file.
20157         * tests/test-pty.c: New file.
20158         * doc/glibc-headers/pty.texi: Modified.
20159         * doc/glibc-functions/forkpty.texi: Modified.
20160         * doc/glibc-functions/openpty.texi: Modified.
20161
20162 2009-12-10  Bruno Haible  <bruno@clisp.org>
20163
20164         Avoid syntax error in C++ mode.
20165         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
20166
20167 2009-12-10  Bruno Haible  <bruno@clisp.org>
20168
20169         Use sed with option -e.
20170         * gnulib-tool (func_version, func_emit_copyright_notice,
20171         func_emit_initmacro_end, func_import, func_create_testdir): Pass
20172         option -e to sed.
20173         * modules/link-warning (Makefile.am): Likewise.
20174
20175 2009-12-10  Jim Meyering  <meyering@redhat.com>
20176
20177         mgetgroups: do not write bytes beyond end of malloc'd buffer
20178         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
20179         username, we call getgroups with a one-element-shorter buffer,
20180         but still told it the length was original, max_n_groups.
20181
20182 2009-12-09  Eric Blake  <ebb9@byu.net>
20183
20184         cloexec: relax license
20185         * modules/cloexec (Maintainer): Add myself.
20186         (License): Use LGPL, not GPL.
20187
20188         link-warning: optimize generation
20189         * modules/link-warning (Makefile.am): Reduce process usage.
20190
20191 2009-12-09  Bruno Haible  <bruno@clisp.org>
20192
20193         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
20194         workaround was added on 2009-11-17.
20195
20196 2009-12-09  Jim Meyering  <meyering@redhat.com>
20197             Bruno Haible  <bruno@clisp.org>
20198
20199         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
20200         * modules/link-warning (Makefile.am): Make the comment-removing sed
20201         command more robust in the face of bootstrap-prepended comment lines.
20202
20203 2009-12-09  Bruno Haible  <bruno@clisp.org>
20204
20205         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
20206         most one group.
20207
20208 2009-12-09  Simon Josefsson <simon@josefsson.org>
20209             Bruno Haible  <bruno@clisp.org>
20210
20211         * build-aux/link-warning.h: Add copyright notice.
20212         * modules/link-warning (Makefile.am): Generate link-warning.h from
20213         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
20214         * NEWS: Mention change in link-warning module.
20215         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
20216         * modules/dirent (Makefile.am): Add dependency to dirent.h.
20217         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
20218         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
20219         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
20220         * modules/math (Makefile.am): Add dependency to math.h.
20221         * modules/search (Makefile.am): Add dependency to search.h.
20222         * modules/signal (Makefile.am): Add dependency to signal.h.
20223         * modules/spawn (Makefile.am): Add dependency to spawn.h.
20224         * modules/stdio (Makefile.am): Add dependency to stdio.h.
20225         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
20226         * modules/string (Makefile.am): Add dependency to string.h.
20227         * modules/strings (Makefile.am): Add dependency to strings.h.
20228         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
20229         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
20230         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
20231         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
20232         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
20233         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
20234         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
20235         * modules/unistd (Makefile.am): Add dependency to unistd.h.
20236         * modules/wchar (Makefile.am): Add dependency to wchar.h.
20237
20238 2009-12-09  Bruno Haible  <bruno@clisp.org>
20239
20240         fchdir: Optimize away rpl_fstat when possible.
20241         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
20242         REPLACE_OPEN_DIRECTORY.
20243         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
20244
20245 2009-12-09  Bruno Haible  <bruno@clisp.org>
20246
20247         * lib/fchdir.c: Update comment.
20248
20249 2009-12-09  Bruno Haible  <bruno@clisp.org>
20250
20251         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
20252
20253 2009-12-08  Eric Blake  <ebb9@byu.net>
20254
20255         fchdir: avoid memory leak on re-registration.
20256         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
20257
20258 2009-12-08  Jim Meyering  <meyering@redhat.com>
20259
20260         init.sh: avoid Solaris 10 /bin/sh portability problem
20261         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
20262         sourced script:
20263           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
20264           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
20265           bar
20266         tests/init.sh relied on that, accepting a --set-path=DIR argument,
20267         and two tests used that idiom.
20268         * tests/init.sh: Update suggested usage comments.
20269         (path_prepend_): New function, to be used in place
20270         of the --src-path=DIR option.
20271         (setup_): Move PATH-prepending code into path_prepend_.
20272         * tests/test-pread.sh: Adapt to new usage.
20273         * tests/test-xalloc-die.sh: Likewise.
20274
20275 2009-12-08  Simon Josefsson  <simon@josefsson.org>
20276
20277         * doc/gnulib.texi (Glibc pty.h): Add.
20278         * doc/glibc-functions/forkpty.texi: Add.
20279         * doc/glibc-functions/openpty.texi: Add.
20280         Suggested by Bruno Haible.
20281
20282 2009-12-08  Eric Blake  <ebb9@byu.net>
20283
20284         fchdir: fix logic bugs
20285         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
20286         * tests/test-fchdir.c (main): Enhance test.
20287         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
20288         is in use.
20289
20290         dup2: fix logic bugs
20291         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
20292         REPLACE_DUP2 to decide when rpl_dup2 is needed.
20293         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
20294         exists.
20295         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
20296
20297 2009-12-07  Eric Blake  <ebb9@byu.net>
20298
20299         unlink: fix m4 detection
20300         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
20301
20302         unistd-safer: add unit test
20303         * modules/unistd-safer-tests: New file.
20304         * tests/test-dup-safer.c: Likewise.
20305         * tests/test-cloexec.c (setmode): Avoid compiler warning.
20306         * tests/test-dup2.c (setmode): Likewise.
20307         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
20308
20309         cloexec: preserve text vs. binary across dup_cloexec
20310         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
20311         mode.
20312         * modules/dup2-tests (Depends-on): Add binary-io.
20313         * modules/cloexec-tests (Depends-on): Likewise.
20314         * tests/test-dup2.c (setmode, is_mode): New helpers.
20315         (main): Add tests that translation mode is preserved.
20316         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
20317         Reported by Bruno Haible.
20318
20319         mgetgroups: reduce duplicate listings
20320         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
20321         resulting array.
20322         * tests/test-chown.h (test_chown): Simplify client.
20323         * tests/test-lchown.h (test_lchown): Likewise.
20324
20325 2009-12-06  Bruno Haible  <bruno@clisp.org>
20326
20327         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
20328         value.
20329
20330 2009-12-06  Bruno Haible  <bruno@clisp.org>
20331
20332         * lib/progname.c: Include stdio.h, stdlib.h.
20333         (set_program_name): Reject a NULL argument.
20334
20335 2009-12-05  Eric Blake  <ebb9@byu.net>
20336
20337         pipe2-safer: new module
20338         * modules/pipe2-safer: New file.
20339         * lib/unistd-safer.h (pipe2_safer): New prototype.
20340         * lib/unistd--.h (pipe2): New wrapper.
20341         * lib/pipe-safer.c (pipe2_safer): New function.
20342         * modules/pipe (Depends-on): Add pipe2-safer.
20343         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
20344
20345         stdlib-safer: preserve cloexec flag for mkostemp[s]
20346         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
20347         fd_safer_flag.
20348
20349         unistd-safer: allow preservation of cloexec status via flag
20350         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
20351         prototypes.
20352         * lib/dup-safer.c (dup_safer_flag): New function.
20353         * lib/fd-safer.c (fd_safer_flag): Likewise.
20354         * modules/cloexec (configure.ac): Set witness.
20355
20356         test-dup2: enhance test
20357         * modules/dup2-tests (Depends-on): Add cloexec.
20358         * tests/test-dup2.c (main): Enhance test.
20359
20360         cloexec: add dup_cloexec
20361         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
20362         header and comments.
20363         * lib/cloexec.c (set_cloexec_flag): Add comments.
20364         (dup_cloexec): New function, with mingw implementation borrowed
20365         from...
20366         * lib/w32spawn.h (dup_noinherit): ...here.
20367         * modules/execute (Depends-on): Add cloexec.
20368         * modules/pipe (Depends-on): Likewise.
20369         * modules/cloexec (Depends-on): Add dup2.
20370         * modules/cloexec-tests (Files): New file.
20371         * tests/test-cloexec.c: Likewise.
20372
20373         test-xalloc-die: fix test for mingw
20374         * modules/xalloc-die-tests (Files): Add tests/init.sh.
20375         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
20376         directory and .exe suffix off argv[0] output.
20377
20378         test-fseeko: fix test for mingw
20379         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
20380         than undefining fseek, so test will pass on mingw.
20381
20382 2009-12-05  Bruno Haible  <bruno@clisp.org>
20383
20384         * lib/progname.h (set_program_name): Clarify specification.
20385         * lib/progname.c (set_program_name): Likewise.
20386         Reported by Jim Meyering.
20387
20388 2009-12-05  Jim Meyering  <meyering@redhat.com>
20389
20390         maint.mk: backslash-escape parens in default regexp
20391         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
20392         backslash-escape the literal parentheses.
20393
20394         maint.mk: news-date-check: use grep -E
20395         * top/maint.mk (today): Define a Make variable, not a...
20396         (news-date-check): ...shell variable.
20397         (news-date-regexp): Use the Make variable.
20398         Use grep's -E option.  Change the failing diagnostic to mention
20399         the variable, $(news-date-regexp).
20400
20401 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
20402
20403         maintainer-makefile: allow customization of NEWS entry format
20404         * top/maint.mk (news-date-regexp): New overridable variable.
20405         (news-date-check): Use it.
20406
20407 2009-12-04  Eric Blake  <ebb9@byu.net>
20408
20409         mgetgroups: add xgetgroups, and avoid ENOSYS failures
20410         * lib/mgetgroups.h (xgetgroups): New prototype.
20411         * lib/mgetgroups.c (xgetgroups): New wrapper.
20412         (mgetgroups): Handle ENOSYS.
20413         * modules/mgetgroups (Depends-on): Add realloc.
20414         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
20415
20416         mgetgroups: avoid argument promotion issues with -1
20417         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
20418         for invalid gid_t.
20419         * tests/test-chown.h (getegid, test_chown): Likewise.
20420         * tests/test-lchown.h (getegid, test_lchown): Likewise.
20421
20422 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
20423
20424         exclude: Fix header file problems.
20425         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
20426
20427 2009-12-01  Jim Meyering  <meyering@redhat.com>
20428
20429         fts: fts_open: do not let an empty string cause immediate failure
20430         This is required in support of GNU rm, for which the command
20431         "rm A '' B" must process and remove both A and B, in spite of
20432         the empty string argument.
20433         * lib/fts.c (fts_open): Do not let the presence of an empty string
20434         cause fts_open to fail immediately.  Most fts-using tools must be
20435         able to process all arguments, in order, and can be expected to
20436         diagnose such arguments themselves.
20437
20438 2009-11-30  Eric Blake  <ebb9@byu.net>
20439
20440         utimens: fix compilation error
20441         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
20442         Declare variable at right scope.
20443
20444 2009-11-29  Jim Meyering  <meyering@redhat.com>
20445
20446         bootstrap: handle perl-5.11's changed --version output
20447         * build-aux/bootstrap (get_version): Handle perl separately,
20448         since perl-5.11's --version output is different.
20449
20450 2009-11-28  Jim Meyering  <meyering@redhat.com>
20451
20452         userspec: depend on the inttostr module, too
20453         * modules/userspec (Depends-on): Add inttostr.
20454
20455         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
20456         * lib/userspec.c (parse_with_separator): Do not accept a user ID
20457         number of MAXUID when it evaluates to (uid_t) -1.
20458         Likewise for group ID.  Reported by Matt McCutchen in
20459         <http://savannah.gnu.org/bugs/?28113>
20460
20461         userspec: reformat to use spaces, not TABs
20462         * lib/userspec.c: Expand TABs to spaces.
20463         Add Emacs' "indent-tabs-mode: nil" hint.
20464
20465 2009-11-27  Eric Blake  <ebb9@byu.net>
20466
20467         getopt-gnu: flush out another BSD bug
20468         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
20469         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
20470         flush out BSD bug.
20471         * tests/test-getopt.h (test_getopt): End lists with NULL.
20472         * tests/test-getopt_long.h (test_getopt_long): Likewise.
20473         (test_getopt_long_posix): Enhance test.
20474         * modules/getopt-posix-tests (Depends-on): Add stdbool.
20475         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
20476         getopt-gnu.
20477         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20478         Likewise.
20479
20480 2009-11-27  Simon Josefsson  <simon@josefsson.org>
20481
20482         * modules/idpriv-droptemp-tests (Notice): Fix text.
20483
20484 2009-11-27  Jim Meyering  <meyering@redhat.com>
20485
20486         test-xalloc-die: avoid spurious failure due to libtool argv difference
20487         In a libtool-enabled project, this test would fail due to a difference
20488         in the emitted program name, e.g.,
20489         -test-xalloc-die: memory exhausted
20490         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
20491         Use program to avoid that.
20492         * modules/xalloc-die-tests (Depends-on): Add progname.
20493         * tests/test-xalloc-die.c: Include progname.h".
20494         (program_name): Remove decl.
20495         (main): Call set_program_name.
20496         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
20497
20498 2009-11-26  Richard Jones  <rjones@redhat.com>
20499
20500         w32sock: leave win32 error in place.
20501         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
20502
20503 2009-11-26  Eric Blake  <ebb9@byu.net>
20504
20505         init.sh: suggest to use skip_ and fail_ functions in comments
20506         * tests/init.sh: Add a sentence.
20507
20508 2009-11-25  Bruno Haible  <bruno@clisp.org>
20509
20510         init.sh: add documentation in comments
20511         * tests/init.sh: Add some developer and user documentation.
20512
20513 2009-11-26  Jim Meyering  <meyering@redhat.com>
20514
20515         init.sh: accommodate even those who specify bogus srcdir manually
20516         * tests/init.sh: Normally, srcdir is guaranteed by automake and
20517         configure-time tests to be sanitized, so that there is no need to
20518         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
20519         (with no double quotes) suffices.  However, since tests may be
20520         invoked manually, and since you may explicitly set srcdir to the
20521         name of a directory containing spaces, do quote its uses here.
20522         * tests/test-pread.sh: Likewise.
20523         Suggested by Bruno Haible.
20524
20525         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
20526         * tests/test-pread.sh: Write no data into the pipe, because
20527         test-pread actually reads none.  This avoids a diagnostic,
20528         "bash: echo: write error: Broken pipe", that arises in the unusual
20529         event something is ignoring SIGPIPE, and might be interpreted
20530         as some sort of failure.  Reported by Bruno Haible.
20531
20532 2009-11-25  Jim Meyering  <meyering@redhat.com>
20533
20534         test-pread: cover failure with ESPIPE and EINVAL
20535         * tests/test-pread.c (main): Test for failure, too.
20536         * tests/test-pread.sh: Invoke with stdin on a pipe.
20537         Suggested by Eric Blake.
20538
20539         pread: improvement and fix
20540         * modules/pread (Depends-on): Depend on lseek, for portability to
20541         e.g., mingw.  Suggested by Eric Blake.
20542         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
20543
20544         unistd.in.h: correct declaration of pread
20545         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
20546         Reported by Richard W.M. Jones.
20547
20548         test-pread.sh: distribute the test script
20549         * modules/pread-tests (Files): Include test-pread.sh.
20550
20551         test-pread.sh: clean up
20552         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
20553         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
20554         That is unnecessary, since it's always ".".
20555         Suggestion from Eric Blake.
20556
20557         test-pread.sh: make executable
20558         * tests/test-pread.sh: Set executable bit.
20559         Reported by Eric Blake.
20560
20561         correct typo in test-pread.sh
20562         * tests/test-pread.sh: Add #! line.
20563
20564         test pread
20565         * tests/test-pread.c: New file.
20566         * tests/test-pread.sh: Likewise.
20567         * modules/pread-tests: Likewise.
20568
20569         pread: new module
20570         * modules/pread: New file.
20571         * lib/unistd.in.h (pread): Define/declare.
20572         * lib/pread.c (pread): New file.
20573         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
20574         * modules/unistd (Makefile.am): Substitute witnesses.
20575         * doc/posix-functions/pread.texi (pread): Update.
20576         * MODULES.html.sh: Add pread.
20577
20578 2009-11-25  Jim Meyering  <meyering@redhat.com>
20579
20580         tests/init.sh: new file to be used via most *.sh tests
20581         * tests/init.sh: New file.
20582
20583 2009-11-25  Eric Blake  <ebb9@byu.net>
20584
20585         utimens: work around older Linux failure with symlinks
20586         * lib/utimens.c (lutimensat_works_really): New variable.
20587         (fdutimens, lutimens): Use it to manage kernels that support
20588         nanosecond times on files, but not on symlinks.
20589         Reported by OndÅ™ej Vašík.
20590
20591         utimes: fix configure grammar
20592         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
20593
20594 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
20595
20596         regex: Fix fastmap for multibyte character ranges.
20597         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
20598         characters when a multibyte character range is included.
20599
20600 2009-11-22  Andy Wingo  <wingo@pobox.com>
20601
20602         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
20603         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
20604
20605 2009-11-24  Bruno Haible  <bruno@clisp.org>
20606
20607         doc: Most *_l functions exist in MacOS X 10.5.
20608         * doc/posix-functions/duplocale.texi: Update platforms list.
20609         * doc/posix-functions/freelocale.texi: Likewise.
20610         * doc/posix-functions/newlocale.texi: Likewise.
20611         * doc/posix-functions/uselocale.texi: Likewise.
20612         * doc/posix-functions/isalnum_l.texi: Likewise.
20613         * doc/posix-functions/isalpha_l.texi: Likewise.
20614         * doc/posix-functions/isblank_l.texi: Likewise.
20615         * doc/posix-functions/iscntrl_l.texi: Likewise.
20616         * doc/posix-functions/isdigit_l.texi: Likewise.
20617         * doc/posix-functions/isgraph_l.texi: Likewise.
20618         * doc/posix-functions/islower_l.texi: Likewise.
20619         * doc/posix-functions/isprint_l.texi: Likewise.
20620         * doc/posix-functions/ispunct_l.texi: Likewise.
20621         * doc/posix-functions/isspace_l.texi: Likewise.
20622         * doc/posix-functions/isupper_l.texi: Likewise.
20623         * doc/posix-functions/iswalnum_l.texi: Likewise.
20624         * doc/posix-functions/iswalpha_l.texi: Likewise.
20625         * doc/posix-functions/iswblank_l.texi: Likewise.
20626         * doc/posix-functions/iswcntrl_l.texi: Likewise.
20627         * doc/posix-functions/iswctype_l.texi: Likewise.
20628         * doc/posix-functions/iswdigit_l.texi: Likewise.
20629         * doc/posix-functions/iswgraph_l.texi: Likewise.
20630         * doc/posix-functions/iswlower_l.texi: Likewise.
20631         * doc/posix-functions/iswprint_l.texi: Likewise.
20632         * doc/posix-functions/iswpunct_l.texi: Likewise.
20633         * doc/posix-functions/iswspace_l.texi: Likewise.
20634         * doc/posix-functions/iswupper_l.texi: Likewise.
20635         * doc/posix-functions/iswxdigit_l.texi: Likewise.
20636         * doc/posix-functions/isxdigit_l.texi: Likewise.
20637         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
20638         * doc/posix-functions/strcasecmp_l.texi: Likewise.
20639         * doc/posix-functions/strcoll_l.texi: Likewise.
20640         * doc/posix-functions/strfmon_l.texi: Likewise.
20641         * doc/posix-functions/strftime_l.texi: Likewise.
20642         * doc/posix-functions/strncasecmp_l.texi: Likewise.
20643         * doc/posix-functions/strxfrm_l.texi: Likewise.
20644         * doc/posix-functions/tolower_l.texi: Likewise.
20645         * doc/posix-functions/toupper_l.texi: Likewise.
20646         * doc/posix-functions/towctrans_l.texi: Likewise.
20647         * doc/posix-functions/towlower_l.texi: Likewise.
20648         * doc/posix-functions/towupper_l.texi: Likewise.
20649         * doc/posix-functions/wcscoll_l.texi: Likewise.
20650         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
20651         * doc/posix-functions/wctrans_l.texi: Likewise.
20652         * doc/posix-functions/wctype_l.texi: Likewise.
20653         * doc/glibc-functions/strptime_l.texi: Likewise.
20654         * doc/glibc-functions/strtod_l.texi: Likewise.
20655         * doc/glibc-functions/strtof_l.texi: Likewise.
20656         * doc/glibc-functions/strtol_l.texi: Likewise.
20657         * doc/glibc-functions/strtold_l.texi: Likewise.
20658         * doc/glibc-functions/strtoll_l.texi: Likewise.
20659         * doc/glibc-functions/strtoul_l.texi: Likewise.
20660         * doc/glibc-functions/strtoull_l.texi: Likewise.
20661         * doc/glibc-functions/wcsftime_l.texi: Likewise.
20662         * doc/glibc-functions/wcstod_l.texi: Likewise.
20663         * doc/glibc-functions/wcstof_l.texi: Likewise.
20664         * doc/glibc-functions/wcstol_l.texi: Likewise.
20665         * doc/glibc-functions/wcstold_l.texi: Likewise.
20666         * doc/glibc-functions/wcstoll_l.texi: Likewise.
20667         * doc/glibc-functions/wcstoul_l.texi: Likewise.
20668         * doc/glibc-functions/wcstoull_l.texi: Likewise.
20669
20670 2009-11-24  Bruno Haible  <bruno@clisp.org>
20671
20672         duplocale: Fix logic bug.
20673         * lib/duplocale.c: Don't include <langinfo.h>.
20674         (_NL_LOCALE_NAME): Remove macro.
20675         (rpl_duplocale): Use setlocale instead of nl_langinfo.
20676         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
20677
20678 2009-11-23  Jim Meyering  <meyering@redhat.com>
20679
20680         test-update-copyright: don't hard-code /usr/bin/perl
20681         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
20682         perl to print the current year.  Gilles Espinasse reported that
20683         the replaced use of perl was hard-coded as /usr/bin/perl.
20684
20685 2009-11-23  Bruno Haible  <bruno@clisp.org>
20686
20687         duplocale: Add support for glibc 2.3.x.
20688         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
20689
20690 2009-11-22  Bruno Haible  <bruno@clisp.org>
20691
20692         vasnprintf: Tiny optimization.
20693         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
20694         MacOS X.
20695
20696 2009-11-22  Bruno Haible  <bruno@clisp.org>
20697
20698         Tests for module 'duplocale'.
20699         * modules/duplocale-tests: New file.
20700         * tests/test-duplocale.c: New file.
20701
20702         New module 'duplocale'.
20703         * m4/duplocale.m4: New file.
20704         * lib/locale.in.h (duplocale): New declaration.
20705         * lib/duplocale.c: New file.
20706         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
20707         gl_LOCALE_H_DEFAULTS): New macros.
20708         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
20709         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
20710         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
20711         REPLACE_DUPLOCALE.
20712         * modules/duplocale: New file.
20713         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
20714
20715 2009-11-22  Bruno Haible  <bruno@clisp.org>
20716
20717         * modules/locale-tests (configure.ac): Test for newlocale function.
20718         * tests/test-locale.c: When the system has extended locale functions,
20719         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
20720
20721         locale: Make locale_t available when possible.
20722         * lib/locale.in.h: Include <xlocale.h> when it exists.
20723         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
20724         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
20725         * modules/locale (Depends-on): Add extensions.
20726         (Makefile.am): Also substitute HAVE_XLOCALE_H.
20727         * doc/posix-headers/locale.texi: Document the problem with locale_t.
20728
20729 2009-11-22  Bruno Haible  <bruno@clisp.org>
20730
20731         Add comments.
20732         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
20733         invocation.
20734         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
20735         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20736         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
20737
20738 2009-11-22  Bruno Haible  <bruno@clisp.org>
20739
20740         error: account for the possibility of freopen (stdout).
20741         * lib/error.c: Include <unistd.h>.
20742         (flush_stdout): New function, extracted from error and error_at_line.
20743         Determine stdout's fd dynamically.
20744         (error, error_at_line): Invoke flush_stdout.
20745         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
20746         * modules/error (Depends-on): Add unistd.
20747
20748 2009-11-22  Bruno Haible  <bruno@clisp.org>
20749
20750         diffseq: Add comment.
20751         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
20752
20753 2009-11-22  Jim Meyering  <meyering@redhat.com>
20754
20755         c-stack: avoid defining an unused static function
20756         * lib/c-stack.c (find_stack_direction): Do not define this function
20757         when it will not be used.
20758
20759         diffseq: avoid spurious gcc warnings
20760         * lib/diffseq.h (IF_LINT2): Define.
20761         (compareseq): Use it to initialize two members of "part".
20762         This avoids two used-uninitialized warnings.
20763
20764 2009-11-21  Jim Meyering  <meyering@redhat.com>
20765
20766         c-stack: avoid "ignoring return value of `write'" warning
20767         * lib/c-stack.c: Include "ignore-value.h".
20768         (die): Explicitly ignore each write return value.
20769         * modules/c-stack (Depends-on): Add ignore-value.
20770
20771 2009-11-21  Bruno Haible  <bruno@clisp.org>
20772
20773         diffseq: reduce scope of variable 'best'.
20774         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
20775         variable, earlier used for two different purposes.
20776
20777 2009-11-21  Jim Meyering  <meyering@redhat.com>
20778
20779         diffseq: remove useless assignment to "best"
20780         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
20781         assignment.  At that point "best" is already guaranteed to be zero.
20782
20783 2009-11-20  Eric Blake  <ebb9@byu.net>
20784
20785         build: mention ftp redirector in release announcements
20786         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
20787         values that used to come from cfg.mk; mention FTP redirect URL.
20788         * build-aux/announce-gen: Mention the mirror list.
20789         Suggested by Karl Berry.
20790
20791         nanosleep: improve port to mingw
20792         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
20793         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
20794         LIB_NANOSLEEP, but only when needed.
20795         * modules/select (Link): Document LIBSOCKET.
20796         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
20797         enough.
20798
20799         nanosleep: work around cygwin bug
20800         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
20801         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
20802         bug.
20803         (getnow): Delete, not needed.
20804         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
20805         LIB_CLOCK_GETTIME.
20806         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
20807         clock-time, gettime.
20808         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
20809         bug.
20810         * modules/nanosleep-tests: New test.
20811         * tests/test-nanosleep.c: New file.
20812
20813         sleep: work around cygwin bug
20814         * lib/sleep.c (rpl_sleep): Work around the bug.
20815         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
20816         (gl_PREREQ_SLEEP): Delete unused macro.
20817         * modules/sleep (Depends-on): Add verify.
20818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
20819         * modules/unistd (Makefile.am): Substitute witness.
20820         * lib/unistd.in.h (sleep): Update prototype.
20821         * doc/posix-functions/sleep.texi (sleep): Document the bug.
20822         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
20823         * modules/sleep-tests (Depends-on): Check for alarm.
20824
20825 2009-11-20  Jim Meyering  <meyering@redhat.com>
20826
20827         maint.mk: improve sc_prohibit_magic_number_exit
20828         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
20829         so it does not match uses like System.exit(1).
20830         Add comments showing how to correct all offenders.
20831
20832 2009-11-19  Eric Blake  <ebb9@byu.net>
20833
20834         xalloc-die-tests: add missing library
20835         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
20836
20837         test-xvasprintf: silence compiler warnings
20838         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
20839         empty string from gcc.
20840
20841 2009-11-19  Jim Meyering  <meyering@redhat.com>
20842
20843         xfreopen: new module, from coreutils
20844         * modules/xfreopen: New module.
20845         * lib/xfreopen.c: New file.
20846         * lib/xfreopen.h: New file.
20847         * MODULES.html.sh (File stream based Input/Output"): Add it.
20848
20849 2009-11-19  Eric Blake  <ebb9@byu.net>
20850
20851         manywarnings: depend on warnings
20852         * modules/manywarnings (Depends-on): Add warnings.
20853
20854         build: avoid compiler warnings
20855         * lib/select.c (rpl_select): Delete unused variable.
20856         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
20857
20858 2009-11-18  Eric Blake  <ebb9@byu.net>
20859
20860         tests: avoid false negative with --with-packager
20861         * tests/test-version-etc.sh: Discard packager information.
20862         * tests/test-argp-version-etc-1.sh: Likewise.
20863         Reported by Mike Frysinger.
20864
20865         utimens: fix regression on Solaris
20866         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
20867         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
20868         can only change fd timestamps via futimesat.  Instead, use an
20869         additional witness macro to avoid BSD bug.
20870         Reported by Jim Meyering.
20871
20872 2009-11-17  Eric Blake  <ebb9@byu.net>
20873
20874         usleep: use it to simplify tests
20875         * modules/stat-time-tests (Depends-on): Add usleep.
20876         (configure.ac): Drop usleep check.
20877         * modules/chown-tests (Depends-on, configure.ac): Likewise.
20878         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
20879         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
20880         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
20881         * modules/openat-tests (Depends-on, configure.ac): Likewise.
20882         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
20883         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
20884         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
20885         Likewise.
20886         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
20887         * tests/test-lchown.h (nap): Likewise.
20888         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
20889         * tests/test-stat-time.c (nap): Likewise.
20890         * tests/test-utimens-common.h (nap): Update comments.
20891
20892         usleep: new module
20893         * modules/usleep: New file.
20894         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
20895         * lib/usleep.c (usleep): Likewise.
20896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
20897         * modules/unistd (Makefile.am): Substitute witnesses.
20898         * lib/unistd.in.h (usleep): Add declaration.
20899         * doc/pastposix-functions/usleep.texi (usleep): Document this.
20900         * MODULES.html.sh (Date and time): Likewise.
20901         * modules/usleep-tests (Depends-on): New test.
20902         * tests/test-usleep.c: New file.
20903
20904         chown: work around OpenBSD bug
20905         * lib/chown.c (rpl_chown): Work around the bug.
20906         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
20907         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
20908         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
20909         * modules/chown (Depends-on): Add stdbool.
20910         * modules/lchown (Depends-on): Likewise.
20911         * doc/posix-functions/chown.texi (chown): Document the bug.
20912         * doc/posix-functions/lchown.texi (lchown): Likewise.
20913         * tests/test-lchown.h (test_chown): Relax test.
20914
20915         mkstemp: avoid conflict with C++ keyword template
20916         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
20917         * lib/mkostemp.c (mkostemp): Likewise.
20918         * lib/mkostemps.c (mkostemps): Likewise.
20919         * lib/mkstemp.c (mkstemp): Likewise.
20920         * lib/mkstemps.c (mkstemps): Likewise.
20921
20922         xalloc-die-tests: optimize
20923         * tests/test-xalloc-die.sh: Reduce number of processes.
20924
20925 2009-11-17  Simon Josefsson  <simon@josefsson.org>
20926
20927         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
20928         patch from ludo@gnu.org (Ludovic Courtès).
20929
20930 2009-11-17  Jim Meyering  <meyering@redhat.com>
20931
20932         version-etc: use proper license string
20933         * modules/version-etc (License): Use LGPL, not LGPLv3+.
20934         * modules/version-etc-fsf: Likewise.
20935
20936 2009-11-17  Simon Josefsson  <simon@josefsson.org>
20937
20938         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
20939         printed to stdout.  Deal with EOL differences.
20940
20941 2009-11-17  Eric Blake  <ebb9@byu.net>
20942
20943         unsetenv: work around Solaris bug
20944         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
20945         * lib/unsetenv.c (rpl_unsetenv): Work around it.
20946         Reported by Jim Meyering.
20947
20948         vasnprintf: avoid compiler warnings
20949         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
20950         variables.
20951         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
20952
20953 2009-11-17  Simon Josefsson  <simon@josefsson.org>
20954
20955         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
20956         settings since xalloc-die is no longer the self test,
20957         xalloc-die.sh is.
20958
20959 2009-11-17  Jim Meyering  <meyering@redhat.com>
20960
20961         test-xalloc-die.sh: make the code agree with the commit log
20962         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
20963         at the end, just in case you happen to have a test-xalloc-die
20964         program in some other PATH directory.
20965
20966         test-xalloc-die.sh: fix a portability bug
20967         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
20968         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
20969         Otherwise, argv[0] (as often seen in diagnostics) would be too
20970         system-dependent, sometimes with, and sometimes without the leading "./".
20971
20972         version-etc-fsf: relax license to LGPLv3+
20973         * modules/version-etc-fsf (License): Relax license.
20974
20975 2009-11-16  Eric Blake  <ebb9@byu.net>
20976
20977         xalloc-die-tests: avoid printing null pointer
20978         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
20979         shell script.
20980         * tests/test-xalloc-die.c (program_name): Declare.
20981         * tests/test-xalloc-die.sh (tmpfiles): New file.
20982
20983         setenv, unsetenv: work around various bugs
20984         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
20985         (setenv) [HAVE_SETENV]: Work around bugs.
20986         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
20987         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
20988         for bugs.
20989         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
20990         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
20991         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
20992         * modules/stdlib (Makefile.am): Update substitutions.
20993         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
20994         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
20995         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
20996         * modules/setenv-tests: New test.
20997         * modules/unsetenv-tests: Likewise.
20998         * tests/test-setenv.c: New file.
20999         * tests/test-unsetenv.c: Likewise.
21000
21001 2009-11-16  Jim Meyering  <meyering@redhat.com>
21002
21003         version-etc: relax license to LGPLv3+
21004         * modules/version-etc (License): Relax license.
21005
21006         better AC_REQUIRE expanded-before-required-warning avoidance
21007         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
21008         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
21009         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
21010         which is no longer needed.
21011
21012 2009-11-16  Eric Blake  <ebb9@byu.net>
21013
21014         test-freading: clean up temporary file
21015         * tests/test-freading.c (main): Remove file on success, and use
21016         ASSERT more liberally.
21017         Reported by Jim Meyering.
21018
21019 2009-11-16  Jim Meyering  <meyering@redhat.com>
21020
21021         avoid new AC_REQUIRE expanded-before-required warnings
21022         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
21023         merely using it.
21024         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
21025         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
21026
21027 2009-11-15  Simon Josefsson  <simon@josefsson.org>
21028
21029         * tests/test-xalloc-die.c: New file.
21030         * modules/xalloc-die-tests: New file.
21031         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
21032         XFAIL_TESTS so it can be appended by modules.
21033
21034 2009-11-15  Simon Josefsson  <simon@josefsson.org>
21035
21036         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
21037         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
21038
21039 2009-11-14  Eric Blake  <ebb9@byu.net>
21040
21041         fnmatch: avoid compiler warning
21042         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
21043         to silence compiler warning about mismatch signedness in ?:.
21044         Reported by Robert Millan.
21045
21046         intprops: add double-inclusion guard
21047         * lib/intprops.h: Allow idempotent includes.
21048         Suggested by Bruce Korb.
21049
21050         openat: detect Solaris fchownat bug
21051         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
21052         penalizing glibc chownat when only lchownat is broken.
21053         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
21054         trailing slash bugs.
21055         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
21056         * modules/openat-tests (Files): Include more files.
21057         (Depends-on): Add mgetgroups, sleep, stat-time.
21058         (configure.ac): Add additional checks.
21059         (Makefile.am): Build new test.
21060         * tests/test-fchownat.c: New file.
21061
21062         lchown: detect Solaris and FreeBSD bug
21063         * lib/lchown.c (rpl_lchown): Work around bug.
21064         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
21065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21066         * modules/unistd (Makefile.am): Populate it.
21067         * lib/unistd.in.h (lchown): Update declaration.
21068         * doc/posix-functions/lchown.texi (lchown): Document the bug.
21069         * modules/lchown-tests: New file.
21070         * tests/test-lchown.h (test_lchown): Likewise.
21071         * tests/test-lchown.c (main): Likewise.
21072
21073         chown: detect Solaris and FreeBSD bug
21074         * lib/chown.c (rpl_chown): Work around bug.
21075         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
21076         (gl_PREREQ_CHOWN): Delete.
21077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21078         * modules/unistd (Makefile.am): Populate it.
21079         * lib/unistd.in.h (chown): Update declaration.
21080         * lib/lchown.c (chown): Update client.
21081         * modules/lchown (Depends-on): Add lstat.
21082         * doc/posix-functions/chown.texi (chown): Document the bug.
21083         * doc/posix-functions/getgroups.texi (getgroups): Document
21084         getgroups pitfall.
21085         * modules/chown-tests: New file.
21086         * tests/test-chown.h (test_chown): Likewise.
21087         * tests/test-chown.c (main): Likewise.
21088
21089 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
21090
21091         gnulib-tool: correctly detect absence of m4 directories
21092         * gnulib-tool: Avoid extra newline on data passed to wc -l.
21093
21094 2009-11-14  Jim Meyering  <meyering@redhat.com>
21095
21096         maint.mk: Prohibit inclusion of "xalloc.h" without use.
21097         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
21098
21099 2009-11-14  John W. Eaton  <jwe@gnu.org>
21100
21101         strftime.h: wrap funtion declaration in extern "C" block
21102         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
21103
21104 2009-11-13  Eric Blake  <ebb9@byu.net>
21105
21106         getgroups: avoid compiler warning
21107         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
21108
21109         getgroups: work around FreeBSD bug
21110         * lib/getgroups.c (rpl_getgroups): Work around the bug.
21111         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
21112         * doc/posix-functions/getgroups.texi (getgroups): Document it.
21113         * tests/test-getgroups.c (main): Fix buffer overrun.
21114
21115         getgroups: avoid compilation failure
21116         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
21117         * modules/getgroups (Depends-on): Add stdint.
21118
21119 2009-11-13  Jim Meyering  <meyering@redhat.com>
21120
21121         test-getgroups: avoid compilation failure
21122         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
21123
21124 2009-11-13  Eric Blake  <ebb9@byu.net>
21125
21126         mgetgroups: new module, taken from coreutils
21127         * modules/mgetgroups: New file.
21128         * lib/mgetgroups.h: Likewise.
21129         * lib/mgetgroups.c (mgetgroups): Likewise.
21130         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
21131         * MODULES.html.sh (Users and groups): Mention it.
21132
21133         getgroups: don't expose GETGROUPS_T to user
21134         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
21135         an element at a time if GETGROUPS_T is wrong size.
21136         * lib/getugroups.h (getugroups): Change signature.
21137         * lib/unistd.in.h (getgroups): Likewise.
21138         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
21139         signature needs fixing.
21140         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
21141         AC_TYPE_GETGROUPS.
21142         * modules/group-member (Depends-on): Add getgroups.
21143         * lib/group-member.c (group_info, get_group_info): Use gid_t.
21144         (group_member): Rely on getgroups replacement.
21145         * lib/getugroups.c (getugroups): Use gid_t.
21146         * tests/test-getgroups.c (main): Likewise.
21147         * NEWS: Mention the signature change.
21148         * doc/posix-functions/getgroups.texi (getgroups): Mention the
21149         problem with signature.
21150         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
21151         GETGROUPS_T is still useful for setgroups.
21152
21153         getgroups, getugroups: provide stubs for mingw
21154         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
21155         * lib/getugroups.c (getugroups): Likewise.
21156         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
21157         function.  Modernize replacement scheme.
21158         (gl_PREREQ_GETGROUPS): Delete.
21159         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
21160         * modules/getgroups (configure.ac): Declare witness.
21161         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
21162         * modules/unistd (Depends-on): Substitute witness.
21163         * lib/unistd.in.h (getgroups): Declare replacement.
21164
21165         getgroups: avoid calling exit
21166         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
21167         drop xalloc.
21168         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
21169         dependencies.
21170         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
21171         exiting, in the rare case of malloc failure.
21172
21173         getgroups: fix logic error
21174         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
21175         has more than 20 groups.
21176         * modules/getgroups-tests: New test.
21177         * tests/test-getgroups.c: New file.
21178
21179 2009-11-13  Simon Josefsson  <simon@josefsson.org>
21180
21181         * tests/test-base64.c: Improve.
21182
21183 2009-11-13  Simon Josefsson  <simon@josefsson.org>
21184
21185         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
21186         Blake <ebb9@byu.net>.
21187
21188 2009-11-13  Simon Josefsson  <simon@josefsson.org>
21189
21190         * tests/test-xvasprintf.c: Add %s%s related checks.
21191
21192 2009-11-12  Eric Blake  <ebb9@byu.net>
21193
21194         version-etc: match standards.texi style
21195         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
21196         and use <> only for URLs.
21197
21198 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
21199
21200         fts: do not fail on a submount during traversal
21201         * lib/fts.c (fts_build): Read the stat info again after opening
21202         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
21203         Original report at http://bugzilla.redhat.com/501848.
21204
21205 2009-11-12  Jim Meyering  <meyering@redhat.com>
21206
21207         bootstrap: sync from coreutils
21208         * build-aux/bootstrap (bootstrap_epilogue): New function.
21209         Use git_modules_config in one more place.  This make bootstrap's
21210         --gnulib-srcdir option more useful for testing.
21211
21212         bootstrap: generalize autoheader check
21213         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
21214         AC_CONFIG_HEADERS.
21215
21216 2009-11-11  Eric Blake  <ebb9@byu.net>
21217
21218         mkfifoat: use new modules for Solaris and BSD bugs
21219         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
21220         * lib/mkfifoat.c (mknodat): Split...
21221         * lib/mknodat.c (mknodat): ...into new file.
21222         * modules/mkfifoat (Files): Ship new file.
21223         (Depends-on): Add mkfifo, mknod.
21224         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
21225         (Depends-on): Add symlink.
21226         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
21227         redundant with test_mkfifo.h.
21228         (do_mkfifoat, do_mknodat): New helpers.
21229
21230         mknod: new module
21231         * modules/mknod: New file.
21232         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
21233         * lib/mknod.c (mknod): Likewise.
21234         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
21235         defaults.
21236         * modules/sys_stat (Makefile.am): Substitute them.
21237         * lib/sys_stat.in.h (mknod): Declare replacement.
21238         * MODULES.html.sh (Support for systems lacking POSIX:2008):
21239         Document it.
21240         * doc/posix-functions/mknod.texi (mknod): Likewise.
21241         * modules/mknod-tests: New test.
21242         * tests/test-mknod.c: Likewise.
21243
21244         mkfifo: new module
21245         * modules/mkfifo: New file.
21246         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
21247         * lib/mkfifo.c (mkfifo): Likewise.
21248         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
21249         defaults.
21250         * modules/sys_stat (Makefile.am): Substitute them.
21251         * lib/sys_stat.in.h (mkfifo): Declare replacement.
21252         * MODULES.html.sh (Support for systems lacking POSIX:2008):
21253         Document it.
21254         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
21255         * modules/mkfifo-tests: New test.
21256         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
21257         from test-mkfifoat.c.
21258         * tests/test-mkfifo.c: New file.
21259
21260         readlink: detect FreeBSD bug
21261         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
21262         slash on symlink.
21263         * doc/posix-functions/readlink.texi (readlink): Document the bug.
21264         * tests/test-readlink.h (test_readlink): Enhance test.
21265
21266         symlink: detect FreeBSD bug
21267         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
21268         slash on symlink.
21269         * doc/posix-functions/symlink.texi (symlink): Document the bug.
21270         * tests/test-symlink.h (test_symlink): Enhance test.
21271
21272 2009-11-10  Eric Blake  <ebb9@byu.net>
21273
21274         link: detect FreeBSD bug
21275         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
21276         symlink.
21277         * doc/posix-functions/link.texi (link): Document the bug.
21278         * tests/test-link.h (test_link): Enhance test.
21279         * tests/test-linkat.c (main): Update caller.
21280
21281         unlink, remove: detect FreeBSD bug
21282         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
21283         slash on symlink.
21284         * doc/posix-functions/unlink.texi (unlink): Document the bug.
21285         * doc/posix-functions/remove.texi (remove): Likewise.
21286         * tests/test-unlink.h (test_unlink): Enhance test.
21287         * tests/test-remove.c (main): Likewise.
21288
21289 2009-11-09  Eric Blake  <ebb9@byu.net>
21290
21291         rename: detect FreeBSD bug
21292         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
21293         slash on symlink.
21294         * modules/renameat-tests (Depends-on): Add filenamecat.
21295         * tests/test-rename.h (test_rename): Allow one more errno.
21296         * tests/test-renameat.c (main): Likewise.
21297         * doc/posix-functions/rename.texi (rename): Document the bug.
21298
21299         open: detect FreeBSD bug
21300         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
21301         symlink.
21302         * doc/posix-functions/open.texi (open): Document the bug.
21303         * doc/posix-functions/utimes.texi (utimes): Likewise.
21304         * tests/test-open.h (test_open): Add parameters, and test symlink
21305         handling.
21306         * tests/test-open.c (main): Adjust caller.
21307         * tests/test-fcntl-safer.c (main): Likewise.
21308         * modules/open-tests (Depends-on): Add stdbool, symlink.
21309         * modules/fcntl-safer-tests (Depends-on): Likewise.
21310         * tests/test-openat.c (main): Add test-open tests.
21311
21312         stat: detect FreeBSD bug
21313         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
21314         symlink.
21315         * doc/posix-functions/stat.texi (stat): Document the bug.
21316         * tests/test-stat.h (test_stat_func): Add argument.
21317         * tests/test-stat.c (main): Adjust caller.
21318         * tests/test-fstatat.c (main): Likewise.
21319         * modules/stat-tests (Depends-on): Add stdbool, symlink.
21320         Reported by Jim Meyering.
21321
21322 2009-11-09  James Youngman  <jay@gnu.org>
21323
21324         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
21325         * lib/strftime.c: Correct placement of #include "ignore-value.h".
21326
21327 2009-11-08  Jim Meyering  <meyering@redhat.com>
21328
21329         utimens: remove invalid futimesat call
21330         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
21331         It used the file descriptor of the target file as the DIR_FD
21332         parameter and NULL as the file name.  That caused failure with
21333         errno == EFAULT on FreeBSD-8.0-rc2
21334
21335 2009-11-07  Eric Blake  <ebb9@byu.net>
21336
21337         fflush, freadseek: use fseeko, not fseek
21338         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
21339         (clear_ungetc_buffer): Avoid potential problems on large files.
21340         * lib/freadseek.c (freadseek): Likewise.
21341         * modules/freadseek (Depends-on): Add fseeko.
21342         * modules/fseek (configure.ac): Set a witness.
21343         * tests/test-fflush.c (main): Use fseeko.
21344         * tests/test-fpurge.c (fseek): Disable link warning.
21345         * tests/test-freadable.c (fseek): Likewise.
21346         * tests/test-freading.c (fseek): Likewise.
21347         * tests/test-fseeko.c (fseek): Likewise.
21348         * tests/test-ftell.c (fseek): Likewise.
21349         * tests/test-ftello.c (fseek): Likewise.
21350         * tests/test-fwritable.c (fseek): Likewise.
21351         * tests/test-fwriting.c (fseek): Likewise.
21352
21353 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21354
21355         * modules/memchr (Depends-on): Drop getpagesize dependency.
21356
21357 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21358
21359         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
21360         Reported by Ludovic Courtès.
21361         * build-aux/pmccabe2html: Improve example usage.
21362         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
21363
21364 2009-11-06  Jim Meyering  <meyering@redhat.com>
21365
21366         do-release-commit-and-tag: New module.
21367         Automate the release-commit and tag process.
21368         * build-aux/do-release-commit-and-tag: New script, from coreutils.
21369         * modules/do-release-commit-and-tag: New file.
21370         * MODULES.html.sh (Support for maintaining and releasing): Add it.
21371
21372 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21373
21374         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
21375         because test-select.c uses inet_pton.
21376
21377 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21378
21379         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
21380         GETADDRINFO_LIB.  Bump serial number.
21381         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
21382         Suggested by Eric Blake <ebb9@byu.net>.
21383
21384 2009-11-05  Eric Blake  <ebb9@byu.net>
21385
21386         strtod: detect darwin bug
21387         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
21388         Reported by Leo Davis.
21389
21390         freopen-safer: new module
21391         * modules/freopen-safer: New module.
21392         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
21393         * lib/freopen-safer.c (freopen_safer): New file.
21394         * lib/stdio-safer.h (freopen_safer): New declaration.
21395         * lib/stdio--.h (freopen): New override.
21396         * MODULES.html.sh (File stream based Input/Output): Mention it.
21397         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
21398         freopen-safer module.
21399         * doc/posix-functions/stderr.texi (stderr): Likewise.
21400         * doc/posix-functions/stdin.texi (stdin): Likewise.
21401         * doc/posix-functions/stdout.texi (stdout): Likewise.
21402         * modules/freopen-safer-tests: New test.
21403         * tests/test-reopen-safer.c: New file.
21404
21405 2009-11-05  Jim Meyering  <meyering@redhat.com>
21406
21407         maint.mk: Prohibit inclusion of "close-stream.h" without use.
21408         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
21409
21410 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21411
21412         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
21413
21414 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21415
21416         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
21417
21418 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21419
21420         Fix link error.
21421         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
21422         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21423
21424 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21425
21426         * tests/test-func.c: Also test value of __func__.
21427
21428 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21429
21430         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
21431         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
21432
21433 2009-11-05  Bruno Haible  <bruno@clisp.org>
21434
21435         Fix link error.
21436         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
21437         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21438         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
21439
21440 2009-11-05  Bruno Haible  <bruno@clisp.org>
21441
21442         Tests for module 'inet_pton'.
21443         * modules/inet_pton-tests: New file.
21444         * tests/test-inet_pton.c: New file.
21445
21446 2009-11-05  Bruno Haible  <bruno@clisp.org>
21447
21448         Tests for module 'inet_ntop'.
21449         * modules/inet_ntop-tests: New file.
21450         * tests/test-inet_ntop.c: New file.
21451
21452 2009-11-04  Eric Blake  <ebb9@byu.net>
21453
21454         stdlib-safer: wrap all mkstemp variants
21455         * modules/mkostemp (configure.ac): Set witness.
21456         * modules/mkostemps (configure.ac): Likewise.
21457         * modules/mkstemps (configure.ac): Likewise.
21458         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
21459         (mkstemps_safer): Wrap more functions.
21460         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
21461         wrapping.
21462         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
21463         (mkstemps_safer): Implement the wrappers.
21464
21465         mkstemps, mkostemps: new modules
21466         * modules/mkostemps: New module.
21467         * modules/mkstemps: Likewise.
21468         * lib/mkostemps.c (mkostemps): New file.
21469         * lib/mkstemps.c (mkstemps): Likewise.
21470         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
21471         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
21472         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
21473         * modules/stdlib (Makefile.am): Substitute them.
21474         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
21475         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
21476         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
21477         * doc/gnulib.texi (Glibc stdlib.h): Include them.
21478         * MODULES.html.sh (File system functions): Mention them.
21479
21480         tempname: resync from glibc
21481         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
21482         same values for __GT_FILE as glibc.  Abort even when assertions
21483         are disabled.
21484         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
21485         match its value otherwise.  Allow idempotent inclusion.
21486         * lib/mkdtemp.c (mkdtemp): Adjust caller.
21487         * lib/mkostemp.c (mkostemp): Likewise.
21488         * lib/mkstemp.c (mkstemp): Likewise.
21489         * lib/tmpfile.c (tmpfile): Likewise.
21490         * NEWS: Document this.
21491
21492         utimens: fix use of futimens on older Linux
21493         * lib/utimens.c (fdutimens): Use updated, rather than original,
21494         timespec to avoid bug in older Linux kernel.
21495         Reported by Simon Josefsson.
21496
21497 2009-11-04  Bruno Haible  <bruno@clisp.org>
21498
21499         Make num_processors more flexible and consistent.
21500         * lib/nproc.h (enum nproc_query): New type.
21501         (num_processors): Add a 'query' argument.
21502         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
21503         (num_processors): Add a 'query' argument. Test the value of the
21504         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
21505         mingw, count the number of CPUs available for the current process.
21506         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
21507         Check for sched_getaffinity and sched_getaffinity_np.
21508         * modules/nproc (Depends-on): Add c-ctype, extensions.
21509         * NEWS: Mention the change.
21510
21511 2009-11-03  Bruno Haible  <bruno@clisp.org>
21512
21513         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
21514
21515 2009-11-03  Jim Meyering  <meyering@redhat.com>
21516
21517         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
21518         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
21519         if it is defined.
21520
21521 2009-11-02  Eric Blake  <ebb9@byu.net>
21522
21523         mktime, timegm: share common declaration
21524         * lib/mktime-internal.h: New file.
21525         * lib/mktime.c: Use it rather than open-coding a declaration.
21526         * lib/timegm.c: Likewise.
21527         * modules/mktime (Files): Ship it.
21528         * modules/timegm (Files): Likewise.
21529         Suggested by Bruno Haible.
21530
21531         test-update-copyright: update test to match script changes
21532         * tests/test-update-copyright.sh: Avoid hard-coding perl
21533         location.  Don't update *.bak created by earlier runs.
21534
21535 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
21536             Simon Josefsson  <simon@josefsson.org>
21537             Bruno Haible  <bruno@clisp.org>
21538
21539         Fix link error on Solaris 8.
21540         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
21541         also in libnsl. Define also INET_PTON_LIB.
21542         * modules/inet_pton (Link): New section.
21543
21544 2009-11-02  Simon Josefsson  <simon@josefsson.org>
21545             Bruno Haible  <bruno@clisp.org>
21546
21547         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
21548         * modules/inet_ntop (Link): New section.
21549         Reported by Boyan Kasarov <bkasarov@gmail.com>.
21550
21551 2009-11-02  Eric Blake  <ebb9@byu.net>
21552
21553         maint: avoid compiler warnings in m4 macros
21554         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
21555         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
21556
21557 2009-11-02  Simon Josefsson  <simon@josefsson.org>
21558
21559         * m4/pmccabe2html.m4: Remove file.
21560         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
21561         function.  Change maintainer.
21562         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
21563         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
21564         Courtès).
21565
21566 2009-10-31  Eric Blake  <ebb9@byu.net>
21567
21568         fseeko: fix m4 regression
21569         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
21570         regression from 2009-10-27.
21571         Reported by Ralf Wildenhues.
21572
21573 2009-10-31  Jim Meyering  <meyering@redhat.com>
21574
21575         inttostr: aesthetics and improved (compile-time) safety
21576         Define inttype_is_signed rather than inttype_is_unsigned,
21577         since the sole use is via "#if inttype_is_signed".
21578         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
21579         inttype_is_unsigned.
21580         * lib/offtostr.c (inttype_is_signed): Likewise.
21581         * lib/uinttostr.c (inttype_is_signed): Likewise.
21582         * lib/umaxtostr.c (inttype_is_signed): Likewise.
21583         * lib/inttostr.c (inttostr): Use verify to cross-check the
21584         inttype_is_signed value and the signedness of the actual type.
21585         * modules/inttostr (Depends-on): Add verify.
21586
21587 2009-10-30  Eric Blake  <ebb9@byu.net>
21588
21589         build: avoid compiler warnings
21590         * lib/fchmodat.c (lchmod): Mark unused variables.
21591         * lib/getopt.c (_getopt_initialize): Likewise.
21592         * lib/mktime.c (__mktime_internal): Provide prototype.
21593         * lib/inttostr.c (inttostr): Avoid compiler warning even with
21594         older gcc that do not understand #pragma GCC diagnostic.
21595         * lib/uinttostr.c (inttype_is_unsigned): Define.
21596         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
21597
21598 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
21599
21600         stat: fix compilation on AIX
21601         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
21602         only see struct stat64.
21603
21604 2009-10-30  Eric Blake  <ebb9@byu.net>
21605
21606         exclude: make more robust
21607         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
21608         rather than masking a coding bug.
21609         Suggested by Bruno Haible.
21610
21611 2009-10-30  Jim Meyering  <meyering@redhat.com>
21612
21613         perl scripts: remove #!/usr/bin/perl in favor of more portable...
21614         Rather than putting #!/usr/bin/perl on the first line,
21615         start with a variant of what's recommended by "man perlrun" that
21616         invokes the first "perl" program from your shell's search path.
21617         * build-aux/gitlog-to-changelog: Replace #!... as above.
21618         Add a "Local Variables" perl mode setting.
21619         Prompted by a patch from Ludovic Courtès.
21620         Improved by Eric Blake.
21621         * build-aux/useless-if-before-free: Likewise.
21622         * build-aux/announce-gen: Likewise.
21623         * build-aux/update-copyright: Likewise.
21624
21625 2009-10-29  Eric Blake  <ebb9@byu.net>
21626
21627         filenamecat-lgpl: adjust clients
21628         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
21629         filenamecat.
21630         * modules/renameat (Depends-on): Likewise.
21631
21632         filenamecat: split into filenamecat-lgpl
21633         * modules/filenamecat-lgpl: New module.
21634         * modules/filenamecat (Files): Move library-safe files into
21635         filenamecat-lgpl.
21636         (Depends-on): Add filenamecat-lgpl.
21637         (configure.ac): Declare witness.
21638         * lib/filenamecat.h (file_name_concat): Only declare when using
21639         GPL module.
21640         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
21641         Move...
21642         * lib/filenamecat-lgpl.c: ...into new file.
21643         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
21644         (gl_FILE_NAME_CONCAT): Use it.
21645         * MODULES.html.sh (File system functions): Mention new module.
21646
21647         argp: avoid memory leak
21648         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
21649         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
21650         base_name, since the latter malloc()s and can call exit().
21651         Leak introduced 2006-07-03.
21652
21653         dirname-lgpl: adjust clients that don't need full dirname
21654         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
21655         * modules/filenamecat (Depends-on): Likewise.
21656         * modules/linkat (Depends-on): Likewise.
21657         * modules/mkancesdirs (Depends-on): Likewise.
21658         * modules/mkdir (Depends-on): Likewise.
21659         * modules/openat (Depends-on): Likewise.
21660         * modules/savewd (Depends-on): Likewise.
21661         * modules/rename (Depends-on): Likewise.
21662         (License): Relax license.
21663         * modules/mkdir-tests (Depends-on): Drop progname.
21664         (Makefile.am): Delete unneeded LDADD.
21665         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
21666
21667         dirname: split into dirname-lgpl
21668         * modules/dirname-lgpl: New module.
21669         * modules/dirname (Files): Move library-safe files into
21670         dirname-lgpl.
21671         (Depends-on): Add dirname-lgpl.
21672         (configure.ac): Declare witness.
21673         * modules/double-slash-root (License): Relax license.
21674         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
21675         module.
21676         * lib/dirname.c (dir_len, mdir_name): Move...
21677         * lib/dirname-lgpl.c: ...into new file.
21678         * lib/basename.c (last_component, base_len): Move...
21679         * lib/basename-lgpl.c: ...into new file.
21680         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
21681         (gl_DIRNAME): Use it.
21682         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
21683         Mention new module.
21684         * modules/dirname-tests (Depends-on): Add progname.
21685         * tests/test-dirname.c (program_name): Delete.
21686
21687         mkdir: make safe for libraries
21688         * modules/mkdir (Depends-on): Drop xalloc.
21689         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
21690         exit.
21691
21692         tests: avoid some compiler warnings
21693         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
21694         literals.
21695         * tests/test-memchr.c (main): Avoid type mismatch.
21696         * tests/test-arpa_inet.c (main): Avoid unused parameters.
21697         * tests/test-base64.c (main): Likewise.
21698         * tests/test-getdelim.c (main): Likewise.
21699         * tests/test-gethostname.c (main): Likewise.
21700         * tests/test-getline.c (main): Likewise.
21701         * tests/test-netinet_in.c (main): Likewise.
21702         * tests/test-select.c (open_server_socket, main): Likewise.
21703         * tests/test-select-stdin.c (main): Likewise.
21704         * tests/test-sockets.c (main): Likewise.
21705         * tests/test-strsignal.c (main): Likewise.
21706         * tests/test-sys_select.c (main): Likewise.
21707         * tests/test-sys_socket.c (main): Likewise.
21708         * tests/test-u64.c (main): Likewise.
21709         * tests/test-xfprintf-posix.c (main): Likewise.
21710         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
21711
21712         sockets: avoid compiler warning
21713         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
21714
21715         maint: detect usage(1) and other suspicious exits
21716         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
21717
21718 2009-10-29  Jim Meyering  <meyering@redhat.com>
21719
21720         timespec: long-to-int truncation could make timespec_cmp malfunction
21721         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
21722         a multiple of 2^32 nanoseconds as no difference.
21723
21724 2009-10-28  Jim Meyering  <meyering@redhat.com>
21725
21726         fprintftime: wrap macro code argument in "do {...} while(0)"
21727         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
21728         cpy macro must be a statement that can be followed by a semicolon.
21729         Now that the else clause contains a comment and is hence longer
21730         than one line, I require curly braces.  That in turn requires
21731         that we wrap this code block in the standard do...while(0).
21732
21733         fprintftime: remove stray semicolon from previous change
21734         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
21735
21736         fprintftime: avoid a warning about ignored fwrite return value
21737         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
21738         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
21739         that is unsafe.
21740         * modules/fprintftime (Depends-on): Add ignore-value.
21741
21742         exclude: avoid an unwarranted warning
21743         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
21744
21745 2009-10-27  Eric Blake  <ebb9@byu.net>
21746
21747         fseek: avoid compilation failure when fflush is replaced
21748         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
21749         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
21750         module is in use.
21751         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
21752         module is not in use; since REPLACE_FSEEK worked otherwise.
21753         (GNULIB_FTELLO): Likewise for ftell.
21754         Reported by Ian Beckwith and others.
21755
21756 2009-10-27  Bruno Haible  <bruno@clisp.org>
21757
21758         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
21759         Reported by Jim Meyering.
21760
21761 2009-10-27  Jim Meyering  <jim@meyering.net>
21762             Bruno Haible  <bruno@clisp.org>
21763
21764         Avoid warning despite dropping the return value of fwrite.
21765         * lib/unicodeio.c: Include ignore-value.h.
21766         (fwrite_success_callback): Explicitly ignore fwrite's return value.
21767         * modules/unicodeio (Depends-on): Add ignore-value.
21768
21769 2009-10-26  Eric Blake  <ebb9@byu.net>
21770
21771         areadlinkat: fix fallback path
21772         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
21773         pointer and zero.
21774
21775 2009-10-22  Pádraig Brady  <P@draigBrady.com>
21776
21777         Use a better IO block size for modern systems
21778         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
21779         * lib/md2.c: Likewise.
21780         * lib/md4.c: Likewise.
21781         * lib/md5.c: Likewise.
21782         * lib/sha1.c: Likewise.
21783         * lib/sha256.c: Likewise.
21784         * lib/sha512.c: Likewise.
21785
21786 2009-10-22  Eric Blake  <ebb9@byu.net>
21787
21788         tests: avoid several compiler warnings
21789         * tests/test-getcwd.c (main): Avoid buffer underflow.
21790         * tests/test-getdate.c (main): String literals are not safe with
21791         putenv, so use setenv.  Declare unused argument.
21792         * modules/getdate-tests (Depends-on): Add setenv.
21793         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
21794         problems with string literals in char *.
21795         * tests/test-hash.c (main): Avoid shadowing declaration.
21796         (insert_new): Treat string literals as char const *.
21797         * tests/test-getopt.h (test_getopt): Likewise.
21798         (getopt_loop): Alter types to minimize casting elsewhere.
21799         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
21800         (test_getopt_long_posix): Likewise.
21801         (do_getopt_long): Add wrapper to minimize casting.
21802         * tests/test-atexit.c (clear_temp_file): Use void.
21803         * tests/test-areadlink-with-size.c (main): Declare unused
21804         arguments.
21805         * tests/test-areadlink.c (main): Likewise.
21806         * tests/test-areadlinkat-with-size.c (main): Likewise.
21807         * tests/test-areadlinkat.c (main): Likewise.
21808         * tests/test-canonicalize-lgpl.c (main): Likewise.
21809         * tests/test-canonicalize.c (main): Likewise.
21810         * tests/test-dirent-safer.c (main): Likewise.
21811         * tests/test-dirname.c (main): Likewise.
21812         * tests/test-dup2.c (main): Likewise.
21813         * tests/test-fchdir.c (main): Likewise.
21814         * tests/test-fcntl-h.c (main): Likewise.
21815         * tests/test-fcntl-safer.c (main): Likewise.
21816         * tests/test-fdopendir.c (main): Likewise.
21817         * tests/test-fdutimensat.c (main): Likewise.
21818         * tests/test-fflush.c (main): Likewise.
21819         * tests/test-filenamecat.c (main): Likewise.
21820         * tests/test-filevercmp.c (main): Likewise.
21821         * tests/test-fopen-safer.c (main): Likewise.
21822         * tests/test-fopen.c (main): Likewise.
21823         * tests/test-fpending.c (main): Likewise.
21824         * tests/test-fpurge.c (main): Likewise.
21825         * tests/test-freading.c (main): Likewise.
21826         * tests/test-fstatat.c (main): Likewise.
21827         * tests/test-fsync.c (main): Likewise.
21828         * tests/test-futimens.c (main): Likewise.
21829         * tests/test-getndelim2.c (main): Likewise.
21830         * tests/test-gettimeofday.c (main): Likewise.
21831         * tests/test-getopt.c (main): Likewise.
21832         * tests/test-i-ring.c (main): Likewise.
21833         * tests/test-inttypes.c (main): Likewise.
21834         * tests/test-link.c (main): Likewise.
21835         * tests/test-lstat.c (main): Likewise.
21836         * tests/test-math.c (main): Likewise.
21837         * tests/test-md5.c (main): Likewise.
21838         * tests/test-memchr2.c (main): Likewise.
21839         * tests/test-memrchr.c (main): Likewise.
21840         * tests/test-mkdir.c (main): Likewise.
21841         * tests/test-mkdirat.c (main): Likewise.
21842         * tests/test-mkfifoat.c (main): Likewise.
21843         * tests/test-open.c (main): Likewise.
21844         * tests/test-openat-safer.c (main): Likewise.
21845         * tests/test-openat.c (main): Likewise.
21846         * tests/test-quotearg.c (main): Likewise.
21847         * tests/test-rawmemchr.c (main): Likewise.
21848         * tests/test-readlink.c (main): Likewise.
21849         * tests/test-remove.c (main): Likewise.
21850         * tests/test-rename.c (main): Likewise.
21851         * tests/test-renameat.c (main): Likewise.
21852         * tests/test-rmdir.c (main): Likewise.
21853         * tests/test-sha1.c (main): Likewise.
21854         * tests/test-signal.c (main): Likewise.
21855         * tests/test-sigaction.c (main): Likewise.
21856         * tests/test-stat.c (main): Likewise.
21857         * tests/test-stat-time.c (main): Likewise.
21858         * tests/test-stddef.c (main): Likewise.
21859         * tests/test-stdint.c (main): Likewise.
21860         * tests/test-stdio.c (main): Likewise.
21861         * tests/test-stdlib.c (main): Likewise.
21862         * tests/test-strchrnul.c (main): Likewise.
21863         * tests/test-strerror.c (main): Likewise.
21864         * tests/test-string.c (main): Likewise.
21865         * tests/test-strtod.c (main): Likewise.
21866         * tests/test-strverscmp.c (main): Likewise.
21867         * tests/test-symlink.c (main): Likewise.
21868         * tests/test-symlinkat.c (main): Likewise.
21869         * tests/test-sys_stat.c (main): Likewise.
21870         * tests/test-sys_time.c (main): Likewise.
21871         * tests/test-time.c (main): Likewise.
21872         * tests/test-unistd.c (main): Likewise.
21873         * tests/test-unlink.c (main): Likewise.
21874         * tests/test-unlinkat.c (main): Likewise.
21875         * tests/test-utimens.c (main): Likewise.
21876         * tests/test-utimensat.c (main): Likewise.
21877         * tests/test-version-etc.c (main): Likewise.
21878         * tests/test-wchar.c (main): Likewise.
21879         * tests/test-wctype.c (main): Likewise.
21880         * tests/test-xprintf-posix.c (main): Likewise.
21881         * tests/test-posixtm.c (main): Likewise.
21882         (STREQ): Delete unused macro.
21883         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
21884         shadowed variables.
21885         * tests/test-memchr.c (main): Likewise.
21886
21887 2009-10-21  Eric Blake  <ebb9@byu.net>
21888
21889         areadlinkat: avoid failure on older glibc
21890         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
21891         rather than mis-comparing 0 against FUNC_RESULT of char*.
21892
21893 2009-10-21  Bruno Haible  <bruno@clisp.org>
21894
21895         * modules/stpncpy (License): Relicense under LGPLv2+.
21896         Reported by David Lutterkort <lutter@redhat.com>.
21897
21898 2009-10-20  Eric Blake  <ebb9@byu.net>
21899
21900         utimensat: work around Solaris 9 bug
21901         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
21902         has trailing slash bugs.
21903         * tests/test-lutimens.h (test_lutimens): Enhance test.
21904         * tests/test-utimens.h (test_utimens): Likewise.
21905         * doc/posix-functions/utime.texi (utime): Enhance documentation.
21906         * doc/posix-functions/utimes.texi (utimes): Likewise.
21907         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21908         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
21909         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
21910         * doc/posix-functions/futimens.texi (futimens): Likewise.
21911
21912         fdutimensat: new module
21913         * modules/fdutimensat: New file.
21914         * lib/fdutimensat.c (fdutimensat): Likewise.
21915         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
21916         * MODULES.html.sh (File system functions): Mention module.
21917         * modules/fdutimensat-tests: New test.
21918         * tests/test-fdutimensat.c: Likewise.
21919
21920         doc: regenerate INSTALL
21921         * doc/INSTALL: Reflect recent autoconf update.
21922         * doc/INSTALL.ISO: Likewise.
21923         * doc/INSTALL.UTF-8: Likewise.
21924
21925 2009-10-20  Pádraig Brady  <P@draigBrady.com>
21926
21927         acl: warn if ACL support is not detected
21928         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
21929
21930 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
21931
21932         * lib/nproc.h: Add extern "C" block for C++.
21933
21934 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
21935             Bruno Haible  <bruno@clisp.org>
21936
21937         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
21938         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
21939         * doc/posix-functions/isalpha.texi: Likewise.
21940         * doc/posix-functions/isblank.texi: Likewise.
21941         * doc/posix-functions/iscntrl.texi: Likewise.
21942         * doc/posix-functions/isdigit.texi: Likewise.
21943         * doc/posix-functions/isgraph.texi: Likewise.
21944         * doc/posix-functions/islower.texi: Likewise.
21945         * doc/posix-functions/isprint.texi: Likewise.
21946         * doc/posix-functions/ispunct.texi: Likewise.
21947         * doc/posix-functions/isspace.texi: Likewise.
21948         * doc/posix-functions/isupper.texi: Likewise.
21949         * doc/posix-functions/isxdigit.texi: Likewise.
21950
21951 2009-10-18  Bruno Haible  <bruno@clisp.org>
21952
21953         Tests for module 'isblank'.
21954         * modules/isblank-tests: New file.
21955         * tests/test-isblank.c: New file.
21956
21957         New module 'isblank'.
21958         * lib/isblank.c: New file.
21959         * m4/isblank.m4: New file.
21960         * modules/isblank: New file.
21961         * doc/posix-functions/isblank.texi: Mention the new module.
21962
21963 2009-10-18  Bruno Haible  <bruno@clisp.org>
21964
21965         New module 'ctype'.
21966         * lib/ctype.in.h: New file.
21967         * m4/ctype.m4: New file.
21968         * modules/ctype: New file.
21969         * doc/posix-headers/ctype.texi: Mention the new module.
21970
21971 2009-10-18  Jim Meyering  <meyering@redhat.com>
21972
21973         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
21974         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
21975         right after its initialization, rather than farther down.
21976         Keeping these in close proximity makes it easier to ensure
21977         that each such variable is initialized.  E.g.,
21978
21979             LIB_CLOCK_GETTIME=
21980             AC_SUBST([LIB_CLOCK_GETTIME])
21981
21982         This change also increments these serial numbers.
21983         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
21984         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
21985         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21986
21987 2009-10-18  Bruno Haible  <bruno@clisp.org>
21988
21989         Don't let environment variables perturb build.
21990         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
21991         (gl_PREREQ_GETHRXTIME): ... not here.
21992
21993 2009-10-18  Bruno Haible  <bruno@clisp.org>
21994
21995         Avoid symlink attack in localcharset module.
21996         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
21997         (O_NOFOLLOW): Define fallback.
21998         (get_charset_aliases): Don't open the file if it is a symbolic link.
21999         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
22000         gl_FCNTL_H.
22001         (gl_FCNTL_H): Require it.
22002         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
22003         * modules/localcharset (Files): Add m4/fcntl_h.m4.
22004         Reported by Fergal Glynn <fglynn@veracode.com>.
22005
22006 2009-10-18  Bruno Haible  <bruno@clisp.org>
22007
22008         Implement nproc for mingw.
22009         * lib/nproc.c: Include <windows.h>
22010         (num_processors): On native Windows platforms, try GetSystemInfo.
22011
22012 2009-10-18  Bruno Haible  <bruno@clisp.org>
22013
22014         Implement nproc for IRIX.
22015         * lib/nproc.c: Include <sys/sysmp.h>.
22016         (num_processors): On IRIX systems, try sysmp.
22017         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
22018
22019 2009-10-18  Bruno Haible  <bruno@clisp.org>
22020
22021         Implement nproc for HP-UX.
22022         * lib/nproc.c: Include <sys/pstat.h>
22023         (num_processors): On HP-UX systems, try pstat_getdynamic.
22024         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
22025         pstat_getdynamic.
22026
22027 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
22028             Bruno Haible  <bruno@clisp.org>
22029
22030         Implement nproc for NetBSD, OpenBSD.
22031         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
22032         (ARRAY_SIZE): New macro.
22033         (num_processors): On BSD systems, try sysctl of HW_NCPU.
22034         * m4/nproc.m4: New file.
22035         * modules/nproc (Files): Add m4/nproc.m4.
22036         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
22037         (Makefile.am): Instead, augment lib_SOURCES.
22038
22039 2009-10-18  Bruno Haible  <bruno@clisp.org>
22040
22041         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
22042         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
22043         sys/param.h.
22044
22045 2009-10-16  Eric Blake  <ebb9@byu.net>
22046
22047         utimensat: new module
22048         * modules/utimensat: New file.
22049         * lib/utimensat.c (utimensat): Likewise.
22050         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22051         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
22052         so we can work around Linux bugs.
22053         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22054         * modules/sys_stat (Makefile.am): Substitute them.
22055         * lib/sys_stat.in.h (utimensat): Declare it.
22056         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22057         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22058         * modules/utimensat-tests: New test.
22059         * tests/test-utimensat.c: Likewise.
22060
22061         utimens: let lutimens work on non-symlinks
22062         * lib/utimens.c (lutimens): Fall back to utimens rather than
22063         failing with ENOSYS, when file is not a symlink.
22064         (utimens): Reduce redirection.
22065         * tests/test-lutimens.h (test_lutimens): Update test to cover
22066         non-symlinks.
22067         * tests/test-utimens.h (test_utimens): Update test to cover
22068         symlinks.
22069         * tests/test-utimens.c (main): Update caller.
22070
22071         utimens: cache whether utimensat syscall works
22072         * lib/utimens.c (utimensat_works_really): New cache variable.
22073         (fdutimens, lutimens): Use it to avoid failing syscall.
22074
22075         test-stat-time, test-utimens: improve portability
22076         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
22077         ext4 on alpha, and for cygwin.
22078         * tests/test-utimens-common.h: New file.
22079         (nap): Factor delays into single function.
22080         * tests/test-lutimens.h (test_lutimens): Use new header.
22081         * tests/test-futimens.h (test_futimens): Likewise.
22082         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
22083         timestamps to occur from same machine, as was done previously for
22084         test_utimens.
22085         * modules/utimens-tests (Files): Ship new file.
22086         * modules/futimens-tests (Files): Likewise.
22087         Reported in part by Jim Meyering.
22088
22089         sys_stat: sort replacement declarations
22090         * lib/sys_stat.in.h: Sort declarations.
22091         * lib/futimens.c (futimens): Fix typo.
22092
22093 2009-10-15  Jim Meyering  <meyering@redhat.com>
22094
22095         don't let environment settings perturb build
22096         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
22097         could cause a configure-time and/or build-time malfunction.
22098         Typically, a configure-time function-in-library test is performed
22099         via code like this:
22100
22101           LIB_VAR=
22102           AC_SUBST([LIB_VAR])
22103           prefix_saved_LIBS=$LIBS
22104             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
22105                        [test "$ac_cv_search_FUNC" = "none required" ||
22106                         LIB_VAR=$ac_cv_search_FUNC])
22107           LIBS=$prefix_saved_LIBS
22108
22109         However, in each of the files affected by this change, the LIB_VAR=
22110         initialization was omitted.  Thus, when set in the environment, its
22111         value would propagate into generated Makefiles when FUNC is not found
22112         in LIB_NAME.
22113         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
22114         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
22115         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22116
22117 2009-10-14  Eric Blake  <ebb9@byu.net>
22118
22119         fchdir: avoid infinite recursion in mingw
22120         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
22121         recursing.
22122
22123         test-stat-time: port to mingw
22124         * tests/test-stat-time.c (force_unlink): Return a value.
22125         (test_ctime) [W32]: Fix compilation error.
22126         (nap): Don't call usleep with too large an argument.  Use
22127         force_unlink.
22128         * doc/pastposix-functions/usleep.texi (usleep): Document the
22129         portability issue.
22130
22131 2009-10-13  Jim Meyering  <meyering@redhat.com>
22132
22133         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
22134         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
22135         * modules/pipe-filter-ii: Likewise.
22136         * modules/sys_socket-tests: Likewise.
22137         * modules/tsearch-tests: Likewise.
22138         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
22139         (check): Depend on it.
22140
22141 2009-10-12  Eric Blake  <ebb9@byu.net>
22142
22143         utimens-tests: port to NFS file systems
22144         * tests/test-utimens.h (test_utimens): Refactor utimecmp
22145         comparisons to avoid spurious failures from timestamp drift
22146         between NFS machines.
22147
22148 2009-10-12  Eric Blake  <ebb9@byu.net>
22149
22150         stat-time-tests: minor cleanups
22151         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
22152         * tests/test-stat-time.c (nap): Separate assignment from call.
22153         Suggested by Paolo Bonzini and Bruno Haible.
22154
22155         sys_stat: guarantee struct timespec
22156         * lib/sys_stat.in.h (includes): Always include <time.h>
22157         * modules/sys_stat (Depends-on): Add time.
22158         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
22159         mode_t permission values.
22160         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
22161         get at subsecond timestamps.
22162
22163 2009-10-10  Eric Blake  <ebb9@byu.net>
22164
22165         futimens: new module
22166         * modules/futimens: New file.
22167         * lib/futimens.c (futimens): Likewise.
22168         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
22169         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
22170         we can work around Linux bugs.
22171         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22172         * modules/sys_stat (Makefile.am): Substitute them.
22173         * lib/sys_stat.in.h (futimens): Declare it.
22174         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22175         * doc/posix-functions/futimens.texi (futimens): Likewise.
22176         * modules/futimens-tests: New test.
22177         * tests/test-futimens.c: Likewise.
22178
22179         utimens: introduce fdutimens
22180         * lib/utimens.h (fdutimens): New prototype.
22181         * lib/utimens.c (gl_futimens): Move guts...
22182         (fdutimens): ...to new interface.
22183         * tests/test-utimens.c (do_fdutimens): Use it.
22184
22185         utimens: add UTIME_NOW and UTIME_OMIT support
22186         * lib/utimens.c (validate_timespec, update_timespec): New helper
22187         functions.
22188         (gl_futimens, lutimens): Use them.
22189         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
22190         stdbool, sys_stat.
22191         (Link): Mention resulting library dependency.
22192         * modules/utimecmp (Link): Likewise.
22193         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
22194         (Makefile.am): Pick up library dependency.
22195         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
22196         definition.
22197         * tests/test-sys_stat.c: Test the definitions.
22198         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
22199         * NEWS: Document library dependency.
22200
22201         utimecmp: support symlink timestamps
22202         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
22203         hashing when possible.  Use pathconf when available.
22204         (SYSCALL_RESOLUTION): Recognize tighter resolution.
22205         * modules/utimecmp (Depends-on): Add lstat.
22206
22207         utimens: add lutimens interface
22208         * lib/utimens.c (lutimens): New function.
22209         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
22210         * lib/utimens.h (lutimens): Declare new interface.
22211         * tests/test-utimens.c (main): Enhance test.
22212         * tests/test-lutimens.h (test_lutimens): New file.
22213         * modules/utimens-tests (Files): Distribute it.
22214         (Depends-on): Add symlink.
22215         (configure.ac): Check for usleep.
22216
22217         utimens: validate futimens usage
22218         * lib/utimens.c (gl_futimens): Require valid fd up front, using
22219         fewer syscalls on failure later on.  Avoid compiler warning on
22220         mingw.
22221         * modules/utimens (Depends-on): Add dup2.
22222
22223         utimens: add test
22224         * modules/utimens-tests: New test.
22225         * tests/test-utimens.h: New file.
22226         * tests/test-futimens.h: Likewise.
22227         * tests/test-utimens.c: Likewise.
22228
22229         doc: mention timestamp portability issues
22230         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
22231         instead.
22232         * doc/posix-functions/utime.texi (utime): Likewise.
22233         * doc/posix-functions/utimes.texi (utimes): Likewise.
22234         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
22235         instead.
22236         * doc/posix-functions/futimens.texi (futimens): Mention utimens
22237         module.
22238         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22239         Mention weakness with symlink timestamps.
22240         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
22241         to utimensat/futimens instead.
22242         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
22243
22244         test-dup2: enhance test
22245         * tests/test-dup2.c (main): Also check AT_FDCWD.
22246
22247         test-stat-time: avoid more spurious failures
22248         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
22249         xfs; and avoid race if the two timestamps cross quantization edge.
22250
22251         relocatable: prefer 'file system' over 'filesystem'
22252         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
22253         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
22254         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
22255         * doc/relocatable.texi (Enabling Relocatability): Likewise.
22256         * lib/relocatable.c (compute_curr_prefix): Likewise.
22257
22258 2009-10-10  Jim Meyering  <meyering@redhat.com>
22259
22260         stat-time-tests: check for the usleep function
22261         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
22262
22263 2009-10-10  Bruno Haible  <bruno@clisp.org>
22264
22265         * modules/xnanosleep: Put the Link section after the Include section.
22266
22267 2009-10-09  Eric Blake  <ebb9@byu.net>
22268
22269         dup2: work around FreeBSD 6.1 bug
22270         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
22271         * doc/posix-functions/dup2.texi (dup2): Document it.
22272         Reported by Nelson H. F. Beebe and Jim Meyering.
22273
22274         test-stat-time: port to buggy NFS clients
22275         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
22276         (test_ctime): Also skip test if mtime and ctime are skewed.
22277
22278         maint: prefer 'file system' over 'filesystem'
22279         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
22280         * doc/posix-functions/lstat.texi (lstat): Likewise.
22281         * lib/file-has-acl.c (file_has_acl): Likewise.
22282         * lib/fwriteerror.c [TEST]: Likewise.
22283         * tests/test-areadlink.h (test_areadlink): Likewise.
22284         * tests/test-areadlinkat-with-size.c (main): Likewise.
22285         * tests/test-areadlinkat.c (main): Likewise.
22286         * tests/test-canonicalize-lgpl.c (main): Likewise.
22287         * tests/test-canonicalize.c (main): Likewise.
22288         * tests/test-fstatat.c (main): Likewise.
22289         * tests/test-linkat.c (main): Likewise.
22290         * tests/test-lstat.h (test_lstat_func): Likewise.
22291         * tests/test-mkdir.h (test_mkdir): Likewise.
22292         * tests/test-readlink.h (test_readlink): Likewise.
22293         * tests/test-remove.c (main): Likewise.
22294         * tests/test-rename.h (test_rename): Likewise.
22295         * tests/test-renameat.c (main): Likewise.
22296         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22297         * tests/test-symlink.h (test_symlink): Likewise.
22298         * tests/test-symlinkat.c (main): Likewise.
22299         * tests/test-unlink.h (test_unlink_func): Likewise.
22300         * tests/test-unlinkat.c (main): Likewise.
22301
22302         maint: make realtime library usage explicit
22303         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
22304         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
22305         * modules/settime (Link): Likewise.
22306         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
22307
22308         test-stat-time: speed up execution
22309         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
22310         warning on mingw.
22311         (nap): New helper function.
22312         (prepare_test): Use it to reduce sleep time.
22313         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
22314         execution.
22315         * modules/stat-time-tests (configure.ac): Check for usleep.
22316
22317 2009-10-09  Jim Meyering  <meyering@redhat.com>
22318
22319         selinux-h: always use getfilecon wrappers
22320         * lib/getfilecon.c: New file.
22321         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
22322         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
22323         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
22324         (fgetfilecon): Provide a stub.
22325         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
22326         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
22327         file unconditionally.
22328         When <selinux/selinux.h> is found, arrange to use wrappers.
22329         * modules/selinux-h (Files): Add getfilecon.c.
22330         (Makefile.am): Substitute include-next-related bits
22331         into the now-always-generated selinux/selinux.h file.
22332         * doc/glibc-functions/lgetfilecon.texi: New file.
22333         * doc/glibc-functions/fgetfilecon.texi: New file.
22334         * doc/glibc-functions/getfilecon.texi: New file.
22335         * doc/glibc-functions/getfilecon-desc.texi: New file.
22336         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
22337         which to pull in the new files.
22338         * MODULES.html.sh (Misc): Add selinux-h.
22339
22340 2009-10-08  Jim Meyering  <meyering@redhat.com>
22341
22342         unistd: fix comment typo
22343         * lib/unistd.in.h (euidaccess): Fix a comment typo.
22344
22345 2009-10-08  Eric Blake  <ebb9@byu.net>
22346
22347         areadlink: use SIZE_MAX consistently
22348         * modules/areadlink (Depends-on): Add stdint.
22349         * modules/areadlink-with-size (Depends-on): Likewise.
22350         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
22351         gives NULL; drop sys/types, since unistd gives size_t; and add
22352         stdint for SIZE_MAX.
22353         (SIZE_MAX): Rely on headers.
22354         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
22355         and add stdint.
22356         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
22357         (SIZE_MAX): Likewise.
22358         (INITIAL_BUF_SIZE): Turn into enum.
22359         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
22360
22361 2009-10-08  Jim Meyering  <meyering@redhat.com>
22362
22363         areadlinkat: avoid compilation failure
22364         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
22365         Fix typo in comment.
22366
22367 2009-10-07  Eric Blake  <ebb9@byu.net>
22368
22369         areadlinkat-with-size: new module
22370         * modules/areadlinkat-with-size: New module.
22371         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
22372         * lib/areadlink.h (areadlinkat): Declare it.
22373         * MODULES.html.sh (File system functions): Mention it.
22374         * modules/areadlinkat-with-size-tests: New test.
22375         * tests/test-areadlinkat-with-size.c: New file.
22376
22377         xreadlinkat: new module
22378         * modules/xreadlinkat: New module.
22379         * lib/xreadlinkat.c (xreadlinkat): New file.
22380         * lib/xreadlink.h (xreadlinkat): Declare it.
22381         * MODULES.html.sh (File system functions): Mention it.
22382
22383         areadlinkat: new module
22384         * lib/at-func.c (FUNC_FAIL): New define.
22385         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
22386         * modules/areadlinkat: New module.
22387         * lib/linkat.c (areadlinkat): Move...
22388         * lib/areadlinkat.c (areadlinkat): ...to new file.
22389         * lib/areadlink.h (areadlinkat): Declare it.
22390         * modules/linkat (Depends-on): Add areadlinkat.
22391         * MODULES.html.sh (File system functions): Mention it.
22392         * modules/areadlinkat-tests: New test.
22393         * tests/test-areadlinkat.c: New file.
22394
22395         areadlink, areadlink-with-size: add tests
22396         * modules/areadlink-tests: New test.
22397         * modules/areadlink-with-size-tests: Likewise.
22398         * tests/test-areadlink.h: New file.
22399         * tests/test-areadlink.c: Likewise.
22400         * tests/test-areadlink-with-size.c: Likewise.
22401
22402         maint: minor cleanups
22403         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
22404         _UNUSED_PARAMETER_ instead.
22405         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
22406         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
22407         * modules/linkat-tests (Files): Distribute test-link.h.
22408
22409         openat, utimens: whitespace cleanup
22410         * lib/openat.c: Prefer space throughout, rather than mix of 8
22411         spaces vs. tabs.
22412         * lib/at-func.c: Likewise.
22413         * lib/utimens.c: Likewise.
22414
22415         openat: avoid using wrong fd
22416         * lib/openat.c (openat_permissive): Reject user's fd if saving the
22417         working directory chooses same fd.
22418         * lib/at-func.c (AT_FUNC_NAME): Likewise.
22419
22420         mkdir, mkdirat: fix cygwin 1.5.x bug
22421         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
22422         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
22423         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
22424         bug.
22425         (gl_PREREQ_MKDIR): Delete unused macro.
22426         * modules/mkdir (Files): Track file rename.
22427         (configure.ac): Update macro name.
22428         * modules/openat (Depends-on): Add mkdir.
22429         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
22430
22431         mkdir, mkdirat: add tests
22432         * modules/mkdir-tests: New test.
22433         * tests/test-mkdir.h: New file.
22434         * tests/test-mkdir.c: Likewise.
22435         * tests/test-mkdirat.c: Likewise.
22436         * modules/openat-tests (Files): Add new files.
22437         (Makefile.am): Run new test.
22438
22439 2009-10-06  Eric Blake  <ebb9@byu.net>
22440
22441         doc: tweak *at function documentation
22442         * doc/posix-functions/faccessat.texi (faccessat): Mention
22443         known issue with replacement.
22444         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
22445         * doc/posix-functions/linkat.texi (linkat): Likewise.
22446         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
22447         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
22448         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22449         * doc/posix-functions/renameat.texi (renameat): Likewise.
22450         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
22451
22452         openat: fix GNU/Hurd bug in unlinkat
22453         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
22454         broken.
22455         * doc/posix-functions/unlink.texi (unlink): Document this.
22456         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
22457
22458         fdopendir: fix GNU/Hurd bug
22459         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
22460         allowing non-directory fds.
22461         * lib/fdopendir.c (rpl_fdopendir): Work around it.
22462         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
22463         * modules/dirent (Makefile.am): Substitute it.
22464         * lib/dirent.in.h (fdopendir): Declare replacement.
22465         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
22466         * tests/test-fdopendir.c (main): Test something other than
22467         /dev/null, since on Hurd that behaves like a directory.
22468
22469         test-symlink: port to GNU/Hurd
22470         * tests/test-symlink.h (test_symlink): Relax expected errno.
22471
22472         doc: tweak more cygwin information
22473         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
22474         now compatible with glibc.
22475         * doc/posix-functions/getopt.texi (getopt): Likewise.
22476
22477         getopt-gnu: add another test
22478         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
22479         guarantee behavior relied on by m4.
22480         * tests/test-getopt.c (main): Use it.
22481         * modules/getopt-posix-tests (Depends-on): Add setenv.
22482         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
22483
22484         getopt: fix compilation on darwin
22485         * lib/getopt.in.h (includes): Leave breadcrumbs during system
22486         include.
22487         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
22488         Reported by Ludovic Courtès.
22489
22490 2009-10-06  Bruno Haible  <bruno@clisp.org>
22491
22492         * modules/size_max (Description): Discourage its use.
22493         Reported by Simon Josefsson.
22494
22495 2009-10-06  Jim Meyering  <meyering@redhat.com>
22496
22497         linkat: avoid compilation failure
22498         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
22499
22500 2009-10-05  Eric Blake  <ebb9@byu.net>
22501
22502         linkat: support Linux 2.6.17
22503         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
22504         linkat on Linux, but allow cache variable override.
22505         * lib/linkat.c (rpl_linkat): Define override.
22506         * modules/linkat (Depends-on): Add symlinkat.
22507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
22508         * modules/unistd (Makefile.am): Substitute it.
22509         * lib/unistd.in.h (linkat): Declare replacement.
22510         Reported by Pádraig Brady.
22511
22512         quotearg: port test to systems with C.UTF-8 locale
22513         * tests/test-quotearg.c (struct result_strings): Add another
22514         member, differentiating between C.ASCII and C.UTF-8 handling.
22515         (compare_strings): Add parameter.
22516         (main): Adjust all callers.
22517
22518         getopt: avoid clash with FreeBSD _getopt_internal
22519         * lib/getopt.in.h (_getopt_internal): Override the name.
22520         * lib/getopt_int.h (includes): Pick up any overrides.
22521         Reported by Reuben Thomas.
22522
22523         hash: allow C89 compilation
22524         * lib/hash.c (check_tuning): Move declaration before statement.
22525         Reported by Reuben Thomas.
22526
22527 2009-10-05  Karl Berry  <karl@gnu.org>
22528
22529         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
22530
22531 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
22532             Bruno Haible  <bruno@clisp.org>
22533
22534         * lib/uname.c (uname): Use a table-driven algorithm to compute
22535         Windows NT versions.
22536
22537 2009-10-04  Bruno Haible  <bruno@clisp.org>
22538
22539         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
22540         program_invocation_short_name.
22541         * modules/progname (configure.ac): Test for presence of
22542         program_invocation_short_name.
22543         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
22544
22545 2009-10-04  Bruno Haible  <bruno@clisp.org>
22546
22547         * lib/progname.c (set_program_name): Fix comment.
22548         Reported by Jim Meyering.
22549
22550 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
22551             Bruno Haible  <bruno@clisp.org>
22552
22553         * lib/uname.c: Include <string.h>.
22554         (uname): Do only one call to GetVersionEx in the common case.
22555
22556 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
22557             Bruno Haible  <bruno@clisp.org>
22558
22559         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
22560         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
22561         (uname): Add support for Windows CE and various non-x86 CPU types.
22562
22563 2009-10-03  Bruno Haible  <bruno@clisp.org>
22564
22565         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
22566         invocation to tests/configure.ac.
22567         Reported by Ian Beckwith <ianb@erislabs.net>.
22568
22569 2009-10-02  Eric Blake  <ebb9@byu.net>
22570
22571         fchdir: avoid compiler warning
22572         * lib/fchdir.c (canonicalize_file_name)
22573         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
22574
22575         test-open: support mingw errno values
22576         * tests/test-open.h (test_open): Relax test.
22577         * tests/test-fopen.h (test_fopen): Likewise.
22578         * tests/test-openat-safer.c (main): Likewise.
22579
22580         open: fix opening directory on mingw
22581         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
22582
22583         test-open: on GNU/Hurd, /dev/null is a directory
22584         * tests/test-fopen.h (main): Rename...
22585         (test_fopen): ...to this.  Use a guaranteed non-directory when
22586         confirming open behavior on trailing slash.
22587         * tests/test-openat-safer.c (main): Likewise.
22588         * tests/test-open.h (main): Likewise....
22589         (test_open): ...to this.
22590         * tests/test-fopen.c (main): Adjust caller.
22591         * tests/test-fopen-safer.c (main): Likewise.
22592         * tests/test-open.c (main): Likewise.
22593         * tests/test-fcntl-safer.c (main): Likewise.
22594         Reported by Samuel Thibault.
22595
22596         rename, fchdir: don't ignore chdir failure
22597         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
22598         * lib/rename.c (rpl_rename) [W32]: Likewise.
22599         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
22600         an empty destination directory if source cannot be renamed,
22601         although there is still possibility for failure.
22602         * doc/posix-functions/rename.texi (rename): Document the race.
22603         Reported by Jim Meyering.
22604
22605         maint: cleanup whitespace in recent commits
22606         * lib/rename.c (rpl_rename): Remove tabs.
22607         * tests/test-link.h (test_link): Likewise.
22608         * lib/fchdir.c (get_name): Likewise.
22609         Reported by Jim Meyering.
22610
22611 2009-10-02  Ben Pfaff  <blp@gnu.org>
22612
22613         relocatable-prog-wrapper: Add missing dependency on
22614         double-slash-root.
22615         * modules/relocatable-prog-wrapper: Add dependency.
22616         Reported by Ian Beckwith <ianb@erislabs.net>.
22617
22618 2009-10-02  Eric Blake  <ebb9@byu.net>
22619
22620         renameat: fix Solaris bugs
22621         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
22622         needed fixing.
22623         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
22624         * modules/stdio (Makefile.am): Substitute it.
22625         * lib/stdio.in.h (renameat): Declare replacement.
22626         * lib/renameat.c (rpl_renameat): Implement fix.
22627
22628         renameat: new module
22629         * modules/renameat: New file.
22630         * lib/renameat.c (renameat): Likewise.
22631         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
22632         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
22633         * modules/stdio (Makefile.am): Substitute them.
22634         * lib/stdio.in.h (renameat): Declare it.
22635         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22636         * doc/posix-functions/renameat.texi (renameat): Likewise.
22637         * modules/renameat-tests: New test.
22638         * tests/test-renameat.c: Likewise.
22639
22640         rename: fix mingw bugs
22641         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
22642         directory overwrite bugs.
22643
22644         rename: fix another cygwin 1.5 bug
22645         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
22646         checks.
22647         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
22648         unnecessary cygwin workarounds.  Also work around bug with moving
22649         full directory onto an empty one.
22650         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
22651
22652         rename-dest-slash: merge into rename module
22653         * modules/rename-dest-slash (Status): Mark obsolete.
22654         (Depends-on): Add rename.
22655         (Files): Let rename do it all.
22656         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
22657         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
22658         * m4/rename-dest-slash.m4: ...so this file can be deleted.
22659         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
22660         * lib/rename.c (rpl_rename): Update comments.
22661
22662         rename: fix cygwin 1.5.x bugs
22663         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
22664         * lib/rename.c (rpl_rename): Work around them.
22665         * modules/rename (Depends-on): Add same-inode.
22666
22667         rename: fix Solaris 10 bug
22668         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
22669         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
22670         was the only bug.
22671
22672         rename: fix Solaris 9 bug
22673         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
22674         on non-directory.  Avoid calling exit.
22675         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
22676         strdup.
22677         * modules/rename-tests (Depends-on): Drop lstat.
22678         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
22679         (gl_PREREQ_RENAME): Delete unused macro.
22680
22681         rename-dest-slash: fix NetBSD bug
22682         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
22683         links.
22684         * modules/rename-dest-slash (Depends-on): Add same-inode.
22685
22686         rename-tests: new test, exposes several platform bugs
22687         * modules/rename-tests: New file.
22688         * tests/test-rename.h: Likewise.
22689         * tests/test-rename.c: Likewise.
22690         * doc/posix-functions/rename.texi (rename): Improve documentation,
22691         including bugs that will eventually be fixed in gnulib.
22692
22693 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
22694
22695         * lib/uname.c: Include <stdlib.h>
22696         (uname): Assume version info is available.
22697
22698 2009-10-02  Jim Meyering  <meyering@redhat.com>
22699
22700         gnu-web-doc-update: correct --help output
22701         * build-aux/gnu-web-doc-update: Make --help output relevant.
22702
22703         gnu-web-doc-update: add standard options
22704         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
22705
22706         gnu-web-doc-update: New module.
22707         Use this script to automatically update the on-line web documentation
22708         for your GNU project at http://www.gnu.org/software/$pkg/manual/
22709         * modules/gnu-web-doc-update: New file, from coreutils.
22710         * build-aux/gnu-web-doc-update: New script.
22711
22712 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
22713
22714         link: LoadLibrary is not needed.
22715         * lib/link.c: Use GetModuleHandle.
22716
22717 2009-10-01  Eric Blake  <ebb9@byu.net>
22718
22719         getopt: bump serial number
22720         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
22721         change.
22722
22723         tests: tighten link, rmdir, and remove tests
22724         * tests/test-link.h (includes): No need to use <config.h> here.
22725         Clean up if directory hard link was created, otherwise test for
22726         trailing '.'.
22727         * tests/test-linkat.c (main): Simplify.
22728         * tests/test-remove.c (main): Enhance test for trailing '.'.
22729         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22730
22731 2009-10-01  Jim Meyering  <meyering@redhat.com>
22732
22733         maint.mk: requiring "make major" was annoying, for a "minor" release.
22734         What is intended is "stable", to contrast with alpha and beta,
22735         so require "make stable", not "make major".
22736         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
22737         (get_tool_versions): Likewise.
22738         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
22739
22740 2009-09-30  Ben Pfaff  <blp@gnu.org>
22741
22742         Fix broken build of replacement for Windows tmpfile().
22743         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
22744         flags argument added along with the 'mkostemp' module.
22745
22746 2009-09-28  Bruno Haible  <bruno@clisp.org>
22747
22748         Avoid identifier clash with POSIX function 'remove' defined as a macro.
22749         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
22750         to 'remove_elt'.
22751         (gl_list_remove): Update.
22752         * lib/gl_list.c (gl_list_remove): Update.
22753         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
22754         to 'remove_elt'.
22755         (gl_oset_remove): Update.
22756         * lib/gl_list.c (gl_oset_remove): Update.
22757         Reported by Eric Blake.
22758
22759 2009-09-28  Eric Blake  <ebb9@byu.net>
22760
22761         doc: mention yet more cygwin 1.7 status
22762         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
22763         cygwin.
22764         * doc/glibc-functions/execvpe.texi (execvpe): New file.
22765         * doc/gnulib.texi (Glibc unistd.h): Mention it.
22766
22767         argp: fix test failure
22768         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
22769         that are not upper-case.  Pass correct range to tolower.
22770
22771 2009-09-27  Jim Meyering  <meyering@redhat.com>
22772
22773         test-yesno: work around sparc-dash here-document infelicity
22774         Without this change, the literal \177 byte in a here document
22775         would make dash 0.5.5.1-3 access uninitialized memory.
22776         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
22777         Instead, use a marker, "@", and filter through tr to create the desired
22778         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
22779
22780 2009-09-27  Bruno Haible  <bruno@clisp.org>
22781
22782         Disable untested support for new flavours of ACLs on AIX.
22783         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
22784         progress.
22785         * lib/set-mode-acl.c (qset_acl): Likewise.
22786
22787 2008-12-07  Bruno Haible  <bruno@clisp.org>
22788
22789         Add support for new flavours of ACLs on AIX. (Untested.)
22790         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
22791         (file_has_acl): Add support for newer AIX.
22792         * lib/set-mode-acl.c (qset_acl): Likewise.
22793         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
22794         Rainer Tammer <tammer@tammer.net>.
22795
22796 2009-09-26  Eric Blake  <ebb9@byu.net>
22797
22798         argp: fix compilation of getopt
22799         * lib/getopt.in.h (includes): Use different guard than glibc.
22800         Reported by Sergey Poznyakoff.
22801
22802         doc: mention more cygwin 1.7 status
22803         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
22804         bug.
22805         * doc/posix-functions/execl.texi (execl): Likewise.
22806         * doc/posix-functions/execle.texi (execle): Likewise.
22807         * doc/posix-functions/execlp.texi (execlp): Likewise.
22808         * doc/posix-functions/execv.texi (execv): Likewise.
22809         * doc/posix-functions/execve.texi (execve): Likewise.
22810         * doc/posix-functions/execvp.texi (execvp): Likewise.
22811         * doc/glibc-functions/canonicalize_file_name.texi
22812         (canonicalize_file_name): Cygwin 1.7 now provides this.
22813         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
22814         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
22815         on AT_SYMLINK_NOFOLLOW.
22816
22817 2009-09-24  Eric Blake  <ebb9@byu.net>
22818
22819         test-linkat: make test more robust
22820         * tests/test-linkat.c (main): Avoid collision with EEXIST.
22821
22822         getopt: fix inclusion guards for cygwin
22823         * modules/getopt-posix (Depends-on): Add include-next.
22824         (Makefile.am): Substitute more items in replacement header.
22825         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
22826         <getopt.h>.
22827         * lib/getopt.in.h (includes): Use split inclusion guard, and
22828         prefer <getopt.h> over include <unistd.h> when one is present.
22829         (option): Also override name of 'struct option'.
22830
22831         same-inode: revert prior change; it is not yet ready
22832         * NEWS: Undo mention of this change.
22833         * lib/same-inode.h (same-inode.h): Undo tri-state change.
22834         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
22835         * lib/cycle-check.c (cycle_check): Likewise.
22836         * lib/same.c (same_name): Likewise.
22837         * lib/at-func2.c (at_func2): Likewise.
22838
22839 2009-09-23  Eric Blake  <ebb9@byu.net>
22840
22841         linkat: new module
22842         * modules/linkat: New file.
22843         * lib/at-func2.c (at_func2): Likewise.
22844         * lib/linkat.c (linkat): Likewise.
22845         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
22846         * lib/openat-priv.h (at_func2): Add declaration.
22847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
22848         * modules/unistd (Makefile.am): Substitute them.
22849         * lib/unistd.in.h (linkat): Declare it.
22850         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22851         * doc/posix-functions/linkat.texi (linkat): Likewise.
22852         * doc/posix-functions/link.texi (link): Tweak wording.
22853         * tests/test-link.c (main): Move guts...
22854         * tests/test-link.h (test_link): ...into new file.
22855         * modules/linkat-tests: New test.
22856         * tests/test-linkat.c: Likewise.
22857         * modules/link-tests (Files): Ship new file.
22858         (Depends-on): Add stdbool.
22859
22860         dirname: add library-safe mdir_name
22861         * lib/dirname.h (mdir_name): New prototype.
22862         * lib/dirname.c (dir_name): Move guts...
22863         (mdir_name): ...to new function that avoids xalloc_die.
22864
22865         fchdir: another mingw fix
22866         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
22867         * lib/fchdir.c (get_name): New helper method; skips canonicalize
22868         on mingw (where it has not yet been ported), and make it optional
22869         elsewhere.
22870         (_gl_register_fd): Use it.
22871
22872         same-inode: make SAME_INODE tri-state, to port to mingw
22873         * NEWS: Mention this change.
22874         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
22875         st_ino always being 0.
22876         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
22877         * lib/cycle-check.c (cycle_check): Likewise.
22878         * lib/same.c (same_name): Likewise.
22879
22880         lstat: avoid mingw compilation error
22881         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
22882         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
22883         lstat ourselves.
22884         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
22885         was adequate.
22886         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
22887         the checks for lstat.
22888         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
22889
22890         link: fix test failure on Solaris 9
22891         * lib/link.c (rpl_link): Don't assume link will catch bogus
22892         trailing slash on source.
22893
22894         test-symlinkat: enhance test
22895         * tests/test-readlink.c (main): Move guts...
22896         * tests/test-readlink.h (test_readlink): ...into new file.
22897         * tests/test-symlink.c (main): Move guts...
22898         * tests/test-symlink.h (test_symlink): ...into new file.
22899         * tests/test-symlinkat.c (main): Use new files for further
22900         coverage.
22901         (do_symlink, do_readlink): New helper functions.
22902         * modules/symlink-tests (Files): Ship new file.
22903         (Depends-on): Add stdbool.
22904         * modules/readlink-tests (Files): Ship new file.
22905         (Depends-on): Add stdbool.
22906         * modules/symlinkat-tests (Files): Use new files.
22907
22908 2009-09-23  Eric Blake  <ebb9@byu.net>
22909
22910         readlink: document portability issue with symlink length
22911         * doc/posix-functions/lstat.texi (lstat): Mention that some file
22912         systems have bogus st_size on symlinks, and mention the
22913         areadlink-with-size module.
22914         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
22915         * doc/posix-functions/readlink.texi (readlink): Mention the
22916         areadlink module, and ERANGE failure.
22917         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22918         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
22919
22920         readlink: fix Solaris 9 bug with trailing slash
22921         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
22922         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
22923         * doc/posix-functions/readlink.texi (readlink): Document this.
22924         * modules/readlink-tests: New test.
22925         * tests/test-readlink.c: Likewise.
22926
22927         readlink: fix cygwin 1.5.x bug with return type
22928         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
22929         * lib/unistd.in.h (readlink): Use ssize_t.
22930         * lib/readlink.c (readlink): Likewise.
22931         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22932         * modules/unistd (Makefile.am): Substitute it.
22933         * lib/unistd.in.h (readlink): Declare replacement.
22934         * doc/posix-functions/readlink.texi (readlink): Document this.
22935
22936         symlink: use throughout gnulib
22937         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
22938         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
22939         symlink is not used.
22940         * modules/symlinkat (Depends-on): Add symlink.
22941         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
22942         * modules/canonicalize-tests (Depends-on): Likewise.
22943         * modules/lstat-tests (Depends-on): Likewise.
22944         * modules/openat-tests (Depends-on): Likewise.
22945         * modules/remove-tests (Depends-on): Likewise.
22946         * modules/rmdir-tests (Depends-on): Likewise.
22947         * modules/unlink-tests (Depends-on): Likewise.
22948         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
22949         * tests/test-canonicalize.c (symlink): Likewise.
22950         * tests/test-fstatat.c (symlink): Likewise.
22951         * tests/test-lstat.c (symlink): Likewise.
22952         * tests/test-remove.c (symlink): Likewise.
22953         * tests/test-rmdir.c (symlink): Likewise.
22954         * tests/test-unlink.c (symlink): Likewise.
22955         * tests/test-unlinkat.c (symlink): Likewise.
22956
22957         symlink: new module, for Solaris 9 bug
22958         * modules/symlink: New file.
22959         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
22960         * lib/symlink.c: Likewise.
22961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
22962         * modules/unistd (Makefile.am): Substitute them.
22963         * lib/unistd.in.h (symlink): Declare replacement.
22964         * MODULES.html.sh (File system functions): Mention it.
22965         * doc/posix-functions/symlink.texi (symlink): Likewise.
22966         * modules/symlink-tests: New test.
22967         * tests/test-symlink.c: Likewise.
22968
22969 2009-09-23  Bruno Haible  <bruno@clisp.org>
22970
22971         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
22972         when needed.
22973         Test case: gnulib-tool --import --with-tests atexit inttypes.
22974         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
22975
22976 2009-09-23  Bruno Haible  <bruno@clisp.org>
22977
22978         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
22979         subcommand, not in a subshell.
22980
22981 2009-09-22  Eric Blake  <ebb9@byu.net>
22982
22983         unistd: sort replacement declarations
22984         * lib/unistd.in.h: Sort declarations.
22985
22986         open, openat: minor optimization
22987         * lib/open.c (open): If open succeeded, len is non-zero.
22988         * lib/openat.c (rpl_openat): Likewise.
22989
22990         link-follow: ensure correct result
22991         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
22992         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
22993         distinguish between possible failures.
22994
22995 2009-09-21  Eric Blake  <ebb9@byu.net>
22996
22997         fts: avoid compiler warning
22998         * lib/fts.c (dirent_inode_sort_may_be_useful)
22999         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
23000
23001 2009-09-19  Bruno Haible  <bruno@clisp.org>
23002
23003         * lib/progreloc.c (canonicalize_file_name): New declaration.
23004
23005 2009-09-19  Eric Blake  <ebb9@byu.net>
23006
23007         link: fix quoting
23008         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
23009
23010         openat: fix openat bugs on Solaris 9
23011         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
23012         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
23013         * modules/openat (Depends-on): Add open.
23014         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
23015         * modules/fcntl-h (Makefile.am): Substitute it.
23016         * lib/fcntl.in.h (openat): Declare replacement.
23017         * doc/posix-functions/openat.texi (openat): Document this.
23018
23019         openat: move fstatat and unlinkat into correct files
23020         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
23021         compiled.
23022         * lib/openat.c (fstatat, unlinkat): Move...
23023         * lib/fstatat.c (fstatat): ...into correct files.
23024         * lib/unlinkat.c (unlinkat): Likewise.
23025
23026         openat: fix unlinkat bugs on Solaris 9
23027         * lib/unlinkat.c (unlinkat): New file.
23028         * modules/openat (Depends-on): Add unlink.
23029         (Files): Distribute it.
23030         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
23031         trailing slash behavior is broken.
23032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23033         * modules/unistd (Makefile.am): Substitute it.
23034         * lib/unistd.in.h (unlinkat): Declare replacement.
23035         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
23036
23037         openat: fix fstatat bugs on Solaris 9
23038         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
23039         stat.
23040         * doc/posix-functions/fstatat.texi (fstatat): Document this.
23041
23042         test-unlinkat: enhance test, to expose Solaris 9 bug
23043         * tests/test-unlink.c (main): Factor guts...
23044         * tests/test-unlink.h (test_rmdir_func): ...into new file.
23045         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
23046         * tests/test-rmdir.c (main): Adjust caller.
23047         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
23048         (unlinker): New helper function.
23049         (rmdirat): Enhance check.
23050         * modules/rmdir-tests (Depends-on): Add stdbool.
23051         * modules/unlink-tests (Depends-on): Likewise.
23052         (Files): Add test-unlink.h.
23053         * modules/openat-tests (Files): Likewise.
23054         (Depends-on): Add unlinkdir.
23055
23056         test-fstatat: new test, to expose Solaris 9 bugs
23057         * tests/test-stat.c (main): Factor guts...
23058         * tests/test-stat.h (test_stat_func): ...into new file.
23059         * tests/test-lstat.c (main): Factor guts...
23060         * tests/test-lstat.h (test_lstat_func): ...into new file.
23061         * tests/test-fstatat.c: New file.
23062         * modules/stat-tests (Files): Add test-stat.h.
23063         * modules/lstat-tests (Files): Add test-lstat.h.
23064         (Depends-on): Add stdbool.
23065         * modules/openat-tests (Depends-on): Add pathmax.
23066         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
23067         (Makefile.am): Run new test.
23068
23069         remove: new module, for mingw and Solaris 9 bugs
23070         * modules/remove: New file.
23071         * lib/remove.c: Likewise.
23072         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
23073         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
23074         * modules/stdio (Makefile.am): Use them.
23075         * lib/stdio.in.h (remove): Declare replacement.
23076         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23077         * doc/posix-functions/remove.texi (remove): Likewise.
23078         * modules/remove-tests: New test.
23079         * tests/test-remove.c: Likewise.
23080
23081         unlink: new module, for Solaris 9 bug
23082         * modules/unlink: New file.
23083         * lib/unlink.c: Likewise.
23084         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
23086         * modules/unistd (Makefile.am): Use them.
23087         * lib/unistd.in.h (stat): Declare replacement.
23088         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23089         * doc/posix-functions/unlink.texi (unlink): Likewise.
23090         * modules/unlink-tests: New test.
23091         * tests/test-unlink.c: Likewise.
23092
23093         lstat: fix Solaris 9 bug
23094         * lib/lstat.c (lstat): Also check for trailing slash on
23095         non-symlink, non-directories.  Use stat module to simplify logic.
23096         * doc/posix-functions/lstat.texi (lstat): Document it.
23097         * modules/lstat-tests (Depends-on): Add errno, same-inode.
23098         (configure.ac): Check for symlink.
23099         * tests/test-lstat.c (main): Add more tests.
23100
23101         stat: add as dependency to other modules
23102         * modules/chown (Depends-on): Add stat.
23103         * modules/euidaccess (Depends-on): Likewise.
23104         * modules/fchdir (Depends-on): Likewise.
23105         * modules/isdir (Depends-on): Likewise.
23106         * modules/link (Depends-on): Likewise.
23107         * modules/lstat (Depends-on): Likewise.
23108         * modules/mkdir-p (Depends-on): Likewise.
23109         * modules/modechange (Depends-on): Likewise.
23110         * modules/open (Depends-on): Likewise.
23111         * modules/readlink (Depends-on): Likewise.
23112         * modules/same (Depends-on): Likewise.
23113
23114         stat: fix Solaris 9 bug
23115         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
23116         slash.
23117         * lib/stat.c (rpl_stat): Work around it.
23118         * doc/posix-functions/stat.texi (stat): Update documentation.
23119
23120         stat: new module, for mingw bug
23121         * modules/stat: New file.
23122         * lib/stat.c: Likewise.
23123         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23124         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23125         * modules/sys_stat (Makefile.am): Use them.
23126         * lib/sys_stat.in.h (stat): Declare replacement.
23127         * lib/openat.c (fstatat): Deal with lstat and stat being function
23128         macros.
23129         * modules/openat (Depends-on): Add inline.
23130         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23131         * doc/posix-functions/stat.texi (stat): Likewise.
23132         * modules/stat-tests: New test.
23133         * tests/test-stat.c: Likewise.
23134
23135 2009-09-19  Jim Meyering  <meyering@redhat.com>
23136
23137         syntax-check: detect unnecessary inclusion of canonicalize.h
23138         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
23139
23140 2009-09-19  Eric Blake  <ebb9@byu.net>
23141
23142         canonicalize-lgpl: adjust clients to use correct header
23143         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
23144         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
23145         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
23146         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
23147         * lib/progreloc.c (includes): Likewise.
23148
23149 2009-09-19  Jim Meyering  <meyering@redhat.com>
23150
23151         test-posixtm.c: correct a comment
23152         * tests/test-posixtm.c: Correct first-line comment.
23153         Spotted by Eric Blake.
23154
23155 2009-09-16  Jim Meyering  <meyering@redhat.com>
23156
23157         posixtm-tests: make T const-correct; add a test case
23158         * tests/test-posixtm.c (T): Declare const.
23159         Add a test for -(2^31+1).
23160         Remove useless can-succeed-only-in-2002 test.
23161
23162         posixtm-tests: adjust the sole failing test
23163         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
23164         expected output matches what mktime now produces.  Cross-checked via
23165         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
23166
23167         posixtm: move #ifdef'd tests into a new module
23168         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
23169         * tests/test-posixtm.c: ... this new file.
23170         * modules/posixtm-tests: New module.
23171
23172 2009-09-19  Eric Blake  <ebb9@byu.net>
23173
23174         openat: simplify use of at-func.c
23175         * lib/at-func.c (includes): Include prerequisites here, to
23176         simplify requirements on client files.
23177         * lib/openat-priv.h: Add double-inclusion guard.
23178         * lib/faccessat.c (includes): Simplify.
23179         * lib/fchmodat.c (includes): Likewise.
23180         * lib/fchownat.c (includes): Likewise.
23181         * lib/mkdirat.c (includes): Likewise.
23182         * lib/mkfifoat.c (includes): Likewise.
23183         * lib/symlinkat.c (includes): Likewise.
23184
23185         openat: allow return of fd 0
23186         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
23187         * modules/save-cwd (Depends-on): Replace fcntl-safer with
23188         unistd-safer.
23189         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
23190         <fcntl.h>; this module does not leak fds.
23191         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
23192         must be allowed to return 0, leaving openat_safer to add the
23193         safety.
23194         (openat_permissive): Avoid writing to just-opened fd 2 if
23195         restoring the current directory fails.
23196         * lib/openat-die.c (openat_restore_fail): Add comment.
23197         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
23198         (save_cwd): Guarantee safe fd, but without use of open_safer.
23199         * tests/test-openat.c: New test.
23200         * modules/openat-tests (Files, Makefile.am): Distribute and build
23201         new file.
23202
23203         relocatable-prog-wrapper: fix build
23204         * modules/relocatable-prog-wrapper (Files): Update name of
23205         canonicalize m4 file, broken on 2009-09-17.
23206         Reported by emad hajjar <aleppos@hotmail.com>.
23207
23208 2009-09-19  Bruno Haible  <bruno@clisp.org>
23209
23210         * lib/safe-alloc.h: Use the standard header with GPL copyright.
23211         * lib/safe-alloc.c: Likewise.
23212         Reported by Ian Beckwith <ianb@erislabs.net>.
23213
23214 2009-09-18  Bruno Haible  <bruno@clisp.org>
23215
23216         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
23217         Reported by <erobles@sensacd.com.mx>.
23218
23219 2009-09-17  Eric Blake  <ebb9@byu.net>
23220
23221         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
23222         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
23223         slashes when checking if last component is missing.
23224         * tests/test-canonicalize.c (main): Test this.
23225
23226         canonicalize, canonicalize-lgpl: honor // if distinct from /
23227         * modules/canonicalize (Files): Add double-slash-root.m4.
23228         * modules/canonicalize-lgpl (Files): Likewise.
23229         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
23230         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
23231         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
23232         fallback definition.
23233         (canonicalize_filename_mode): Use it to protect //.
23234         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
23235         (__realpath): Likewise.
23236         * tests/test-canonicalize.c (main): Test this.
23237         * tests/test-canonicalize-lgpl.c (main): Likewise.
23238         * modules/canonicalize-tests (Depends-on): Add same-inode.
23239         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23240
23241         canonicalize-lgpl: fix glibc bug with trailing slash
23242         * m4/canonicalize-lgpl.m4: Move contents...
23243         * m4/canonicalize.m4: ...here.
23244         (gl_CANONICALIZE_LGPL): Factor realpath check...
23245         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
23246         glibc 2.3.5 bug, fixed 2005-04-27.
23247         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
23248         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
23249         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
23250         * modules/canonicalize-lgpl (Files): Manage file rename.
23251         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
23252         * modules/stdlib (Makefile.am): Substitute witness.
23253         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
23254         is needed.
23255         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
23256         replacement is required.
23257         * lib/canonicalize.c (canonicalize_file_name): Likewise.
23258         * doc/glibc-functions/canonicalize_file_name.texi
23259         (canonicalize_file_name): Document this.
23260         * doc/posix-functions/realpath.texi (realpath): Likewise.
23261
23262         canonicalize-lgpl: reject non-directory with trailing slash
23263         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
23264         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
23265         catches failures in glibc 2.3.5.
23266         * tests/test-canonicalize.c (main): Likewise.
23267
23268         canonicalize-lgpl: use native realpath if it works
23269         * lib/canonicalize-lgpl.c (realpath): Guard with
23270         FUNC_REALPATH_WORKS.
23271         * lib/stdlib.in.h (realpath): Make declaration optional based on
23272         HAVE_REALPATH.
23273         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
23274         native realpath works.
23275         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
23276         * modules/stdlib (Makefile.am): Substitute witness.
23277
23278         canonicalize, canonicalize-lgpl: use <stdlib.h>
23279         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
23280         (Include): Mention <stdlib.h>.
23281         (configure.ac): Mention functions we provide.
23282         * modules/canonicalize (configure.ac): Likewise.
23283         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
23284         realpath if canonicalize_file_name is missing.
23285         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
23286         * modules/stdlib (Makefile.am): Substitute witnesses.
23287         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
23288         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
23289         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
23290         * NEWS: Document this.
23291         * doc/glibc-functions/canonicalize_file_name.texi
23292         (canonicalize_file_name): Likewise.
23293         * doc/posix-functions/realpath.texi (realpath): Likewise.
23294         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
23295
23296         test-canonicalize: consolidate into single C program
23297         * tests/test-canonicalize.sh: Delete; move setup into...
23298         * tests/test-canonicalize.c (main): ...the program, making it
23299         easier to run in debugger.  Add some tests.
23300         * modules/canonicalize-tests (Files): Remove unused file.
23301         (Depends-on): Add progname.
23302         (configure.ac, Makefile.am): Simplify.
23303
23304         test-canonicalize-lgpl: consolidate into single C program
23305         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
23306         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
23307         easier to run in debugger.  Add some tests.
23308         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
23309         (configure.ac, Makefile.am): Simplify.
23310
23311         canonicalize: avoid resolvepath
23312         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
23313         unnecessary checks.
23314         * lib/canonicalize.c (includes): Simplify.
23315         (canonicalize_file_name): Drop resolvepath implementation.
23316         * modules/canonicalize (Depends-on): Drop filenamecat.
23317
23318         canonicalize: don't lose errno
23319         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
23320         over calls to free.
23321
23322         canonicalize: simplify errno handling
23323         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
23324         assignment.
23325
23326         canonicalize, canonicalize-lgpl: update module dependencies
23327         * modules/canonicalize (Depends-on): Add extensions, lstat,
23328         pathmax, stdlib.
23329         (Files): Drop pathmax.h.
23330         (configure.ac): Adjust macro name.
23331         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
23332         lstat, stdlib, sys_stat.
23333         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
23334         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
23335         extensions.
23336         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
23337         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
23338         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
23339         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
23340         declaration, if available.
23341         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
23342         we can rely on the readlink module.
23343         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
23344         (includes): Use <unistd.h> unconditionally.
23345
23346 2009-09-17  Eric Blake  <ebb9@byu.net>
23347
23348         maint: make Include sections of modules consistent
23349         * modules/alloca: Use only header name; no need to list #include.
23350         * modules/alloca-opt: Likewise.
23351         * modules/arpa_inet: Likewise.
23352         * modules/canon-host: Likewise.
23353         * modules/configmake: Likewise.
23354         * modules/dirent: Likewise.
23355         * modules/eealloc: Likewise.
23356         * modules/environ: Likewise.
23357         * modules/fchdir: Likewise.
23358         * modules/fcntl: Likewise.
23359         * modules/fcntl-h: Likewise.
23360         * modules/gethrxtime: Likewise.
23361         * modules/gettime: Likewise.
23362         * modules/ignore-value: Likewise.
23363         * modules/inet_ntop: Likewise.
23364         * modules/inet_pton: Likewise.
23365         * modules/inttypes: Likewise.
23366         * modules/isnand-nolibm: Likewise.
23367         * modules/isnanf-nolibm: Likewise.
23368         * modules/mbchar: Likewise.
23369         * modules/mbfile: Likewise.
23370         * modules/mbiter: Likewise.
23371         * modules/mbuiter: Likewise.
23372         * modules/netdb: Likewise.
23373         * modules/netinet_in: Likewise.
23374         * modules/nproc: Likewise.
23375         * modules/pagealign_alloc: Likewise.
23376         * modules/poll: Likewise.
23377         * modules/printf-frexp: Likewise.
23378         * modules/pthread: Likewise.
23379         * modules/putenv: Likewise.
23380         * modules/random_r: Likewise.
23381         * modules/relocatable-prog: Likewise.
23382         * modules/search: Likewise.
23383         * modules/select: Likewise.
23384         * modules/selinux-h: Likewise.
23385         * modules/settime: Likewise.
23386         * modules/signal: Likewise.
23387         * modules/size_max: Likewise.
23388         * modules/socklen: Likewise.
23389         * modules/ssize_t: Likewise.
23390         * modules/stdarg: Likewise.
23391         * modules/stdbool: Likewise.
23392         * modules/stddef: Likewise.
23393         * modules/stdint: Likewise.
23394         * modules/stdio: Likewise.
23395         * modules/stdlib: Likewise.
23396         * modules/string: Likewise.
23397         * modules/strings: Likewise.
23398         * modules/sys_file: Likewise.
23399         * modules/sys_ioctl: Likewise.
23400         * modules/sys_select: Likewise.
23401         * modules/sys_socket: Likewise.
23402         * modules/sys_stat: Likewise.
23403         * modules/sys_time: Likewise.
23404         * modules/sys_times: Likewise.
23405         * modules/sys_utsname: Likewise.
23406         * modules/sys_wait: Likewise.
23407         * modules/sysexits: Likewise.
23408         * modules/time: Likewise.
23409         * modules/times: Likewise.
23410         * modules/tmpfile: Likewise.
23411         * modules/trim: Likewise.
23412         * modules/unistd: Likewise.
23413         * modules/wchar: Likewise.
23414         * modules/wctype: Likewise.
23415
23416 2009-09-17  Bruno Haible  <bruno@clisp.org>
23417
23418         Make getdate.y compile on QNX and NetBSD 5 / i386.
23419         * m4/getdate.m4 (gl_GETDATE): Conditionally define
23420         TIME_T_FITS_IN_LONG_INT.
23421         * lib/getdate.y (long_time_t): New type.
23422         (relative_time): Change type of 'seconds' field to long_time_t.
23423         (get_date): Update types of local variables. Check against overflow
23424         during conversion from long_time_t to time_t.
23425         Reported by Matt Kraai <kraai@ftbfs.org>
23426         and Hasso Tepper <hasso@netbsd.org>.
23427
23428 2009-09-17  Bruno Haible  <bruno@clisp.org>
23429
23430         * modules/COPYING: Update copyright years.
23431         * modules/README: Likeiwse.
23432         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
23433         Reported by Ian Beckwith <ianb@erislabs.net>.
23434
23435 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
23436
23437         * users.txt: Update references for gnuit package.
23438
23439 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
23440
23441         * m4/getdelim.m4: Fix typo in copyright line.
23442
23443 2009-09-17  Bruno Haible  <bruno@clisp.org>
23444
23445         * lib/atoll.c: Use the standard header with GPL copyright.
23446         * lib/argz.in.h: Likewise.
23447         * lib/glob.c: Likewise.
23448         * lib/glob-libc.h: Likewise.
23449         * lib/random_r.c: Likewise.
23450         * lib/siglist.h: Likewise.
23451         * lib/strsignal.c: Likewise.
23452         Reported by Ian Beckwith <ianb@erislabs.net>.
23453
23454 2009-09-17  Eric Blake  <ebb9@byu.net>
23455
23456         rmdir: ensure correct dependency order
23457         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
23458
23459 2009-09-17  Bruno Haible  <bruno@clisp.org>
23460
23461         Disable assertion that fails on NetBSD 5 / i386.
23462         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
23463         Reported by Sam Steingold <sds@gnu.org>
23464         and Hasso Tepper <hasso@netbsd.org>.
23465
23466 2009-09-16  Eric Blake  <ebb9@byu.net>
23467
23468         unlinkdir: port to mingw
23469         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
23470         on which no one can unlink a directory.
23471
23472         stdlib: sort witness names
23473         * modules/stdlib (Makefile.am): Sort replacements.
23474         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
23475         * lib/stdlib.in.h: Likewise.
23476
23477         parse-duration-tests: avoid link failure
23478         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
23479         LIBINTL.
23480         Reported by Tom G. Christensen.
23481
23482         openat-tests: ensure unlinkat behaves like rmdir
23483         * tests/test-rmdir.c (main): Factor guts...
23484         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
23485         * modules/rmdir-tests (Files): Ship new file.
23486         * modules/openat-tests: New test.
23487         * tests/test-unlinkat.c: Likewise.
23488
23489         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
23490         * modules/rmdir-errno (Status, Notice): Now obsolete.
23491
23492         rmdir: work around cygwin 1.5.x and mingw bugs
23493         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
23494         * lib/rmdir.c (rmdir): Work around it.
23495         * modules/rmdir (Status, Notice): No longer obsolete.
23496         (Files): Add dos.m4.
23497         (Depends-on): Add unistd.
23498         (configure.ac): Set witnesses.
23499         (License): Relax to LGPLv2+.
23500         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
23501         * modules/unistd (Makefile.am): Substitute witnesses.
23502         * lib/unistd.in.h (rmdir): Declare replacement.
23503         * doc/posix-functions/rmdir.texi (rmdir): Document this.
23504         * modules/rmdir-tests: New tests.
23505         * tests/test-rmdir.c: Likewise.
23506
23507 2009-09-15  Eric Blake  <ebb9@byu.net>
23508
23509         fchdir: improve use of replacement functions
23510         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
23511         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
23512         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
23513         REPLACE_CLOSEDIR.
23514         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
23515         * modules/sys_stat (Makefile.am): Substitute correct witness.
23516         * modules/dirent (Makefile.am): Likewise.
23517         * modules/unistd (Makefile.am): Likewise.
23518         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
23519         * lib/unistd.in.h (dup): Likewise.
23520         * lib/sys_stat.in.h (fstat): Likewise.
23521
23522         maint: ignore gnulib-tool temp files
23523         * .gitignore: Ignore files created during gnulib-tool --test.
23524
23525 2009-09-13  Jim Meyering  <meyering@redhat.com>
23526
23527         posixtm: don't reject a time that specify "60" as the number of seconds
23528         * lib/posixtm.c (posixtime): The code to reject invalid dates
23529         would also reject a time specified with the .60 suffix.
23530         But POSIX allows that, in order to accommodate leap seconds.
23531         So don't reject it.
23532         (main): Adjust tests accordingly.
23533         * modules/posixtm (Depends-on): Add stpcpy.
23534
23535 2009-09-11  Jim Meyering  <meyering@redhat.com>
23536
23537         announce-gen: include [$release_type] in emitted Subject:
23538         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
23539         e.g., [stable] in the emitted Subject: line.
23540
23541 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23542
23543         Remove obsolete macros from several modules.
23544         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
23545         obsolete Autoconf macros with their modern counterparts.
23546         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
23547         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
23548         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
23549         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
23550         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
23551         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23552         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23553         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23554         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23555         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
23556         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
23557         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
23558         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
23559         * m4/sockets.m4 (gl_SOCKETS): Likewise.
23560         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
23561         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
23562         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
23563         * m4/time_r.m4 (gl_TIME_R): Likewise.
23564         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23565         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
23566         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
23567
23568         Fix copyright header in build-aux scripts.
23569         * build-aux/git-version-gen: Fix copyright header to match GPLv3
23570         recommendation.
23571         * build-aux/ncftpput-ftp: Likewise.
23572         * build-aux/update-copyright: Likewise.
23573
23574 2009-09-09  Eric Blake  <ebb9@byu.net>
23575
23576         test-link: allow Linux choice of errno
23577         * tests/test-link.c (main): Relax test for alternate error.
23578
23579         strndup: fix improper m4 caching
23580         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
23581         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
23582         (gl_PREREQ_STRNDUP): Delete.
23583         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
23584         * modules/string (Makefile.am): Substitute it.
23585         * lib/string.in.h (strndup): Modernize prototype.
23586
23587         getcwd: port to mingw
23588         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
23589         different from the POSIX assumptions made throughout the getcwd
23590         module; fortunately, the mingw getcwd does not need replacement.
23591         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
23592         * modules/getcwd-tests: New test.
23593         * tests/test-getcwd.c: Likewise.
23594
23595         link: fix platform bugs
23596         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
23597         * lib/link.c (link): Work around them.  Fix related mingw bug.
23598         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
23599         * modules/unistd (Makefile.am): Substitute it.
23600         * lib/unistd.in.h (link): Declare replacement.
23601         * doc/posix-functions/link.texi (link): Document this.
23602         * modules/link (Depends-on): Add strdup-posix, sys_stat.
23603
23604         test-link: consolidate into single C program, test more cases
23605         * tests/test-link.sh: Delete.
23606         * tests/test-link.c: Test more error conditions.  Exposes bugs on
23607         at least Cygwin and Solaris.
23608         * modules/link-tests (Files): Remove unused file.
23609         (Depends-on): Add errno, sys_stat.
23610         (Makefile.am): Simplify.
23611
23612 2009-09-08  Bruno Haible  <bruno@clisp.org>
23613
23614         Work around towlower, towupper bug on mingw.
23615         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
23616         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
23617         * doc/posix-functions/towlower.texi: Mention the mingw bug.
23618         * doc/posix-functions/towupper.texi: Likewise.
23619         Reported by Eric Blake.
23620
23621 2009-09-08  Jim Meyering  <meyering@redhat.com>
23622
23623         build: don't try to run autoheader if we don't use it
23624         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
23625         is not used in configure.ac.
23626
23627 2009-09-08  Eric Blake  <ebb9@byu.net>
23628
23629         euidaccess: fix compilation error
23630         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
23631
23632         rawmemchr: relax license
23633         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
23634         okay.
23635         Reported by Jim Meyering.
23636
23637         mkfifoat: new module
23638         * modules/mkfifoat: New file.
23639         * lib/mkfifoat.c: Likewise.
23640         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
23641         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23642         * modules/sys_stat (Makefile.am): Use them.
23643         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
23644         * MODULES.html.sh (File system functions): Mention module.
23645         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
23646         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
23647         * modules/mkfifoat-tests: New test.
23648         * tests/test-mkfifoat.c: Likewise.
23649
23650         strchrnul: relax license
23651         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
23652         okay.
23653         Reported by Jim Meyering.
23654
23655 2009-09-08  Eric Blake  <ebb9@byu.net>
23656
23657         fstatat: fix compilation on Solaris
23658         * lib/fstatat.c (includes): Add fcntl.h.
23659         Reported by Pádraig Brady.
23660
23661 2009-09-07  Eric Blake  <ebb9@byu.net>
23662
23663         rename: modernize replacement
23664         * modules/rename (Depends-on): Add stdio.
23665         (configure.ac): Declare witness.
23666         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
23667         stdio take care of replacement.
23668         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
23669         * modules/stdio (Makefile.am): Substitute them.
23670         * lib/stdio.in.h (rename): Declare replacement.
23671         * lib/rename.c (includes): Allow cross-compilation to non-windows
23672         machines.
23673         * doc/posix-functions/rename.texi (rename): Improve
23674         documentation.
23675
23676         stdio: sort witness names
23677         * modules/stdio (Makefile.am): Sort replacements.
23678         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23679         * lib/stdio.in.h: Likewise.
23680
23681         getcwd: minor cleanups
23682         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
23683         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
23684
23685         openat: provide more convenience names
23686         * modules/faccessat (configure.ac): Add C witness.
23687         * lib/unistd.in.h (readlinkat): Fix typo.
23688         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
23689         convenience wrappers.
23690         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
23691         wrappers in syntax checks.
23692
23693 2009-09-06  Eric Blake  <ebb9@byu.net>
23694
23695         doc: fix comments in recent patches
23696         * lib/faccessat.c: Mention correct function.
23697         * lib/fchmodat.c: Likewise.
23698         * lib/fchownat.c: Likewise.
23699         * lib/symlinkat.c: Likewise.
23700         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
23701         constants.
23702
23703         faccessat, symlinkat: continue cleanup of previous patch
23704         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
23705         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
23706         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
23707         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
23708         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
23709         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
23710         set.
23711
23712 2009-09-06  Bruno Haible  <bruno@clisp.org>
23713
23714         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
23715         (fstatat): Declare if GNULIB_FSTATAT is set.
23716         (mkdirat): Declare if GNULIB_MKDIRAT is set.
23717         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
23718         (unlinkat): Declare if GNULIB_UNLINKAT is set.
23719         * modules/fcntl-h (Files): Remove m4/openat.m4.
23720         * modules/sys_stat (Files): Remove m4/openat.m4.
23721         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
23722         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
23723         * modules/unistd (Files): Remove m4/openat.m4.
23724         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
23725         GNULIB_OPENAT.
23726         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
23727         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
23728         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
23729         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
23730         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
23731         gl_OPENAT_DEFAULTS.
23732         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
23733         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
23734         Don't require gl_OPENAT_DEFAULTS.
23735         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
23736         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
23737         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
23738         (gl_OPENAT_DEFAULTS): Remove macro.
23739
23740 2009-09-06  Bruno Haible  <bruno@clisp.org>
23741
23742         * modules/openat (configure.ac): Remove unneeded witness.
23743
23744 2009-09-06  Bruno Haible  <bruno@clisp.org>
23745
23746         Set errno to ENOSYS when a function is entirely unsupported.
23747         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
23748         EOPNOTSUPP.
23749         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
23750         * modules/chown (Depends-on): Remove errno.
23751
23752 2009-09-06  Bruno Haible  <bruno@clisp.org>
23753
23754         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
23755
23756 2009-09-06  Bruno Haible  <bruno@clisp.org>
23757
23758         * lib/sys_stat.in.h: Fix preprocessor command indentation.
23759
23760 2009-09-06  Ben Pfaff  <blp@gnu.org>
23761             Bruno Haible  <bruno@clisp.org>
23762
23763         Work around a glibc bug in strtok_r.
23764         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
23765         Undefine if UNDEFINE_STRTOK_R is set.
23766         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
23767         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23768         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
23769         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
23770         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
23771         UNDEFINE_STRTOK_R.
23772         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
23773
23774 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23775
23776         exclude: minor fix
23777         * lib/exclude.c: Include wctype.h
23778
23779 2009-09-06  Akim Demaille  <demaille@gostai.com>
23780
23781         bootstrap: improve error message
23782         * build-aux/bootstrap (find_tool): Upon failure, report the list
23783         of candidates.
23784         Honor the initial value of the envvar.
23785
23786 2009-09-05  Eric Blake  <ebb9@byu.net>
23787
23788         symlinkat: new module
23789         * modules/symlinkat: New file.
23790         * lib/symlinkat.c: Likewise.
23791         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
23792         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
23793         * modules/unistd (Makefile.am): Use them.
23794         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
23795         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
23796         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
23797         * MODULES.html.sh (File system functions): Mention module.
23798         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
23799         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23800         * modules/symlinkat-tests: New test.
23801         * tests/test-symlinkat.c: Likewise.
23802
23803         test-openat-safer: add more checks
23804         * tests/test-openat-safer.c (main): Check more code paths.
23805
23806 2009-09-05  Jim Meyering  <meyering@redhat.com>
23807
23808         syntax-check: detect unnecessary inclusion of openat.h
23809         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
23810
23811 2009-09-05  Bruno Haible  <bruno@clisp.org>
23812
23813         Support towlower, towupper.
23814         * doc/posix-functions/towlower.texi: Mention module wctype.
23815         * doc/posix-functions/towupper.texi: Likewise.
23816         * lib/wctype.in.h (towlower, towupper): New functions.
23817         * tests/test-wctype.c: Include stdio.h, stdlib.h.
23818         (ASSERT): New macro.
23819         (e): New variable.
23820         (main): Test also towlower, towupper. Test WEOF argument.
23821         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23822
23823 2009-09-05  Bruno Haible  <bruno@clisp.org>
23824
23825         Fix conversion behaviour when the input is invalid.
23826         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
23827         mark occurring in first pass of indirect conversion.
23828         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
23829         input.
23830         Found by clang's static analyzer.
23831
23832 2009-09-05  Bruno Haible  <bruno@clisp.org>
23833
23834         * tests/test-striconveh.c (main): Test indirect conversion on platforms
23835         where direct conversion is possible.
23836
23837 2009-09-04  Eric Blake  <ebb9@byu.net>
23838
23839         openat: fail with ENOENT on empty name
23840         * lib/openat-proc.c (openat_proc_name): Special-case the empty
23841         buffer.
23842
23843         link-follow: fix logic bug in prior patch
23844         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
23845         reversed sense of yes and no in prior patch.  Avoid confusing
23846         compilation failure with desired semantics.
23847
23848         link-follow: accomodate mingw and cross-compilation
23849         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
23850         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
23851         cross-compilation results to -1, to make linkat easier to
23852         implement when cross-compiling.  Trivially support mingw.
23853         * modules/link-follow (configure.ac): Call new name.
23854         * NEWS: Mention this.
23855
23856 2009-09-03  Eric Blake  <ebb9@byu.net>
23857
23858         faccessat: compile replacement
23859         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
23860         needed.
23861
23862         fts: fix compilation error
23863         * lib/fts.c (includes): Re-add "openat.h", for
23864         openat_needs_fchdir.
23865
23866         faccessat: new module
23867         * modules/faccessat: New file.
23868         * lib/faccessat.c: Likewise.
23869         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
23870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23871         * modules/unistd (Makefile.am): Use it.
23872         * lib/unistd.in.h (faccessat): Declare it.
23873         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
23874         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
23875         * MODULES.html.sh (File system functions): Mention it.
23876         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
23877         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
23878
23879         euidaccess: prefer POSIX over non-standard implementation
23880         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
23881         * lib/euidaccess.c (euidaccess): Use it if available.
23882
23883         openat: make template easier to use
23884         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
23885         AT_FUNC_F2 to be undefined.
23886         (VALIDATE_FLAG): New macro; use it to reject bad flags.
23887         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
23888         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
23889         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
23890         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
23891         Likewise.
23892         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
23893         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
23894         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
23895         Likewise.
23896
23897         openat: declare in POSIX headers
23898         * NEWS: Mention this.
23899         * modules/openat (configure.ac): Declare witnesses.
23900         (Depends-on): Add fcntl-h, sys_stat, unistd.
23901         (Include): Mention correct headers.
23902         * modules/fcntl-h (Depends-on): Add link-warning.
23903         (Files): Add openat.m4.
23904         (Makefile.am): Substitute witnesses.
23905         * modules/sys_stat (Files, Makefile.am): Likewise.
23906         * modules/unistd (Files, Makefile.am): Likewise.
23907         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
23908         (gl_OPENAT_DEFAULTS): New macro.
23909         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
23910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
23911         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
23912         (SYS_STAT_H): Remove unused variable.
23913         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
23914         * lib/fcntl--.h (includes): Remove unneeded header.
23915         * lib/openat-safer.c (includes): Likewise.
23916         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
23917         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
23918         appropriate headers.
23919         (__OPENAT_PREFIX): Delete.
23920         * lib/fcntl.in.h (openat): Provide declaration.
23921         (AT_FDCWD): Fix Solaris bug.
23922         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
23923         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
23924         * lib/fchmodat.c (includes):  Adjust to find declaration.
23925         * lib/fchownat.c (includes): Likewise.
23926         * lib/mkdirat.c (includes): Likewise.
23927         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
23928         still visible.
23929
23930 2009-09-02  Eric Blake  <ebb9@byu.net>
23931
23932         errno: use consistently
23933         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
23934         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
23935         * lib/canonicalize.c (ELOOP): Likewise.
23936         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
23937         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
23938         * lib/lchown.c (EOPNOTSUPP): Likewise.
23939         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
23940         * lib/savewd.c (ESTALE): Likewise.
23941         * lib/settime.c (ENOSYS): Likewise.
23942         * lib/utimens.c (ENOSYS): Likewise.
23943         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
23944         * lib/chdir-safer.c (ELOOP): Likewise.
23945         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
23946         * modules/c-stack (Depends-on): Add errno.
23947         * modules/canonicalize (Depends-on): Likewise.
23948         * modules/chdir-safer (Depends-on): Likewise.
23949         * modules/fdopendir (Depends-on): Likewise.
23950         * modules/inet_ntop (Depends-on): Likewise.
23951         * modules/inet_pton (Depends-on): Likewise.
23952         * modules/lchown (Depends-on): Likewise.
23953         * modules/openat (Depends-on): Likewise.
23954         * modules/savewd (Depends-on): Likewise.
23955         * modules/settime (Depends-on): Likewise.
23956         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
23957
23958         fts: avoid leaking fds
23959         * modules/fts (Depends-on): Add cloexec.
23960         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
23961         flag.
23962
23963         fts: make directory fds more robust
23964         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
23965         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
23966
23967         backupfile, chdir-long, fts, savedir: make safer
23968         * lib/backupfile.c (includes): Use "dirent--.h", since
23969         numbered_backup can write to stderr during readdir.
23970         * lib/savedir.c (includes): Likewise.
23971         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
23972         emulation can write to stderr on failure.
23973         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
23974         * lib/getcwd.c: Document why opendir_safer is unused.
23975         * lib/glob.c: Likewise.
23976         * lib/scandir.c: Likewise.
23977         * lib/openat-proc.c: Likewise, for open_safer.
23978         * modules/backupfile (Depends-on): Add dirent-safer.
23979         * modules/savedir (Depends-on): Likewise.
23980         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
23981         * modules/chdir-long (Depends-on): Add openat-safer.
23982
23983         openat-safer: new module
23984         * modules/openat-safer: New file.
23985         * lib/openat-safer.c: Likewise.
23986         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
23987         * lib/fcntl-safer.h (openat_safer): Declare.
23988         * lib/fcntl--.h (openat): Override.
23989         * MODULES.html.sh (File descriptor based I/O): Mention it.
23990         * lib/openat.h: Add double-inclusion guards.
23991         * lib/openat.c (includes): Only include "fcntl-safer.h", not
23992         "fcntl--.h", so we can implement openat.
23993         * modules/openat-safer-tests: New test.
23994         * tests/test-openat-safer.c: New file.
23995
23996         dirent-safer: new module
23997         * modules/dirent-safer: New file.
23998         * lib/dirent--.h: Likewise.
23999         * lib/dirent-safer.h: Likewise.
24000         * lib/opendir-safer.c: Likewise.
24001         * m4/dirent-safer.m4: Likewise.
24002         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
24003         * modules/dirent-safer-tests: New test.
24004         * tests/test-dirent-safer.c: New file.
24005         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
24006
24007         fdopendir: optimize on mingw
24008         * lib/unistd.in.h (_gl_directory_name): New prototype.
24009         * lib/fchdir.c (_gl_directory_name): Implement it.
24010         (fchdir): Use it to simplify implementation.
24011         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
24012         fchdir, when available, to avoid calling [f]chdir().
24013
24014         fdopendir: split into its own module
24015         * lib/openat.c (fdopendir): Move...
24016         * lib/fdopendir.c: ...into new file.
24017         * modules/fdopendir: New module.
24018         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
24019         * modules/openat (Depends-on): Add fdopendir.
24020         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
24021         fdopendir here.
24022         * modules/savedir (Depends-on): Only need fdopendir, not full
24023         openat.
24024         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
24025         * lib/openat.h (fdopendir): Drop prototype.
24026         * lib/dirent.in.h (fdopendir): Provide prototype.
24027         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
24028         * modules/dirent (Makefile.am): Substitute them.
24029         * MODULES.html.sh (File system functions): Mention it.
24030         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
24031         * modules/fdopendir-tests: New file.
24032         * tests/test-fdopendir.c: Likewise.
24033
24034         fchdir: use more consistent macro convention
24035         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
24036         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
24037         REPLACE_FCHDIR, rather than relying on config.h macros.
24038         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
24039         inside a single make-time REPLACE_FCHDIR block, rather than using
24040         the config.h FCHDIR_REPLACEMENT.
24041         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
24042         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
24043         Manage fstat replacement.
24044         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
24045         REPLACE_FCHDIR.
24046         * modules/sys_stat (Files): Add m4/unistd_h.m4.
24047         (Makefile.am): Substitute REPLACE_FCHDIR.
24048         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
24049         FCHDIR_REPLACEMENT.
24050         * lib/dup-safer.c (dup_safer): Likewise.
24051         * lib/dup2.c (rpl_dup2): Likewise.
24052         * lib/dup3.c (rpl_dup3): Likewise.
24053         * lib/open.c (rpl_open): Likewise.
24054
24055         fchdir: simplify error handling, and support dup3
24056         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
24057         stdbool, malloc-posix, realloc-posix.
24058         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
24059         (ensure_dirs_slot): Return false on allocation failure.
24060         (rpl_dup2): Delete.
24061         (_gl_register_dup): New function.
24062         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
24063         (_gl_register_fd): Close fd on allocation failure.
24064         * lib/fcntl.in.h (_gl_register_fd): Update signature.
24065         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
24066         prototype.
24067         (rpl_dup2_fchdir): Delete prototype.
24068         * lib/open.c (open): Update caller.
24069         * lib/dup2.c (dup2): Track fchdir metadata.
24070         * lib/dup3.c (dup3): Likewise.
24071         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
24072         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
24073
24074 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24075
24076         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
24077         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
24078         don't pass arguments to AC_OUTPUT.
24079
24080 2009-09-02  Bruno Haible  <bruno@clisp.org>
24081
24082         * modules/mkdtemp (License): Relicense under LGPLv2+.
24083         Reported by Paolo Bonzini.
24084
24085 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24086
24087         Replace uses of obsolete autoconf macros in Jim's modules.
24088         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
24089         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
24090         can evoke a warning from autoconf when run with -Wobsolete
24091         enabled.  They were declared obsolete for good reasons (see
24092         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
24093         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
24094         should not continue using the deprecated macros.
24095         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
24096         obsolete Autoconf macros with modern counterparts.
24097         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24098         * m4/dos.m4 (gl_AC_DOS): Likewise.
24099         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
24100         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24101         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
24102         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
24103         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
24104         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
24105         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
24106         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
24107         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
24108         Likewise.
24109         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
24110         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
24111         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
24112         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
24113         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
24114         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
24115
24116 2009-09-01  Eric Blake  <ebb9@byu.net>
24117
24118         fchdir: fix off-by-one bug in previous patch
24119         * lib/fchdir.c (rpl_fstat): Use correct bounds.
24120         (_gl_unregister_fd): Delete useless if.
24121
24122 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
24123
24124         maint.mk: sort the list of syntax-check rules
24125         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
24126         easier to get a sense of progress when the rules are run sequentially
24127         and take a long time.
24128
24129 2009-09-01  Simon Josefsson  <simon@josefsson.org>
24130
24131         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
24132         * modules/netinet_in: Likewise.
24133         * modules/sys_file: Likewise.
24134         * modules/sys_ioctl: Likewise.
24135         * modules/sys_select: Likewise.
24136         * modules/sys_socket: Likewise.
24137         * modules/sys_stat: Likewise.
24138         * modules/sys_time: Likewise.
24139         * modules/sys_times: Likewise.
24140         * modules/sys_utsname: Likewise.
24141         * modules/sys_wait: Likewise.
24142
24143 2009-09-01  Jim Meyering  <meyering@redhat.com>
24144
24145         fts: help ensure that return values are not ignored
24146         * lib/fts_.h (__GNUC_PREREQ): Define.
24147         (__attribute_warn_unused_result__): Define.
24148         (fts_children, fts_close, fts_open, fts_read): Declare with
24149         __attribute_warn_unused_result__.
24150
24151         fts: fts_close now fails also when closing a dir file descriptor fails
24152         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
24153         and propagate to caller, along with errno.
24154
24155         announce-gen: correct formatting in --help output
24156         * build-aux/announce-gen (usage): Move the one-line description in
24157         --help output "up", to where it belongs, just after Usage:.
24158
24159 2009-08-31  Eric Blake  <ebb9@byu.net>
24160
24161         fchdir: port to mingw
24162         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
24163         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
24164         opened, then use a substitute.
24165         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
24166         replacement.
24167         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
24168         (_gl_register_fd): No need to check stat if open already filters
24169         all directories.
24170         (fchdir): Fix error condition to match POSIX.
24171         * modules/fchdir (Depends-on): Add sys_stat.
24172         * doc/posix-functions/open.texi (open): Document the limitation.
24173         * modules/fchdir-tests: New file.
24174         * tests/test-fchdir.c: Likewise.
24175
24176         canonicalize: allow cross-testing from cygwin to mingw
24177         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
24178         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
24179         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
24180         Likewise.
24181         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
24182         target does not support symlinks.
24183         * tests/test-canonicalize-lgpl.sh: Likewise.
24184
24185         chown: avoid compilation warning on mingw
24186         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
24187         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
24188         mingw.
24189         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
24190         * modules/chown (Depends-on): Add errno.
24191
24192 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
24193
24194         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
24195         command.
24196
24197 2009-08-31  Jim Meyering  <meyering@redhat.com>
24198
24199         canonicalize: remove useless initialization
24200         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
24201         initialization of local, "end".
24202
24203 2009-08-30  Bruno Haible  <bruno@clisp.org>
24204
24205         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
24206         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
24207         ENOSYS.
24208
24209 2009-08-30  Bruno Haible  <bruno@clisp.org>
24210
24211         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
24212         /usr/xpg4/bin/tr when it exists.
24213         * tests/test-pipe-filter-gi1.sh: Likewise.
24214
24215 2009-08-30  Bruno Haible  <bruno@clisp.org>
24216
24217         Work around deficient /usr/bin/id program on Solaris.
24218         * tests/test-file-has-acl.sh (ID): New variable.
24219         * tests/test-set-mode-acl.sh (ID): Likewise.
24220         * tests/test-copy-acl.sh (ID): Likewise.
24221         * tests/test-copy-file.sh (ID): Likewise.
24222
24223 2009-08-30  Bruno Haible  <bruno@clisp.org>
24224
24225         New module 'xstriconveh'.
24226         * lib/xstriconveh.h: New file.
24227         * lib/xstriconveh.c: New file.
24228         * modules/xstriconveh: New file.
24229
24230 2009-08-30  Bruno Haible  <bruno@clisp.org>
24231
24232         Make it easier to use mem_cd_iconveh.
24233         * lib/striconveh.h (iconveh_t): New type.
24234         (iconveh_open, iconveh_close): New declarations.
24235         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
24236         with a single 'const iconveh_t *' argument.
24237         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
24238         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
24239         with a single 'const iconveh_t *' argument.
24240         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
24241         * tests/test-striconveh.c (main): Update.
24242         * NEWS: Mention the change.
24243
24244 2009-08-30  Bruno Haible  <bruno@clisp.org>
24245
24246         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
24247         problem.
24248
24249 2009-08-30  Bruno Haible  <bruno@clisp.org>
24250
24251         Work around iconv_open problem on Solaris.
24252         * lib/iconv_open-solaris.gperf: New file.
24253         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
24254         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
24255         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
24256         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
24257         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
24258         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
24259
24260 2009-08-29  Jim Meyering  <meyering@redhat.com>
24261
24262         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
24263         * top/maint.mk (cvs-check): Remove target; it was just an alias
24264         to the better-named vc-diff-check.
24265         (maintainer-distcheck): Remove rule.  It was used only from
24266         the (alpha/beta/major) target, and all of its commands but one
24267         were coreutils-specific.
24268         (vc-dist): Remove rule.
24269         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
24270         Run vc-diff-check, not vc-dist.
24271         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
24272
24273 2009-08-27  Bruno Haible  <bruno@clisp.org>
24274
24275         * tests/test-bitrotate.c (main): Remove test that uses a shift count
24276         of 0.
24277
24278 2009-08-27  Bruno Haible  <bruno@clisp.org>
24279
24280         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
24281         compilers.
24282         * doc/func.texi: Document the SunPRO C bug.
24283
24284 2009-08-27  Bruno Haible  <bruno@clisp.org>
24285
24286         Fix link error on Solaris.
24287         * tests/test-parse-duration.c (xstrdup): Remove function.
24288
24289 2009-08-26  Pádraig Brady  <P@draigbrady.com>
24290
24291         ignore-value: handle pointer types, too
24292         * lib/ignore-value.h (__attribute__): Remove definition.
24293         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
24294         of a more concise and more-often effective "(void) i" statement.
24295         (ignore_ptr): New function to suppress warnings from functions that
24296         return pointers, and to make it explicit that one function doesn't
24297         handle all cases.
24298
24299 2009-08-25  Bruno Haible  <bruno@clisp.org>
24300
24301         dup2: work around a Linux bug.
24302         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
24303         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
24304         * doc/posix-functions/dup2.texi: Mention the Linux bug.
24305         Reported by Simon Josefsson.
24306
24307 2009-08-25  Jim Meyering  <meyering@redhat.com>
24308
24309         libguestfs uses gnulib
24310         * users.txt: Add libguestfs.
24311
24312 2009-08-24  Eric Blake  <ebb9@byu.net>
24313
24314         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
24315         * lib/pipe2.c (includes): Add binary-io.h.
24316         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
24317
24318 2009-08-24  Bruno Haible  <bruno@clisp.org>
24319
24320         Tolerate declared but missing accept4 syscall.
24321         * lib/accept4.c (accept4): Invoke original accept4 function first, if
24322         available.
24323         * lib/sys_socket.in.h (accept4): If the function is already present,
24324         override it.
24325         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
24326         * modules/accept4 (Makefile.am): Compile accept4.c always.
24327         Reported by Paolo Bonzini and Eric Blake.
24328
24329 2009-08-23  Bruno Haible  <bruno@clisp.org>
24330
24331         New module 'accept4'.
24332         * lib/sys_socket.in.h (accept4): New declaration.
24333         * lib/accept4.c: New file.
24334         * m4/accept4.m4: New file.
24335         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24336         GNULIB_ACCEPT4, HAVE_ACCEPT4.
24337         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
24338         HAVE_ACCEPT4.
24339         * modules/accept4: New file.
24340         * doc/glibc-functions/accept4.texi: Mention the new module.
24341
24342 2009-08-24  Jim Meyering  <meyering@redhat.com>
24343
24344         progname: also set global program_invocation_name, when possible
24345         Before this change, a libtool-enabled program that calls glibc's
24346         error function would report the program name as
24347         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
24348         * modules/progname (configure.ac): Check for a declaration of
24349         program_invocation_name.
24350         * lib/progname.c:  Include <errno.h>.
24351         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
24352         Set program_invocation_name.
24353
24354 2009-08-23  Bruno Haible  <bruno@clisp.org>
24355
24356         * lib/dup3.c: Include <string.h>.
24357
24358 2009-08-23  Bruno Haible  <bruno@clisp.org>
24359
24360         * lib/dup3.c (dup3): Test only once whether the system actually exists.
24361         * lib/pipe2.c (pipe2): Likewise.
24362         Suggested by Eric Blake.
24363
24364 2009-08-23  Bruno Haible  <bruno@clisp.org>
24365
24366         Tolerate declared but missing dup3 syscall.
24367         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
24368         * lib/unistd.in.h (dup3): If the function is already present,
24369         override it.
24370         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
24371         * modules/dup3 (Makefile.am): Compile dup3.c always.
24372         Reported by Paolo Bonzini.
24373
24374 2009-08-23  Bruno Haible  <bruno@clisp.org>
24375
24376         Tolerate declared but missing pipe2 syscall.
24377         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
24378         available.
24379         * lib/unistd.in.h (pipe2): If the function is already present,
24380         override it.
24381         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
24382         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
24383         Reported by Paolo Bonzini.
24384
24385 2009-08-23  Bruno Haible  <bruno@clisp.org>
24386
24387         * lib/pipe2.c (pipe2): Move #ifs inside function.
24388
24389 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
24390
24391         quotearg: document limitations of quote_these_too
24392         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
24393         those limitations are created.
24394         * lib/quotearg.h (set_char_quoting): Document that digits and
24395         letters that are special after backslash are not permitted.
24396         (quotearg_char): Cross-reference set_char_quoting documentation.
24397
24398 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
24399
24400         quotearg: implement custom_quoting_style
24401         * lib/quotearg.c: (struct quoting_options): Add left_quote and
24402         right_quote fields.
24403         (set_custom_quoting): New public function.
24404         (quotearg_buffer_restyled): Add left_quote and right_quote
24405         arguments, handle them very much like locale quoting, and update
24406         all uses.
24407         (quotearg_n_custom): New public function.
24408         (quotearg_n_custom_mem): New public function.
24409         (quotearg_custom): New public function.
24410         (quotearg_custom_mem): New public function.
24411         * lib/quotearg.h: Prototype and document new public functions.
24412         (enum quoting_style): For escape_quoting_style and
24413         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
24414         ignored even though they're otherwise like c_quoting_style.
24415         Add custom_quoting_style member and document with comparison to
24416         clocale_quoting_style.
24417         * tests/test-quotearg.c (custom_quotes): New array.
24418         (custom_results): New array.
24419         (main): Extend to test custom quoting.
24420
24421 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
24422
24423         quotearg: fix right quote escaping when it's in quote_these_too
24424         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
24425         quote, be sure to prepend only one backslash.
24426         * tests/test-quotearg.c (use_quote_double_quotes): New function.
24427         (main): Test it.
24428
24429 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
24430
24431         quotearg-tests: test escaping of embedded locale quotes
24432         * tests/test-quotearg.c (struct result_strings): Add member for
24433         new input.
24434         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
24435         (inputs): Add new input.
24436         (results_g): Add expected results.
24437         (flag_results): Likewise.
24438         (locale_results): Likewise.
24439         (compare_strings): Check those.
24440
24441 2009-08-23  Bruno Haible  <bruno@clisp.org>
24442
24443         Tests for module 'dup3'.
24444         * modules/dup3-tests: New file.
24445         * tests/test-dup3.c: New file.
24446
24447         New module 'dup3'.
24448         * lib/unistd.in.h (dup3): New declaration.
24449         * lib/dup3.c: New file.
24450         * m4/dup3.m4: New file.
24451         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
24452         HAVE_DUP3.
24453         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
24454         * modules/dup3: New file.
24455         * doc/glibc-functions/dup3.texi: Mention the new module.
24456
24457 2009-08-23  Bruno Haible  <bruno@clisp.org>
24458
24459         Tweak the dup2 test.
24460         * tests/test-dup2.c (main): Create the test file empty. Verify that an
24461         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
24462         the test file is still empty. Fix argument order of lseek.
24463
24464 2009-08-23  Bruno Haible  <bruno@clisp.org>
24465
24466         Avoid test link errors when the modules getopt-gnu, gettext are used.
24467         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
24468         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24469
24470 2009-08-23  Bruno Haible  <bruno@clisp.org>
24471
24472         Fix getdtablesize() on mingw.
24473         * lib/getdtablesize.c (getdtablesize): Implement differently.
24474         * lib/unistd.in.h (getdtablesize): Improve comment.
24475
24476 2009-08-23  Bruno Haible  <bruno@clisp.org>
24477
24478         New module 'mkostemp'.
24479         Based on Ulrich Drepper's 2007-08-10 change in glibc.
24480         * lib/stdlib.in.h (mksotemp): New declaration.
24481         * lib/mkostemp.c: New file, from glibc with modifications.
24482         * lib/tempname.h (GT_FILE): Remove outdated comment.
24483         (gen_tempname): Add flags argument.
24484         * lib/tempname.c (__GT_BIGFILE): Remove macro.
24485         (__GT_FILE): Map to 1.
24486         (small_open, large_open): Remove macros.
24487         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
24488         * lib/mkstemp.c (mkstemp): Update.
24489         * lib/mkdtemp.c (mkdtemp): Likewise.
24490         * m4/mkostemp.m4: New file.
24491         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
24492         HAVE_MKOSTEMP.
24493         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
24494         HAVE_MKOSTEMP.
24495         * modules/mkostemp: New file, based on modules/mkstemp.
24496         * doc/glibc-functions/mkostemp.texi: Mention the new module.
24497         * NEWS: Mention the change.
24498
24499 2009-08-23  Bruno Haible  <bruno@clisp.org>
24500
24501         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
24502         Reported by Eric Blake.
24503
24504 2009-08-23  Bruno Haible  <bruno@clisp.org>
24505
24506         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
24507         Reported by Eric Blake.
24508
24509 2009-08-23  Bruno Haible  <bruno@clisp.org>
24510
24511         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
24512         * modules/pipe2 (Depends-on): Likewise.
24513
24514 2009-08-23  Eric Blake  <ebb9@byu.net>
24515
24516         fcntl-h: add O_TTY_INIT support
24517         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
24518         * tests/test-fcntl-h.c (o): Test it.
24519         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
24520
24521         fcntl-h: rename from fcntl, in preparation for fcntl(2)
24522         * modules/fcntl: Move <fcntl.h> header replacement...
24523         * modules/fcntl-h: ...to new name, so as not to collide with
24524         like-named function.
24525         * tests/test-fcntl.c: Rename...
24526         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
24527         * modules/fcntl-tests: Rename...
24528         * modules/fcntl-h-tests: ...to this.  Update test file name.
24529         * modules/chdir-long (Depends-on): Update clients.
24530         * modules/chdir-safer (Depends-on): Likewise.
24531         * modules/fcntl-safer (Depends-on): Likewise.
24532         * modules/fts (Depends-on): Likewise.
24533         * modules/mkancesdirs (Depends-on): Likewise.
24534         * modules/mkdir-p (Depends-on): Likewise.
24535         * modules/open (Depends-on): Likewise.
24536         * modules/savewd (Depends-on): Likewise.
24537         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
24538         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
24539
24540 2009-08-22  Bruno Haible  <bruno@clisp.org>
24541
24542         * modules/binary-io (License): Relicense under LGPL.
24543         * modules/pipe2 (License): Likewise.
24544
24545 2009-08-22  Bruno Haible  <bruno@clisp.org>
24546
24547         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
24548         return value.
24549         * lib/pipe-filter-gi.c (filter_init): Likewise.
24550         Reported by Eric Blake.
24551
24552 2009-08-22  Bruno Haible  <bruno@clisp.org>
24553
24554         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
24555         * modules/pipe (Depends-on): Add pipe2.
24556
24557 2009-08-22  Bruno Haible  <bruno@clisp.org>
24558
24559         Tests for module 'pipe2'.
24560         * modules/pipe2-tests: New file.
24561         * tests/test-pipe2.c: New file.
24562
24563         New module 'pipe2'.
24564         * lib/unistd.in.h (pipe2): New declaration.
24565         * lib/pipe2.c: New file.
24566         * m4/pipe2.m4: New file.
24567         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
24568         HAVE_PIPE2.
24569         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
24570         * modules/pipe2: New file.
24571         * doc/glibc-functions/pipe2.texi: Mention the new module.
24572
24573 2009-08-22  Bruno Haible  <bruno@clisp.org>
24574
24575         Reference some new glibc functions.
24576         * doc/glibc-functions/accept4.texi: New file.
24577         * doc/glibc-functions/dup3.texi: New file.
24578         * doc/glibc-functions/mkostemp.texi: New file.
24579         * doc/glibc-functions/pipe2.texi: New file.
24580         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
24581         (Glibc sys/socket.h): Refer to accept4.
24582         (Glibc unistd.h): Refer to dup3, pipe2.
24583         Reported by Eric Blake.
24584
24585 2009-08-22  Jim Meyering  <meyering@redhat.com>
24586             Bruno Haible  <bruno@clisp.org>
24587
24588         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
24589         This makes it so packages using automake-1.11's silent-rules option
24590         can print e.g., a single "GEN    configmake.h" line, rather than
24591         the 30+ statements that perform the job.  If you want to see the
24592         actual commands, you can still run "make V=1".
24593         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
24594         so that make output is abbreviated when those variables are defined
24595         appropriately.
24596         * modules/argz: Likewise.
24597         * modules/arpa_inet: Likewise.
24598         * modules/byteswap: Likewise.
24599         * modules/configmake: Likewise.
24600         * modules/dirent: Likewise.
24601         * modules/errno: Likewise.
24602         * modules/fcntl: Likewise.
24603         * modules/float: Likewise.
24604         * modules/fnmatch: Likewise.
24605         * modules/getopt-posix: Likewise.
24606         * modules/glob: Likewise.
24607         * modules/iconv_open: Likewise.
24608         * modules/inttypes: Likewise.
24609         * modules/localcharset: Likewise.
24610         * modules/locale: Likewise.
24611         * modules/math: Likewise.
24612         * modules/netdb: Likewise.
24613         * modules/netinet_in: Likewise.
24614         * modules/poll: Likewise.
24615         * modules/posix_spawnp-tests: Likewise.
24616         * modules/sched: Likewise.
24617         * modules/search: Likewise.
24618         * modules/selinux-h: Likewise.
24619         * modules/signal: Likewise.
24620         * modules/spawn: Likewise.
24621         * modules/stdarg: Likewise.
24622         * modules/stdbool: Likewise.
24623         * modules/stddef: Likewise.
24624         * modules/stdint: Likewise.
24625         * modules/stdio: Likewise.
24626         * modules/stdlib: Likewise.
24627         * modules/string: Likewise.
24628         * modules/strings: Likewise.
24629         * modules/sys_file: Likewise.
24630         * modules/sys_ioctl: Likewise.
24631         * modules/sys_select: Likewise.
24632         * modules/sys_socket: Likewise.
24633         * modules/sys_stat: Likewise.
24634         * modules/sys_time: Likewise.
24635         * modules/sys_times: Likewise.
24636         * modules/sys_utsname: Likewise.
24637         * modules/sys_wait: Likewise.
24638         * modules/sysexits: Likewise.
24639         * modules/time: Likewise.
24640         * modules/unistd: Likewise.
24641         * modules/wchar: Likewise.
24642         * modules/wctype: Likewise.
24643
24644 2009-08-22  Jim Meyering  <meyering@redhat.com>
24645
24646         announce-gen: detect write failure
24647         * build-aux/announce-gen: Add Coda at end.
24648         Remove equivalent-but-more-verbose block at top.
24649
24650 2009-08-19  Akim Demaille  <demaille@gostai.com>
24651
24652         bootstrap: --help to stdout.
24653         * bootstrap (usage): Don't send --help to stderr.
24654         Use a here doc instead of a long string.
24655
24656 2009-08-21  Eric Blake  <ebb9@byu.net>
24657
24658         test-popen-safer: split from test-popen
24659         * tests/test-popen.c (main): Move...
24660         * tests/test-popen.h: ...into new file.
24661         * tests/test-popen-safer2.c: New file.
24662         * modules/popen-tests (Files): Add test-popen.h.
24663         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
24664         Suggested by Bruno Haible.
24665
24666         test-fcntl-safer: split from test-open
24667         * tests/test-open.c (main): Move...
24668         * tests/test-open.h: ...into new file.
24669         * tests/test-fcntl-safer.c: New file.
24670         * modules/open-tests (Files): Add test-open.h.
24671         * modules/fcntl-safer-tests: New file.
24672         Suggested by Bruno Haible.
24673
24674         test-fopen-safer: split from test-fopen
24675         * tests/test-fopen.c (main): Move...
24676         * tests/test-fopen.h: ...into new file.
24677         * tests/test-fopen-safer.c: New file.
24678         * modules/fopen-tests (Files): Add test-fopen.h.
24679         * modules/fopen-safer-tests: New file.
24680         Suggested by Bruno Haible.
24681
24682 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
24683
24684         popen-safer: test O_CLOEXEC at run-time.
24685         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
24686
24687 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
24688
24689         fcntl: move more flags to the header
24690         * lib/cloexec.c: Do not define FD_CLOEXEC here.
24691         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
24692         * lib/fcntl.in.h: Do both things here.
24693
24694 2009-08-21  Jim Meyering  <meyering@redhat.com>
24695
24696         consistently remove $@-t before redirecting to it
24697         * modules/argz: Remove $@-t and $@ before redirecting to the former.
24698         * modules/alloca-opt: Likewise.
24699         * modules/byteswap: Likewise.
24700         * modules/fnmatch: Likewise.
24701         * modules/getopt-posix: Likewise.
24702         * modules/glob: Likewise.
24703         * modules/poll: Likewise.
24704         * modules/posix_spawnp-tests: Likewise.
24705         * modules/sys_socket: Likewise.
24706         * modules/sysexits: Likewise.
24707
24708 2009-08-21  Eric Blake  <ebb9@byu.net>
24709
24710         popen: simplify access to original popen
24711         * lib/popen.c (rpl_popen): No need to worry about popen being a
24712         macro.
24713         Reported by Bruno Haible.
24714
24715 2009-08-20  Eric Blake  <ebb9@byu.net>
24716
24717         build: avoid some compiler warnings
24718         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
24719         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
24720         type.
24721         (new_exclude_segment, excluded_file_pattern_p)
24722         (excluded_file_name_p): Reduce scope.
24723         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
24724         old-style declaration.
24725
24726 2009-08-20  Simon Josefsson  <simon@josefsson.org>
24727
24728         * tests/test-exclude1.sh: Handle Windows EOL.
24729         * tests/test-exclude2.sh: Likewise.
24730         * tests/test-exclude3.sh: Likewise.
24731         * tests/test-exclude4.sh: Likewise.
24732         * tests/test-exclude5.sh: Likewise.
24733         * tests/test-exclude6.sh: Likewise.
24734         * tests/test-exclude7.sh: Likewise.
24735
24736 2009-08-19  Akim Demaille  <demaille@gostai.com>
24737
24738         bootstrap: find sha1sum when named gsha1sum.
24739         * bootstrap (find_tool): New.
24740         ($SHA1SUM): New.
24741         Use it.
24742
24743 2009-08-20  Jim Meyering  <meyering@redhat.com>
24744
24745         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
24746         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
24747         expression that converts "." in a file name to "\." in the resulting
24748         regexp.  Start with a dummy statement, so that prior shell variable
24749         definitions are expanded portably.  Reported by Simon Josefsson.
24750
24751 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
24752
24753         Fix polling for writeability of a screen buffer.
24754         * lib/poll.c: Distinguish input and screen buffers for the
24755         Win32 implementation.
24756         * lib/select.c: Likewise.
24757
24758 2009-08-19  Eric Blake  <ebb9@byu.net>
24759
24760         popen-safer: prevent popen from clobbering std descriptors
24761         * modules/popen-safer: New file.
24762         * lib/popen-safer.c: Likewise.
24763         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
24764         * lib/stdio--.h (popen): Provide override.
24765         * lib/stdio-safer.h (popen_safer): Provide declaration.
24766         * tests/test-popen.c (includes): Partially test this.
24767         * modules/popen-safer-tests: New file, for more tests.
24768         * tests/test-popen-safer.c: Likewise.
24769         * MODULES.html.sh (file stream based Input/Output): Mention it.
24770
24771         tests: test some of the *-safer modules
24772         * modules/fopen-safer (Depends-on): Add fopen.
24773         * modules/fcntl-safer (Depends-on): Add fcntl.
24774         * modules/stdlib-safer (Depends-on): Add stdlib.
24775         (configure.ac): Set indicator.
24776         * modules/unistd-safer (configure.ac): Likewise.
24777         * modules/tmpfile-safer (configure.ac): Likewise.
24778         (Depends-on): Add tmpfile.
24779         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
24780         active.
24781         * tests/test-fopen.c (includes): Test safer versions when they are
24782         in use.
24783         * tests/test-open.c (includes): Likewise.
24784
24785         popen: fix cygwin 1.5 bug when stdin closed
24786         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
24787         * modules/popen: New file.
24788         * modules/popen-tests: Likewise.
24789         * tests/test-popen.c: Likewise.
24790         * m4/popen.m4: Likewise.
24791         * lib/popen.c: Likewise.
24792         * lib/stdio.in.h (popen): New declaration.
24793         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
24794         * modules/stdio (Makefile.am): Likewise.
24795         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
24796
24797 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
24798
24799         maint.mk: give full control over update-copyright exclusions
24800         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
24801         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
24802         (update-copyright): Don't force inclusion of top-level
24803         ChangeLog.  Don't force exclusion of all COPYING files, but make
24804         them the default exclusion instead.
24805
24806 2009-08-16  Bruno Haible  <bruno@clisp.org>
24807
24808         Fix test failures on Solaris 10.
24809         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
24810         tests when Solaris iconv() is used.
24811         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
24812         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
24813         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
24814         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
24815         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
24816
24817 2009-08-16  Bruno Haible  <bruno@clisp.org>
24818
24819         Fix test failures on Solaris 10.
24820         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
24821         'tr' program and pass it as first argument.
24822         * tests/test-pipe-filter-gi1.sh: Likewise.
24823         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
24824         program as first argument.
24825         * tests/test-pipe-filter-gi1.c (main): Likewise.
24826
24827 2009-08-16  Eric Blake  <ebb9@byu.net>
24828
24829         fpurge: fix previous commits
24830         * modules/fpurge (Makefile.am): Make replacement conditional,
24831         partially reverting 2007-04-29 change; missed in previous
24832         attempt.
24833         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
24834         is missing.
24835
24836 2009-08-16  Bruno Haible  <bruno@clisp.org>
24837
24838         Clarify fpurge's effect on the file position.
24839         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
24840         * tests/test-fpurge.c (main): Make a second pass for checking the file
24841         position.
24842
24843 2009-08-16  Bruno Haible  <bruno@clisp.org>
24844
24845         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
24846         declaration of fpurge is missing.
24847         * tests/test-fpurge.c (main): Check that the file has not more contents
24848         than expected. Close the file before removing it.
24849
24850 2009-08-15  Eric Blake  <ebb9@byu.net>
24851
24852         fpurge: don't wrap working cygwin implementation
24853         * lib/fpurge.c (fpurge): Fix comment typo.
24854         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
24855         1.7 to avoid replacement.
24856         * tests/test-fpurge.c (main): Enhance test.
24857
24858 2009-08-15  Eric Blake  <ebb9@byu.net>
24859         and Jim Meyering  <meyering@redhat.com>
24860
24861         test-update-copyright: skip if perl is insufficient
24862         * tests/test-update-copyright.sh: Failure to run maintainer tool
24863         should not cause testsuite failure on cygwin 1.5.
24864
24865 2009-08-14  Eric Blake  <ebb9@byu.net>
24866
24867         doc: mention more functions added in cygwin 1.7.0
24868         * doc/posix-headers/limits.texi (limits.h): Update for recent
24869         cygwin additions.
24870         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
24871         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
24872         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
24873         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
24874         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
24875
24876 2009-08-14  Eric Blake  <ebb9@byu.net>
24877
24878         maint.mk: simplify update-copyright rule
24879         * top/maint.mk (update-copyright-local): Delete, and document how
24880         to do it in cfg.mk instead.
24881         (update-copyright-exclude-regexp): Delete, and document how to do
24882         it in .x-update-copyright instead.
24883         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
24884         exclude ChangeLog.
24885
24886 2009-08-14  Bruno Haible  <bruno@clisp.org>
24887
24888         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
24889
24890 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
24891
24892         maint.mk: support update-copyright-env
24893         * top/maint.mk (update-copyright-env): Define place-holder.
24894         (update-copyright): Expand $(update-copyright-env) before
24895         invoking update-copyright.
24896
24897 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
24898
24899         update-copyright: implement forced reformatting
24900         * build-aux/update-copyright: Implement and document
24901         UPDATE_COPYRIGHT_FORCE.
24902         * tests/test-update-copyright.sh: Test it.
24903
24904 2009-08-14  Eric Blake  <ebb9@byu.net>
24905         and Bruno Haible  <bruno@clisp.org>
24906
24907         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
24908         * tests/test-locale.c: Revert previous patch related to NULL.
24909         * tests/test-stdio.c: Likewise.
24910         * tests/test-stdlib.c: Likewise.
24911         * tests/test-string.c: Likewise.
24912         * tests/test-unistd.c: Likewise.
24913         * modules/time-tests (Depends-on): Add verify.
24914         * modules/wchar-tests (Depends-on): Likewise.
24915         * tests/test-time.c: Test for NULL compliance.
24916         * tests/test-wchar.c: Likewise.
24917         * modules/locale (Depends-on): Add stddef.
24918         * modules/stdio (Depends-on): Likewise.
24919         * modules/stdlib (Depends-on): Likewise.
24920         * modules/string (Depends-on): Likewise.
24921         * modules/time (Depends-on): Likewise.
24922         * modules/unistd (Depends-on): Likewise.
24923         * modules/wchar (Depends-on): Likewise.
24924         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
24925         * lib/stdlib.in.h (includes): Likewise.
24926         * lib/string.in.h (includes): Likewise.
24927         * lib/time.in.h (includes): Likewise.
24928         * lib/unistd.in.h (includes): Likewise.
24929         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
24930         replaced.
24931         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24932         * m4/stddef_h.m4: New file.
24933         * modules/stddef: Likewise.
24934         * lib/stddef.in.h: Likewise.
24935         * modules/stddef-tests: Likewise.
24936         * tests/test-stddef.c: Likewise.
24937         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
24938         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
24939         * doc/posix-headers/locale.texi (locale.h): Likewise.
24940         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
24941         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
24942         * doc/posix-headers/string.texi (string.h): Likewise.
24943         * doc/posix-headers/time.texi (time.h): Likewise.
24944         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
24945         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
24946
24947 2009-08-14  Eric Blake  <ebb9@byu.net>
24948
24949         doc: improve git diff of texinfo files
24950         * .gitattributes: Add rule for *.texi files, with hint on how to
24951         use it.
24952         Copied from m4, and based on a report by Bruno Haible.
24953
24954 2009-08-14  Bruno Haible  <bruno@clisp.org>
24955
24956         Disable multithread support by default on Cygwin 1.5.x for real.
24957         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
24958
24959 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
24960
24961         update-copyright: much ado about intervals
24962         * build-aux/update-copyright: Implement and document
24963         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
24964         of copyright year intervals.
24965         Also, document UPDATE_COPYRIGHT_YEAR.
24966         * tests/test-update-copyright.sh: Test it.
24967
24968         update-copyright: convert 2-digit to 4-digit years
24969         * build-aux/update-copyright: Implement and document.
24970         * tests/test-update-copyright.sh: Update.
24971
24972 2009-08-14  Jim Meyering  <meyering@redhat.com>
24973
24974         test-exclude: avoid coreutils "make check" failure
24975         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
24976         just as in test-argmatch.c.
24977
24978 2009-08-13  Eric Blake  <ebb9@byu.net>
24979
24980         test-dup2: fix bad assumption
24981         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
24982         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
24983
24984         test-version-etc: fix CRLF portability issue
24985         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
24986         recognize \r.
24987         * tests/test-argp-version-etc-1.sh: Likewise.
24988
24989         getopt: update client modules
24990         * modules/argp (Depends-on): Use getopt-gnu.
24991         * modules/git-merge-changelog (Depends-on): Likewise.
24992         * modules/long-options (Depends-on): Likewise.
24993         * modules/xstrtol (Depends-on): Likewise.
24994
24995 2009-08-13  Simon Josefsson  <simon@josefsson.org>
24996
24997         * tests/test-version-etc.sh: Don't fail on different
24998         project/version.  Don't fail on CRLF differences.  Rewrite to use
24999         multiple -e instead of multiple sed forks, suggested by Eric Blake
25000         <ebb9@byu.net>.
25001         * tests/test-argp-version-etc-1.sh: Likewise.
25002
25003 2009-08-13  Simon Josefsson  <simon@josefsson.org>
25004
25005         * tests/test-version-etc.sh: Don't fail on different
25006         project/version.
25007
25008 2009-08-12  Bruno Haible  <bruno@clisp.org>
25009
25010         Tests for modules 'getopt-posix', 'getopt-gnu'.
25011         * modules/getopt-posix-tests: New file.
25012         * tests/test-getopt.c: New file.
25013         * tests/test-getopt.h: New file.
25014         * tests/test-getopt_long.h: New file.
25015
25016         New modules 'getopt-posix', 'getopt-gnu'.
25017         * modules/getopt-gnu: New file, renamed from modules/getopt.
25018         * modules/getopt-posix: New file.
25019         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
25020         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
25021         (gl_GETOPT): Remove macro.
25022         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
25023         Disable the test against BSD systems that declare optreset. Test
25024         against mingw bug. Test against lack of support of optional arguments
25025         on many platforms.
25026         * doc/glibc-headers/getopt.texi: Update module name and list of
25027         relevant platforms.
25028         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
25029         'getopt-gnu' and more portability problems.
25030         * NEWS: Mention the changes.
25031
25032 2009-08-12  Bruno Haible  <bruno@clisp.org>
25033
25034         Ensure that optarg etc. get declared by <unistd.h>.
25035         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
25036         AC_USE_SYSTEM_EXTENSIONS.
25037         * modules/getopt (Depends-on): Add 'extensions'.
25038
25039 2009-08-12  Bruno Haible  <bruno@clisp.org>
25040
25041         Avoid test link errors.
25042         * modules/pipe-filter-ii-tests (Makefile.am): Define
25043         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
25044         * modules/pipe-filter-gi-tests (Makefile.am): Define
25045         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
25046         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25047
25048 2009-08-12  Bruno Haible  <bruno@clisp.org>
25049
25050         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
25051         gl_GETOPT_SUBSTITUTE before.
25052         (gl_GETOPT): Use it.
25053         * m4/argp.m4 (gl_ARGP): Update.
25054         Reported by Sergey Poznyakoff.
25055
25056         * m4/getopt.m4: Reorder macros.
25057         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
25058         (gl_GETOPT_SUBSTITUTE): Remove macro.
25059
25060 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25061
25062         Minor improvement in gitlog-to-changelog
25063
25064         * build-aux/gitlog-to-changelog: New option `--format' makes
25065         output format string configurable.
25066
25067 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25068
25069         Optimize exclude: use hash tables for non-wildcard patterns.
25070
25071         * lib/exclude.c: Include hash.h and mbuiter.h
25072         (struct exclude_pattern, exclude_segment): New data types.
25073         (struct exclude): Rewrite.
25074         (fnmatch_pattern_has_wildcards): New function.
25075         (new_exclude_segment, free_exclude_segment): New functions.
25076         (excluded_file_pattern_p, excluded_file_name_p): New functions.
25077         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
25078         * lib/exclude.h (is_fnmatch_pattern): New prototype.
25079         * modules/exclude: Depend on hash and mbuiter.
25080
25081         * modules/exclude-tests: New file.
25082         * tests/test-exclude.c: New file.
25083         * tests/test-exclude1.sh: New file.
25084         * tests/test-exclude2.sh: New file.
25085         * tests/test-exclude3.sh: New file.
25086         * tests/test-exclude4.sh: New file.
25087         * tests/test-exclude5.sh: New file.
25088         * tests/test-exclude6.sh: New file.
25089         * tests/test-exclude7.sh: New file.
25090
25091 2009-08-12  Bruno Haible  <bruno@clisp.org>
25092
25093         Ensure that getopt() gets declared by <unistd.h>.
25094         * lib/unistd.in.h: Conditionally include getopt.h.
25095         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
25096         Set GNULIB_UNISTD_H_GETOPT.
25097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25098         GNULIB_UNISTD_H_GETOPT.
25099         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
25100
25101 2009-08-12  Bruno Haible  <bruno@clisp.org>
25102
25103         Clarify logic.
25104         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
25105         gl_replace_getopt instead of GETOPT_H.
25106
25107 2009-08-12  Bruno Haible  <bruno@clisp.org>
25108
25109         * m4/getopt.m4: Add comments.
25110
25111 2009-08-12  Bruno Haible  <bruno@clisp.org>
25112
25113         Disable multithread support by default on Cygwin 1.5.x.
25114         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
25115         set gl_use_threads=no if not specified otherwise.
25116
25117 2009-08-11  Bruno Haible  <bruno@clisp.org>
25118
25119         Avoid compilation error on NetBSD 5.0.
25120         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
25121         * tests/test-stdio.c: Likewise.
25122         * tests/test-stdlib.c: Likewise.
25123         * tests/test-string.c: Likewise.
25124         * tests/test-unistd.c: Likewise.
25125         Reported by Greg Troxel <gdt@ir.bbn.com>
25126         at <https://savannah.gnu.org/support/?106973>.
25127
25128 2009-08-11  Bruno Haible  <bruno@clisp.org>
25129
25130         * modules/dup2-tests (Depends-on): Remove close.
25131
25132         Undo 2009-07-19 commit.
25133         * modules/acl-tests (Depends-on): Remove close.
25134         * modules/binary-io-tests (Depends-on): Likewise.
25135         * modules/closein-tests (Depends-on): Likewise.
25136         * modules/flock-tests (Depends-on): Likewise.
25137         * modules/fsync-tests (Depends-on): Likewise.
25138         * modules/lseek-tests (Depends-on): Likewise.
25139         * modules/pipe-tests (Depends-on): Likewise.
25140         * modules/posix_spawn-tests (Depends-on): Likewise.
25141         * modules/posix_spawnp-tests (Depends-on): Likewise.
25142         * modules/stat-time-tests (Depends-on): Likewise.
25143         * modules/yesno-tests (Depends-on): Likewise.
25144
25145 2009-08-10  Bruno Haible  <bruno@clisp.org>
25146
25147         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
25148
25149 2009-08-10  Bruno Haible  <bruno@clisp.org>
25150
25151         Fix a gcc warning.
25152         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
25153
25154 2009-08-10  Bruno Haible  <bruno@clisp.org>
25155
25156         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
25157         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
25158         not only the first time.
25159         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
25160         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
25161         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
25162         is 1, not only the the first time.
25163
25164 2009-08-10  Bruno Haible  <bruno@clisp.org>
25165
25166         Make it possible to use module 'gethostname' without module 'close'.
25167         * lib/unistd.in.h (close): Evoke a link error only if
25168         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
25169         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25170         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25171         * modules/unistd (Makefile.am): Substitute
25172         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25173         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
25174         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
25175         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25176         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25177         * modules/sys_ioctl (Makefile.am): Substitute
25178         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25179         * modules/socket (configure.ac): On native Windows, set
25180         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
25181         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25182         Reported by Sam Steingold <sds@gnu.org>.
25183
25184 2009-08-10  Bruno Haible  <bruno@clisp.org>
25185
25186         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
25187         * modules/ioctl (configure.ac): Likewise.
25188
25189 2009-08-10  Bruno Haible  <bruno@clisp.org>
25190
25191         Avoid collision between gnulib wrapper and libintl wrapper.
25192         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
25193         already defined in intl/printf.c.
25194         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
25195         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
25196
25197 2009-08-09  Bruno Haible  <bruno@clisp.org>
25198
25199         Make <sys/select.h> really self-contained, also on Solaris 10.
25200         * lib/sys_select.in.h: Include <string.h>.
25201         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
25202         Solaris 10 problem.
25203         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
25204         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
25205         Reported by Jim Meyering.
25206
25207 2009-08-09  Bruno Haible  <bruno@clisp.org>
25208
25209         Avoid warnings from 'aclocal' that are due to a use of macro name
25210         AM_XGETTEXT_OPTION that is not defined in automake.
25211         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
25212         automake.
25213         * modules/error (configure.ac): Likewise.
25214         * modules/propername (configure.ac): Likewise.
25215         * modules/vasprintf (configure.ac): Likewise.
25216         * modules/verror (configure.ac): Likewise.
25217         * modules/xprintf (configure.ac): Likewise.
25218         * modules/xvasprintf (configure.ac): Likewise.
25219
25220 2009-08-08  Bruno Haible  <bruno@clisp.org>
25221
25222         Avoid compilation error in C++ mode.
25223         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
25224         Reported by Sam Steingold <sds@gnu.org>.
25225
25226 2009-08-08  Bruno Haible  <bruno@clisp.org>
25227
25228         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
25229         for the various Unix platforms.
25230         * doc/posix-headers/limits.texi: Update platforms list regarding
25231         HOST_NAME_MAX.
25232         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25233
25234 2009-08-07  Jim Meyering  <meyering@redhat.com>
25235
25236         selinux-at: fix typo in a comment
25237         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
25238         Spotted by Paolo Bonzini.
25239
25240         selinux-at: remove redundant m4 code, add documentation
25241         * modules/selinux-at (configure.ac): Remove redundant code.
25242         LIB_SELINUX is already set via the dependent module, selinux-h.
25243         (Include): Add quotes around selinux-at.h.
25244         * lib/selinux-at.h: Add documentation.
25245         Reported by Bruno Haible in
25246         http://marc.info/?l=gnulib-bug&m=124958988300749
25247
25248 2009-08-07  Bruno Haible  <bruno@clisp.org>
25249
25250         Avoid link error on MacOS X 10.3 and 10.4.
25251         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
25252         on non-ELF systems.
25253         * lib/argp-pv.c (argp_program_version): Likewise.
25254         Reported by Simon Josefsson.
25255
25256 2009-08-07  Simon Josefsson  <simon@josefsson.org>
25257
25258         * tests/test-version-etc.sh: Use $EXEEXT.
25259
25260 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
25261
25262         update-copyright: update documentation to point to maint.mk
25263         * build-aux/update-copyright: Here.
25264
25265 2009-08-06  Jim Meyering  <meyering@redhat.com>
25266
25267         maint.mk: support update-copyright-local
25268         * top/maint.mk (update-copyright-local): Define place-holder.
25269         (update-copyright): Depend on $(update-copyright-local).
25270
25271 2009-08-06  Jim Meyering  <meyering@redhat.com>
25272
25273         selinux-at: new module
25274         Initially written for coreutils, this module will soon be
25275         used by findutils, too.
25276         * MODULES.html.sh [Misc]: Add selinux-at.
25277         * lib/selinux-at.h: New file, from coreutils.
25278         * lib/selinux-at.c: Likewise.
25279         * modules/selinux-at: Likewise.
25280         (License): Change from LGPL to GPL, since it depends
25281         on the GPL'd openat module.
25282
25283         doc: update README
25284         * README: Remove references to cogito.
25285         Remove cvs-repo-updating instructions from 2007.
25286         Don't imply that CVS is better if you have limited disk space.
25287
25288 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25289
25290         update-copyright: support C-style comments
25291         * build-aux/update-copyright: Implement and document.
25292         * tests/test-update-copyright.sh: Test.
25293
25294 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25295
25296         update-copyright: support omitted "(C)"
25297         * build-aux/update-copyright: Implement and document.  Also,
25298         allow variable whitespace before "(C)".
25299         * tests/test-update-copyright.sh: Test.
25300
25301 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25302
25303         update-copyright: don't trip on non-FSF copyright statements
25304         * build-aux/update-copyright: Fix so that the first correctly
25305         formatted FSF copyright statement is recognized no matter what
25306         appears before it.  Update documentation.
25307         * tests/test-update-copyright.sh: Test that.
25308
25309 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25310
25311         update-copyright: clean up code a little
25312         * build-aux/update-copyright: Append "_re" to the name of any
25313         variable holding a regular expression.
25314         Replace "old" and "new" with "stmt" in variable names.
25315         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
25316         handled correctly.
25317         Format code more consistently.
25318
25319 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25320
25321         update-copyright-tests: improve portability
25322         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
25323         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
25324
25325 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
25326
25327         update-copyright: support @copyright{} and &copy;
25328         * build-aux/update-copyright: Implement and document.
25329         * tests/test-update-copyright.sh: Test.
25330
25331 2009-08-04  Jim Meyering  <meyering@redhat.com>
25332
25333         update-copyright-tests: correctly test EOL=\r\n handling
25334         * tests/test-update-copyright.sh: Put \r at the end of some lines
25335         for the dos-eol tests.  Based on a patch by Joel E. Denny.
25336
25337         maint.mk: make update-copyright exclusion list more configurable
25338         * top/maint.mk (update-copyright): Default to excluding COPYING,
25339         but allow an override, in case someone does want to update that file.
25340
25341         maint.mk: don't update copyright date in COPYING
25342         * top/maint.mk (update-copyright): Exclude COPYING.
25343
25344         maint.mk: add a copyright-updating rule
25345         * top/maint.mk (update-copyright): New rule.
25346         Derived from coreutils/Makefile.am.
25347
25348         update-copyright: rename some variables
25349         * build-aux/update-copyright: Rename a few variables for clarity.
25350         Tweak syntax.  List Joel E. Denny as coauthor.
25351
25352 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
25353
25354         update-copyright: fix bug for 2-digit last year and add tests
25355         * build-aux/update-copyright: Fix bug.
25356         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
25357         specified.
25358         * modules/update-copyright-tests: New
25359         * tests/test-update-copyright.sh: New.
25360
25361 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
25362
25363         update-copyright: handle leading tabs in line prefix
25364         * build-aux/update-copyright: Count leading tabs as 8 spaces
25365         when computing margin.  This helps with the formatting of
25366         ChangeLogs, for example.
25367         Fix documentation a little.
25368
25369 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
25370
25371         update-copyright: support EOL=\r\n
25372         * build-aux/update-copyright: Implement that.
25373
25374 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
25375
25376         update-copyright: automatically format copyright statements
25377         * build-aux/update-copyright: Implement that.
25378         Also, be a little more predictable and safer by always failing
25379         when the full copyright format is not perfectly recognized as an
25380         unbroken whole.  Discussed at
25381         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
25382         Rewrite documentation.
25383
25384 2009-08-03  Bruno Haible  <bruno@clisp.org>
25385
25386         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
25387
25388 2009-08-02  Bruno Haible  <bruno@clisp.org>
25389
25390         Tests for module 'uname'.
25391         * modules/uname-tests: New file.
25392         * tests/test-uname.c: New file.
25393
25394         New module 'uname'.
25395         * lib/uname.c: New file.
25396         * m4/uname.m4: New file.
25397         * modules/uname: New file.
25398         * doc/posix-functions/uname.texi: Mention the new module.
25399
25400 2009-08-02  Bruno Haible  <bruno@clisp.org>
25401
25402         Tests for module 'sys_utsname'.
25403         * modules/sys_utsname-tests: New file.
25404         * tests/test-sys_utsname.c: New file.
25405
25406         New module 'sys_utsname'.
25407         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
25408         * m4/sys_utsname_h.m4: New file.
25409         * modules/sys_utsname: New file.
25410         * doc/posix-headers/sys_utsname.texi: Mention the new module.
25411
25412 2009-08-02  Bruno Haible  <bruno@clisp.org>
25413
25414         Implicitly initialize the sockets library.
25415         * lib/gethostname.c: Include sockets.h.
25416         (rpl_gethostname): Invoke gl_sockets_startup.
25417         * lib/socket.c: Include sockets.h.
25418         (rpl_socket): Invoke gl_sockets_startup.
25419         * modules/gethostname (Depends-on): Add sockets.
25420         * modules/socket (Depends-on): Likewise.
25421         * tests/test-poll.c: Don't include sockets.h.
25422         (main): Don't invoke gl_sockets_startup.
25423         * tests/test-select.c: Don't include sockets.h.
25424         (main): Don't invoke gl_sockets_startup.
25425
25426 2009-08-02  Bruno Haible  <bruno@clisp.org>
25427
25428         Allow multiple calls to gl_sockets_startup.
25429         * lib/sockets.c (initialized_sockets_version): New variable.
25430         (gl_sockets_startup): Do nothing if already called for this or a higher
25431         version.
25432         (gl_sockets_cleanup): Reset initialized_sockets_version.
25433
25434 2009-08-03  Simon Josefsson  <simon@josefsson.org>
25435
25436         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
25437         different project/version.
25438
25439 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
25440             Bruno Haible  <bruno@clisp.org>
25441
25442         Tests for module 'pipe-filter-gi'.
25443         * modules/pipe-filter-gi-tests: New file.
25444         * tests/test-pipe-filter-gi1.sh: New file.
25445         * tests/test-pipe-filter-gi1.c: New file.
25446         * tests/test-pipe-filter-gi2.sh: New file.
25447         * tests/test-pipe-filter-gi2-main.c: New file.
25448         * tests/test-pipe-filter-gi2-child.c: New file.
25449
25450         New module 'pipe-filter-gi'.
25451         * lib/pipe-filter-gi.c: New file.
25452         * modules/pipe-filter-gi: New file.
25453
25454 2009-08-02  Bruno Haible  <bruno@clisp.org>
25455             Paolo Bonzini  <bonzini@gnu.org>
25456
25457         Tests for module 'pipe-filter-ii'.
25458         * modules/pipe-filter-ii-tests: New file.
25459         * tests/test-pipe-filter-ii1.sh: New file.
25460         * tests/test-pipe-filter-ii1.c: New file.
25461         * tests/test-pipe-filter-ii2.sh: New file.
25462         * tests/test-pipe-filter-ii2-main.c: New file.
25463         * tests/test-pipe-filter-ii2-child.c: New file.
25464
25465         New module 'pipe-filter-ii'.
25466         * lib/pipe-filter.h: New file.
25467         * lib/pipe-filter-ii.c: New file.
25468         * lib/pipe-filter-aux.h: New file.
25469         * modules/pipe-filter-ii: New file.
25470
25471 2009-08-02  Simon Josefsson  <simon@josefsson.org>
25472
25473         * lib/gc-libgcrypt.c: Change copyright to FSF.
25474         * lib/gc-gnulib.c: Likewise.
25475
25476 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
25477
25478         * lib/gethostname.c: Include limits.h.
25479
25480 2009-08-02  Simon Josefsson  <simon@josefsson.org>
25481             Bruno Haible  <bruno@clisp.org>
25482
25483         Ensure HOST_NAME_MAX as part of the gethostname module.
25484         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
25485         define also HOST_NAME_MAX.
25486         * tests/test-gethostname.c: Include <limits.h>.
25487         (main): Check also HOST_NAME_MAX.
25488         * doc/posix-headers/limits.texi: Document the mingw problem.
25489
25490 2009-08-02  Bruno Haible  <bruno@clisp.org>
25491
25492         * lib/gethostname.c (gethostname): Fix handling of large len argument.
25493         Add comments.
25494
25495 2009-03-31  Simon Josefsson  <simon@josefsson.org>
25496
25497         * lib/gethostname.c: Add Windows wrapper.
25498         * m4/gethostname.m4: Look for gethostname in -lws2_32.
25499         * modules/gethostname: Depend on sys_socket & errno, for also
25500         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
25501         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
25502
25503 2009-07-31  Jim Meyering  <meyering@redhat.com>
25504
25505         getloadavg: fix symbol name in comment
25506         * lib/getloadavg.c: Correct a typo I introduced when adding
25507         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
25508         Matt Kraai spotted the problem.
25509
25510 2009-07-29  Matt Kraai  <mkraai@beckman.com>
25511
25512         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
25513         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
25514         code also if ! defined N_NAME_POINTER.
25515         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
25516         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
25517         but the n_name member is a 12-byte array.
25518
25519 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
25520
25521         update-copyright: generalize comment handling
25522         * build-aux/update-copyright: Handle copyright statements
25523         within more comment styles.
25524         Document usage.
25525         Report any file with an external copyright holder or parse failure.
25526
25527 2009-07-29  Jim Meyering  <meyering@redhat.com>
25528
25529         mktime: correct setting of REPLACE_MKTIME
25530         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
25531
25532         update-copyright: new module
25533         * modules/update-copyright: New file.
25534         * build-aux/update-copyright: New file.
25535         * MODULES.html.sh (maint+release support): Add update-copyright.
25536
25537 2009-07-27  Bruno Haible  <bruno@clisp.org>
25538
25539         Fix compilation error when <ctime> is used and mktime is replaced.
25540         * lib/time.in.h (mktime): New declaration.
25541         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
25542         REPLACE_MKTIME instead of defining mktime in config.h.
25543         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
25544         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
25545         Reported by Ross McFarland <rwmcfa1@neces.com>.
25546
25547 2009-07-27  Bruno Haible  <bruno@clisp.org>
25548
25549         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
25550         Reported by Matt Kraai <mkraai@beckman.com>.
25551
25552 2009-07-25  Jim Meyering  <meyering@redhat.com>
25553
25554         maint.mk: avoid warnings about missing files
25555         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
25556         diagnostic when .prev-version does not exist.
25557         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
25558         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
25559         nonexistent cfg.mk.
25560         Suggestions from Simon Josefsson.
25561
25562 2009-07-25  Bruno Haible  <bruno@clisp.org>
25563
25564         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
25565         defined as macros. Needed on QNX 6.4.1.
25566         Reported by Matt Kraai <mkraai@beckman.com>.
25567
25568 2009-07-23  Jim Meyering  <meyering@redhat.com>
25569
25570         maint.mk: invoke "make dist" with a working value of XZ_OPT
25571         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
25572
25573 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
25574
25575         Make fseeko.c compile on QNX.
25576         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
25577
25578 2009-07-22  Peter Simons  <simons@cryp.to>
25579
25580         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
25581         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
25582         * lib/md4.h: Likewise.
25583         * lib/md5.h: Likewise.
25584         * lib/sha1.h: Likewise.
25585         * lib/sha256.h: Likewise.
25586         * lib/sha512.h: Likewise.
25587
25588         tests-sha1: don't assign literal string to 'char *' variable
25589         * tests/test-sha1.c (main): Declare locals with "const" to match
25590         attributes of the right hand side.
25591
25592 2009-07-21  Eric Blake  <ebb9@byu.net>
25593
25594         dup2: fix more mingw problems
25595         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
25596         fd to itself.
25597         * doc/posix-functions/dup2.texi (dup2): Document the bug.
25598         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
25599         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
25600         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
25601         care of mingw bugs.
25602
25603 2009-07-21  Jim Meyering  <meyering@redhat.com>
25604
25605         vc-list-files: avoid failure when /bin/sh is dash
25606         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
25607         On some Debian based systems, /bin/sh is a symlink to dash, and running
25608         this command would omit the "/" following each 'tests' prefix:
25609           dash -x build-aux/vc-list-files -C . tests
25610         That is because bash and dash work differently:
25611           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
25612           bash ok
25613           dash odd
25614
25615 2009-07-21  Eric Blake  <ebb9@byu.net>
25616
25617         dup2-tests: test previous patch
25618         * modules/dup2-tests: New file.
25619         * tests/test-dup2.c: Likewise.
25620         * tests/test-open.c (main): Avoid unspecified behavior.
25621         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
25622         test.
25623
25624         dup2: work around mingw and cygwin 1.5 bug
25625         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
25626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25627         * modules/unistd (Makefile.am): Substitute it.
25628         * lib/unistd.in.h (dup2): Declare the replacement.
25629         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
25630         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
25631         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
25632         * modules/execute (Depends-on): Add dup2.
25633         * modules/fseterr (Depends-on): Likewise.
25634         * modules/pipe (Depends-on): Likewise.
25635         * modules/posix_spawn-internal (Depends-on): Likewise.
25636
25637 2009-07-21  Bruno Haible  <bruno@clisp.org>
25638
25639         * modules/.gitattributes: New file.
25640
25641 2009-07-20  Bruno Haible  <bruno@clisp.org>
25642
25643         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
25644         (main): Use it.
25645
25646 2009-07-20  Eric Blake  <ebb9@byu.net>
25647
25648         test-pipe: make a bit more robust.
25649         * tests/test-pipe.c (myerr): Allow error messages regardless of
25650         what we do to stderr.
25651         (test_pipe): Rearrange to avoid deadlock.
25652         (child_main): Try a larger read, to ensure we avoided deadlock.
25653         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
25654         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
25655         if misused.
25656
25657 2009-07-19  Jim Meyering  <meyering@redhat.com>
25658
25659         fts: avoid false-positive cycle-detection
25660         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
25661         for each new command line argument.
25662
25663 2009-07-19  Bruno Haible  <bruno@clisp.org>
25664
25665         Fix build error on mingw with the modules sys_select and unistd.
25666         * modules/acl-tests (Depends-on): Add close.
25667         * modules/binary-io-tests (Depends-on): Likewise.
25668         * modules/closein-tests (Depends-on): Likewise.
25669         * modules/flock-tests (Depends-on): Likewise.
25670         * modules/fsync-tests (Depends-on): Likewise.
25671         * modules/lseek-tests (Depends-on): Likewise.
25672         * modules/pipe-tests (Depends-on): Likewise.
25673         * modules/posix_spawn-tests (Depends-on): Likewise.
25674         * modules/posix_spawnp-tests (Depends-on): Likewise.
25675         * modules/stat-time-tests (Depends-on): Likewise.
25676         * modules/yesno-tests (Depends-on): Likewise.
25677
25678 2009-07-19  Bruno Haible  <bruno@clisp.org>
25679
25680         Unify conditionals.
25681         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
25682         macros, not at the compiler macros.
25683         * lib/pipe.c: Likewise.
25684         * lib/execute.c: Likewise.
25685         * lib/spawni.c: Likewise.
25686
25687 2009-07-19  Bruno Haible  <bruno@clisp.org>
25688
25689         Fix handling of closed stdin/stdout/stderr on mingw.
25690         * lib/w32spawn.h: Include unistd.h.
25691         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
25692         file descriptor with O_NOINHERIT flag.
25693         (fd_safer_noinherit): New function, based on fd-safer.c.
25694         (dup_safer_noinherit): New function, based on dup-safer.c.
25695         (undup_safer_noinherit): New function.
25696         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
25697         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
25698         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
25699         instead of fd_safer.
25700         * tests/test-pipe.c: Include <windows.h>.
25701         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
25702
25703         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
25704         from main.
25705         (test_pipe): Pass an extra argument for disambiguation.
25706         (main): Invoke parent_main or child_main.
25707
25708         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
25709         consistently.
25710
25711 2009-07-18  Eric Blake  <ebb9@byu.net>
25712
25713         test-pipe: fix mingw build
25714         * tests/test-pipe.c (main): Avoid fcntl on mingw.
25715
25716 2009-07-18  Bruno Haible  <bruno@clisp.org>
25717
25718         * modules/pipe-tests (Makefile.am): Fix typo.
25719
25720 2009-07-18  Eric Blake  <ebb9@byu.net>
25721
25722         error: fix mingw build
25723         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
25724         Reported by Bruno Haible.
25725
25726         error: avoid undefined use of stdout
25727         * lib/error.c (error, error_at_line): Check that fd 1 is open
25728         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
25729         is handling faults and the close_stdout module wants to report the
25730         detection of closed stdout as an error.
25731
25732 2009-07-17  Eric Blake  <ebb9@byu.net>
25733
25734         pipe: be robust in face of closed fds
25735         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
25736         should cause child to misbehave.
25737         * modules/pipe-tests: New module.
25738         * tests/test-pipe.c: New file.
25739         * tests/test-pipe.sh: New file.
25740         Reported by Akim Demaille.
25741
25742 2009-07-14  Bruno Haible  <bruno@clisp.org>
25743
25744         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
25745         Reported by anonymous kc.
25746
25747 2009-07-07  Jim Meyering  <meyering@redhat.com>
25748
25749         maint.mk: don't look for translatable strings in *.m4 or *.mk
25750         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
25751         when searching for translatable strings.
25752
25753 2009-07-05  Jim Meyering  <meyering@redhat.com>
25754
25755         remove superfluous parentheses in STREQ definition
25756         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
25757         * lib/getugroups.c (STREQ): Likewise.
25758         * lib/fnmatch.c (STREQ): Likewise.
25759         Spotted by Bruno Haible.
25760
25761 2009-07-04  Jim Meyering  <meyering@redhat.com>
25762
25763         argv-iter: new module
25764         * MODULES.html.sh: Add argv-iter.
25765         * lib/argv-iter.c, lib/argv-iter.h: New files.
25766         * modules/argv-iter: New file.
25767         * modules/argv-iter-tests: New file.
25768         * tests/test-argv-iter.c: Test it.
25769
25770 2009-07-04  Bruno Haible  <bruno@clisp.org>
25771
25772         Fix assertion.
25773         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
25774         contains more exact copies of a given entry than file2, leave the extra
25775         copies unpaired rather than aborting.
25776         Reported by Eric Blake.
25777
25778 2009-07-02  Bruno Haible  <bruno@clisp.org>
25779
25780         Speedup git-merge-changelog for git cherry-pick.
25781         * lib/git-merge-changelog.c (struct entries_mapping): New type.
25782         (entries_mapping_get): New function, extracted from compute_mapping.
25783         (entries_mapping_reverse_get): New function.
25784         (compute_mapping): Add a 'full' argument. Return the result in a
25785         'struct entries_mapping'.
25786         (main): Update. Access the mappings through entries_mapping_get.
25787         Reported by Eric Blake.
25788
25789 2009-07-02  Bruno Haible  <bruno@clisp.org>
25790
25791         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
25792         best_i.
25793
25794 2009-07-02  Bruno Haible  <bruno@clisp.org>
25795
25796         Speed up approximate search for matching ChangeLog entries.
25797         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
25798         argument. Call fstrcmp_bounded instead of fstrcmp.
25799         (compute_mapping, try_split_merged_entry, main): Update callers.
25800
25801 2009-07-02  Bruno Haible  <bruno@clisp.org>
25802
25803         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
25804
25805 2009-06-30  Bruno Haible  <bruno@clisp.org>
25806
25807         Reduce the number of uc_is_cased calls.
25808         * lib/unicase.h (casing_suffix_context_t): Add
25809         'first_char_except_ignorable' field.
25810         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
25811         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
25812         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
25813         Update initializer.
25814         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
25815         case-ignorable characters.
25816         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
25817         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
25818         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
25819         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
25820         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
25821
25822 2009-06-30  Bruno Haible  <bruno@clisp.org>
25823
25824         Tests for module 'unicase/ignorable'.
25825         * modules/unicase/ignorable-tests: New file.
25826         * tests/unicase/test-ignorable.c: New file, generated by
25827         gen-uni-tables.
25828
25829         Tests for module 'unicase/cased'.
25830         * modules/unicase/cased-tests: New file.
25831         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
25832         * tests/unicase/test-predicate-part1.h: New file, derived from
25833         tests/unictype/test-predicate-part1.h.
25834         * tests/unicase/test-predicate-part2.h: New file, same as
25835         tests/unictype/test-predicate-part2.h.
25836
25837         Fix evaluation of "Before C" condition of FINAL_SIGMA.
25838         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
25839         (output_casing_properties): New function.
25840         (main): Call it.
25841         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
25842         * lib/unicase/cased.c: Include unictype/bitmap.h.
25843         (uc_is_cased): Define through a bitmap lookup.
25844         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
25845         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
25846         (uc_is_case_ignorable): Define through a bitmap lookup.
25847         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
25848         lib/unictype/bitmap.h.
25849         (Depends-on): Add inline. Clean up.
25850         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
25851         lib/unictype/bitmap.h.
25852         (Depends-on): Add inline. Clean up.
25853         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
25854         recognition.
25855         * tests/unicase/test-u16-tolower.c (main): Likewise.
25856         * tests/unicase/test-u32-tolower.c (main): Likewise.
25857
25858 2009-06-30  Bruno Haible  <bruno@clisp.org>
25859
25860         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
25861         * lib/unicase/u16-casemap.c: Likewise.
25862         * lib/unicase/u32-casemap.c: Likewise.
25863
25864 2009-06-29  Bruno Haible  <bruno@clisp.org>
25865
25866         Define u32_casefold as a wrapper around u32_ct_casefold.
25867         * lib/unicase/u32-casefold.c: Update.
25868         * modules/unicase/u32-casefold (Depends-on): Add
25869         unicase/u32-ct-casefold, unicase/empty-prefix-context,
25870         unicase/empty-suffix-context. Clean up.
25871
25872         Define u16_casefold as a wrapper around u16_ct_casefold.
25873         * lib/unicase/u16-casefold.c: Update.
25874         * modules/unicase/u16-casefold (Depends-on): Add
25875         unicase/u16-ct-casefold, unicase/empty-prefix-context,
25876         unicase/empty-suffix-context. Clean up.
25877
25878         Define u8_casefold as a wrapper around u8_ct_casefold.
25879         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
25880         * lib/unicase/u8-casefold.c: Update.
25881         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
25882         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
25883
25884         Define u32_totitle as a wrapper around u32_ct_totitle.
25885         * lib/unicase/u32-totitle.c: Update.
25886         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
25887         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
25888
25889         Define u16_totitle as a wrapper around u16_ct_totitle.
25890         * lib/unicase/u16-totitle.c: Update.
25891         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
25892         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
25893
25894         Define u8_totitle as a wrapper around u8_ct_totitle.
25895         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
25896         functions.
25897         (FUNC): Delegate to U_CT_TOTITLE.
25898         * lib/unicase/u8-totitle.c: Update.
25899         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
25900         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
25901
25902         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
25903         invocation.
25904         * modules/unicase/u32-tolower (Depends-on): Add
25905         unicase/empty-prefix-context, unicase/empty-suffix-context.
25906
25907         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
25908         invocation.
25909         * modules/unicase/u16-tolower (Depends-on): Add
25910         unicase/empty-prefix-context, unicase/empty-suffix-context.
25911
25912         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
25913         * modules/unicase/u8-tolower (Depends-on): Add
25914         unicase/empty-prefix-context, unicase/empty-suffix-context.
25915
25916         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
25917         invocation.
25918         * modules/unicase/u32-toupper (Depends-on): Add
25919         unicase/empty-prefix-context, unicase/empty-suffix-context.
25920
25921         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
25922         invocation.
25923         * modules/unicase/u16-toupper (Depends-on): Add
25924         unicase/empty-prefix-context, unicase/empty-suffix-context.
25925
25926         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
25927         * modules/unicase/u8-toupper (Depends-on): Add
25928         unicase/empty-prefix-context, unicase/empty-suffix-context.
25929
25930         New module 'unicase/u32-ct-casefold'.
25931         * lib/unicase/u32-ct-casefold.c: New file.
25932         * modules/unicase/u32-ct-casefold: New file.
25933
25934         New module 'unicase/u16-ct-casefold'.
25935         * lib/unicase/u16-ct-casefold.c: New file.
25936         * modules/unicase/u16-ct-casefold: New file.
25937
25938         New module 'unicase/u8-ct-casefold'.
25939         * lib/unicase/u8-ct-casefold.c: New file.
25940         * lib/unicase/u-ct-casefold.h: New file, derived from
25941         lib/unicase/u-casefold.h.
25942         * modules/unicase/u8-ct-casefold: New file.
25943
25944         New module 'unicase/u32-ct-totitle'.
25945         * lib/unicase/u32-ct-totitle.c: New file.
25946         * modules/unicase/u32-ct-totitle: New file.
25947
25948         New module 'unicase/u16-ct-totitle'.
25949         * lib/unicase/u16-ct-totitle.c: New file.
25950         * modules/unicase/u16-ct-totitle: New file.
25951
25952         New module 'unicase/u8-ct-totitle'.
25953         * lib/unicase/u8-ct-totitle.c: New file.
25954         * lib/unicase/u-ct-totitle.h: New file, derived from
25955         lib/unicase/u-totitle.h.
25956         * modules/unicase/u8-ct-totitle: New file.
25957
25958         New module 'unicase/u32-ct-tolower'.
25959         * lib/unicase/u32-ct-tolower.c: New file.
25960         * modules/unicase/u32-ct-tolower: New file.
25961
25962         New module 'unicase/u16-ct-tolower'.
25963         * lib/unicase/u16-ct-tolower.c: New file.
25964         * modules/unicase/u16-ct-tolower: New file.
25965
25966         New module 'unicase/u8-ct-tolower'.
25967         * lib/unicase/u8-ct-tolower.c: New file.
25968         * modules/unicase/u8-ct-tolower: New file.
25969
25970         New module 'unicase/u32-ct-toupper'.
25971         * lib/unicase/u32-ct-toupper.c: New file.
25972         * modules/unicase/u32-ct-toupper: New file.
25973
25974         New module 'unicase/u16-ct-toupper'.
25975         * lib/unicase/u16-ct-toupper.c: New file.
25976         * modules/unicase/u16-ct-toupper: New file.
25977
25978         New module 'unicase/u8-ct-toupper'.
25979         * lib/unicase/u8-ct-toupper.c: New file.
25980         * modules/unicase/u8-ct-toupper: New file.
25981
25982         Add context arguments to u*_casemap functions.
25983         * lib/unicase/unicasemap.h: Include unicase.h.
25984         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
25985         suffix_context arguments.
25986         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
25987         functions.
25988         (FUNC): Add prefix_context and suffix_context arguments. Use
25989         uc_is_cased and uc_is_case_ignorable.
25990         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
25991         * lib/unicase/u16-casemap.c: Likewise.
25992         * lib/unicase/u32-casemap.c: Likewise.
25993         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
25994         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
25995         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
25996         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
25997         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
25998         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
25999
26000         New module 'unicase/u32-suffix-context'.
26001         * lib/unicase/u32-suffix-context.c: New file.
26002         * modules/unicase/u32-suffix-context: New file.
26003
26004         New module 'unicase/u16-suffix-context'.
26005         * lib/unicase/u16-suffix-context.c: New file.
26006         * modules/unicase/u16-suffix-context: New file.
26007
26008         New module 'unicase/u8-suffix-context'.
26009         * lib/unicase/u8-suffix-context.c: New file.
26010         * lib/unicase/u-suffix-context.h: New file.
26011         * modules/unicase/u8-suffix-context: New file.
26012
26013         New module 'unicase/empty-suffix-context'.
26014         * lib/unicase/empty-suffix-context.c: New file.
26015         * modules/unicase/empty-suffix-context: New file.
26016
26017         New module 'unicase/u32-prefix-context'.
26018         * lib/unicase/u32-prefix-context.c: New file.
26019         * modules/unicase/u32-prefix-context: New file.
26020
26021         New module 'unicase/u16-prefix-context'.
26022         * lib/unicase/u16-prefix-context.c: New file.
26023         * modules/unicase/u16-prefix-context: New file.
26024
26025         New module 'unicase/u8-prefix-context'.
26026         * lib/unicase/u8-prefix-context.c: New file.
26027         * lib/unicase/u-prefix-context.h: New file.
26028         * lib/unicase/context.h: New file.
26029         * modules/unicase/u8-prefix-context: New file.
26030
26031         New module 'unicase/empty-prefix-context'.
26032         * lib/unicase/empty-prefix-context.c: New file.
26033         * modules/unicase/empty-prefix-context: New file.
26034
26035         New module 'unicase/ignorable'.
26036         * lib/unicase/ignorable.c: New file.
26037         * modules/unicase/ignorable: New file.
26038
26039         New module 'unicase/cased'.
26040         * lib/unicase/caseprop.h: New file.
26041         * lib/unicase/cased.c: New file.
26042         * modules/unicase/cased: New file.
26043
26044         New functions for case mapping of substrings.
26045         * lib/unicase.h (casing_prefix_context_t): New type.
26046         (unicase_empty_prefix_context): New variable.
26047         (u8_casing_prefix_context, u16_casing_prefix_context,
26048         u32_casing_prefix_context, u8_casing_prefixes_context,
26049         u16_casing_prefixes_context, u32_casing_prefixes_context): New
26050         declarations.
26051         (casing_suffix_context_t): New type.
26052         (unicase_empty_suffix_context): New variable.
26053         (u8_casing_suffix_context, u16_casing_suffix_context,
26054         u32_casing_suffix_context, u8_casing_suffixes_context,
26055         u16_casing_suffixes_context, u32_casing_suffixes_context,
26056         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
26057         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
26058         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
26059         declarations.
26060
26061 2009-06-28  Jim Meyering  <meyering@redhat.com>
26062
26063         boostrap: indent only with spaces
26064         * build-aux/bootstrap: Indent only with spaces, never TABs.
26065
26066         bootstrap: split long lines
26067         * build-aux/bootstrap: Keep line length < 80.
26068
26069         bootstrap: sync from coreutils
26070         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
26071         just as autoreconf does.  Verify a list of prerequisite
26072         package-name,version-number pairs if defined in bootstrap.conf.
26073         Refer to README-prereq, if prerequisites are not satisfied.
26074
26075 2009-06-27  Eric Blake  <ebb9@byu.net>
26076
26077         tests: add test for bogus NULL definition
26078         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
26079         * tests/test-stdlib.c: Likewise.
26080         * tests/test-string.c: Likewise.
26081         * tests/test-locale.c: Likewise.
26082         * tests/test-unistd.c: Likewise.
26083         * modules/stdio-tests (Depends-on): Add verify.
26084         * modules/stdlib-tests (Depends-on): Likewise.
26085         * modules/string-tests (Depends-on): Likewise.
26086         * modules/locale-tests (Depends-on): Likewise.
26087         * modules/unistd-tests (Depends-on): Likewise.
26088
26089 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
26090
26091         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
26092         self-explaining comment.
26093         * m4/selinux-selinux-h: Update serial.
26094         (gl_LIBSELINUX): New macro, adding a warning for missing development
26095         packages to code extracted from...
26096         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
26097         Add warning for missing development packages here, too.
26098
26099 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
26100
26101         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
26102
26103 2009-06-25  Eric Blake  <ebb9@byu.net>
26104
26105         version-etc: fix regression
26106         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
26107         gcc.
26108         (version_etc): Use it, to catch bugs with trailing NULL.
26109         * lib/version-etc.c (version_etc_arn): Delete unused argument.
26110         (version_etc_va): Fix logic bug.
26111         * modules/version-etc-tests: Add test.
26112         * tests/test-version-etc.c: New file.
26113         * tests/test-version-etc.sh: Likewise.
26114
26115 2009-06-25  Sam Steingold  <sds@gnu.org>
26116
26117         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
26118         mbtowc declaration.
26119
26120 2009-06-25  Eric Blake  <ebb9@byu.net>
26121
26122         fpurge: migrate into <stdio.h>
26123         * lib/fpurge.h: Delete...
26124         * lib/stdio.in.h (fpurge): ...and declare here, instead.
26125         * lib/fpurge.c (fpurge): Change declaring header.
26126         * modules/fpurge (Files): Drop deleted file.
26127         (Depends-on): Add stdio.
26128         (configure.ac): Set witness.
26129         * modules/stdio (Makefile.am): Support fpurge macros.
26130         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26131         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
26132         * lib/fflush.c: Update client.
26133         * tests/test-fpurge.c: Likewise.
26134         * NEWS: Mention the change.
26135
26136 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26137
26138         * lib/argp-version-etc.c (program_authors): Add const
26139         qualifier.
26140         * lib/version-etc.c: Fix typos in the comments.
26141         * modules/argp-version-etc: Depends on version-etc.
26142
26143 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26144
26145         argp-version-etc: new module.
26146
26147         * lib/argp-version-etc.c: New file.
26148         * lib/argp-version-etc.h: New file.
26149         * modules/argp-version-etc: New file.
26150         * modules/argp-version-etc-tests: New file.
26151         * tests/test-argp-version-etc.c: New test.
26152         * tests/test-argp-version-etc-1.sh: New test.
26153
26154 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26155
26156         Provide additional interfaces and documentation for version-etc
26157         module.
26158
26159         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
26160         interfaces.
26161         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
26162         prototypes.
26163
26164 2009-06-24  Bruno Haible  <bruno@clisp.org>
26165
26166         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
26167         HAVE_LIB${NAME} macro.
26168         Reported by Sam Steingold <sds@gnu.org>.
26169
26170 2009-06-23  Simon Josefsson  <simon@josefsson.org>
26171
26172         * modules/hash-tests (test_hash_LDADD): Link to libintl when
26173         needed.
26174
26175 2009-06-21  Bruno Haible  <bruno@clisp.org>
26176
26177         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
26178         work.
26179         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
26180         together with LIB${NAME}, LTLIB${NAME}.
26181         Reported by Sam Steingold <sds@gnu.org>.
26182
26183 2009-06-20  Jim Meyering  <meyering@redhat.com>
26184
26185         tests: make sc_require_test_exit_idiom more generic
26186         * top/maint.mk (Exit_witness_file): New overridable variable.
26187         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
26188         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
26189
26190 2009-06-19  Jim Meyering  <meyering@redhat.com>
26191
26192         hash: reverse order of src/dst parameters in an internal interface
26193         * lib/hash.c (transfer_entries): Reverse order of parameters to
26194         put DST before SRC.  Adjust callers.
26195
26196         tests: test-hash: avoid wholesale duplication
26197         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
26198         Instead, use a loop and add a single conditional.
26199
26200         tests: test-hash: allow seed selection via a command line argument
26201         * tests/test-hash.c (get_seed): New function.
26202         (main): Use it.
26203
26204 2009-06-19  Eric Blake  <ebb9@byu.net>
26205
26206         hash: avoid memory leak on allocation failure
26207         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
26208         failure.  Factor repeated algorithm...
26209         (transfer_entries): ...into new helper routine.
26210         (hash_delete): React to hash_rehash return value.
26211
26212         hash: reduce memory pressure in hash_rehash no-op case
26213         * lib/hash.c (next_prime): Avoid overflow.
26214         (hash_initialize): Factor bucket size computation...
26215         (compute_bucket_size): ...into new helper function.
26216         (hash_rehash): Use new function and open coding to reduce memory
26217         pressure, and avoid a memory leak in USE_OBSTACK code.
26218         Reported by Jim Meyering.
26219
26220 2009-06-18  Eric Blake  <ebb9@byu.net>
26221
26222         hash: make rotation more obvious
26223         * modules/hash (Depends-on): Add bitrotate and stdint.
26224         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
26225         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
26226         (SIZE_MAX): Rely on headers for definition.
26227         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
26228         (raw_hasher): Use rotr_sz.
26229         Suggested by Jim Meyering.
26230
26231         hash: fix memory leak in last patch
26232         * lib/hash.c (hash_rehash): Avoid memory leak.
26233
26234         hash: avoid no-op rehashing
26235         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
26236
26237         hash: provide default callback functions
26238         * lib/hash.c (raw_hasher, raw_comparator): New functions.
26239         (hash_initialize): Use them as defaults.
26240         * tests/test-hash.c (main): Test this.
26241
26242         hash: minor optimization
26243         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
26244         when possible.
26245         (hash_initialize): Document this promise.
26246         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
26247         * tests/test-hash.c (hash_compare_strings): Test this.
26248
26249 2009-06-18  Bruno Haible  <bruno@clisp.org>
26250
26251         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
26252         going to be replaced anyway.
26253
26254 2009-06-18  Bruno Haible  <bruno@clisp.org>
26255
26256         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
26257         in one place.
26258         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
26259         be replaced anyway.
26260
26261 2009-06-18  Eric Blake  <ebb9@byu.net>
26262
26263         hash: check for resize before insertion
26264         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
26265         threshold before insertion, so that a pathological hash_rehash
26266         that fills every bucket can still trigger another rehash.
26267
26268 2009-06-18  Jim Meyering  <meyering@redhat.com>
26269
26270         hash-tests: add a loop around the small tests
26271         * tests/test-hash.c (main): Repeat small tests with selected
26272         small initial table sizes.
26273
26274 2009-06-17  Eric Blake  <ebb9@byu.net>
26275
26276         hash: minor cleanups
26277         * lib/hash.h (hash_entry): Make opaque, by moving...
26278         * lib/hash.c (hash_entry): ...here.
26279         (hash_insert): Clarify restrictions on what can be inserted.
26280         (hash_get_next): Clarify when it is safe to remove an element
26281         during traversal.
26282         (check_tuning): Skip verification when tuning is known safe.
26283         (hash_initialize): Clarify restrictions on tuning.
26284
26285 2009-06-17  Jim Meyering  <jim@meyering.net>
26286         and Eric Blake  <ebb9@byu.net>
26287
26288         hash-tests: new module
26289         * modules/hash-tests: New file.
26290         * tests/test-hash.c: New file.
26291
26292 2009-06-17  Eric Blake  <ebb9@byu.net>
26293
26294         strstr-simple: document new module
26295         * MODULES.html.sh: Document new module.
26296
26297         strstr, strcasestr: replace on platforms with broken memchr
26298         * modules/strstr: Split into...
26299         * modules/strstr-simple: ...new module that does not care about
26300         performance, but does care about glibc bug.
26301         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
26302         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
26303         if platform memchr is broken, per Debian bug 521737.
26304         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
26305         memchr.
26306         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
26307         * doc/posix-functions/strstr.texi (strstr): Document the fix.
26308         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
26309         * modules/mountlist (Depends-on): Add strstr-simple.
26310         * modules/gen-uni-tables (Depends-on): Likewise.
26311         * modules/argz (Depends-on): Add strstr.
26312
26313 2009-06-17  Bruno Haible  <bruno@clisp.org>
26314
26315         * modules/posix_spawn-internal (Depends-on): Add errno.
26316
26317 2009-06-17  Bruno Haible  <bruno@clisp.org>
26318
26319         Define missing ESTALE on Interix 3.5.
26320         * lib/errno.in.h (ESTALE): Assign a value if missing.
26321         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
26322         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
26323         missing.
26324         * doc/posix-headers/errno.texi: Mention the Interix bug.
26325         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
26326
26327 2009-06-15  Eric Blake  <ebb9@byu.net>
26328
26329         memchr, memchr2: add valgrind exception
26330         * lib/memchr.valgrind: New file.
26331         * lib/memchr2.valgrind: New file.
26332         * modules/memchr (Files): Distribute valgrind file.
26333         * modules/memchr2 (Files): Likewise.
26334
26335         docs: memchr is no longer obsolete
26336         * MODULES.html.sh: Move memchr from obsolete to string.h section.
26337         * lib/string.in.h (memchr): Simplify logic.
26338
26339 2009-06-14  Jim Meyering  <meyering@redhat.com>
26340
26341         link-follow: fix the "checking..." message to not mention trailing slash
26342         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
26343         never considered trailing slashes.
26344
26345 2009-06-14  Bruno Haible  <bruno@clisp.org>
26346
26347         * m4/memchr.m4: Mention also the bug on IA-64.
26348         * doc/posix-functions/memchr.texi: Likewise.
26349
26350 2009-06-12  Eric Blake  <ebb9@byu.net>
26351
26352         memchr: detect broken x86_64 and alpha implementations
26353         * modules/memchr-tests (Depends-on): Move mmap detection...
26354         * modules/memchr (Depends-on): ...here.
26355         (configure.ac): Set indicator.
26356         * lib/string.in.h (memchr): Declare replacement.
26357         * modules/string (Makefile.am): Trigger replacement.
26358         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
26359         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
26360         bugs.
26361         * doc/posix-functions/memchr.texi (memchr): Document the bug.
26362         * modules/getpagesize (License): Relax license.
26363
26364 2009-06-11  Bruno Haible  <bruno@clisp.org>
26365
26366         * lib/idpriv.h: Add more references.
26367
26368 2009-06-08  Bruno Haible  <bruno@clisp.org>
26369
26370         Tests for module 'idpriv-droptemp'.
26371         * modules/idpriv-droptemp-tests: New file.
26372         * tests/test-idpriv-droptemp.sh: New file.
26373         * tests/test-idpriv-droptemp.su.sh: New file.
26374         * tests/test-idpriv-droptemp.c: New file.
26375
26376         New module 'idpriv-droptemp'.
26377         * lib/idpriv-droptemp.c: New file.
26378         * modules/idpriv-droptemp: New file.
26379
26380 2009-06-08  Bruno Haible  <bruno@clisp.org>
26381
26382         Tests for module 'idpriv-drop'.
26383         * modules/idpriv-drop-tests: New file.
26384         * tests/test-idpriv-drop.sh: New file.
26385         * tests/test-idpriv-drop.su.sh: New file.
26386         * tests/test-idpriv-drop.c: New file.
26387
26388         New module 'idpriv-drop'.
26389         * lib/idpriv.h: New file.
26390         * lib-idpriv-drop.c: New file.
26391         * m4/idpriv.m4: New file.
26392         * modules/idpriv-drop: New file.
26393
26394 2009-06-08  Bruno Haible  <bruno@clisp.org>
26395
26396         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
26397         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26398         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26399         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26400         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26401         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26402         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26403
26404 2009-06-08  Eric Blake  <ebb9@byu.net>
26405
26406         test-strstr: use memory fence, when possible
26407         * tests/test-strstr.c (main): Use memory fence, in order to be
26408         more likely to trigger Debian bug 521737.
26409         * modules/strstr-tests (Files): Pull in additional files.
26410
26411         memchr: no longer obsolete, for wider field testing
26412         * modules/memchr (Status, Notice): Delete, this module is no
26413         longer obsolete.
26414         * modules/vasnprintf (Depends-on): Add memchr.
26415
26416 2009-06-07  Jim Meyering  <meyering@redhat.com>
26417
26418         hash: declare some functions with the warn_unused_result attribute
26419         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
26420
26421 2009-06-07  Bruno Haible  <bruno@clisp.org>
26422
26423         * tests/test-alignof.c: Don't test int64_t if it does not exist.
26424         Reported by Eric Blake.
26425
26426 2009-06-06  Eric Blake  <ebb9@byu.net>
26427
26428         test-alignof: fix typo with long double
26429         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
26430         compiler error.
26431
26432 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
26433
26434         Escape non-texinfo { and }s.
26435         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
26436         markup error.
26437
26438 2009-06-04  Jim Meyering  <meyering@redhat.com>
26439
26440         gitlog-to-changelog: don't infloop on an empty commit log
26441         * build-aux/gitlog-to-changelog: Warn about an empty log message.
26442         Reported by Boris Petersen <transacid@centerim.org>.
26443
26444 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
26445
26446         version-etc: extend for packagers
26447         Add three new configure options, intended for packagers:
26448           --with-packager="packager name"
26449           --with-packager-version="packager-specific version"
26450           --with-packager-bug-reports="packager bug reporting"
26451         An example with coreutils:
26452           $ ./configure \
26453             --with-packager=Gentoo \
26454             --with-packager-bug-report=http://bugs.gentoo.org/ \
26455             --with-packager-version="patchset 1.6"
26456           $ ./src/ls --version | head -n2
26457           ls (GNU coreutils) 7.1-dirty
26458           Packaged by Gentoo (patchset 1.6)
26459         Note that the bug reporting info via --help doesn't show up because
26460         coreutils uses its own custom emit_bug_reporting_address() implementation
26461         in src/system.h.  If it didn't, it'd look like:
26462           $ ./src/ls --help | tail -n4
26463           Report bugs to <bug-coreutils@gnu.org>.
26464           Report Gentoo bugs to <http://bugs.gentoo.org/>.
26465           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
26466           General help using GNU software: <http://www.gnu.org/gethelp/>.
26467         * lib/version-etc.c: Print new information, if provided.
26468         * m4/version-etc.m4: New file.
26469         * modules/version-etc (Files): Add m4/version-etc.m4.
26470         (configure.ac): Add gl_VERSION_ETC.
26471
26472 2009-05-31  Bruno Haible  <bruno@clisp.org>
26473
26474         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
26475         and 'int64_t'.
26476         * modules/alignof-tests (Dependencies): Add stdint.
26477         Reported by Eric Blake.
26478
26479 2009-05-31  Bruno Haible  <bruno@clisp.org>
26480
26481         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
26482         restriction due to compiler bugs.
26483         Reported by Eric Blake.
26484
26485 2009-05-31  Simon Josefsson  <simon@josefsson.org>
26486             Bruno Haible  <bruno@clisp.org>
26487
26488         Fix test-alignof failure.
26489         * lib/alignof.h (alignof_slot): New macro.
26490         (alignof_type): New macro, with the same semantics as the previous
26491         'alignof'.
26492         (alignof): Alias to alignof_slot.
26493         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
26494         check that the results are usable as constant expressions.
26495
26496 2009-05-31  Bruno Haible  <bruno@clisp.org>
26497
26498         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
26499         * tests/test-memchr.c (main): Check that memchr does not read past the
26500         first occurrence of the byte.
26501         * tests/test-strstr.c (main): Update comment.
26502         Suggested by Eric Blake.
26503
26504 2009-05-30  Bruno Haible  <bruno@clisp.org>
26505
26506         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
26507         detail how to use dumpbin.
26508         Reported by David Byron <dbyron@dbyron.com>.
26509
26510 2009-06-02  Simon Josefsson  <simon@josefsson.org>
26511
26512         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
26513
26514 2009-06-02  Simon Josefsson  <simon@josefsson.org>
26515
26516         * m4/manywarnings.m4: Add GCC 4.4 warnings.
26517
26518 2009-05-28  Bruno Haible  <bruno@clisp.org>
26519
26520         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
26521         build-aux/ files.
26522
26523 2009-05-28  Simon Josefsson  <simon@josefsson.org>
26524
26525         * gnulib-tool (func_import): Transform license on build-aux/ files too.
26526
26527 2009-05-27  Simon Josefsson  <simon@josefsson.org>
26528
26529         * gnulib-tool (sed_transform_main_lib_file)
26530         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
26531         regexps.
26532
26533 2009-05-26  Simon Josefsson  <simon@josefsson.org>
26534
26535         * tests/test-strstr.c: Add another self-test.
26536         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
26537         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
26538
26539 2009-05-23  Bruno Haible  <bruno@clisp.org>
26540
26541         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
26542         change.
26543
26544 2009-05-21  Bruno Haible  <bruno@clisp.org>
26545
26546         Simplify use of mode_t varargs.
26547         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
26548         uses 'mode_t' or 'int'.
26549         * lib/openat.c (openat): Likewise.
26550         * lib/open-safer.c (open_safer): Likewise.
26551         * m4/mode_t.m4: New file.
26552         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
26553         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
26554         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
26555         * modules/open (Files): Add m4/mode_t.m4.
26556         * modules/openat (Files): Likewise.
26557         * modules/fcntl-safer (Files): Likewise.
26558         Suggested by Eric Blake.
26559
26560 2009-05-21  Pádraig Brady  <P@draigbrady.com>
26561
26562         * doc/glibc-functions/fallocate.texi: New file.
26563         * doc/gnulib.texi: Include it.
26564
26565 2009-05-21  Eric Blake  <ebb9@byu.net>
26566             Bruno Haible  <bruno@clisp.org>
26567
26568         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
26569         invocations.
26570         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26571
26572 2009-05-21  Eric Blake  <ebb9@byu.net>
26573             Bruno Haible  <bruno@clisp.org>
26574
26575         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
26576         include_next. Fix of 2008-11-20 commit.
26577         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
26578         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
26579         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
26580         NEXT_MATH_H.
26581         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
26582         instead of NEXT_MATH_H.
26583
26584 2009-05-21  Bruno Haible  <bruno@clisp.org>
26585
26586         Avoid redefinition warnings for SIZE_MAX.
26587         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
26588         Reported by Simon Josefsson.
26589
26590 2009-05-21  Bruno Haible  <bruno@clisp.org>
26591
26592         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
26593         AC_CACHE_VAL.
26594
26595 2009-05-20  Bruno Haible  <bruno@clisp.org>
26596
26597         Make zeroptr.h work on mingw.
26598         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
26599         mprotect.
26600         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
26601         * modules/memchr2-tests (configure.ac): Likewise.
26602         * modules/memcmp-tests (configure.ac): Likewise.
26603         * modules/memmem-tests (configure.ac): Likewise.
26604         * modules/memrchr-tests (configure.ac): Likewise.
26605         Reported by Simon Josefsson.
26606
26607 2009-05-20  Simon Josefsson  <simon@josefsson.org>
26608
26609         * tests/test-glob.c: Include string.h for strcmp prototype.
26610
26611 2009-05-20  Simon Josefsson  <simon@josefsson.org>
26612
26613         * modules/getdelim (Depends-on): Add explicit stdint, although it
26614         was implicitly already pulled in via realloc-posix.
26615         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
26616
26617 2009-05-20  Simon Josefsson  <simon@josefsson.org>
26618
26619         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
26620         G. Christensen" <tgc@jupiterrise.com>.
26621         * m4/sys_socket_h.m4: Check for sa_family_t.
26622         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
26623         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
26624         * tests/test-sys_socket.c: Check that sa_family_t works.
26625
26626 2009-05-18  Eric Blake  <ebb9@byu.net>
26627
26628         maint.mk: allow gnulib_dir in VPATH build
26629         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
26630
26631 2009-05-15  Jim Meyering  <meyering@redhat.com>
26632
26633         maint.mk: Give gnulib_dir a default definition.
26634         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
26635         Thus, most packages no longer need to specify this variable in cfg.mk
26636
26637 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
26638
26639         rename.m4: fix typos that would make non-mingw cross-configure fail
26640         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
26641
26642 2009-05-13  Eric Blake  <ebb9@byu.net>
26643
26644         mmap-anon: avoid out-of-order autoconf expansion
26645         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
26646         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
26647         * modules/memchr-tests (Depends-on): Add extensions.
26648         * modules/memchr2-tests (Depends-on): Add extensions.
26649         * modules/memcmp-tests (Depends-on): Add extensions.
26650         * modules/memmem-tests (Depends-on): Add extensions.
26651         * modules/memrchr-tests (Depends-on): Add extensions.
26652
26653 2009-05-13  Bruno Haible  <bruno@clisp.org>
26654
26655         Make some tests ISO C 99 compliant.
26656         * tests/zerosize-ptr.h: New file.
26657         * tests/test-memchr.c: Include zerosize-ptr.h.
26658         (main): Use a zero-size object pointer instead of NULL.
26659         * tests/test-memchr2.c: Include zerosize-ptr.h.
26660         (main): Use a zero-size object pointer instead of NULL.
26661         * tests/test-memcmp.c: Include zerosize-ptr.h.
26662         (main): Use a zero-size object pointer instead of NULL.
26663         * tests/test-memmem.c: Include zerosize-ptr.h.
26664         (main): Use a zero-size object pointer instead of NULL.
26665         * tests/test-memrchr.c: Include zerosize-ptr.h.
26666         (main): Use a zero-size object pointer instead of NULL.
26667         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
26668         m4/mmap-anon.m4.
26669         (Depends-on): Add getpagesize.
26670         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26671         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
26672         m4/mmap-anon.m4.
26673         (Depends-on): Add getpagesize.
26674         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26675         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
26676         m4/mmap-anon.m4.
26677         (Depends-on): Add getpagesize.
26678         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26679         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
26680         m4/mmap-anon.m4.
26681         (Depends-on): Add getpagesize.
26682         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26683         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
26684         m4/mmap-anon.m4.
26685         (Depends-on): Add getpagesize.
26686         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26687
26688 2009-05-12  Bruno Haible  <bruno@clisp.org>
26689
26690         Tests for module 'alignof'.
26691         * modules/alignof-tests: New file.
26692         * tests/test-alignof.c: New file.
26693
26694 2009-05-12  Bruno Haible  <bruno@clisp.org>
26695
26696         Fix alignof macro.
26697         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
26698         vendor compilers that are always correct.
26699
26700 2009-05-12  Bruno Haible  <bruno@clisp.org>
26701
26702         Make the MAP_ANONYMOUS detection work on HP-UX 11.
26703         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
26704         not whether its fully works.
26705
26706 2009-05-12  Bruno Haible  <bruno@clisp.org>
26707
26708         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
26709
26710 2009-05-12  Jim Meyering  <meyering@redhat.com>
26711
26712         * top/maint.mk: Adjust backslash alignment.
26713
26714 2009-05-11  Simon Josefsson  <simon@josefsson.org>
26715
26716         * top/maint.mk: Make $(srcdir)/build-aux configurable.
26717
26718 2009-05-11  Eric Blake  <ebb9@byu.net>
26719
26720         argp: avoid undefined behavior
26721         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
26722         macros.
26723
26724 2009-05-08  Simon Josefsson  <simon@josefsson.org>
26725
26726         * tests/test-vc-list-files-git.sh: Do git config of user.email and
26727         user.name to prevent git commit from complaining.
26728
26729 2009-05-10  Bruno Haible  <bruno@clisp.org>
26730
26731         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
26732         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
26733         it rewrites every file name only once.
26734         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
26735
26736 2009-05-08  Bruno Haible  <bruno@clisp.org>
26737
26738         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
26739         instead of 'max'.
26740
26741 2009-05-08  Simon Josefsson  <simon@josefsson.org>
26742
26743         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
26744         sockaddr_storage test.
26745
26746 2009-05-07  Simon Josefsson  <simon@josefsson.org>
26747
26748         * modules/sys_socket (Makefile.am): Substitute
26749         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
26750         * m4/sys_socket_h.m4: Check for sockaddr_storage.
26751         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
26752         * tests/test-sys_socket.c: Check sockaddr_storage.
26753
26754 2009-05-08  Bruno Haible  <bruno@clisp.org>
26755
26756         New module 'alignof'.
26757         * lib/alignof.h: New file.
26758         * modules/alignof: New file.
26759
26760 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
26761             Bruno Haible  <bruno@clisp.org>
26762
26763         Fix test-file-has-acl on FreeBSD.
26764         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
26765         mask is implicitly added.
26766         * tests/test-file-has-acl.c: Include <signal.h>.
26767         (main): Terminate the test after 5 seconds.
26768         * modules/acl-tests (configure.ac): Check for alarm function.
26769
26770 2009-05-04  Bruno Haible  <bruno@clisp.org>
26771
26772         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
26773         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
26774         * modules/errno (configure.ac): Drop AC_REQUIRE.
26775         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
26776         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
26777
26778 2009-05-04  Simon Josefsson  <simon@josefsson.org>
26779
26780         * modules/glob-tests: New module.
26781         * tests/test-glob.c: Add.
26782
26783 2009-05-04  Simon Josefsson  <simon@josefsson.org>
26784
26785         * modules/fnmatch-tests: New module.
26786         * tests/test-fnmatch.c: Add.
26787
26788 2009-05-04  Eric Blake  <ebb9@byu.net>
26789
26790         maint: make the new no-submodule-changes rule VPATH-safe
26791         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
26792
26793 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
26794             Bruno Haible  <bruno@clisp.org>
26795
26796         acl: Fix infinite loop on FreeBSD.
26797         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
26798         of return value from acl_get_entry.
26799         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
26800         Likewise.
26801
26802 2009-05-03  Bruno Haible  <bruno@clisp.org>
26803
26804         * lib/acl-internal.h (acl_entries): Clarify return value.
26805         * lib/acl_entries.c (acl_entries): Likewise.
26806
26807 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
26808
26809         Bug fix in acl module.
26810         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
26811
26812 2009-05-03  Bruno Haible  <bruno@clisp.org>
26813
26814         Create gperf-generated file in the source dir, not in the build dir.
26815         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
26816         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
26817         * modules/unicase/locale-language (unicase/locale-languages.h):
26818         Likewise.
26819         * modules/unicase/special-casing (unicase/special-casing-table.h):
26820         Likewise.
26821         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
26822         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
26823         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
26824         Reported by Ralf Wildenhues.
26825
26826 2009-05-03  Bruno Haible  <bruno@clisp.org>
26827
26828         * modules/fnmatch (Description, configure.ac): Taken from
26829         fnmatch-posix.
26830         * modules/fnmatch-posix: Turn into a symbolic reference to the
26831         'fnmatch' module, and deprecate.
26832         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
26833
26834 2009-05-03  Bruno Haible  <bruno@clisp.org>
26835
26836         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
26837         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
26838         Reported by Ralf Wildenhues.
26839
26840 2009-05-04  Simon Josefsson  <simon@josefsson.org>
26841
26842         * m4/fnmatch.m4: Fix fnmatch re-define.
26843
26844 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
26845
26846         priv-set: new module and tests; adapt write-any-file
26847         * lib/priv-set.c: New file.
26848         * lib/priv-set.h: New file.
26849         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
26850         * lib/write-any-file.c: Simplify by using priv-set module.
26851         * m4/priv-set.m4: New file.
26852         * modules/priv-set: New file.
26853         * modules/unlinkdir: Add dependency on priv-set module.
26854         * modules/write-any-file: Likewise.
26855
26856         Tests for module 'priv-set'.
26857         * modules/priv-set-tests: New file.
26858         * tests/test-priv-set.c: New file.
26859
26860 2009-05-03  Jim Meyering  <meyering@redhat.com>
26861             Bruno Haible  <bruno@clisp.org>
26862
26863         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
26864         use the converted UTF-8 variant of the name instead.
26865
26866 2009-05-03  Jim Meyering  <meyering@redhat.com>
26867
26868         tests: tighten some getdate tests
26869         * tests/test-getdate.c (main): Tighten tests: require equality,
26870         not just greater than.  Set TZ envvar to UTC0.
26871
26872 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
26873
26874         getdate: correctly interpret "next monday" when run on a Monday
26875         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
26876         that e.g., "next tues" (when run on a tuesday) results in a date
26877         that is one week in the future, and not today's date.
26878         I.e., add a week when the wday is the same as the current one.
26879         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
26880         and earlier by Martin Bernreuther and Jan Minář.
26881         * tests/test-getdate.c (main): Check that "next DAY" is always in
26882         the future and that "last DAY" is always in the past.
26883
26884 2009-05-02  Jim Meyering  <meyering@redhat.com>
26885
26886         build: ensure that a release build fails when a submodule is unclean
26887         * top/maint.mk (no-submodule-changes): New rule.
26888         (alpha beta major): Depend on it.
26889
26890 2009-05-02  Bruno Haible  <bruno@clisp.org>
26891
26892         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
26893         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
26894         shell variable gl_fnmatch_required to detect which variant is
26895         requested.
26896         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
26897         gl_FUNC_FNMATCH_POSIX.
26898         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
26899         exclude fnmatch-posix.
26900
26901 2009-05-02  Bruno Haible  <bruno@clisp.org>
26902
26903         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
26904         * modules/mbsrtowcs (License): Change to LGPLv2+.
26905         * modules/strnlen1 (License): Likewise.
26906         Reported by Simon Josefsson.
26907
26908 2009-05-02  Bruno Haible  <bruno@clisp.org>
26909
26910         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
26911         "cross".
26912         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
26913         gnulib-tool was called with option --source-base=lib.
26914
26915 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26916
26917         Use automake *-local hooks without commands, for extensibility.
26918         * modules/localcharset (Makefile.am): Rename install-exec-local
26919         rule to install-exec-localcharset, and make it a prerequisite of
26920         install-exec-local.  Likewise, rename the uninstall-local rule to
26921         uninstall-localcharset, and make it a prerequisite of the former.
26922
26923 2009-05-01  Bruno Haible  <bruno@clisp.org>
26924
26925         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
26926         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
26927         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
26928         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
26929         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
26930         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
26931         m4/locale-zh.m4, m4/codeset.m4.
26932
26933         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
26934         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
26935         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
26936         m4/locale-zh.m4.
26937
26938         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
26939         REPLACE_WCRTOMB if mbstate_t must be replaced.
26940         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
26941         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
26942
26943 2009-05-01  Bruno Haible  <bruno@clisp.org>
26944
26945         Avoid compiler warnings when redefining macros defined by <libintl.h>.
26946         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
26947         dngettext, dcngettext, textdomain, bindtextdomain,
26948         bind_textdomain_codeset): Undefine before redefining.
26949
26950 2009-04-30  Bruno Haible  <bruno@clisp.org>
26951
26952         Fix bug introduced on 2009-04-25.
26953         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
26954         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
26955         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
26956         is defined.
26957         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
26958         is defined.
26959         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
26960         is defined.
26961         Reported by Elbert_Pol <elbert.pol@gmail.com>.
26962
26963 2009-04-28  Bruno Haible  <bruno@clisp.org>
26964
26965         Comment tweaks.
26966         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
26967         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
26968         * lib/unicase.h (u*_casexfrm): Likewise.
26969         Reported by Paolo Bonzini.
26970
26971 2009-04-28  Bruno Haible  <bruno@clisp.org>
26972
26973         Fix a compilation error.
26974         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
26975         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
26976         Reported by Jim Meyering.
26977
26978 2009-04-27  Bruno Haible  <bruno@clisp.org>
26979
26980         New module 'libunistring'.
26981         * modules/libunistring: New file.
26982         * m4/libunistring.m4: New file.
26983         * MODULES.html.sh (Unicode string functions): Add it.
26984
26985 2009-04-27  Eric Blake  <ebb9@byu.net>
26986
26987         maint.mk: allow package-specific header to provide <config.h>
26988         * top/maint.mk (sc_require_config_h): New variable.
26989         (sc_require_config_h, sc_require_config_h_first): Use it.
26990
26991 2009-04-27  Simon Josefsson  <simon@josefsson.org>
26992
26993         * top/maint.mk (sc_avoid_if_before_free): Except
26994         useless-if-before-free script.
26995
26996 2009-04-27  Eric Blake  <ebb9@byu.net>
26997
26998         maintainer-makefile: depend on all required helper scripts
26999         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
27000         useless-if-before-free.
27001         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
27002         version, rather than assuming gnulib checkout is available.
27003         Reported by Simen Josefsson.
27004
27005 2009-04-26  Bruno Haible  <bruno@clisp.org>
27006
27007         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
27008         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
27009         "../" or "..".
27010
27011 2009-04-26  Bruno Haible  <bruno@clisp.org>
27012
27013         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
27014         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
27015         AC_LIB_HAVE_LINKFLAGS.
27016
27017 2009-04-26  Bruno Haible  <bruno@clisp.org>
27018
27019         Simplify calling convention of u*_conv_from_encoding.
27020         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
27021         u32_conv_from_encoding): Expect a resultbuf argument and return the
27022         result directly as a pointer.
27023         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
27024         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
27025         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
27026         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
27027         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
27028         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
27029         Update.
27030         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
27031         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
27032         * lib/vasnprintf.c (VASNPRINTF): Update.
27033         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
27034         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
27035         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
27036         * NEWS: Mention the change.
27037
27038 2009-04-26  Bruno Haible  <bruno@clisp.org>
27039
27040         Simplify calling convention of u*_conv_to_encoding.
27041         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
27042         u32_conv_to_encoding): Expect a resultbuf argument and return the
27043         result directly as a pointer.
27044         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
27045         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
27046         freeing scaled_offsets if mem_iconveha failed.
27047         * lib/unicase/u-casexfrm.h (FUNC): Update.
27048         * lib/uninorm/u-normxfrm.h (FUNC): Update.
27049         * lib/vasnprintf.c (VASNPRINTF): Update.
27050         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
27051         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
27052         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
27053         * NEWS: Mention the change.
27054
27055 2009-04-26  Bruno Haible  <bruno@clisp.org>
27056
27057         Avoid test failures on AIX and OSF/1.
27058         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
27059         malloc(0).
27060         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
27061         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
27062         Likewise.
27063         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
27064         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
27065         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
27066         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
27067         * doc/posix-functions/malloc.texi: Document the portability problem
27068         related to malloc(0).
27069
27070 2009-04-26  Bruno Haible  <bruno@clisp.org>
27071
27072         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
27073         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
27074         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
27075
27076 2009-04-25  Bruno Haible  <bruno@clisp.org>
27077
27078         Avoid link error when creating a namespace clean library.
27079         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
27080         as macro with arguments if already defined as an alias.
27081         * lib/signbitf.c (gl_signbitf): Don't undefine.
27082         * lib/signbitd.c (gl_signbitd): Don't undefine.
27083         * lib/signbitl.c (gl_signbitl): Don't undefine.
27084
27085 2009-04-25  Jim Meyering  <meyering@redhat.com>
27086
27087         vc-list-files: fix another quoting bug
27088         * build-aux/vc-list-files: Avoid sed backslash expansion
27089         of pathological directory names.
27090
27091 2009-04-25  Eric Blake  <ebb9@byu.net>
27092
27093         vc-list-files: fix shell quoting error
27094         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
27095         timestamp.
27096
27097 2009-04-25  Jim Meyering  <meyering@redhat.com>
27098
27099         vc-list-files: restore lost functionality with subdir argument
27100         * build-aux/vc-list-files: When given a non-"." sub-directory
27101         argument, substitute the $dir/ prefix back onto each resulting name.
27102         Otherwise, coreutils' root_tests check would fail.
27103
27104 2009-04-24  Eric Blake  <ebb9@byu.net>
27105
27106         vc-list-files: ignore git symlinks
27107         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
27108         than ls-files, to ignore git symlinks.
27109
27110         maint.mk: import improvements from m4
27111         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
27112         (move_if_change): Delete unused macro.
27113         (news-date-check, vc-diff-check): Support VPATH builds.
27114         (announcement): Likewise.  Split --bootstrap-tools list...
27115         (boostrap-tools): ...into separate list, which can be overridden
27116         in cfg.mk.
27117         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
27118         requiring dependency on useless-if-before-free module.
27119         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
27120         Support VPATH builds.
27121
27122 2009-04-24  Jim Meyering  <meyering@redhat.com>
27123
27124         maint.mk: remove coreutils-specific rules and variables
27125         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
27126         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
27127         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
27128
27129         maint.mk: remove obsolete rule
27130         * top/maint.mk (rel-check): Remove rule.
27131         (WGET, WGETFLAGS): Remove now-unused variables.
27132
27133 2009-04-24  Simon Josefsson  <simon@josefsson.org>
27134
27135         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
27136         consistency.
27137
27138         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
27139         '$(PATH_SEPARATOR)' instead of ':'.
27140
27141 2009-04-24  Simon Josefsson  <simon@josefsson.org>
27142
27143         * lib/getopt1.c (main): Use 'const' for static array.
27144
27145 2009-04-24  Simon Josefsson  <simon@josefsson.org>
27146
27147         * top/maint.mk: Sync with coreutils.
27148         * NEWS: Explain incompatibilities.
27149
27150 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27151             Bruno Haible  <bruno@clisp.org>
27152
27153         Fix cross-compilation results.
27154         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
27155         statement, as third argument of AC_TRY_RUN.
27156         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27157         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
27158         Likewise.
27159         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27160         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
27161         Likewise.
27162         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27163         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
27164         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
27165
27166 2009-04-20  Bruno Haible  <bruno@clisp.org>
27167
27168         Avoid test failure on mingw.
27169         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
27170
27171 2009-04-20  Bruno Haible  <bruno@clisp.org>
27172
27173         Avoid compilation error on mingw.
27174         * modules/localename-tests (Depends-on): Add locale.
27175
27176 2009-04-19  Bruno Haible  <bruno@clisp.org>
27177
27178         Support for building a shared library on Windows platforms.
27179         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
27180         (main): Test the presence of UNINORM_NFC here.
27181         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
27182         (main): Test the presence of UNINORM_NFD here.
27183         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
27184         (main): Test the presence of UNINORM_NFKC here.
27185         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
27186         (main): Test the presence of UNINORM_NFKD here.
27187
27188 2009-04-19  Bruno Haible  <bruno@clisp.org>
27189
27190         Avoid a compiler warning.
27191         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
27192         Change type of variable 'sequence'.
27193
27194 2009-04-19  Bruno Haible  <bruno@clisp.org>
27195
27196         * modules/configmake (Makefile.am): When the contents of configmake.h
27197         does not change, arrange to preserve its modification time.
27198
27199 2009-04-17  Simon Josefsson  <simon@josefsson.org>
27200
27201         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
27202         gettext domain.
27203
27204 2009-04-16  Jim Meyering  <meyering@redhat.com>
27205
27206         useless-if-before-free: improve conversion code
27207         * build-aux/useless-if-before-free: Adjust code-in-comment to match
27208         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
27209
27210 2009-04-14  Bruno Haible  <bruno@clisp.org>
27211
27212         * modules/fcntl (Depends-on): Add extensions.
27213         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
27214
27215 2009-04-12  Ben Pfaff  <blp@gnu.org>
27216
27217         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
27218         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
27219
27220 2009-03-20  Ben Pfaff  <blp@gnu.org>
27221
27222         Make rename replace existing destinations on Windows.
27223         * m4/rename.m4: Add test for Mingw.
27224         * lib/rename.c: Add rename replacement that uses MoveFileEx with
27225         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
27226         * doc/posix-functions/rename.texi: Document.
27227
27228 2009-04-10  Bruno Haible  <bruno@clisp.org>
27229
27230         New include file "iconveh.h".
27231         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
27232         * lib/striconveh.h: Include it.
27233         (enum iconv_ilseq_handler): Remove definition.
27234         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
27235         striconveh.h.
27236         * lib/striconveha.c: Include striconveh.h.
27237         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
27238         * modules/striconveh (Files): Add lib/iconveh.h.
27239         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
27240         lib/striconveh.h.
27241
27242 2009-04-10  Bruno Haible  <bruno@clisp.org>
27243
27244         * lib/uniconv.h: Update comment.
27245
27246 2009-04-10  Bruno Haible  <bruno@clisp.org>
27247
27248         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
27249         always.
27250         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
27251         * lib/unistr/u16-mbtouc-aux.c: Likewise.
27252         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
27253         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
27254         "unistring-notinline.h", so that the function gets defined always.
27255         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
27256         * lib/unistr/u8-uctomb.c: Likewise.
27257         * lib/unistr/u16-mbtouc.c: Likewise.
27258         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
27259         * lib/unistr/u16-uctomb.c: Likewise.
27260         * lib/unistr/u32-mbtouc.c: Likewise.
27261         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
27262         * lib/unistr/u32-uctomb.c: Likewise.
27263
27264 2009-04-10  Bruno Haible  <bruno@clisp.org>
27265
27266         Mark 'utime' obsolete.
27267         * modules/utime (Status, Notice): New sections.
27268         Suggested by Jim Meyering.
27269
27270         Fix cross-compile guess for utime test.
27271         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
27272         autoconf.
27273         * doc/posix-functions/utime.texi: Give more precisions.
27274         Reported by Jan <ipif@ymail.com>.
27275
27276 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
27277
27278         filevercmp: correct today's change
27279         * lib/filevercmp.c: Also handle coreutils' test inputs.
27280         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
27281
27282         Fix regression in 'filevercmp' module. Thanks Sven Joachim
27283         for reporting it.
27284         * lib/filevercmp.c: Special handle for "", "." and "..".
27285         * tests/test-filevercmp.c: Enlarge the set suite.
27286
27287 2009-04-07  Jim Meyering  <meyering@redhat.com>
27288
27289         useless-if-before-free: show how to remove braced useless free, too
27290         * build-aux/useless-if-before-free: still only in a comment, though.
27291
27292 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
27293
27294         maint.mk: import changes to syntax-check macros from coreutils
27295         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
27296         Use them in the relevant macros.
27297
27298 2009-04-06  Bruno Haible  <bruno@clisp.org>
27299
27300         Fix unportable use of bit-fields.
27301         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
27302         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
27303         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
27304
27305 2009-04-06  Bruno Haible  <bruno@clisp.org>
27306
27307         Avoid test failures on AIX and OSF/1.
27308         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
27309         that malloc(0) = NULL.
27310         * tests/unicase/test-u8-tolower.c (check): Likewise.
27311         * tests/unicase/test-u8-totitle.c (check): Likewise.
27312         * tests/unicase/test-u8-toupper.c (check): Likewise.
27313         * tests/unicase/test-u16-casefold.c (check): Likewise.
27314         * tests/unicase/test-u16-tolower.c (check): Likewise.
27315         * tests/unicase/test-u16-totitle.c (check): Likewise.
27316         * tests/unicase/test-u16-toupper.c (check): Likewise.
27317         * tests/unicase/test-u32-casefold.c (check): Likewise.
27318         * tests/unicase/test-u32-tolower.c (check): Likewise.
27319         * tests/unicase/test-u32-totitle.c (check): Likewise.
27320         * tests/unicase/test-u32-toupper.c (check): Likewise.
27321         * tests/uninorm/test-u8-nfc.c (check): Likewise.
27322         * tests/uninorm/test-u8-nfd.c (check): Likewise.
27323         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
27324         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
27325         * tests/uninorm/test-u16-nfc.c (check): Likewise.
27326         * tests/uninorm/test-u16-nfd.c (check): Likewise.
27327         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
27328         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
27329         * tests/uninorm/test-u32-nfc.c (check): Likewise.
27330         * tests/uninorm/test-u32-nfd.c (check): Likewise.
27331         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
27332         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
27333
27334 2009-04-05  Bruno Haible  <bruno@clisp.org>
27335
27336         Work around an autoconf limitation.
27337         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
27338         comment line if it would be longer than 3 KB.
27339
27340 2009-04-05  Bruno Haible  <bruno@clisp.org>
27341
27342         Avoid test failure with libiconv-1.13.
27343         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
27344         of the expected test results.
27345
27346 2009-04-05  Bruno Haible  <bruno@clisp.org>
27347
27348         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
27349         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
27350         that it should be installed.
27351
27352 2009-04-05  Bruno Haible  <bruno@clisp.org>
27353
27354         * gnulib-tool: New option --copy-file.
27355         (func_usage): Document it.
27356         (func_dest_tmpfilename): Moved out of func_import.
27357         (func_add_file, func_update_file): New functions, extracted from
27358         func_import.
27359         (func_import): Update.
27360
27361 2009-04-05  Karl Berry  <karl@gnu.org>
27362
27363         * README: prominently mention gnulib-tool.
27364         Rearrange sections so getting the code is near the top.
27365
27366 2009-04-05  Bruno Haible  <bruno@clisp.org>
27367
27368         * lib/unicase.h: Mention u*_cmp2.
27369         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
27370         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
27371         * lib/unicase/ulc-casecmp.c: Likewise.
27372         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
27373         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
27374         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
27375         unistr/u8-cmp.
27376         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
27377         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
27378         unistr/u16-cmp.
27379         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
27380         unistr/u32-cmp.
27381
27382         * lib/uninorm.h: Mention u*_cmp2.
27383         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
27384         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
27385         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
27386         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
27387         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
27388         unistr/u8-cmp.
27389         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
27390         unistr/u16-cmp.
27391         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
27392         unistr/u32-cmp.
27393
27394         New module 'unistr/u32-cmp2'.
27395         * lib/unistr/u32-cmp2.c: New file.
27396         * modules/unistr/u32-cmp2: New file.
27397
27398         New module 'unistr/u16-cmp2'.
27399         * lib/unistr/u16-cmp2.c: New file.
27400         * modules/unistr/u16-cmp2: New file.
27401
27402         New module 'unistr/u8-cmp2'.
27403         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
27404         * lib/unistr/u8-cmp2.c: New file.
27405         * lib/unistr/u-cmp2.h: New file.
27406         * modules/unistr/u8-cmp2: New file.
27407
27408 2009-04-05  Bruno Haible  <bruno@clisp.org>
27409
27410         * lib/unictype.h (uc_property_is_valid): New macro.
27411         * tests/unictype/test-pr_byname.c (main): Use it.
27412
27413         * lib/unistr.h: Doc fixes.
27414         * lib/uniconv.h: Doc fixes.
27415         * lib/unictype.h: Doc fixes.
27416
27417 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
27418
27419         Port coreutils 7.2 to Solaris 8.
27420
27421         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
27422         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
27423         for Solaris 8.  This is a bit of a hack, as it means it's the
27424         caller's responsibility to add -lnsl if needed, but most likely it
27425         won't be needed since only getaddrinfo uses this and getaddrinfo
27426         isn't needed on Solaris 8.
27427
27428         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
27429         problem to Solaris 8 encountered with coreutils 7.2, which
27430         resulted in a message "fnmatch.c:292: warning: passing argument 4
27431         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
27432         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
27433
27434 2009-04-03  Simon Josefsson  <simon@josefsson.org>
27435
27436         * m4/ld-version-script.m4: Add FIXME comment.
27437
27438 2009-04-02  Simon Josefsson  <simon@josefsson.org>
27439
27440         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
27441         SOVERSION variable.
27442
27443 2009-04-02  Bruno Haible  <bruno@clisp.org>
27444
27445         * Makefile (info, html, dvi, pdf): Combine the rules.
27446         Suggested by Jim Meyering.
27447
27448 2009-04-01  Bruno Haible  <bruno@clisp.org>
27449
27450         * Makefile (info, html, dvi, pdf): New targets.
27451         Reported by Reuben Thomas <rrt@sc3d.org>.
27452
27453 2009-04-01  Bruno Haible  <bruno@clisp.org>
27454
27455         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
27456         can be put into PATH.
27457         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
27458
27459 2009-04-01  Bruno Haible  <bruno@clisp.org>
27460
27461         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
27462
27463 2009-04-01  Bruno Haible  <bruno@clisp.org>
27464
27465         Rename module 'visibility'.
27466         * modules/lib-symbol-visibility: Renamed from modules/visibility.
27467         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
27468         * doc/gnulib.texi: Update.
27469         * MODULES.html.sh (Misc): Update.
27470         * NEWS: Mention the change.
27471
27472 2009-04-01  Simon Josefsson  <simon@josefsson.org>
27473
27474         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
27475         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
27476         Eric Blake <ebb9@byu.net> for review.
27477         * MODULES.html.sh: Add lib-msvc-compat.
27478         * doc/gnulib.texi: Link to new section.
27479         * m4/ld-output-def.m4: New file.
27480         * doc/ld-output-def.texi: New file.
27481
27482 2009-04-01  Simon Josefsson  <simon@josefsson.org>
27483
27484         Rename ld-version-script to lib-symbol-versions.  Suggested by
27485         Bruno Haible <bruno@clisp.org>.
27486         * modules/ld-version-script: Renamed to lib-symbol-versions.
27487         * doc/ld-version-script.texi: Fix module name.
27488         * MODULES.html.sh: Add lib-symbol-versions.
27489
27490 2009-03-31  Simon Josefsson  <simon@josefsson.org>
27491
27492         * modules/u64-tests: New file.
27493         * tests/test-u64.c: New file.
27494
27495 2009-03-04  Simon Josefsson  <simon@josefsson.org>
27496
27497         * MODULES.html.sh: Mention u64.
27498         * modules/u64: New module.
27499         * modules/crypto/sha512: Depend on u64 module instead of providing
27500         u64.h.
27501
27502 2009-03-27  Eric Blake  <ebb9@byu.net>
27503
27504         test-strerror: make debugging EAI_SYSTEM easier
27505         * modules/getaddrinfo-tests (Depends-on): Add strerror.
27506         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
27507         failure was EAI_SYSTEM.
27508
27509 2009-03-25  Bruno Haible  <bruno@clisp.org>
27510
27511         Fix a problem with --enable-relocatable on Solaris 7.
27512         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
27513         since 2008-02-24.
27514
27515 2009-03-25  Eric Blake  <ebb9@byu.net>
27516
27517         test-sockets: avoid gcc warning
27518         * tests/test-sockets.c (main): Silence compiler warning.
27519
27520 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
27521
27522         New modules nproc, pthread, contributed by Glen Lenker.
27523
27524         * MODULES.html.sh: Add pthread, nproc.
27525         * lib/nproc.c: New file.
27526         * lib/nproc.h: New file.
27527         * lib/pthread.in.h: New file.
27528         * m4/pthread.m4: New file.
27529         * modules/nproc: New file.
27530         * modules/pthread: New file.
27531
27532 2009-03-24  Simon Josefsson  <simon@josefsson.org>
27533
27534         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
27535         New variable.
27536
27537 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
27538
27539         filevercmp: handle simple~ and numbered.~3~ backup suffixes
27540         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
27541         * tests/test-filevercmp.c: Add tests for backup suffixes.
27542
27543 2009-03-24  Simon Josefsson  <simon@josefsson.org>
27544
27545         * modules/stdlib (Depends-on): Add stdint, needed when defining
27546         struct random_data on, for example, HP-UX 10.20.  Reported by
27547         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27548
27549 2009-03-24  Simon Josefsson  <simon@josefsson.org>
27550
27551         * lib/readline.c (readline): Call fflush on stdout after printing
27552         prompt.
27553
27554 2009-03-20  Bruno Haible  <bruno@clisp.org>
27555
27556         Remove dependency from 'close' module to -lws2_32 on native Windows.
27557         * lib/close-hook.h: New file.
27558         * lib/close-hook.c: New file.
27559         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
27560         w32sock.h.
27561         (_gl_close_fd_maybe_socket): Remove function.
27562         (rpl_close): Invoke execute_all_close_hooks instead of
27563         _gl_close_fd_maybe_socket.
27564         * lib/sockets.c: Include close-hook.h, w32sock.h.
27565         (close_fd_maybe_socket): New function, essentially from lib/close.c.
27566         (close_sockets_hook): New variable.
27567         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
27568         (gl_sockets_cleanup): Unregister it.
27569         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
27570         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
27571         * modules/close-hook: New file.
27572         * modules/close (Files): Remove lib/w32sock.h.
27573         (Depends-on): Add close-hook.
27574         (Link): Remove section.
27575         * modules/sockets (Files): Add lib/w32sock.h.
27576         (Depends-on): Add close-hook.
27577         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
27578         invocation.
27579         * NEWS: Mention that LIB_CLOSE is gone.
27580
27581 2009-03-23  Eric Blake  <ebb9@byu.net>
27582
27583         signal-tests: test previous patch
27584         * tests/test-signal.c: New file.
27585         * modules/signal-tests: Likewise.
27586
27587         signal.h: always support 'volatile sig_atomic_t'
27588         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
27589         (gl_SIGNAL_H_DEFAULTS): Add a default.
27590         * modules/signal (Makefile.am): Substitute if needed.
27591         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
27592         users can blindly add volatile.
27593         * doc/posix-headers/signal.texi (signal.h): Document it.
27594         Reported by Matthew Woehlke.
27595
27596 2009-03-23  Jim Meyering  <meyering@redhat.com>
27597
27598         pathmax: PATH_MAX: use pathconf only when available
27599         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
27600         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
27601         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
27602         This avoids a link failure in a PSP cross-compilation environment
27603         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
27604
27605         * lib/vasnprintf.c (divide): Fix typo in comment.
27606
27607 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27608
27609         * gnulib-tool (func_filter_filelist): Fix comment.
27610
27611 2009-03-20  Bruno Haible  <bruno@clisp.org>
27612
27613         Make sockets.h self-contained.
27614         * lib/sockets.c: Include sockets.h first.
27615         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
27616
27617 2009-03-19  Eric Blake  <ebb9@byu.net>
27618
27619         doc: mention more functions added in cygwin 1.7.0
27620         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
27621         addition.
27622         * doc/posix-functions/log2f.texi: Likewise.
27623
27624 2009-03-19  Jim Meyering  <meyering@redhat.com>
27625
27626         fsusage: avoid syntax error due to statement-before-declaration
27627         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
27628         after all declarations.  Reported by Matthew Woehlke in
27629         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
27630
27631 2009-03-18  Eric Blake  <ebb9@byu.net>
27632
27633         build-aux/compile: sync from automake
27634         * build-aux/compile: New file, from automake.
27635         * config/srclist.txt: Mention build-aux/compile.
27636
27637 2009-03-17  Bruno Haible  <bruno@clisp.org>
27638
27639         * lib/git-merge-changelog.c: Fix typo in comment.
27640         Reported by Reuben Thomas <rrt@sc3d.org>.
27641
27642 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
27643
27644         * m4/regex.m4: update and improve help for
27645         --without-included-regex.
27646
27647 2009-03-17  Simon Josefsson  <simon@josefsson.org>
27648
27649         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
27650         failure on missing include files.
27651
27652 2009-03-17  Eric Blake  <ebb9@byu.net>
27653
27654         doc: mention more functions added in cygwin 1.7.0
27655         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
27656         addition.
27657         * doc/posix-functions/fwscanf.texi: Likewise.
27658         * doc/posix-functions/swprintf.texi: Likewise.
27659         * doc/posix-functions/swscanf.texi: Likewise.
27660         * doc/posix-functions/vfwprintf.texi: Likewise.
27661         * doc/posix-functions/vfwscanf.texi: Likewise.
27662         * doc/posix-functions/vswprintf.texi: Likewise.
27663         * doc/posix-functions/vswscanf.texi: Likewise.
27664         * doc/posix-functions/vwprintf.texi: Likewise.
27665         * doc/posix-functions/vwscanf.texi: Likewise.
27666         * doc/posix-functions/wcscasecmp.texi: Likewise.
27667         * doc/posix-functions/wcsdup.texi: Likewise.
27668         * doc/posix-functions/wcsftime.texi: Likewise.
27669         * doc/posix-functions/wcsncasecmp.texi: Likewise.
27670         * doc/posix-functions/wprintf.texi: Likewise.
27671         * doc/posix-functions/wscanf.texi: Likewise.
27672         * doc/glibc-functions/gethostbyname2.texi: Likewise.
27673
27674 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27675
27676         maint.mk: really add $(AM_MAKEFLAGS)
27677         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
27678         was inadvertently omitted in the last commit.
27679         Spotted by Bruno Haible.
27680
27681         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
27682         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
27683         $(AM_MAKEFLAGS)' rather than plain `make'.
27684
27685         gnulib-tool: execute $MAKE not make
27686         * gnulib-tool: Default $MAKE to 'make'.
27687         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
27688         than make.  Initialize $MAKE in the do-autobuild script.
27689
27690         gnulib-tool: use $MAKE not make in generated files
27691         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
27692         make, in generated files.  Initialize $MAKE in the do-autobuild
27693         script.
27694
27695         * top/GNUmakefile (_have-git-version-gen): Fix typo.
27696
27697         GNUmakefile: disable parallelism only for multiple, recursive targets
27698         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
27699         additions in the Makefile.
27700         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
27701         by Automake.
27702         (.NOTPARALLEL): Only disable parallel builds if multiple targets
27703         are listed on the command line and at least one of them is
27704         listed in $(ALL_RECURSIVE_TARGETS).
27705
27706 2009-03-14  Bruno Haible  <bruno@clisp.org>
27707
27708         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
27709         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
27710         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
27711         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
27712         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
27713         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
27714         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
27715         unistr/u8-uctomb.
27716         * modules/unistr/u8-strchr (Depends-on): Likewise.
27717         * modules/unistr/u8-strrchr (Depends-on): Likewise.
27718         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
27719         unistr/u16-uctomb.
27720         * modules/unistr/u16-strchr (Depends-on): Likewise.
27721         * modules/unistr/u16-strrchr (Depends-on): Likewise.
27722
27723 2009-03-12  Bruno Haible  <bruno@clisp.org>
27724
27725         Work around select() bug on Interix 3.5.
27726         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
27727         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
27728         * m4/select.m4: New file.
27729         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
27730         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
27731         * modules/select (Files): Add m4/select.m4.
27732         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
27733         * modules/nanosleep (Depends-on): Add select.
27734         * modules/poll (Depends-on): Likewise.
27735         * doc/posix-functions/select.texi: Mention the Interix bug.
27736         Reported by Markus Duft <mduft@gentoo.org>.
27737
27738         * lib/select.c: Renamed from lib/winsock-select.c.
27739         * modules/select (Files): Add lib/select.c, remove
27740         lib/winsock-select.c.
27741         (configure.ac): Update.
27742
27743 2009-03-12  Jim Meyering  <meyering@redhat.com>
27744
27745         avoid gcc warnings about unused macro definitions
27746         * lib/readtokens.c (STREQ): Remove unused definition.
27747         * lib/xmalloc.c (SIZE_MAX): Likewise.
27748         * lib/openat-die.c (N_): Likewise.
27749         * lib/mountlist.c (SIZE_MAX): Remove definition.
27750         Instead, include <stdint.h>.
27751         * lib/readutmp.c: Likewise.
27752         * modules/readutmp (Depends-on): Add stdint.
27753         * modules/mountlist (Depends-on): Add stdint.
27754         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
27755
27756 2009-03-10  Bruno Haible  <bruno@clisp.org>
27757
27758         Tests for module 'mbmemcasecoll'.
27759         * modules/mbmemcasecoll-tests: New file.
27760         * tests/test-mbmemcasecoll1.sh: New file.
27761         * tests/test-mbmemcasecoll2.sh: New file.
27762         * tests/test-mbmemcasecoll3.sh: New file.
27763         * tests/test-mbmemcasecoll.c: New file.
27764
27765         New module 'mbmemcasecoll'.
27766         * lib/mbmemcasecoll.h: New file.
27767         * lib/mbmemcasecoll.c: New file.
27768         * modules/mbmemcasecoll: New file.
27769
27770         * tests/test-mbmemcasecmp.h: New file, extracted from
27771         tests/test-mbmemcasecmp.c.
27772         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
27773         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
27774         (main): Update.
27775         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
27776
27777 2009-03-09  Bruno Haible  <bruno@clisp.org>
27778
27779         Tests for module 'mbmemcasecmp'.
27780         * modules/mbmemcasecmp-tests: New file.
27781         * tests/test-mbmemcasecmp1.sh: New file.
27782         * tests/test-mbmemcasecmp2.sh: New file.
27783         * tests/test-mbmemcasecmp3.sh: New file.
27784         * tests/test-mbmemcasecmp.c: New file.
27785
27786         New module 'mbmemcasecmp'.
27787         * lib/mbmemcasecmp.h: New file.
27788         * lib/mbmemcasecmp.c: New file.
27789         * modules/mbmemcasecmp: New file.
27790
27791 2009-03-09  Bruno Haible  <bruno@clisp.org>
27792
27793         Tests for module 'unicase/ulc-casecoll'.
27794         * modules/unicase/ulc-casecoll-tests: New file.
27795         * tests/unicase/test-ulc-casecoll1.sh: New file.
27796         * tests/unicase/test-ulc-casecoll2.sh: New file.
27797         * tests/unicase/test-ulc-casecoll.c: New file.
27798
27799         New module 'unicase/ulc-casecoll'.
27800         * lib/unicase.h (ulc_casecoll): New declaration.
27801         * lib/unicase/ulc-casecoll.c: New file.
27802         * modules/unicase/ulc-casecoll: New file.
27803
27804         New module 'unicase/ulc-casexfrm'.
27805         * lib/unicase.h (ulc_casexfrm): New declaration.
27806         * lib/unicase/ulc-casexfrm.c: New file.
27807         * modules/unicase/ulc-casexfrm: New file.
27808
27809 2009-03-09  Bruno Haible  <bruno@clisp.org>
27810
27811         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
27812         invocations.
27813
27814         * m4/mbscasecmp.m4: Remove file.
27815         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
27816         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
27817
27818         * m4/mbscasestr.m4: Remove file.
27819         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
27820         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
27821
27822         * m4/mbschr.m4: Remove file.
27823         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
27824         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
27825
27826         * m4/mbscspn.m4: Remove file.
27827         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
27828         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
27829
27830         * m4/mbslen.m4: Remove file.
27831         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
27832         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
27833
27834         * m4/mbsncasecmp.m4: Remove file.
27835         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
27836         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
27837
27838         * m4/mbsnlen.m4: Remove file.
27839         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
27840         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
27841
27842         * m4/mbspbrk.m4: Remove file.
27843         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
27844         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
27845
27846         * m4/mbspcasecmp.m4: Remove file.
27847         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
27848         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
27849
27850         * m4/mbsrchr.m4: Remove file.
27851         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
27852         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
27853
27854         * m4/mbssep.m4: Remove file.
27855         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
27856         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
27857
27858         * m4/mbsspn.m4: Remove file.
27859         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
27860         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
27861
27862         * m4/mbsstr.m4: Remove file.
27863         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
27864         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
27865
27866         * m4/mbstok_r.m4: Remove file.
27867         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
27868         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
27869
27870         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
27871
27872         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
27873         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
27874
27875         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
27876
27877 2009-03-08  Bruno Haible  <bruno@clisp.org>
27878
27879         Tests for module 'unicase/ulc-casecmp'.
27880         * modules/unicase/ulc-casecmp-tests: New file.
27881         * tests/unicase/test-ulc-casecmp1.sh: New file.
27882         * tests/unicase/test-ulc-casecmp2.sh: New file.
27883         * tests/unicase/test-ulc-casecmp.c: New file.
27884
27885         New module 'unicase/ulc-casecmp'.
27886         * lib/unicase.h (ulc_casecmp): New declaration.
27887         * lib/unicase/ulc-casecmp.c: New file.
27888         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
27889         'const SRC_UNIT *'.
27890         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
27891         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
27892         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
27893         * modules/unicase/ulc-casecmp: New file.
27894
27895         Tests for module 'unicase/u32-is-cased'.
27896         * modules/unicase/u32-is-cased-tests: New file.
27897         * tests/unicase/test-u32-is-cased.c: New file.
27898
27899         Tests for module 'unicase/u16-is-cased'.
27900         * modules/unicase/u16-is-cased-tests: New file.
27901         * tests/unicase/test-u16-is-cased.c: New file.
27902
27903         Tests for module 'unicase/u8-is-cased'.
27904         * modules/unicase/u8-is-cased-tests: New file.
27905         * tests/unicase/test-u8-is-cased.c: New file.
27906         * tests/unicase/test-is-cased.h: New file.
27907
27908         New module 'unicase/u32-is-cased'.
27909         * lib/unicase/u32-is-cased.c: New file.
27910         * modules/unicase/u32-is-cased: New file.
27911
27912         New module 'unicase/u16-is-cased'.
27913         * lib/unicase/u16-is-cased.c: New file.
27914         * modules/unicase/u16-is-cased: New file.
27915
27916         New module 'unicase/u8-is-cased'.
27917         * lib/unicase/u8-is-cased.c: New file.
27918         * lib/unicase/u-is-cased.h: New file.
27919         * modules/unicase/u8-is-cased: New file.
27920
27921         Tests for module 'unicase/u32-is-casefolded'.
27922         * modules/unicase/u32-is-casefolded-tests: New file.
27923         * tests/unicase/test-u32-is-casefolded.c: New file.
27924
27925         Tests for module 'unicase/u16-is-casefolded'.
27926         * modules/unicase/u16-is-casefolded-tests: New file.
27927         * tests/unicase/test-u16-is-casefolded.c: New file.
27928
27929         Tests for module 'unicase/u8-is-casefolded'.
27930         * modules/unicase/u8-is-casefolded-tests: New file.
27931         * tests/unicase/test-u8-is-casefolded.c: New file.
27932         * tests/unicase/test-is-casefolded.h: New file.
27933
27934         New module 'unicase/u32-is-casefolded'.
27935         * lib/unicase/u32-is-casefolded.c: New file.
27936         * modules/unicase/u32-is-casefolded: New file.
27937
27938         New module 'unicase/u16-is-casefolded'.
27939         * lib/unicase/u16-is-casefolded.c: New file.
27940         * modules/unicase/u16-is-casefolded: New file.
27941
27942         New module 'unicase/u8-is-casefolded'.
27943         * lib/unicase/u8-is-casefolded.c: New file.
27944         * modules/unicase/u8-is-casefolded: New file.
27945
27946         Tests for module 'unicase/u32-is-titlecase'.
27947         * modules/unicase/u32-is-titlecase-tests: New file.
27948         * tests/unicase/test-u32-is-titlecase.c: New file.
27949
27950         Tests for module 'unicase/u16-is-titlecase'.
27951         * modules/unicase/u16-is-titlecase-tests: New file.
27952         * tests/unicase/test-u16-is-titlecase.c: New file.
27953
27954         Tests for module 'unicase/u8-is-titlecase'.
27955         * modules/unicase/u8-is-titlecase-tests: New file.
27956         * tests/unicase/test-u8-is-titlecase.c: New file.
27957         * tests/unicase/test-is-titlecase.h: New file.
27958
27959         New module 'unicase/u32-is-titlecase'.
27960         * lib/unicase/u32-is-titlecase.c: New file.
27961         * modules/unicase/u32-is-titlecase: New file.
27962
27963         New module 'unicase/u16-is-titlecase'.
27964         * lib/unicase/u16-is-titlecase.c: New file.
27965         * modules/unicase/u16-is-titlecase: New file.
27966
27967         New module 'unicase/u8-is-titlecase'.
27968         * lib/unicase/u8-is-titlecase.c: New file.
27969         * modules/unicase/u8-is-titlecase: New file.
27970
27971         Tests for module 'unicase/u32-is-lowercase'.
27972         * modules/unicase/u32-is-lowercase-tests: New file.
27973         * tests/unicase/test-u32-is-lowercase.c: New file.
27974
27975         Tests for module 'unicase/u16-is-lowercase'.
27976         * modules/unicase/u16-is-lowercase-tests: New file.
27977         * tests/unicase/test-u16-is-lowercase.c: New file.
27978
27979         Tests for module 'unicase/u8-is-lowercase'.
27980         * modules/unicase/u8-is-lowercase-tests: New file.
27981         * tests/unicase/test-u8-is-lowercase.c: New file.
27982         * tests/unicase/test-is-lowercase.h: New file.
27983
27984         New module 'unicase/u32-is-lowercase'.
27985         * lib/unicase/u32-is-lowercase.c: New file.
27986         * modules/unicase/u32-is-lowercase: New file.
27987
27988         New module 'unicase/u16-is-lowercase'.
27989         * lib/unicase/u16-is-lowercase.c: New file.
27990         * modules/unicase/u16-is-lowercase: New file.
27991
27992         New module 'unicase/u8-is-lowercase'.
27993         * lib/unicase/u8-is-lowercase.c: New file.
27994         * modules/unicase/u8-is-lowercase: New file.
27995
27996         Tests for module 'unicase/u32-is-uppercase'.
27997         * modules/unicase/u32-is-uppercase-tests: New file.
27998         * tests/unicase/test-u32-is-uppercase.c: New file.
27999
28000         Tests for module 'unicase/u16-is-uppercase'.
28001         * modules/unicase/u16-is-uppercase-tests: New file.
28002         * tests/unicase/test-u16-is-uppercase.c: New file.
28003
28004         Tests for module 'unicase/u8-is-uppercase'.
28005         * modules/unicase/u8-is-uppercase-tests: New file.
28006         * tests/unicase/test-u8-is-uppercase.c: New file.
28007         * tests/unicase/test-is-uppercase.h: New file.
28008
28009         New module 'unicase/u32-is-uppercase'.
28010         * lib/unicase/u32-is-uppercase.c: New file.
28011         * modules/unicase/u32-is-uppercase: New file.
28012
28013         New module 'unicase/u16-is-uppercase'.
28014         * lib/unicase/u16-is-uppercase.c: New file.
28015         * modules/unicase/u16-is-uppercase: New file.
28016
28017         New module 'unicase/u8-is-uppercase'.
28018         * lib/unicase/u8-is-uppercase.c: New file.
28019         * modules/unicase/u8-is-uppercase: New file.
28020
28021         New module 'unicase/u32-is-invariant'.
28022         * lib/unicase/u32-is-invariant.c: New file.
28023         * modules/unicase/u32-is-invariant: New file.
28024
28025         New module 'unicase/u16-is-invariant'.
28026         * lib/unicase/u16-is-invariant.c: New file.
28027         * modules/unicase/u16-is-invariant: New file.
28028
28029         New module 'unicase/u8-is-invariant'.
28030         * lib/unicase/u8-is-invariant.c: New file.
28031         * lib/unicase/invariant.h: New file.
28032         * lib/unicase/u-is-invariant.h: New file.
28033         * modules/unicase/u8-is-invariant: New file.
28034
28035         Tests for module 'unicase/u32-casecoll'.
28036         * modules/unicase/u32-casecoll-tests: New file.
28037         * tests/unicase/test-u32-casecoll.c: New file.
28038
28039         Tests for module 'unicase/u16-casecoll'.
28040         * modules/unicase/u16-casecoll-tests: New file.
28041         * tests/unicase/test-u16-casecoll.c: New file.
28042
28043         Tests for module 'unicase/u8-casecoll'.
28044         * modules/unicase/u8-casecoll-tests: New file.
28045         * tests/unicase/test-u8-casecoll.c: New file.
28046
28047         New module 'unicase/u32-casecoll'.
28048         * lib/unicase/u32-casecoll.c: New file.
28049         * modules/unicase/u32-casecoll: New file.
28050
28051         New module 'unicase/u16-casecoll'.
28052         * lib/unicase/u16-casecoll.c: New file.
28053         * modules/unicase/u16-casecoll: New file.
28054
28055         New module 'unicase/u8-casecoll'.
28056         * lib/unicase/u8-casecoll.c: New file.
28057         * lib/unicase/u-casecoll.h: New file.
28058         * modules/unicase/u8-casecoll: New file.
28059
28060         New module 'unicase/u32-casexfrm'.
28061         * lib/unicase/u32-casexfrm.c: New file.
28062         * modules/unicase/u32-casexfrm: New file.
28063
28064         New module 'unicase/u16-casexfrm'.
28065         * lib/unicase/u16-casexfrm.c: New file.
28066         * modules/unicase/u16-casexfrm: New file.
28067
28068         New module 'unicase/u8-casexfrm'.
28069         * lib/unicase/u8-casexfrm.c: New file.
28070         * lib/unicase/u-casexfrm.h: New file.
28071         * modules/unicase/u8-casexfrm: New file.
28072
28073         Tests for module 'unicase/u32-casecmp'.
28074         * modules/unicase/u32-casecmp-tests: New file.
28075         * tests/unicase/test-u32-casecmp.c: New file.
28076
28077         Tests for module 'unicase/u16-casecmp'.
28078         * modules/unicase/u16-casecmp-tests: New file.
28079         * tests/unicase/test-u16-casecmp.c: New file.
28080
28081         Tests for module 'unicase/u8-casecmp'.
28082         * modules/unicase/u8-casecmp-tests: New file.
28083         * tests/unicase/test-u8-casecmp.c: New file.
28084         * tests/unicase/test-casecmp.h: New file.
28085
28086         New module 'unicase/u32-casecmp'.
28087         * lib/unicase/u32-casecmp.c: New file.
28088         * modules/unicase/u32-casecmp: New file.
28089
28090         New module 'unicase/u16-casecmp'.
28091         * lib/unicase/u16-casecmp.c: New file.
28092         * modules/unicase/u16-casecmp: New file.
28093
28094         New module 'unicase/u8-casecmp'.
28095         * lib/unicase/u8-casecmp.c: New file.
28096         * lib/unicase/u-casecmp.h: New file.
28097         * modules/unicase/u8-casecmp: New file.
28098
28099         Tests for module 'unicase/u32-casefold'.
28100         * modules/unicase/u32-casefold-tests: New file.
28101         * tests/unicase/test-u32-casefold.c: New file.
28102
28103         Tests for module 'unicase/u16-casefold'.
28104         * modules/unicase/u16-casefold-tests: New file.
28105         * tests/unicase/test-u16-casefold.c: New file.
28106
28107         Tests for module 'unicase/u8-casefold'.
28108         * modules/unicase/u8-casefold-tests: New file.
28109         * tests/unicase/test-u8-casefold.c: New file.
28110
28111         New module 'unicase/u32-casefold'.
28112         * lib/unicase/u32-casefold.c: New file.
28113         * modules/unicase/u32-casefold: New file.
28114
28115         New module 'unicase/u16-casefold'.
28116         * lib/unicase/u16-casefold.c: New file.
28117         * modules/unicase/u16-casefold: New file.
28118
28119         New module 'unicase/u8-casefold'.
28120         * lib/unicase/u8-casefold.c: New file.
28121         * lib/unicase/u-casefold.h: New file.
28122         * modules/unicase/u8-casefold: New file.
28123
28124         New module 'unicase/tocasefold'.
28125         * lib/unicase/casefold.h: New file.
28126         * lib/unicase/tocasefold.c: New file.
28127         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
28128         * modules/unicase/tocasefold: New file.
28129
28130         Tests for module 'unicase/u32-totitle'.
28131         * modules/unicase/u32-totitle-tests: New file.
28132         * tests/unicase/test-u32-totitle.c: New file.
28133
28134         Tests for module 'unicase/u16-totitle'.
28135         * modules/unicase/u16-totitle-tests: New file.
28136         * tests/unicase/test-u16-totitle.c: New file.
28137
28138         Tests for module 'unicase/u8-totitle'.
28139         * modules/unicase/u8-totitle-tests: New file.
28140         * tests/unicase/test-u8-totitle.c: New file.
28141
28142         New module 'unicase/u32-totitle'.
28143         * lib/unicase/u32-totitle.c: New file.
28144         * modules/unicase/u32-totitle: New file.
28145
28146         New module 'unicase/u16-totitle'.
28147         * lib/unicase/u16-totitle.c: New file.
28148         * modules/unicase/u16-totitle: New file.
28149
28150         New module 'unicase/u8-totitle'.
28151         * lib/unicase/u8-totitle.c: New file.
28152         * lib/unicase/u-totitle.h: New file.
28153         * modules/unicase/u8-totitle: New file.
28154
28155         Tests for module 'unicase/u32-tolower'.
28156         * modules/unicase/u32-tolower-tests: New file.
28157         * tests/unicase/test-u32-tolower.c: New file.
28158
28159         Tests for module 'unicase/u16-tolower'.
28160         * modules/unicase/u16-tolower-tests: New file.
28161         * tests/unicase/test-u16-tolower.c: New file.
28162
28163         Tests for module 'unicase/u8-tolower'.
28164         * modules/unicase/u8-tolower-tests: New file.
28165         * tests/unicase/test-u8-tolower.c: New file.
28166
28167         New module 'unicase/u32-tolower'.
28168         * lib/unicase/u32-tolower.c: New file.
28169         * modules/unicase/u32-tolower: New file.
28170
28171         New module 'unicase/u16-tolower'.
28172         * lib/unicase/u16-tolower.c: New file.
28173         * modules/unicase/u16-tolower: New file.
28174
28175         New module 'unicase/u8-tolower'.
28176         * lib/unicase/u8-tolower.c: New file.
28177         * modules/unicase/u8-tolower: New file.
28178
28179         Tests for module 'unicase/u32-toupper'.
28180         * modules/unicase/u32-toupper-tests: New file.
28181         * tests/unicase/test-u32-toupper.c: New file.
28182
28183         Tests for module 'unicase/u16-toupper'.
28184         * modules/unicase/u16-toupper-tests: New file.
28185         * tests/unicase/test-u16-toupper.c: New file.
28186
28187         Tests for module 'unicase/u8-toupper'.
28188         * modules/unicase/u8-toupper-tests: New file.
28189         * tests/unicase/test-u8-toupper.c: New file.
28190
28191         New module 'unicase/u32-toupper'.
28192         * lib/unicase/u32-toupper.c: New file.
28193         * modules/unicase/u32-toupper: New file.
28194
28195         New module 'unicase/u16-toupper'.
28196         * lib/unicase/u16-toupper.c: New file.
28197         * modules/unicase/u16-toupper: New file.
28198
28199         New module 'unicase/u8-toupper'.
28200         * lib/unicase/u8-toupper.c: New file.
28201         * modules/unicase/u8-toupper: New file.
28202
28203         New module 'unicase/u32-casemap'.
28204         * lib/unicase/u32-casemap.c: New file.
28205         * modules/unicase/u32-casemap: New file.
28206
28207         New module 'unicase/u16-casemap'.
28208         * lib/unicase/u16-casemap.c: New file.
28209         * modules/unicase/u16-casemap: New file.
28210
28211         New module 'unicase/u8-casemap'.
28212         * lib/unicase/unicasemap.h: New file.
28213         * lib/unicase/u8-casemap.c: New file.
28214         * lib/unicase/u-casemap.h: New file.
28215         * modules/unicase/u8-casemap: New file.
28216
28217         New module 'unicase/special-casing'.
28218         * lib/unicase/special-casing.h: New file.
28219         * lib/unicase/special-casing.c: New file.
28220         * lib/unicase/special-casing-table.gperf: New file, generated by
28221         gen-uni-tables.c.
28222         * modules/unicase/special-casing: New file.
28223
28224         Tests for module 'unicase/locale-language'.
28225         * modules/unicase/locale-language-tests: New file.
28226         * tests/unicase/test-locale-language.sh: New file.
28227         * tests/unicase/test-locale-language.c: New file.
28228
28229         New module 'unicase/locale-language'.
28230         * lib/unicase/locale-language.c: New file.
28231         * lib/unicase/locale-languages.gperf: New file.
28232         * modules/unicase/locale-language: New file.
28233
28234         Generate more tables for case conversion and case folding.
28235         * lib/gen-uni-tables.c (SCC_*): New enum items.
28236         (struct special_casing_rule): New type.
28237         (casing_rules, num_casing_rules, allocated_casing_rules): New
28238         variables.
28239         (add_casing_rule, fill_casing_rules): New functions.
28240         (struct casefold_rule): New type.
28241         (casefolding_rules, num_casefolding_rules,
28242         allocated_casefolding_rules): New variables.
28243         (fill_casefolding_rules): New function.
28244         (unicode_casefold): New variable.
28245         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
28246         sort_casing_rules, output_casing_rules): New functions.
28247         (main): Accept to more arguments: SpecialCasing.txt and
28248         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
28249         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
28250         Output mapping for casefolding.
28251
28252         * lib/unicase.h: Include stdbool.h, uninorm.h.
28253         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
28254         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
28255         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
28256         arguments.
28257         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
28258         resultp arguments.
28259         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
28260         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
28261         resultp arguments.
28262         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
28263         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
28264         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
28265         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
28266         declarations.
28267         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
28268
28269 2009-03-08  Bruno Haible  <bruno@clisp.org>
28270
28271         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
28272         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
28273         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
28274         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
28275
28276 2009-03-07  Bruno Haible  <bruno@clisp.org>
28277
28278         Adjust u*_normcmp, u*_normcoll API.
28279         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
28280         u16_normcoll, u32_normcoll): Change failure conventions.
28281         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
28282         errno and return -1.
28283         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
28284
28285 2009-03-07  Bruno Haible  <bruno@clisp.org>
28286
28287         Tests for module 'uninorm/u32-normcoll'.
28288         * modules/uninorm/u32-normcoll-tests: New file.
28289         * tests/uninorm/test-u32-normcoll.c: New file.
28290
28291         Tests for module 'uninorm/u16-normcoll'.
28292         * modules/uninorm/u16-normcoll-tests: New file.
28293         * tests/uninorm/test-u16-normcoll.c: New file.
28294
28295         Tests for module 'uninorm/u8-normcoll'.
28296         * modules/uninorm/u8-normcoll-tests: New file.
28297         * tests/uninorm/test-u8-normcoll.c: New file.
28298
28299 2009-03-07  Bruno Haible  <bruno@clisp.org>
28300
28301         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
28302         tests/uninorm/test-u32-normcmp.c.
28303         * tests/uninorm/test-u32-normcmp.c: Include it.
28304         (test_nonascii): New function, extracted from main. Add some more
28305         tests.
28306         (main): Invoke test_ascii and test_nonascii.
28307         * modules/uninorm/u32-normcmp-tests (Files): Add
28308         tests/uninorm/test-u32-normcmp.h.
28309         (Depends-on): Remove uninorm/u32-normcmp.
28310
28311         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
28312         tests/uninorm/test-u16-normcmp.c.
28313         * tests/uninorm/test-u16-normcmp.c: Include it.
28314         (test_nonascii): New function, extracted from main. Add some more
28315         tests.
28316         (main): Invoke test_ascii and test_nonascii.
28317         * modules/uninorm/u16-normcmp-tests (Files): Add
28318         tests/uninorm/test-u16-normcmp.h.
28319         (Depends-on): Remove uninorm/u16-normcmp.
28320
28321         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
28322         tests/uninorm/test-u8-normcmp.c.
28323         * tests/uninorm/test-u8-normcmp.c: Include it.
28324         (test_nonascii): New function, extracted from main. Add some more
28325         tests.
28326         (main): Invoke test_ascii and test_nonascii.
28327         * modules/uninorm/u8-normcmp-tests (Files): Add
28328         tests/uninorm/test-u8-normcmp.h.
28329         (Depends-on): Remove uninorm/u8-normcmp.
28330
28331 2009-03-07  Bruno Haible  <bruno@clisp.org>
28332
28333         New module 'uninorm/u32-normcoll'.
28334         * lib/uninorm/u32-normcoll.c: New file.
28335         * modules/uninorm/u32-normcoll: New file.
28336
28337         New module 'uninorm/u16-normcoll'.
28338         * lib/uninorm/u16-normcoll.c: New file.
28339         * modules/uninorm/u16-normcoll: New file.
28340
28341         New module 'uninorm/u8-normcoll'.
28342         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
28343         declarations.
28344         * lib/uninorm/u8-normcoll.c: New file.
28345         * lib/uninorm/u-normcoll.h: New file.
28346         * modules/uninorm/u8-normcoll: New file.
28347
28348         New module 'uninorm/u32-normxfrm'.
28349         * lib/uninorm/u32-normxfrm.c: New file.
28350         * modules/uninorm/u32-normxfrm: New file.
28351
28352         New module 'uninorm/u16-normxfrm'.
28353         * lib/uninorm/u16-normxfrm.c: New file.
28354         * modules/uninorm/u16-normxfrm: New file.
28355
28356         New module 'uninorm/u8-normxfrm'.
28357         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
28358         declarations.
28359         * lib/uninorm/u8-normxfrm.c: New file.
28360         * lib/uninorm/u-normxfrm.h: New file.
28361         * modules/uninorm/u8-normxfrm: New file.
28362
28363 2009-03-07  Bruno Haible  <bruno@clisp.org>
28364
28365         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
28366         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
28367         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
28368
28369 2009-03-07  Bruno Haible  <bruno@clisp.org>
28370
28371         New module 'memxfrm'.
28372         * lib/memxfrm.h: New file.
28373         * lib/memxfrm.c: New file.
28374         * modules/memxfrm: New file.
28375
28376 2009-03-07  Bruno Haible  <bruno@clisp.org>
28377
28378         New module 'memcmp2'.
28379         * lib/memcmp2.h: New file.
28380         * lib/memcmp2.c: New file.
28381         * modules/memcmp2: New file.
28382
28383 2009-03-07  Bruno Haible  <bruno@clisp.org>
28384
28385         Tests for module 'uninorm/decomposing-form'.
28386         * modules/uninorm/decomposing-form-tests: New file.
28387         * tests/uninorm/test-decomposing-form.c: New file.
28388
28389         New module 'uninorm/decomposing-form'.
28390         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
28391         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
28392         Add 'decomposing_variant' field.
28393         * lib/uninorm/decomposing-form.c: New file.
28394         * lib/uninorm/nfc.c (uninorm_nfc): Update.
28395         * lib/uninorm/nfd.c (uninorm_nfd): Update.
28396         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
28397         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
28398         * modules/uninorm/decomposing-form: New file.
28399         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
28400         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
28401
28402 2009-03-07  Bruno Haible  <bruno@clisp.org>
28403
28404         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
28405         strings.
28406
28407 2009-03-06  Bruno Haible  <bruno@clisp.org>
28408
28409         Tests for module 'uninorm/u32-normcmp'.
28410         * tests/uninorm/test-u32-normcmp.c: New file.
28411         * modules/uninorm/u32-normcmp-tests: New file.
28412
28413         Tests for module 'uninorm/u16-normcmp'.
28414         * tests/uninorm/test-u16-normcmp.c: New file.
28415         * modules/uninorm/u16-normcmp-tests: New file.
28416
28417         Tests for module 'uninorm/u8-normcmp'.
28418         * tests/uninorm/test-u8-normcmp.c: New file.
28419         * modules/uninorm/u8-normcmp-tests: New file.
28420
28421         New module 'uninorm/u32-normcmp'.
28422         * lib/uninorm/u32-normcmp.c: New file.
28423         * modules/uninorm/u32-normcmp: New file.
28424
28425         New module 'uninorm/u16-normcmp'.
28426         * lib/uninorm/u16-normcmp.c: New file.
28427         * modules/uninorm/u16-normcmp: New file.
28428
28429         New module 'uninorm/u8-normcmp'.
28430         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
28431         declarations.
28432         * lib/uninorm/u8-normcmp.c: New file.
28433         * lib/uninorm/u-normcmp.h: New file.
28434         * modules/uninorm/u8-normcmp: New file.
28435
28436 2009-03-06  Bruno Haible  <bruno@clisp.org>
28437
28438         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
28439         Reported by Eric Blake.
28440
28441 2009-03-06  Eric Blake  <ebb9@byu.net>
28442             Bruno Haible  <bruno@clisp.org>
28443
28444         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
28445         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
28446         condition.
28447         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
28448         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
28449         condition.
28450         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
28451
28452 2009-03-06  Eric Blake  <ebb9@byu.net>
28453
28454         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
28455         to avoid compiler warnings.
28456         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
28457
28458 2009-03-05  Bruno Haible  <bruno@clisp.org>
28459
28460         * tests/test-ftell.c (main): Disable test beyond end of file on
28461         FreeMiNT.
28462         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
28463
28464 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
28465
28466         * lib/filevercmp.c: Move hidden files up in ordering.
28467         * tests/test-filevercmp.c: Add tests for hidden files.
28468
28469 2009-03-04  Bruno Haible  <bruno@clisp.org>
28470
28471         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
28472         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
28473         AM_CFLAGS.
28474         Reported by Simon Josefsson.
28475
28476 2009-03-03  Bruno Haible  <bruno@clisp.org>
28477
28478         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
28479         Reported by Simon Josefsson.
28480
28481         * doc/ld-version-script.texi: Update node reference.
28482
28483 2009-03-03  Bruno Haible  <bruno@clisp.org>
28484
28485         * modules/visibility (License): Change to 'unlimited'.
28486         Suggested by Simon Josefsson.
28487
28488 2009-03-03  Jim Meyering  <meyering@redhat.com>
28489
28490         unlinkdir: cannot_unlink_dir may modify process state
28491         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
28492         it's neither thread-safe nor appropriate for use in a library.
28493
28494 2009-03-03  Eric Blake  <ebb9@byu.net>
28495
28496         test-closein: silence test under Darwin
28497         * tests/test-closein.sh: Ignore stderr from cat, since we don't
28498         care if it dies from EPIPE or EBADF.
28499
28500 2009-03-03  Bruno Haible  <bruno@clisp.org>
28501
28502         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
28503         earlier.
28504         * doc/visibility.texi: Fix @node and @section.
28505
28506 2009-03-03  Simon Josefsson  <simon@josefsson.org>
28507
28508         * doc/gnulib.texi: Link to sections for ld version script and
28509         visibility.
28510         * doc/visibility.texi: Add @node and @section.
28511         * modules/ld-version-script: New module.
28512         * m4/ld-version-script.m4: New file.
28513         * doc/ld-version-script.texi: New file.
28514
28515 2009-03-02  David Lutterkort  <lutter@redhat.com>
28516
28517         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
28518         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28519
28520 2009-03-02  Bruno Haible  <bruno@clisp.org>
28521
28522         * doc/visibility.texi: Mention libtool's -export-symbols option.
28523
28524 2009-03-02  Jim Meyering  <meyering@redhat.com>
28525
28526         announce-gen: new option: --no-print-checksums
28527         * build-aux/announce-gen (usage): Describe it.
28528         (print_checksums): Print a newline here, not in the [*] footnote.
28529         (main): Honor it.
28530
28531 2009-03-01  Bruno Haible  <bruno@clisp.org>
28532
28533         Use socklen_t in the native Windows replacements prototypes.
28534         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
28535         instead of 'int'.
28536         * lib/getsockopt.c (rpl_getsockopt): Likewise.
28537         * lib/setsockopt.c (rpl_setsockopt): Likewise.
28538         * modules/getsockopt (Depends-on): Add socklen.
28539         * modules/setsockopt (Depends-on): Add socklen.
28540
28541 2009-03-01  Bruno Haible  <bruno@clisp.org>
28542
28543         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
28544         least 4.2.
28545
28546 2009-03-01  Eric Blake  <ebb9@byu.net>
28547             Bruno Haible  <bruno@clisp.org>
28548
28549         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
28550         error messages.
28551         * lib/wait-process.c (wait_subprocess): Omit error message about
28552         deadly signal sent to the child of termsigp != NULL.
28553
28554 2009-03-01  Eric Blake  <ebb9@byu.net>
28555
28556         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
28557
28558 2009-03-01  Bruno Haible  <bruno@clisp.org>
28559
28560         Avoid a gcc warning.
28561         * tests/test-sched.c (b): Make global.
28562         Reported by Eric Blake.
28563
28564 2009-01-19  Martin Lambers  <marlam@marlam.de>
28565
28566         Provide POSIX semantics for socket timeout options on W32.
28567         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
28568         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
28569         * modules/setsockopt: Depend on sys_time module for struct timeval.
28570         * modules/getsockopt: Depend on sys_time module for struct timeval.
28571
28572 2009-03-01  Simon Josefsson  <simon@josefsson.org>
28573
28574         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
28575         __USE_GNU, for consistency with netdb.in.h.
28576         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28577
28578 2009-03-01  Bruno Haible  <bruno@clisp.org>
28579
28580         More support for FreeMiNT.
28581         * lib/fseeko.c (rpl_fseeko): Complete last commit.
28582         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28583
28584 2009-03-01  Bruno Haible  <bruno@clisp.org>
28585
28586         More support for FreeMiNT.
28587         * lib/fpurge.c (fpurge): Correct last commit.
28588         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28589
28590 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28591
28592         Fix unportable awk script in vc-list-files.
28593         * build-aux/vc-list-files: In the replacement awk script, use
28594         substr with a second argument of 1, not zero.
28595         Report by Simon Josefsson.
28596
28597 2009-02-28  Bruno Haible  <bruno@clisp.org>
28598
28599         More support for FreeMiNT.
28600         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
28601         to FreeMiNT today.
28602         * lib/fwriting.c (fwriting): Likewise.
28603         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
28604
28605 2009-02-28  Bruno Haible  <bruno@clisp.org>
28606
28607         * tests/test-freadseek.c (main): Disable test beyond end of file on
28608         FreeMiNT.
28609         * tests/test-ftello.c (main): Likewise.
28610         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
28611
28612 2009-02-28  Bruno Haible  <bruno@clisp.org>
28613
28614         Add tentative support for FreeMiNT.
28615         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
28616         * lib/fpurge.c (fpurge): Likewise.
28617         * lib/freadable.c (freadable): Likewise.
28618         * lib/freading.c (freading): Likewise.
28619         * lib/freadptr.c (freadptr): Likewise.
28620         * lib/freadseek.c (freadptrinc): Likewise.
28621         * lib/fseeko.c (rpl_fseeko): Likewise.
28622         * lib/fseterr.c (fseterr): Likewise.
28623         * lib/fwritable.c (fwritable): Likewise.
28624         * lib/fwriting.c (fwriting): Likewise.
28625         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
28626         Hourihane.
28627         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28628
28629 2009-02-28  Bruno Haible  <bruno@clisp.org>
28630
28631         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
28632         SIGCHLD.
28633         Reported by Jim Meyering.
28634
28635 2009-02-28  Bruno Haible  <bruno@clisp.org>
28636
28637         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
28638         Mention the results of these tests on various platforms.
28639         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
28640         order.
28641         * doc/posix-functions/printf.texi: Likewise.
28642         * doc/posix-functions/snprintf.texi: Likewise.
28643         * doc/posix-functions/sprintf.texi: Likewise.
28644         * doc/posix-functions/vfprintf.texi: Likewise.
28645         * doc/posix-functions/vprintf.texi: Likewise.
28646         * doc/posix-functions/vsnprintf.texi: Likewise.
28647         * doc/posix-functions/vsprintf.texi: Likewise.
28648         * doc/glibc-functions/obstack_printf.texi: Likewise.
28649         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
28650
28651 2009-02-28  Bruno Haible  <bruno@clisp.org>
28652
28653         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
28654         Reported by Loïc Minier <lool@dooz.org>.
28655
28656 2009-02-27  Bruno Haible  <bruno@clisp.org>
28657
28658         * gnulib-tool (func_import): Make the sed expression used to create the
28659         sed script for updating the .gitignore file POSIX compliant.
28660         Reported by Eric Blake.
28661
28662 2009-02-27  Bruno Haible  <bruno@clisp.org>
28663
28664         * gnulib-tool (sed): Don't alias as "sed --posix".
28665         Reported by Eric Blake.
28666
28667 2009-02-27  Bruno Haible  <bruno@clisp.org>
28668
28669         Avoid test link errors.
28670         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
28671         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
28672         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
28673         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
28674         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28675
28676 2009-02-27  Bruno Haible  <bruno@clisp.org>
28677
28678         Avoid spurious "(cached)" in configure output.
28679         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
28680         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
28681         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28682         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28683         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28684         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
28685         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28686         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
28687         Reported by Eric Blake.
28688
28689 2009-02-27  Eric Blake  <ebb9@byu.net>
28690
28691         printf: fix regression in previous patch
28692         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
28693
28694 2009-02-27  Bruno Haible  <bruno@clisp.org>
28695
28696         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
28697         value.
28698         * lib/stdint.in.h: Likewise.
28699         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
28700
28701 2009-02-27  Eric Blake  <ebb9@byu.net>
28702
28703         doc: mention more functions added in cygwin 1.7.0
28704         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
28705         addition.
28706         * doc/posix-functions/open_wmemstream.texi: Likewise.
28707         * doc/posix-functions/wcsnlen.texi: Likewise.
28708         * doc/posix-functions/wcsnrtombs.texi: Likewise.
28709         * doc/posix-functions/wcstod.texi: Likewise.
28710         * doc/posix-functions/wcstof.texi: Likewise.
28711         * doc/posix-functions/wcstoimax.texi: Likewise.
28712         * doc/posix-functions/wcstok.texi: Likewise.
28713         * doc/posix-functions/wcstoumax.texi: Likewise.
28714
28715         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
28716         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
28717         * doc/posix-functions/fprintf.texi: Update.
28718         * doc/posix-functions/printf.texi: Update.
28719         * doc/posix-functions/snprintf.texi: Update.
28720         * doc/posix-functions/sprintf.texi: Update.
28721         * doc/posix-functions/vfprintf.texi: Update.
28722         * doc/posix-functions/vprintf.texi: Update.
28723         * doc/posix-functions/vsnprintf.texi: Update.
28724         * doc/posix-functions/vsprintf.texi: Update.
28725         * doc/glibc-functions/obstack_printf.texi: Update.
28726         * doc/glibc-functions/obstack_vprintf.texi: Update.
28727
28728 2009-02-26  Eric Blake  <ebb9@byu.net>
28729
28730         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
28731         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
28732         compilation bug by using runtime conversion.
28733         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
28734         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
28735         * modules/ceill-tests (Files): Use nan.h.
28736         * modules/floorl-tests (Files): Likewise.
28737         * modules/frexpl-tests (Files): Likewise.
28738         * modules/isnanl-tests (Files): Likewise.
28739         * modules/ldexpl-tests (Files): Likewise.
28740         * modules/roundl-tests (Files): Likewise.
28741         * modules/truncl-tests (Files): Likewise.
28742         * tests/test-ceill.c (main): Use a working NaN.
28743         * tests/test-floorl.c (main): Likewise.
28744         * tests/test-frexpl.c (main): Likewise.
28745         * tests/test-isnan.c (test_long_double): Likewise.
28746         * tests/test-isnanl.h (main): Likewise.
28747         * tests/test-ldexpl.h (main): Likewise.
28748         * tests/test-roundl.h (main): Likewise.
28749         * tests/test-truncl.h (main): Likewise.
28750         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
28751
28752 2009-02-26  Eric Blake  <ebb9@byu.net>
28753             Bruno Haible  <bruno@clisp.org>
28754
28755         Work around a *printf bug with %ls on Solaris.
28756         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
28757         precision is specified, sprintf stops converting the wide string
28758         argument when the number of bytes that have been produced by this
28759         conversion equals or exceeds the precision.
28760         * doc/posix-functions/fprintf.texi: Update.
28761         * doc/posix-functions/printf.texi: Update.
28762         * doc/posix-functions/snprintf.texi: Update.
28763         * doc/posix-functions/sprintf.texi: Update.
28764         * doc/posix-functions/vfprintf.texi: Update.
28765         * doc/posix-functions/vprintf.texi: Update.
28766         * doc/posix-functions/vsnprintf.texi: Update.
28767         * doc/posix-functions/vsprintf.texi: Update.
28768         * doc/glibc-functions/obstack_printf.texi: Update.
28769         * doc/glibc-functions/obstack_vprintf.texi: Update.
28770
28771 2009-02-26  Eric Blake  <ebb9@byu.net>
28772
28773         stdlib: favor compiler check of random.h
28774         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
28775         to avoid an ObjC random.h installed by Swarm.
28776
28777 2009-02-26  Bruno Haible  <bruno@clisp.org>
28778
28779         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
28780         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
28781         Reported by Gary V. Vaughan <gary@gnu.org>.
28782
28783 2009-02-26  Bruno Haible  <bruno@clisp.org>
28784
28785         Fix *printf behaviour regarding the %ls directive.
28786         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
28787         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
28788         NEED_PRINTF_DIRECTIVE_LS.
28789         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
28790         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28791         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28792         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
28793         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
28794         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
28795         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
28796         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28797         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28798         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28799         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28800         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
28801         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28802         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28803         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28804         * doc/posix-functions/fprintf.texi: Update.
28805         * doc/posix-functions/printf.texi: Update.
28806         * doc/posix-functions/snprintf.texi: Update.
28807         * doc/posix-functions/sprintf.texi: Update.
28808         * doc/posix-functions/vfprintf.texi: Update.
28809         * doc/posix-functions/vprintf.texi: Update.
28810         * doc/posix-functions/vsnprintf.texi: Update.
28811         * doc/posix-functions/vsprintf.texi: Update.
28812         * doc/glibc-functions/obstack_printf.texi: Update.
28813         * doc/glibc-functions/obstack_vprintf.texi: Update.
28814         Reported by Eric Blake.
28815
28816 2009-02-25  Bruno Haible  <bruno@clisp.org>
28817
28818         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
28819         with known value.
28820         Reported by Gary V. Vaughan <gary@gnu.org>.
28821
28822 2009-02-25  Bruno Haible  <bruno@clisp.org>
28823
28824         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
28825         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
28826         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
28827         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
28828         Reported by Gary V. Vaughan <gary@gnu.org>.
28829
28830 2009-02-25  Bruno Haible  <bruno@clisp.org>
28831
28832         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
28833         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
28834         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
28835         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
28836         Reported by Gary V. Vaughan <gary@gnu.org>.
28837
28838 2009-02-25  Eric Blake  <ebb9@byu.net>
28839
28840         tests: skip fseek/ftell tests if ungetc is broken
28841         * m4/ungetc.m4: New file.
28842         * modules/fseek-tests: Split test, so ungetc dependency is
28843         separate from rest of test.
28844         * modules/fseeko-tests: Likewise.
28845         * modules/ftell-tests: Likewise.
28846         * modules/ftello-tests: Likewise.
28847         * tests/test-fseek.c (main): Isolate ungetc dependency.
28848         * tests/test-fseeko.c (main): Likewise.
28849         * tests/test-ftell.c (main): Likewise.
28850         * tests/test-ftello.c (main): Likewise.
28851         * tests/test-fseek2.sh: New file.
28852         * tests/test-fseeko2.sh: Likewise.
28853         * tests/test-ftell2.sh: Likewise.
28854         * tests/test-ftello2.sh: Likewise.
28855
28856 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
28857
28858         test-getaddrinfo: fix usage of skip return code 77
28859         * tests/test-gettaddrinfo.c: Return skip code 77 only
28860         for first occurance of skip (4x77 is not 77)
28861
28862 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
28863
28864         strtod: avoid C99 decl-after-statement
28865         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
28866
28867 2009-02-24  Eric Blake  <ebb9@byu.net>
28868
28869         strtod: detect HP-UX 11.31 bug
28870         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
28871         Reported by Gary V. Vaughan.
28872
28873 2009-02-23  Bruno Haible  <bruno@clisp.org>
28874
28875         Fix invalid read past end of memory block.
28876         * lib/vasnprintf.c (DCHAR_SET): Define.
28877         (local_wcslen): Define only when needed.
28878         (local_strnlen, local_wcsnlen): New functions.
28879         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
28880         directives that involve a conversion ourselves.
28881         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
28882         wcsnlen, mbrtowc, wcrtomb.
28883         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
28884         * tests/test-vasprintf-posix.c (test_function): Likewise.
28885         * tests/test-snprintf-posix.h (test_function): Likewise.
28886         * tests/test-sprintf-posix.h (test_function): Likewise.
28887         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28888
28889 2009-02-22  Bruno Haible  <bruno@clisp.org>
28890
28891         Implement new clarified decomposition of Hangul syllables.
28892         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
28893         of type LTV, return only a pairwise decomposition.
28894         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
28895         Likewise.
28896         * tests/uninorm/test-decomposition.c (main): Updated expected result.
28897         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
28898         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
28899
28900 2009-02-22  Bruno Haible  <bruno@clisp.org>
28901
28902         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
28903         zero-length results and shrink excess allocated memory.
28904         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
28905         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
28906         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
28907         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
28908         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
28909         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
28910         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
28911         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
28912         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
28913         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
28914         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
28915         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
28916
28917 2009-02-21  Bruno Haible  <bruno@clisp.org>
28918
28919         * doc/gnulib.texi: Include safe-alloc.texi earlier.
28920         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
28921         spaces after a period. Put a space between a macro name and its
28922         argument list. Trivial rewordings.
28923         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
28924         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
28925         (main): Return 0 explicitly.
28926
28927 2009-02-21  Bruno Haible  <bruno@clisp.org>
28928
28929         Tests for module 'uninorm/filter'.
28930         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
28931         * modules/uninorm/filter-tests: New file.
28932
28933         New module 'uninorm/filter'.
28934         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
28935         uninorm_filter_flush, uninorm_filter_free): New declarations.
28936         * lib/uninorm/uninorm-filter.c: New file.
28937         * modules/uninorm/filter: New file.
28938
28939 2009-02-21  Bruno Haible  <bruno@clisp.org>
28940
28941         Tests for module 'uninorm/nfkc'.
28942         * tests/uninorm/test-nfkc.c: New file.
28943         * tests/uninorm/test-u8-nfkc.c: New file.
28944         * tests/uninorm/test-u16-nfkc.c: New file.
28945         * tests/uninorm/test-u32-nfkc.c: New file.
28946         * tests/uninorm/test-u32-nfkc-big.sh: New file.
28947         * tests/uninorm/test-u32-nfkc-big.c: New file.
28948         * modules/uninorm/nfkc-tests: New file.
28949
28950         New module 'uninorm/nfkc'.
28951         * lib/uninorm/nfkc.c: New file.
28952         * modules/uninorm/nfkc: New file.
28953
28954         Tests for module 'uninorm/nfkd'.
28955         * tests/uninorm/test-nfkd.c: New file.
28956         * tests/uninorm/test-u8-nfkd.c: New file.
28957         * tests/uninorm/test-u16-nfkd.c: New file.
28958         * tests/uninorm/test-u32-nfkd.c: New file.
28959         * tests/uninorm/test-u32-nfkd-big.sh: New file.
28960         * tests/uninorm/test-u32-nfkd-big.c: New file.
28961         * modules/uninorm/nfkd-tests: New file.
28962
28963         New module 'uninorm/nfkd'.
28964         * lib/uninorm/nfkd.c: New file.
28965         * modules/uninorm/nfkd: New file.
28966
28967         Tests for module 'uninorm/nfc'.
28968         * tests/uninorm/test-nfc.c: New file.
28969         * tests/uninorm/test-u8-nfc.c: New file.
28970         * tests/uninorm/test-u16-nfc.c: New file.
28971         * tests/uninorm/test-u32-nfc.c: New file.
28972         * tests/uninorm/test-u32-nfc-big.sh: New file.
28973         * tests/uninorm/test-u32-nfc-big.c: New file.
28974         * modules/uninorm/nfc-tests: New file.
28975
28976         New module 'uninorm/nfc'.
28977         * lib/uninorm/nfc.c: New file.
28978         * modules/uninorm/nfc: New file.
28979
28980         Tests for module 'uninorm/nfd'.
28981         * tests/uninorm/test-nfd.c: New file.
28982         * tests/uninorm/test-u8-nfd.c: New file.
28983         * tests/uninorm/test-u16-nfd.c: New file.
28984         * tests/uninorm/test-u32-nfd.c: New file.
28985         * tests/uninorm/test-u32-nfd-big.sh: New file.
28986         * tests/uninorm/test-u32-nfd-big.c: New file.
28987         * tests/uninorm/test-u32-normalize-big.h: New file.
28988         * tests/uninorm/test-u32-normalize-big.c: New file.
28989         * tests/uninorm/NormalizationTest.txt: New file, created from
28990         Unicode 5.1.0 NormalizationTest.txt.
28991         * modules/uninorm/nfd-tests: New file.
28992
28993         New module 'uninorm/nfd'.
28994         * lib/uninorm/nfd.c: New file.
28995         * modules/uninorm/nfd: New file.
28996
28997         New module 'uninorm/u32-normalize'.
28998         * lib/uninorm/u32-normalize.c: New file.
28999         * modules/uninorm/u32-normalize: New file.
29000
29001         New module 'uninorm/u16-normalize'.
29002         * lib/uninorm/u16-normalize.c: New file.
29003         * modules/uninorm/u16-normalize: New file.
29004
29005         New module 'uninorm/u8-normalize'.
29006         * lib/uninorm/u8-normalize.c: New file.
29007         * lib/uninorm/normalize-internal.h: New file.
29008         * lib/uninorm/u-normalize-internal.h: New file.
29009         * modules/uninorm/u8-normalize: New file.
29010
29011         New module 'uninorm/decompose-internal'.
29012         * lib/uninorm/decompose-internal.c: New file.
29013         * modules/uninorm/decompose-internal: New file.
29014
29015         Tests for module 'uninorm/composition'.
29016         * tests/uninorm/test-composition.c: New file.
29017         * modules/uninorm/composition-tests: New file.
29018
29019         New module 'uninorm/composition'.
29020         * lib/uninorm/composition.c: New file.
29021         * lib/uninorm/composition-table.gperf: New file, generated by
29022         gen-uni-tables.
29023         * modules/uninorm/composition: New file.
29024
29025         Tests for module 'uninorm/compat-decomposition'.
29026         * tests/uninorm/test-compat-decomposition.c: New file.
29027         * modules/uninorm/compat-decomposition-tests: New file.
29028
29029         New module 'uninorm/compat-decomposition'.
29030         * lib/uninorm/decompose-internal.h: New file.
29031         * lib/uninorm/compat-decomposition.c: New file.
29032         * modules/uninorm/compat-decomposition: New file.
29033
29034         Tests for module 'uninorm/canonical-decomposition'.
29035         * tests/uninorm/test-canonical-decomposition.c: New file.
29036         * modules/uninorm/canonical-decomposition-tests: New file.
29037
29038         New module 'uninorm/canonical-decomposition'.
29039         * lib/uninorm/canonical-decomposition.c: New file.
29040         * modules/uninorm/canonical-decomposition: New file.
29041
29042         Tests for module 'uninorm/decomposition'.
29043         * tests/uninorm/test-decomposition.c: New file.
29044         * modules/uninorm/decomposition-tests: New file.
29045
29046         New module 'uninorm/decomposition'.
29047         * lib/uninorm/decomposition.c: New file.
29048         * modules/uninorm/decomposition: New file.
29049
29050         New module 'uninorm/decomposition-table'.
29051         * lib/uninorm/decomposition-table.h: New file.
29052         * lib/uninorm/decomposition-table.c: New file.
29053         * lib/uninorm/decomposition-table1.h: New file, generated by
29054         gen-uni-tables.
29055         * lib/uninorm/decomposition-table2.h: New file, generated by
29056         gen-uni-tables.
29057         * modules/uninorm/decomposition-table: New file.
29058
29059         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
29060         (UC_DECOMP_*): New enumeration items.
29061         (get_decomposition): New function.
29062         (struct decomp_table): New type.
29063         (output_decomposition, output_decomposition_tables): New functions.
29064         (unicode_composition_exclusions): New variable.
29065         (fill_composition_exclusions, debug_output_composition_tables): New
29066         functions.
29067         (main): Accept one more argument. Invoke fill_composition_exclusions.
29068         Output decomposition and composition tables.
29069
29070         New module 'uninorm/base'.
29071         * lib/uninorm.h: New file.
29072         * lib/unictype.h: Update comment.
29073         * modules/uninorm/base: New file.
29074
29075 2009-02-21  David Lutterkort  <lutter@redhat.com>
29076
29077         Tests for module 'safe-alloc'.
29078         * tests/test-safe-alloc.c: New file.
29079         * modules/safe-alloc-tests: New file.
29080
29081         New module 'safe-alloc'.
29082         * lib/safe-alloc.h: New file.
29083         * lib/safe-alloc.c: New file.
29084         * m4/safe-alloc.m4: New file.
29085         * modules/safe-alloc: New file.
29086         * doc/safe-alloc.texi: New file.
29087         * doc/gnulib.texi: Include it.
29088         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
29089         safe-alloc.
29090
29091 2009-02-18  Bruno Haible  <bruno@clisp.org>
29092
29093         Fix link error on non-glibc systems.
29094         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
29095         variable.
29096         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29097
29098 2009-02-18  Jim Meyering  <meyering@redhat.com>
29099
29100         fts: avoid used-uninitialized error due to recent change
29101         * lib/fts.c (fts_read): Guard uses of the new member,
29102         parent->fts_n_dirs_remaining, since it's not relevant for
29103         the parent of a directory specified on the command-line.
29104
29105 2009-02-17  James Youngman  <jay@gnu.org>
29106             Bruno Haible  <bruno@clisp.org>
29107
29108         * m4/include_next.m4: Reformulate comment.
29109
29110 2009-02-16  Jim Meyering  <meyering@redhat.com>
29111
29112         fts: add #if guards so that the fts_lgpl module still builds
29113         * lib/fts.c: Guard just-added hash-table-using parts with
29114         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
29115         Reported by Simon Josefsson.
29116
29117 2009-02-15  Bruno Haible  <bruno@clisp.org>
29118
29119         * modules/array-mergesort-tests: New file.
29120         * tests/test-array-mergesort.c: New file.
29121
29122         New module 'array-mergesort'.
29123         * modules/array-mergesort: New file.
29124         * lib/array-mergesort.h: New file.
29125
29126 2009-02-15  Bruno Haible  <bruno@clisp.org>
29127
29128         Fix 2009-02-07 commit.
29129         * lib/gen-uni-tables.c (output_predicate, output_category,
29130         output_combclass, output_bidi_category, output_decimal_digit,
29131         output_digit, output_numeric, output_mirror, output_scripts,
29132         output_ident_category, output_simple_mapping): Fix format directives.
29133         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
29134
29135 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
29136
29137         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
29138         fixes are available from IBM.
29139
29140 2009-02-13  Jim Meyering  <meyering@redhat.com>
29141
29142         fts: arrange not to stat non-directories in more cases
29143         This makes GNU find (when it doesn't need to stat each file)
29144         *much* more efficient at traversing reiserfs file systems.
29145         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
29146         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
29147         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
29148         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
29149         (leaf_optimization_applies): New function.
29150         (LCO_hash, LCO_compare): New helper functions.
29151         (link_count_optimize_ok): New function.
29152         (fts_stat): Initialize new member (if dir).
29153         (fts_read): Decrement parent's fts_n_dirs_remaining count if
29154         we've just stat'ed a directory.  Skip the stat call when possible.
29155         ---
29156         Note this AFS-related exchange:
29157         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
29158         and note find's pioctl call in find/fstype.c.
29159         But that is necessary only if you want to enable the
29160         optimization for AFS, and for now, I don't.
29161
29162         fts: move a function definition "up" (no semantic change)
29163         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
29164         "up" to precede upcoming use of a related function.
29165
29166 2009-02-11  Jim Meyering  <meyering@redhat.com>
29167
29168         fts: correct internal computation of nlinks (optimization-related)
29169         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
29170         whether the current entry is a directory, so don't test it.
29171
29172 2009-02-10  Bruno Haible  <bruno@clisp.org>
29173
29174         Tests for module 'uniwbrk/ulc-wordbreaks'.
29175         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
29176         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
29177         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
29178
29179         Tests for module 'uniwbrk/u32-wordbreaks'.
29180         * modules/uniwbrk/u32-wordbreaks-tests: New file.
29181         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
29182
29183         Tests for module 'uniwbrk/u16-wordbreaks'.
29184         * modules/uniwbrk/u16-wordbreaks-tests: New file.
29185         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
29186
29187         Tests for module 'uniwbrk/u8-wordbreaks'.
29188         * modules/uniwbrk/u8-wordbreaks-tests: New file.
29189         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
29190
29191 2009-02-10  Bruno Haible  <bruno@clisp.org>
29192
29193         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
29194         property.
29195         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
29196         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
29197         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
29198
29199 2009-02-10  Simon Josefsson  <simon@josefsson.org>
29200
29201         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
29202         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
29203
29204 2009-02-10  Bruno Haible  <bruno@clisp.org>
29205
29206         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
29207         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
29208         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
29209         * lib/unilbrk/u8-possible-linebreaks.c: Update.
29210         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
29211         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
29212
29213 2009-02-09  Simon Josefsson  <simon@josefsson.org>
29214
29215         * lib/sockets.h (gl_fd_to_handle): New function.
29216
29217         * tests/test-sockets.c: Call gl_fd_to_handle.
29218
29219 2009-02-09  Bruno Haible  <bruno@clisp.org>
29220
29221         * doc/havelib.texi: Document the conventions on bi-arch systems.
29222
29223 2009-02-08  Bruno Haible  <bruno@clisp.org>
29224
29225         Document the AC_LIB_LINKFLAGS macro.
29226         * doc/havelib.texi: New file, mostly written on 2005-05-24.
29227         * doc/gnulib.texi: Include it.
29228
29229 2009-02-08  Bruno Haible  <bruno@clisp.org>
29230
29231         Fix wrong order of sections, compared to TOC.
29232         * doc/gnulib.texi: Include relocatable-maint.texi after the
29233         "Regular expressions" node, not before.
29234
29235 2009-02-08  Bruno Haible  <bruno@clisp.org>
29236
29237         Tests for module 'unicase/totitle'.
29238         * modules/unicase/totitle-tests: New file.
29239
29240         Tests for module 'unicase/tolower'.
29241         * modules/unicase/tolower-tests: New file.
29242
29243         Tests for module 'unicase/toupper'.
29244         * modules/unicase/toupper-tests: New file.
29245         * tests/unicase/test-mapping-part1.h: New file.
29246         * tests/unicase/test-mapping-part2.h: New file.
29247
29248         New module 'unicase/totitle'.
29249         * modules/unicase/totitle: New file.
29250         * lib/unicase/totitle.c: New file.
29251
29252         New module 'unicase/tolower'.
29253         * modules/unicase/tolower: New file.
29254         * lib/unicase/tolower.c: New file.
29255
29256         New module 'unicase/toupper'.
29257         * modules/unicase/toupper: New file.
29258         * lib/unicase/toupper.c: New file.
29259         * lib/unicase/simple-mapping.h: New file.
29260
29261         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
29262         (mapping_table): New structure.
29263         (output_simple_mapping): New function.
29264         (main): Invoke output_simple_mapping_test and output_simple_mapping.
29265         * modules/gen-uni-tables (Description): Update.
29266         * lib/unicase/toupper.h: New file, automatically generated by
29267         gen-uni-tables.
29268         * lib/unicase/tolower.h: New file, automatically generated by
29269         gen-uni-tables.
29270         * lib/unicase/totitle.h: New file, automatically generated by
29271         gen-uni-tables.
29272         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
29273         gen-uni-tables.
29274         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
29275         gen-uni-tables.
29276         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
29277         gen-uni-tables.
29278
29279         New module 'unicase/base'.
29280         * modules/unicase/base: New file.
29281         * lib/unicase.h: New file.
29282
29283 2009-02-08  Bruno Haible  <bruno@clisp.org>
29284
29285         New module 'uniwbrk/ulc-wordbreaks'.
29286         * modules/uniwbrk/ulc-wordbreaks: New file.
29287         * lib/uniwbrk/ulc-wordbreaks.c: New file.
29288
29289         New module 'uniwbrk/u32-wordbreaks'.
29290         * modules/uniwbrk/u32-wordbreaks: New file.
29291         * lib/uniwbrk/u32-wordbreaks.c: New file.
29292
29293         New module 'uniwbrk/u16-wordbreaks'.
29294         * modules/uniwbrk/u16-wordbreaks: New file.
29295         * lib/uniwbrk/u16-wordbreaks.c: New file.
29296
29297         New module 'uniwbrk/u8-wordbreaks'.
29298         * modules/uniwbrk/u8-wordbreaks: New file.
29299         * lib/uniwbrk/u8-wordbreaks.c: New file.
29300         * lib/uniwbrk/u-wordbreaks.h: New file.
29301
29302         New module 'uniwbrk/table'.
29303         * modules/uniwbrk/table: New file.
29304         * lib/uniwbrk/wbrktable.h: New file.
29305         * lib/uniwbrk/wbrktable.c: New file.
29306
29307         New module 'uniwbrk/wordbreak-property'.
29308         * modules/uniwbrk/wordbreak-property: New file.
29309         * lib/uniwbrk/wordbreak-property.c: New file.
29310
29311         * lib/gen-uni-tables.c (WBP_*): New enum items.
29312         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
29313         (unicode_org_wbp): New variable.
29314         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
29315         New functions.
29316         (wbp_table): New structure.
29317         (output_wbp, output_wbrk_tables): New functions.
29318         (main): Accept additional argument. Invoke fill_org_wbp,
29319         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
29320         output_wbrk_tables.
29321         * modules/gen-uni-tables (Description): Update.
29322         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
29323         gen-uni-tables.
29324
29325         New module 'uniwbrk/base'.
29326         * modules/uniwbrk/base: New file.
29327         * lib/uniwbrk.h: New file.
29328
29329 2009-02-08  Bruno Haible  <bruno@clisp.org>
29330
29331         Update to Unicode 5.1.0.
29332         * lib/gen-uni-tables.c (is_property_alphabetic): Include
29333         U+2185..U+2188.
29334         (is_property_default_ignorable_code_point): Don't include characters
29335         of category Cc or Cs and not-a-characters.
29336         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
29337         U+0D79, U+109E, U+109F, U+A60C.
29338         * lib/unictype/bidi_of.h: Regenerated.
29339         * lib/unictype/blocks.h: Regenerated.
29340         * lib/unictype/categ_C.h: Regenerated.
29341         * lib/unictype/categ_Cf.h: Regenerated.
29342         * lib/unictype/categ_Cn.h: Regenerated.
29343         * lib/unictype/categ_L.h: Regenerated.
29344         * lib/unictype/categ_Ll.h: Regenerated.
29345         * lib/unictype/categ_Lm.h: Regenerated.
29346         * lib/unictype/categ_Lo.h: Regenerated.
29347         * lib/unictype/categ_Lu.h: Regenerated.
29348         * lib/unictype/categ_M.h: Regenerated.
29349         * lib/unictype/categ_Mc.h: Regenerated.
29350         * lib/unictype/categ_Me.h: Regenerated.
29351         * lib/unictype/categ_Mn.h: Regenerated.
29352         * lib/unictype/categ_N.h: Regenerated.
29353         * lib/unictype/categ_Nd.h: Regenerated.
29354         * lib/unictype/categ_Nl.h: Regenerated.
29355         * lib/unictype/categ_No.h: Regenerated.
29356         * lib/unictype/categ_P.h: Regenerated.
29357         * lib/unictype/categ_Pd.h: Regenerated.
29358         * lib/unictype/categ_Pe.h: Regenerated.
29359         * lib/unictype/categ_Pf.h: Regenerated.
29360         * lib/unictype/categ_Pi.h: Regenerated.
29361         * lib/unictype/categ_Po.h: Regenerated.
29362         * lib/unictype/categ_Ps.h: Regenerated.
29363         * lib/unictype/categ_S.h: Regenerated.
29364         * lib/unictype/categ_Sk.h: Regenerated.
29365         * lib/unictype/categ_Sm.h: Regenerated.
29366         * lib/unictype/categ_So.h: Regenerated.
29367         * lib/unictype/categ_of.h: Regenerated.
29368         * lib/unictype/combining.h: Regenerated.
29369         * lib/unictype/ctype_alnum.h: Regenerated.
29370         * lib/unictype/ctype_alpha.h: Regenerated.
29371         * lib/unictype/ctype_graph.h: Regenerated.
29372         * lib/unictype/ctype_lower.h: Regenerated.
29373         * lib/unictype/ctype_print.h: Regenerated.
29374         * lib/unictype/ctype_punct.h: Regenerated.
29375         * lib/unictype/ctype_upper.h: Regenerated.
29376         * lib/unictype/decdigit.h: Regenerated.
29377         * lib/unictype/digit.h: Regenerated.
29378         * lib/unictype/mirror.h: Regenerated.
29379         * lib/unictype/numeric.h: Regenerated.
29380         * lib/unictype/pr_alphabetic.h: Regenerated.
29381         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
29382         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
29383         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
29384         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
29385         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
29386         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
29387         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
29388         * lib/unictype/pr_combining.h: Regenerated.
29389         * lib/unictype/pr_dash.h: Regenerated.
29390         * lib/unictype/pr_decimal_digit.h: Regenerated.
29391         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
29392         * lib/unictype/pr_deprecated.h: Regenerated.
29393         * lib/unictype/pr_diacritic.h: Regenerated.
29394         * lib/unictype/pr_extender.h: Regenerated.
29395         * lib/unictype/pr_format_control.h: Regenerated.
29396         * lib/unictype/pr_grapheme_base.h: Regenerated.
29397         * lib/unictype/pr_grapheme_extend.h: Regenerated.
29398         * lib/unictype/pr_grapheme_link.h: Regenerated.
29399         * lib/unictype/pr_id_continue.h: Regenerated.
29400         * lib/unictype/pr_id_start.h: Regenerated.
29401         * lib/unictype/pr_ideographic.h: Regenerated.
29402         * lib/unictype/pr_ignorable_control.h: Regenerated.
29403         * lib/unictype/pr_lowercase.h: Regenerated.
29404         * lib/unictype/pr_math.h: Regenerated.
29405         * lib/unictype/pr_numeric.h: Regenerated.
29406         * lib/unictype/pr_other_alphabetic.h: Regenerated.
29407         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
29408         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
29409         * lib/unictype/pr_other_id_continue.h: Regenerated.
29410         * lib/unictype/pr_other_lowercase.h: Regenerated.
29411         * lib/unictype/pr_other_math.h: Regenerated.
29412         * lib/unictype/pr_punctuation.h: Regenerated.
29413         * lib/unictype/pr_sentence_terminal.h: Regenerated.
29414         * lib/unictype/pr_soft_dotted.h: Regenerated.
29415         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
29416         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
29417         * lib/unictype/pr_unified_ideograph.h: Regenerated.
29418         * lib/unictype/pr_uppercase.h: Regenerated.
29419         * lib/unictype/pr_xid_continue.h: Regenerated.
29420         * lib/unictype/pr_xid_start.h: Regenerated.
29421         * lib/unictype/pr_zero_width.h: Regenerated.
29422         * lib/unictype/scripts.h: Regenerated.
29423         * lib/unictype/scripts_byname.gperf: Regenerated.
29424         * lib/unictype/sy_java_ident.h: Regenerated.
29425         * lib/unilbrk/lbrkprop1.h: Regenerated.
29426         * lib/unilbrk/lbrkprop2.h: Regenerated.
29427         * tests/unictype/test-categ_C.c: Regenerated.
29428         * tests/unictype/test-categ_Cf.c: Regenerated.
29429         * tests/unictype/test-categ_Cn.c: Regenerated.
29430         * tests/unictype/test-categ_L.c: Regenerated.
29431         * tests/unictype/test-categ_Ll.c: Regenerated.
29432         * tests/unictype/test-categ_Lm.c: Regenerated.
29433         * tests/unictype/test-categ_Lo.c: Regenerated.
29434         * tests/unictype/test-categ_Lu.c: Regenerated.
29435         * tests/unictype/test-categ_M.c: Regenerated.
29436         * tests/unictype/test-categ_Mc.c: Regenerated.
29437         * tests/unictype/test-categ_Me.c: Regenerated.
29438         * tests/unictype/test-categ_Mn.c: Regenerated.
29439         * tests/unictype/test-categ_N.c: Regenerated.
29440         * tests/unictype/test-categ_Nd.c: Regenerated.
29441         * tests/unictype/test-categ_Nl.c: Regenerated.
29442         * tests/unictype/test-categ_No.c: Regenerated.
29443         * tests/unictype/test-categ_P.c: Regenerated.
29444         * tests/unictype/test-categ_Pd.c: Regenerated.
29445         * tests/unictype/test-categ_Pe.c: Regenerated.
29446         * tests/unictype/test-categ_Pf.c: Regenerated.
29447         * tests/unictype/test-categ_Pi.c: Regenerated.
29448         * tests/unictype/test-categ_Po.c: Regenerated.
29449         * tests/unictype/test-categ_Ps.c: Regenerated.
29450         * tests/unictype/test-categ_S.c: Regenerated.
29451         * tests/unictype/test-categ_Sk.c: Regenerated.
29452         * tests/unictype/test-categ_Sm.c: Regenerated.
29453         * tests/unictype/test-categ_So.c: Regenerated.
29454         * tests/unictype/test-ctype_alnum.c: Regenerated.
29455         * tests/unictype/test-ctype_alpha.c: Regenerated.
29456         * tests/unictype/test-ctype_graph.c: Regenerated.
29457         * tests/unictype/test-ctype_lower.c: Regenerated.
29458         * tests/unictype/test-ctype_print.c: Regenerated.
29459         * tests/unictype/test-ctype_punct.c: Regenerated.
29460         * tests/unictype/test-ctype_upper.c: Regenerated.
29461         * tests/unictype/test-decdigit.h: Regenerated.
29462         * tests/unictype/test-digit.h: Regenerated.
29463         * tests/unictype/test-numeric.h: Regenerated.
29464         * tests/unictype/test-pr_alphabetic.c: Regenerated.
29465         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
29466         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
29467         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
29468         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
29469         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
29470         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
29471         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
29472         * tests/unictype/test-pr_combining.c: Regenerated.
29473         * tests/unictype/test-pr_dash.c: Regenerated.
29474         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
29475         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
29476         * tests/unictype/test-pr_deprecated.c: Regenerated.
29477         * tests/unictype/test-pr_diacritic.c: Regenerated.
29478         * tests/unictype/test-pr_extender.c: Regenerated.
29479         * tests/unictype/test-pr_format_control.c: Regenerated.
29480         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
29481         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
29482         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
29483         * tests/unictype/test-pr_id_continue.c: Regenerated.
29484         * tests/unictype/test-pr_id_start.c: Regenerated.
29485         * tests/unictype/test-pr_ideographic.c: Regenerated.
29486         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
29487         * tests/unictype/test-pr_lowercase.c: Regenerated.
29488         * tests/unictype/test-pr_math.c: Regenerated.
29489         * tests/unictype/test-pr_numeric.c: Regenerated.
29490         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
29491         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
29492         Regenerated.
29493         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
29494         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
29495         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
29496         * tests/unictype/test-pr_other_math.c: Regenerated.
29497         * tests/unictype/test-pr_punctuation.c: Regenerated.
29498         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
29499         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
29500         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
29501         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
29502         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
29503         * tests/unictype/test-pr_uppercase.c: Regenerated.
29504         * tests/unictype/test-pr_xid_continue.c: Regenerated.
29505         * tests/unictype/test-pr_xid_start.c: Regenerated.
29506         * tests/unictype/test-pr_zero_width.c: Regenerated.
29507
29508         Update to Unicode 5.1.0.
29509         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
29510         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
29511         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
29512         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
29513         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
29514         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
29515         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
29516         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
29517         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
29518         (nonspacing_table_ind): Update.
29519         * tests/uniwidth/test-uc_width2.sh: Update expected result.
29520
29521         Update to Unicode 5.1.0.
29522         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
29523         code transform.
29524         * lib/uniname/uniname.c (unicode_character_name,
29525         unicode_name_character): Add the range 0x1Fxxx to the code transform.
29526         * lib/uniname/uninames.h: Regenerated.
29527         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
29528
29529 2009-02-07  Bruno Haible  <bruno@clisp.org>
29530
29531         Merge gen-ctype and gen-lbrk into a single program.
29532         * lib/gen-uni-tables.c: New file, incorporating
29533         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
29534         Add directory prefixes to the names of the generated files.
29535         * lib/unictype/gen-ctype.c: Remove file.
29536         * lib/unilbrk/gen-lbrk.c: Remove file.
29537         * modules/gen-uni-tables: New file.
29538         * modules/unictype/gen-ctype: Remove file.
29539         * modules/unilbrk/gen-lbrk: Remove file.
29540
29541 2009-02-07  Bruno Haible  <bruno@clisp.org>
29542
29543         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
29544
29545         New module 'unistr/u32-strcoll'.
29546         * modules/unistr/u32-strcoll: New file.
29547         * lib/unistr/u32-strcoll.c: New file.
29548
29549         New module 'unistr/u16-strcoll'.
29550         * modules/unistr/u16-strcoll: New file.
29551         * lib/unistr/u16-strcoll.c: New file.
29552
29553         New module 'unistr/u8-strcoll'.
29554         * modules/unistr/u8-strcoll: New file.
29555         * lib/unistr/u8-strcoll.c: New file.
29556         * lib/unistr/u-strcoll.h: New file.
29557
29558 2009-02-07  Bruno Haible  <bruno@clisp.org>
29559
29560         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
29561         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
29562         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
29563         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
29564         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
29565         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
29566
29567 2009-02-07  Bruno Haible  <bruno@clisp.org>
29568
29569         Make 64-bit clean.
29570         * lib/unictype/gen-ctype.c (output_predicate, output_category,
29571         output_combclass, output_bidi_category, output_decimal_digit,
29572         output_digit, output_numeric, output_mirror, output_scripts,
29573         output_ident_category): Use proper width specifier in format strings.
29574
29575 2009-02-07  Bruno Haible  <bruno@clisp.org>
29576
29577         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
29578         failure behaviour.
29579
29580 2009-02-07  Jim Meyering  <meyering@redhat.com>
29581
29582         regex: avoid compilation failure with upcoming gcc-4.4
29583         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
29584         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
29585         "... error: integer overflow in preprocessor expression".
29586
29587 2009-02-05  Ben Pfaff  <blp@gnu.org>
29588
29589         Fix link errors on Windows when close module is used.
29590         * modules/close: Add $(LIB_CLOSE) to Link section.
29591         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
29592         $(LIB_CLOSE) on Windows.
29593
29594 2009-02-05  Jim Meyering  <meyering@redhat.com>
29595
29596         still avoid unused-parameter warnings, but do it cleanly
29597         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
29598         (get_fs_usage): Cast to void instead.
29599         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
29600         (dev_from_mount_options, read_file_system_list): Cast to void.
29601         Prompted by Bruno Haible.
29602
29603 2009-02-04  Jim Meyering  <meyering@redhat.com>
29604
29605         fsusage.c: correct copyright year
29606         * lib/fsusage.c: Reflect year in which the change is pushed into
29607
29608         avoid misc. warnings
29609         * lib/fsusage.c (UNUSED_PARAM): Define.
29610         (get_fs_usage): Mark parameter "disk" as unused.
29611         * lib/getugroups.c (getgrent): Use "void" in prototype.
29612         * lib/mountlist.c: Mark unused parameters.
29613         (read_file_system_list): Declare a local with "const".
29614         * lib/nanosleep.c (getnow): Declare static.
29615         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
29616
29617         dirfd: set errno upon failure
29618         * lib/dirfd.c: Include <errno.h>.
29619         Set errno to ENOTSUP when returning -1.
29620         * modules/dirfd (Depends-on): Add errno.
29621         Suggested by John Kodis <kodis@comcast.net>.
29622
29623 2009-02-01  Bruno Haible  <bruno@clisp.org>
29624
29625         Don't assume sizeof (long) >= sizeof (void *).
29626         * lib/memcmp.c: Include stdint.h.
29627         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
29628         srcp2 to 'const byte *'.
29629         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
29630         types to uintptr_t.
29631         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
29632         * modules/memcmp (Depends-on): Add stdint.
29633         Reported by Ozkan Sezer <sezeroz@gmail.com>.
29634
29635 2009-01-30  Eric Blake  <ebb9@byu.net>
29636
29637         fix more require-before-expand issues
29638         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
29639         expand, AC_PROG_AWK.
29640         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
29641
29642 2009-01-28  Eric Blake  <ebb9@byu.net>
29643
29644         version-etc: use consistent URL formatting
29645         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
29646         Improve formatting.  Use fputs for string without %.
29647
29648 2009-01-28  Jim Meyering  <meyering@redhat.com>
29649
29650         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
29651         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
29652         "underquoted definition of NAME" from autoconf-2.59.
29653
29654 2009-01-28  Bruno Haible  <bruno@clisp.org>
29655
29656         * doc/gnulib.texi: Add "Obsolete modules" to index.
29657
29658 2009-01-28  Jim Meyering  <meyering@redhat.com>
29659
29660         useless-if-before-free: recognize more variants
29661         * build-aux/useless-if-before-free: Also recognize e.g.,
29662         if (NULL != p) free (p);
29663
29664 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
29665
29666         test-getaddrinfo: skip (don't fail) this test when there's no network
29667         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
29668         on the presumption that it means you lack network access.
29669
29670 2009-01-26  Jim Meyering  <meyering@redhat.com>
29671
29672         fflush: avoid warnings on modern systems
29673         * lib/fflush.c (rpl_fflush): Move declarations of locals,
29674         pos and result, into scopes where they're used.
29675
29676 2009-01-26  Eric Blake  <ebb9@byu.net>
29677
29678         Silence warning reintroduced by recent extensions patch.
29679         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
29680         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
29681         autoconf.
29682
29683         Backport improved autoconf semantics of AC_DEFUN_ONCE.
29684         * m4/00gnulib.m4: New file.
29685         * gnulib-tool (func_get_filelist): Always use it.
29686         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
29687         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
29688
29689 2009-01-25  Bruno Haible  <bruno@clisp.org>
29690
29691         Make test-quotearg work on MacOS X and AIX.
29692         * tests/test-quotearg.sh: New file.
29693         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
29694         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
29695         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
29696         include <libintl.h>.
29697         (fake_locale): Remove variable.
29698         (gettext, dgettext, dcgettext): Remove functions.
29699         (main): Instead of setting a fake locale, set a real locale. Call
29700         textdomain and bindtextdomain.
29701         * modules/quotearg-tests (Files): Add the new files.
29702         (Depends-on): Add gettext, setenv, unsetenv.
29703         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
29704         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
29705         Augment TESTS_ENVIRONMENT.
29706
29707 2009-01-25  Bruno Haible  <bruno@clisp.org>
29708
29709         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
29710         fr_FR.ISO8859-1 locale on MacOS X.
29711         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
29712         ja_JP.eucJP locale on MacOS X.
29713         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
29714         zh_CN.GB18030 locale on MacOS X.
29715
29716 2009-01-25  Bruno Haible  <bruno@clisp.org>
29717
29718         Avoid link errors on MacOS X 10.3.
29719         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
29720         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
29721
29722 2009-01-25  Bruno Haible  <bruno@clisp.org>
29723
29724         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
29725         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
29726         * modules/pipe (Files): Remove m4/posix_spawn.m4.
29727         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
29728         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
29729         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
29730         posix_spawnattr_init, posix_spawnattr_setsigmask,
29731         posix_spawnattr_setflags, posix_spawnattr_destroy.
29732
29733         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
29734         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
29735         * modules/execute (Files): Remove m4/posix_spawn.m4.
29736         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
29737         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
29738         posix_spawnattr_init, posix_spawnattr_setsigmask,
29739         posix_spawnattr_setflags, posix_spawnattr_destroy.
29740
29741 2009-01-25  Bruno Haible  <bruno@clisp.org>
29742
29743         * lib/glthread/threadlib.c: Include <stdlib.h>.
29744
29745 2009-01-25  Bruno Haible  <bruno@clisp.org>
29746
29747         * lib/glthread/threadlib.c (dummy): New declaration.
29748
29749 2009-01-25  Bruno Haible  <bruno@clisp.org>
29750
29751         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
29752         multibyte characters also for the GB18030 encoding. Don't crash when
29753         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
29754
29755 2009-01-25  Bruno Haible  <bruno@clisp.org>
29756
29757         Avoid redefining 'struct random_data' on OSF/1 5.1.
29758         * lib/stdlib.in.h: Include <random.h> if it exists.
29759         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
29760         HAVE_RANDOM_H. Include <random.h> when testing whether
29761         'struct random_data' exists.
29762         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
29763
29764 2009-01-25  Bruno Haible  <bruno@clisp.org>
29765
29766         Don't install charset.alias on MacOS X >= 10.3.
29767         * lib/localcharset.c (DARWIN7): New macro.
29768         (get_charset_aliases): Hardcode the result for Darwin7.
29769         * modules/localcharset (install-exec-local): Don't install
29770         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
29771
29772 2009-01-25  Bruno Haible  <bruno@clisp.org>
29773
29774         Don't install charset.alias on mingw and Cygwin.
29775         * modules/localcharset (install-exec-local): Don't install
29776         charset.alias on mingw and Cygwin, if the file does not yet exist.
29777         The result for these platforms is hardcoded in localcharset.c.
29778
29779 2009-01-25  Bruno Haible  <bruno@clisp.org>
29780
29781         Make it possible again to use AC_GNU_SOURCE together with gnulib.
29782         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
29783         before requiring AC_USE_SYSTEM_EXTENSIONS.
29784
29785 2009-01-25  Jim Meyering  <meyering@redhat.com>
29786
29787         c-strtod: avoid warnings
29788         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
29789         "assignment discards qualifiers from pointer target type" warnings.
29790
29791 2009-01-24  Bruno Haible  <bruno@clisp.org>
29792
29793         Add support for non-UTF-8 locales on MacOS X.
29794         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
29795         canonical encodings. For Darwin 7 and newer, don't map traditional
29796         encodings to UTF-8.
29797         Reported by Vincent Lefevre <vincent@vinc17.org>
29798         at <http://savannah.gnu.org/bugs/?25235>.
29799
29800 2009-01-24  Bruno Haible  <bruno@clisp.org>
29801
29802         * doc/gnulib.texi (Obsolete modules): New section.
29803         Reported by Mike Frysinger <vapier@gentoo.org>.
29804
29805 2009-01-24  Bruno Haible  <bruno@clisp.org>
29806
29807         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
29808         (%.dvi): New rule.
29809
29810 2009-01-24  Bruno Haible  <bruno@clisp.org>
29811
29812         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
29813         Reported by Eric Blake.
29814
29815 2009-01-24  Bruno Haible  <bruno@clisp.org>
29816
29817         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
29818         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
29819         Reported by Gary V. Vaughan <gary@gnu.org>.
29820
29821 2009-01-24  Bruno Haible  <bruno@clisp.org>
29822
29823         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
29824
29825 2009-01-23  Bruno Haible  <bruno@clisp.org>
29826
29827         Make c-strtod, c-strtold usable in libraries.
29828         * lib/c-strtod.c: Include string.h instead of xalloc.h.
29829         (C_STRTOD): Call strdup instead of xstrdup.
29830         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
29831         * modules/c-strtold (Depends-on): Likewise.
29832         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
29833         * NEWS: Mention the change.
29834         Reported by Michael Gold <mgold@ncf.ca>.
29835
29836 2009-01-23  Jim Meyering  <meyering@redhat.com>
29837
29838         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
29839         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
29840         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
29841
29842 2009-01-23  Simon Josefsson  <simon@josefsson.org>
29843
29844         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
29845         GNU CoreUtils.
29846         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
29847         * modules/version-etc (Description): Update.
29848
29849 2009-01-22  Bruno Haible  <bruno@clisp.org>
29850
29851         Cache the C locale object.
29852         * lib/c-strtod.c (c_locale_cache): New variable.
29853         (c_locale): New function.
29854         (C_STRTOD): Use it, and don't call freelocale.
29855         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
29856         Suggested by Paolo Bonzini.
29857
29858 2009-01-21  Bruno Haible  <bruno@clisp.org>
29859
29860         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
29861         conditions other than overflow.
29862
29863 2009-01-21  Bruno Haible  <bruno@clisp.org>
29864
29865         * lib/c-strtod.c: Include errno.h.
29866         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
29867         value from STRTOD_L and STRTOD.
29868
29869 2009-01-21  Bruno Haible  <bruno@clisp.org>
29870         and Jim Meyering  <meyering@redhat.com>
29871
29872         nanosleep: skip configure test (fail it) for apple universal builds
29873         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
29874         universal builds, assume that nanosleep does not work.
29875         * modules/nanosleep (Depends-on): Add multiarch.
29876
29877         mktime: skip configure test (fail it) for apple universal builds
29878         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
29879         universal builds, assume that mktime does not work.
29880         * modules/mktime (Depends-on): Add multiarch.
29881
29882 2009-01-21  Eric Blake  <ebb9@byu.net>
29883
29884         multiarch: avoid expand-before-require warning
29885         * modules/multiarch (configure.ac): Require, rather than expand,
29886         gl_MULTIARCH.
29887         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
29888         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
29889         enforce that all clients require it.  Partial reversion of
29890         2008-12-29 patch.
29891
29892         error: avoid expand-before-require warning
29893         * modules/errno (configure.ac): Require, rather than expand,
29894         gl_HEADER_ERRNO_H.
29895         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
29896         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
29897         enforce that all clients require it.
29898
29899         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
29900         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
29901         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
29902         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
29903
29904 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
29905
29906         Revert:
29907         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
29908
29909         regex: do not depend on obsolete modules.
29910         * modules/regex: Remove memcmp and memmove.
29911
29912 2009-01-20  Bruno Haible  <bruno@clisp.org>
29913
29914         Make the 'link' module link on Windows NT 4.
29915         * lib/link.c (_WIN32_WINNT): Don't define.
29916         (CreateHardLinkFuncType): New type.
29917         (CreateHardLinkFunc, initialized): New variables.
29918         (initialize): New function.
29919         (link): Invoke CreateHardLink indirectly through the function pointer.
29920
29921 2009-01-20  Bruno Haible  <bruno@clisp.org>
29922
29923         Fix compilation failure on mingw.
29924         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
29925
29926 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
29927
29928         * doc/c-strtod.texi: Mention a couple of restrictions.
29929
29930 2009-01-20  Jim Meyering  <meyering@redhat.com>
29931
29932         gettimeofday: move more declarations out of functions
29933         * lib/gettimeofday.c: Move extern declarations of tzset and
29934         gmtime out of containing functions.  Prompted by Bruno Haible.
29935
29936 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
29937
29938         regex: do not depend on obsolete modules.
29939         * modules/regex: Remove memcmp and memmove.
29940
29941 2009-01-19  Bruno Haible  <bruno@clisp.org>
29942
29943         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
29944         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
29945         gl_BIGENDIAN, not AC_C_BIGENDIAN.
29946         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
29947         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
29948
29949 2009-01-19  Bruno Haible  <bruno@clisp.org>
29950
29951         * tests/test-link.c: Include <errno.h>.
29952         (main): Exit with code 77 when a hard link cannot be created due to
29953         the file system.
29954         * tests/test-link.sh: Skip test when a hard link cannot be created due
29955         to the file system.
29956         Suggested by Eric Blake.
29957
29958 2009-01-19  Martin Lambers  <marlam@marlam.de>
29959
29960         * modules/link-tests: New file.
29961         * tests/test-link.sh: New file.
29962         * tests/test-link.c: New file.
29963
29964 2009-01-19  Eric Blake  <ebb9@byu.net>
29965
29966         doc: mention another function added in cygwin 1.7.0
29967         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
29968         Another new function in cygwin 1.7.
29969
29970 2009-01-19  Bruno Haible  <bruno@clisp.org>
29971
29972         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
29973         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
29974         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
29975         gl_BIGENDIAN, not AC_C_BIGENDIAN.
29976         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
29977         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
29978         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29979         * m4/md4.m4 (gl_MD4): Likewise.
29980         * m4/md5.m4 (gl_MD5): Likewise.
29981         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
29982         * m4/sha1.m4 (gl_SHA1): Likewise.
29983         * m4/sha256.m4 (gl_SHA256): Likewise.
29984         * m4/sha512.m4 (gl_SHA512): Likewise.
29985
29986 2009-01-19  Bruno Haible  <bruno@clisp.org>
29987
29988         * modules/uniname/uniname-tests (Depends-on): Add progname.
29989         * tests/uniname/test-uninames.c: Include progname.h.
29990         (main): Call set_program_name.
29991
29992         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
29993         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
29994         (main): Call set_program_name.
29995
29996         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
29997         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
29998         (main): Call set_program_name.
29999
30000         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
30001         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
30002         (main): Call set_program_name.
30003
30004         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
30005         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
30006         (main): Call set_program_name.
30007
30008         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
30009         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
30010         (main): Call set_program_name.
30011
30012         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
30013         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
30014         (main): Call set_program_name.
30015
30016         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
30017         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
30018         (main): Call set_program_name.
30019
30020         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
30021         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
30022         (main): Call set_program_name.
30023
30024 2009-01-19  Eric Blake  <ebb9@byu.net>
30025
30026         test-unistd: test previous patch
30027         * tests/test-unistd.c: Test *_FILENO macros.
30028
30029         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
30030         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30031         Guarantee a definition.
30032         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
30033         * modules/unistd-safer (Depends-on): Add dependency on unistd.
30034         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
30035         * lib/dup-safer.c (STDERR_FILENO): Likewise.
30036         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30037         Likewise.
30038         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
30039         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
30040         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30041         Likewise.
30042         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
30043         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
30044         (STDERR_FILENO): Likewise.
30045         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
30046         (STDERR_FILENO): Likewise.
30047         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
30048         (STDERR_FILENO): Likewise.
30049         Reported by Elbert Pol.
30050
30051 2009-01-19  Eric Blake  <ebb9@byu.net>
30052
30053         doc: mention more functions added in cygwin 1.7.0
30054         * doc/posix-functions/abort.texi (abort): Update wording related
30055         to cygwin.
30056         * doc/posix-functions/daylight.texi (daylight): Likewise.
30057         * doc/posix-functions/optarg.texi (optarg): Likewise.
30058         * doc/posix-functions/optarg.texi (opterr): Likewise.
30059         * doc/posix-functions/optarg.texi (optind): Likewise.
30060         * doc/posix-functions/optarg.texi (optopt): Likewise.
30061         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
30062         worked in 1.5.x, and was withdrawn in 1.7.
30063         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
30064         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
30065         cygwin versions.
30066         * doc/posix-functions/perror.texi (perror): Likewise.
30067         * doc/posix-functions/printf.texi (printf): Likewise.
30068         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
30069         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
30070         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
30071         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
30072         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
30073         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
30074         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
30075         Likewise.
30076         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
30077         Likewise.
30078         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
30079         this function.
30080         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
30081         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
30082         Likewise.
30083         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
30084         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
30085         * doc/posix-functions/confstr.texi (confstr): Likewise.
30086         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
30087         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
30088         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
30089         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
30090         * doc/posix-functions/fputws.texi (fputws): Likewise.
30091         * doc/posix-functions/fwide.texi (fwide): Likewise.
30092         * doc/posix-functions/getwc.texi (getwc): Likewise.
30093         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
30094         * doc/posix-functions/putwc.texi (putwc): Likewise.
30095         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
30096         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
30097         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
30098         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
30099         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
30100         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
30101         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
30102         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
30103         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
30104         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
30105         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
30106
30107 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
30108
30109         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
30110         * lib/ioctl.c: Include <sys/ioctl.h>.
30111
30112 2009-01-19  Simon Josefsson  <simon@josefsson.org>
30113
30114         * modules/getdate-tests (Depends-on): Add progname.
30115         * tests/test-getdate.c: Use progname module, to avoid link errors
30116         on non-glibc systems.
30117
30118 2009-01-18  Simon Josefsson  <simon@josefsson.org>
30119
30120         * modules/filenamecat-tests (Depends-on): Add progname.
30121         * modules/fstrcmp-tests (Depends-on): Likewise.
30122
30123         * tests/test-filenamecat.c: Use progname module, to avoid link
30124         errors on non-glibc systems.
30125         * tests/test-fstrcmp.c: Likewise.
30126
30127 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
30128
30129         gettimeofday: avoid warning: nested extern declaration of 'localtime'
30130         * lib/gettimeofday.c: Move extern declaration out of function.
30131
30132 2009-01-18  Bruno Haible  <bruno@clisp.org>
30133
30134         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
30135         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
30136         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
30137
30138 2009-01-18  Bruno Haible  <bruno@clisp.org>
30139
30140         * lib/strftime.c (MEMPCPY): Remove unused macro.
30141         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
30142
30143 2009-01-18  Martin Lambers  <marlam@marlam.de>
30144
30145         New module 'link'.
30146         * lib/unistd.in.h (link): New declaration.
30147         * lib/link.c: New file.
30148         * m4/link.m4: New file.
30149         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
30150         HAVE_LINK.
30151         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
30152         * modules/link: New file.
30153         * doc/posix-functions/link.texi: Mention the new module.
30154
30155 2009-01-18  Bruno Haible  <bruno@clisp.org>
30156
30157         * tests/test-avltree_list.c (main): Call set_program_name.
30158         * tests/test-avltree_oset.c (main): Likewise.
30159         * tests/test-obstack-printf.c: Include progname.h.
30160         (main): Call set_program_name.
30161         * tests/test-quotearg.c: Include progname.h.
30162         (main): Call set_program_name.
30163         * tests/test-xmemdup0.c: Include progname.h.
30164         (main): Call set_program_name.
30165
30166 2009-01-18  Bruno Haible  <bruno@clisp.org>
30167
30168         New module 'alphasort'.
30169         * lib/dirent.in.h (alphasort): New declaration.
30170         * lib/alphasort.c: New file, from glibc with modifications.
30171         * m4/alphasort.m4: New file.
30172         * modules/alphasort: New file.
30173         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
30174         HAVE_ALPHASORT.
30175         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
30176         HAVE_ALPHASORT.
30177         * doc/posix-functions/alphasort.texi: Mention the new module and the
30178         portability problems.
30179
30180 2009-01-18  Bruno Haible  <bruno@clisp.org>
30181
30182         New module 'scandir'.
30183         * lib/dirent.in.h (scandir): New declaration.
30184         * lib/scandir.c: New file, from glibc with modifications.
30185         * m4/scandir.m4: New file.
30186         * modules/scandir: New file.
30187         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
30188         HAVE_SCANDIR.
30189         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
30190         HAVE_SCANDIR.
30191         * doc/posix-functions/scandir.texi: Mention the new module and the
30192         portability problems.
30193
30194 2009-01-17  Bruno Haible  <bruno@clisp.org>
30195
30196         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
30197         Update documentation.
30198         (func_remove_suffix): Escape all dots in the suffix. Update
30199         documentation.
30200         (func_filter_filelist): Update documentation.
30201         Reported by Ralf Wildenhues.
30202
30203 2009-01-17  Bruno Haible  <bruno@clisp.org>
30204
30205         * modules/dprintf-posix-tests: New file.
30206         * tests/test-dprintf-posix.sh: New file.
30207         * tests/test-dprintf-posix.c: New file.
30208
30209         New modules 'dprintf', 'dprintf-posix'.
30210         * lib/stdio.in.h (dprintf): New declaration.
30211         * lib/dprintf.c: New file.
30212         * m4/dprintf.m4: New file.
30213         * m4/dprintf-posix.m4: New file.
30214         * modules/dprintf: New file.
30215         * modules/dprintf-posix: New file.
30216         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
30217         HAVE_DPRINTF, REPLACE_DPRINTF.
30218         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
30219         HAVE_DPRINTF, REPLACE_DPRINTF.
30220         * doc/posix-functions/dprintf.texi: Mention the new modules.
30221
30222 2009-01-17  Bruno Haible  <bruno@clisp.org>
30223
30224         * modules/vdprintf-posix-tests: New file.
30225         * tests/test-vdprintf-posix.sh: New file.
30226         * tests/test-vdprintf-posix.c: New file.
30227
30228         New modules 'vdprintf', 'vdprintf-posix'.
30229         * lib/stdio.in.h (vdprintf): New declaration.
30230         * lib/vdprintf.c: New file.
30231         * m4/vdprintf.m4: New file.
30232         * m4/vdprintf-posix.m4: New file.
30233         * modules/vdprintf: New file.
30234         * modules/vdprintf-posix: New file.
30235         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
30236         HAVE_VDPRINTF, REPLACE_VDPRINTF.
30237         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
30238         HAVE_VDPRINTF, REPLACE_VDPRINTF.
30239         * doc/posix-functions/vdprintf.texi: Mention the new modules.
30240
30241 2009-01-17  Bruno Haible  <bruno@clisp.org>
30242
30243         Fix replacement of fopen on mingw.
30244         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
30245         mingw.
30246
30247 2009-01-17  Bruno Haible  <bruno@clisp.org>
30248
30249         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
30250         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
30251
30252 2009-01-17  Bruno Haible  <bruno@clisp.org>
30253
30254         Avoid test-fflush2.sh failure on mingw.
30255         * tests/test-fflush2.c: Include binary-io.h.
30256         (main): Put standard input into binary mode.
30257         * modules/fflush-tests (Depends-on): Add binary-io.
30258
30259 2009-01-17  Bruno Haible  <bruno@clisp.org>
30260
30261         * lib/wchar.in.h: In another particular situation, include only the
30262         system's <wchar.h> file.
30263         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
30264         Reported by Albert Chin-A-Young <china@thewrittenword.com>
30265         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
30266
30267 2009-01-17  Bruno Haible  <bruno@clisp.org>
30268
30269         Support for stripping executables in --enable-relocatable.
30270         * build-aux/install-reloc: Expect one more argument, or an environment
30271         variable RELOC_STRIP_PROG. If set, strip the destination program and
30272         its wrapper.
30273         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
30274         RELOC_STRIP_PROG.
30275         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
30276         to set RELOCATABLE_STRIP.
30277         * NEWS: Mention the new Makefile requirement.
30278
30279 2009-01-17  Bruno Haible  <bruno@clisp.org>
30280
30281         * build-aux/install-reloc: Remove debugging information left over by
30282         C compiler on MacOS X.
30283
30284 2009-01-17  Bruno Haible  <bruno@clisp.org>
30285
30286         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
30287         * lib/progreloc.c (find_executable): Fix type of pointer passed to
30288         _NSGetExecutablePath.
30289
30290 2009-01-16  Jim Meyering  <meyering@redhat.com>
30291
30292         strerror: avoid warnings about discarding "const"
30293         * lib/strerror.c (rpl_strerror): Instead of returning a const
30294         string from each and every "case", use a variable, and add a single
30295         cast after the switch.
30296
30297 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
30298
30299         * lib/arpa_inet.in.h: Add extern "C" block for C++.
30300
30301 2009-01-16  Bruno Haible  <bruno@clisp.org>
30302
30303         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
30304         array initializer syntax that also works in C++ mode.
30305         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30306
30307 2009-01-16  Jim Meyering  <meyering@redhat.com>
30308
30309         poll: suppress a warning
30310         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
30311         to ignore "...unsigned expression < 0 is always false" warnings.
30312
30313 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
30314
30315         poll: remove declarations of unused variables
30316         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
30317         sockbuf and optlen.
30318
30319 2009-01-15  Bruno Haible  <bruno@clisp.org>
30320
30321         Make fflush-after-ungetc POSIX compliant on BSD systems.
30322         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
30323         (clear_ungetc_buffer): Implement also for other systems.
30324         (rpl_fflush): On glibc systems, invoke
30325         clear_ungetc_buffer_preserving_position. Otherwise, invoke
30326         clear_ungetc_buffer after fetching the stream's position, not before.
30327
30328 2009-01-15  Bruno Haible  <bruno@clisp.org>
30329
30330         Make fflush-after-ungetc POSIX compliant on glibc systems.
30331         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
30332         after ungetc.
30333         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
30334         (rpl_fflush): On glibc systems, simply call the system's fflush
30335         function after clearing the ungetc buffer.
30336         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
30337         Instead, lseek only to the end of file, then use the system's fseeko
30338         for the rest. On glibc systems, reset the EOF indicator bit.
30339
30340 2009-01-15  Jim Meyering  <meyering@redhat.com>
30341
30342         openmp.m4: revert quote-adding change, for portability to older autoconf
30343         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
30344         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
30345         Simon Josefsson noticed the problem when using autoconf-2.61.
30346
30347 2009-01-15  Bruno Haible  <bruno@clisp.org>
30348
30349         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
30350         * tests/test-fflush2.c (ASSERT): Always fail.
30351         (main): Add two tests for fflush() after ungetc(), taking into account
30352         the Austin Group's clarification.
30353         Suggested by Eric Blake.
30354
30355 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
30356
30357         mktime.m4: remove K&R-style function prototypes
30358         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
30359         for the Sun C++ compiler.
30360
30361 2009-01-14  Bruno Haible  <bruno@clisp.org>
30362
30363         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
30364         while including <wchar.h>.
30365         * lib/wchar.in.h: In two particular situations on HP-UX, include only
30366         the system's <wchar.h> file.
30367         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30368
30369 2009-01-14  Bruno Haible  <bruno@clisp.org>
30370
30371         * m4/csharp.m4: Don't mention gettext on the serial number line.
30372         * m4/csharpexec.m4: Likewise.
30373         * m4/eaccess.m4: Likewise.
30374         * m4/javaexec.m4: Likewise.
30375         * m4/sig_atomic_t.m4: Likewise.
30376         * m4/tmpdir.m4: Likewise.
30377         * m4/intldir.m4: Bump gettext version.
30378         * m4/lib-ld.m4: Likewise.
30379
30380 2009-01-14  Bruno Haible  <bruno@clisp.org>
30381
30382         * lib/progname.c (set_program_name): Add more comments.
30383         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
30384
30385 2009-01-14  Simon Josefsson  <simon@josefsson.org>
30386
30387         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
30388         were sys/stat.h does not define it.
30389
30390 2009-01-14  Jim Meyering  <meyering@redhat.com>
30391
30392         many *.m4 files: improve m4 quoting
30393         99% of this change was performed by running the following commands:
30394         git ls-files | grep '\.m4$' | xargs perl -pi \
30395           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
30396           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
30397           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
30398           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
30399         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
30400         The remainder were to add Copyright dates, increment serial numbers,
30401         undo some changes in comments, exclude m4/intl.m4, and add quotes
30402         around the "1" in ",1" where the unusual spacing prohibited the
30403         above regexps from doing the job.  For more details, see
30404         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
30405         * m4/acl.m4: Modified.
30406         * m4/afs.m4: Likewise.
30407         * m4/alloca.m4: Likewise.
30408         * m4/argp.m4: Likewise.
30409         * m4/argz.m4: Likewise.
30410         * m4/atexit.m4: Likewise.
30411         * m4/bison-i18n.m4: Likewise.
30412         * m4/bison.m4: Likewise.
30413         * m4/byteswap.m4: Likewise.
30414         * m4/c-stack.m4: Likewise.
30415         * m4/c-strtod.m4: Likewise.
30416         * m4/calloc.m4: Likewise.
30417         * m4/canonicalize-lgpl.m4: Likewise.
30418         * m4/chown.m4: Likewise.
30419         * m4/clock_time.m4: Likewise.
30420         * m4/codeset.m4: Likewise.
30421         * m4/copy-file.m4: Likewise.
30422         * m4/csharp.m4: Likewise.
30423         * m4/csharpcomp.m4: Likewise.
30424         * m4/csharpexec.m4: Likewise.
30425         * m4/d-ino.m4: Likewise.
30426         * m4/d-type.m4: Likewise.
30427         * m4/dirfd.m4: Likewise.
30428         * m4/double-slash-root.m4: Likewise.
30429         * m4/eaccess.m4: Likewise.
30430         * m4/eealloc.m4: Likewise.
30431         * m4/environ.m4: Likewise.
30432         * m4/errno_h.m4: Likewise.
30433         * m4/euidaccess.m4: Likewise.
30434         * m4/execute.m4: Likewise.
30435         * m4/fatal-signal.m4: Likewise.
30436         * m4/fchdir.m4: Likewise.
30437         * m4/fcntl_h.m4: Likewise.
30438         * m4/fileblocks.m4: Likewise.
30439         * m4/filenamecat.m4: Likewise.
30440         * m4/findprog.m4: Likewise.
30441         * m4/flexmember.m4: Likewise.
30442         * m4/fnmatch.m4: Likewise.
30443         * m4/fopen.m4: Likewise.
30444         * m4/fpending.m4: Likewise.
30445         * m4/fprintf-posix.m4: Likewise.
30446         * m4/free.m4: Likewise.
30447         * m4/frexp.m4: Likewise.
30448         * m4/frexpl.m4: Likewise.
30449         * m4/fsusage.m4: Likewise.
30450         * m4/ftruncate.m4: Likewise.
30451         * m4/gc-camellia.m4: Likewise.
30452         * m4/gc-random.m4: Likewise.
30453         * m4/gc.m4: Likewise.
30454         * m4/getaddrinfo.m4: Likewise.
30455         * m4/getcwd-abort-bug.m4: Likewise.
30456         * m4/getcwd-path-max.m4: Likewise.
30457         * m4/getdate.m4: Likewise.
30458         * m4/getdomainname.m4: Likewise.
30459         * m4/getgroups.m4: Likewise.
30460         * m4/gethostname.m4: Likewise.
30461         * m4/gethrxtime.m4: Likewise.
30462         * m4/getline.m4: Likewise.
30463         * m4/getloadavg.m4: Likewise.
30464         * m4/getndelim2.m4: Likewise.
30465         * m4/getpass.m4: Likewise.
30466         * m4/gettext.m4: Likewise.
30467         * m4/gettime.m4: Likewise.
30468         * m4/gettimeofday.m4: Likewise.
30469         * m4/gnulib-common.m4: Likewise.
30470         * m4/group-member.m4: Likewise.
30471         * m4/host-os.m4: Likewise.
30472         * m4/iconv.m4: Likewise.
30473         * m4/iconv_open.m4: Likewise.
30474         * m4/inet_ntop.m4: Likewise.
30475         * m4/inet_pton.m4: Likewise.
30476         * m4/inline.m4: Likewise.
30477         * m4/intldir.m4: Likewise.
30478         * m4/intlmacosx.m4: Likewise.
30479         * m4/intmax.m4: Likewise.
30480         * m4/intmax_t.m4: Likewise.
30481         * m4/inttypes.m4: Likewise.
30482         * m4/inttypes_h.m4: Likewise.
30483         * m4/inttypes-pri.m4: Likewise.
30484         * m4/isapipe.m4: Likewise.
30485         * m4/isnand.m4: Likewise.
30486         * m4/isnanf.m4: Likewise.
30487         * m4/isnanl.m4: Likewise.
30488         * m4/javacomp.m4: Likewise.
30489         * m4/javaexec.m4: Likewise.
30490         * m4/jm-winsz1.m4: Likewise.
30491         * m4/jm-winsz2.m4: Likewise.
30492         * m4/lchown.m4: Likewise.
30493         * m4/lcmessage.m4: Likewise.
30494         * m4/ldexpl.m4: Likewise.
30495         * m4/lib-ld.m4: Likewise.
30496         * m4/lib-link.m4: Likewise.
30497         * m4/libsigsegv.m4: Likewise.
30498         * m4/link-follow.m4: Likewise.
30499         * m4/localcharset.m4: Likewise.
30500         * m4/locale-fr.m4: Likewise.
30501         * m4/locale-ja.m4: Likewise.
30502         * m4/locale-tr.m4: Likewise.
30503         * m4/locale-zh.m4: Likewise.
30504         * m4/lock.m4: Likewise.
30505         * m4/longlong.m4: Likewise.
30506         * m4/ls-mntd-fs.m4: Likewise.
30507         * m4/lstat.m4: Likewise.
30508         * m4/malloc.m4: Likewise.
30509         * m4/mathl.m4: Likewise.
30510         * m4/mbrtowc.m4: Likewise.
30511         * m4/mbstate_t.m4: Likewise.
30512         * m4/mbswidth.m4: Likewise.
30513         * m4/memchr.m4: Likewise.
30514         * m4/memcmp.m4: Likewise.
30515         * m4/memcpy.m4: Likewise.
30516         * m4/memmem.m4: Likewise.
30517         * m4/memmove.m4: Likewise.
30518         * m4/mempcpy.m4: Likewise.
30519         * m4/memrchr.m4: Likewise.
30520         * m4/memset.m4: Likewise.
30521         * m4/minmax.m4: Likewise.
30522         * m4/mkdir-slash.m4: Likewise.
30523         * m4/mkdtemp.m4: Likewise.
30524         * m4/mktime.m4: Likewise.
30525         * m4/mmap-anon.m4: Likewise.
30526         * m4/mountlist.m4: Likewise.
30527         * m4/nanosleep.m4: Likewise.
30528         * m4/nls.m4: Likewise.
30529         * m4/nocrash.m4: Likewise.
30530         * m4/open.m4: Likewise.
30531         * m4/openat.m4: Likewise.
30532         * m4/openmp.m4: Likewise.
30533         * m4/pathmax.m4: Likewise.
30534         * m4/perl.m4: Likewise.
30535         * m4/physmem.m4: Likewise.
30536         * m4/pipe.m4: Likewise.
30537         * m4/po.m4: Likewise.
30538         * m4/poll.m4: Likewise.
30539         * m4/posixtm.m4: Likewise.
30540         * m4/posixver.m4: Likewise.
30541         * m4/printf-frexp.m4: Likewise.
30542         * m4/printf-frexpl.m4: Likewise.
30543         * m4/printf-posix.m4: Likewise.
30544         * m4/printf-posix-rpl.m4: Likewise.
30545         * m4/printf.m4: Likewise.
30546         * m4/progtest.m4: Likewise.
30547         * m4/putenv.m4: Likewise.
30548         * m4/readline.m4: Likewise.
30549         * m4/readlink.m4: Likewise.
30550         * m4/readutmp.m4: Likewise.
30551         * m4/realloc.m4: Likewise.
30552         * m4/regex.m4: Likewise.
30553         * m4/relocatable.m4: Likewise.
30554         * m4/relocatable-lib.m4: Likewise.
30555         * m4/rename-dest-slash.m4: Likewise.
30556         * m4/rename.m4: Likewise.
30557         * m4/rmdir-errno.m4: Likewise.
30558         * m4/rmdir.m4: Likewise.
30559         * m4/roundf.m4: Likewise.
30560         * m4/roundl.m4: Likewise.
30561         * m4/rpmatch.m4: Likewise.
30562         * m4/save-cwd.m4: Likewise.
30563         * m4/selinux-selinux-h.m4: Likewise.
30564         * m4/setenv.m4: Likewise.
30565         * m4/settime.m4: Likewise.
30566         * m4/sig2str.m4: Likewise.
30567         * m4/sig_atomic_t.m4: Likewise.
30568         * m4/signalblocking.m4: Likewise.
30569         * m4/signbit.m4: Likewise.
30570         * m4/sigpipe.m4: Likewise.
30571         * m4/sockets.m4: Likewise.
30572         * m4/sockpfaf.m4: Likewise.
30573         * m4/st_dm_mode.m4: Likewise.
30574         * m4/stat-time.m4: Likewise.
30575         * m4/stdbool.m4: Likewise.
30576         * m4/stdint.m4: Likewise.
30577         * m4/stdint_h.m4: Likewise.
30578         * m4/stpcpy.m4: Likewise.
30579         * m4/stpncpy.m4: Likewise.
30580         * m4/strcase.m4: Likewise.
30581         * m4/strchrnul.m4: Likewise.
30582         * m4/strcspn.m4: Likewise.
30583         * m4/strdup.m4: Likewise.
30584         * m4/strftime.m4: Likewise.
30585         * m4/strndup.m4: Likewise.
30586         * m4/strnlen.m4: Likewise.
30587         * m4/strpbrk.m4: Likewise.
30588         * m4/strptime.m4: Likewise.
30589         * m4/strsep.m4: Likewise.
30590         * m4/strtod.m4: Likewise.
30591         * m4/strtoimax.m4: Likewise.
30592         * m4/strtok_r.m4: Likewise.
30593         * m4/strtol.m4: Likewise.
30594         * m4/strtoll.m4: Likewise.
30595         * m4/strtoul.m4: Likewise.
30596         * m4/strtoull.m4: Likewise.
30597         * m4/strtoumax.m4: Likewise.
30598         * m4/strverscmp.m4: Likewise.
30599         * m4/threadlib.m4: Likewise.
30600         * m4/timegm.m4: Likewise.
30601         * m4/tm_gmtoff.m4: Likewise.
30602         * m4/tmpdir.m4: Likewise.
30603         * m4/tmpfile.m4: Likewise.
30604         * m4/tzset.m4: Likewise.
30605         * m4/uintmax_t.m4: Likewise.
30606         * m4/unlinkdir.m4: Likewise.
30607         * m4/unlocked-io.m4: Likewise.
30608         * m4/uptime.m4: Likewise.
30609         * m4/userspec.m4: Likewise.
30610         * m4/utimbuf.m4: Likewise.
30611         * m4/utime.m4: Likewise.
30612         * m4/utimes-null.m4: Likewise.
30613         * m4/utimes.m4: Likewise.
30614         * m4/vararrays.m4: Likewise.
30615         * m4/vasnprintf.m4: Likewise.
30616         * m4/vfprintf-posix.m4: Likewise.
30617         * m4/vprintf-posix.m4: Likewise.
30618         * m4/wait-process.m4: Likewise.
30619         * m4/wchar_t.m4: Likewise.
30620         * m4/wint_t.m4: Likewise.
30621         * m4/write-any-file.m4: Likewise.
30622         * m4/yield.m4: Likewise.
30623
30624 2009-01-13  Bruno Haible  <bruno@clisp.org>
30625
30626         Avoid test-copy-file.sh failures when ACL support insufficient.
30627         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
30628         TESTS_ENVIRONMENT.
30629         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
30630         Reported by Jim Meyering.
30631
30632 2009-01-13  Bruno Haible  <bruno@clisp.org>
30633
30634         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
30635         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
30636         * modules/unistdio/u8-printf-parse (Files): Likewise.
30637         * modules/unistdio/u32-printf-parse (Files): Likewise.
30638         * modules/unistdio/ulc-printf-parse (Files): Likewise.
30639
30640 2009-01-13  Simon Josefsson  <simon@josefsson.org>
30641
30642         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
30643         and m4/inttypes_h.m4 too.
30644
30645 2009-01-12  Eric Blake  <ebb9@byu.net>
30646
30647         tests: IRIX 6.2 cc can't compile -0.0 into .data
30648         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
30649         rather than at compile-time.
30650         * tests/test-floorl.c (minus_zero): Likewise.
30651         * tests/test-frexpl.c (minus_zero): Likewise.
30652         * tests/test-isnan.c (minus_zerol): Likewise.
30653         * tests/test-isnanl.h (minus_zero): Likewise.
30654         * tests/test-ldexpl.c (minus_zero): Likewise.
30655         * tests/test-roundl.c (minus_zero): Likewise.
30656         * tests/test-signbit.c (minus_zerol): Likewise.
30657         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
30658         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
30659         * tests/test-truncl.c (minus_zero): Likewise.
30660         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
30661         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
30662         Reported by Tom G. Christensen and Nelson H. F. Beebe.
30663
30664 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
30665
30666         regex: fix glibc bug 9697
30667         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
30668         handling.
30669
30670 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
30671
30672         regex: fix glibc bug 697
30673         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
30674         being NULL also if there are no backreferences.
30675
30676 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
30677
30678         regex: merge glibc changes
30679         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
30680         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
30681         re_string_skip_chars, re_string_reconstruct): Likewise.
30682         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
30683
30684 2009-01-07  Jim Meyering  <meyering@redhat.com>
30685
30686         poll: filter through cppi
30687         * lib/poll.c: Indent cpp directives to reflect nesting.
30688
30689 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
30690
30691         poll: don't return uninitialized
30692         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
30693
30694 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
30695
30696         avoid compile failure on AIX 6.1
30697         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
30698         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
30699
30700 2009-01-04  Jim Meyering  <meyering@redhat.com>
30701
30702         remove duplicate inclusion of <stdio.h>
30703         * tests/test-fprintf-posix.c: Likewise.
30704         * tests/test-printf-posix.c: Likewise.
30705         * tests/test-snprintf-posix.c: Likewise.
30706         * tests/test-sprintf-posix.c: Likewise.
30707         * tests/test-vasprintf-posix.c: Likewise.
30708         * tests/test-vfprintf-posix.c: Likewise.
30709         * tests/test-vprintf-posix.c: Likewise.
30710         * tests/test-vsnprintf-posix.c: Likewise.
30711         * tests/test-vsprintf-posix.c: Likewise.
30712
30713 2009-01-03  Jim Meyering  <meyering@redhat.com>
30714
30715         gnulib-tool: fix sed-based filtering
30716         * gnulib-tool (func_filter_filelist): Remove extra backslash
30717         in sed_fff_filter definition.
30718
30719 2009-01-02  Jim Meyering  <meyering@redhat.com>
30720
30721         strftime: avoid compilation failure on Solaris 2.6
30722         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
30723         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
30724         Don't #define mbrlen or mbsinit, since now they're guaranteed to
30725         be available.  Reported by Tom G. Christensen.  Details in
30726         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
30727
30728 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30729             Bruno Haible  <bruno@clisp.org>
30730
30731         Speed up gnulib-tool by doing more string processing through shell
30732         built-ins.
30733         * gnulib-tool (fast_func_append): New variable.
30734         (func_remove_prefix, func_remove_suffix): New functions.
30735         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
30736         (func_filter_filelist): New function.
30737         (func_get_dependencies): Use func_remove_suffix instead of sed.
30738         (func_get_automake_snippet): Use func_filter_filelist instead of a
30739         subshell and sed invocation.
30740
30741 2009-01-01  Bruno Haible  <bruno@clisp.org>
30742
30743         Fix a security bug.
30744         * gnulib-tool (func_import, import, update): Don't allow the characters
30745         '"', '$', '`', '\' in macro arguments that become part of commands that
30746         are evaluated.
30747
30748 2009-01-01  Bruno Haible  <bruno@clisp.org>
30749
30750         * gnulib-tool (func_reset_sigpipe): Add more comments.
30751
30752 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30753
30754         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
30755         func_emit_tests_Makefile_am, func_import): Abort loops early if we
30756         already know the answer.
30757
30758 2009-01-01  Jim Meyering  <meyering@redhat.com>
30759
30760         * lib/version-etc.c (version_etc_va): Update copyright year.
30761
30762 2008-12-30  Bruno Haible  <bruno@clisp.org>
30763
30764         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
30765         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
30766         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
30767
30768 2008-12-29  Eric Blake  <ebb9@byu.net>
30769
30770         multiarch: avoid autoconf AC_REQUIRE bug
30771         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
30772         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
30773         2.63 and older.
30774         Reported by Bruno Haible, and analyzed in
30775         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
30776
30777 2008-12-29  Bruno Haible  <bruno@clisp.org>
30778
30779         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
30780         files in subdirectories correctly.
30781         Reported by Ralf Wildenhues.
30782
30783 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30784
30785         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
30786         rather than 'join FILE -', for Solaris join.
30787
30788 2008-12-29  Bruno Haible  <bruno@clisp.org>
30789
30790         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
30791         quoting.
30792         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
30793         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
30794         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
30795         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
30796         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
30797         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
30798         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
30799         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
30800         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
30801         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
30802         * m4/nls.m4 (AM_NLS): Likewise.
30803         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
30804         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
30805         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
30806         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
30807         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
30808         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30809         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
30810         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
30811         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
30812         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
30813         * m4/xsize.m4 (gl_XSIZE): Likewise.
30814         Suggested by Jim Meyering.
30815
30816 2008-11-17  Bruce Korb  <bkorb@gnu.org>
30817
30818         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
30819         * lib/parse-duration.c: use a switch instead of cascading if's.
30820
30821 2008-12-29  Eric Blake  <ebb9@byu.net>
30822
30823         wchar.h: supply WEOF on Irix 5.3
30824         * lib/wchar.in.h (wint_t): Also supply WEOF.
30825         * lib/wctype.in.h (wint_t): Likewise.
30826         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
30827         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
30828         Reported by Tom G. Christensen.
30829
30830 2008-12-26  Bruno Haible  <bruno@clisp.org>
30831
30832         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
30833         i486, i586, i686.
30834
30835 2008-12-26  Bruno Haible  <bruno@clisp.org>
30836
30837         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
30838
30839 2008-12-26  Bruno Haible  <bruno@clisp.org>
30840
30841         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
30842         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
30843         not __STDC_CONSTANT_MACROS.
30844         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
30845
30846 2008-12-25  Bruno Haible  <bruno@clisp.org>
30847
30848         Add support for universal builds to vasnprintf.
30849         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
30850         universal builds, guess no.
30851         * modules/vasnprintf-posix (Depends-on): Add multiarch.
30852         * modules/vasprintf-posix (Depends-on): Likewise.
30853         * modules/fprintf-posix (Depends-on): Likewise.
30854         * modules/vfprintf-posix (Depends-on): Likewise.
30855         * modules/snprintf-posix (Depends-on): Likewise.
30856         * modules/vsnprintf-posix (Depends-on): Likewise.
30857         * modules/sprintf-posix (Depends-on): Likewise.
30858         * modules/vsprintf-posix (Depends-on): Likewise.
30859         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30860         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30861         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30862         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30863         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30864         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30865         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30866
30867         Add support for universal builds to <inttypes.h>.
30868         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
30869         _SCNu64_PREFIX): In Apple
30870         universal builds, define directly, using _LP64.
30871         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
30872         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
30873         * modules/inttypes (Depends-on): Add multiarch.
30874         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
30875
30876         Add support for universal builds to <stdint.h>.
30877         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
30878         universal builds, define directly, using _LP64.
30879         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
30880         Apple universal builds, don't test for the size and suffix of ptrdiff_t
30881         and size_t.
30882         * modules/stdint (Depends-on): Add multiarch.
30883         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
30884
30885         New module 'multiarch'.
30886         * modules/multiarch: New file.
30887         * m4/multiarch.m4: New file.
30888
30889 2008-12-25  Bruno Haible  <bruno@clisp.org>
30890
30891         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
30892
30893 2008-12-25  Bruno Haible  <bruno@clisp.org>
30894
30895         * modules/btowc (License): Relicense under LGPLv2+.
30896         * modules/mbsinit (License): Likewise.
30897         * modules/mbrtowc (License): Likewise.
30898         * modules/wcrtomb (License): Likewise.
30899         * modules/streq (License): Likewise.
30900         Reported by David Lutterkort <lutter@redhat.com>.
30901
30902 2008-12-23  Bruno Haible  <bruno@clisp.org>
30903
30904         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
30905
30906 2008-12-23  Bruno Haible  <bruno@clisp.org>
30907
30908         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
30909         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
30910         GETADDRINFO_LIB, not in LIBS.
30911         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
30912         * modules/canon-host (Link): Likewise.
30913         * NEWS: Mention the change.
30914         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
30915         GETADDRINFO_LIB.
30916
30917 2008-12-22  Bruno Haible  <bruno@clisp.org>
30918
30919         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
30920         * doc/posix-functions/iswalpha_l.texi: Likewise.
30921         * doc/posix-functions/iswblank_l.texi: Likewise.
30922         * doc/posix-functions/iswcntrl_l.texi: Likewise.
30923         * doc/posix-functions/iswctype_l.texi: Likewise.
30924         * doc/posix-functions/iswdigit_l.texi: Likewise.
30925         * doc/posix-functions/iswgraph_l.texi: Likewise.
30926         * doc/posix-functions/iswlower_l.texi: Likewise.
30927         * doc/posix-functions/iswprint_l.texi: Likewise.
30928         * doc/posix-functions/iswpunct_l.texi: Likewise.
30929         * doc/posix-functions/iswspace_l.texi: Likewise.
30930         * doc/posix-functions/iswupper_l.texi: Likewise.
30931         * doc/posix-functions/iswxdigit_l.texi: Likewise.
30932         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
30933         * doc/posix-functions/open_wmemstream.texi: Likewise.
30934         * doc/posix-functions/swscanf.texi: Likewise.
30935         * doc/posix-functions/towctrans_l.texi: Likewise.
30936         * doc/posix-functions/towlower.texi: Likewise.
30937         * doc/posix-functions/towlower_l.texi: Likewise.
30938         * doc/posix-functions/towupper.texi: Likewise.
30939         * doc/posix-functions/towupper_l.texi: Likewise.
30940         * doc/posix-functions/vfwprintf.texi: Likewise.
30941         * doc/posix-functions/vfwscanf.texi: Likewise.
30942         * doc/posix-functions/vswscanf.texi: Likewise.
30943         * doc/posix-functions/vwprintf.texi: Likewise.
30944         * doc/posix-functions/vwscanf.texi: Likewise.
30945         * doc/posix-functions/wcpcpy.texi: Likewise.
30946         * doc/posix-functions/wcpncpy.texi: Likewise.
30947         * doc/posix-functions/wcscasecmp.texi: Likewise.
30948         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
30949         * doc/posix-functions/wcscoll_l.texi: Likewise.
30950         * doc/posix-functions/wcsdup.texi: Likewise.
30951         * doc/posix-functions/wcsncasecmp.texi: Likewise.
30952         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
30953         * doc/posix-functions/wcsnlen.texi: Likewise.
30954         * doc/posix-functions/wcsnrtombs.texi: Likewise.
30955         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
30956         * doc/posix-functions/wctrans_l.texi: Likewise.
30957         * doc/posix-functions/wctype_l.texi: Likewise.
30958         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
30959         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
30960         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
30961         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
30962         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
30963         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
30964         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
30965         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
30966         * doc/glibc-functions/wcschrnul.texi: Likewise.
30967         * doc/glibc-functions/wcsftime_l.texi: Likewise.
30968         * doc/glibc-functions/wcstod_l.texi: Likewise.
30969         * doc/glibc-functions/wcstof_l.texi: Likewise.
30970         * doc/glibc-functions/wcstol_l.texi: Likewise.
30971         * doc/glibc-functions/wcstold_l.texi: Likewise.
30972         * doc/glibc-functions/wcstoll_l.texi: Likewise.
30973         * doc/glibc-functions/wcstoq.texi: Likewise.
30974         * doc/glibc-functions/wcstoul_l.texi: Likewise.
30975         * doc/glibc-functions/wcstoull_l.texi: Likewise.
30976         * doc/glibc-functions/wcstouq.texi: Likewise.
30977         * doc/glibc-functions/wmempcpy.texi: Likewise.
30978
30979 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
30980             Eric Blake  <ebb9@byu.net>
30981             Paolo Bonzini  <bonzini@gnu.org>
30982             Bruno Haible  <bruno@clisp.org>
30983
30984         Make c-stack work on Haiku.
30985         * lib/c-stack.c (SA_ONSTACK): Define fallback.
30986         (c_stack_action): Use SA_ONSTACK flag.
30987
30988 2008-12-22  Bruno Haible  <bruno@clisp.org>
30989
30990         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
30991
30992 2008-12-22  Bruno Haible  <bruno@clisp.org>
30993
30994         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
30995         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
30996         being overridden.
30997         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
30998         New macros.
30999         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
31000         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
31001         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
31002         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
31003
31004 2008-12-22  Bruno Haible  <bruno@clisp.org>
31005
31006         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
31007         from test code.
31008
31009 2008-12-22  Eric Blake  <ebb9@byu.net>
31010
31011         Avoid gcc warnings on cygwin.
31012         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
31013         Avoid unused variable.
31014         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
31015         Likewise.
31016
31017 2008-12-22  Bruno Haible  <bruno@clisp.org>
31018
31019         Remove HAVE_MBRTOWC conditionals.
31020         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
31021         (mbscasecmp): Assume mbrtowc function.
31022         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
31023         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
31024         * lib/mbschr.c: Include mbuiter.h unconditionally.
31025         (mbschr): Assume mbrtowc function.
31026         * lib/mbscspn.c: Include mbuiter.h unconditionally.
31027         (mbscspn): Assume mbrtowc function.
31028         * lib/mbslen.c: Include mbuiter.h unconditionally.
31029         (mbslen): Assume mbrtowc function.
31030         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
31031         (mbsncasecmp): Assume mbrtowc function.
31032         * lib/mbsnlen.c: Include mbiter.h unconditionally.
31033         (mbsnlen): Assume mbrtowc function.
31034         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
31035         (mbspbrk): Assume mbrtowc function.
31036         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
31037         (mbspcasecmp): Assume mbrtowc function.
31038         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
31039         (mbsrchr): Assume mbrtowc function.
31040         * lib/mbssep.c: Include mbuiter.h unconditionally.
31041         (mbssep): Assume mbrtowc function.
31042         * lib/mbsspn.c: Include mbuiter.h unconditionally.
31043         (mbsspn): Assume mbrtowc function.
31044         * lib/mbsstr.c: Include mbuiter.h unconditionally.
31045         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
31046         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
31047         (mbstok_r): Assume mbrtowc function.
31048         * lib/propername.c: Include mbuiter.h unconditionally.
31049         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
31050         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
31051         (trim2): Assume mbrtowc function.
31052         * lib/mbswidth.c (mbsinit): Remove fallback definition.
31053         (mbsnwidth): Assume mbrtowc function.
31054         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
31055         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
31056         fallback definitions.
31057         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
31058
31059 2008-12-22  Bruno Haible  <bruno@clisp.org>
31060
31061         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
31062
31063 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
31064
31065         * modules/regex: Request emulations for the mb*/wc* functions we need.
31066         * m4/regex.m4: Don't look for those functions here.
31067         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
31068
31069 2008-12-22  Bruno Haible  <bruno@clisp.org>
31070
31071         * modules/fnmatch (Depends-on): Remove duplicated dependency.
31072
31073 2008-12-21  Bruno Haible  <bruno@clisp.org>
31074
31075         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
31076         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
31077         (Include): Remove conditionalization.
31078         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
31079         (Include): Remove conditionalization.
31080         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
31081         (Include): Remove conditionalization.
31082         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
31083         * m4/mbfile.m4 (gl_MBFILE): Likewise.
31084         * NEWS: Mention the change.
31085         Reported by Alan Hourihane <alanh@fairlite.co.uk>
31086         via Sergey Poznyakoff <gray@gnu.org.ua>.
31087
31088 2008-12-21  Bruno Haible  <bruno@clisp.org>
31089
31090         * MODULES.html.sh (Extended multibyte and wide character utilities
31091         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
31092         wcrtomb, wcsrtombs.
31093         (Support for systems lacking POSIX:2008): Add accept, bind, close,
31094         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
31095         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
31096         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
31097
31098 2008-12-21  Bruno Haible  <bruno@clisp.org>
31099
31100         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
31101
31102 2008-12-21  Bruno Haible  <bruno@clisp.org>
31103
31104         * modules/wcsnrtombs-tests: New file.
31105         * tests/test-wcsnrtombs1.sh: New file.
31106         * tests/test-wcsnrtombs2.sh: New file.
31107         * tests/test-wcsnrtombs3.sh: New file.
31108         * tests/test-wcsnrtombs4.sh: New file.
31109         * tests/test-wcsnrtombs.c: New file.
31110
31111         New module 'wcsnrtombs'.
31112         * lib/wchar.in.h (wcsnrtombs): New declaration.
31113         * lib/wcsnrtombs.c: New file.
31114         * lib/wcsrtombs-state.c: New file.
31115         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
31116         (internal_state): Remove variable.
31117         * m4/wcsnrtombs.m4: New file.
31118         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
31119         compilation units.
31120         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
31121         HAVE_WCSNRTOMBS.
31122         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
31123         HAVE_WCSNRTOMBS.
31124         * modules/wcsnrtombs: New file.
31125         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
31126         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
31127
31128 2008-12-21  Bruno Haible  <bruno@clisp.org>
31129
31130         * modules/wcsrtombs-tests: New file.
31131         * tests/test-wcsrtombs1.sh: New file.
31132         * tests/test-wcsrtombs2.sh: New file.
31133         * tests/test-wcsrtombs3.sh: New file.
31134         * tests/test-wcsrtombs4.sh: New file.
31135         * tests/test-wcsrtombs.c: New file.
31136
31137         New module 'wcsrtombs'.
31138         * lib/wchar.in.h (wcsrtombs): New declaration.
31139         * lib/wcsrtombs.c: New file.
31140         * m4/wcsrtombs.m4: New file.
31141         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
31142         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
31143         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
31144         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
31145         * modules/wcsrtombs: New file.
31146         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
31147         bugs.
31148
31149 2008-12-21  Bruno Haible  <bruno@clisp.org>
31150
31151         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
31152         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
31153         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
31154         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
31155         if not correct.
31156         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
31157         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
31158         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
31159         m4/locale-zh.m4, m4/codeset.m4.
31160         * doc/posix-functions/wcrtomb.texi: Document the bug.
31161
31162 2008-12-21  Bruno Haible  <bruno@clisp.org>
31163
31164         Work around a btowc() bug on IRIX 6.5.
31165         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
31166         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
31167         REPLACE_WTOBC if not.
31168         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
31169         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
31170         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
31171
31172 2008-12-21  Bruno Haible  <bruno@clisp.org>
31173
31174         * modules/wcrtomb-tests: New file.
31175         * tests/test-wcrtomb.sh: New file.
31176         * tests/test-wcrtomb.c: New file.
31177
31178         New module 'wcrtomb'.
31179         * lib/wchar.in.h (wcrtomb): New declaration.
31180         * lib/wcrtomb.c: New file.
31181         * m4/wcrtomb.m4: New file.
31182         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
31183         HAVE_WCRTOMB.
31184         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
31185         HAVE_WCRTOMB.
31186         * modules/wcrtomb: New file.
31187         * doc/posix-functions/wcrtomb.texi: Mention the new module.
31188
31189 2008-12-21  Bruno Haible  <bruno@clisp.org>
31190
31191         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
31192         * modules/mbsrtowcs (Files): Likewise.
31193         * modules/wctob (Files): Likewise.
31194         * modules/c-strcase-tests (Files): Likewise.
31195         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
31196         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
31197         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
31198         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
31199         * modules/vasnprintf-posix-tests (Files): Likewise.
31200
31201 2008-12-21  William Pursell  <bill.pursell@gmail.com>
31202
31203         gitlog-to-changelog: pass all command-line arguments to git-log
31204         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
31205         it is sometimes convenient to filter the commits in various ways.
31206         gitlog-to-changelog only allows --since to specify a start date,
31207         but git-log itself supports many other filtering mechanisms.
31208         At the moment, I want to filter by branch name.  Rather than
31209         adding a --branch option to gitlog-to-changelog, it seems more
31210         flexible to simply pass all options directly to git-log and let
31211         git do the work.  Notice that this effectively makes --since a
31212         redundant option for gitlog-to-changelog, but removing it would
31213         require current usage to change since calls would then require
31214         an additional '--'.
31215
31216 2008-12-21  Bruno Haible  <bruno@clisp.org>
31217
31218         * modules/mbsnrtowcs-tests: New file.
31219         * tests/test-mbsnrtowcs1.sh: New file.
31220         * tests/test-mbsnrtowcs2.sh: New file.
31221         * tests/test-mbsnrtowcs3.sh: New file.
31222         * tests/test-mbsnrtowcs4.sh: New file.
31223         * tests/test-mbsnrtowcs.c: New file.
31224
31225         New module 'mbsnrtowcs'.
31226         * lib/wchar.in.h (mbsnrtowcs): New declaration.
31227         * lib/mbsnrtowcs.c: New file.
31228         * lib/mbsrtowcs-state.c: New file.
31229         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
31230         (internal_state): Remove variable.
31231         * m4/mbsnrtowcs.m4: New file.
31232         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
31233         compilation units.
31234         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
31235         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
31236         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
31237         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
31238         * modules/mbsnrtowcs: New file.
31239         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
31240         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
31241         portability problem.
31242
31243 2008-12-21  Bruno Haible  <bruno@clisp.org>
31244
31245         Work around mbsrtowcs bug.
31246         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
31247         (gl_FUNC_MBSRTOWCS): Invoke it.
31248         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
31249         m4/locale-zh.m4.
31250         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
31251
31252 2008-12-21  Bruno Haible  <bruno@clisp.org>
31253
31254         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
31255
31256 2008-12-21  Bruno Haible  <bruno@clisp.org>
31257
31258         Update doc for AIX.
31259         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
31260         16-bit wchar_t type.
31261         * doc/posix-functions/btowc.texi: Likewise.
31262         * doc/posix-functions/fgetwc.texi: Likewise.
31263         * doc/posix-functions/fgetws.texi: Likewise.
31264         * doc/posix-functions/fputwc.texi: Likewise.
31265         * doc/posix-functions/fputws.texi: Likewise.
31266         * doc/posix-functions/fwide.texi: Likewise.
31267         * doc/posix-functions/fwprintf.texi: Likewise.
31268         * doc/posix-functions/fwscanf.texi: Likewise.
31269         * doc/posix-functions/getwchar.texi: Likewise.
31270         * doc/posix-functions/getwc.texi: Likewise.
31271         * doc/posix-functions/iswalnum.texi: Likewise.
31272         * doc/posix-functions/iswalpha.texi: Likewise.
31273         * doc/posix-functions/iswblank.texi: Likewise.
31274         * doc/posix-functions/iswcntrl.texi: Likewise.
31275         * doc/posix-functions/iswctype.texi: Likewise.
31276         * doc/posix-functions/iswdigit.texi: Likewise.
31277         * doc/posix-functions/iswgraph.texi: Likewise.
31278         * doc/posix-functions/iswlower.texi: Likewise.
31279         * doc/posix-functions/iswprint.texi: Likewise.
31280         * doc/posix-functions/iswpunct.texi: Likewise.
31281         * doc/posix-functions/iswspace.texi: Likewise.
31282         * doc/posix-functions/iswupper.texi: Likewise.
31283         * doc/posix-functions/iswxdigit.texi: Likewise.
31284         * doc/posix-functions/mbrtowc.texi: Likewise.
31285         * doc/posix-functions/mbsrtowcs.texi: Likewise.
31286         * doc/posix-functions/mbstowcs.texi: Likewise.
31287         * doc/posix-functions/mbtowc.texi: Likewise.
31288         * doc/posix-functions/putwchar.texi: Likewise.
31289         * doc/posix-functions/putwc.texi: Likewise.
31290         * doc/posix-functions/swprintf.texi: Likewise.
31291         * doc/posix-functions/tolower.texi: Likewise.
31292         * doc/posix-functions/toupper.texi: Likewise.
31293         * doc/posix-functions/towctrans.texi: Likewise.
31294         * doc/posix-functions/ungetwc.texi: Likewise.
31295         * doc/posix-functions/vswprintf.texi: Likewise.
31296         * doc/posix-functions/wcrtomb.texi: Likewise.
31297         * doc/posix-functions/wcscat.texi: Likewise.
31298         * doc/posix-functions/wcschr.texi: Likewise.
31299         * doc/posix-functions/wcscmp.texi: Likewise.
31300         * doc/posix-functions/wcscoll.texi: Likewise.
31301         * doc/posix-functions/wcscpy.texi: Likewise.
31302         * doc/posix-functions/wcscspn.texi: Likewise.
31303         * doc/posix-functions/wcsftime.texi: Likewise.
31304         * doc/posix-functions/wcslen.texi: Likewise.
31305         * doc/posix-functions/wcsncat.texi: Likewise.
31306         * doc/posix-functions/wcsncmp.texi: Likewise.
31307         * doc/posix-functions/wcsncpy.texi: Likewise.
31308         * doc/posix-functions/wcspbrk.texi: Likewise.
31309         * doc/posix-functions/wcsrchr.texi: Likewise.
31310         * doc/posix-functions/wcsrtombs.texi: Likewise.
31311         * doc/posix-functions/wcsspn.texi: Likewise.
31312         * doc/posix-functions/wcsstr.texi: Likewise.
31313         * doc/posix-functions/wcstod.texi: Likewise.
31314         * doc/posix-functions/wcstof.texi: Likewise.
31315         * doc/posix-functions/wcstoimax.texi: Likewise.
31316         * doc/posix-functions/wcstok.texi: Likewise.
31317         * doc/posix-functions/wcstold.texi: Likewise.
31318         * doc/posix-functions/wcstoll.texi: Likewise.
31319         * doc/posix-functions/wcstol.texi: Likewise.
31320         * doc/posix-functions/wcstombs.texi: Likewise.
31321         * doc/posix-functions/wcstoull.texi: Likewise.
31322         * doc/posix-functions/wcstoul.texi: Likewise.
31323         * doc/posix-functions/wcstoumax.texi: Likewise.
31324         * doc/posix-functions/wcswidth.texi: Likewise.
31325         * doc/posix-functions/wcsxfrm.texi: Likewise.
31326         * doc/posix-functions/wctob.texi: Likewise.
31327         * doc/posix-functions/wctomb.texi: Likewise.
31328         * doc/posix-functions/wctrans.texi: Likewise.
31329         * doc/posix-functions/wctype.texi: Likewise.
31330         * doc/posix-functions/wcwidth.texi: Likewise.
31331         * doc/posix-functions/wmemchr.texi: Likewise.
31332         * doc/posix-functions/wmemcmp.texi: Likewise.
31333         * doc/posix-functions/wmemcpy.texi: Likewise.
31334         * doc/posix-functions/wmemmove.texi: Likewise.
31335         * doc/posix-functions/wmemset.texi: Likewise.
31336         * doc/posix-functions/wprintf.texi: Likewise.
31337         * doc/posix-functions/wscanf.texi: Likewise.
31338
31339 2008-12-21  Bruno Haible  <bruno@clisp.org>
31340
31341         Update doc for HP-UX 11.11.
31342         * doc/posix-functions/btowc.texi: Clarify that the function is missing
31343         in HP-UX version 11.00, not in all versions of HP-UX 11.
31344         * doc/posix-functions/fwide.texi: Likewise.
31345         * doc/posix-functions/fwprintf.texi: Likewise.
31346         * doc/posix-functions/fwscanf.texi: Likewise.
31347         * doc/posix-functions/inet_ntop.texi: Likewise.
31348         * doc/posix-functions/inet_pton.texi: Likewise.
31349         * doc/posix-functions/mbrlen.texi: Likewise.
31350         * doc/posix-functions/mbrtowc.texi: Likewise.
31351         * doc/posix-functions/mbsinit.texi: Likewise.
31352         * doc/posix-functions/mbsrtowcs.texi: Likewise.
31353         * doc/posix-functions/swprintf.texi: Likewise.
31354         * doc/posix-functions/swscanf.texi: Likewise.
31355         * doc/posix-functions/towctrans.texi: Likewise.
31356         * doc/posix-functions/vfwprintf.texi: Likewise.
31357         * doc/posix-functions/vswprintf.texi: Likewise.
31358         * doc/posix-functions/vwprintf.texi: Likewise.
31359         * doc/posix-functions/wcrtomb.texi: Likewise.
31360         * doc/posix-functions/wcsrtombs.texi: Likewise.
31361         * doc/posix-functions/wcsstr.texi: Likewise.
31362         * doc/posix-functions/wctob.texi: Likewise.
31363         * doc/posix-functions/wctrans.texi: Likewise.
31364         * doc/posix-functions/wmemchr.texi: Likewise.
31365         * doc/posix-functions/wmemcmp.texi: Likewise.
31366         * doc/posix-functions/wmemcpy.texi: Likewise.
31367         * doc/posix-functions/wmemmove.texi: Likewise.
31368         * doc/posix-functions/wmemset.texi: Likewise.
31369         * doc/posix-functions/wprintf.texi: Likewise.
31370         * doc/posix-functions/wscanf.texi: Likewise.
31371
31372 2008-12-21  Bruno Haible  <bruno@clisp.org>
31373
31374         Work around a portability problem.
31375         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
31376         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
31377
31378 2008-12-20  Bruno Haible  <bruno@clisp.org>
31379
31380         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
31381         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
31382         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
31383         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
31384         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
31385
31386         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
31387         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
31388         set.
31389         (GNULIB_defined_mbstate_t): New macro.
31390         (mbsinit): Redefine if REPLACE_MBSINIT is set.
31391         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
31392         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
31393         reuses the system's mbrtowc function but works around the bugs.
31394         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
31395         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
31396         macros.
31397         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
31398         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
31399         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
31400         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
31401         REPLACE_MBSINIT if mbsinit needs to be overridden.
31402         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
31403         REPLACE_MBSINIT, REPLACE_MBRTOWC.
31404         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
31405         REPLACE_MBSINIT, REPLACE_MBRTOWC.
31406         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
31407         m4/locale-zh.m4.
31408         (Depends): Add mbsinit.
31409         * modules/mbsinit (Depends): Add mbrtowc.
31410         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
31411
31412 2008-12-20  Bruno Haible  <bruno@clisp.org>
31413
31414         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
31415         so that there are no conversion errors on AIX.
31416         * tests/test-mbsrtowcs.c (main): LIkewise.
31417
31418 2008-12-20  Bruno Haible  <bruno@clisp.org>
31419
31420         Work around wctob bug on Solaris <= 9.
31421         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
31422         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
31423         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
31424         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
31425         * modules/wctob (Files): Add m4/locale-fr.m4.
31426         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
31427
31428 2008-12-20  Bruno Haible  <bruno@clisp.org>
31429
31430         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
31431         /dev/null.
31432         * tests/test-select-in.sh: Likewise.
31433         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31434
31435 2008-12-20  Bruno Haible  <bruno@clisp.org>
31436
31437         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
31438         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
31439         Cygwin 1.5.x.
31440
31441 2008-12-20  Bruno Haible  <bruno@clisp.org>
31442
31443         Ensure mbstate_t is defined on HP-UX 11.11.
31444         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
31445         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
31446         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
31447         AC_USE_SYSTEM_EXTENSIONS.
31448         * modules/fnmatch (Depends-on): Add extensions.
31449         * modules/mbrlen (Depends-on): Likewise.
31450         * modules/mbrtowc (Depends-on): Likewise.
31451         * modules/mbsinit (Depends-on): Likewise.
31452         * modules/mbsrtowcs (Depends-on): Likewise.
31453         * modules/mbswidth (Depends-on): Likewise.
31454         * modules/quotearg (Depends-on): Likewise.
31455         * modules/strftime (Depends-on): Likewise.
31456
31457 2008-12-20  Bruno Haible  <bruno@clisp.org>
31458
31459         Ensure wctob is declared on IRIX 6.5.
31460         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
31461         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
31462         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
31463         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
31464         of HAVE_WCTOB.
31465         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
31466         HAVE_WCTOB.
31467         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
31468
31469 2008-12-19  Bruno Haible  <bruno@clisp.org>
31470
31471         * modules/mbsrtowcs-tests: New file.
31472         * tests/test-mbsrtowcs1.sh: New file.
31473         * tests/test-mbsrtowcs2.sh: New file.
31474         * tests/test-mbsrtowcs3.sh: New file.
31475         * tests/test-mbsrtowcs4.sh: New file.
31476         * tests/test-mbsrtowcs.c: New file.
31477
31478         New module 'mbsrtowcs'.
31479         * lib/wchar.in.h (mbsrtowcs): New declaration.
31480         * lib/mbsrtowcs.c: New file.
31481         * m4/mbsrtowcs.m4: New file.
31482         * modules/mbsrtowcs: New file.
31483         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
31484         HAVE_MBSRTOWCS.
31485         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
31486         HAVE_MBSRTOWCS.
31487         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
31488
31489 2008-12-19  Bruno Haible  <bruno@clisp.org>
31490
31491         New module 'mbrlen'.
31492         * lib/wchar.in.h (mbrlen): New declaration.
31493         * lib/mbrlen.c: New file.
31494         * m4/mbrlen.m4: New file.
31495         * modules/mbrlen: New file.
31496         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
31497         HAVE_MBRLEN.
31498         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
31499         HAVE_MBRLEN.
31500         * doc/posix-functions/mbrlen.texi: Document the new module.
31501
31502 2008-12-19  Bruno Haible  <bruno@clisp.org>
31503
31504         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
31505         * modules/mbrtowc (Depends-on): Add verify.
31506         Suggested by Paul Eggert.
31507
31508 2008-12-18  Bruno Haible  <bruno@clisp.org>
31509
31510         * modules/mbsinit-tests: New file.
31511         * tests/test-mbsinit.sh: New file.
31512         * tests/test-mbsinit.c: New file.
31513
31514 2008-12-18  Bruno Haible  <bruno@clisp.org>
31515
31516         * modules/mbrtowc-tests: New file.
31517         * tests/test-mbrtowc1.sh: New file.
31518         * tests/test-mbrtowc2.sh: New file.
31519         * tests/test-mbrtowc3.sh: New file.
31520         * tests/test-mbrtowc4.sh: New file.
31521         * tests/test-mbrtowc.c: New file.
31522
31523         New module 'mbrtowc'.
31524         * lib/wchar.in.h (mbstate_t): Override when the system does not have
31525         mbsinit and mbrtowc.
31526         (mbrtowc): New declaration.
31527         * lib/mbrtowc.c: New file.
31528         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
31529         * modules/mbrtowc: New file.
31530         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
31531         HAVE_MBRTOWC.
31532         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
31533         HAVE_MBRTOWC.
31534         * doc/posix-functions/mbrtowc.texi: Document the new module.
31535
31536 2008-12-18  Bruno Haible  <bruno@clisp.org>
31537
31538         New module 'wctob'.
31539         * lib/wchar.in.h (wctob): New declaration.
31540         * lib/wctob.c: New file.
31541         * m4/wctob.m4: New file.
31542         * modules/wctob: New file.
31543         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
31544         HAVE_WCTOB.
31545         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
31546         * doc/posix-functions/wctob.texi: Document the new module.
31547
31548 2008-12-18  Bruno Haible  <bruno@clisp.org>
31549
31550         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
31551         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
31552
31553 2008-12-18  Simon Josefsson  <simon@josefsson.org>
31554
31555         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
31556         G. Christensen" <tgc@jupiterrise.com>.
31557
31558         * lib/flock.c: Need to include errno.h.  Reported by "Tom
31559         G. Christensen" <tgc@jupiterrise.com>.
31560
31561         * lib/flock.c: Need to include string.h.  Reported by "Tom
31562         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
31563         <ebb9@byu.net>.
31564
31565 2008-12-18  Bruno Haible  <bruno@clisp.org>
31566
31567         * m4/locale-ja.m4: New file, from GNU gettext.
31568
31569 2008-12-17  Bruno Haible  <bruno@clisp.org>
31570
31571         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
31572         Suggested by Eric Blake.
31573
31574 2008-12-17  Bruno Haible  <bruno@clisp.org>
31575
31576         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
31577
31578 2008-12-17  Bruno Haible  <bruno@clisp.org>
31579
31580         * lib/mbsinit.c: Include verify.h. Verify an assumption.
31581         * modules/mbsinit (Depends-on): Add verify.
31582         Suggested by Paul Eggert.
31583
31584 2008-12-17  Bruno Haible  <bruno@clisp.org>
31585
31586         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
31587         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
31588         gl_FUNC_MBRTOWC.
31589         * m4/mbiter.m4 (gl_MBITER): LIkewise.
31590         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
31591         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
31592         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
31593         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
31594         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
31595         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
31596         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
31597         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
31598         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
31599         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
31600         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
31601         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
31602         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
31603         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
31604         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31605         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
31606         * modules/trim (configure.ac): Likewise.
31607
31608 2008-12-17  Bruno Haible  <bruno@clisp.org>
31609
31610         * modules/btowc-tests: New file.
31611         * tests/test-btowc1.sh: New file.
31612         * tests/test-btowc2.sh: New file.
31613         * tests/test-btowc.c: New file.
31614
31615         New module 'btowc'.
31616         * lib/wchar.in.h (btowc): New declaration.
31617         * lib/btowc.c: New file.
31618         * m4/btowc.m4: New file.
31619         * modules/btowc: New file.
31620         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
31621         HAVE_BTOWC.
31622         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
31623         * doc/posix-functions/btowc.texi: Document the new module.
31624
31625 2008-12-17  Bruno Haible  <bruno@clisp.org>
31626
31627         New module 'mbsinit'.
31628         * lib/wchar.in.h (mbsinit): New declaration.
31629         * lib/mbsinit.c: New file.
31630         * m4/mbsinit.m4: New file.
31631         * modules/mbsinit: New file.
31632         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
31633         HAVE_MBSINIT.
31634         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
31635         HAVE_MBSINIT.
31636         * doc/posix-functions/mbsinit.texi: Document the new module.
31637
31638 2008-12-16  Bruno Haible  <bruno@clisp.org>
31639
31640         * lib/unistd.in.h: Add comment.
31641         * tests/test-environ.c: Don't include <stdlib.h>.
31642
31643 2008-12-16  Bruno Haible  <bruno@clisp.org>
31644
31645         * lib/parse-duration.h (parse_duration): Document return value
31646         convention.
31647         * lib/parse-duration.c: Include specification header first. Add
31648         comments.
31649         (_): Remove macro.
31650         (parse_year_month_day, parse_hour_minute_second): Move side effects
31651         outside of strchr call.
31652         (parse_non_iso8601): Move side effects outside of isspace call.
31653         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
31654         call.
31655
31656 2008-12-16  Bruno Haible  <bruno@clisp.org>
31657
31658         * tests/test-parse-duration.sh: Produce no output when the test
31659         succeeds.
31660
31661 2008-12-16  Bruno Haible  <bruno@clisp.org>
31662
31663         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
31664         expressions.
31665
31666 2008-12-15  Bruno Haible  <bruno@clisp.org>
31667
31668         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
31669         * doc/glibc-functions/flistxattr.texi: Likewise.
31670         * doc/glibc-functions/fopencookie.texi: Likewise.
31671         * doc/glibc-functions/fremovexattr.texi: Likewise.
31672         * doc/glibc-functions/fsetxattr.texi: Likewise.
31673         * doc/glibc-functions/getxattr.texi: Likewise.
31674         * doc/glibc-functions/lgetxattr.texi: Likewise.
31675         * doc/glibc-functions/listxattr.texi: Likewise.
31676         * doc/glibc-functions/llistxattr.texi: Likewise.
31677         * doc/glibc-functions/lremovexattr.texi: Likewise.
31678         * doc/glibc-functions/lsetxattr.texi: Likewise.
31679         * doc/glibc-functions/removexattr.texi: Likewise.
31680         * doc/glibc-functions/setxattr.texi: Likewise.
31681         * doc/posix-functions/open_memstream.texi: Likewise.
31682
31683 2008-12-15  Eric Blake  <ebb9@byu.net>
31684
31685         Update doc for cygwin 1.7.
31686         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
31687         functions.
31688         * doc/posix-functions/fchmodat.texi: Likewise.
31689         * doc/posix-functions/fchownat.texi: Likewise.
31690         * doc/posix-functions/fdopendir.texi: Likewise.
31691         * doc/posix-functions/fmemopen.texi: Likewise.
31692         * doc/posix-functions/freeaddrinfo.texi: Likewise.
31693         * doc/posix-functions/fstatat.texi: Likewise.
31694         * doc/posix-functions/futimens.texi: Likewise.
31695         * doc/posix-functions/gai_strerror.texi: Likewise.
31696         * doc/posix-functions/getaddrinfo.texi: Likewise.
31697         * doc/posix-functions/getnameinfo.texi: Likewise.
31698         * doc/posix-functions/if_freenameindex.texi: Likewise.
31699         * doc/posix-functions/if_indextoname.texi: Likewise.
31700         * doc/posix-functions/if_nameindex.texi: Likewise.
31701         * doc/posix-functions/if_nametoindex.texi: Likewise.
31702         * doc/posix-functions/insque.texi: Likewise.
31703         * doc/posix-functions/linkat.texi: Likewise.
31704         * doc/posix-functions/llrint.texi: Likewise.
31705         * doc/posix-functions/llrintf.texi: Likewise.
31706         * doc/posix-functions/llrintl.texi: Likewise.
31707         * doc/posix-functions/lockf.texi: Likewise.
31708         * doc/posix-functions/lrintl.texi: Likewise.
31709         * doc/posix-functions/mkdirat.texi: Likewise.
31710         * doc/posix-functions/mkfifoat.texi: Likewise.
31711         * doc/posix-functions/mknodat.texi: Likewise.
31712         * doc/posix-functions/mq_close.texi: Likewise.
31713         * doc/posix-functions/mq_getattr.texi: Likewise.
31714         * doc/posix-functions/mq_notify.texi: Likewise.
31715         * doc/posix-functions/mq_open.texi: Likewise.
31716         * doc/posix-functions/mq_receive.texi: Likewise.
31717         * doc/posix-functions/mq_send.texi: Likewise.
31718         * doc/posix-functions/mq_setattr.texi: Likewise.
31719         * doc/posix-functions/mq_timedreceive.texi: Likewise.
31720         * doc/posix-functions/mq_timedsend.texi: Likewise.
31721         * doc/posix-functions/mq_unlink.texi: Likewise.
31722         * doc/posix-functions/open_memstream.texi: Likewise.
31723         * doc/posix-functions/openat.texi: Likewise.
31724         * doc/posix-functions/posix_fadvise.texi: Likewise.
31725         * doc/posix-functions/posix_fallocate.texi: Likewise.
31726         * doc/posix-functions/posix_madvise.texi: Likewise.
31727         * doc/posix-functions/posix_memalign.texi: Likewise.
31728         * doc/posix-functions/posix_openpt.texi: Likewise.
31729         * doc/posix-functions/readlinkat.texi: Likewise.
31730         * doc/posix-functions/remque.texi: Likewise.
31731         * doc/posix-functions/renameat.texi: Likewise.
31732         * doc/posix-functions/rintl.texi: Likewise.
31733         * doc/posix-functions/sem_unlink.texi: Likewise.
31734         * doc/posix-functions/shm_open.texi: Likewise.
31735         * doc/posix-functions/shm_unlink.texi: Likewise.
31736         * doc/posix-functions/signgam.texi: Likewise.
31737         * doc/posix-functions/sigset.texi: Likewise.
31738         * doc/posix-functions/stpcpy.texi: Likewise.
31739         * doc/posix-functions/stpncpy.texi: Likewise.
31740         * doc/posix-functions/strerror.texi: Likewise.
31741         * doc/posix-functions/strtod.texi: Likewise.
31742         * doc/posix-functions/symlinkat.texi: Likewise.
31743         * doc/posix-functions/unlinkat.texi: Likewise.
31744         * doc/posix-functions/utimensat.texi: Likewise.
31745         * doc/glibc-functions/bindresvport.texi: Likewise.
31746         * doc/glibc-functions/dn_expand.texi: Likewise.
31747         * doc/glibc-functions/exp10.texi: Likewise.
31748         * doc/glibc-functions/exp10f.texi: Likewise.
31749         * doc/glibc-functions/fgetxattr.texi: Likewise.
31750         * doc/glibc-functions/flistxattr.texi: Likewise.
31751         * doc/glibc-functions/fopencookie.texi: Likewise.
31752         * doc/glibc-functions/freeifaddrs.texi: Likewise.
31753         * doc/glibc-functions/fremovexattr.texi: Likewise.
31754         * doc/glibc-functions/fsetxattr.texi: Likewise.
31755         * doc/glibc-functions/getifaddrs.texi: Likewise.
31756         * doc/glibc-functions/getxattr.texi: Likewise.
31757         * doc/glibc-functions/lgetxattr.texi: Likewise.
31758         * doc/glibc-functions/listxattr.texi: Likewise.
31759         * doc/glibc-functions/llistxattr.texi: Likewise.
31760         * doc/glibc-functions/lremovexattr.texi: Likewise.
31761         * doc/glibc-functions/lsetxattr.texi: Likewise.
31762         * doc/glibc-functions/pow10.texi: Likewise.
31763         * doc/glibc-functions/pow10f.texi: Likewise.
31764         * doc/glibc-functions/rcmd_af.texi: Likewise.
31765         * doc/glibc-functions/removexattr.texi: Likewise.
31766         * doc/glibc-functions/res_init.texi: Likewise.
31767         * doc/glibc-functions/res_mkquery.texi: Likewise.
31768         * doc/glibc-functions/res_query.texi: Likewise.
31769         * doc/glibc-functions/res_querydomain.texi: Likewise.
31770         * doc/glibc-functions/res_send.texi: Likewise.
31771         * doc/glibc-functions/rresvport_af.texi: Likewise.
31772         * doc/glibc-functions/setxattr.texi: Likewise.
31773         * doc/glibc-functions/strcasestr.texi: Likewise.
31774
31775 2008-12-15  Bruno Haible  <bruno@clisp.org>
31776
31777         Fix compilation error on OSF/1 4.0.
31778         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
31779         <sys/time.h>, simply delegate to the system header.
31780         Reported by Daniel Richard G. <oss@teragram.com>.
31781
31782 2008-12-15  Bruno Haible  <bruno@clisp.org>
31783
31784         * doc/posix-functions/openat.texi: Mention the 'openat' module.
31785         * doc/posix-functions/fchmodat.texi: Likewise.
31786         * doc/posix-functions/fchownat.texi: Likewise.
31787         * doc/posix-functions/fdopendir.texi: Likewise.
31788         * doc/posix-functions/fstatat.texi: Likewise.
31789         * doc/posix-functions/mkdirat.texi: Likewise.
31790         * doc/posix-functions/unlinkat.texi: Likewise.
31791
31792 2008-12-14  Bruno Haible  <bruno@clisp.org>
31793
31794         Update doc for POSIX:2008.
31795         * doc/posix-functions/faccessat.texi: New file.
31796         * doc/posix-functions/fchmodat.texi: New file.
31797         * doc/posix-functions/fchownat.texi: New file.
31798         * doc/posix-functions/fdopendir.texi: New file.
31799         * doc/posix-functions/fstatat.texi: New file.
31800         * doc/posix-functions/futimens.texi: New file.
31801         * doc/posix-functions/linkat.texi: New file.
31802         * doc/posix-functions/mkdirat.texi: New file.
31803         * doc/posix-functions/mkfifoat.texi: New file.
31804         * doc/posix-functions/mknodat.texi: New file.
31805         * doc/posix-functions/open_wmemstream.texi: New file.
31806         * doc/posix-functions/openat.texi: New file.
31807         * doc/posix-functions/psiginfo.texi: New file.
31808         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
31809         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
31810         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
31811         * doc/posix-functions/readlinkat.texi: New file.
31812         * doc/posix-functions/renameat.texi: New file.
31813         * doc/posix-functions/strerror_l.texi: New file.
31814         * doc/posix-functions/symlinkat.texi: New file.
31815         * doc/posix-functions/unlinkat.texi: New file.
31816         * doc/posix-functions/utimensat.texi: New file.
31817         * doc/gnulib.texi (Function Substitutes): Add these subsections.
31818
31819 2008-12-14  Bruno Haible  <bruno@clisp.org>
31820
31821         Update doc for POSIX:2008.
31822         * doc/posix-functions/alphasort.texi: Renamed from
31823         doc/glibc-functions/alphasort.texi.
31824         * doc/posix-functions/dirfd.texi: Renamed from
31825         doc/glibc-functions/dirfd.texi.
31826         * doc/posix-functions/dprintf.texi: Renamed from
31827         doc/glibc-functions/dprintf.texi.
31828         * doc/posix-functions/duplocale.texi: Renamed from
31829         doc/glibc-functions/duplocale.texi.
31830         * doc/posix-functions/fexecve.texi: Renamed from
31831         doc/glibc-functions/fexecve.texi.
31832         * doc/posix-functions/fmemopen.texi: Renamed from
31833         doc/glibc-functions/fmemopen.texi.
31834         * doc/posix-functions/freelocale.texi: Renamed from
31835         doc/glibc-functions/freelocale.texi.
31836         * doc/posix-functions/getdate_err.texi: Renamed from
31837         doc/glibc-functions/getdate_err.texi.
31838         * doc/posix-functions/isalnum_l.texi: Renamed from
31839         doc/glibc-functions/isalnum_l.texi.
31840         * doc/posix-functions/isalpha_l.texi: Renamed from
31841         doc/glibc-functions/isalpha_l.texi.
31842         * doc/posix-functions/isblank_l.texi: Renamed from
31843         doc/glibc-functions/isblank_l.texi.
31844         * doc/posix-functions/iscntrl_l.texi: Renamed from
31845         doc/glibc-functions/iscntrl_l.texi.
31846         * doc/posix-functions/isdigit_l.texi: Renamed from
31847         doc/glibc-functions/isdigit_l.texi.
31848         * doc/posix-functions/isgraph_l.texi: Renamed from
31849         doc/glibc-functions/isgraph_l.texi.
31850         * doc/posix-functions/islower_l.texi: Renamed from
31851         doc/glibc-functions/islower_l.texi.
31852         * doc/posix-functions/isprint_l.texi: Renamed from
31853         doc/glibc-functions/isprint_l.texi.
31854         * doc/posix-functions/ispunct_l.texi: Renamed from
31855         doc/glibc-functions/ispunct_l.texi.
31856         * doc/posix-functions/isspace_l.texi: Renamed from
31857         doc/glibc-functions/isspace_l.texi.
31858         * doc/posix-functions/isupper_l.texi: Renamed from
31859         doc/glibc-functions/isupper_l.texi.
31860         * doc/posix-functions/iswalnum_l.texi: Renamed from
31861         doc/glibc-functions/iswalnum_l.texi.
31862         * doc/posix-functions/iswalpha_l.texi: Renamed from
31863         doc/glibc-functions/iswalpha_l.texi.
31864         * doc/posix-functions/iswblank_l.texi: Renamed from
31865         doc/glibc-functions/iswblank_l.texi.
31866         * doc/posix-functions/iswcntrl_l.texi: Renamed from
31867         doc/glibc-functions/iswcntrl_l.texi.
31868         * doc/posix-functions/iswctype_l.texi: Renamed from
31869         doc/glibc-functions/iswctype_l.texi.
31870         * doc/posix-functions/iswdigit_l.texi: Renamed from
31871         doc/glibc-functions/iswdigit_l.texi.
31872         * doc/posix-functions/iswgraph_l.texi: Renamed from
31873         doc/glibc-functions/iswgraph_l.texi.
31874         * doc/posix-functions/iswlower_l.texi: Renamed from
31875         doc/glibc-functions/iswlower_l.texi.
31876         * doc/posix-functions/iswprint_l.texi: Renamed from
31877         doc/glibc-functions/iswprint_l.texi.
31878         * doc/posix-functions/iswpunct_l.texi: Renamed from
31879         doc/glibc-functions/iswpunct_l.texi.
31880         * doc/posix-functions/iswspace_l.texi: Renamed from
31881         doc/glibc-functions/iswspace_l.texi.
31882         * doc/posix-functions/iswupper_l.texi: Renamed from
31883         doc/glibc-functions/iswupper_l.texi.
31884         * doc/posix-functions/iswxdigit_l.texi: Renamed from
31885         doc/glibc-functions/iswxdigit_l.texi.
31886         * doc/posix-functions/isxdigit_l.texi: Renamed from
31887         doc/glibc-functions/isxdigit_l.texi.
31888         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
31889         doc/glibc-functions/mbsnrtowcs.texi.
31890         * doc/posix-functions/mkdtemp.texi: Renamed from
31891         doc/glibc-functions/mkdtemp.texi.
31892         * doc/posix-functions/newlocale.texi: Renamed from
31893         doc/glibc-functions/newlocale.texi.
31894         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
31895         doc/glibc-functions/nl_langinfo_l.texi.
31896         * doc/posix-functions/open_memstream.texi: Renamed from
31897         doc/glibc-functions/open_memstream.texi.
31898         * doc/posix-functions/opterr.texi: Renamed from
31899         doc/glibc-functions/opterr.texi.
31900         * doc/posix-functions/optind.texi: Renamed from
31901         doc/glibc-functions/optind.texi.
31902         * doc/posix-functions/optopt.texi: Renamed from
31903         doc/glibc-functions/optopt.texi.
31904         * doc/posix-functions/psignal.texi: Renamed from
31905         doc/glibc-functions/psignal.texi.
31906         * doc/posix-functions/scandir.texi: Renamed from
31907         doc/glibc-functions/scandir.texi.
31908         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
31909         doc/glibc-functions/sched_get_priority_min.texi.
31910         * doc/posix-functions/signgam.texi: Renamed from
31911         doc/glibc-functions/signgam.texi.
31912         * doc/posix-functions/stpcpy.texi: Renamed from
31913         doc/glibc-functions/stpcpy.texi.
31914         * doc/posix-functions/stpncpy.texi: Renamed from
31915         doc/glibc-functions/stpncpy.texi.
31916         * doc/posix-functions/strcasecmp_l.texi: Renamed from
31917         doc/glibc-functions/strcasecmp_l.texi.
31918         * doc/posix-functions/strcoll_l.texi: Renamed from
31919         doc/glibc-functions/strcoll_l.texi.
31920         * doc/posix-functions/strfmon_l.texi: Renamed from
31921         doc/glibc-functions/strfmon_l.texi.
31922         * doc/posix-functions/strftime_l.texi: Renamed from
31923         doc/glibc-functions/strftime_l.texi.
31924         * doc/posix-functions/strncasecmp_l.texi: Renamed from
31925         doc/glibc-functions/strncasecmp_l.texi.
31926         * doc/posix-functions/strndup.texi: Renamed from
31927         doc/glibc-functions/strndup.texi.
31928         * doc/posix-functions/strnlen.texi: Renamed from
31929         doc/glibc-functions/strnlen.texi.
31930         * doc/posix-functions/strsignal.texi: Renamed from
31931         doc/glibc-functions/strsignal.texi.
31932         * doc/posix-functions/strxfrm_l.texi: Renamed from
31933         doc/glibc-functions/strxfrm_l.texi.
31934         * doc/posix-functions/timer_gettime.texi: Renamed from
31935         doc/glibc-functions/timer_gettime.texi.
31936         * doc/posix-functions/tolower_l.texi: Renamed from
31937         doc/glibc-functions/tolower_l.texi.
31938         * doc/posix-functions/toupper_l.texi: Renamed from
31939         doc/glibc-functions/toupper_l.texi.
31940         * doc/posix-functions/towctrans_l.texi: Renamed from
31941         doc/glibc-functions/towctrans_l.texi.
31942         * doc/posix-functions/towlower_l.texi: Renamed from
31943         doc/glibc-functions/towlower_l.texi.
31944         * doc/posix-functions/towupper_l.texi: Renamed from
31945         doc/glibc-functions/towupper_l.texi.
31946         * doc/posix-functions/uselocale.texi: Renamed from
31947         doc/glibc-functions/uselocale.texi.
31948         * doc/posix-functions/vdprintf.texi: Renamed from
31949         doc/glibc-functions/vdprintf.texi.
31950         * doc/posix-functions/wcpcpy.texi:
31951         Renamed from doc/glibc-functions/wcpcpy.texi.
31952         * doc/posix-functions/wcpncpy.texi: Renamed from
31953         doc/glibc-functions/wcpncpy.texi.
31954         * doc/posix-functions/wcscasecmp.texi: Renamed from
31955         doc/glibc-functions/wcscasecmp.texi.
31956         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
31957         doc/glibc-functions/wcscasecmp_l.texi.
31958         * doc/posix-functions/wcscoll_l.texi: Renamed from
31959         doc/glibc-functions/wcscoll_l.texi.
31960         * doc/posix-functions/wcsdup.texi: Renamed from
31961         doc/glibc-functions/wcsdup.texi.
31962         * doc/posix-functions/wcsncasecmp.texi: Renamed from
31963         doc/glibc-functions/wcsncasecmp.texi.
31964         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
31965         doc/glibc-functions/wcsncasecmp_l.texi.
31966         * doc/posix-functions/wcsnlen.texi: Renamed from
31967         doc/glibc-functions/wcsnlen.texi.
31968         * doc/posix-functions/wcsnrtombs.texi: Renamed from
31969         doc/glibc-functions/wcsnrtombs.texi.
31970         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
31971         doc/glibc-functions/wcsxfrm_l.texi.
31972         * doc/posix-functions/wctrans_l.texi: Renamed from
31973         doc/glibc-functions/wctrans_l.texi.
31974         * doc/posix-functions/wctype_l.texi: Renamed from
31975         doc/glibc-functions/wctype_l.texi.
31976         * doc/gnulib.texi (Function Substitutes): Add these subsections.
31977         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
31978         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
31979         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
31980         these subsections.
31981         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
31982         Remove sections.
31983
31984 2008-12-14  Bruno Haible  <bruno@clisp.org>
31985
31986         Update doc for POSIX:2008.
31987         * doc/posix-functions/*.texi: Update URL of POSIX specification.
31988
31989 2008-12-14  Bruno Haible  <bruno@clisp.org>
31990
31991         Update doc for POSIX:2008.
31992         * doc/pastposix-functions/bcmp.texi: Renamed from
31993         doc/posix-functions/bcmp.texi.
31994         * doc/pastposix-functions/bcopy.texi: Renamed from
31995         doc/posix-functions/bcopy.texi.
31996         * doc/pastposix-functions/bsd_signal.texi: Renamed from
31997         doc/posix-functions/bsd_signal.texi.
31998         * doc/pastposix-functions/bzero.texi: Renamed from
31999         doc/posix-functions/bzero.texi.
32000         * doc/pastposix-functions/ecvt.texi: Renamed from
32001         doc/posix-functions/ecvt.texi.
32002         * doc/pastposix-functions/fcvt.texi: Renamed from
32003         doc/posix-functions/fcvt.texi.
32004         * doc/pastposix-functions/ftime.texi: Renamed from
32005         doc/posix-functions/ftime.texi.
32006         * doc/pastposix-functions/gcvt.texi: Renamed from
32007         doc/posix-functions/gcvt.texi.
32008         * doc/pastposix-functions/getcontext.texi: Renamed from
32009         doc/posix-functions/getcontext.texi.
32010         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
32011         doc/posix-functions/gethostbyaddr.texi.
32012         * doc/pastposix-functions/gethostbyname.texi: Renamed from
32013         doc/posix-functions/gethostbyname.texi.
32014         * doc/pastposix-functions/getwd.texi: Renamed from
32015         doc/posix-functions/getwd.texi.
32016         * doc/pastposix-functions/h_errno.texi: Renamed from
32017         doc/posix-functions/h_errno.texi.
32018         * doc/pastposix-functions/index.texi: Renamed from
32019         doc/posix-functions/index.texi.
32020         * doc/pastposix-functions/makecontext.texi: Renamed from
32021         doc/posix-functions/makecontext.texi.
32022         * doc/pastposix-functions/mktemp.texi: Renamed from
32023         doc/posix-functions/mktemp.texi.
32024         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
32025         doc/posix-functions/pthread_attr_getstackaddr.texi.
32026         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
32027         doc/posix-functions/pthread_attr_setstackaddr.texi.
32028         * doc/pastposix-functions/rindex.texi: Renamed from
32029         doc/posix-functions/rindex.texi.
32030         * doc/pastposix-functions/scalb.texi: Renamed from
32031         doc/posix-functions/scalb.texi.
32032         * doc/pastposix-functions/setcontext.texi: Renamed from
32033         doc/posix-functions/setcontext.texi.
32034         * doc/pastposix-functions/swapcontext.texi: Renamed from
32035         doc/posix-functions/swapcontext.texi.
32036         * doc/pastposix-functions/ualarm.texi: Renamed from
32037         doc/posix-functions/ualarm.texi.
32038         * doc/pastposix-functions/usleep.texi: Renamed from
32039         doc/posix-functions/usleep.texi.
32040         * doc/pastposix-functions/vfork.texi: Renamed from
32041         doc/posix-functions/vfork.texi.
32042         * doc/pastposix-functions/wcswcs.texi: Renamed from
32043         doc/posix-functions/wcswcs.texi.
32044         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
32045         (Function Substitutes): Update.
32046
32047 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32048
32049         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
32050         m4/strerror.m4.
32051
32052 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32053             Bruno Haible  <bruno@clisp.org>
32054
32055         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
32056
32057 2008-12-13  Bruno Haible  <bruno@clisp.org>
32058
32059         * modules/strtoull (Depends-on): Remove unistd.
32060
32061 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32062
32063         * modules/strtoull (Depends-on): Add stdlib.
32064
32065 2008-12-11  Simon Josefsson  <simon@josefsson.org>
32066
32067         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
32068
32069 2008-12-10  Jim Meyering  <meyering@redhat.com>
32070
32071         gl_ASSERT: don't say assertions are disabled when they're not
32072         * m4/assert.m4 (gl_ASSERT): Do not make configure report
32073         "checking whether to enable assertions... no", when they are in
32074         fact enabled.  This is solely a bug in the output of configure.
32075         In spite of saying "no", NDEBUG was not defined in that case.
32076         Also, as noted by Eric Blake, leave assertions enabled upon
32077         --enable-assert=INVALID.
32078
32079 2008-12-10  Bruno Haible  <bruno@clisp.org>
32080
32081         Change MODULES.html to refer to POSIX:2008 where possible.
32082         * MODULES.html.sh (POSIX2008_URL): New variable.
32083         (posix_headers): Remove sys/timeb, ucontext.
32084         (posix2001_headers): New variable.
32085         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
32086         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
32087         index, makecontext, mktemp, pthread_attr_getstackaddr,
32088         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
32089         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
32090         (posix2001_functions): New variable.
32091         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
32092         otherwise.
32093
32094 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32095
32096         add missing include to parse-duration.c
32097         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
32098         * modules/parse-duration (Depends-on): Add xalloc.
32099
32100         fix sed script reading maint.mk
32101         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
32102         (syntax-check-rules): Use it.
32103
32104 2008-12-09  Bruno Haible  <bruno@clisp.org>
32105
32106         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
32107         MacOS X 10.4/PowerPC.
32108         Reported by Simon Josefsson.
32109
32110 2008-12-08  Jim Meyering  <meyering@redhat.com>
32111
32112         work around mingw's lack of some S_IF definitions
32113         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
32114         Reported by Simon Josefsson.
32115
32116 2008-12-08  Bruno Haible  <bruno@clisp.org>
32117
32118         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
32119         applied to variables. Needed on MacOS X 10.4/PowerPC.
32120         Reported by Simon Josefsson.
32121
32122 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
32123         and Eric Blake  <ebb9@byu.net>
32124
32125         assert: honor --enable-assert
32126         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
32127         order to honor --enable-assert, rather than treating it as a
32128         synonym for --disable-assert.
32129
32130 2008-12-08  Jim Meyering  <meyering@redhat.com>
32131
32132         * lib/posixtm.c: Remove now-useless declaration of mktime.
32133
32134         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
32135
32136 2008-12-07  Bruno Haible  <bruno@clisp.org>
32137
32138         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
32139         test_once): Mark functions as static.
32140         * tests/test-tls.c (test_tls): Likewise.
32141
32142 2008-12-07  Bruno Haible  <bruno@clisp.org>
32143
32144         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
32145         iconv_register_autodetect.
32146
32147 2008-12-07  Jim Meyering  <meyering@redhat.com>
32148
32149         posixtm.c: avoid a warning
32150         * lib/posixtm.c (posixtime): Don't initialize tm0.
32151         It's no longer needed to placate gcc4's -Wuninitialized,
32152         and the attempt to placate would elicit a new warning.
32153
32154         unicodeio.c: mark unused parameters
32155         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
32156         (fallback_failure_callback): Likewise.
32157
32158 2008-12-07  Bruno Haible  <bruno@clisp.org>
32159
32160         * gnulib-tool (func_create_testdir): When building the tests
32161         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
32162         Reported by Simon Josefsson.
32163
32164 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32165
32166         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
32167
32168 2008-12-06  Bruno Haible  <bruno@clisp.org>
32169
32170         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
32171         Suggested by Eric Blake.
32172
32173 2008-12-06  Bruno Haible  <bruno@clisp.org>
32174
32175         Fix a c-stack test failure on MacOS X.
32176         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
32177         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
32178         handler for SIGBUS as well.
32179         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
32180         install a signal handler for SIGBUS as well.
32181         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
32182
32183 2008-12-06  Bruno Haible  <bruno@clisp.org>
32184
32185         Advocacy documentation.
32186         * doc/gnulib-intro.texi (Benefits): New section.
32187         * doc/gnulib.texi: Update.
32188
32189 2008-12-06  Bruno Haible  <bruno@clisp.org>
32190
32191         Document the 'manywarnings' module.
32192         * doc/manywarnings.texi: New file.
32193         * doc/gnulib.texi: Include it.
32194
32195 2008-12-05  Eric Blake  <ebb9@byu.net>
32196
32197         tests: silence some gcc warnings
32198         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
32199         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
32200         type mismatches.
32201
32202 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32203             Bruno Haible  <bruno@clisp.org>
32204
32205         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
32206
32207 2008-11-29  Jim Meyering  <meyering@redhat.com>
32208
32209         unicodeio.c: mark unused parameters
32210         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
32211         (fallback_failure_callback): Likewise.
32212
32213         fts: fix a thinko
32214         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
32215         (set_stat_type): Return S_IF*-valued "type" directly.
32216         Prompted by James Youngman's spotting a related bug.
32217         Confirmed by further testing through find.
32218
32219         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
32220         * lib/fts.c (D_TYPE): Define.
32221         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
32222         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
32223         (s_ifmt_shift_bits): New function.
32224         (set_stat_type): New function.
32225         (fts_build): When not calling fts_stat, call set_stat_type
32226         to propagate dirent.d_type info to fts_read caller.
32227         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
32228         fts_statp->st_mode type information may be valid.
32229
32230 2008-11-28  Simon Josefsson  <simon@josefsson.org>
32231
32232         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
32233         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
32234         <sds@gnu.org>.
32235
32236 2008-11-20  Bruno Haible  <bruno@clisp.org>
32237
32238         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
32239         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
32240         INCLUDE_NEXT.
32241         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
32242         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
32243         * modules/math (Makefile.am): Substitute
32244         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
32245         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32246
32247 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
32248             Bruno Haible  <bruno@clisp.org>
32249
32250         * lib/stdint.in.h: Define all type macros so that their expansion is
32251         a single typedef'ed token. Fixes a compilation failure in Boost which
32252         does "using ::int8_t;".
32253
32254 2008-11-18  Simon Josefsson  <simon@josefsson.org>
32255
32256         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
32257         gl_MANYWARN_ALL_GCC.
32258         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
32259         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
32260         * modules/manywarnings: New file.
32261         * MODULES.html.sh: Mention manywarnings module.
32262
32263 2008-11-18  Bruno Haible  <bruno@clisp.org>
32264
32265         * doc/gnulib-tool.texi (Unit tests): New section.
32266
32267 2008-11-18  Simon Josefsson  <simon@josefsson.org>
32268
32269         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
32270         paths like 'lib/po/foo.po'.
32271
32272 2008-11-17  Simon Josefsson  <simon@josefsson.org>
32273
32274         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
32275         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
32276
32277 2008-11-17  Simon Josefsson  <simon@josefsson.org>
32278
32279         * m4/warnings.m4: Use CPPFLAGS to really check whether the
32280         parameter works.
32281
32282 2008-11-17  Simon Josefsson  <simon@josefsson.org>
32283
32284         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
32285
32286 2008-11-17  Bruce Korb  <bkorb@gnu.org>
32287
32288         * modules/parse-duration-tests: New file.
32289         * tests/test-parse-duration.sh: New file.
32290         * tests/test-parse-duration.c: New file.
32291
32292         New module 'parse-duration'.
32293         * lib/parse-duration.h: New file.
32294         * lib/parse-duration.c: New file.
32295         * modules/parse-duration: New file.
32296
32297 2008-11-17  Bruno Haible  <bruno@clisp.org>
32298
32299         * tests/test-select-out.sh: Comment out the first pipe test.
32300         Reported by Simon Josefsson.
32301
32302 2008-11-17  Bruno Haible  <bruno@clisp.org>
32303
32304         * modules/getaddrinfo (Depends-on): Add servent, hostent.
32305         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
32306         gl_HOSTENT.
32307
32308 2008-11-17  Bruno Haible  <bruno@clisp.org>
32309
32310         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
32311         -lnetwork and -lnet. Needed for Haiku and BeOS.
32312
32313 2008-11-16  Bruno Haible  <bruno@clisp.org>
32314
32315         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
32316
32317 2008-11-16  Bruno Haible  <bruno@clisp.org>
32318
32319         Avoid test failure on Haiku.
32320         * tests/test-fsync.c: Include <errno.h>.
32321         (main): Don't require that fsync (0) fails.
32322
32323 2008-11-15  Bruno Haible  <bruno@clisp.org>
32324
32325         New module 'hostent'.
32326         * modules/hostent: New file.
32327         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
32328
32329 2008-11-15  Bruno Haible  <bruno@clisp.org>
32330
32331         New module 'servent'.
32332         * modules/servent: New file.
32333         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
32334
32335 2008-11-15  Bruno Haible  <bruno@clisp.org>
32336
32337         Avoid generating same test program with two different rules.
32338         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
32339         test-frexp to test-frexp-nolibm.
32340         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
32341         test-frexpl to test-frexpl-nolibm.
32342
32343 2008-11-15  Bruno Haible  <bruno@clisp.org>
32344
32345         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
32346         $(FREXPL_LIBM).
32347
32348 2008-11-15  Bruno Haible  <bruno@clisp.org>
32349
32350         * lib/netdb.in.h: Activate the definitions also when the system's
32351         <netdb.h> has 'struct addrinfo'.
32352         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
32353         EAI_OVERFLOW or AI_NUMERICSERV.
32354         * doc/posix-headers/netdb.texi: Document the problem.
32355
32356 2008-11-15  Bruno Haible  <bruno@clisp.org>
32357
32358         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
32359
32360         Make the 'sched' module work on platforms where <sched.h> exists but
32361         is incomplete (such as Haiku).
32362         * lib/sched.in.h; Include the system's <sched.h> if it exists.
32363         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
32364         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
32365         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
32366         HAVE_STRUCT_SCHED_PARAM.
32367         * modules/sched (Depends-on): Add include_next.
32368         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
32369         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
32370         * doc/posix-headers/sched.texi: Document the issue.
32371
32372 2008-11-13  Jim Meyering  <meyering@redhat.com>
32373
32374         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
32375         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
32376         test would fail due to the difference in the Report bugs to ...
32377         line.  The expected address is empty, "<>", while the actual
32378         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
32379
32380 2008-11-12  Bruno Haible  <bruno@clisp.org>
32381
32382         lstat: don't compile lstat.c on systems lacking lstat
32383         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
32384         which don't have lstat; this is handled by lib/sys_stat.in.h already.
32385         Reported by Daniel P. Berrange via Jim Meyering.
32386
32387 2008-11-12  Jim Meyering  <meyering@redhat.com>
32388
32389         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
32390
32391 2008-11-12  Simon Josefsson  <simon@josefsson.org>
32392
32393         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
32394         instead.
32395
32396 2008-11-12  Bruno Haible  <bruno@clisp.org>
32397
32398         * lib/unicodeio.c: Include unistr.h.
32399         (utf8_wctomb): Remove function.
32400         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
32401
32402 2008-11-12  Simon Josefsson  <simon@josefsson.org>
32403
32404         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
32405         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
32406         <bruno@clisp.org>.
32407         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
32408
32409 2008-11-12  Simon Josefsson  <simon@josefsson.org>
32410
32411         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
32412         * doc/gnulib.texi: Add section for warnings.
32413
32414 2008-11-11  Bruno Haible  <bruno@clisp.org>
32415
32416         * lib/sockets.h: Add a comment.
32417
32418 2008-11-11  Karl Berry  <karl@gnu.org>
32419
32420         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
32421
32422 2008-11-11  Eric Blake  <ebb9@byu.net>
32423
32424         fdl.texi: avoid git symlinks
32425         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
32426
32427 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32428
32429         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
32430
32431 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32432
32433         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
32434         (gl_WARN_ADD): Substitute $2 if literal.
32435
32436 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32437
32438         * m4/warning.m4: Remove.
32439
32440 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32441
32442         * m4/warnings.m4: Almost complete rewrite. :-)
32443
32444 2008-11-10  Simon Josefsson  <simon@josefsson.org>
32445
32446         * modules/warnings: New module.
32447         * m4/warnings.m4: New file.
32448         * MODULES.html.sh: Mention warnings module.
32449         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
32450         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32451
32452 2008-11-10  Eric Blake  <ebb9@byu.net>
32453
32454         fdl.texi: make a symlink to the latest version
32455         * doc/standards.texi: Revert today's earlier change.
32456         * doc/fdl-1.2.texi: Rename from old fdl.texi...
32457         * doc/fdl.texi: ...and replace this with a symlink to the newer
32458         fdl-1.3.texi.
32459
32460 2008-11-10  Bruno Haible  <bruno@clisp.org>
32461
32462         * tests/test-select-fd.c (main): Accept the result file name as fourth
32463         argument.
32464         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
32465         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
32466
32467 2008-11-10  Bruno Haible  <bruno@clisp.org>
32468
32469         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
32470         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
32471         as autoconf-substituted macros.
32472         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
32473         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
32474         gl_NETDB_H_DEFAULTS. Set these variables.
32475         * modules/netdb (Makefile.am): Substitute these variables.
32476
32477 2008-11-10  Eric Blake  <ebb9@byu.net>
32478
32479         standards.texi: include correct file for FDL 1.3
32480         * doc/standards.texi (GNU Free Documentation License): Change
32481         include file to pull in FDL 1.3, not 1.2.
32482
32483         fdl.texi: revert accidental change to license
32484         * doc/fdl.texi: This is FDL 1.2, not 1.3.
32485
32486 2008-11-10  Bruno Haible  <bruno@clisp.org>
32487
32488         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
32489         cross-compiling guesses also when the native compile gives no result.
32490
32491 2008-11-10  Bruno Haible  <bruno@clisp.org>
32492
32493         * lib/spawni.c (__spawni): Force variable into the stack.
32494
32495 2008-11-10  Bruno Haible  <bruno@clisp.org>
32496
32497         Add support for Haiku.
32498         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
32499         glibc and BeOS, but also on Haiku.
32500         * lib/fpurge.c (fpurge): Likewise.
32501         * lib/freadable.c (freadable): Likewise.
32502         * lib/freadahead.c (freadahead): Likewise.
32503         * lib/freading.c (freading): Likewise.
32504         * lib/freadptr.c (freadptr): Likewise.
32505         * lib/freadseek.c (freadptrinc): Likewise.
32506         * lib/fseeko.c (rpl_fseeko): Likewise.
32507         * lib/fseterr.c (fseterr): Likewise.
32508         * lib/fwritable.c (fwritable): Likewise.
32509         * lib/fwriting.c (fwriting): Likewise.
32510         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
32511
32512 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
32513
32514         * lib/config.charset: Treat Haiku like BeOS.
32515
32516 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
32517
32518         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
32519         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
32520
32521 2008-11-08  Bruno Haible  <bruno@clisp.org>
32522
32523         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
32524         AC_CACHE_CHECK.
32525
32526 2008-11-08  Bruno Haible  <bruno@clisp.org>
32527
32528         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
32529
32530 2008-11-08  Bruno Haible  <bruno@clisp.org>
32531
32532         * tests/test-select-fd.c: New file.
32533         * tests/test-select-in.sh: New file.
32534         * tests/test-select-out.sh: New file.
32535         * tests/test-select-stdin.c: New file.
32536         * modules/select-tests (Files): Add the new files.
32537         (Depends-on): Add gettimeofday.
32538         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
32539         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
32540         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
32541
32542 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
32543             Bruno Haible  <bruno@clisp.org>
32544
32545         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
32546
32547 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
32548
32549         * build-aux/pmccabe2html: Added support for C++ source files.
32550
32551 2008-11-05  Ben Pfaff  <blp@gnu.org>
32552
32553         Fix lib/close.c build on Windows.
32554         * modules/close (Files): Add lib/w32sock.h.
32555
32556 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
32557
32558         Accept Bison's NEWS format.
32559         * build-aux/announce-gen (print_news_deltas): Tweak
32560         $re_prefix.
32561
32562 2008-11-04  Bruno Haible  <bruno@clisp.org>
32563
32564         * modules/random_r (Maintainer): Add glibc.
32565
32566 2008-11-04  Simon Josefsson  <simon@josefsson.org>
32567
32568         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
32569         by karl@freefriends.org (Karl Berry).
32570         * doc/alloca.texi: Likewise.
32571         * doc/c-ctype.texi: Likewise.
32572         * doc/c-strcase.texi: Likewise.
32573         * doc/c-strcaseeq.texi: Likewise.
32574         * doc/c-strcasestr.texi: Likewise.
32575         * doc/c-strstr.texi: Likewise.
32576         * doc/c-strtod.texi: Likewise.
32577         * doc/c-strtold.texi: Likewise.
32578         * doc/ctime.texi: Likewise.
32579         * doc/error.texi: Likewise.
32580         * doc/fdl.texi: Likewise.
32581         * doc/gcd.texi: Likewise.
32582         * doc/getdate.texi: Likewise.
32583         * doc/gnulib-intro.texi: Likewise.
32584         * doc/gnulib-tool.texi: Likewise.
32585         * doc/gnulib.texi: Likewise.
32586         * doc/inet_ntoa.texi: Likewise.
32587         * doc/maintain.texi: Likewise.
32588         * doc/make-stds.texi: Likewise.
32589         * doc/quote.texi: Likewise.
32590         * doc/regexprops-generic.texi: Likewise.
32591         * doc/standards.texi: Likewise.
32592         * doc/verify.texi: Likewise.
32593         * doc/visibility.texi: Likewise.
32594         * doc/gnulib.texi (GNU Free Documentation License): Include
32595         fdl-1.3.texi instead of fdl.texi.
32596
32597 2008-11-04  Simon Josefsson  <simon@josefsson.org>
32598
32599         * doc/fdl-1.3.texi: New file, from
32600         <http://www.gnu.org/licenses/fdl-1.3.texi>.
32601         * modules/fdl-1.3: Add.
32602         * MODULES.html.sh: Add fdl-1.3.
32603
32604 2008-11-03  Bruno Haible  <bruno@clisp.org>
32605
32606         Make determination of absolute name of header file work with AIX xlc.
32607         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
32608         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
32609         preprocessing.
32610         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32611         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
32612
32613 2008-11-03  Simon Josefsson  <simon@josefsson.org>
32614
32615         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
32616         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
32617         <ludo@gnu.org>.
32618
32619 2008-11-02  Bruno Haible  <bruno@clisp.org>
32620
32621         Mark 'strpbrk' obsolete.
32622         * modules/strpbrk (Status, Notice): New sections.
32623         * modules/strtok_r (Depends-on): Add strpbrk.
32624
32625 2008-11-02  Bruno Haible  <bruno@clisp.org>
32626
32627         Mark 'strdup' obsolete.
32628         * modules/strdup (Status, Notice): New sections.
32629         * modules/findprog (Depends-on): Add strdup.
32630         * modules/getaddrinfo (Depends-on): Likewise.
32631         * modules/localename (Depends-on): Likewise.
32632         * modules/relocatable-lib (Depends-on): Likewise.
32633         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
32634         * modules/relocatable-prog (Depends-on): Likewise.
32635         * modules/trim (Depends-on): Likewise.
32636         * modules/unictype/gen-ctype (Depends-on): Likewise.
32637         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
32638
32639 2008-11-02  Bruno Haible  <bruno@clisp.org>
32640
32641         Mark 'strcspn' obsolete.
32642         * modules/strcspn (Status, Notice): New sections.
32643
32644 2008-11-02  Bruno Haible  <bruno@clisp.org>
32645
32646         Mark 'rmdir' obsolete.
32647         * modules/rmdir (Status, Notice): New sections.
32648         * modules/clean-temp (Depends-on): Add rmdir.
32649         * modules/openat (Depends-on): Likewise.
32650
32651 2008-11-02  Bruno Haible  <bruno@clisp.org>
32652
32653         Mark 'raise' obsolete.
32654         * modules/raise (Status, Notice): New sections.
32655         (Include): Specify <signal.h>.
32656         * modules/stdio (Depends-on): Add raise.
32657         * modules/write (Depends-on): Likewise.
32658
32659 2008-11-02  Bruno Haible  <bruno@clisp.org>
32660
32661         Mark 'memset' obsolete.
32662         * modules/memset (Status, Notice): New sections.
32663
32664 2008-11-02  Bruno Haible  <bruno@clisp.org>
32665
32666         Mark 'memmove' obsolete.
32667         * modules/memmove (Status, Notice): New sections.
32668         * modules/argp (Depends-on): Add memmove.
32669         * modules/argz (Depends-on): Likewise.
32670         * modules/canonicalize (Depends-on): Likewise.
32671         * modules/canonicalize-lgpl (Depends-on): Likewise.
32672         * modules/fts (Depends-on): Likewise.
32673         * modules/getcwd (Depends-on): Likewise.
32674         * modules/human (Depends-on): Likewise.
32675         * modules/regex (Depends-on): Likewise.
32676         * modules/striconveh (Depends-on): Likewise.
32677         * modules/trim (Depends-on): Likewise.
32678         * modules/unistr/u8-move (Depends-on): Likewise.
32679         * modules/unistr/u16-move (Depends-on): Likewise.
32680         * modules/unistr/u32-move (Depends-on): Likewise.
32681
32682 2008-11-02  Bruno Haible  <bruno@clisp.org>
32683
32684         Mark 'memcpy' obsolete.
32685         * modules/memcpy (Status, Notice): New sections.
32686
32687 2008-11-02  Bruno Haible  <bruno@clisp.org>
32688
32689         Mark 'memcmp' obsolete.
32690         * modules/memcmp (Status, Notice): New sections.
32691         * modules/argmatch (Depends-on): Add memchr.
32692         * modules/backupfile (Depends-on): Likewise.
32693         * modules/c-strcasestr (Depends-on): Likewise.
32694         * modules/crypto/des (Depends-on): Likewise.
32695         * modules/csharpcomp (Depends-on): Likewise.
32696         * modules/fnmatch (Depends-on): Likewise.
32697         * modules/git-merge-changelog (Depends-on): Likewise.
32698         * modules/isnand (Depends-on): Likewise.
32699         * modules/isnand-nolibm (Depends-on): Likewise.
32700         * modules/isnanf (Depends-on): Likewise.
32701         * modules/isnanf-nolibm (Depends-on): Likewise.
32702         * modules/isnanl (Depends-on): Likewise.
32703         * modules/isnanl-nolibm (Depends-on): Likewise.
32704         * modules/mbchar (Depends-on): Likewise.
32705         * modules/memcoll (Depends-on): Likewise.
32706         * modules/quotearg (Depends-on): Likewise.
32707         * modules/regex (Depends-on): Likewise.
32708         * modules/relocatable-prog (Depends-on): Likewise.
32709         * modules/same (Depends-on): Likewise.
32710         * modules/signbit (Depends-on): Likewise.
32711         * modules/strcasestr-simple (Depends-on): Likewise.
32712         * modules/unictype/gen-ctype (Depends-on): Likewise.
32713         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
32714         * modules/uniname/uniname (Depends-on): Likewise.
32715         * modules/unistr/u8-cmp (Depends-on): Likewise.
32716
32717 2008-11-02  Bruno Haible  <bruno@clisp.org>
32718
32719         Mark 'memchr' obsolete.
32720         * modules/memchr (Status, Notice): New sections.
32721         * modules/argp (Depends-on): Add memchr.
32722         * modules/base64 (Depends-on): Likewise.
32723         * modules/c-strcasestr (Depends-on): Likewise.
32724         * modules/chdir-long (Depends-on): Likewise.
32725         * modules/fnmatch (Depends-on): Likewise.
32726         * modules/getsubopt (Depends-on): Likewise.
32727         * modules/git-merge-changelog (Depends-on): Likewise.
32728         * modules/glob (Depends-on): Likewise.
32729         * modules/strcasestr-simple (Depends-on): Likewise.
32730         * modules/strnlen (Depends-on): Likewise.
32731
32732 2008-11-02  Bruno Haible  <bruno@clisp.org>
32733
32734         Mark 'atexit' obsolete.
32735         * modules/atexit (Status, Notice): New sections.
32736         * modules/chdir-long (Depends-on): Add atexit.
32737         * modules/wait-process (Depends-on): Likewise.
32738
32739 2008-11-02  Bruno Haible  <bruno@clisp.org>
32740
32741         * gnulib-tool: New option --with-obsolete.
32742         (func_usage): Document it.
32743         (func_modules_transitive_closure): Drop obsolete dependencies if
32744         incobsolete is not true.
32745         (func_import): Read and save the incobsolete variable to the cache.
32746
32747 2008-11-02  Bruno Haible  <bruno@clisp.org>
32748
32749         * modules/TEMPLATE-EXTENDED: New field 'Status'.
32750         * gnulib-tool: New option --extract-status.
32751         (func_usage): Document it.
32752         (sed_extract_prog): Recognize it.
32753         (func_get_status): New function.
32754
32755 2008-10-30  Simon Josefsson  <simon@josefsson.org>
32756
32757         * modules/sockets (License): Change from LGPL to LGPLv2+.
32758
32759 2008-10-28  Simon Josefsson  <simon@josefsson.org>
32760
32761         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
32762
32763 2008-10-28  Simon Josefsson  <simon@josefsson.org>
32764
32765         * MODULES.html.sh (Support for systems lacking POSIX:2001):
32766         Mention times and sys_times.
32767         * modules/sys_times, modules/sys_times-tests: New modules.
32768         * modules/times, modules/times-tests: Likewise
32769         * m4/sys_times_h.m4: New file.
32770         * lib/sys_times.in.h: Likewise
32771         * lib/times.c: Likewise.
32772         * tests/test-sys_times.c: Likewise.
32773         * tests/test-times.c: Likewise.
32774         * doc/posix-headers/sys_times.texi: Update.
32775         * doc/posix-functions/times.texi: Update.
32776
32777 2008-10-28  Jim Meyering  <meyering@redhat.com>
32778
32779         * modules/tempname (Depends-on): Add lstat.
32780
32781         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
32782
32783 2008-10-28  Simon Josefsson  <simon@josefsson.org>
32784
32785         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
32786         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
32787         using idiom used elsewhere in gnulib.
32788
32789 2008-10-27  Jim Meyering  <meyering@redhat.com>
32790
32791         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
32792
32793 2008-10-27  Simon Josefsson  <simon@josefsson.org>
32794
32795         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
32796         TESTS_ENVIRONMENT, for shell scripts that needs to call built
32797         programs.
32798         * tests/test-argp-2.sh: Use $EXEEXT when needed.
32799
32800 2008-10-27  Simon Josefsson  <simon@josefsson.org>
32801
32802         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
32803
32804 2008-10-27  Bruno Haible  <bruno@clisp.org>
32805
32806         * tests/test-lstat.c: Include <stdio.h>.
32807
32808 2008-10-27  Simon Josefsson  <simon@josefsson.org>
32809
32810         * modules/lstat-tests: New module.
32811         * tests/test-lstat.c: New file.
32812
32813 2008-10-26  Jim Meyering  <meyering@redhat.com>
32814
32815         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
32816
32817 2008-10-26  Simon Josefsson  <simon@josefsson.org>
32818             Bruno Haible  <bruno@clisp.org>
32819
32820         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
32821         * modules/configmake (Include): Add a note that the include must come
32822         after all system headers.
32823         * lib/javaversion.c: Include configmake.h after all other includes.
32824
32825 2008-10-26  Bruno Haible  <bruno@clisp.org>
32826
32827         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
32828         HAVE_STRUCT_RANDOM_DATA to 1.
32829         (gl_STDLIB_H): Simplify.
32830
32831 2008-10-26  Simon Josefsson  <simon@josefsson.org>
32832
32833         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
32834         substitute HAVE_STRUCT_RANDOM_DATA.
32835         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
32836         random_data.
32837         * modules/stdlib (Makefile.am): Substitute
32838         HAVE_STRUCT_RANDOM_DATA.
32839
32840 2008-10-26  Simon Josefsson  <simon@josefsson.org>
32841
32842         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
32843         * doc/gnulib-intro.texi (Copyright): Likewise.
32844
32845 2008-10-26  Simon Josefsson  <simon@josefsson.org>
32846
32847         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
32848         findings.
32849
32850 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
32851             Bruno Haible  <bruno@clisp.org>
32852
32853         * lib/unistd.in.h: Include <winsock2.h>.
32854         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
32855         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
32856         Provide dummy declarations.
32857         (gethostname): Override.
32858         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
32859         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
32860         gl_PREREQ_SYS_H_WINSOCK2.
32861         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
32862         * doc/posix-functions/gethostname.texi: More details.
32863
32864 2008-10-25  Bruno Haible  <bruno@clisp.org>
32865
32866         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
32867         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
32868         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
32869
32870         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
32871         here ...
32872         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
32873         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
32874         gl_UNISTD_H_DEFAULTS.
32875
32876 2008-10-25  Eric Blake  <ebb9@byu.net>
32877
32878         signbit: avoid spurious compiler failure
32879         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
32880         declarations inside function.
32881
32882 2008-10-24  Simon Josefsson  <simon@josefsson.org>
32883             Bruno Haible  <bruno@clisp.org>
32884
32885         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
32886         * modules/random_r (Depends-on): Add stdint.
32887
32888 2008-10-24  Bruno Haible  <bruno@clisp.org>
32889
32890         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
32891         Eggert.
32892         * modules/strerror (License): Likewise.
32893
32894 2008-10-24  Jim Meyering  <meyering@redhat.com>
32895
32896         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
32897         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
32898
32899 2008-10-24  Eric Blake  <ebb9@byu.net>
32900
32901         getgroups: fix compilation when getgroups is available
32902         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
32903         but with <config.h> override of getgroups disabled.
32904
32905 2008-10-24  Simon Josefsson  <simon@josefsson.org>
32906
32907         * doc/gnulib.texi (Header files): Add note about C++ problems.
32908         Explained by Bruno Haible <bruno@clisp.org>.
32909
32910 2008-10-23  Bruno Haible  <bruno@clisp.org>
32911
32912         Define a dummy SA_NODEFER macro on Interix.
32913         * lib/signal.in.h (SA_NODEFER): Define fallback.
32914         Reported by Aleksey Cheusov <cheusov@tut.by> via
32915         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
32916
32917 2008-10-23  Bruno Haible  <bruno@clisp.org>
32918
32919         * modules/freadahead (License): Change to LGPLv2+.
32920         Suggested by Simon Josefsson.
32921
32922 2008-10-23  Jim Meyering  <meyering@redhat.com>
32923
32924         random_r: new module
32925         * modules/random_r: New file.
32926         * m4/random_r.m4: New file.
32927         * lib/random_r.c: New file, from glibc.
32928         * modules/random_r-tests: New file.
32929         * tests/test-random_r.c: New file.
32930         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
32931          Declare.
32932         (RAND_MAX): Define.
32933         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
32934         * modules/stdlib: Substitute them, too.
32935         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
32936         * doc/glibc-functions/initstate_r.texi: Mention the new module.
32937         * doc/glibc-functions/random_r.texi: Likewise.
32938         * doc/glibc-functions/setstate_r.texi: Likewise.
32939         * doc/glibc-functions/srandom_r.texi: Likewise.
32940         * config/srclist.txt: Mention it.
32941
32942 2008-10-23  David Lutterkort  <lutter@redhat.com>
32943
32944         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
32945         link requirement
32946
32947 2008-10-23  Jim Meyering  <meyering@redhat.com>
32948
32949         selinux-h: mark parameters of stub functions as intentionally unused
32950         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
32951         * lib/se-context.in.h: Likewise.
32952
32953 2008-10-22  Simon Josefsson  <simon@josefsson.org>
32954
32955         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
32956
32957 2008-10-22  Simon Josefsson  <simon@josefsson.org>
32958
32959         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
32960
32961 2008-10-22  Eric Blake  <ebb9@byu.net>
32962
32963         glthread/thread: avoid compiler warning
32964         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
32965         Add unreachable abort to silence compiler.
32966
32967 2008-10-22  Eric Blake  <ebb9@byu.net>
32968
32969         netdb: also supply struct addrinfo for cygwin 1.5.x
32970         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
32971         older cygwin.
32972         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
32973         cygwin.
32974         * doc/posix-headers/netdb.texi (netdb.h): Document this.
32975
32976 2008-10-22  Bruno Haible  <bruno@clisp.org>
32977
32978         * users.txt: Update entry about pspp.
32979
32980 2008-10-21  Bruno Haible  <bruno@clisp.org>
32981
32982         Simplification.
32983         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
32984         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
32985
32986         Simplification.
32987         * lib/ioctl.c (ioctl): Don't undefine.
32988         * lib/socket.c (socket): Don't undefine.
32989
32990         Remove unused module indicator macros.
32991         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
32992         GNULIB_$1 as a C macro.
32993
32994         * doc/posix-functions/close.texi: Undo last change.
32995         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
32996         Windows platforms.
32997
32998 2008-10-21  Bruno Haible  <bruno@clisp.org>
32999
33000         Add gethostname() declaration to <unistd.h>.
33001         * lib/unistd.in.h (gethostname): New declaration.
33002         * lib/gethostname.c: Include <unistd.h>.
33003         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
33004         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
33005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
33006         and HAVE_GETHOSTNAME.
33007         * modules/gethostname (Depends-on): Add unistd.
33008         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33009         (Include): Specify <unistd.h>.
33010         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
33011         HAVE_GETHOSTNAME.
33012         * tests/test-gethostname.c: Include <unistd.h> first.
33013
33014 2008-10-21  Bruno Haible  <bruno@clisp.org>
33015
33016         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
33017         * modules/select-tests (Depends-on): Likewise.
33018         Reported by Simon Josefsson.
33019
33020 2008-10-21  Simon Josefsson  <simon@josefsson.org>
33021
33022         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
33023         * lib/accept.c: New file, based on winsock.c.
33024         * lib/bind.c: New file, based on winsock.c.
33025         * lib/connect.c: New file, based on winsock.c.
33026         * lib/getpeername.c: New file, based on winsock.c.
33027         * lib/getsockname.c: New file, based on winsock.c.
33028         * lib/getsockopt.c: New file, based on winsock.c.
33029         * lib/ioctl.c: New file, based on winsock.c.
33030         * lib/listen.c: New file, based on winsock.c.
33031         * lib/recv.c: New file, based on winsock.c.
33032         * lib/recvfrom.c: New file, based on winsock.c.
33033         * lib/send.c: New file, based on winsock.c.
33034         * lib/sendto.c: New file, based on winsock.c.
33035         * lib/setsockopt.c: New file, based on winsock.c.
33036         * lib/shutdown.c: New file, based on winsock.c.
33037         * lib/socket.c: New file, based on winsock.c.
33038         * lib/w32sock.h: New file, based on winsock.c.
33039         * lib/winsock.c: Remove file.
33040         * modules/accept: Likewise.
33041         * modules/bind: Likewise.
33042         * modules/connect: Likewise.
33043         * modules/getpeername: Likewise.
33044         * modules/getsockname: Likewise.
33045         * modules/getsockopt: Likewise.
33046         * modules/ioctl: Likewise.
33047         * modules/listen: Likewise.
33048         * modules/recv: Likewise.
33049         * modules/recvfrom: Likewise.
33050         * modules/send: Likewise.
33051         * modules/sendto: Likewise.
33052         * modules/setsockopt: Likewise.
33053         * modules/shutdown: Likewise.
33054         * modules/socket: Use socket.c instead of winsock.c.
33055         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
33056         * doc/posix-functions/accept.texi: Doc fix.
33057         * doc/posix-functions/bind.texi: Doc fix.
33058         * doc/posix-functions/close.texi: Doc fix.
33059         * doc/posix-functions/connect.texi: Doc fix.
33060         * doc/posix-functions/getpeername.texi: Doc fix.
33061         * doc/posix-functions/getsockname.texi: Doc fix.
33062         * doc/posix-functions/getsockopt.texi: Doc fix.
33063         * doc/posix-functions/ioctl.texi: Doc fix.
33064         * doc/posix-functions/listen.texi: Doc fix.
33065         * doc/posix-functions/recv.texi: Doc fix.
33066         * doc/posix-functions/recvfrom.texi: Doc fix.
33067         * doc/posix-functions/send.texi: Doc fix.
33068         * doc/posix-functions/sendto.texi: Doc fix.
33069         * doc/posix-functions/setsockopt.texi: Doc fix.
33070         * doc/posix-functions/shutdown.texi: Doc fix.
33071         * doc/posix-functions/socket.texi: Doc fix.
33072
33073 2008-10-20  Bruno Haible  <bruno@clisp.org>
33074
33075         Take into account the role of SIGABRT_COMPAT on Windows 2008.
33076         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
33077         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
33078         as an alias for SIGABRT.
33079         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
33080         (sigaction): Map it to SIGABRT.
33081         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
33082
33083 2008-10-20  Bruno Haible  <bruno@clisp.org>
33084
33085         * lib/fts.c: Don't include lstat.h.
33086         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
33087
33088         Move the lstat() declaration to <sys/stat.h>.
33089         * lib/lstat.h: Remove file.
33090         * lib/sys_stat.in.h: Add special invocation convention.
33091         (lstat): New declaration.
33092         * lib/lstat.c (orig_lstat): New function.
33093         (rpl_lstat): Use orig_lstat instead of lstat.
33094         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
33095         AC_C_INLINE. Set REPLACE_LSTAT.
33096         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
33097         and REPLACE_LSTAT.
33098         * modules/lstat (Files): Remove lib/lstat.h.
33099         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
33100         (Include): Specify <sys/stat.h> instead of lstat.h.
33101         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
33102         REPLACE_LSTAT.
33103         * NEWS: Mention the change.
33104
33105 2008-10-20  Bruno Haible  <bruno@clisp.org>
33106
33107         * modules/posix_spawn-tests: New file.
33108         * tests/test-posix_spawn3.c: New file.
33109
33110 2008-10-20  Bruno Haible  <bruno@clisp.org>
33111
33112         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
33113         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
33114         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
33115         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
33116         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
33117
33118 2008-10-20  Bruno Haible  <bruno@clisp.org>
33119
33120         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
33121         of posix_spawn on AIX 5.3.
33122
33123 2008-10-20  Bruno Haible  <bruno@clisp.org>
33124
33125         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
33126
33127 2008-10-20  Bruno Haible  <bruno@clisp.org>
33128
33129         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
33130         of AC_LANG_PROGRAM.
33131
33132 2008-10-20  Simon Josefsson  <simon@josefsson.org>
33133
33134         * lib/netdb.in.h: Don't define GNU specific constants until they
33135         are supported or needed.  Reported by Bruno Haible
33136         <bruno@clisp.org>.
33137
33138 2008-10-20  Simon Josefsson  <simon@josefsson.org>
33139
33140         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
33141
33142 2008-10-20  Simon Josefsson  <simon@josefsson.org>
33143
33144         * lib/getaddrinfo.h: Remove file.
33145         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
33146         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
33147         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
33148         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
33149         * modules/netdb: Substitute GNULIB_GETADDRINFO.
33150         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
33151         * tests/test-getaddrinfo.c: Likewise.
33152         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
33153         * NEWS: Mention change.
33154
33155 2008-10-19  Bruno Haible  <bruno@clisp.org>
33156
33157         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
33158
33159 2008-10-19  Bruno Haible  <bruno@clisp.org>
33160
33161         * lib/wait-process.c: Include simply <sys/wait.h>.
33162         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
33163         WIFSTOPPED): Remove fallback definitions.
33164         * modules/wait-process (Depends-on): Add sys_wait.
33165
33166         New module 'sys_wait'.
33167         * modules/sys_wait: New file.
33168         * lib/sys_wait.in.h: New file, partially copied from
33169         lib/wait-process.c.
33170         * m4/sys_wait_h.m4: New file.
33171         * doc/posix-headers/sys_wait.texi: Mention the new module.
33172
33173 2008-10-19  Bruno Haible  <bruno@clisp.org>
33174
33175         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
33176
33177 2008-10-19  Bruno Haible  <bruno@clisp.org>
33178
33179         Assume that waitpid() fills an 'int' status, not a 'union wait'.
33180         * lib/wait-process.c (WAIT_T): Remove type.
33181         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
33182         (wait_subprocess): Update.
33183
33184 2008-10-19  Bruno Haible  <bruno@clisp.org>
33185
33186         New module 'atoll'.
33187         * modules/atoll: New file.
33188         * lib/stdlib.in.h (atoll): New declaration.
33189         * lib/atoll.c: New file, from glibc with modifications.
33190         * m4/atoll.m4: New file.
33191         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
33192         HAVE_ATOLL.
33193         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
33194         * doc/posix-functions/atoll.texi: Mention the new module.
33195
33196 2008-10-19  Bruno Haible  <bruno@clisp.org>
33197
33198         Add strtoull() declaration to <stdlib.h>.
33199         * lib/stdlib.in.h (strtoull): New declaration.
33200         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
33201         Set HAVE_STRTOULL.
33202         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
33203         HAVE_STRTOULL.
33204         * modules/strtoull (Depends-on): Add stdlib.
33205         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33206         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
33207         HAVE_STRTOULL.
33208
33209 2008-10-19  Bruno Haible  <bruno@clisp.org>
33210
33211         Add strtoll() declaration to <stdlib.h>.
33212         * lib/stdlib.in.h (strtoll): New declaration.
33213         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
33214         Set HAVE_STRTOLL.
33215         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
33216         HAVE_STRTOLL.
33217         * modules/strtoll (Depends-on): Add stdlib.
33218         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33219         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
33220
33221 2008-10-19  Bruno Haible  <bruno@clisp.org>
33222
33223         * modules/bcopy (Depends-on): Add strings.
33224         (Include): Specify <strings.h>.
33225
33226 2008-10-19  Bruno Haible  <bruno@clisp.org>
33227
33228         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
33229
33230 2008-10-19  Bruno Haible  <bruno@clisp.org>
33231
33232         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
33233         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
33234         mingw.
33235
33236 2008-10-19  Bruno Haible  <bruno@clisp.org>
33237
33238         * lib/atanl.c: Don't include isnanl.h.
33239         * lib/cosl.c: Likewise.
33240         * lib/ldexpl.c: Likewise.
33241         * lib/logl.c: Likewise.
33242         * lib/sinl.c: Likewise.
33243         * lib/sqrtl.c: Likewise.
33244         * lib/tanl.c: Likewise.
33245
33246         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
33247         * lib/isnanf.h: Remove file.
33248         * lib/isnand.h: Remove file.
33249         * lib/isnanl.h: Remove file.
33250         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
33251         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
33252         macros.
33253         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
33254         HAVE_ISNANF, don't define it as a C macro.
33255         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
33256         HAVE_ISNAND, don't define it as a C macro.
33257         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
33258         HAVE_ISNANL, don't define it as a C macro.
33259         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
33260         HAVE_ISNAN[FDL].
33261         * modules/isnanf (Files): Remove lib/isnanf.h.
33262         (Depends-on): Add math.
33263         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
33264         (Include): Specify <math.h> instead of isnanf.h.
33265         * modules/isnand (Files): Remove lib/isnand.h.
33266         (Depends-on): Add math.
33267         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
33268         (Include): Specify <math.h> instead of isnand.h.
33269         * modules/isnanl (Files): Remove lib/isnanl.h.
33270         (Depends-on): Add math.
33271         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
33272         (Include): Specify <math.h> instead of isnanl.h.
33273         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
33274         HAVE_ISNAN[FDL].
33275         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
33276         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
33277         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
33278         * NEWS: Mention the change.
33279
33280 2008-10-18  Bruno Haible  <bruno@clisp.org>
33281
33282         Add getusershell(), setusershell(), endusershell() declarations to
33283         <unistd.h>.
33284         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
33285         declarations.
33286         * lib/getusershell.c: Include unistd.h.
33287         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
33288         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
33289         HAVE_GETUSERSHELL.
33290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
33291         and HAVE_GETUSERSHELL.
33292         * modules/getusershell (Depends-on): Add unistd, extensions.
33293         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33294         (Include): Specify <unistd.h>.
33295         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
33296         HAVE_GETUSERSHELL.
33297
33298 2008-10-18  Bruno Haible  <bruno@clisp.org>
33299
33300         Add a getloadavg() declaration to <stdlib.h>.
33301         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
33302         getloadavg declaration.
33303         (getloadavg): New declaration.
33304         * lib/getloadavg.c: Include <stdlib.h> first.
33305         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
33306         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
33307         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
33308         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
33309         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
33310         * modules/getloadavg (Depends-on): Add stdlib, extensions.
33311         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33312         (Include): Specify <stdlib.h>.
33313         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
33314         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
33315
33316 2008-10-18  Bruno Haible  <bruno@clisp.org>
33317
33318         * lib/dirchownmod.c: Don't include lchmod.h.
33319
33320         Move the lchmod() declaration to <sys/stat.h>.
33321         * lib/lchmod.h: Remove file.
33322         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
33323         (lchmod): New declaration, moved here from lib/lchown.h.
33324         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
33325         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
33326         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
33327         and HAVE_LCHMOD.
33328         * modules/lchmod (Files): Remove lib/lchmod.h.
33329         (Depends-on): Add sys_stat, extensions.
33330         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
33331         (Include): Specify <sys/stat.h> instead of lchmod.h.
33332         * modules/sys_stat (Depends-on): Add link-warning.
33333         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
33334         definition of GL_LINK_WARNING.
33335         * NEWS: Mention the change.
33336
33337 2008-10-18  Bruno Haible  <bruno@clisp.org>
33338
33339         * lib/fchdir.c: Don't include dirfd.h.
33340         * lib/fts.c: Likewise.
33341         * lib/getcwd.c: Likewise.
33342         * lib/glob.c: Likewise.
33343
33344         Move the dirfd() declaration to <dirent.h>.
33345         * lib/dirfd.h: Remove file.
33346         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
33347         (dirfd): New declaration.
33348         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
33349         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
33350         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
33351         HAVE_DECL_DIRFD.
33352         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
33353         HAVE_DECL_DIRFD.
33354         * modules/dirfd (Files): Remove lib/dirfd.h.
33355         (Depends-on): Add dirent, extensions.
33356         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
33357         (Include): Specify <dirent.h> instead of dirfd.h.
33358         * modules/dirent (Depends-on): Add link-warning.
33359         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
33360         definition of GL_LINK_WARNING.
33361         * NEWS: Mention the change.
33362
33363 2008-10-18  Bruno Haible  <bruno@clisp.org>
33364
33365         Move the euidaccess() declaration to <unistd.h>.
33366         * lib/euidaccess.h: Remove file.
33367         * lib/unistd.in.h (euidaccess): New declaration.
33368         * lib/euidaccess.c: Don't include euidaccess.h.
33369         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
33370         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
33371         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
33372         and HAVE_EUIDACCESS.
33373         * modules/euidaccess (Files): Remove lib/euidaccess.h.
33374         (Depends-on): Add unistd.
33375         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33376         (Include): Specify <unistd.h> instead of euidaccess.h.
33377         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
33378         HAVE_EUIDACCESS.
33379         * NEWS: Mention the change.
33380
33381 2008-10-18  Bruno Haible  <bruno@clisp.org>
33382
33383         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
33384
33385         Move the getdomainname() declaration to <unistd.h>.
33386         * lib/getdomainname.h: Remove file.
33387         * lib/unistd.in.h (getdomainname): New declaration.
33388         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
33389         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
33390         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
33391         HAVE_GETDOMAINNAME.
33392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33393         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
33394         * modules/getdomainname (Files): Remove lib/getdomainname.h.
33395         (Depends-on): Add unistd, extensions.
33396         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33397         (Includes): Specify <unistd.h> instead of getdomainname.h.
33398         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
33399         HAVE_GETDOMAINNAME.
33400         * NEWS: Mention the change.
33401
33402 2008-10-18  Bruno Haible  <bruno@clisp.org>
33403
33404         * modules/dirent: New file.
33405         * m4/dirent_h.m4: New file.
33406         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
33407         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
33408         * modules/fchdir (Files): Remove lib/dirent.in.h.
33409         (Depends-on): Add dirent.
33410         (Makefile.am): Move rules to modules/dirent.
33411         * doc/posix-headers/dirent.texi: Mention the new module.
33412
33413 2008-10-18  Bruno Haible  <bruno@clisp.org>
33414
33415         Avoid -Wunused-parameter warnings in public gnulib header files.
33416         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
33417         macro.
33418         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
33419
33420 2008-10-18  Bruno Haible  <bruno@clisp.org>
33421
33422         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
33423         * doc/glibc-functions/error.texi: Mention the module 'error'.
33424         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
33425         * doc/glibc-functions/getdomainname.texi: Mention the module
33426         'getdomainname'.
33427         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
33428         * doc/glibc-functions/getpagesize.texi: Mention the module
33429         'getpagesize'.
33430         * doc/glibc-functions/getusershell.texi: Mention the module
33431         'getusershell'.
33432         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
33433         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
33434         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
33435         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
33436         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
33437         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
33438         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
33439         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
33440         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
33441         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
33442         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
33443         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
33444         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
33445         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
33446
33447 2008-10-17  Bruno Haible  <bruno@clisp.org>
33448
33449         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
33450         HP-UX and IRIX, use -0.0L.
33451         * tests/test-ceill.c (minus_zero): Likewise.
33452         * tests/test-floorl.c (minus_zero): Likewise.
33453         * tests/test-frexpl.c (minus_zero): Likewise.
33454         * tests/test-isnan.c (minus_zerol): Likewise.
33455         * tests/test-isnanl.h (minus_zero): Likewise.
33456         * tests/test-ldexpl.c (minus_zero): Likewise.
33457         * tests/test-roundl.c (minus_zero): Likewise.
33458         * tests/test-signbit.c (minus_zerol): Likewise.
33459         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
33460         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
33461         * tests/test-truncl.c (minus_zero): Likewise.
33462         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
33463         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
33464         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
33465         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
33466
33467 2008-10-17  Bruno Haible  <bruno@clisp.org>
33468
33469         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
33470         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
33471         that it gets activated only for gcc >= 3.0.
33472         * lib/dirent.in.h: Likewise.
33473         * lib/errno.in.h: Likewise.
33474         * lib/fcntl.in.h: Likewise.
33475         * lib/float.in.h: Likewise.
33476         * lib/iconv.in.h: Likewise.
33477         * lib/inttypes.in.h: Likewise.
33478         * lib/locale.in.h: Likewise.
33479         * lib/math.in.h: Likewise.
33480         * lib/netdb.in.h: Likewise.
33481         * lib/netinet_in.in.h: Likewise.
33482         * lib/search.in.h: Likewise.
33483         * lib/signal.in.h: Likewise.
33484         * lib/spawn.in.h: Likewise.
33485         * lib/stdarg.in.h: Likewise.
33486         * lib/stdint.in.h: Likewise.
33487         * lib/stdio.in.h: Likewise.
33488         * lib/stdlib.in.h: Likewise.
33489         * lib/string.in.h: Likewise.
33490         * lib/strings.in.h: Likewise.
33491         * lib/sys_file.in.h: Likewise.
33492         * lib/sys_ioctl.in.h: Likewise.
33493         * lib/sys_select.in.h: Likewise.
33494         * lib/sys_socket.in.h: Likewise.
33495         * lib/sys_stat.in.h: Likewise.
33496         * lib/sys_time.in.h: Likewise.
33497         * lib/sysexits.in.h: Likewise.
33498         * lib/time.in.h: Likewise.
33499         * lib/unistd.in.h: Likewise.
33500         * lib/wchar.in.h: Likewise.
33501         * lib/wctype.in.h: Likewise.
33502         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33503
33504 2008-10-17  Jim Meyering  <meyering@redhat.com>
33505
33506         ignore-value: don't depend on inline module
33507         * modules/ignore-value (Depends-on): Remove 'inline'.
33508         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
33509         Suggestion from Bruno Haible.
33510
33511 2008-10-17  Bruno Haible  <bruno@clisp.org>
33512
33513         New implementation of condition variables for Win32.
33514         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
33515         (gl_linked_waitqueue_t): New type.
33516         (gl_cond_t): Use it.
33517         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
33518         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
33519         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
33520         (glthread_cond_init_func, glthread_cond_wait_func,
33521         glthread_cond_timedwait_func, glthread_cond_signal_func,
33522         glthread_cond_broadcast_func, glthread_cond_destroy_func):
33523         Reimplemented on the basis of gl_linked_waitqueue_t.
33524         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
33525         gl_waitqueue_t.
33526         (gl_rwlock_t): Update.
33527         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
33528
33529 2008-10-17  Simon Josefsson  <simon@josefsson.org>
33530
33531         * modules/recvfrom (Depends-on): Add dependency on getpeername.
33532         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33533
33534 2008-10-17  Jim Meyering  <meyering@redhat.com>
33535
33536         ignore-value: new module
33537         * modules/ignore-value: New file.
33538         * lib/ignore-value.h: New file.
33539         * MODULES.html.sh (Compiler warning management): New section,
33540         just for this module.  More to come.
33541
33542 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33543
33544         open-safer.c: avoid 'signed and unsigned in conditional...' warning
33545         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
33546         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
33547
33548 2008-10-16  Jim Meyering  <meyering@redhat.com>
33549
33550         openat-die.c: avoid 'no previous prototype' warning
33551         * lib/openat-die.c: Include "openat.h".
33552         Reported by Reuben Thomas <rrt@sc3d.org>.
33553
33554 2008-10-16  Simon Josefsson  <simon@josefsson.org>
33555
33556         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
33557         * lib/netdb.in.h: Fix typo.
33558         Reported by Bruno Haible  <bruno@clisp.org>
33559
33560         * lib/netdb.in.h: Include sys/socket.h for platforms without
33561         netdb.h, to get structures like hostent on MinGW.
33562         * modules/netdb (Depends-on): Add sys_socket.
33563
33564 2008-10-15  Simon Josefsson  <simon@josefsson.org>
33565
33566         * modules/netdb, modules/netdb-tests: New file.
33567         * m4/netdb_h.m4: New file.
33568         * lib/netdb.in.h: Add, currently just an empty file pending
33569         definitions.
33570         * tests/test-netdb.c: New file.
33571         * doc/posix-headers/netdb.texi: Mention that we replace it if
33572         needed.
33573         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33574         netdb.
33575
33576 2008-10-15  Simon Josefsson  <simon@josefsson.org>
33577
33578         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
33579         with code.
33580
33581 2008-10-13  Bruno Haible  <bruno@clisp.org>
33582
33583         * lib/glthread/cond.c (glthread_cond_wait_func,
33584         glthread_cond_timedwait_func): Add a comment.
33585
33586 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33587
33588         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
33589         * tests/test-select.c: Likewise,
33590
33591 2008-10-13  Bruno Haible  <bruno@clisp.org>
33592
33593         * lib/glthread/cond.c (glthread_cond_wait_func,
33594         glthread_cond_timedwait_func): Fix variable name.
33595         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33596
33597 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
33598
33599         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
33600         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
33601         struct sockaddr.sa_len.
33602         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
33603
33604 2008-10-13  Simon Josefsson  <simon@josefsson.org>
33605
33606         * build-aux/pmccabe2html: Add css and css_url parameters.
33607
33608 2008-10-12  Bruno Haible  <bruno@clisp.org>
33609
33610         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
33611         calling aclx_get.
33612         Reported by Rainer Tammer <tammer@tammer.net>.
33613
33614 2008-10-12  Bruno Haible  <bruno@clisp.org>
33615
33616         Use msvcrt aware primitives for creation/termination of Win32 threads.
33617         * lib/glthread/thread.c: Include <process.h>.
33618         (glthread_create_func): Use _beginthreadex instead of CreateThread.
33619         (wrapper_func): Update signature.
33620         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
33621
33622 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33623             Bruno Haible  <bruno@clisp.org>
33624
33625         Provide a Win32 implementation of the 'cond' module.
33626         * lib/glthread/cond.h [USE_WIN32]: New implementation.
33627         * lib/glthread/cond.c (glthread_cond_init_func,
33628         glthread_cond_wait_func, glthread_cond_timedwait_func,
33629         glthread_cond_signal_func, glthread_cond_broadcast_func,
33630         glthread_cond_destroy_func) [USE_WIN32]: New functions.
33631         * modules/cond (Dependencies): Add gettimeofday.
33632
33633 2008-10-11  Bruno Haible  <bruno@clisp.org>
33634
33635         Make sleep work on older versions of mingw.
33636         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
33637         only whether it exists.
33638         * doc/posix-functions/sleep.texi: Mention the problem with older
33639         versions of mingw.
33640
33641 2008-10-11  Bruno Haible  <bruno@clisp.org>
33642
33643         New module 'shutdown'.
33644         * modules/shutdown: New file.
33645         * lib/sys_socket.in.h (shutdown): New declaration.
33646         * lib/winsock.c (shutdown): New function.
33647         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
33648         GNULIB_SHUTDOWN.
33649         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
33650         * doc/posix-functions/shutdown.texi: Document the new module.
33651
33652 2008-10-11  Jim Meyering  <meyering@redhat.com>
33653
33654         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
33655
33656 2008-10-11  Bruno Haible  <bruno@clisp.org>
33657
33658         New module 'fclose'.
33659         * modules/fclose: New file.
33660         * lib/stdio.in.h (fclose): New declaration.
33661         * lib/fclose.c: New file.
33662         * m4/fclose.m4: New file.
33663         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
33664         REPLACE_FCLOSE.
33665         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
33666         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
33667         REPLACE_FCLOSE.
33668         * modules/close (Depends-on): fclose.
33669         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
33670
33671 2008-10-11  Bruno Haible  <bruno@clisp.org>
33672
33673         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
33674         set errno and don't call _close.
33675
33676 2008-10-10  Bruno Haible  <bruno@clisp.org>
33677
33678         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
33679         ACL, not afterwards. Fixes test failure on Cygwin.
33680
33681 2008-10-09  Ben Pfaff  <blp@gnu.org>
33682
33683         * build-aux/announce-gen: Fix gnulib version related part of usage
33684         message.  Die with a useful error message if no tarballs are
33685         found.
33686
33687 2008-10-10  Jim Meyering  <meyering@redhat.com>
33688
33689         bootstrap: use git's --depth=N option only if it's supported
33690         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
33691         recognize the --depth option.  Reported by Pádraig Brady.
33692
33693 2008-10-09  Bruno Haible  <bruno@clisp.org>
33694
33695         New module 'ioctl'.
33696         * modules/ioctl: New file.
33697         * lib/sys_socket.in.h (ioctl): Remove declaration.
33698         * lib/winsock.c: Include <sys/ioctl.h>.
33699         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
33700         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
33701         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
33702         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
33703         * doc/posix-functions/ioctl.texi: Mention the new module.
33704
33705 2008-10-09  Bruno Haible  <bruno@clisp.org>
33706
33707         New module 'sys_ioctl'.
33708         * lib/sys_ioctl.in.h: New file.
33709         * m4/sys_ioctl_h.m4: New file.
33710         * modules/sys_ioctl: New file.
33711         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
33712
33713 2008-10-09  Bruno Haible  <bruno@clisp.org>
33714
33715         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
33716         * lib/winsock.c: Include <stdarg.h>.
33717         (rpl_ioctl): Change to second argument 'int' and then varargs.
33718
33719 2008-10-09  Bruno Haible  <bruno@clisp.org>
33720
33721         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
33722         when the sys_socket module is present and the system has <winsock2.h>.
33723
33724 2008-10-09  Bruno Haible  <bruno@clisp.org>
33725
33726         * doc/posix-functions/close.texi: Mention module 'close' instead of
33727         module 'sys_socket'.
33728
33729 2008-10-09  Bruno Haible  <bruno@clisp.org>
33730
33731         * doc/glibc-headers/sys_ioctl.texi: New file.
33732         * doc/gnulib.texi: Include it.
33733
33734 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33735             Bruno Haible  <bruno@clisp.org>
33736
33737         Combine the two replacements of 'close'.
33738         * lib/sys_socket.in.h (close): Define to a reminder to include
33739         <unistd.h>.
33740         (_gl_close_fd_maybe_socket): New declaration.
33741         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
33742         * lib/winsock.c (close): Remove undefinition.
33743         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
33744         needed for the gnulib module 'close'.
33745         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
33746         define to an error symbol or to a warning, if suitable.
33747         * lib/close.c: Include <sys/socket.h>.
33748         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
33749         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
33750         UNISTD_H_HAVE_WINSOCK2_H.
33751         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
33752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33753         UNISTD_H_HAVE_WINSOCK2_H.
33754         * modules/sys_socket (Files): Add m4/unistd_h.m4.
33755         (configure.ac): Set a module indicator.
33756         (Makefile.am): Substitute GNULIB_CLOSE.
33757         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
33758         * modules/poll-tests (Depends-on): Add close.
33759         * modules/select-tests (Depends-on): Likewise.
33760
33761 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33762             Bruno Haible  <bruno@clisp.org>
33763
33764         New module 'close'.
33765         * modules/close: New file.
33766         * lib/unistd.in.h (close): Move declaration out of the
33767         FCHDIR_REPLACEMENT scope.
33768         (_gl_unregister_fd): New declaration.
33769         * lib/close.c: New file.
33770         * lib/fchdir.c (rpl_close): Remove function.
33771         * m4/close.m4: New file.
33772         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
33773         close.
33774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
33775         REPLACE_CLOSE.
33776         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
33777         REPLACE_CLOSE.
33778         * modules/fchdir (Depends-on): Add close.
33779
33780 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33781             Bruno Haible  <bruno@clisp.org>
33782
33783         * lib/fcntl.in.h (open): Simplify conditionals.
33784         (_gl_register_fd): New declaration.
33785         * lib/fchdir.c (rpl_open): Remove function.
33786         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
33787         also.
33788         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
33789         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
33790         open.
33791
33792 2008-10-09  Jim Meyering  <meyering@redhat.com>
33793
33794         GNUmakefile: use the more name-space-friendly "_version"
33795         * top/GNUmakefile (_dummy): Update.
33796         (_version): Rename from "version".
33797
33798 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33799             Bruno Haible  <bruno@clisp.org>
33800
33801         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
33802         rpl_close.
33803         (_gl_register_fd): New function, extracted from rpl_open.
33804         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
33805         (rpl_open, rpl_opendir): Use _gl_register_fd.
33806
33807 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33808
33809         Fix organization of 'open' replacement.
33810         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
33811         (gl_FUNC_OPEN): Use it.
33812         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
33813
33814 2008-10-08  Bruno Haible  <bruno@clisp.org>
33815
33816         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
33817
33818 2008-10-08  Simon Josefsson  <simon@josefsson.org>
33819
33820         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
33821         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
33822         listen).
33823
33824 2008-10-08  Eric Blake  <ebb9@byu.net>
33825
33826         GNUmakefile: add 'make version' target
33827         * top/GNUmakefile (_curr-ver): Split version update rules...
33828         (version): ...into a target.
33829
33830 2008-10-07  Bruno Haible  <bruno@clisp.org>
33831
33832         Use a more portable replacement expression for -0.0L.
33833         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
33834         instead of -0.0L. Fix m4 quotation.
33835
33836         * tests/test-signbit.c: Include <float.h>.
33837         (minus_zero): New variable.
33838         (test_signbitl): Use minus_zero instead of -zero.
33839         * modules/signbit-tests (Depends-on): Add float.
33840
33841         * tests/test-ceill.c: Include <float.h>.
33842         (zero): Remove variable.
33843         (minus_zero): New variable.
33844         (main): Use minus_zero instead of -zero.
33845         * modules/ceill-tests (Depends-on): Add float.
33846
33847         * tests/test-floorl.c: Include <float.h>.
33848         (zero): Remove variable.
33849         (minus_zero): New variable.
33850         (main): Use minus_zero instead of -zero.
33851         * modules/floorl-tests (Depends-on): Add float.
33852
33853         * tests/test-roundl.c: Include <float.h>.
33854         (zero): Remove variable.
33855         (minus_zero): New variable.
33856         (main): Use minus_zero instead of -zero.
33857         * modules/roundl-tests (Depends-on): Add float.
33858
33859         * tests/test-truncl.c: Include <float.h>.
33860         (zero): Remove variable.
33861         (minus_zero): New variable.
33862         (main): Use minus_zero instead of -zero.
33863         * modules/truncl-tests (Depends-on): Add float.
33864
33865         * tests/test-frexpl.c (zero): Remove variable.
33866         (minus_zero): New variable.
33867         (main): Use minus_zero instead of -zero.
33868         * modules/frexpl-tests (Depends-on): Add float.
33869
33870         * tests/test-isnan.c (zerol): Remove variable.
33871         (minus_zerol): New variable.
33872         (test_long_double): Use minus_zerol instead of -zerol.
33873         * modules/isnan-tests (Depends-on): Add float.
33874
33875         * tests/test-isnanl.h (zero): Remove variable.
33876         (minus_zero): New variable.
33877         (main): Use minus_zero instead of -zero.
33878         * modules/isnanl-nolibm-tests (Depends-on): Add float.
33879         * modules/isnanl-tests (Depends-on): Add float.
33880
33881         * tests/test-ldexpl.c (zero): Remove variable.
33882         (minus_zero): New variable.
33883         (main): Use minus_zero instead of -zero.
33884         * modules/ldexpl-tests (Depends-on): Add float.
33885
33886         * tests/test-snprintf-posix.h (zerol): Remove variable.
33887         (minus_zerol): New variable.
33888         (test_function): Use minus_zerol instead of -zerol.
33889         * modules/snprintf-posix-tests (Depends-on): Add float.
33890         * modules/vsnprintf-posix-tests (Depends-on): Add float.
33891
33892         * tests/test-sprintf-posix.h (zerol): Remove variable.
33893         (minus_zerol): New variable.
33894         (test_function): Use minus_zerol instead of -zerol.
33895         * modules/sprintf-posix-tests (Depends-on): Add float.
33896         * modules/vsprintf-posix-tests (Depends-on): Add float.
33897
33898         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
33899         (minus_zerol): New variable.
33900         (test_function): Use minus_zerol instead of -zerol.
33901         * modules/vasnprintf-posix-tests (Depends-on): Add float.
33902
33903         * tests/test-vasprintf-posix.c (zerol): Remove variable.
33904         (minus_zerol): New variable.
33905         (test_function): Use minus_zerol instead of -zerol.
33906         * modules/vasprintf-posix-tests (Depends-on): Add float.
33907
33908 2008-10-07  Simon Josefsson  <simon@josefsson.org>
33909
33910         * MODULES.html.sh (Support for building documentation): Mention
33911         pmccabe2html.  Sort entries.
33912
33913         Add pmccabe2html module, from gnupdf.
33914         * build-aux/pmccabe.css: New file.
33915         * build-aux/pmccabe2html: New file.
33916         * m4/pmccabe2html.m4: New file.
33917         * modules/pmccabe2html: New file.
33918
33919 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
33920
33921         flock: new module
33922         * MODULES.html.sh: Add to list of modules.
33923         * lib/flock.c: flock implementation for Windows and Unix systems
33924         which have fcntl.
33925         * doc/glibc-functions/flock.texi: Update documentation.
33926         * lib/sys_file.in.h: <sys/file.h> header file.
33927         * m4/flock.m4: M4 macros.
33928         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
33929         * modules/flock: flock module.
33930         * modules/flock-tests: flock tests module.
33931         * modules/sys_file: sys/file.h module.
33932         * tests/test-flock.c: test suite for flock.
33933
33934 2008-10-06  Jim Meyering  <meyering@redhat.com>
33935
33936         bootstrap: check for LT_INIT more portably still ;-)
33937         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
33938         Spotted by Bruno Haible.
33939
33940 2008-10-06  Eric Blake  <ebb9@byu.net>
33941
33942         test-signbit: avoid tripping Irix cc bug on -0.0L
33943         * tests/test-signbit.c (minus_zerol): Delete, and replace with
33944         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
33945         entire testsuite consistent and avoids an Irix 6.2 bug.
33946
33947 2008-10-05  Bruno Haible  <bruno@clisp.org>
33948             Jim Meyering  <jim@meyering.net>
33949
33950         Add an option for ignoring EPIPE during close_stdout.
33951         * lib/closeout.h: Include <stdbool.h>.
33952         (close_stdout_set_ignore_EPIPE): New declaration.
33953         * lib/closeout.c: Include <stdbool.h>.
33954         (ignore_EPIPE): New variable.
33955         (close_stdout_set_ignore_EPIPE): New function.
33956         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
33957         * lib/close-stream.c (close_stream): Mention the possible EPIPE
33958         failure.
33959         * modules/closeout (Depends-on): Add stdbool.
33960
33961 2008-10-05  Bruno Haible  <bruno@clisp.org>
33962
33963         * modules/accept: New file.
33964         * modules/bind: New file.
33965         * modules/connect: New file.
33966         * modules/getpeername: New file.
33967         * modules/getsockname: New file.
33968         * modules/getsockopt: New file.
33969         * modules/listen: New file.
33970         * modules/recv: New file.
33971         * modules/recvfrom: New file.
33972         * modules/send: New file.
33973         * modules/sendto: New file.
33974         * modules/setsockopt: New file.
33975         * modules/socket: New file.
33976         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
33977         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
33978         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
33979         the particular module is requested. Add a link warning when the
33980         particular module is not requested.
33981         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
33982         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
33983         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
33984         the particular module is requested.
33985         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
33986         gl_SYS_SOCKET_H_DEFAULTS): New macros.
33987         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
33988         * modules/sys_socket (Depends-on): Add link-warning.
33989         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
33990         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
33991         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
33992         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
33993         GL_LINK_WARNING.
33994         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
33995         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
33996         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
33997         * doc/posix-functions/getpeername.texi: Mention the new module
33998         'getpeername'.
33999         * doc/posix-functions/getsockname.texi: Mention the new module
34000         'getsockname'.
34001         * doc/posix-functions/getsockopt.texi: Mention the new module
34002         'getsockopt'.
34003         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
34004         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
34005         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
34006         * doc/posix-functions/send.texi: Mention the new module 'send'.
34007         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
34008         * doc/posix-functions/setsockopt.texi: Mention the new module
34009         'setsockopt'.
34010         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
34011         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
34012         listen, connect, accept.
34013         * modules/select-tests (Depends-on): Likewise.
34014
34015 2008-10-05  Bruno Haible  <bruno@clisp.org>
34016
34017         * lib/winsock.c (strerror): Remove unused #undef.
34018         (rpl_close): Remove unused local variable.
34019
34020         * modules/sys_socket (Depends-on); Add errno.
34021
34022 2008-10-05  Bruno Haible  <bruno@clisp.org>
34023
34024         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
34025         (select): Add a link warning when the 'select' module is not used.
34026         * modules/sys_select (Depends-on): Add link-warning.
34027         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
34028         Suggested by Paolo Bonzini.
34029
34030 2008-10-05  Jim Meyering  <meyering@redhat.com>
34031
34032         bootstrap: check for LT_INIT more portably
34033         * build-aux/bootstrap: Avoid using grep -E, since it's not
34034         portable enough.  Suggestion from Bruno Haible.
34035
34036 2008-10-05  Bruno Haible  <bruno@clisp.org>
34037
34038         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
34039         as being fixed by gnulib.
34040
34041 2008-10-05  Bruno Haible  <bruno@clisp.org>
34042
34043         * modules/select-tests: New file, mostly copied from
34044         modules/sys_select-tests.
34045         * tests/test-select.c: New file, mostly copied from
34046         tests/test-sys_select.c.
34047         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
34048         * modules/sys_select-tests (Depends-on): Remove all dependencies.
34049         (Makefile.am): Remove test_sys_select_LDADD.
34050
34051         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
34052         to an undefined symbol, for an error message.
34053         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
34054         (gl_SYS_SELECT_H_DEFAULTS): New macro.
34055         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
34056         winsock-select.c here.
34057         * modules/sys_select (Files): Remove lib/winsock-select.c.
34058         (Depends-on): Remove alloca.
34059         (Makefile.am): Substitute GNULIB_SELECT.
34060         * modules/select: New file.
34061         * doc/posix-functions/select.texi: Update.
34062
34063 2008-10-05  Bruno Haible  <bruno@clisp.org>
34064
34065         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
34066         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
34067         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
34068         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
34069         getdtablesize.
34070         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
34071         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
34072
34073 2008-10-05  Bruno Haible  <bruno@clisp.org>
34074
34075         * modules/getdtablesize-tests: New file.
34076         * tests/test-getdtablesize.c: New file.
34077
34078         New module 'getdtablesize'.
34079         * lib/unistd.in.h (getdtablesize): New declaration.
34080         * lib/getdtablesize.c: New file.
34081         * m4/getdtablesize.m4: New file.
34082         * modules/getdtablesize: New file.
34083         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34084         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
34085         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
34086         HAVE_GETDTABLESIZE.
34087         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
34088
34089 2008-10-05  Bruno Haible  <bruno@clisp.org>
34090
34091         * modules/sched (Makefile.am): Fix typo.
34092         Reported by Simon Josefsson.
34093
34094 2008-10-05  Jim Meyering  <meyering@redhat.com>
34095
34096         bootstrap: check for LT_INIT, too
34097         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
34098         are deprecated.  Suggestion from Ralf Wildenhues.
34099
34100 2008-10-05  Bruno Haible  <bruno@clisp.org>
34101
34102         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
34103         overriding them by ours.
34104         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
34105
34106 2008-10-05  Jim Meyering  <meyering@redhat.com>
34107
34108         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
34109         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
34110         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
34111
34112 2008-10-04  Bruno Haible  <bruno@clisp.org>
34113
34114         * modules/dup2 (License): Change to LGPLv2+.
34115         * modules/sleep (License): Likewise.
34116         * modules/perror (License): Likewise.
34117         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
34118         Blake.
34119         * modules/signal (License): Likewise.
34120         * modules/sigprocmask (License): Likewise.
34121         * modules/raise (License): Change to LGPLv2+, with approval by Jim
34122         Meyering.
34123
34124 2008-10-04  Bruno Haible  <bruno@clisp.org>
34125
34126         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
34127         Reported by Rainer Tammer <tammer@tammer.net>.
34128
34129 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
34130             Bruno Haible  <bruno@clisp.org>
34131
34132         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
34133         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
34134         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
34135
34136 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
34137
34138         filevercmp: new module
34139         * lib/filevercmp.h: New function filevercmp comparing version strings.
34140         * lib/filevercmp.c: Implementation of filevercmp function.
34141         * modules/filevercmp: Module metadata.
34142         * tests/test-filevercmp.c: Unit test for new module.
34143         * modules/filevercmp-tests: Unit test metadata.
34144         * MODULES.html.sh: Add filevercmp module.
34145
34146 2008-10-03  Bruno Haible  <bruno@clisp.org>
34147
34148         * lib/c-ctype.h: Add comment.
34149         Reported by Jim Meyering.
34150
34151 2008-10-02  Bruno Haible  <bruno@clisp.org>
34152
34153         * modules/posix_spawn-internal (Depends-on): Add 'open'.
34154
34155 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
34156
34157         * build-aux/bootstrap: Allow renaming bootstrap, and change the
34158         name of bootstrap.conf accordingly.
34159
34160 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
34161
34162         * build-aux/bootstrap: Install git-merge-changelog configuration
34163         items into .gitconfig if needed.
34164
34165 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
34166
34167         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
34168         git repository, and initialize/update it accordingly.
34169
34170 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
34171
34172         * modules/fsync-tests: New file.
34173         * tests/test-fsync.c: New file.
34174
34175         New module 'fsync'.
34176         * lib/fsync.c: New file.
34177         * m4/fsync.m4: New file.
34178         * modules/fsync: New file.
34179         * lib/unistd.in.h (fsync): New declaration.
34180         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
34181         GNULIB_FSYNC and HAVE_FSYNC.
34182         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
34183         * MODULES.html.sh (posix_functions): Add fsync.
34184         * doc/posix-functions/fsync.texi: Mention the new module.
34185
34186 2008-10-02  Jim Meyering  <meyering@redhat.com>
34187
34188         fts.c: sync with similar code from coreutils' remove.c
34189         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
34190         Guard also with "#if defined __linux__", since for now at least,
34191         this code is Linux-kernel-specific.
34192
34193 2008-10-02  Jim Meyering  <meyering@redhat.com>
34194
34195         fts: bug fixes
34196         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
34197         Include <sys/vfs.h>, not <sys/statfs.h>.
34198
34199         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
34200         Include <sys/vfs.h>, not <sys/statfs.h>.
34201
34202 2008-10-01  Bruno Haible  <bruno@clisp.org>
34203
34204         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
34205         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
34206         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
34207         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
34208         * doc/posix-functions/posix_spawnp.texi: Likewise.
34209         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
34210         whether posix_spawn actually works.
34211         * m4/pipe.m4 (gl_PIPE): Likewise.
34212         * modules/execute (Files): Add m4/posix_spawn.m4.
34213         * modules/pipe (Files): Add m4/posix_spawn.m4.
34214         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
34215
34216 2008-10-01  Jim Meyering  <meyering@redhat.com>
34217
34218         remove trailing spaces
34219         * NEWS: Likewise.
34220         * lib/poll.c (poll): Likewise.
34221         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
34222         * lib/winsock.c (rpl_close): Likewise.
34223         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
34224         * modules/yield: Likewise.
34225         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
34226         * tests/test-sys_select.c (connect_to_socket): Likewise.
34227
34228         fts.c: adjust a new interface to be more generally useful
34229         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
34230         (fts_build): Adjust caller.
34231
34232 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34233
34234         * modules/cond-tests: New file.
34235         * tests/test-cond.c: New file.
34236
34237 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34238             Bruno Haible  <bruno@clisp.org>
34239
34240         * modules/cond (Dependencies): Add errno, time.
34241         * lib/glthread/cond.h: Include <time.h>.
34242         (gl_cond_define, gl_cond_define_initialized): Use the same definition
34243         across platforms.
34244
34245 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34246             Bruno Haible  <bruno@clisp.org>
34247
34248         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
34249
34250 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34251             Bruno Haible  <bruno@clisp.org>
34252
34253         * modules/tls-tests (Depends-on): Add thread, yield.
34254         (configure.ac): Remove all checks.
34255         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
34256         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
34257         gl_thread_self): Remove definitions. Include glthread/thread.h and
34258         glthread/yield.h instead.
34259         (test_tls): Pass an additional NULL argument to gl_thread_join.
34260
34261 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34262             Bruno Haible  <bruno@clisp.org>
34263
34264         * modules/lock-tests (Depends-on): Add thread, yield.
34265         (configure.ac): Remove all checks.
34266         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
34267         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
34268         gl_thread_self): Remove definitions. Include glthread/thread.h and
34269         glthread/yield.h instead.
34270         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
34271         additional NULL argument to gl_thread_join.
34272
34273 2008-09-30  Bruno Haible  <bruno@clisp.org>
34274
34275         Fix the Win32 implementation of the 'thread' module.
34276         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
34277         pointer type.
34278         (gl_thread_self): Invoke gl_thread_self_func.
34279         (gl_thread_self_func): New declaration.
34280         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
34281         (do_init_self_key, init_self_key): New functions.
34282         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
34283         Remove some fields.
34284         (running_threads, running_lock): Remove variables.
34285         (get_current_thread_handle): New function.
34286         (gl_thread_self_func, wrapper_func, glthread_create_func,
34287         glthread_join_func, gl_thread_exit_func): Largely rewritten and
34288         simplified.
34289
34290 2008-09-30  Bruno Haible  <bruno@clisp.org>
34291
34292         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
34293         files.
34294
34295 2008-09-30  Jim Meyering  <meyering@redhat.com>
34296
34297         fts.m4: correct the test for statfs.f_type
34298         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
34299         when checking for statfs.f_type.
34300
34301 2008-09-15  Simon Josefsson  <simon@josefsson.org>
34302
34303         tests: avoid some compiler warnings
34304         * tests/test-memchr.c (main): Pass NULL indirectly.
34305         * tests/test-getdate.c (main): Remove unused variable 'ret'.
34306
34307 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
34308
34309         getdate.y: disallow countable dayshifts like "4 yesterday ago"
34310         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
34311         exactly specified dayshifts.
34312         (dayshift): New rule.
34313         (rel): Add dayshift.
34314         (relative_time_table) [tomorrow, yesterday, today, now]:
34315         Use tDAY_SHIFT in place of tDAY_UNIT.
34316         * tests/test-getdate.c: Add tests for now-disallowed countable
34317         dayshifts, e.g., "4 yesterday ago".
34318
34319 2008-09-29  Bruno Haible  <bruno@clisp.org>
34320
34321         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
34322         * tests/test-posix_spawn1.in.sh: Renamed from
34323         tests/test-posix_spawn.in.sh.
34324         * tests/test-posix_spawn2.c: New file.
34325         * tests/test-posix_spawn2.in.sh: New file.
34326         * modules/posix_spawnp-tests (Files): Update.
34327         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
34328
34329 2008-09-29  Bruno Haible  <bruno@clisp.org>
34330
34331         Propagate effects of putenv/setenv/unsetenv to child processes.
34332         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
34333         * lib/pipe.c (create_pipe): Likewise.
34334
34335 2008-09-29  Bruno Haible  <bruno@clisp.org>
34336
34337         Enable use of shell scripts as executables in mingw.
34338         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
34339         run the program as a shell script.
34340         * lib/pipe.c (create_pipe): Likewise.
34341         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
34342         resulting array.
34343
34344 2008-09-29  Eric Blake  <ebb9@byu.net>
34345
34346         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
34347
34348 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
34349
34350         * doc/posix-functions/accept.texi: Update mingw problems.
34351         * doc/posix-functions/bind.texi: Update mingw problems.
34352         * doc/posix-functions/close.texi: Update mingw problems.
34353         * doc/posix-functions/connect.texi: Update mingw problems.
34354         * doc/posix-functions/getpeername.texi: Update mingw problems.
34355         * doc/posix-functions/getsockname.texi: Update mingw problems.
34356         * doc/posix-functions/getsockopt.texi: Update mingw problems.
34357         * doc/posix-functions/ioctl.texi: Update mingw problems.
34358         * doc/posix-functions/listen.texi: Update mingw problems.
34359         * doc/posix-functions/recv.texi: Update mingw problems.
34360         * doc/posix-functions/recvfrom.texi: Update mingw problems.
34361         * doc/posix-functions/select.texi: Update mingw problems.
34362         * doc/posix-functions/send.texi: Update mingw problems.
34363         * doc/posix-functions/sendto.texi: Update mingw problems.
34364         * doc/posix-functions/setsockopt.texi: Update mingw problems.
34365         * doc/posix-functions/socket.texi: Update mingw problems.
34366
34367 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
34368             Bruno Haible  <bruno@clisp.org>
34369
34370         * lib/sys_select.in.h: Include sys/time.h.
34371         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
34372         * modules/sys_select: Depend on sys_time.
34373         * tests/test-sys_select.c: Test that sys/select.h defines struct
34374         timeval fully.
34375
34376 2008-09-29  Bruno Haible  <bruno@clisp.org>
34377
34378         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
34379         * lib/sys_select.in.h: Likewise.
34380
34381 2008-09-29  Bruno Haible  <bruno@clisp.org>
34382
34383         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
34384
34385 2008-09-29  Bruno Haible  <bruno@clisp.org>
34386
34387         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
34388         Set LIBSOCKET instead of augmenting LIBS.
34389         * modules/sockets (Link): New section.
34390         * modules/sockets-tests (test_sockets_LDADD): New variable.
34391         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
34392         * modules/poll-tests (test_poll_LDADD): New variable.
34393         * NEWS: Document the change.
34394
34395 2008-09-29  Bruno Haible  <bruno@clisp.org>
34396
34397         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
34398         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
34399         ARPA_INET_H directly.
34400         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34401
34402 2008-09-28  Bruno Haible  <bruno@clisp.org>
34403
34404         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
34405         from gl_HEADER_SYS_SOCKET.
34406         (gl_HEADER_SYS_SOCKET): Invoke it.
34407         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34408
34409 2008-09-28  Bruno Haible  <bruno@clisp.org>
34410
34411         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
34412         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
34413         Needed on OSF/1 4.0.
34414
34415 2008-09-28  Bruno Haible  <bruno@clisp.org>
34416
34417         Override open more carefully.
34418         * lib/open.c (orig_open): New function.
34419         (rpl_open): Use orig_open instead of open.
34420         * lib/fcntl.in.h: Add special invocation convention.
34421         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
34422         (gl_FUNC_OPEN): Invoke it.
34423
34424         Override freopen more carefully.
34425         * lib/freopen.c (orig_freopen): New function.
34426         (rpl_freopen): Use orig_freopen instead of freopen.
34427         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
34428         (gl_FUNC_FREOPEN): Invoke it.
34429
34430         Override fopen more carefully.
34431         * lib/fopen.c (orig_fopen): New function.
34432         (rpl_fopen): Use orig_fopen instead of fopen.
34433         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
34434         (gl_FUNC_FOPEN): Invoke it.
34435         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
34436
34437 2008-09-28  Bruno Haible  <bruno@clisp.org>
34438
34439         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
34440         SIGPIPE.
34441
34442 2008-09-28  Bruno Haible  <bruno@clisp.org>
34443
34444         * tests/test-sigaction.c (handler, main): Disable the check whether
34445         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
34446         glibc systems with LinuxThreads.
34447
34448 2008-09-28  Bruno Haible  <bruno@clisp.org>
34449
34450         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
34451
34452         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
34453         with AIX xlc.
34454         * lib/fcntl.in.h (open): Likewise.
34455         Reported by Rainer Tammer <tammer@tammer.net>.
34456
34457 2008-09-28  Bruno Haible  <bruno@clisp.org>
34458
34459         * modules/posix_spawnp-tests: New file.
34460         * tests/test-posix_spawn.c: New file.
34461         * tests/test-posix_spawn.in.sh: New file.
34462
34463         New module 'posix_spawnp'.
34464         * modules/posix_spawnp: New file.
34465         * lib/spawnp.c: New file, from GNU libc with modifications.
34466         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
34467
34468         New module 'posix_spawn'.
34469         * modules/posix_spawn: New file.
34470         * lib/spawn.c: New file, from GNU libc with modifications.
34471         * doc/posix-functions/posix_spawn.texi: Mention the new module.
34472
34473         New module 'posix_spawnattr_destroy'.
34474         * modules/posix_spawnattr_destroy: New file.
34475         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
34476         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
34477         module.
34478
34479         New module 'posix_spawnattr_setsigmask'.
34480         * modules/posix_spawnattr_setsigmask: New file.
34481         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
34482         modifications.
34483         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
34484         new module.
34485
34486         New module 'posix_spawnattr_getsigmask'.
34487         * modules/posix_spawnattr_getsigmask: New file.
34488         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
34489         modifications.
34490         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
34491         new module.
34492
34493         New module 'posix_spawnattr_setsigdefault'.
34494         * modules/posix_spawnattr_setsigdefault: New file.
34495         * lib/spawnattr_setdefault.c: New file, from GNU libc with
34496         modifications.
34497         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
34498         new module.
34499
34500         New module 'posix_spawnattr_getsigdefault'.
34501         * modules/posix_spawnattr_getsigdefault: New file.
34502         * lib/spawnattr_getdefault.c: New file, from GNU libc with
34503         modifications.
34504         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
34505         new module.
34506
34507         New module 'posix_spawnattr_setschedpolicy'.
34508         * modules/posix_spawnattr_setschedpolicy: New file.
34509         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
34510         modifications.
34511         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
34512         new module.
34513
34514         New module 'posix_spawnattr_getschedpolicy'.
34515         * modules/posix_spawnattr_getschedpolicy: New file.
34516         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
34517         modifications.
34518         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
34519         new module.
34520
34521         New module 'posix_spawnattr_setschedparam'.
34522         * modules/posix_spawnattr_setschedparam: New file.
34523         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
34524         modifications.
34525         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
34526         new module.
34527
34528         New module 'posix_spawnattr_getschedparam'.
34529         * modules/posix_spawnattr_getschedparam: New file.
34530         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
34531         modifications.
34532         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
34533         new module.
34534
34535         New module 'posix_spawnattr_setpgroup'.
34536         * modules/posix_spawnattr_setpgroup: New file.
34537         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
34538         modifications.
34539         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
34540         module.
34541
34542         New module 'posix_spawnattr_getpgroup'.
34543         * modules/posix_spawnattr_getpgroup: New file.
34544         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
34545         modifications.
34546         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
34547         module.
34548
34549         New module 'posix_spawnattr_setflags'.
34550         * modules/posix_spawnattr_setflags: New file.
34551         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
34552         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
34553         module.
34554
34555         New module 'posix_spawnattr_getflags'.
34556         * modules/posix_spawnattr_getflags: New file.
34557         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
34558         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
34559         module.
34560
34561         New module 'posix_spawnattr_init'.
34562         * modules/posix_spawnattr_init: New file.
34563         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
34564         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
34565         module.
34566
34567         New module 'posix_spawn_file_actions_destroy'.
34568         * modules/posix_spawn_file_actions_destroy: New file.
34569         * lib/spawn_faction_destroy.c: New file, from GNU libc with
34570         modifications.
34571         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
34572         the new module.
34573
34574         New module 'posix_spawn_file_actions_addopen'.
34575         * modules/posix_spawn_file_actions_addopen: New file.
34576         * lib/spawn_faction_addopen.c: New file, from GNU libc with
34577         modifications.
34578         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
34579         the new module.
34580
34581         New module 'posix_spawn_file_actions_adddup2'.
34582         * modules/posix_spawn_file_actions_adddup2: New file.
34583         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
34584         modifications.
34585         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
34586         the new module.
34587
34588         New module 'posix_spawn_file_actions_addclose'.
34589         * modules/posix_spawn_file_actions_addclose: New file.
34590         * lib/spawn_faction_addclose.c: New file, from GNU libc with
34591         modifications.
34592         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
34593         the new module.
34594
34595         New module 'posix_spawn_file_actions_init'.
34596         * modules/posix_spawn_file_actions_init: New file.
34597         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
34598         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
34599         new module.
34600
34601         New module 'posix_spawn-internal'.
34602         * modules/posix_spawn-internal: New file.
34603         * lib/spawn_int.h: New file, from GNU libc with modifications.
34604         * lib/spawni.c: New file, from GNU libc with modifications.
34605         * m4/posix_spawn.m4: New file.
34606
34607         New module 'spawn'.
34608         * modules/spawn: New file.
34609         * lib/spawn.in.h: New file, from GNU libc with modifications.
34610         * m4/spawn_h.m4: New file.
34611         * doc/posix-headers/spawn.texi: Mention the new module.
34612
34613 2008-09-28  Bruno Haible  <bruno@clisp.org>
34614
34615         * modules/sched-tests: New file.
34616         * tests/test-sched.c: New file.
34617
34618         New module 'sched'.
34619         * modules/sched: New file.
34620         * lib/sched.in.h: New file.
34621         * m4/sched_h.m4: New file.
34622         * doc/posix-headers/sched.texi: Mention the new module.
34623
34624 2008-09-27  Eric Blake  <ebb9@byu.net>
34625
34626         Fix previous patch, and tweak references to $0.
34627         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
34628         (func_version, func_gnulib_dir): Don't call this program
34629         gnulib-tool.
34630         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
34631         with using $0 in function.
34632         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
34633         (func_fatal_error): Reuse the name the user invoked us with.
34634
34635 2008-09-27  Bruno Haible  <bruno@clisp.org>
34636
34637         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
34638         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
34639         (gl_ICONV_H): Not here.
34640         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
34641         instead of assigning ICONV_H directly.
34642
34643         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
34644         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
34645         WCHAR_H directly.
34646
34647 2008-09-27  Bruno Haible  <bruno@clisp.org>
34648
34649         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
34650         * modules/arpa_inet (Depends-on): Add link-warning.
34651         (Makefile.am): Insert the definition of GL_LINK-WARNING.
34652         * modules/unistd (Makefile.am): Likewise.
34653
34654 2008-09-26  Bruno Haible  <bruno@clisp.org>
34655
34656         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
34657         variables.
34658         (func_version): Essentially copied from gnulib-tool.
34659         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
34660         func_readlink): Copied from gnulib-tool.
34661
34662 2008-09-26  Bruno Haible  <bruno@clisp.org>
34663
34664         * gnulib-tool (func_version): Change directory to $gnulib_dir before
34665         invoking git-version-gen.
34666
34667 2008-09-26  Bruno Haible  <bruno@clisp.org>
34668
34669         * posix-modules: Update to directory names changed on 2008-01-19.
34670         Remove commas in output before splitting into words. No more need to
34671         avoid 'ftruncate' since 2007-02-19.
34672
34673 2008-09-26  Bruno Haible  <bruno@clisp.org>
34674
34675         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
34676
34677 2008-09-26  Bruno Haible  <bruno@clisp.org>
34678
34679         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
34680         * modules/fwriteerror (Depends-on): Add errno.
34681
34682 2008-09-26  Bruno Haible  <bruno@clisp.org>
34683
34684         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
34685         * tests/test-vc-list-files-cvs.sh: Likewise.
34686
34687 2008-09-26  Bruno Haible  <bruno@clisp.org>
34688
34689         * doc/posix-headers/sys_resource.texi: Reorder items.
34690
34691 2008-09-26  Jim Meyering  <meyering@redhat.com>
34692
34693         fts: tweak inode comparison function
34694         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
34695         inode numbers, as documented.
34696
34697         fts: sort dirent entries on inode number before traversing
34698         This avoids a quadratic, seek-related performance penalty when
34699         operating on a directory containing many entries (measurable at 10k;
34700         3.5 hours at 2 million entries with a cold cache) on certain types
34701         of file systems, including ext3 and ext4, but not tmpfs.
34702         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
34703         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
34704         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
34705         (fs_handles_readdir_ordered_dirents_efficiently): New function.
34706         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
34707         (fts_build): Set the stat.st_ino member from D_INO.
34708         If it is likely to be useful, sort dirent entries on inode number.
34709
34710         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
34711         and the struct statfs.f_type member.
34712         * modules/fts (Depends-on): Add d-ino.
34713
34714 2008-09-26  Bruno Haible  <bruno@clisp.org>
34715
34716         * modules/sigpipe-die (Depends-on): Add sigpipe.
34717
34718         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
34719         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
34720         and GNULIB_STDIO_H_SIGPIPE are set.
34721         * lib/stdio-write.c: New file.
34722         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
34723         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
34724         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
34725         REPLACE_STDIO_WRITE_FUNCS.
34726         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
34727         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
34728         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
34729         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
34730         * modules/stdio (Files): Add lib/stdio-write.c.
34731         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
34732         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
34733         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
34734         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
34735         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
34736         REPLACE_FPRINTF_POSIX.
34737         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
34738         REPLACE_PRINTF_POSIX.
34739         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
34740         REPLACE_VFPRINTF_POSIX.
34741         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
34742         REPLACE_VPRINTF_POSIX.
34743         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
34744         SIGPIPE issue.
34745         * doc/posix-functions/fputc.texi: Likewise.
34746         * doc/posix-functions/fputs.texi: Likewise.
34747         * doc/posix-functions/fwrite.texi: Likewise.
34748         * doc/posix-functions/printf.texi: Likewise.
34749         * doc/posix-functions/putc.texi: Likewise.
34750         * doc/posix-functions/putchar.texi: Likewise.
34751         * doc/posix-functions/puts.texi: Likewise.
34752         * doc/posix-functions/vfprintf.texi: Likewise.
34753         * doc/posix-functions/vprintf.texi: Likewise.
34754
34755         * modules/safe-write (Depends-on): Add write.
34756
34757         * modules/sigpipe-tests: New file.
34758         * tests/test-sigpipe.c: New file.
34759         * tests/test-sigpipe.sh: New file.
34760
34761         * modules/write: New file.
34762         * lib/unistd.in.h: Include <sys/types.h>.
34763         (write): New declaration.
34764         * lib/write.c: New file.
34765         * m4/write.m4: New file.
34766         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34767         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
34768         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
34769         GNULIB_WRITE, REPLACE_WRITE.
34770         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
34771         and the SIGPIPE issue.
34772
34773         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
34774         (raise): New declaration.
34775         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
34776         (ext_signal): New function.
34777         (rpl_raise): New function.
34778         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
34779         GNULIB_SIGNAL_H_SIGPIPE.
34780         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
34781         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
34782
34783         * modules/sigpipe: New file.
34784         * m4/sigpipe.m4: New file.
34785
34786 2008-09-25  Derek Price  <derek@ximbiot.com>
34787             Bruno Haible  <bruno@clisp.org>
34788
34789         * gnulib-tool (func_import): Report all license incompatibilities, not
34790         just the first one.
34791
34792 2008-09-25  Bruno Haible  <bruno@clisp.org>
34793
34794         * gnulib-tool (func_import): When computing the edits, consider not
34795         only the Makefile.ams that exist but also those that will be generated.
34796
34797 2008-09-25  Simon Josefsson  <simon@josefsson.org>
34798
34799         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
34800         fixes gnulib-tool --test warning about duplicate dependency.
34801
34802 2008-09-25  Bruno Haible  <bruno@clisp.org>
34803
34804         * gnulib-tool: Don't ask the user to perform edits in the generated
34805         Makefile.ams.
34806         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
34807         apply to the Makefile.am being generated.
34808         (func_emit_tests_Makefile_am): Execute edits that apply to the
34809         Makefile.am being generated.
34810         (func_import): Setup list of Makefile.am edits before emitting the
34811         Makefile.ams, not at the end.
34812         (func_create_testdir): Update.
34813         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34814
34815 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34816
34817         * gnulib-tool (func_import): Store the --tests-base option in the
34818         comment in gnulib-cache.m4.
34819
34820 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
34821
34822         * NEWS: Document increased portability that sys_select now provides.
34823
34824         * lib/sys_select.in.h: Install select wrapper.
34825         * lib/sys_socket.in.h: Use more descriptive name when there is no
34826         select wrapper.
34827         * lib/winsock-select.c: New.
34828         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
34829         Require gl_HEADER_SYS_SOCKET.
34830         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
34831         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
34832         * tests/test-sys_select.c: Add functional tests.
34833
34834 2008-09-24  Eric Blake  <ebb9@byu.net>
34835
34836         open, fopen: close fd leak in last patch
34837         * lib/open.c (rpl_open): Close fd before returning error.
34838         * lib/fopen.c (rpl_fopen): Close fd before returning error.
34839         * doc/posix-functions/open.texi (open): Document that Irix also
34840         has the bug.
34841         * doc/posix-functions/fopen.texi (fopen): Likewise.
34842         Reported by Paolo Bonzini.
34843
34844 2008-09-24  Bruno Haible  <bruno@clisp.org>
34845
34846         Ensure that a filename ending in a slash cannot be used to access a
34847         non-directory.
34848         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
34849         to check whether it's really a directory.
34850         * lib/fopen.c: Include fcntl.h, unistd.h.
34851         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
34852         and fdopen().
34853         * modules/fopen (Depends-on): Add unistd.
34854         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
34855         * tests/test-fopen.c (main): Likewise.
34856         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
34857         * doc/posix-functions/fopen.texi: Likewise.
34858         Reported by Eric Blake.
34859
34860 2008-09-23  Eric Blake  <ebb9@byu.net>
34861
34862         c-stack: avoid compiler optimizations when provoking overflow
34863         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
34864         recursion harder to optimize, to ensure a stack overflow occurs.
34865         * tests/test-c-stack.c (recurse): Likewise.
34866         Borrowed from libsigsegv.
34867
34868         c-stack: work around Irix sigaltstack bug
34869         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
34870         whether sigaltstack uses wrong end of stack_t (copied in part from
34871         libsigsegv).
34872         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
34873         Irix bug, without requiring an over-allocation.
34874         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
34875         bug.
34876
34877         fopen: document mingw bug on directories
34878         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
34879         not allowing a stream visiting a directory, even though reading
34880         from such a stream is not portable.
34881
34882 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
34883
34884         * lib/poll.c: Rewrite.
34885         * modules/poll: Depend on alloca.
34886
34887 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
34888
34889         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
34890         instead define prototypes for a full set of wrappers.  Ensure
34891         that Cygwin does not use the compatibility code, which is only
34892         for MinGW.
34893         * lib/winsock.c: New.
34894         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
34895         * modules/sys_socket: Add lib/winsock.c.
34896
34897         * modules/poll-tests: Add errno and perror.
34898         * tests/test-poll.c: Use ioctl, not ioctlsocket.
34899
34900 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
34901
34902         * tests/test-poll.c: Downgrade minimum needed Winsock version.
34903
34904 2008-09-23  Bruno Haible  <bruno@clisp.org>
34905
34906         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
34907         * doc/glibc-functions/*: Likewise.
34908
34909 2008-09-23  Simon Josefsson  <simon@josefsson.org>
34910
34911         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
34912         success.
34913
34914 2008-09-22  Eric Blake  <ebb9@byu.net>
34915             Bruno Haible  <bruno@clisp.org>
34916
34917         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
34918         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
34919         supply %A but mishandle pseudo-NaN.
34920         Reported by Simon Josefsson.
34921
34922 2008-09-21  Bruno Haible  <bruno@clisp.org>
34923
34924         * tests/test-lock.c (main): Tweak skip message.
34925         * tests/test-tls.c (main): Likewise.
34926
34927 2008-09-21  Bruno Haible  <bruno@clisp.org>
34928
34929         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
34930         whether 'struct sigaction' has sa_sigaction here...
34931         (gl_PREREQ_SIG_HANDLER_H): ... not here.
34932         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
34933
34934 2008-09-21  Bruno Haible  <bruno@clisp.org>
34935
34936         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
34937         section.
34938         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
34939         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
34940         the new section.
34941         (Support for obsolete systems lacking POSIX:2001): New section.
34942         (String handling <string.h>): Move strdup to the new section.
34943         Suggested by Simon Josefsson and Paolo Bonzini.
34944
34945 2008-09-21  Bruno Haible  <bruno@clisp.org>
34946
34947         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
34948         exponents in %e and %g results on 'long double'. Needed for mingw's
34949         improved *printf functions.
34950         * tests/test-vasprintf-posix.c (test_function): Likewise.
34951         * tests/test-snprintf-posix.h (test_function): Likewise.
34952         * tests/test-sprintf-posix.h (test_function): Likewise.
34953         Reported by Eric Blake.
34954
34955 2008-09-21  Bruno Haible  <bruno@clisp.org>
34956
34957         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
34958         * tests/test-sprintf-posix.h (test_function): Likewise.
34959
34960 2008-09-21  Bruno Haible  <bruno@clisp.org>
34961
34962         * modules/getpass (Depends-on): Add strdup-posix.
34963
34964         New module 'strdup-posix'.
34965         * modules/strdup-posix: New file.
34966         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
34967         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
34968         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34969         REPLACE_STRDUP.
34970         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
34971         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
34972         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34973         strdup-posix.
34974
34975         * modules/strdup (Depends-on): Remove malloc-posix.
34976
34977 2008-09-20  Bruno Haible  <bruno@clisp.org>
34978
34979         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
34980         Wildenhues.
34981
34982 2008-09-20  Bruno Haible  <bruno@clisp.org>
34983
34984         Ensure that wint_t gets defined on IRIX 5.3.
34985         * lib/wchar.in.h (wint_t): Define if not defined by the system.
34986         * lib/wctype.in.h (wint_t): Likewise.
34987         (__wctype_wint_t): Remove type.
34988         (isw*): Use wint_t instead of __wctype_wint_t.
34989         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
34990         * modules/wchar (Files): Add m4/wint_t.m4.
34991         (Makefile.am): Substitute HAVE_WINT_T.
34992         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
34993         * tests/test-wctype.c: Check that wint_t is defined.
34994         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
34995         * doc/posix-headers/wctype.texi: Likewise.
34996         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34997
34998 2008-09-18  Bruno Haible  <bruno@clisp.org>
34999
35000         * gnulib-tool (func_exit): Update comment.
35001
35002 2008-09-18  Simon Josefsson  <simon@josefsson.org>
35003
35004         * modules/getaddrinfo (Depends-on): Remove strdup, this module
35005         assumes strdup exists and does not depend on strdup to return
35006         ENOMEM on out of memory conditions.
35007
35008 2008-09-18  Bruno Haible  <bruno@clisp.org>
35009
35010         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
35011         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
35012         digits for the exponent.
35013
35014 2008-09-18  Jim Meyering  <meyering@redhat.com>
35015             Bruno Haible  <bruno@clisp.org>
35016
35017         * lib/vasnprintf.c (decimal_point_char): Define also if
35018         NEED_PRINTF_INFINITE_LONG_DOUBLE.
35019
35020 2008-09-16  Bruno Haible  <bruno@clisp.org>
35021         and Eric Blake  <ebb9@byu.net>
35022
35023         vasnprintf: support Irix 5.3
35024         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
35025         that mishandle long double infinity.
35026         Reported by Tom G. Christensen.
35027
35028 2008-09-16  Bruno Haible  <bruno@clisp.org>
35029
35030         * doc/glibc-functions/scandir.texi: Mention the function is missing on
35031         Solaris 9.
35032         * doc/glibc-functions/alphasort.texi: Likewise.
35033         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
35034
35035 2008-09-16  Jim Meyering  <meyering@redhat.com>
35036
35037         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
35038         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
35039         a umask modification leak out of a subshell.  Otherwise, the
35040         opensolaris /bin/sh would be accepted and thus cause unwarranted
35041         failures in the coreutils test suite.
35042
35043 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
35044
35045         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
35046         to succeed.
35047
35048 2008-09-16  Jim Meyering  <meyering@redhat.com>
35049
35050         avoid spurious test failure when library is built without ACL support
35051         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
35052         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
35053         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
35054         * tests/test-copy-acl.sh: Likewise.
35055
35056 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35057
35058         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
35059         based on character occurrence counts.
35060
35061 2008-09-15  Eric Blake  <ebb9@byu.net>
35062
35063         tests: avoid some compiler warnings
35064         * tests/test-memchr.c (main): Pass NULL indirectly.
35065         * tests/test-closein.c (main): Avoid unused variable.
35066
35067 2008-09-15  Bruno Haible  <bruno@clisp.org>
35068
35069         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
35070         are missing on OpenBSD 4.0 individually.
35071         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35072
35073 2008-09-15  Bruno Haible  <bruno@clisp.org>
35074
35075         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
35076         * doc/posix-functions/strerror.texi: Mention also Cygwin.
35077         * doc/posix-functions/perror.texi: Likewise.
35078         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
35079         is missing.
35080         Reported by Eric Blake.
35081
35082         * lib/errno.in.h: Use replacement values >= 2000.
35083         Reported by Eric Blake.
35084
35085 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35086
35087         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
35088         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
35089         limit.
35090         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
35091         compareseq was aborted.
35092
35093 2008-09-14  Bruno Haible  <bruno@clisp.org>
35094
35095         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
35096         yvec_edit_count.
35097         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
35098         (fstrcmp_bounded): Simplify result computation accordingly.
35099
35100 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35101
35102         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
35103         (fstrcmp): Define in terms of fstrcmp_bounded.
35104         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
35105         lower_bound argument.
35106         Return quickly if the result is certainly < lower_bound.
35107         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
35108
35109 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35110
35111         * lib/diffseq.h (EARLY_ABORT): New macro.
35112         (compareseq): Change return type to bool. Return true when EARLY_ABORT
35113         evaluates to true.
35114
35115 2008-09-14  Bruno Haible  <bruno@clisp.org>
35116
35117         * modules/perror-tests: New file.
35118         * tests/test-perror.sh: New file.
35119         * tests/test-perror.c: New file.
35120
35121         New module 'perror'.
35122         * lib/stdio.in.h (perror): New declaration.
35123         * lib/perror.c: New file.
35124         * m4/perror.m4: New file.
35125         * modules/perror: New file.
35126         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
35127         * doc/posix-functions/perror.texi: Mention the perror module.
35128         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
35129         REPLACE_PERROR.
35130         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
35131         REPLACE_PERROR.
35132
35133 2008-09-14  Bruno Haible  <bruno@clisp.org>
35134
35135         * modules/stdio (Makefile.am): Reorder to match the order in
35136         lib/stdio.in.h.
35137         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35138
35139 2008-09-13  Bruno Haible  <bruno@clisp.org>
35140
35141         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
35142
35143 2008-09-13  Bruno Haible  <bruno@clisp.org>
35144
35145         Extend strerror to cover the added errno values.
35146         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
35147         (rpl_strerror): Provide error messages for the added errno values and
35148         for the WSA* values.
35149         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
35150         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
35151         strerror.
35152         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
35153         * modules/strerror (Depends-on): Add errno.
35154         * doc/posix-functions/strerror.texi: Document the change.
35155         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
35156         and EOVERFLOW.
35157
35158 2008-09-13  Bruno Haible  <bruno@clisp.org>
35159
35160         * modules/EOVERFLOW: Remove file.
35161         * m4/eoverflow.m4: Remove file.
35162         * modules/EOVERFLOW-tests: Remove file.
35163         * tests/test-EOVERFLOW.c: Remove file.
35164         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
35165         * modules/ftell (Depends-on): Likewise.
35166         * modules/getdelim (Depends-on): Likewise.
35167         * modules/getugroups (Depends-on): Likewise.
35168         * modules/poll (Depends-on): Likewise.
35169         * modules/snprintf (Depends-on): Likewise.
35170         * modules/sprintf-posix (Depends-on): Likewise.
35171         * modules/vasnprintf (Depends-on): Likewise.
35172         * modules/vasprintf (Depends-on): Likewise.
35173         * modules/vfprintf-posix (Depends-on): Likewise.
35174         * modules/vsnprintf (Depends-on): Likewise.
35175         * modules/vsprintf-posix (Depends-on): Likewise.
35176         * modules/xvasprintf (Depends-on): Likewise.
35177         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35178         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
35179         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
35180         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
35181         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35182         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
35183         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
35184         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
35185         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35186         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
35187         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
35188         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
35189         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35190         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
35191         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
35192         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
35193         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35194         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
35195         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
35196         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
35197         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35198         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
35199         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
35200         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
35201         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
35202         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35203         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
35204         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
35205         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
35206         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
35207         * MODULES.html.sh: Remove EOVERFLOW.
35208         * NEWS: Mention the change.
35209
35210 2008-09-13  Bruno Haible  <bruno@clisp.org>
35211
35212         * modules/errno-tests: New file.
35213         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
35214
35215         * lib/errno.in.h: New file.
35216         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
35217         * modules/errno: New file.
35218         * doc/posix-headers/errno.texi: Update documentation.
35219         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
35220
35221 2008-09-13  Bruno Haible  <bruno@clisp.org>
35222
35223         * tests/test-poll.c: Use #if for native Windows, rather than testing
35224         __MSVCRT__.
35225
35226 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35227             Bruno Haible  <bruno@clisp.org>
35228
35229         * lib/glob.c: Don't include <pwd.h> on native Windows.
35230         (WINDOWS32): New macro.
35231         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
35232
35233 2008-09-13  Bruno Haible  <bruno@clisp.org>
35234
35235         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
35236         (ETIMEDOUT): Remove macro.
35237         (glthread_cond_timedwait_multithreaded): New declaration.
35238         (glthread_cond_timedwait): Use it.
35239         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
35240         (glthread_cond_timedwait_multithreaded): New function.
35241
35242 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
35243
35244         * modules/poll-tests: Do not check for io.h.
35245         * tests/test-poll.c: Check for __MSVCRT__ instead.
35246
35247 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
35248
35249         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
35250         * modules/poll-tests: Add inet_pton, stdbool, sockets.
35251         * tests/test-poll.c: Use them.  Use _pipe on Windows.
35252
35253 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
35254
35255         * modules/poll-tests: New.
35256         * tests/test-poll.c: New.
35257
35258 2008-09-12  Eric Blake  <ebb9@byu.net>
35259
35260         frexp: test for NetBSD failure on -0.0
35261         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
35262         not all, bugs from NetBSD 3.0 have been fixed.
35263         * doc/posix-functions/frexp.texi (frexp): Document bug.
35264         Reported by Thomas Klausner.
35265
35266         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
35267         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
35268         literal -0.0.
35269         Reported by Jonathan C. Patschke <jp@centtech.com>.
35270
35271 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35272
35273         * lib/glthread/cond.h: Use dummy implementation also if
35274         USE_WIN32_THREADS.
35275
35276 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35277
35278         * modules/fnmatch-posix (License): Change to LGPLv2+.
35279         * modules/fnmatch-gnu (License): Likewise.
35280
35281 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35282
35283         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
35284
35285 2008-09-11  Jim Meyering  <meyering@redhat.com>
35286
35287         * users.txt: Add gtk-vnc.
35288
35289 2008-09-08  Simon Josefsson  <simon@josefsson.org>
35290
35291         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
35292         rotate amounts.
35293
35294         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
35295         required for 16-bit and 8-bit rotates.
35296         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
35297         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
35298         UINT8_MAX instead of hard-coded constants.
35299         Suggested by Paul Eggert.
35300
35301 2008-09-07  Bruno Haible  <bruno@clisp.org>
35302
35303         * tests/test-striconveh.c (main): Check behaviour when converting from
35304         UTF-7.
35305
35306         Make striconveh work better with stateful encodings.
35307         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
35308         that iconv does not increment the inptr when returning -1/EINVAL.
35309
35310 2008-09-07  Bruno Haible  <bruno@clisp.org>
35311
35312         * build-aux/config.rpath: Update according to libtool-2.2.6.
35313         * build-aux/config.libpath: Likewise.
35314
35315 2008-09-06  Bruno Haible  <bruno@clisp.org>
35316
35317         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
35318         * lib/freadptr.c (freadptr): Likewise.
35319         * lib/freadseek.c (freadptrinc): Likewise.
35320         Reported by Simon Josefsson.
35321
35322 2008-09-06  Bruno Haible  <bruno@clisp.org>
35323
35324         * modules/freadptr (License): Change to LGPLv2+.
35325         * modules/freadseek (License): Likewise.
35326         Suggested by Eric Blake.
35327
35328         * modules/memchr2 (License): Change to LGPLv2+.
35329         Approved by Eric Blake.
35330
35331 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35332             Bruno Haible  <bruno@clisp.org>
35333
35334         Make gnulib-tool work with native 'sed' on AIX.
35335         * gnulib-tool (sed_noop): New variable.
35336         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
35337         func_add_or_update, func_create_testdir): Use it to initialize sed
35338         script variables.
35339         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35340
35341 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
35342             Bruno Haible  <bruno@clisp.org>
35343
35344         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
35345         also works after #include directives.
35346
35347 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
35348
35349         getdate.y: reject an out-of-range timezone value
35350         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
35351         the range [-24...+24].  When specified with only one or two digits,
35352         * tests/test-getdate.c: Tests for the fix.
35353         * doc/getdate.texi: Document this change.
35354
35355 2008-09-03  Bruno Haible  <bruno@clisp.org>
35356
35357         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
35358
35359 2008-09-02  Simon Josefsson  <simon@josefsson.org>
35360
35361         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
35362         <bruce.korb@gmail.com> with ideas from Ben Pfaff
35363         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
35364         Blake <ebb9@byu.net>.
35365
35366         * tests/test-bitrotate.c: Add more test vectors.
35367
35368 2008-09-02  Eric Blake  <ebb9@byu.net>
35369
35370         vasnprintf-posix: handle large precision via %.*d
35371         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
35372         when handling it ourselves.
35373         * tests/test-vasnprintf-posix.c (test_function): Add test.
35374         * tests/test-snprintf-posix.h (test_function): Likewise.
35375         * tests/test-sprintf-posix.h (test_function): Likewise.
35376         * tests/test-vasprintf-posix.c (test_function): Likewise.
35377         Reported by Alain Guibert.
35378
35379 2008-09-01  Eric Blake  <ebb9@byu.net>
35380
35381         c-stack: make configure-time check more robust
35382         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
35383         successful sigaction call.
35384         Reported by Tom G. Christensen.
35385
35386 2008-09-01  Bruno Haible  <bruno@clisp.org>
35387
35388         New module 'findprog-lgpl'.
35389         * modules/findprog-lgpl: New file.
35390         * lib/findprog-lgpl.c: New file.
35391         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
35392         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
35393         to decide whether to use strdup or xstrdup, concatenated_filename or
35394         xconcatenated_filename.
35395
35396 2008-09-01  Bruno Haible  <bruno@clisp.org>
35397
35398         Split module 'concat-filename' into 'concat-filename' (LGPL) and
35399         'xconcat-filename' (GPL).
35400         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
35401         (License): Change to LGPLv2+.
35402         * modules/xconcat-filename: New file.
35403         * lib/concat-filename.h (concatenated_filename): Change specification.
35404         (xconcatenated_filename): New declaration.
35405         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
35406         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
35407         memory situations.
35408         * lib/xconcat-filename.c: New file.
35409         * NEWS: Mention the change.
35410         * lib/findprog.c: Include concat-filename.h, not filename.h.
35411         (find_in_path): Use xconcatenated_filename instead of
35412         concatenated_filename.
35413         * lib/javacomp.c: Include concat-filename.h, not filename.h.
35414         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
35415         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
35416         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
35417         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
35418         instead of concatenated_filename.
35419         * lib/javaexec.c: Include concat-filename.h, not filename.h.
35420         (execute_java_class): Use xconcatenated_filename instead of
35421         concatenated_filename.
35422         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
35423         * modules/javacomp (Depends-on): Likewise.
35424         * modules/javaexec (Depends-on): Likewise.
35425
35426 2008-09-01  Bruno Haible  <bruno@clisp.org>
35427
35428         Split module 'filename' into 'filename' and 'concat-filename'.
35429         * modules/filename: Keep only lib/filename.h.
35430         (License): Change to LGPLv2+.
35431         * modules/concat-filename: New file, extracted from modules/filename.
35432         * lib/filename.h (concatenated_filename): Remove declaration.
35433         * lib/concat-filename.h: New file, extracted from lib/filename.h.
35434         * lib/concat-filename.c: Include concat-filename.h.
35435         * NEWS: Mention the change.
35436
35437 2008-09-01  Simon Josefsson  <simon@josefsson.org>
35438
35439         * lib/bitrotate.h (rotl8, rotr8): Add.
35440
35441         * modules/bitrotate (configure.ac): Need
35442         AC_REQUIRE([AC_C_INLINE]).
35443         (Description): Mention stdint.h.  Reported by Bruno Haible
35444         <bruno@clisp.org>.
35445
35446         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
35447         Paolo Bonzini <bonzini@gnu.org>.
35448
35449 2008-08-31  Bruno Haible  <bruno@clisp.org>
35450
35451         Assume Solaris specific bi-arch conventions on Solaris systems.
35452         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
35453         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
35454         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
35455         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
35456         like acl_libdirstem.
35457         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
35458         acl_libdirstem.
35459         * NEWS: Mention the change.
35460         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
35461
35462 2008-08-31  Jim Meyering  <meyering@redhat.com>
35463
35464         * lib/strftime.h: Add comments describing the two added arguments.
35465
35466         remove duplicate #include directives
35467         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
35468         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
35469
35470 2008-08-31  Bruno Haible  <bruno@clisp.org>
35471
35472         New module 'sigpipe-die'.
35473         * modules/sigpipe-die: New file.
35474         * lib/sigpipe-die.h: New file.
35475         * lib/sigpipe-die.c: New file.
35476         * MODULES.html.sh (Signal handling): Add sigpipe-die.
35477
35478 2008-08-31  Bruno Haible  <bruno@clisp.org>
35479
35480         Don't override previously installed signal handlers.
35481         * lib/fatal-signal.c (saved_sigactions): New variable.
35482         (uninstall_handlers): Reset the signal to the saved handler, not
35483         to SIG_DFL (except when ignored).
35484         (install_handlers): Save the previous handlers.
35485
35486 2008-08-30  Bruno Haible  <bruno@clisp.org>
35487
35488         * gnulib-tool (func_reset_sigpipe): New function.
35489         (func_get_automake_snippet, func_modules_transitive_closure,
35490         func_import): Invoke it before a join command that reads from stdin,
35491         to avoid "echo: write error: Broken pipe" error messages on stderr.
35492         Reported by Sam Steingold <sds@gnu.org>.
35493
35494 2008-08-30  Bruno Haible  <bruno@clisp.org>
35495
35496         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
35497         Code copied from m4/open.m4.
35498         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
35499         access and the filename ends in a slash. Code copied from lib/open.c.
35500         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
35501         * tests/test-fopen.c (main): Check against bug with trailing slash.
35502
35503 2008-08-29  Bruno Haible  <bruno@clisp.org>
35504
35505         Avoid some "gcc -pedantic" warnings.
35506         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
35507         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
35508         * lib/dirent.in.h: Likewise.
35509         * lib/fcntl.in.h: Likewise.
35510         * lib/float.in.h: Likewise.
35511         * lib/iconv.in.h: Likewise.
35512         * lib/inttypes.in.h: Likewise.
35513         * lib/locale.in.h: Likewise.
35514         * lib/math.in.h: Likewise.
35515         * lib/netinet_in.in.h: Likewise.
35516         * lib/search.in.h: Likewise.
35517         * lib/signal.in.h: Likewise.
35518         * lib/stdarg.in.h: Likewise.
35519         * lib/stdint.in.h: Likewise.
35520         * lib/stdio.in.h: Likewise.
35521         * lib/stdlib.in.h: Likewise.
35522         * lib/string.in.h: Likewise.
35523         * lib/strings.in.h: Likewise.
35524         * lib/sys_select.in.h: Likewise.
35525         * lib/sys_socket.in.h: Likewise.
35526         * lib/sys_stat.in.h: Likewise.
35527         * lib/sys_time.in.h: Likewise.
35528         * lib/sysexits.in.h: Likewise.
35529         * lib/time.in.h: Likewise.
35530         * lib/unistd.in.h: Likewise.
35531         * lib/wchar.in.h: Likewise.
35532         * lib/wctype.in.h: Likewise.
35533         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
35534         * modules/fchdir (Makefile.am): Likewise.
35535         * modules/fcntl (Makefile.am): Likewise.
35536         * modules/float (Makefile.am): Likewise.
35537         * modules/iconv_open (Makefile.am): Likewise.
35538         * modules/inttypes (Makefile.am): Likewise.
35539         * modules/locale (Makefile.am): Likewise.
35540         * modules/math (Makefile.am): Likewise.
35541         * modules/netinet_in (Makefile.am): Likewise.
35542         * modules/search (Makefile.am): Likewise.
35543         * modules/signal (Makefile.am): Likewise.
35544         * modules/stdarg (Makefile.am): Likewise.
35545         * modules/stdint (Makefile.am): Likewise.
35546         * modules/stdio (Makefile.am): Likewise.
35547         * modules/stdlib (Makefile.am): Likewise.
35548         * modules/string (Makefile.am): Likewise.
35549         * modules/strings (Makefile.am): Likewise.
35550         * modules/sys_select (Makefile.am): Likewise.
35551         * modules/sys_socket (Makefile.am): Likewise.
35552         * modules/sys_stat (Makefile.am): Likewise.
35553         * modules/sys_time (Makefile.am): Likewise.
35554         * modules/sysexits (Makefile.am): Likewise.
35555         * modules/time (Makefile.am): Likewise.
35556         * modules/unistd (Makefile.am): Likewise.
35557         * modules/wchar (Makefile.am): Likewise.
35558         * modules/wctype (Makefile.am): Likewise.
35559         Reported by Reuben Thomas <rrt@sc3d.org>.
35560
35561 2008-08-29  Bruno Haible  <bruno@clisp.org>
35562
35563         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
35564         any more.
35565
35566 2008-08-29  Simon Josefsson  <simon@josefsson.org>
35567
35568         * MODULES.html.sh (Misc): Add bitrotate.
35569
35570         * modules/bitrotate: New file.
35571
35572         * lib/bitrotate.h: New file.
35573
35574         * modules/bitrotate-tests: New file.
35575
35576         * tests/test-bitrotate.c: New file.
35577
35578         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
35579         on the bitrotate module.
35580
35581         * lib/arctwo.c: Use new bitrotate module.
35582
35583 2008-08-29  Jim Meyering  <meyering@redhat.com>
35584
35585         bootstrap: merge changes from coreutils
35586         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
35587         of copied files.  Remove a kludge, now that this is fixed.
35588         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
35589         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
35590         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
35591
35592 2008-08-29  Bruno Haible  <bruno@clisp.org>
35593
35594         * MODULES.html.sh: Remove --cvs-urls option.
35595
35596 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
35597
35598         maint.mk: adjust to file name change
35599         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
35600
35601 2008-08-28  Jim Meyering  <meyering@redhat.com>
35602
35603         * modules/getndelim2 (License): Relicense to LGPLv2+.
35604         Approved by Richard Stallman for the version of 1995, and by
35605         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
35606
35607 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
35608
35609         * lib/getdelim.c (flockfile, funlockfile): Make all of them
35610         dummy if one is not available.  Do not touch them if
35611         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
35612         (getc_maybe_unlocked): New.
35613         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
35614
35615 2008-08-26  Eric Blake  <ebb9@byu.net>
35616
35617         doc/INSTALL: resync from autoconf
35618         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
35619         (INSTALL_PRELUDE): Delete; this is done more efficiently by
35620         moving...
35621         * install.texi [!autoconf]: ...here.  Resync from autoconf.
35622         * INSTALL: Regenerate.
35623         * INSTALL.ISO: New file.
35624         * INSTALL.UTF-8: Likewise.
35625
35626 2008-08-26  Jim Meyering  <meyering@redhat.com>
35627
35628         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
35629         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
35630         these definitions conditional, so that they may be overridden, too.
35631
35632 2008-08-26  Bruno Haible  <bruno@clisp.org>
35633
35634         Generate INSTALL file variants with prettier quotes.
35635         * doc/Makefile (INSTALL_PRELUDE): New macro.
35636         (INSTALL): Use it.
35637         (INSTALL.ISO, INSTALL.UTF-8): New rules.
35638
35639 2008-08-26  Bruno Haible  <bruno@clisp.org>
35640
35641         Run makeinfo in an English locale.
35642         * doc/Makefile (MAKEINFO): New variable.
35643
35644 2008-08-26  Bruno Haible  <bruno@clisp.org>
35645
35646         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
35647         Suggested by Eric Blake.
35648
35649 2008-08-25  Bruno Haible  <bruno@clisp.org>
35650
35651         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
35652
35653 2008-08-25  Eric Blake  <ebb9@byu.net>
35654
35655         c-stack: test that stack overflow can be caught
35656         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
35657         that platform allows handling stack overflow; at least OS/2 EMX
35658         has sigaltstack, but crashes before transferring control to
35659         handler on stack overflow.
35660         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
35661         check for HAVE_STACK_OVERFLOW_HANDLING.
35662         Reported by Elbert Pol.
35663
35664 2008-08-25  Bruno Haible  <bruno@clisp.org>
35665
35666         * doc/posix-functions/strftime.texi: Fix description of strftime
35667         module.
35668
35669 2008-08-24  Bruno Haible  <bruno@clisp.org>
35670
35671         * tests/uniwidth/test-uc_width2.c: New file.
35672         * tests/uniwidth/test-uc_width2.sh: New file.
35673         * modules/uniwidth/width-tests (Files): Add the new files.
35674         (TESTS): Add uniwidth/test-uc_width2.sh.
35675         (TESTS_ENVIRONMENT): New variable.
35676         (check_PROGRAMS): Add test-uc_width2.
35677         (test_uc_width2_SOURCES): New variable.
35678
35679         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
35680         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
35681         not 0x00AB.
35682         Reported by Alexander V. Lukyanov <lav@netis.ru>.
35683
35684 2008-08-22  Eric Blake  <ebb9@byu.net>
35685
35686         test-lock, test-tls: mention why a test is skipped
35687         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
35688         skipped.
35689         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
35690
35691         count-one-bits: relax license
35692         * modules/count-one-bits (License): Relicense to LGPLv2+.
35693         Suggested by Ludovic Courtès, approved by Ben Pfaff.
35694
35695 2008-08-22  Andreas Schwab  <schwab@suse.de>
35696
35697         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
35698         Remove spurious space in assignment.
35699
35700 2008-08-21  Simon Josefsson  <simon@josefsson.org>
35701
35702         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
35703         Paul Eggert <eggert@CS.UCLA.EDU>.
35704
35705 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
35706
35707         * modules/gettext: Add m4/threadlib.m4.
35708
35709 2008-08-19  Eric Blake  <ebb9@byu.net>
35710
35711         test-c-stack: fix compilation failure on FreeBSD 5.0
35712         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
35713         headers before <sys/resource.h>.
35714         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
35715         the bug.
35716         Reported by Nelson H. F. Beebe.
35717
35718         strverscmp: migrate from "strverscmp.h" to <string.h>
35719         * modules/string (Makefile.am): Add new hooks.
35720         * modules/strverscmp (Files): Remove strverscmp.h.
35721         (Depends-on): Add string.
35722         (configure.ac): Add indicator.
35723         (Include): Mention new header.
35724         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
35725         defaults.
35726         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
35727         results.
35728         * lib/strverscmp.h: Delete.
35729         * lib/string.in.h (strverscmp): Provide declaration, when needed.
35730         * tests/test-strverscmp.c (includes): Adjust client.
35731         * lib/check-version.c (includes): Likewise.
35732         * NEWS: Document the change.
35733
35734         strverscmp: add unit test
35735         * modules/strverscmp-tests: New file.
35736         * tests/test-strverscmp.c: Likewise.
35737
35738 2008-08-19  Simon Josefsson  <simon@josefsson.org>
35739
35740         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
35741         regarding Windows crypto stuff, from Mono.
35742
35743 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
35744
35745         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
35746         if present, for intel RND.  Return error on failures.
35747
35748 2008-08-18  Ben Pfaff  <blp@gnu.org>
35749
35750         gitlog-to-changelog: give better diagnostic for failed pipe-open
35751         * build-aux/gitlog-to-changelog: Improve error message: suggest
35752         that the version of Git may be too old.
35753
35754 2008-08-18  Simon Josefsson  <simon@josefsson.org>
35755
35756         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
35757         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
35758
35759 2008-08-18  Bruno Haible  <bruno@clisp.org>
35760
35761         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
35762         pthread_in_use().
35763
35764 2008-08-18  Bruno Haible  <bruno@clisp.org>
35765
35766         * lib/glthread/threadlib.c: Include <pthread.h>.
35767
35768 2008-08-18  Bruno Haible  <bruno@clisp.org>
35769
35770         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
35771         glthread_recursive_lock_* macros.
35772         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
35773         Fix syntax error.
35774
35775 2008-08-18  Bruno Haible  <bruno@clisp.org>
35776
35777         * lib/glthread/thread.c: Avoid forcing a context switch right after
35778         thread creation.
35779
35780 2008-08-17  Bruno Haible  <bruno@clisp.org>
35781
35782         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
35783         * lib/glthread/thread.h: Provide Win32 specific implementation.
35784         * modules/thread (Files): Add lib/glthread/thread.c.
35785         (Depends-on): Add lock.
35786         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
35787
35788 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35789
35790         New module 'yield'.
35791         * modules/yield: New file.
35792         * lib/glthread/yield.h: New file.
35793         * m4/yield.m4: New file.
35794         * MODULES.html.sh (Multithreading): Add yield.
35795
35796 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35797
35798         New module 'thread'.
35799         * modules/thread: New file.
35800         * lib/glthread/thread.h: New file.
35801         * m4/thread.m4: New file.
35802         * MODULES.html.sh (Multithreading): Add thread.
35803
35804 2008-08-17  Bruno Haible  <bruno@clisp.org>
35805
35806         * lib/glthread/lock.h: Include <stdlib.h> always.
35807         * lib/glthread/tls.h: Likewise.
35808         * lib/glthread/cond.h: Likewise.
35809
35810 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35811
35812         New module 'cond'.
35813         * modules/cond: New file.
35814         * lib/glthread/cond.h: New file.
35815         * lib/glthread/cond.c: New file.
35816         * m4/cond.m4: New file.
35817         * MODULES.html.sh (Multithreading): Add cond.
35818
35819 2008-08-16  Eric Blake  <ebb9@byu.net>
35820
35821         c-stack: fix regression on Irix 5.3 from 2008-06-21
35822         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
35823         sa_sigaction...
35824         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
35825         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
35826         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
35827         * modules/signal (Makefile.am): Use the value.
35828         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
35829         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
35830         * doc/posix-headers/signal.texi (signal.h): Document this
35831         portability issue.
35832         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
35833         Reported by Tom G. Christensen.
35834
35835 2008-08-17  Bruno Haible  <bruno@clisp.org>
35836
35837         New module 'threadlib'.
35838         * modules/threadlib: New file.
35839         * lib/glthread/threadlib.c: New file, extracted from
35840         lib/glthread/lock.c.
35841         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
35842         functions.
35843         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
35844         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
35845         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
35846         macros.
35847         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
35848         (gl_DISABLE_THREADS): Remove macro.
35849         * modules/lock (Files): Remove build-aux/config.rpath.
35850         (Depends-on): Remove havelib. Add threadlib.
35851         (configure.ac-early): Remove section.
35852         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
35853         * modules/tls (Depends-on): Remove lock. Add threadlib.
35854         (Link): New section, copied from threadlib.
35855         * MODULES.html.sh (Multithreading): Add threadlib.
35856
35857 2008-08-14  Bruno Haible  <bruno@clisp.org>
35858
35859         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
35860         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
35861         glthread_rwlock_unlock, glthread_rwlock_destroy,
35862         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
35863         glthread_recursive_lock_destroy): Define as macros always.
35864         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
35865         glthread_lock_lock.
35866         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
35867         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
35868         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
35869         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
35870         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
35871         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
35872         (glthread_recursive_lock_lock_func): Renamed from
35873         glthread_recursive_lock_lock.
35874         (glthread_recursive_lock_unlock_func): Renamed from
35875         glthread_recursive_lock_unlock.
35876         (glthread_recursive_lock_destroy_func): Renamed from
35877         glthread_recursive_lock_destroy.
35878
35879 2008-08-14  Bruno Haible  <bruno@clisp.org>
35880
35881         * lib/glthread/lock.h: Renamed from lib/lock.h.
35882         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
35883         * lib/glthread/tls.h: Renamed from lib/tls.h.
35884         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
35885         * lib/fstrcmp.c: Update includes.
35886         * lib/strsignal.c: Update includes.
35887         * modules/lock (Files, Makefile.am): Update.
35888         (Include): Change to "glthread/lock.h".
35889         * modules/tls (Files, Makefile.am): Update.
35890         (Include): Change to "glthread/tls.h".
35891         * tests/test-lock.c: Update includes.
35892         * tests/test-tls.c: Update includes.
35893         * NEWS: Mention the renamed header files.
35894
35895 2008-08-11  Jim Meyering  <meyering@redhat.com>
35896
35897         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
35898
35899 2008-08-11  Eric Blake  <ebb9@byu.net>
35900
35901         test-c-stack: avoid C99-ism
35902         * tests/test-c-stack.c (main): Fix whitespace, move declaration
35903         before statement.
35904         Reported by Alain Guibert.
35905
35906 2008-08-10  Jim Meyering  <meyering@redhat.com>
35907
35908         ensure that return value of uinttostr et al are not ignored
35909         * lib/inttostr.h (__GNUC_PREREQ): Define.
35910         (__attribute_warn_unused_result__): Define.
35911         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
35912
35913 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
35914
35915         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
35916         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
35917
35918 2008-08-07  Jim Meyering  <meyering@redhat.com>
35919
35920         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
35921
35922         * modules/mkstemp (License): Relicense under LGPLv2+.
35923         * modules/tempname (License): Likewise.
35924
35925 2008-08-06  Bruno Haible  <bruno@clisp.org>
35926
35927         * lib/poll.c (poll): Further micro-optimization.
35928
35929 2008-08-06  Jim Meyering  <meyering@redhat.com>
35930
35931         inet_pton.c: use locale-independent tolower
35932         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
35933         (inet_pton6): Use c_tolower rather than tolower.
35934         * modules/inet_pton (Depends-on): Add c-ctype.
35935
35936 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
35937
35938         * lib/poll.c (poll): Avoid division when timeout is 0, cache
35939         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
35940
35941 2008-08-06  Jim Meyering  <meyering@redhat.com>
35942
35943         * modules/inet_pton (License): Relicense under LGPLv2+.
35944
35945 2008-08-03  Bruno Haible  <bruno@clisp.org>
35946
35947         Additional non-aborting API for lock and tls.
35948         * lib/lock.h: Include <errno.h>.
35949         (glthread_lock_init): New macro/function.
35950         (gl_lock_init): Define as wrapper around glthread_lock_init.
35951         (glthread_lock_lock): New macro/function.
35952         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
35953         (glthread_lock_unlock): New macro/function.
35954         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
35955         (glthread_lock_destroy): New macro/function.
35956         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
35957         (glthread_rwlock_init): New macro/function.
35958         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
35959         (glthread_rwlock_rdlock): New macro/function.
35960         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
35961         (glthread_rwlock_wrlock): New macro/function.
35962         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
35963         (glthread_rwlock_unlock): New macro/function.
35964         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
35965         (glthread_rwlock_destroy): New macro/function.
35966         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
35967         (glthread_recursive_lock_init): New macro/function.
35968         (gl_recursive_lock_init): Define as wrapper around
35969         glthread_recursive_lock_init.
35970         (glthread_recursive_lock_lock): New macro/function.
35971         (gl_recursive_lock_lock): Define as wrapper around
35972         glthread_recursive_lock_lock.
35973         (glthread_recursive_lock_unlock): New macro/function.
35974         (gl_recursive_lock_unlock): Define as wrapper around
35975         glthread_recursive_lock_unlock.
35976         (glthread_recursive_lock_destroy): New macro/function.
35977         (gl_recursive_lock_destroy): Define as wrapper around
35978         glthread_recursive_lock_destroy.
35979         (glthread_once): New macro/function.
35980         (gl_once): Define as wrapper around glthread_once.
35981         Update function declarations.
35982         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
35983         glthread_rwlock_init. Return error code.
35984         (glthread_rwlock_rdlock_multithreaded): Renamed from
35985         glthread_rwlock_rdlock. Return error code.
35986         (glthread_rwlock_wrlock_multithreaded): Renamed from
35987         glthread_rwlock_wrlock. Return error code.
35988         (glthread_rwlock_unlock_multithreaded): Renamed from
35989         glthread_rwlock_unlock. Return error code.
35990         (glthread_rwlock_destroy_multithreaded): Renamed from
35991         glthread_rwlock_destroy. Return error code.
35992         (glthread_recursive_lock_init_multithreaded): Renamed from
35993         glthread_recursive_lock_init. Return error code.
35994         (glthread_recursive_lock_lock_multithreaded): Renamed from
35995         glthread_recursive_lock_lock. Return error code.
35996         (glthread_recursive_lock_unlock_multithreaded): Renamed from
35997         glthread_recursive_lock_unlock. Return error code.
35998         (glthread_recursive_lock_destroy_multithreaded): Renamed from
35999         glthread_recursive_lock_destroy. Return error code.
36000         (glthread_once_call): Make static.
36001         (glthread_once_multithreaded): Renamed from glthread_once.
36002         * lib/tls.h: Include <errno.h>.
36003         (glthread_tls_key_init): New macro/function.
36004         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
36005         (glthread_tls_set): New macro/function.
36006         (gl_tls_set): Define as wrapper around glthread_tls_set.
36007         (glthread_tls_key_destroy): New macro/function.
36008         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
36009         Update function declarations.
36010         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
36011         glthread_tls_get.
36012         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36013
36014 2008-08-04  Eric Blake  <ebb9@byu.net>
36015
36016         gnumakefile: use space, not TAB, outside of targets
36017         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
36018
36019 2008-08-02  Jim Meyering  <meyering@redhat.com>
36020
36021         getdate.y: avoid locale-dependent date parsing failure
36022         In Turkish locales, getdate would fail to recognize keywords
36023         containing a lowercase "i".  The solution is not to rely on
36024         locale-sensitive case-conversion.
36025         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
36026         (lookup_word): Use c_toupper in place of toupper.
36027         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
36028         Reported by Vefa Bicakci <bicave@superonline.com> in
36029         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
36030         * modules/getdate (Depends-on): Add c-ctype.
36031
36032 2008-08-02  Bruno Haible  <bruno@clisp.org>
36033
36034         * gnulib-tool (func_import): When updating or creating a .gitignore
36035         file, prepend each added line with a slash, and ignore leading slashes
36036         from the existing lines.
36037         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
36038
36039 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36040
36041         Portability fix for GNU make 3.79.1.
36042         * top/GNUmakefile: Avoid 'else COND', which older GNU make
36043         versions do not understand.
36044
36045 2008-08-01  Bruno Haible  <bruno@clisp.org>
36046
36047         Work around bug of HP-UX 10.20 cc with -0.0 literal.
36048         * tests/test-isnanf.h (zero): New variable.
36049         (main): Avoid literal -0.0f.
36050         * tests/test-isnand.h (zero): New variable.
36051         (main): Avoid literal -0.0.
36052         * tests/test-isnanl.h (zero): New variable.
36053         (main): Avoid literal -0.0L.
36054         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
36055         (test_float, test_double, test_long_double): Avoid literals -0.0f,
36056         -0.0, -0.0L.
36057         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
36058         (test_signbitd): Avoid literal -0.0.
36059         (test_signbitl): Avoid literal -0.0L.
36060         * tests/test-ceilf1.c (zero): New variable.
36061         (main): Avoid literal -0.0f.
36062         * tests/test-ceill.c (zero): New variable.
36063         (main): Avoid literal -0.0L.
36064         * tests/test-floorf1.c (zero): New variable.
36065         (main): Avoid literal -0.0f.
36066         * tests/test-floorl.c (zero): New variable.
36067         (main): Avoid literal -0.0L.
36068         * tests/test-roundf1.c (zero): New variable.
36069         (main): Avoid literal -0.0f.
36070         * tests/test-round1.c (zero): New variable.
36071         (main): Avoid literal -0.0.
36072         * tests/test-roundl.c (zero): New variable.
36073         (main): Avoid literal -0.0L.
36074         * tests/test-truncf1.c (zero): New variable.
36075         (main): Avoid literal -0.0f.
36076         * tests/test-trunc1.c (zero): New variable.
36077         (main): Avoid literal -0.0.
36078         * tests/test-truncl.c (zero): New variable.
36079         (main): Avoid literal -0.0L.
36080         * tests/test-frexp.c (zero): New variable.
36081         (main): Avoid literal -0.0.
36082         * tests/test-frexpl.c (zero): New variable.
36083         (main): Avoid literal -0.0L.
36084         * tests/test-ldexpl.c (zero): New variable.
36085         (main): Avoid literal -0.0L.
36086         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
36087         (zerod, zerol): New variables.
36088         (test_function): Avoid literals -0.0, -0.0L.
36089         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
36090         (zerod, zerol): New variables.
36091         (test_function): Avoid literals -0.0, -0.0L.
36092         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
36093         (zerod, zerol): New variables.
36094         (test_function): Avoid literals -0.0, -0.0L.
36095         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
36096         (zerod, zerol): New variables.
36097         (test_function): Avoid literals -0.0, -0.0L.
36098         * tests/test-strtod.c (zero): New variable.
36099         (main): Avoid literal -0.0.
36100         Reported by Jonathan C. Patschke <jp@centtech.com>.
36101
36102 2008-07-31  Jim Meyering  <meyering@redhat.com>
36103
36104         sha256.h: correct definition of SHA224_DIGEST_SIZE
36105         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
36106         Reported by Paulie Pena IV <paulie4@gmail.com>.
36107         Define as 224 / 8, rather than as a literal.
36108         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
36109         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
36110         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
36111
36112 2008-07-31  Bruno Haible  <bruno@clisp.org>
36113
36114         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
36115         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
36116         Reported by Jonathan Patschke <jp@centtech.com>.
36117
36118 2008-07-31  Bruno Haible  <bruno@clisp.org>
36119
36120         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
36121         Reported by Paolo Bonzini <bonzini@gnu.org>.
36122
36123 2008-07-30  Eric Blake  <ebb9@byu.net>
36124
36125         test-strtod: allow compilation without -lm
36126         * tests/test-strtod.c (main): Avoid link dependence on fabs.
36127         Reported by Dennis Clarke <blastwave@gmail.com>.
36128
36129 2008-07-28  Jim Meyering  <meyering@redhat.com>
36130
36131         bootstrap: work also when there are no .po files in po/
36132         * build-aux/bootstrap (update_po_files): Complete the change
36133         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
36134
36135 2008-07-27  Jim Meyering  <meyering@redhat.com>
36136
36137         * users.txt: Add zile.
36138
36139 2008-07-26  Ben Pfaff  <blp@gnu.org>
36140
36141         Add missing dependencies on new m4/exponent[fdl].m4 files.
36142         * modules/isnanf-nolibm: Add m4/exponentf.m4.
36143         * modules/isnand-nolibm: Add m4/exponentd.m4.
36144         * modules/isnanl-nolibm: Add m4/exponentl.m4.
36145         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
36146         m4/isnan[fdl].m4, because the macros actually used moved.
36147         Reported by Jim Meyering.
36148
36149 2008-07-14  Ben Pfaff  <blp@gnu.org>
36150
36151         Add isinf module.
36152         * lib/isinf.c: New file.
36153         * lib/math.in.h: Define isinf macro if we have decided to replace
36154         it.
36155         * m4/isinf.m4: New file.
36156         * m4/math_h.m4: Initialize and substitute variables for isinf
36157         module.
36158         * modules/isinf: New file.
36159         * modules/isinf-tests: New file.
36160         * modules/math: Add substitutions for new module.
36161         * tests/test-isinf.c: New file.
36162         * doc/posix-functions/isinf.texi: Mention new module.
36163         * MODULES.html.sh: Mention new module.
36164
36165 2008-07-14  Ben Pfaff  <blp@gnu.org>
36166
36167         Factor out some macros for use by additional modules.
36168         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
36169         exponentf.m4.
36170         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
36171         exponentd.m4.
36172         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
36173         file exponentl.m4.
36174         * m4/exponentf.m4: New file.
36175         * m4/exponentd.m4: New file.
36176         * m4/exponentl.m4: New file.
36177         * modules/isnanf: Use new file m4/exponentf.m4.
36178         * modules/isnand: Use new file m4/exponentd.m4.
36179         * modules/isnanl: Use new file m4/exponentl.m4.
36180
36181 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
36182
36183         mktime.c: normalize tp->tm_isdst value to -1/0/1.
36184         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
36185         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
36186         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
36187
36188         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
36189         readlink on platforms without PATH_MAX.
36190
36191 2008-07-21  Eric Blake  <ebb9@byu.net>
36192
36193         Warn, not fail, on stale version.
36194         * top/GNUmakefile (_curr-ver): Tone down previous patch.
36195
36196         Don't allow installation with stale devel version number.
36197         * top/GNUmakefile (_is-install-target): New macro.
36198         (_curr-ver): Forbid installation with stale version number.
36199
36200 2008-07-20  Bruno Haible  <bruno@clisp.org>
36201
36202         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
36203         TESTS_ENVIRONMENT.
36204         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
36205
36206 2008-07-20  Bruno Haible  <bruno@clisp.org>
36207
36208         * lib/c-stack.h (c_stack_action): Add documentation.
36209         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
36210
36211 2008-07-20  Bruno Haible  <bruno@clisp.org>
36212
36213         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
36214         * modules/readlink (License): Likewise.
36215
36216 2008-07-17  Eric Blake  <ebb9@byu.net>
36217
36218         * modules/c-stack (Link): Fix typo.
36219
36220         Make c-stack use libsigsegv, when available.
36221         * modules/c-stack (Depends-on): Add libsigsegv.
36222         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
36223         needed.
36224         * lib/c-stack.c (SIGSTKSZ): Define fallback.
36225         (segv_handler, overflow_handler, c_stack_action)
36226         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
36227         implementation when libsigsegv is available, but only when using
36228         the library is necessary.
36229         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
36230         comment, explaining why XSI check fails on Linux.
36231         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
36232         * tests/test-c-stack2.sh: Tweak skip message.
36233         * NEWS: Document new link-time requirements.
36234
36235 2008-07-16  Eric Blake  <ebb9@byu.net>
36236
36237         c-stack: Expose false positives when not using libsigsegv.
36238         * modules/c-stack-tests (Files): Expand test.
36239         * tests/test-c-stack.c (main): Add means to conditionally trigger
36240         non-overflow SIGSEGV.
36241         * tests/test-c-stack2.sh: New file.
36242
36243 2008-07-14  Bruno Haible  <bruno@clisp.org>
36244
36245         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
36246         Reported by Eric Blake.
36247
36248 2008-07-14  Sam Steingold  <sds@gnu.org>
36249             Bruno Haible  <bruno@clisp.org>
36250
36251         New module libsigsegv.
36252         * modules/libsigsegv: New file.
36253         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
36254         modifications.
36255         * MODULES.html.sh (Signal handling): New section.
36256
36257 2008-07-14  Bruno Haible  <bruno@clisp.org>
36258
36259         * modules/unictype/ctype-* (Description): Add the word "function".
36260         Improves the resulting doc in MODULES.html.
36261
36262 2008-07-12  Ben Pfaff  <blp@gnu.org>
36263
36264         Add longlong module.
36265         * modules/longlong: New file.
36266
36267 2008-07-12  Bruno Haible  <bruno@clisp.org>
36268
36269         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
36270         to empty.
36271
36272 2008-07-10  Ben Pfaff  <blp@gnu.org>
36273
36274         Add isnan module.
36275         * doc/posix-functions/isnan.texi: Mention new module.
36276         * lib/math.in.h: Define isnan macro if we have decided to replace
36277         it.
36278         * m4/isnan.m4: New file.
36279         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
36280         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
36281         also.
36282         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
36283         redundancy.
36284         * m4/math_h.m4: Initialize and substitute variables for isnan
36285         module.
36286         * modules/isnan: New file.
36287         * modules/isnan-tests: New file.
36288         * modules/math: Add substitutions for new module.
36289         * tests/test-isnan.c: New file.
36290         * MODULES.html.sh: Mention new module.
36291
36292 2008-07-10  Ben Pfaff  <blp@gnu.org>
36293
36294         Add isnanf module.
36295         * lib/isnanf.m4: New file.
36296         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
36297         (gl_HAVE_ISNANF_IN_LIBM): New macro.
36298         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
36299         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
36300         * modules/isnanf: New file.
36301         * modules/isnanf-tests: New file.
36302         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
36303         files.
36304         * tests/test-isnanf-nolibm.c: factored most of its contents into
36305         new file tests/test-isnanf.h.
36306         * tests/test-isnanf.h: New file.
36307         * tests/test-isnanf.c: New file.
36308         * MODULES.html.sh: Mention new module.
36309         * doc/glibc-functions/isnanf.texi: Mention new module.
36310
36311 2008-07-10  Ben Pfaff  <blp@gnu.org>
36312
36313         Add isnand module.
36314         * lib/isnand.h: New file.
36315         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
36316         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
36317         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
36318         functionality also.
36319         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
36320         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
36321         (gl_HAVE_ISNAND_IN_LIBM): New macro.
36322         * modules/isnand: New file.
36323         * modules/isnand-tests: New file.
36324         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
36325         files.
36326         * tests/test-isnand-nolibm.c: factored most of its contents into
36327         new file tests/test-isnand.h.
36328         * tests/test-isnand.h: New file.
36329         * tests/test-isnand.c: New file.
36330         * MODULES.html.sh: Mention new module.
36331
36332 2008-07-10  Ben Pfaff  <blp@gnu.org>
36333
36334         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
36335         * lib/isnand.h: Rename lib/isnand-nolibm.h.
36336         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
36337         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
36338         * modules/isnanf-nolibm: Update references to renamed files.
36339         * modules/isnand-nolibm: Likewise.
36340         * modules/isnanf-nolibm-tests: Likewise.
36341         * modules/isnand-nolibm-tests: Likewise.
36342         * lib/frexp.c: Likewise.
36343         * lib/isfinite.c: Likewise.
36344         * lib/signbitd.c: Likewise.
36345         * lib/signbitf.c: Likewise.
36346         * lib/vasnprintf.c: Likewise.
36347         * tests/test-ceilf1.c: Likewise.
36348         * tests/test-ceilf2.c: Likewise.
36349         * tests/test-floorf1.c: Likewise.
36350         * tests/test-floorf2.c: Likewise.
36351         * tests/test-frexp.c: Likewise.
36352         * tests/test-round1.c: Likewise.
36353         * tests/test-round2.c: Likewise.
36354         * tests/test-roundf1.c: Likewise.
36355         * tests/test-strtod.c: Likewise.
36356         * tests/test-trunc1.c: Likewise.
36357         * tests/test-trunc2.c: Likewise.
36358         * tests/test-truncf1.c: Likewise.
36359         * tests/test-truncf2.c: Likewise.
36360         * NEWS: Mention the renamed header files.
36361
36362 2008-07-11  Jim Meyering  <meyering@redhat.com>
36363
36364         vc-list-files: make the last-resort awk code more portable
36365         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
36366         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
36367         does not support it.
36368
36369 2008-07-10  Eric Blake  <ebb9@byu.net>
36370
36371         Work with tar's bootstrap.
36372         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
36373         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
36374         an m4 comment.
36375
36376 2008-07-09  Jim Meyering  <meyering@redhat.com>
36377
36378         posix-shell.m4: fix typo that made this test malfunction
36379         * m4/posix-shell.m4: Remove capitalization in variable name.
36380
36381 2008-07-08  Bruno Haible  <bruno@clisp.org>
36382
36383         * m4/onceonly.m4: Update comments.
36384         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36385
36386 2008-07-04  Jim Meyering  <meyering@redhat.com>
36387
36388         * users.txt: Add vc-dwim.
36389         (bison, coreutils): Use the gitweb URL.
36390
36391 2008-07-03  Jim Meyering  <meyering@redhat.com>
36392
36393         * users.txt: Add libffcall.  From Sam Steingold.
36394
36395 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
36396
36397         getdate.y: do not ignore TZ with relative day, month or year offset
36398         * lib/getdate.y (get_date): Move the tz-handling block to follow the
36399         relative-date-handling, since otherwise, the latter would clobber the
36400         sole output (an updated Start value) of the tz-handling block.
36401         * tests/test-getdate.c: Tests for the fix
36402
36403 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36404
36405         Recognize 'foo_LIBRARIES += libgnu.a'.
36406         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
36407         makefile snippet has already specified an installation location,
36408         also using '+='.
36409
36410 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
36411
36412         getdate.y: factor out common actions
36413         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
36414         Use them in place of open-coded actions.
36415
36416 2008-07-01  Simon Josefsson  <simon@josefsson.org>
36417
36418         Add self-test for getdate module.
36419         * modules/getdate-tests: New file.
36420         * tests/test-getdate.c: New file.
36421
36422 2008-06-29  Bruno Haible  <bruno@clisp.org>
36423
36424         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
36425         .gitignore.
36426         Reported by Sylvain Beucler <beuc@beuc.net>.
36427
36428 2008-06-29  Bruno Haible  <bruno@clisp.org>
36429
36430         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
36431         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
36432
36433 2008-06-29  Bruno Haible  <bruno@clisp.org>
36434
36435         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
36436         EXTRA_DIST.
36437         Reported by Sylvain Beucler <beuc@beuc.net>.
36438
36439 2008-06-26  Jim Meyering  <meyering@redhat.com>
36440
36441         make several modules depend on the "open" module
36442         This provides slightly increased consistency when opening-for-write
36443         the name of a non-directory spelled with a trailing slash.
36444         * modules/chdir-safer: Likewise.
36445         * modules/chown: Likewise.
36446         * modules/clean-temp: Likewise.
36447         * modules/copy-file: Likewise.
36448         * modules/fchdir: Likewise.
36449         * modules/fcntl-safer: Likewise.
36450         * modules/pipe: Likewise.
36451         * modules/utime: Likewise.
36452         Prompted by Eric Blake and Bruno Haible.
36453
36454 2008-06-24  Andreas Schwab  <schwab@suse.de>
36455
36456         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
36457         literals can be used as initializers for global variables.
36458
36459 2008-06-23  Eric Blake  <ebb9@byu.net>
36460
36461         Make gnulib-cache.m4 easier to diff.
36462         * gnulib-tool (func_import): Allow newlines when reading cached
36463         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
36464
36465 2008-06-23  Bruno Haible  <bruno@clisp.org>
36466
36467         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
36468         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
36469         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
36470         m4/signalblocking.m4.
36471         (gl_PREREQ_SIGACTION): Don't invoke it.
36472         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
36473         gl_PREREQ_SIG_HANDLER_H.
36474         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
36475         Don't check for sigaction here.
36476
36477 2008-06-23  Bruno Haible  <bruno@clisp.org>
36478
36479         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
36480         (install_handlers): Don't set the SA_RESETHAND flag.
36481
36482 2008-06-23  Bruno Haible  <bruno@clisp.org>
36483
36484         * m4/sigaction.m4: Comment fixes.
36485         * lib/signal.in.h: Likewise.
36486
36487 2008-06-23  Eric Blake  <ebb9@byu.net>
36488
36489         Fix typo.
36490         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
36491
36492         Avoid SA_ namespace.
36493         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
36494         Reported by Ralf Wildenhues.
36495
36496         Avoid test failure due to SA_RESTORER.
36497         * tests/test-sigaction.c (SA_MASK): New macro.
36498         (main): Avoid failing due to extension flags being set.
36499         Reported by Jim Meyering.
36500
36501         Revert use of sig-handler.h in sigprocmask.c.
36502         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
36503         it requires the existence of struct sigaction.
36504         * lib/sigprocmask.c (handler_t): Restore typedef.
36505         (rpl_signal, old_handlers): Use local type.
36506
36507 2008-06-22  Bruno Haible  <bruno@clisp.org>
36508
36509         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
36510         conditionally.
36511         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36512
36513 2008-06-22  Bruno Haible  <bruno@clisp.org>
36514
36515         * doc/posix-functions/siginterrupt.texi: Move note.
36516
36517         * lib/signal.in.h (SA_RESTART): New macro.
36518         * lib/sigaction.c: Update comment.
36519
36520         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
36521
36522         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
36523         (gl_PREREQ_SIGPROCMASK): Invoke it.
36524         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
36525
36526         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
36527
36528         * lib/sigprocmask.c: Update a comment.
36529
36530 2008-06-21  Eric Blake  <ebb9@byu.net>
36531
36532         Use sigaction module rather than signal().
36533         * modules/c-stack (Depends-on): Add sigaction.
36534         * modules/fatal-signal (Depends-on): Likewise.
36535         * modules/nanosleep (Depends-on): Likewise.
36536         * modules/sigprocmask (Files): Add sig-handler.h.
36537         * modules/sigaction (Files): Likewise.
36538         * lib/sig-handler.h (get_handler): New file, suggested by Paul
36539         Eggert.
36540         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
36541         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
36542         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
36543         (init_fatal_signals): Likewise.
36544         * lib/nanosleep.c (rpl_nanosleep): Likewise.
36545         (siginterrupt): Delete fallback.
36546         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
36547         instead.
36548         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
36549         siginterrupt.
36550
36551         New module sigaction, for mingw.
36552         * modules/sigaction: New module...
36553         * modules/sigaction-tests: ...and its test.
36554         * m4/sigaction.m4: New file.
36555         * lib/sigaction.c: Likewise.
36556         * tests/test-sigaction.c: Likewise.
36557         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
36558         * modules/signal (Makefile.am): Likewise.
36559         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
36560         needed.
36561         * doc/posix-headers/signal.texi (signal.h): Mention provided
36562         types.
36563         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
36564         that sigaction is preferable.
36565         * doc/posix-functions/sigaction.texi (sigaction): Mention new
36566         module.
36567         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36568         sigaction.
36569
36570         Improve robustness of sigprocmask by overriding signal.
36571         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
36572         is in use.
36573         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
36574         (SIGKILL, SIGSTOP): Provide fallbacks.
36575         (rpl_signal): Implement.
36576         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
36577         signal can be called inside handlers.
36578
36579         Fix nanosleep module on mingw.
36580         * modules/nanosleep (Depends-on): Add sys_select.
36581         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
36582
36583         Fix licensing of sigprocmask.
36584         * modules/raise (License): Relicense as LGPL.
36585
36586 2008-06-21  Bruno Haible  <bruno@clisp.org>
36587
36588         * lib/propername.c (proper_name_utf8): Don't use the transliterated
36589         result if it contains question marks.
36590         Reported by Michael Geng <linux@michaelgeng.de>.
36591
36592 2008-06-19  Bruno Haible  <bruno@clisp.org>
36593
36594         Fix CVS-ism.
36595         * doc/gnulib.texi: Include updated-stamp.texi.
36596         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
36597         (updated-stamp.texi): New rule.
36598         (gnulib.info): Depend on it.
36599         * doc/.gitignore: Add updated-stamp.texi.
36600         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
36601
36602 2008-06-19  Bruno Haible  <bruno@clisp.org>
36603
36604         * doc/Makefile (gnulib.info): Update and simplify dependencies.
36605         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36606
36607 2008-06-19  Eric Blake  <ebb9@byu.net>
36608
36609         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
36610         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
36611         Reported by Stepan Kasal.
36612
36613 2008-06-18  Bruno Haible  <bruno@clisp.org>
36614
36615         * lib/fatal-signal.c (init_fatal_signals): Add comment.
36616         Reported by Eric Blake.
36617
36618 2008-06-18  Eric Blake  <ebb9@byu.net>
36619
36620         Work around cygwin 1.5.25 strsignal bug.
36621         * tests/test-strsignal.c: Allow for const char *.
36622         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
36623
36624 2008-06-18  Simon Josefsson  <simon@josefsson.org>
36625
36626         * users.txt: Update URL to article and add author/date
36627         information.
36628
36629 2008-06-17  Bruno Haible  <bruno@clisp.org>
36630
36631         New macro gl_DISABLE_THREADS.
36632         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
36633         if the user did not pass --enable-threads or --disable-threads option.
36634         (gl_DISABLE_THREADS): New macro.
36635         Reported by Eric Blake <ebb9@byu.net>.
36636
36637 2008-06-17  Bruno Haible  <bruno@clisp.org>
36638
36639         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
36640         when the macro ignores it.
36641         Based on a patch by Eric Blake <ebb9@byu.net>.
36642
36643 2008-06-17  Bruno Haible  <bruno@clisp.org>
36644
36645         * modules/tls (License): Change to LGPLv2+.
36646         Reported by Eric Blake.
36647
36648 2008-06-17  Eric Blake  <ebb9@byu.net>
36649
36650         Simplify c-stack prerequisites.
36651         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
36652         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
36653         no longer requires <ucontext.h> to exist.  Optimize setrlimit
36654         check.
36655         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
36656         <sys/resource.h>.
36657
36658         Move c-stack test into testsuite.
36659         * modules/c-stack-tests: New file.
36660         * lib/c-stack.c [DEBUG]: Move test program...
36661         * tests/test-c-stack.c: ...into this new file.  Skip rather than
36662         fail test if sigaltstack is lacking.
36663         * tests/test-c-stack.sh: New driver file.
36664
36665 2008-06-16  Eric Blake  <ebb9@byu.net>
36666
36667         Use raise module consistently.
36668         * modules/fatal-signal (Depends-on): Add raise.
36669         * modules/sigprocmask (Depends-on): Likewise.
36670         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
36671         * lib/sigprocmask.c (sigprocmask): Likewise.
36672         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
36673         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
36674
36675         Fix compliance bug in sigpending.
36676         * lib/sigprocmask.c (sigpending): Return pending array via
36677         parameter, not return value.
36678
36679 2008-06-14  Eric Blake  <ebb9@byu.net>
36680
36681         Improve obstack-printf test code.
36682         * tests/test-obstack-printf.c (test_function): Fix comment, and
36683         simplify usage of obstack_* in macros.  Add a test for coverage.
36684         Reported by Bruno Haible.
36685
36686 2008-06-14  Bruno Haible  <bruno@clisp.org>
36687
36688         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
36689         array size as a constant, not as a const variable.
36690         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
36691         AC_USE_SYSTEM_EXTENSIONS.
36692         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
36693         Test whether the obstack_printf function actually exists.
36694         * modules/obstack-printf (Depends-on): Add extensions.
36695         (Include): Remove obstack.h.
36696         * modules/obstack-printf-posix (Depends-on): Add extensions.
36697         (Include): Remove obstack.h.
36698
36699 2008-06-13  Eric Blake  <ebb9@byu.net>
36700
36701         Add obstack-printf and obstack-printf-posix modules.
36702         * modules/obstack-printf: New file.
36703         * modules/obstack-printf-posix: Likewise.
36704         * MODULES.html.sh (Misc): Mention them.
36705         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
36706         Likewise.
36707         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
36708         Likewise.
36709         * modules/stdio (Makefile.am): Accomodate new modules.
36710         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36711         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
36712         Declare.
36713         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
36714         functions.
36715         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
36716         (gl_REPLACE_OBSTACK_PRINTF): New macros
36717         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
36718         * tests/test-obstack-printf.c: New file.
36719         * modules/obstack-printf-tests: Likewise.
36720         * modules/obstack-printf-posix-tests: Likewise.
36721
36722 2008-06-11  Bruno Haible  <bruno@clisp.org>
36723
36724         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
36725         * lib/open.c: Include errno.h.
36726         (open): Fail when attempting to write to a file that has a trailing
36727         slash.
36728         * tests/test-open.c (main): Test against trailing slash bug.
36729         * doc/posix-functions/open.texi: Mention the trailing slash bug.
36730
36731 2008-06-10  Bruno Haible  <bruno@clisp.org>
36732
36733         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
36734         for $? to work inside the trap command, with various /bin/sh-s.
36735         * tests/test-vc-list-files-cvs.sh: Likewise.
36736
36737 2008-06-10  Bruno Haible  <bruno@clisp.org>
36738
36739         * lib/acl-internal.h: Don't include gettext.h here.
36740         * lib/set-mode-acl.c: Include gettext.h here.
36741         * lib/copy-acl.c: Likewise.
36742
36743 2008-06-10  Bruno Haible  <bruno@clisp.org>
36744
36745         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
36746         * lib/wait-process.c (wait_subprocess): Likewise.
36747         * lib/execute.h (execute): Add termsigp argument.
36748         * lib/execute.c (execute): Likewise.
36749         * lib/csharpcomp.c (compile_csharp_using_pnet,
36750         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
36751         * lib/csharpexec.c (execute_csharp_using_pnet,
36752         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
36753         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
36754         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
36755         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
36756         is_jikes_present): Update.
36757         * lib/javaexec.c (execute_java_class): Update.
36758         * lib/javaversion.c (execute_and_read_line): Update.
36759         * NEWS: Document the changes.
36760         Reported by Eric Blake.
36761
36762 2008-06-10  Eric Blake  <ebb9@byu.net>
36763
36764         Add missing include.
36765         * tests/test-strstr.c (includes): Add <signal.h>.
36766         * tests/test-strcasestr.c (includes): Likewise.
36767         * tests/test-memmem.c (includes): Likewise.
36768
36769 2008-06-10  Bruno Haible  <bruno@clisp.org>
36770
36771         * lib/wait-process.c (wait_subprocess): Add an assertion.
36772
36773 2008-06-10  Bruno Haible  <bruno@clisp.org>
36774
36775         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
36776
36777 2008-06-10  Bruno Haible  <bruno@clisp.org>
36778
36779         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
36780         using alarm().
36781         * tests/test-strcasestr.c (main): Likewise.
36782         * tests/test-strstr.c (main): Likewise.
36783
36784 2008-06-09  Bruno Haible  <bruno@clisp.org>
36785
36786         Work around the Solaris 10 ACE ACLs ABI change.
36787         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
36788         declare if ACL_NO_TRIVIAL is present.
36789         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
36790         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
36791         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
36792         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
36793         define if ACL_NO_TRIVIAL is present.
36794         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
36795         and use the current ABI.
36796         (file_has_acl): Use same #if condition as elsewhere.
36797         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
36798         in use, and use the current ABI.
36799         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
36800         Reported by Jim Meyering.
36801
36802 2008-06-09  Eric Blake  <ebb9@byu.net>
36803
36804         Work around environments that (stupidly) ignore SIGALRM.
36805         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
36806         before using alarm().
36807         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
36808         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
36809         Reported by Ian Beckwith <ianb@erislabs.net>.
36810
36811         Produce autobuild blurb earlier in log.
36812         * modules/autobuild (configure.ac-early): Move AB_INIT here.
36813
36814 2008-06-09  Jim Meyering  <meyering@redhat.com>
36815         and OndÅ™ej Vašík  <ovasik@redhat.com>
36816
36817         utimens.c: correct kernel bug work-around
36818         OndÅ™ej Vašík found that the invalid return value of 280 indicates
36819         failure, not success, and the kernel bug we're trying to work
36820         around affects not just the utimensat call, but also the fallback
36821         futimens call.
36822         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
36823         not success.
36824         [HAVE_FUTIMENS]: Use the same work-around, here.
36825
36826 2008-06-09  Jim Meyering  <meyering@redhat.com>
36827
36828         add more guards around definition of ACE_-related code
36829         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
36830         ALLOW and ACE_OWNER are also defined.
36831
36832 2008-06-08  Bruno Haible  <bruno@clisp.org>
36833
36834         * lib/acl-internal.h: Add me as co-author.
36835         * lib/file-has-acl.c: Likewise.
36836         * lib/set-mode-acl.c: Likewise.
36837         * lib/copy-acl.c: Likewise.
36838
36839 2008-06-08  Bruno Haible  <bruno@clisp.org>
36840
36841         Add support for AIX ACLs.
36842         * lib/acl-internal.h (acl_nontrivial): New declaration.
36843         * lib/file-has-acl.c (acl_nontrivial): New function.
36844         (file_has_acl): Add implementation using AIX 4 ACL API.
36845         * lib/set-mode-acl.c (qset_acl): Likewise.
36846         * lib/copy-acl.c (qcopy_acl): Likewise.
36847
36848 2008-06-08  Bruno Haible  <bruno@clisp.org>
36849
36850         Add support for HP-UX ACLs.
36851         * lib/acl-internal.h (acl_nontrivial): New declaration.
36852         * lib/file-has-acl.c (acl_nontrivial): New function.
36853         (file_has_acl): Add implementation using HP-UX 11 ACL API.
36854         * lib/set-mode-acl.c (qset_acl): Likewise.
36855         * lib/copy-acl.c (qcopy_acl): Likewise.
36856
36857 2008-06-08  Bruno Haible  <bruno@clisp.org>
36858
36859         Add support for Cygwin ACLs.
36860         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
36861         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
36862         the chmod_or_fchmod call.
36863         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
36864
36865 2008-06-08  Bruno Haible  <bruno@clisp.org>
36866
36867         Fix bug with setuid modes in Solaris 10+ code.
36868         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
36869         succeeded, when the mode contains some special bits.
36870
36871 2008-06-08  Bruno Haible  <bruno@clisp.org>
36872
36873         Add support for Solaris 7..10 ACLs.
36874         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
36875         declarations.
36876         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
36877         functions.
36878         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
36879         * lib/set-mode-acl.c (qset_acl): Likewise.
36880         * lib/copy-acl.c (qcopy_acl): Likewise.
36881
36882 2008-06-08  Bruno Haible  <bruno@clisp.org>
36883
36884         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
36885         declaration.
36886         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
36887         (acl_access_nontrivial): Remove MacOS X case.
36888         (file_has_acl): Use acl_extended_nontrivial.
36889         * lib/copy-acl.c (qcopy_acl): Likewise.
36890
36891 2008-06-08  Bruno Haible  <bruno@clisp.org>
36892
36893         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
36894
36895 2008-06-08  Jim Meyering  <meyering@redhat.com>
36896
36897         * modules/acl (Maintainer): Add Bruno Haible.
36898
36899 2008-06-07  Bruno Haible  <bruno@clisp.org>
36900
36901         Improve support for Tru64 ACLs.
36902         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
36903         ACL on OSF/1.
36904
36905 2008-06-07  Bruno Haible  <bruno@clisp.org>
36906
36907         Add support for MacOS X ACLs.
36908         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
36909         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
36910         * lib/set-mode-acl.c (qset_acl): Likewise.
36911         * lib/copy-acl.c (qcopy_acl): Likewise.
36912
36913 2008-06-07  Bruno Haible  <bruno@clisp.org>
36914
36915         Fix memory leak introduced on 2008-05-22.
36916         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
36917         use.
36918
36919 2008-06-07  Bruno Haible  <bruno@clisp.org>
36920
36921         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
36922         to construct an empty ACL.
36923
36924 2008-06-07  Bruno Haible  <bruno@clisp.org>
36925
36926         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
36927         precisely.
36928         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
36929
36930 2008-06-07  Bruno Haible  <bruno@clisp.org>
36931
36932         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
36933         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
36934
36935 2008-06-07  Bruno Haible  <bruno@clisp.org>
36936
36937         * doc/posix-functions/_setjmp.texi: Explain the use of this function
36938         regardless of POSIX.
36939         * doc/posix-functions/_longjmp.texi: Likewise.
36940         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
36941         SystemV platform in this case.
36942
36943 2008-06-06  Eric Blake  <ebb9@byu.net>
36944
36945         Document abort() bugs.
36946         * doc/posix-functions/abort.texi (abort): Mention anomalies.
36947
36948         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
36949         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
36950         sigsetjmp.
36951         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
36952         siglongjmp, but only as a macro.
36953         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
36954         is obsolete.
36955         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
36956
36957         Tweak documentation to cover cygwin argz bugs.
36958         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
36959         argz bug fix; no code change needed since no cygwin releases
36960         occurred between the last fix and the bug being tested.
36961         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
36962         module and recently fixed cygwin bugs.
36963         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
36964         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
36965         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
36966         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
36967         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
36968         Likewise.
36969         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
36970         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
36971         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
36972         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
36973         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
36974         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
36975         Likewise.
36976
36977         Avoid gcc warning on cygwin.
36978         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
36979         !ACL_NO_TRIVIAL]: Avoid unused variable.
36980
36981 2008-06-05  Eric Blake  <ebb9@byu.net>
36982
36983         Be tolerant of UNKNOWN version in gnulib-tool test dir.
36984         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
36985         git-version-gen fails to come up with a version.
36986         Reported by Simon Josefsson.
36987
36988 2008-06-05  Jim Meyering  <meyering@redhat.com>
36989             Paul Eggert  <eggert@cs.ucla.edu>
36990
36991         utimens.c: work around a probable Linux kernel bug
36992         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
36993         appears to be a kernel bug that causes utimensat to return 280
36994         instead of 0, indicating success.
36995
36996 2008-06-04  Bruno Haible  <bruno@clisp.org>
36997
36998         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
36999         2008-06-01 commit.
37000
37001 2008-06-04  Bruno Haible  <bruno@clisp.org>
37002
37003         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
37004         * lib/file-has-acl.c (acl_access_nontrivial): New function.
37005         (file_has_acl): Use it. Save errno afterwards.
37006         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
37007
37008 2008-06-03  Bruno Haible  <bruno@clisp.org>
37009
37010         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
37011         draft code. Simplify #ifs.
37012         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
37013         Put Solaris code after POSIX-draft code. Fix comments regarding
37014         Solaris 10, HP-UX. Mention Cygwin.
37015         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
37016
37017 2008-06-03  Eric Blake  <ebb9@byu.net>
37018
37019         Provide fallback for older kernels.
37020         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
37021         Provide runtime fallback if kernel lacks support.
37022         Reported by Mike Frysinger.
37023
37024 2008-06-02  Bruno Haible  <bruno@clisp.org>
37025
37026         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
37027         it exists.
37028
37029 2008-06-02  Bruno Haible  <bruno@clisp.org>
37030
37031         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
37032         * lib/copy-acl.c (qcopy_acl): Update comment.
37033
37034 2008-06-02  Bruno Haible  <bruno@clisp.org>
37035
37036         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
37037         like ACL APIs.
37038
37039 2008-06-02  Bruno Haible  <bruno@clisp.org>
37040
37041         * tests/test-file-has-acl.sh: Use different code for Cygwin.
37042         * tests/test-set-mode-acl.sh: Likewise.
37043         * tests/test-copy-acl.sh: Likewise.
37044         * tests/test-copy-file.sh: Likewise.
37045
37046 2008-06-02  Bruno Haible  <bruno@clisp.org>
37047
37048         * tests/test-file-has-acl.sh: Remove unused code.
37049
37050 2008-06-01  Bruno Haible  <bruno@clisp.org>
37051
37052         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
37053         (copy_acl): Just a wrapper around qcopy_acl that emits the error
37054         messages.
37055         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
37056
37057 2008-06-01  Bruno Haible  <bruno@clisp.org>
37058
37059         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
37060         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
37061         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
37062         APIs.
37063         * modules/acl-tests (configure.ac): Remove tests now contained in
37064         m4/acl.m4.
37065
37066 2008-06-02  Jim Meyering  <meyering@redhat.com>
37067
37068         announce-gen: use a better key-server host name
37069         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
37070         it may be more consistently reliable.  Suggested by Werner Koch
37071         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
37072
37073 2008-06-01  Bruno Haible  <bruno@clisp.org>
37074
37075         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
37076         Reported by Voroskoi Andras <voroskoi@gmail.com>.
37077
37078 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
37079
37080         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
37081
37082 2008-06-01  Bruno Haible  <bruno@clisp.org>
37083
37084         New ACL tests.
37085         * tests/test-file-has-acl.sh: New file.
37086         * tests/test-file-has-acl.c: New file.
37087         * tests/test-set-mode-acl.sh: New file.
37088         * tests/test-set-mode-acl.c: New file.
37089         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
37090         * tests/test-copy-acl.c: New file.
37091         * modules/acl-tests: New file, based on modules/copy-file-tests.
37092         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
37093         (Depends-on): Add acl-tests.
37094         (configure.ac): Remove checks.
37095         (Makefile.am): Don't create test-sameacls program here any more.
37096
37097 2008-06-01  Bruno Haible  <bruno@clisp.org>
37098
37099         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
37100         * tests/test-sameacls.c: Include progname.h.
37101         (main): Invoke set_program_name. Portability fixes for MacOS X,
37102         Solaris, HP-UX.
37103
37104 2008-06-01  Bruno Haible  <bruno@clisp.org>
37105
37106         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
37107         function.
37108         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
37109
37110 2008-06-01  Bruno Haible  <bruno@clisp.org>
37111
37112         * modules/rpmatch (Depends-on): Add strdup.
37113
37114 2008-06-01  Bruno Haible  <bruno@clisp.org>
37115
37116         * lib/pipe.c: Include unistd-safer.h.
37117         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
37118         * modules/pipe (Depends-on): Add unistd-safer.
37119
37120 2008-05-30  Simon Josefsson  <simon@josefsson.org>
37121
37122         * modules/autobuild (configure.ac): Call AB_INIT.
37123
37124 2008-05-30  Simon Josefsson  <simon@josefsson.org>
37125
37126         * tests/test-getaddrinfo.c: Don't print debug messages by default.
37127         Suggested by Bruno Haible <bruno@clisp.org>.
37128
37129 2008-05-30  Simon Josefsson  <simon@josefsson.org>
37130
37131         * tests/test-base64.c: Cast size_t to unsigned long when invoking
37132         printf.  Use %lu instead of %d.  Reported by Bruno Haible
37133         <bruno@clisp.org>.
37134
37135 2008-05-29  Eric Blake  <ebb9@byu.net>
37136
37137         Prefer new POSIX 200x interfaces over futimesat.
37138         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
37139         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
37140         when available.
37141         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
37142
37143 2008-05-28  Bruno Haible  <bruno@clisp.org>
37144
37145         * modules/stpcpy (License): Change to LGPLv2+.
37146         Requested by David Lutterkort <dlutter@redhat.com>.
37147
37148 2008-05-27  Bruno Haible  <bruno@clisp.org>
37149
37150         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
37151         current mingw.
37152         Reported by Jose E. Marchesi <jemarch@gnu.org>.
37153
37154 2008-05-27  Bruno Haible  <bruno@clisp.org>
37155
37156         * modules/iconv_open (Link): New section, from module 'iconv'.
37157         * modules/striconv (Link): Likewise.
37158         * modules/striconveh (Link): Likewise.
37159         * modules/xstriconv (Link): Likewise.
37160         * modules/unicodeio (Link): Likewise.
37161         * modules/propername (Link): Likewise.
37162         Reported by Jim Meyering.
37163
37164 2008-05-26  Jim Meyering  <meyering@redhat.com>
37165
37166         sha256: do not artificially restrict buffer length to be < 2^32
37167         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
37168         uint32_t to size_t.
37169         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
37170         to match.
37171
37172         avoid unaligned access errors, e.g., on sparc
37173         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
37174         direct access through a possibly-unaligned uint64* pointer.
37175         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
37176         direct access through a possibly-unaligned uint32* pointer.
37177         Prompted by this patch from Tom "spot" Callaway:
37178         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
37179
37180         sha512.c: fix typo in comment
37181         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
37182
37183 2008-05-25  Bruno Haible  <bruno@clisp.org>
37184
37185         * lib/set-mode-acl.c: Renamed from lib/acl.c.
37186         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
37187         (Makefile.am): Update lib_SOURCES.
37188
37189 2008-05-25  Bruno Haible  <bruno@clisp.org>
37190
37191         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
37192
37193 2008-05-25  Jim Meyering  <meyering@redhat.com>
37194
37195         useless-if-before-free: freed expr may have white-space differences
37196         * build-aux/useless-if-before-free: Recognize cases in which the
37197         freed expression differs from the tested one in embedded white
37198         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
37199         $1 was used, so we can't make any regexp shy.  Improved tests now
37200         detect this.
37201
37202         useless-if-before-free: accept white space in the expression.
37203         * build-aux/useless-if-before-free: For now, any white space
37204         in the expression must be identical in the free argument.
37205
37206         useless-if-before-free: efficiency tweak
37207         * build-aux/useless-if-before-free: Make the expression-matching
37208         regexp "shy".
37209         Make the *outer* regexp shy, not the expr-matching one.
37210
37211         update code-in-comment to accept cast of free arg
37212         * build-aux/useless-if-before-free: Update regexp.
37213
37214 2008-05-25  Bruno Haible  <bruno@clisp.org>
37215
37216         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
37217         * modules/copy-file-tests (Files, Makefile.am): Update.
37218         * tests/test-copy-file.c (func_test_copy): Update.
37219
37220 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
37221
37222         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
37223
37224 2008-05-23  Bruno Haible  <bruno@clisp.org>
37225
37226         Improve support for ACLs on OSF/1.
37227         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
37228         Remove fallback for unknown flavors of ACLs.
37229
37230 2008-05-22  Bruno Haible  <bruno@clisp.org>
37231
37232         Add support for ACLs on OSF/1.
37233         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
37234         replacements.
37235         (acl_free_text): New macro fallback.
37236         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
37237         acl_free.
37238         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
37239         acl_free_text function. Require AC_C_INLINE.
37240
37241 2008-05-22  Bruno Haible  <bruno@clisp.org>
37242
37243         Make copy_acl work on MacOS X 10.5.
37244         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
37245         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
37246         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
37247         If MODE_INSIDE_ACL, don't assume that every system has the same text
37248         representation for ACLs as FreeBSD.
37249         * lib/copy-acl.c (copy_acl): Add support for platforms with
37250         !MODE_INSIDE_ACL.
37251         * lib/file-has-acl.c (file_has_acl): Likewise.
37252         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
37253         FreeBSD, MacOS X, or IRIX, respectively.
37254
37255 2008-05-22  Bruno Haible  <bruno@clisp.org>
37256
37257         * lib/acl.h: Don't include <sys/acl.h>.
37258         (GETACLCNT): Move fallback to lib/acl-internal.h.
37259         * lib/acl-internal.h: Include <sys/acl.h> here.
37260         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
37261
37262 2008-05-22  Bruno Haible  <bruno@clisp.org>
37263
37264         Split off copy_acl function to separate file.
37265         * lib/copy-acl.c: New file, extracted from lib/acl.c.
37266         * lib/acl.c (copy_acl): Moved function to separate file.
37267         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
37268         * modules/acl (Files): Add lib/copy-acl.c.
37269         (Makefiles.am): Augment lib_SOURCES.
37270
37271 2008-05-22  Bruno Haible  <bruno@clisp.org>
37272
37273         * modules/copy-file-tests: New file.
37274         * tests/test-copy-file.sh: New file.
37275         * tests/test-copy-file.c: New file.
37276         * tests/test-copy-file-sameacls.c: New file.
37277
37278 2008-05-22  Eric Blake  <ebb9@byu.net>
37279
37280         Avoid gcc warning.
37281         * tests/test-memcmp.c (main): Pass NULL indirectly.
37282
37283 2008-05-21  Bruno Haible  <bruno@clisp.org>
37284
37285         Add reference doc about ACLs.
37286         * doc/acl-resources.txt: New file.
37287         * doc/acl-cygwin.txt: New file.
37288
37289 2008-05-21  Bruno Haible  <bruno@clisp.org>
37290
37291         Avoid one more warning from gcc.
37292         * lib/vasnprintf.c (IF_LINT): Update comments.
37293         (VASNPRINTF): Use it also for the 'prefix' array initializer.
37294
37295 2008-05-21  Jim Meyering  <meyering@redhat.com>
37296
37297         avoid a warning from gcc
37298         * lib/vasnprintf.c (IF_LINT): Define.
37299         (scale10_round_decimal_long_double):
37300         Use it to avoid a "may be used uninitialized" warning.
37301         (scale10_round_decimal_double): Likewise.
37302
37303 2008-05-21  Simon Josefsson  <simon@josefsson.org>
37304
37305         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
37306         declared.
37307
37308 2008-05-20  Bruno Haible  <bruno@clisp.org>
37309
37310         * tests/test-memcmp.c (main): Test also the sign of the result. Test
37311         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
37312
37313 2008-05-20  Simon Josefsson  <simon@josefsson.org>
37314
37315         * modules/memcmp-tests: New file.
37316         * tests/test-memcmp.c: New file.
37317
37318 2008-05-19  Bruno Haible  <bruno@clisp.org>
37319
37320         * modules/propername (Notice, configure.ac): Put quoted "..." into
37321         --keyword option.
37322         * lib/propername.h: Update comments accordingly.
37323         Reported by Eric Blake.
37324
37325 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
37326
37327         * modules/getpass-gnu (Depends-on): Add fseeko.
37328
37329 2008-05-19  Simon Josefsson  <simon@josefsson.org>
37330
37331         * modules/base64-tests: New file.
37332
37333 2008-05-19  Bo Borgerson <gigabo@gmail.com>
37334
37335         * lib/base64.c (base64_decode_ctx): If a decode context structure
37336         was passed in use it to ignore newlines.  If a context structure
37337         was _not_ passed in, continue to treat newlines as garbage (this
37338         is the historical behavior).  Formerly base64_decode.
37339         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
37340         takes a decode context structure.
37341         * lib/base64.h (base64_decode): Macro for four-argument calls.
37342         (base64_decode_alloc): Likewise.
37343         * lib/base64.c (base64_decode_ctx): If a decode context structure
37344         was passed in use it to ignore newlines.  If a context structure
37345         was _not_ passed in, continue to treat newlines as garbage (this
37346         is the historical behavior).  Formerly base64_decode.
37347         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
37348         takes a decode context structure.
37349         * lib/base64.h (base64_decode): Macro for four-argument calls.
37350         (base64_decode_alloc): Likewise.
37351
37352 2008-05-19  Jim Meyering  <meyering@redhat.com>
37353
37354         avoid a warning from gcc
37355         * lib/trim.c (IF_LINT): Define.
37356         (trim2): Use it to avoid a "may be used uninitialized" warning.
37357
37358         Fix doc typo.
37359         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
37360
37361 2008-05-19  Bruno Haible  <bruno@clisp.org>
37362
37363         * doc/glibc-functions/getpass.texi: Document limits of other
37364         implementations.
37365
37366 2008-05-19  Simon Josefsson  <simon@josefsson.org>
37367             Bruno Haible <bruno@clisp.org>
37368
37369         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
37370
37371 2008-05-18  Bruno Haible  <bruno@clisp.org>
37372
37373         * modules/propername: New file, from GNU gettext.
37374         * lib/propername.h: New file, from GNU gettext.
37375         * lib/propername.c: New file, from GNU gettext.
37376         * MODULES.html.sh (Internationalization functions): Add propername.
37377
37378 2008-05-16  Jim Meyering  <meyering@redhat.com>
37379             Bruno Haible  <bruno@clisp.org>
37380
37381         Avoid some warnings from "gcc -Wshadow".
37382         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
37383
37384 2008-05-15  Eric Blake  <ebb9@byu.net>
37385
37386         Extend previous patch to cygwin 1.7.0.
37387         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
37388         fast implementation in cygwin >= 1.7.0.
37389         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37390         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37391
37392 2008-05-15  Bruno Haible  <bruno@clisp.org>
37393
37394         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
37395         implementation in glibc >= 2.9.
37396         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37397         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37398
37399 2008-05-15  Bruno Haible  <bruno@clisp.org>
37400
37401         * MODULES.html.sh (Internationalization functions): Remove linebreak.
37402         (Unicode string functions): Add unilbrk/*.
37403         Reported by Karl Berry.
37404
37405 2008-05-15  Eric Blake  <ebb9@byu.net>
37406
37407         Fix violation of <stdbool.h> replacement in regex.
37408         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
37409         * lib/regexec.c (re_search_internal): Likewise.
37410         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
37411
37412 2008-05-15  Jim Meyering  <meyering@redhat.com>
37413
37414         avoid distracting test output when git or cvs is not found
37415         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
37416         * tests/test-vc-list-files-git.sh: Likewise.
37417
37418 2008-05-15  Eric Blake  <ebb9@byu.net>
37419
37420         Glibc finally accepted the memmem speedup code, bugzilla #5514.
37421         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
37422         glibc version.
37423         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
37424         * doc/posix-functions/strstr.texi (strstr): Likewise.
37425         * lib/str-two-way.h (MAX): Sychronize with glibc.
37426
37427 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
37428
37429         * lib/regcomp.c (optimize_utf8): Add a note on why we test
37430         opr.ctx_type.
37431         (calc_first): Initialize constraint field.
37432         (duplicate_node_closure): Use it instead of special casing ANCHORS.
37433         Fix grammar.
37434         (duplicate_node): Merge constraint field for all node types.
37435         (calc_eclosure_iter): Look at constraint field for all node types.
37436         * lib/regex_internal.c (create_cd_newstate): Don't look at
37437         opr.ctx_type.
37438
37439 2008-05-14  Bruno Haible  <bruno@clisp.org>
37440
37441         Help GCC to do better code generation.
37442         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
37443         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
37444         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
37445         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
37446         Declare with attribute 'malloc' if supported.
37447
37448 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
37449
37450         use "echo STR|wc -c" rather than unportable "expr length STR"
37451         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
37452         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
37453
37454 2008-05-14  Jim Meyering  <meyering@redhat.com>
37455
37456         use dd ibs=$n count=1 ... rather than less-portable head -c$n
37457         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
37458         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
37459         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
37460         via Collin Lasse.
37461
37462 2008-05-14  Eric Blake  <ebb9@byu.net>
37463
37464         Avoid quadratic growth in gl_LIBSOURCES.
37465         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
37466         Suggested by Bruno Haible.
37467
37468         Test xmemdup0.
37469         * modules/xmemdup0-tests: New file.
37470         * tests/test-xmemdup0.c: Likewise.
37471
37472 2008-05-13  Eric Blake  <ebb9@byu.net>
37473
37474         Split xmemdup0 into its own module.
37475         * modules/xmemdup0: New file.
37476         * lib/xmemdup0.h: Likewise.
37477         * lib/xmemdup0.c: Likewise.
37478         * MODULES.html.sh (Memory management functions): Add xmemdup0.
37479         * lib/xalloc.h (xmemdup0): Remove.
37480         * lib/xmalloc.c (xmemdup0): Likewise.
37481
37482 2008-05-13  Eric Blake  <ebb9@byu.net>
37483             Bruno Haible  <bruno@clisp.org>
37484
37485         Reduce number of forks required during autoconf.
37486         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
37487         and gl_LIBSOURCES_DIR.
37488         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
37489         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
37490         m4_syscmd per file.
37491         <m4_foreach_w>: Move...
37492         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
37493
37494 2008-05-13  Eric Blake  <ebb9@byu.net>
37495
37496         * gnulib-tool: Fix various comment typos.
37497
37498 2008-05-12  Bruno Haible  <bruno@clisp.org>
37499
37500         Tailor the linebreaking algorithm.
37501         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
37502
37503 2008-05-12  Bruno Haible  <bruno@clisp.org>
37504
37505         Update to Unicode 5.0.0.
37506         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
37507         LBP_JV, LBP_JT. Redistribute values.
37508         (unilbrk_table): Change size.
37509         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
37510         Unicode TR#14 rev. 22.
37511         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
37512         LBP_JV, LBP_JT. Redistribute values.
37513         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
37514         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
37515         Update.
37516         * lib/unilbrk/lbrkprop1.h: Regenerated.
37517         * lib/unilbrk/lbrkprop2.h: Regenerated.
37518         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
37519         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
37520         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
37521         Likewise.
37522         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
37523         Likewise.
37524         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
37525         result.
37526         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
37527         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
37528         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
37529         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
37530         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
37531         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
37532
37533 2008-05-11  Bruno Haible  <bruno@clisp.org>
37534
37535         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
37536
37537 2008-05-11  Bruno Haible  <bruno@clisp.org>
37538
37539         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
37540         * modules/unilbrk/gen-lbrk: New file.
37541
37542 2008-05-11  Bruno Haible  <bruno@clisp.org>
37543
37544         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
37545         * m4/sha512.m4 (gl_SHA512): Likewise.
37546
37547 2008-05-11  Jim Meyering  <meyering@redhat.com>
37548
37549         New modules: crypto/sha256, crypto/sha512 (from coreutils)
37550         * modules/crypto/sha256: New file.
37551         * modules/crypto/sha512: Likewise.
37552         * lib/sha256.c: Likewise.
37553         * lib/sha256.h: Likewise.
37554         * lib/sha512.c: Likewise.
37555         * lib/sha512.h: Likewise.
37556         * lib/u64.h: Likewise.
37557         * m4/sha256.m4: Likewise.
37558         * m4/sha512.m4: Likewise.
37559         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
37560
37561 2008-05-10  Bruno Haible  <bruno@clisp.org>
37562
37563         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
37564         (Input/Output <stdio.h>): Add xprintf.
37565         (Signal handling <signal.h>): Add strsignal.
37566         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
37567         (Core language properties): Add func.
37568         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
37569         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
37570         strings.
37571         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
37572         (Input/output): New section.
37573         (File system functions): Add openat-die, stat-macros.
37574         (Networking functions): Add sockets.
37575         (Unicode string functions): Add unictype/*.
37576         (Support for building libraries and executables): Add gperf.
37577         (Support for building documentation): Add agpl-3.0.
37578         (Misc): Add nocrash.
37579
37580 2008-05-10  Bruno Haible  <bruno@clisp.org>
37581
37582         * modules/unictype/gen-ctype: New file.
37583
37584 2008-05-10  Jim Meyering  <meyering@redhat.com>
37585
37586         Make chdir-safer.c more efficient on a system with no symlinks.
37587         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
37588         also if ELOOP is zero.  Suggested by Bruno Haible.
37589
37590         Make chdir-safer.c slightly safer.
37591         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
37592         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
37593
37594         Avoid compile failure on systems without ELOOP (like mingw).
37595         * lib/chdir-safer.c (ELOOP): Define if not already defined.
37596         Reported by Bruno Haible.
37597
37598 2008-05-10  Bruno Haible  <bruno@clisp.org>
37599
37600         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
37601         (is_utf8_encoding): Use a case-insensitive comparison.
37602         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
37603         streq.
37604
37605 2008-05-10  Bruno Haible  <bruno@clisp.org>
37606
37607         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
37608         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
37609         * lib/unilbrk/ulc-common.h (iconv_string_length,
37610         iconv_string_keeping_offsets): Remove declarations.
37611         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
37612         Don't include <iconv.h>, streq.h, xsize.h.
37613         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
37614         conversion.
37615         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
37616         <iconv.h>, streq.h, xsize.h.
37617         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
37618         conversion.
37619         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
37620         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
37621         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
37622         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
37623
37624 2008-05-10  Bruno Haible  <bruno@clisp.org>
37625
37626         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
37627         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
37628
37629         * modules/unilbrk/u32-width-linebreaks-tests: New file.
37630         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
37631
37632         * modules/unilbrk/u16-width-linebreaks-tests: New file.
37633         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
37634
37635         * modules/unilbrk/u8-width-linebreaks-tests: New file.
37636         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
37637
37638         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
37639         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
37640
37641         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
37642         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
37643
37644         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
37645         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
37646
37647         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
37648         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
37649
37650 2008-05-10  Bruno Haible  <bruno@clisp.org>
37651
37652         Split up 'linebreak' module.
37653         * lib/unilbrk.h: New file, based on lib/linebreak.h.
37654         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
37655         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
37656         modifications.
37657         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
37658         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
37659         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
37660         lib/linebreak.c.
37661         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
37662         lib/linebreak.c.
37663         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
37664         lib/linebreak.c.
37665         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
37666         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
37667         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
37668         lib/linebreak.c.
37669         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
37670         lib/linebreak.c.
37671         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
37672         lib/linebreak.c.
37673         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
37674         lib/linebreak.c.
37675         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
37676         lib/linebreak.c.
37677         * modules/unilbrk/base: New file.
37678         * modules/unilbrk/tables: New file.
37679         * modules/unilbrk/u8-possible-linebreaks: New file.
37680         * modules/unilbrk/u16-possible-linebreaks: New file.
37681         * modules/unilbrk/u32-possible-linebreaks: New file.
37682         * modules/unilbrk/ulc-common: New file.
37683         * modules/unilbrk/ulc-possible-linebreaks: New file.
37684         * modules/unilbrk/u8-width-linebreaks: New file.
37685         * modules/unilbrk/u16-width-linebreaks: New file.
37686         * modules/unilbrk/u32-width-linebreaks: New file.
37687         * modules/unilbrk/ulc-width-linebreaks: New file.
37688         * lib/linebreak.h: Remove file.
37689         * lib/linebreak.c: Remove file.
37690         * m4/linebreak.m4: Remove file.
37691         * modules/linebreak: Remove file.
37692         * NEWS: Mention the changes.
37693
37694 2008-05-09  Eric Blake  <ebb9@byu.net>
37695
37696         Add xmemdup0.
37697         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
37698         implementation.
37699         * lib/xmalloc.c (xmemdup0): New C implementation.
37700
37701 2008-05-08  Bruno Haible  <bruno@clisp.org>
37702
37703         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
37704
37705 2008-05-07  Eric Blake  <ebb9@byu.net>
37706
37707         Support cross-compilation of <wctype.h>.
37708         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
37709         AC_CACHE_CHECK.
37710
37711 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
37712
37713         * build-aux/vc-list-files: Add support for bzr.
37714
37715 2008-05-03  Jim Meyering  <meyering@redhat.com>
37716
37717         avoid failed assertion with tight malloc
37718         * tests/test-getndelim2.c: Correct an off-by-one assertion.
37719
37720 2008-05-03  Simon Josefsson  <simon@josefsson.org>
37721
37722         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
37723         are needed from arpa/inet.h.
37724         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
37725         Reported by Bruno Haible.
37726
37727 2008-05-02  Jim Meyering  <meyering@redhat.com>
37728
37729         avoid compilation error on FreeBSD 6
37730         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
37731
37732 2008-05-01  Jim Meyering  <meyering@redhat.com>
37733
37734         useless-if-before-free: correct --help's exit status description
37735         * build-aux/useless-if-before-free (usage): Like grep, exit 0
37736         for one or more matches, etc.  Reported by Bruno Haible.
37737
37738         vc-list-files: make the stand-alone gnulib test work
37739         * modules/vc-list-files-tests (configure.ac):
37740         Define and AC_SUBST abs_aux_dir.
37741         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
37742         $(abs_top_srcdir) to each script and having each of them
37743         duplicate the work of setting PATH, set PATH here, using
37744         the new variable, abs_aux_dir instead.
37745         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
37746         * tests/test-vc-list-files-git.sh: Likewise.
37747         Reported by Bruno Haible.
37748
37749 2008-05-01  Bruno Haible  <bruno@clisp.org>
37750
37751         * lib/getndelim2.c (getndelim2): Fix newsize computation during
37752         reallocation. Rename 'done' to 'found_delimiter'.
37753
37754 2008-05-01  Jim Meyering  <meyering@redhat.com>
37755
37756         vc-list-files: accommodate /bin/sh like the one from Solaris 10
37757         * build-aux/vc-list-files: Use `...`, not $(...).
37758
37759 2008-04-30  Jim Meyering  <meyering@redhat.com>
37760
37761         add tests for vc-list-files
37762         * modules/vc-list-files-tests: New module.
37763         * tests/test-vc-list-files-cvs.sh: New file.
37764         * tests/test-vc-list-files-git.sh: New file.
37765
37766         avoid a warning from gcc
37767         * lib/getndelim2.c (IF_LINT): Define.
37768         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
37769
37770         vc-list-files: work properly with build-aux/cvsu, too
37771         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
37772         to all cvs-based clauses.
37773
37774         vc-list-files: work properly in the CVS+awk case, too
37775         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
37776
37777         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
37778         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
37779         take more than one file argument, so .  Add quotes, just in case $dir
37780         ever contains a shell meta-character.  Prompted by Soren Hansen in
37781         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
37782
37783 2008-04-29  Eric Blake  <ebb9@byu.net>
37784
37785         Optimize getndelim2 to use block operations when possible.
37786         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
37787         freadseek, and memchr2.
37788         * lib/getndelim2.c (getndelim2): Use them for block reads.
37789
37790 2008-04-29  Bruno Haible  <bruno@clisp.org>
37791
37792         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
37793         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37794         * modules/inet_ntop (Depends-on): Add extensions.
37795         * modules/inet_pton (Depends-on): Likewise.
37796         Reported by Simon Josefsson.
37797
37798 2008-04-29  Jim Meyering  <meyering@redhat.com>
37799
37800         When the is more than one match in a block, match all of them.
37801         * build-aux/useless-if-before-free: Iterate through each block
37802         until there are no more matches.
37803
37804         Fix broken useless-if-before-free script.
37805         * build-aux/useless-if-before-free: Fix typo: missing "?" after
37806         the expression to match cast of argument to free-like function.
37807
37808 2008-04-29  Eric Blake  <ebb9@byu.net>
37809
37810         Use new header.
37811         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
37812
37813 2008-04-29  Jim Meyering  <meyering@redhat.com>
37814
37815         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
37816         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
37817         by gnulib to exist and to declare e.g., inet_ntop.
37818         Don't include "inet_ntop.h", now removed.
37819
37820         * m4/arpa_inet_h.m4: Remove trailing blanks.
37821
37822 2008-04-29  Eric Blake  <ebb9@byu.net>
37823
37824         Silence valgrind on safe reads beyond potential array bounds.
37825         * lib/rawmemchr.valgrind: New file.
37826         * lib/strchrnul.valgrind: Likewise.
37827         * modules/rawmemchr (Files): Distribute new file.
37828         * modules/strchrnul (Files): Likewise.
37829         Suggested by Bruno Haible.
37830
37831 2008-04-29  Bruno Haible  <bruno@clisp.org>
37832
37833         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
37834         (inet_ntop, inet_pton): Change portability warning's wording.
37835         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
37836         Invoke gl_CHECK_NEXT_HEADERS.
37837         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
37838         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
37839         set ARPA_INET_H.
37840         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37841         * modules/arpa_inet (Description): No longer only for systems that
37842         lack it.
37843         (Depends-on): Add include_next.
37844         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
37845         HAVE_ARPA_INET_H.
37846
37847 2008-04-29  Jim Meyering  <meyering@redhat.com>
37848
37849         * modules/mkdir (License): Re-license as LGPLv2+.
37850
37851 2008-04-29  Bruno Haible  <bruno@clisp.org>
37852
37853         * modules/rawmemchr (Maintainer): Set to Eric.
37854         * modules/strchrnul (Maintainer): Likewise.
37855
37856 2008-04-29  Simon Josefsson  <simon@josefsson.org>
37857
37858         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
37859         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
37860
37861         * modules/arpa_inet (arpa/inet.h): Use them.
37862
37863 2008-04-28  Eric Blake  <ebb9@byu.net>
37864
37865         Test getndelim2.
37866         * modules/getndelim2-tests: New file.
37867         * tests/test-getndelim2.c: Likewise.
37868         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
37869         stream.
37870         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
37871
37872         * MODULES.html.sh: Document new module.
37873
37874 2008-04-20  Bruno Haible  <bruno@clisp.org>
37875
37876         * lib/c-stack.c (die): Use raise.
37877         * modules/c-stack (Depends-on): Add raise.
37878
37879 2008-04-28  Bruno Haible  <bruno@clisp.org>
37880
37881         Expect rpmatch to be declared.
37882         * lib/yesno.c (rpmatch): Remove declaration.
37883
37884         Declare rpmatch.
37885         * lib/stdlib.in.h (rpmatch): New declaration.
37886         * lib/rpmatch.c: Include <stdlib.h> first.
37887         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
37888         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
37889         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
37890         HAVE_RPMATCH.
37891         * modules/rpmatch (Depends-on): Add stdlib, extensions.
37892         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37893         (Include): Set to <stdlib.h>.
37894         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
37895         HAVE_RPMATCH.
37896         * NEWS: Document the change.
37897
37898 2008-04-28  Bruno Haible  <bruno@clisp.org>
37899
37900         Change rpmatch to use nl_langinfo when appropriate.
37901         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
37902         (N_): New macro.
37903         (localized_pattern): New function/macro.
37904         (try): Remove match, nomatch arguments. Copy the pattern into safe
37905         memory before caching it.
37906         (rpmatch): Use localized_pattern. Add translator comments.
37907         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
37908         Suggested by Eric Blake.
37909         * modules/rpmatch (Depends-on): Add stdbool.
37910
37911 2008-04-28  Eric Blake  <ebb9@byu.net>
37912
37913         Add rawmemchr module, matching glibc.
37914         * modules/string (Makefile.am): New indicator.
37915         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
37916         * lib/string.in.h (rawmemchr): Declare when appropriate.
37917         * modules/rawmemchr: New file.
37918         * m4/rawmemchr.m4: Likewise.
37919         * lib/rawmemchr.c: Likewise.
37920         * modules/rawmemchr-tests: Likewise.
37921         * tests/test-rawmemchr.c: Likewise.
37922         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
37923         module.
37924         * modules/strchrnul (Depends-on): Add rawmemchr.
37925         * lib/strchrnul.c (strchrnul): Optimize a corner case.
37926
37927         Whitespace cleanup.
37928         * tests/test-strchrnul.c: Reindent.
37929         * lib/strchrnul.c: Likewise.
37930
37931         Optimize and test strchrnul.
37932         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
37933         * modules/strchrnul-tests: New file.
37934         * tests/test-strchrnul.c: Likewise.
37935
37936         Remove intprops dependency.
37937         * modules/memchr (Depends-on): Remove intprops.
37938         * modules/memrchr (Depends-on): Likewise.
37939         * modules/memchr2 (Depends-on): Likewise.
37940         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
37941         * lib/memrchr.c (__memrchr): Likewise.
37942         * lib/memrchr2.c (memchr2): Likewise.
37943         Reported by Simon Josefsson.
37944
37945 2008-04-28  Simon Josefsson  <simon@josefsson.org>
37946
37947         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
37948         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37949
37950 2008-04-28  Simon Josefsson  <simon@josefsson.org>
37951
37952         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
37953
37954         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
37955
37956         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
37957
37958         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
37959         declarations.
37960         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
37961
37962         * m4/inet_pton.m4: Don't check for header files.
37963
37964         * m4/inet_ntop.m4: Don't check for header files.
37965
37966 2008-04-28  Simon Josefsson  <simon@josefsson.org>
37967
37968         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
37969         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
37970         trigger for cygwin).
37971         Reported by Bruno Haible  <bruno@clisp.org>.
37972
37973 2008-04-28  Bruno Haible  <bruno@clisp.org>
37974
37975         * doc/posix-functions/strdup.texi: Mention mingw problem.
37976
37977 2008-04-27  Bruno Haible  <bruno@clisp.org>
37978
37979         * modules/stat-time-tests (Depends-on): Add sleep.
37980         * tests/test-stat-time.c (force_unlink): New function.
37981         (cleanup): Use it.
37982         (test_mtime): Remove the ctime related tests.
37983         (test_ctime): New function, containing the ctime related tests.
37984         (main): Call test_ctime, except on native Windows platforms.
37985
37986 2008-04-27  Bruno Haible  <bruno@clisp.org>
37987
37988         * lib/rpmatch.c (rpmatch): Add some comments.
37989         Reported by James Youngman <jay@gnu.org>.
37990
37991 2008-04-27  Bruno Haible  <bruno@clisp.org>
37992
37993         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
37994         quiet NaNs.
37995
37996 2008-04-27  Bruno Haible  <bruno@clisp.org>
37997
37998         Make test-yesno.sh work on mingw.
37999         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
38000         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
38001         (main): Set stdin to binary mode.
38002         * modules/yesno-tests (Depends-on): Add binary-io.
38003
38004 2008-04-27  Bruno Haible  <bruno@clisp.org>
38005
38006         Fix 'isfinite' on x86, x86_64, ia64 platforms.
38007         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
38008         argument that lie outside the IEEE 854 domain.
38009         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
38010         (gl_ISFINITE): Use it.
38011         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
38012
38013 2008-04-27  Bruno Haible  <bruno@clisp.org>
38014
38015         Allow local renaming in config.h.
38016         * lib/memrchr.c (memrchr): Don't undefine outside libc.
38017
38018 2008-04-27  Bruno Haible  <bruno@clisp.org>
38019
38020         * lib/memchr.c (__memchr): Change type of 'i'.
38021         * lib/memchr2.c (memchr2): Likewise.
38022
38023 2008-04-26  Eric Blake  <ebb9@byu.net>
38024         and Bruno Haible  <bruno@clisp.org>
38025
38026         Optimize and test memrchr.
38027         * modules/memrchr (Depends-on): Add intprops.
38028         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
38029         * modules/memrchr-tests: New file.
38030         * tests/test-memrchr.c: New file.
38031
38032 2008-04-26  Bruno Haible  <bruno@clisp.org>
38033
38034         Add tentative support for DragonFly BSD.
38035         * lib/stdio-impl.h: Add macros for DragonFly BSD.
38036         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
38037         fp.
38038         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
38039         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
38040         * lib/fpurge.c (fpurge): Likewise.
38041         * lib/freadable.c (freaadable): Likewise.
38042         * lib/freadahead.c (freadahead): Likewise.
38043         * lib/freading.c (freading): Likewise.
38044         * lib/freadptr.c (freadptr): Likewise.
38045         * lib/freadseek.c (freadptrinc): Likewise.
38046         * lib/fseeko.c (fseeko): Likewise.
38047         * lib/fseterr.c (fseterr): Likewise.
38048         * lib/fwritable.c (fwritable): Likewise.
38049         * lib/fwriting.c (fwriting): Likewise.
38050
38051 2008-04-26  Bruno Haible  <bruno@clisp.org>
38052
38053         * lib/stdio-impl.h: New file.
38054         * lib/fbufmode.c: Include stdio-impl.h.
38055         (fbufmode): Use fp_, remove redundant #defines.
38056         * lib/fflush.c: Include stdio-impl.h.
38057         (clear_ungetc_buffer): Remove redundant #defines.
38058         * lib/fpurge.c: Include stdio-impl.h.
38059         (fpurge): Remove redundant #defines.
38060         * lib/freadable.c: Include stdio-impl.h.
38061         (freadable): Remove redundant #defines.
38062         * lib/freadahead.c: Include stdio-impl.h.
38063         (freadahead): Remove redundant #defines.
38064         * lib/freading.c: Include stdio-impl.h.
38065         (freading): Remove redundant #defines.
38066         * lib/freadptr.c: Include stdio-impl.h.
38067         (freadptr): Remove redundant #defines.
38068         * lib/freadseek.c: Include stdio-impl.h.
38069         (freadptrinc): Remove redundant #defines.
38070         * lib/fseeko.c: Include stdio-impl.h.
38071         (rpl_fseeko): Remove redundant #defines.
38072         * lib/fseterr.c: Include stdio-impl.h.
38073         (fseterr): Remove redundant #defines.
38074         * lib/fwritable.c: Include stdio-impl.h.
38075         (fwritable: Remove redundant #defines.
38076         * lib/fwriting.c: Include stdio-impl.h.
38077         (fwriting): Remove redundant #defines.
38078         * modules/fbufmode (Files): Add lib/stdio-impl.h.
38079         * modules/fflush (Files): Likewise.
38080         * modules/fpurge (Files): Likewise.
38081         * modules/freadable (Files): Likewise.
38082         * modules/freadahead (Files): Likewise.
38083         * modules/freading (Files): Likewise.
38084         * modules/freadptr (Files): Likewise.
38085         * modules/freadseek (Files): Likewise.
38086         * modules/fseeko (Files): Likewise.
38087         * modules/fseterr (Files): Likewise.
38088         * modules/fwritable (Files): Likewise.
38089         * modules/fwriting (Files): Likewise.
38090
38091 2008-04-26  Bruno Haible  <bruno@clisp.org>
38092
38093         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
38094         restore_seek_optimization, update_fpos_cache): New functions, extracted
38095         from rpl_fflush.
38096         (rpl_fflush): Use them.
38097         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
38098         (gl_REPLACE_FFLUSH): Use it.
38099
38100 2008-04-26  Bruno Haible  <bruno@clisp.org>
38101
38102         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
38103         on Solaris.
38104         * tests/test-xstrtoimax.sh: Likewise.
38105         * tests/test-xstrtoumax.sh: Likewise.
38106         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38107
38108 2008-04-26  Bruno Haible  <bruno@clisp.org>
38109
38110         * modules/memchr-tests: New file.
38111         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
38112
38113 2008-04-26  Eric Blake  <ebb9@byu.net>
38114             Bruno Haible  <bruno@clisp.org>
38115
38116         * lib/memchr.c: Include intprops.h.
38117         (__memchr): Optimize parallel detection of matching bytes. Rename local
38118         variables. Add explanatory comments.
38119
38120 2008-04-26  Bruno Haible  <bruno@clisp.org>
38121
38122         Fix module 'memchr', broken since 2000-10-28.
38123         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
38124
38125 2008-04-26  Bruno Haible  <bruno@clisp.org>
38126
38127         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
38128         comments.
38129
38130 2008-04-25  Eric Blake  <ebb9@byu.net>
38131
38132         Use native fstatat on cygwin 1.7.0.
38133         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
38134         first.
38135
38136 2008-04-23  Eric Blake  <ebb9@byu.net>
38137
38138         Improve memchr2 performance.
38139         * lib/memchr2.c (memchr2): Further optimize parallel detection of
38140         NUL bytes.
38141         * modules/memchr2 (Depends-on): Use intprops.h.
38142
38143 2008-04-23  Simon Josefsson  <simon@josefsson.org>
38144
38145         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
38146         an inline function instead of a CPP macro.  Patch by Ben Pfaff
38147         <blp@cs.stanford.edu>.
38148
38149 2008-04-23  Simon Josefsson  <simon@josefsson.org>
38150
38151         * lib/arpa_inet.in.h: New file.
38152
38153         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
38154         (Makefile.am): Sed in substitute header file.
38155
38156         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
38157         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
38158
38159         * modules/inet_ntop (configure.ac): Use
38160         gl_ARPA_INET_MODULE_INDICATOR.
38161
38162         * modules/inet_pton (configure.ac): Use
38163         gl_ARPA_INET_MODULE_INDICATOR.
38164
38165 2008-04-22  Jim Meyering  <meyering@redhat.com>
38166
38167         * modules/verify (License): Re-license as LGPLv2+.
38168
38169 2008-04-22  Simon Josefsson  <simon@josefsson.org>
38170
38171         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
38172         parameter to void* as per POSIX standard (MinGW uses char*).
38173
38174 2008-04-21  Bruno Haible  <bruno@clisp.org>
38175
38176         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
38177         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
38178         Define to replacements if REPLACE_ISWCNTRL is 1.
38179         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
38180         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
38181         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
38182         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
38183         what it fixes.
38184         * doc/posix-functions/iswalpha.texi: Likewise.
38185         * doc/posix-functions/iswblank.texi: Likewise.
38186         * doc/posix-functions/iswcntrl.texi: Likewise.
38187         * doc/posix-functions/iswdigit.texi: Likewise.
38188         * doc/posix-functions/iswgraph.texi: Likewise.
38189         * doc/posix-functions/iswlower.texi: Likewise.
38190         * doc/posix-functions/iswprint.texi: Likewise.
38191         * doc/posix-functions/iswpunct.texi: Likewise.
38192         * doc/posix-functions/iswspace.texi: Likewise.
38193         * doc/posix-functions/iswupper.texi: Likewise.
38194         * doc/posix-functions/iswxdigit.texi: Likewise.
38195         Reported by Alain Guibert.
38196
38197 2008-04-21  Bruno Haible  <bruno@clisp.org>
38198
38199         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
38200         Patch by Alain Guibert.
38201
38202 2008-04-21  Bruno Haible  <bruno@clisp.org>
38203
38204         Fix test failures on mingw.
38205         * tests/test-xstrtol.c (print_no_progname): New function.
38206         (main): Install it in error_print_progname hook.
38207         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
38208         * tests/test-xstrtoimax.sh: Likewise.
38209         * tests/test-xstrtoumax.sh: Likewise.
38210
38211 2008-04-21  Bruno Haible  <bruno@clisp.org>
38212
38213         Fix test failure on mingw.
38214         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
38215
38216 2008-04-21  Bruno Haible  <bruno@clisp.org>
38217
38218         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
38219         Actually assign a value.
38220
38221 2008-04-20  Bruno Haible  <bruno@clisp.org>
38222
38223         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
38224         take 2.
38225         * lib/canonicalize.c (canonicalize_file_name): Elide if the
38226         'canonicalize-lgpl' module is also used.
38227         * lib/canonicalize-lgpl.c: Undo last change.
38228         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
38229
38230 2008-04-20  Bruno Haible  <bruno@clisp.org>
38231
38232         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
38233         config.h. Provide _mkdir based fallback for mingw.
38234         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
38235         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
38236         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
38237         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
38238         rather than defining mkdir in config.h.
38239         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
38240         (gl_SYS_STAT_H_DEFAULTS): New macro.
38241         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
38242         HAVE_IO_H any more.
38243         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
38244         HAVE_DECL_MKDIR and HAVE_IO_H.
38245
38246 2008-04-20  Bruno Haible  <bruno@clisp.org>
38247
38248         * lib/isapipe.c: Port to native Windows platforms.
38249
38250 2008-04-20  Bruno Haible  <bruno@clisp.org>
38251
38252         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
38253
38254 2008-04-21  Eric Blake  <ebb9@byu.net>
38255
38256         Work around preprocessors that don't handle UINTMAX_MAX.
38257         * lib/memchr2.c (memchr2): Avoid embedded #if.
38258         Reported by Alain Guibert, fix suggested by Bruno Haible.
38259
38260 2008-04-21  Simon Josefsson  <simon@josefsson.org>
38261
38262         * doc/posix-functions/strftime.texi (strftime): Explain better
38263         Windows incompatibility.  Suggested by Micah Cowan
38264         <micah@cowan.name>.
38265
38266 2008-04-20  Bruno Haible  <bruno@clisp.org>
38267
38268         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
38269         unistr/u8-mblen.
38270
38271 2008-04-20  Bruno Haible  <bruno@clisp.org>
38272
38273         Fix test failure on platforms with non-GNU iconv.
38274         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
38275         (U_TO_U8): Use it, rather than u16_to_u8.
38276         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
38277         units at the end of the input string.
38278         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
38279
38280 2008-04-20  Bruno Haible  <bruno@clisp.org>
38281
38282         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
38283         when the resulting length is 0.
38284         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
38285
38286 2008-04-20  Bruno Haible  <bruno@clisp.org>
38287
38288         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
38289         works.
38290         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
38291
38292 2008-04-20  Bruno Haible  <bruno@clisp.org>
38293
38294         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
38295         * modules/tsearch-tests (configure.ac): Test for initstate function.
38296
38297 2008-04-20  Bruno Haible  <bruno@clisp.org>
38298
38299         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
38300         for nlink_t if missing.
38301         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
38302
38303 2008-04-19  Bruno Haible  <bruno@clisp.org>
38304
38305         Work around snprintf bug on Linux libc5.
38306         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
38307         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38308         gl_SNPRINTF_SIZE1.
38309         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38310         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
38311         that test failed.
38312         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
38313         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
38314         * modules/snprintf (Files): Add m4/printf.m4.
38315         * modules/vsnprintf (Files): Likewise.
38316         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
38317         * doc/posix-functions/vsnprintf.texi: Likewise.
38318
38319 2008-04-19  Bruno Haible  <bruno@clisp.org>
38320
38321         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
38322         from 0.0058 to less than 10^-7.
38323
38324 2008-04-19  Bruno Haible  <bruno@clisp.org>
38325
38326         Fix rounding when a precision is given.
38327         * lib/vasnprintf.c (is_borderline): New function.
38328         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
38329         9...9x.
38330         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
38331         %e, %g.
38332         * tests/test-vasprintf-posix.c (test_function): Likewise.
38333         * tests/test-snprintf-posix.h (test_function): Likewise.
38334         * tests/test-sprintf-posix.h (test_function): Likewise.
38335         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
38336         * tests/test-printf-posix.h (test_function): Likewise.
38337         * tests/test-printf-posix.output: Update.
38338         Reported by John Darrington <john@darrington.wattle.id.au> via
38339         Ben Pfaff <blp@cs.stanford.edu>.
38340
38341 2008-04-18  Simon Josefsson  <simon@josefsson.org>
38342
38343         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
38344         Suggested by Bruno Haible <bruno@clisp.org>.
38345
38346 2008-04-17  Bruno Haible  <bruno@clisp.org>
38347
38348         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
38349         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
38350         implementation.
38351         Patch by Bruce Merry <bmerry@gmail.com>.
38352
38353 2008-04-17  Simon Josefsson  <simon@josefsson.org>
38354
38355         * doc/posix-functions/strftime.texi (strftime): Mention that %e
38356         doesn't work under Windows.
38357
38358 2008-04-16  Bruno Haible  <bruno@clisp.org>
38359
38360         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
38361         New macros.
38362         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
38363         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
38364         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
38365         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
38366         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
38367         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
38368         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
38369         macros.
38370         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
38371         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
38372         Northern Sotho, Uighur.
38373
38374 2008-04-16  Bruno Haible  <bruno@clisp.org>
38375
38376         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
38377         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
38378         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
38379         Reported by Daniel Bergström <daniel@octocode.com>.
38380
38381 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
38382             Bruno Haible  <bruno@clisp.org>
38383
38384         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
38385         function.
38386         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
38387         New functions, mostly extracted from gl_locale_name_default.
38388         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
38389
38390 2008-04-16  Eric Blake  <ebb9@byu.net>
38391
38392         Adjust strtod detection to catch glibc 2.7 bug.
38393         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
38394         Reported by John Gatewood Ham.
38395
38396 2008-04-16  Bruno Haible  <bruno@clisp.org>
38397
38398         Add tentative support for Linux libc5.
38399         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
38400         * lib/fpurge.c (fpurge): Likewise.
38401         * lib/freadable.c (freadable): Likewise.
38402         * lib/freadahead.c (freadahead): Likewise.
38403         * lib/freading.c (freading): Likewise.
38404         * lib/freadptr.c (freadptr): Likewise.
38405         * lib/freadseek.c (freadptrinc): Likewise.
38406         * lib/fseeko.c (rpl_fseeko): Likewise.
38407         * lib/fseterr.c (fseterr): Likewise.
38408         * lib/fwritable.c (fwritable): Likewise.
38409         * lib/fwriting.c (fwriting): Likewise.
38410         Reported by Alain Guibert <alguibert+bts@free.fr>.
38411
38412 2008-04-15  Bruno Haible  <bruno@clisp.org>
38413
38414         * modules/mathl (configure.ac): Define module indicator.
38415
38416 2008-04-15  Bruno Haible  <bruno@clisp.org>
38417
38418         * lib/logl.c (logl): Remove unused variables.
38419
38420 2008-04-15  Bruno Haible  <bruno@clisp.org>
38421
38422         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
38423         fails.
38424
38425 2008-04-15  Bruno Haible  <bruno@clisp.org>
38426
38427         * lib/trim.c (trim2): Fix argument of isspace() macro.
38428
38429 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
38430
38431         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
38432         to 0.
38433         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
38434
38435 2008-04-14  Bruno Haible  <bruno@clisp.org>
38436
38437         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
38438         AC_LANG_PROGRAM argument.
38439         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
38440         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
38441         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
38442         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38443         * m4/math_h.m4 (gl_MATH_H): Likewise.
38444         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
38445         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38446         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
38447         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
38448         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
38449         * m4/regex.m4 (gl_REGEX): Likewise.
38450         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
38451         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
38452         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38453         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
38454         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38455         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38456         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38457         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38458
38459 2008-04-14  Jim Meyering  <meyering@redhat.com>
38460
38461         test-strtod: fix typos: s/abs/fabs/
38462         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
38463
38464 2008-04-13  Bruno Haible  <bruno@clisp.org>
38465
38466         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
38467         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
38468         module is also used and while not building the reloc-wrapper.
38469
38470 2008-04-13  Bruno Haible  <bruno@clisp.org>
38471
38472         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
38473
38474 2008-04-13  Bruno Haible  <bruno@clisp.org>
38475
38476         Fix AIX compilation failure introduced on 2008-04-02.
38477         * tests/test-frexp.c (exp): Undefine before redefining.
38478         * tests/test-frexpl.c (exp): Likewise.
38479
38480 2008-04-13  Bruno Haible  <bruno@clisp.org>
38481
38482         Work around a HP-UX stdio bug.
38483         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
38484         * tests/test-ftello.c (main): Likewise.
38485         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
38486         * doc/posix-functions/ftello.texi: Likewise.
38487
38488 2008-04-13  Bruno Haible  <bruno@clisp.org>
38489
38490         Make test-signbit pass on HP-UX/hppa.
38491         * tests/test-signbit.c (minus_zerol): New variable.
38492         (test_signbitl): Use it.
38493
38494 2008-04-13  Bruno Haible  <bruno@clisp.org>
38495
38496         Make truncl work on OSF/1 4.0.
38497         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
38498         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
38499         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
38500         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
38501         HAVE_DECL_TRUNCL.
38502         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
38503         HAVE_DECL_TRUNCL.
38504         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
38505
38506 2008-04-13  Bruno Haible  <bruno@clisp.org>
38507
38508         * lib/unictype.h: Remove trailing comma from enumeration definitions.
38509
38510 2008-04-13  Bruno Haible  <bruno@clisp.org>
38511
38512         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
38513         expression, so as to avoid HP-UX 11 cc compiler bug.
38514
38515 2008-04-13  Bruno Haible  <bruno@clisp.org>
38516
38517         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
38518
38519 2008-04-13  Bruno Haible  <bruno@clisp.org>
38520
38521         * lib/git-merge-changelog.c: Remove empty declaration outside of
38522         functions.
38523
38524 2008-04-13  Bruno Haible  <bruno@clisp.org>
38525
38526         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
38527
38528 2008-04-13  Bruno Haible  <bruno@clisp.org>
38529
38530         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
38531         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
38532         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
38533         also if it exists but lacks definitions of the SHUT_* macros.
38534         * modules/sys_socket (Description): Update.
38535         Reported by Elbert Pol <e.pol@chello.nl>.
38536
38537 2008-04-13  Bruno Haible  <bruno@clisp.org>
38538
38539         * lib/localcharset.c (OS2): Don't redefine if already defined.
38540         Reported by Elbert Pol <e.pol@chello.nl>.
38541
38542 2008-04-13  Bruno Haible  <bruno@clisp.org>
38543
38544         * lib/binary-io.h [__EMX__]: Include <io.h>.
38545         Reported by Elbert Pol <e.pol@chello.nl>.
38546
38547 2008-04-12  Bruno Haible  <bruno@clisp.org>
38548
38549         * lib/fpucw.h: Enable the definitions also for x86_64.
38550         Needed for NetBSD/x86_64.
38551         Reported by Thomas Klausner <tk@giga.or.at>.
38552
38553 2008-04-12  Bruno Haible  <bruno@clisp.org>
38554
38555         * tests/test-strtod.c: Include isnand.h.
38556         (main): Use isnand instead of isnan.
38557         Reported by Jim Meyering.
38558
38559 2008-04-12  Bruno Haible  <bruno@clisp.org>
38560
38561         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
38562         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38563
38564 2008-04-12  Jim Meyering  <meyering@redhat.com>
38565
38566         * m4/math_h.m4 (gl_MATH_H): Fix typos.
38567
38568 2008-04-12  Bruno Haible  <bruno@clisp.org>
38569
38570         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
38571         Reported by Elbert Pol <e.pol@chello.nl>.
38572
38573 2008-04-12  Eric Blake  <ebb9@byu.net>
38574
38575         Work around Solaris 10 math.h bug.
38576         * m4/math_h.m4 (gl_MATH_H): Check for bug.
38577         (gl_MATH_H_DEFAULTS): Set up default.
38578         * modules/math (Makefile.am): Replace new indicators.
38579         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
38580         * tests/test-math.c (main): Test this.
38581         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
38582         * doc/posix-headers/math.texi (math.h): Mention bug.
38583         Reported by Nelson H. F. Beebe and Jim Meyering.
38584
38585 2008-04-11  Bruno Haible  <bruno@clisp.org>
38586
38587         Adapt to future versions of Apple GCC.
38588         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
38589         Reported by Peter O'Gorman <peter@pogma.com>.
38590
38591 2008-04-11  Bruno Haible  <bruno@clisp.org>
38592
38593         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
38594
38595 2008-04-11  Bruno Haible  <bruno@clisp.org>
38596
38597         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
38598
38599         * modules/getaddrinfo-tests (Makefile.am): Define
38600         test_getaddrinfo_LDADD.
38601
38602 2008-04-11  Bruno Haible  <bruno@clisp.org>
38603
38604         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
38605         (init): Fix syntax error.
38606         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
38607         is declared.
38608
38609 2008-04-11  Bruno Haible  <bruno@clisp.org>
38610
38611         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
38612         * modules/glob (Depends-on): Add stdbool.
38613
38614 2008-04-11  Bruno Haible  <bruno@clisp.org>
38615
38616         * lib/trim.c: Include <string.h>.
38617
38618 2008-04-11  Eric Blake  <ebb9@byu.net>
38619
38620         Avoid compile failure on OS/2.
38621         * lib/regex_internal.h (internal_function): Disable optimization
38622         on OS/2 (__EMX__), where it caused compiler error.
38623         Reported by Elbert Pol.
38624
38625 2008-04-11  Bruno Haible  <bruno@clisp.org>
38626
38627         Flush the standard error stream before aborting. Needed on mingw.
38628         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
38629         * tests/test-array_list.c (ASSERT): Likewise.
38630         * tests/test-array_oset.c (ASSERT): Likewise.
38631         * tests/test-avltree_list.c (ASSERT): Likewise.
38632         * tests/test-avltree_oset.c (ASSERT): Likewise.
38633         * tests/test-avltreehash_list.c (ASSERT): Likewise.
38634         * tests/test-binary-io.c (ASSERT): Likewise.
38635         * tests/test-byteswap.c (ASSERT): Likewise.
38636         * tests/test-c-ctype.c (ASSERT): Likewise.
38637         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
38638         * tests/test-c-strcasestr.c (ASSERT): Likewise.
38639         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
38640         * tests/test-c-strstr.c (ASSERT): Likewise.
38641         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
38642         * tests/test-canonicalize.c (ASSERT): Likewise.
38643         * tests/test-carray_list.c (ASSERT): Likewise.
38644         * tests/test-ceilf1.c (ASSERT): Likewise.
38645         * tests/test-ceilf2.c (ASSERT): Likewise.
38646         * tests/test-ceill.c (ASSERT): Likewise.
38647         * tests/test-count-one-bits.c (ASSERT): Likewise.
38648         * tests/test-fbufmode.c (ASSERT): Likewise.
38649         * tests/test-fflush2.c (ASSERT): Likewise.
38650         * tests/test-floorf1.c (ASSERT): Likewise.
38651         * tests/test-floorf2.c (ASSERT): Likewise.
38652         * tests/test-floorl.c (ASSERT): Likewise.
38653         * tests/test-fopen.c (ASSERT): Likewise.
38654         * tests/test-fpending.c (ASSERT): Likewise.
38655         * tests/test-fprintf-posix.c (ASSERT): Likewise.
38656         * tests/test-fpurge.c (ASSERT): Likewise.
38657         * tests/test-freadable.c (ASSERT): Likewise.
38658         * tests/test-freadahead.c (ASSERT): Likewise.
38659         * tests/test-freading.c (ASSERT): Likewise.
38660         * tests/test-freadptr.c (ASSERT): Likewise.
38661         * tests/test-freadptr2.c (ASSERT): Likewise.
38662         * tests/test-freadseek.c (ASSERT): Likewise.
38663         * tests/test-freopen.c (ASSERT): Likewise.
38664         * tests/test-frexp.c (ASSERT): Likewise.
38665         * tests/test-frexpl.c (ASSERT): Likewise.
38666         * tests/test-fseek.c (ASSERT): Likewise.
38667         * tests/test-fseeko.c (ASSERT): Likewise.
38668         * tests/test-fstrcmp.c (ASSERT): Likewise.
38669         * tests/test-ftell.c (ASSERT): Likewise.
38670         * tests/test-ftello.c (ASSERT): Likewise.
38671         * tests/test-func.c (ASSERT): Likewise.
38672         * tests/test-fwritable.c (ASSERT): Likewise.
38673         * tests/test-fwriting.c (ASSERT): Likewise.
38674         * tests/test-getdelim.c (ASSERT): Likewise.
38675         * tests/test-getline.c (ASSERT): Likewise.
38676         * tests/test-i-ring.c (ASSERT): Likewise.
38677         * tests/test-iconv-utf.c (ASSERT): Likewise.
38678         * tests/test-iconv.c (ASSERT): Likewise.
38679         * tests/test-isfinite.c (ASSERT): Likewise.
38680         * tests/test-isnand.c (ASSERT): Likewise.
38681         * tests/test-isnanf.c (ASSERT): Likewise.
38682         * tests/test-isnanl.h (ASSERT): Likewise.
38683         * tests/test-ldexpl.c (ASSERT): Likewise.
38684         * tests/test-linked_list.c (ASSERT): Likewise.
38685         * tests/test-linkedhash_list.c (ASSERT): Likewise.
38686         * tests/test-localename.c (ASSERT): Likewise.
38687         * tests/test-lseek.c (ASSERT): Likewise.
38688         * tests/test-mbscasecmp.c (ASSERT): Likewise.
38689         * tests/test-mbscasestr1.c (ASSERT): Likewise.
38690         * tests/test-mbscasestr2.c (ASSERT): Likewise.
38691         * tests/test-mbscasestr3.c (ASSERT): Likewise.
38692         * tests/test-mbscasestr4.c (ASSERT): Likewise.
38693         * tests/test-mbschr.c (ASSERT): Likewise.
38694         * tests/test-mbscspn.c (ASSERT): Likewise.
38695         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
38696         * tests/test-mbspbrk.c (ASSERT): Likewise.
38697         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
38698         * tests/test-mbsrchr.c (ASSERT): Likewise.
38699         * tests/test-mbsspn.c (ASSERT): Likewise.
38700         * tests/test-mbsstr1.c (ASSERT): Likewise.
38701         * tests/test-mbsstr2.c (ASSERT): Likewise.
38702         * tests/test-mbsstr3.c (ASSERT): Likewise.
38703         * tests/test-memchr2.c (ASSERT): Likewise.
38704         * tests/test-memmem.c (ASSERT): Likewise.
38705         * tests/test-open.c (ASSERT): Likewise.
38706         * tests/test-printf-frexp.c (ASSERT): Likewise.
38707         * tests/test-printf-frexpl.c (ASSERT): Likewise.
38708         * tests/test-printf-posix.c (ASSERT): Likewise.
38709         * tests/test-quotearg.c (ASSERT): Likewise.
38710         * tests/test-rbtree_list.c (ASSERT): Likewise.
38711         * tests/test-rbtree_oset.c (ASSERT): Likewise.
38712         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
38713         * tests/test-round1.c (ASSERT): Likewise.
38714         * tests/test-roundf1.c (ASSERT): Likewise.
38715         * tests/test-roundl.c (ASSERT): Likewise.
38716         * tests/test-signbit.c (ASSERT): Likewise.
38717         * tests/test-sleep.c (ASSERT): Likewise.
38718         * tests/test-snprintf-posix.c (ASSERT): Likewise.
38719         * tests/test-snprintf.c (ASSERT): Likewise.
38720         * tests/test-sprintf-posix.c (ASSERT): Likewise.
38721         * tests/test-stat-time.c (ASSERT): Likewise.
38722         * tests/test-strcasestr.c (ASSERT): Likewise.
38723         * tests/test-strerror.c (ASSERT): Likewise.
38724         * tests/test-striconv.c (ASSERT): Likewise.
38725         * tests/test-striconveh.c (ASSERT): Likewise.
38726         * tests/test-striconveha.c (ASSERT): Likewise.
38727         * tests/test-strsignal.c (ASSERT): Likewise.
38728         * tests/test-strstr.c (ASSERT): Likewise.
38729         * tests/test-strtod.c (ASSERT): Likewise.
38730         * tests/test-trunc1.c (ASSERT): Likewise.
38731         * tests/test-trunc2.c (ASSERT): Likewise.
38732         * tests/test-truncf1.c (ASSERT): Likewise.
38733         * tests/test-truncf2.c (ASSERT): Likewise.
38734         * tests/test-truncl.c (ASSERT): Likewise.
38735         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
38736         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
38737         * tests/test-vasnprintf.c (ASSERT): Likewise.
38738         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
38739         * tests/test-vasprintf.c (ASSERT): Likewise.
38740         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
38741         * tests/test-vprintf-posix.c (ASSERT): Likewise.
38742         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
38743         * tests/test-vsnprintf.c (ASSERT): Likewise.
38744         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
38745         * tests/test-wcwidth.c (ASSERT): Likewise.
38746         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
38747         * tests/test-xprintf-posix.c (ASSERT): Likewise.
38748         * tests/test-xvasprintf.c (ASSERT): Likewise.
38749         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
38750         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
38751         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
38752         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
38753         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
38754         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
38755         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
38756         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
38757         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
38758         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
38759         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
38760         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
38761         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
38762         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
38763         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
38764         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
38765         * tests/unictype/test-block_list.c (ASSERT): Likewise.
38766         * tests/unictype/test-block_of.c (ASSERT): Likewise.
38767         * tests/unictype/test-block_test.c (ASSERT): Likewise.
38768         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
38769         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
38770         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
38771         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
38772         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
38773         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
38774         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
38775         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
38776         * tests/unictype/test-combining.c (ASSERT): Likewise.
38777         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
38778         * tests/unictype/test-digit.c (ASSERT): Likewise.
38779         * tests/unictype/test-mirror.c (ASSERT): Likewise.
38780         * tests/unictype/test-numeric.c (ASSERT): Likewise.
38781         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
38782         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
38783         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
38784         * tests/unictype/test-scripts.c (ASSERT): Likewise.
38785         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
38786         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
38787         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
38788         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
38789         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
38790         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
38791         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
38792         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
38793         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
38794         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
38795         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
38796         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
38797         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
38798         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
38799         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
38800         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
38801         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
38802         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
38803         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
38804         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
38805         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
38806         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
38807         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
38808         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
38809         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
38810         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
38811         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
38812         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
38813         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
38814         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
38815         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
38816         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
38817         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
38818         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
38819         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
38820         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
38821         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
38822         Reported by Eric Blake.
38823
38824 2008-04-11  Bruno Haible  <bruno@clisp.org>
38825
38826         * lib/wchar.in.h: Tweak comment.
38827
38828 2008-04-11  Bruno Haible  <bruno@clisp.org>
38829
38830         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
38831         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
38832         gl_COMMON.
38833         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
38834
38835 2008-04-11  Bruno Haible  <bruno@clisp.org>
38836
38837         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
38838
38839 2008-04-11  Simon Josefsson  <simon@josefsson.org>
38840
38841         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
38842         of attempting to use non-existing /dev/*random.  Based on patch
38843         from Adam Strzelecki <ono@java.pl> in
38844         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
38845
38846 2008-04-08  Bruno Haible  <bruno@clisp.org>
38847
38848         Add tentative support for emx+gcc.
38849         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
38850         * lib/fpurge.c (fpurge): Likewise.
38851         * lib/freadable.c (freadable): Likewise.
38852         * lib/freadahead.c (freadahead): Likewise.
38853         * lib/freading.c (freading): Likewise.
38854         * lib/freadptr.c (freadptr): Likewise.
38855         * lib/freadseek.c (freadptrinc): Likewise.
38856         * lib/fseeko.c (rpl_fseeko): Likewise.
38857         * lib/fseterr.c (fseterr): Likewise.
38858         * lib/fwritable.c (fwritable): Likewise.
38859         * lib/fwriting.c (fwriting): Likewise.
38860         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
38861
38862 2008-04-09  Eric Blake  <ebb9@byu.net>
38863
38864         Avoid some autoconf warnings.
38865         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
38866         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
38867         * m4/afs.m4 (gl_AFS): Likewise.
38868         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
38869         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
38870         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38871         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
38872         (gl_INTEGER_TYPE_SUFFIX): Likewise.
38873         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
38874         (AC_CHECK_DECLS_ONCE): Likewise.
38875         Rename file...
38876         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
38877         gnulib-tool requires autoconf 2.59 or better.
38878         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
38879
38880 2008-04-08  Eric Blake  <ebb9@byu.net>
38881
38882         Use 'git describe --match' if present (added in git 1.5.5).
38883         * build-aux/git-version-gen: Limit result to tags that match 'v*'
38884         if possible.
38885
38886 2008-04-08  Bruno Haible  <bruno@clisp.org>
38887
38888         Add tentative support for OpenServer.
38889         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
38890         _ptr, _cnt.
38891         * lib/fpurge.c (fpurge): Likewise.
38892         * lib/freadable.c (freadable): Likewise.
38893         * lib/freadahead.c (freadahead): Likewise.
38894         * lib/freading.c (freading): Likewise.
38895         * lib/freadptr.c (freadptr): Likewise.
38896         * lib/freadseek.c (freadptrinc): Likewise.
38897         * lib/fseeko.c (rpl_fseeko): Likewise.
38898         * lib/fseterr.c (fseterr): Likewise.
38899         * lib/fwritable.c (fwritable): Likewise.
38900         * lib/fwriting.c (fwriting): Likewise.
38901         Reported by Roger Cornelius <rac@tenzing.org> and
38902         Brian K. White <brian@aljex.com>.
38903
38904 2008-04-06  Jim Meyering  <meyering@redhat.com>
38905
38906         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
38907
38908 2008-04-06  Bruno Haible  <bruno@clisp.org>
38909
38910         Avoid possible error with non-ASCII bytes in UTF-8 locales.
38911         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
38912         * tests/test-printf-posix.sh: Likewise.
38913         * tests/test-vfprintf-posix.sh: Likewise.
38914         * tests/test-vprintf-posix.sh: Likewise.
38915         * tests/test-xprintf-posix.sh: Likewise.
38916
38917 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38918
38919         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
38920         hide error from 'ls', needed on OS/2.
38921         Report by Elbert Pol <elbert.pol@gmail.com>.
38922
38923 2008-04-04  Eric Blake  <ebb9@byu.net>
38924
38925         Make test-fseeko.c failures meaningful.
38926         * tests/test-fseeko.c: Print line number on failure.
38927         * tests/test-fseek.c: Likewise.
38928         Reported by Nelson H. F. Beebe.
38929
38930         Improve strtod bug detection check.
38931         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
38932         required for Solaris 10.
38933         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
38934
38935 2008-04-04  Bruno Haible  <bruno@clisp.org>
38936
38937         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
38938         by m4/setenv.m4.
38939
38940 2008-04-03  Eric Blake  <ebb9@byu.net>
38941
38942         Ensure sane .version contents.
38943         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
38944         version string.
38945         * build-aux/git-version-gen: Improve documentation.
38946
38947         Make GNU make output nicer.
38948         * top/GNUmakefile [!_have-Makefile]: Add dependency on
38949         MAKECMDGOALS to enforce message for all command line targets.  Set
38950         srcdir for use in maint.mk.
38951
38952         Another maintainer tweak.
38953         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
38954         a target that regenerates version.
38955
38956 2008-04-03  Jim Meyering  <meyering@redhat.com>
38957
38958         vc-list-files: don't cause coreutils "make po-check" failure
38959         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
38960
38961 2008-04-03  Eric Blake  <ebb9@byu.net>
38962
38963         Allow VPATH usage of vc-list-files.
38964         * build-aux/vc-list-files (scriptversion): Add timestamp.
38965         (options): Add --help, --version, -C.
38966         (CVS): Support installed cvsu.
38967
38968 2008-04-02  Bruno Haible  <bruno@clisp.org>
38969
38970         Avoid some "statement with no effect" warnings from gcc.
38971         * tests/test-wctype.c (main): Explicitly ignore unused values.
38972         Reported by Jim Meyering.
38973
38974 2008-04-02  Jim Meyering  <meyering@redhat.com>
38975
38976         Avoid some warnings from "gcc -Wshadow".
38977         * tests/test-frexp.c (exp): Define to a different identifier.
38978         * tests/test-frexpl.c (exp): Likewise.
38979
38980 2008-04-03  Jim Meyering  <meyering@redhat.com>
38981
38982         bootstrap: remove dangling *.[ch] symlinks from lib
38983         * build-aux/bootstrap [dangling symlink removal]: Move find's
38984         -depth option to precede all others, to avoid a warning.
38985         Remove *.[ch] files too, and from "$source_base" (usually lib/).
38986
38987 2008-04-02  Bruno Haible  <bruno@clisp.org>
38988
38989         Avoid some warnings from "gcc -Wshadow".
38990         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
38991         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
38992         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
38993         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
38994         Reported by Jim Meyering.
38995
38996 2008-04-01  Bruno Haible  <bruno@clisp.org>
38997
38998         Fix test to work on IRIX 6.5 with cc.
38999         * tests/test-math.c (numeric_equal): New function.
39000         (main): Use it.
39001
39002 2008-04-01  Bruno Haible  <bruno@clisp.org>
39003
39004         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
39005
39006 2008-04-01  Bruno Haible  <bruno@clisp.org>
39007
39008         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
39009         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39010         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
39011         (Depends-on): Remove math.
39012
39013         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
39014         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39015         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
39016         (Depends-on): Remove math.
39017
39018         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
39019         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39020         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
39021         (Depends-on): Remove math.
39022         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
39023         (Depends-on): Remove math.
39024
39025         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
39026         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39027         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
39028         (Depends-on): Remove math.
39029         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
39030         (Depends-on): Remove math.
39031
39032         * tests/test-round1.c: Include nan.h.
39033         (main): Use NaNd instead of NAN.
39034         * modules/round-tests (Files): Add tests/nan.h.
39035
39036         * tests/test-trunc1.c: Include nan.h.
39037         (main): Use NaNd instead of NAN.
39038         * modules/trunc-tests (Files): Add tests/nan.h.
39039
39040         * tests/test-roundf1.c: Include nan.h.
39041         (main): Use NaNf instead of NAN.
39042         * modules/roundf-tests (Files): Add tests/nan.h.
39043
39044         * tests/test-truncf1.c: Include nan.h.
39045         (main): Use NaNf instead of NAN.
39046         * modules/truncf-tests (Files): Add tests/nan.h.
39047
39048         * tests/test-ceilf1.c: Include nan.h.
39049         (main): Use NaNf instead of NAN.
39050         * modules/ceilf-tests (Files): Add tests/nan.h.
39051
39052         * tests/test-floorf1.c: Include nan.h.
39053         (main): Use NaNf instead of NAN.
39054         * modules/floorf-tests (Files): Add tests/nan.h.
39055
39056         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
39057         (main): Use NaNf instead of NAN.
39058         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
39059
39060         * tests/test-isnand.c: Include nan.h instead of <math.h>.
39061         (main): Use NaNd instead of NAN.
39062         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
39063
39064         * tests/test-frexp.c: Include nan.h.
39065         (main): Use NaNd instead of NAN.
39066         * modules/frexp-tests (Files): Add tests/nan.h.
39067
39068         * lib/isnan.c: Don't include <math.h>.
39069         (FUNC): Don't use NAN macro.
39070         * modules/isnand-nolibm (Depends-on): Remove math.
39071         * modules/isnanf-nolibm (Depends-on): Remove math.
39072         * modules/isnanl (Depends-on): Remove math.
39073         * modules/isnanl-nolibm (Depends-on): Remove math.
39074
39075         * tests/nan.h: New file.
39076
39077 2008-04-01  Eric Blake  <ebb9@byu.net>
39078
39079         Fix typos.
39080         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
39081         values to be the right type.
39082
39083         For now, cater to gnulib strtod inaccuracies.
39084         * tests/test-strtod.c (main): Allow 1-ulp error on expected
39085         fractional results.  While not as nice from a QoI perspective, it
39086         is a quicker patch than correctly implementing decimal to binary
39087         rounding.
39088
39089 2008-03-31  Eric Blake  <ebb9@byu.net>
39090
39091         Guarantee a definition of NAN.
39092         * lib/math.in.h (NAN): Define if missing.
39093         * tests/test-math.c (main): Test it.
39094         * doc/posix-headers/math.texi (math.h): Document this.
39095         * lib/isnan.c (rpl_isnand): Use it.
39096         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
39097         * tests/test-floorf1.c (NaN): Likewise.
39098         * tests/test-frexp.c (NaN): Likewise.
39099         * tests/test-isnand.c (NaN): Likewise.
39100         * tests/test-isnanf.c (NaN): Likewise.
39101         * tests/test-round1.c (NaN): Likewise.
39102         * tests/test-roundf1.c (NaN): Likewise.
39103         * tests/test-snprintf-posix.h (NaN): Likewise.
39104         * tests/test-sprintf-posix.h (NaN): Likewise.
39105         * tests/test-trunc1.c (NaN): Likewise.
39106         * tests/test-truncf1.c (NaN): Likewise.
39107         * tests/test-vasnprintf-posix.c (NaN): Likewise.
39108         * tests/test-vasprintf-posix.c (NaN): Likewise.
39109         * modules/isnand-nolibm (Depends-on): Add math.
39110         * modules/isnanf-nolibm (Depends-on): Likewise.
39111         * modules/isnanl (Depends-on): Likewise.
39112         * modules/isnanl-nolibm (Depends-on): Likewise.
39113         * modules/snprintf-posix-tests (Depends-on): Likewise.
39114         * modules/sprintf-posix-tests (Depends-on): Likewise.
39115         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
39116         * modules/vsprintf-posix-tests (Depends-on): Likewise.
39117         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
39118         * modules/vasprintf-posix-tests (Depends-on): Likewise.
39119
39120 2008-03-31  Bruno Haible  <bruno@clisp.org>
39121
39122         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
39123         * doc/posix-functions/strtod.texi: Likewise.
39124
39125 2008-03-31  Bruno Haible  <bruno@clisp.org>
39126
39127         * tests/test-strtod.c (main): Don't use C99 syntax.
39128
39129 2008-03-31  Bruno Haible  <bruno@clisp.org>
39130
39131         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
39132         Reported by Eric Blake.
39133
39134 2008-03-31  Jim Meyering  <meyering@redhat.com>
39135
39136         Don't compare actual signbit return values.
39137         * tests/test-strtod.c (main): Rather, compare only their
39138         zero/non-zero nature.
39139
39140 2008-03-31  Eric Blake  <ebb9@byu.net>
39141
39142         More strtod documentation.
39143         * doc/posix-functions/strtod.texi (strtod): Interpret more test
39144         failures as distinct bugs.
39145
39146 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
39147
39148         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
39149         Problem reported by Erik Benada in
39150         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
39151
39152 2008-03-30  Bruno Haible  <bruno@clisp.org>
39153
39154         * tests/test-strtod.c: Add comments about which assertion fails on which
39155         platform.
39156         * doc/posix-functions/strtod.texi: Add info about many more platforms.
39157
39158 2008-03-30  Eric Blake  <ebb9@byu.net>
39159
39160         Test signbit behavior on zeros.
39161         * tests/test-signbit.c (test_signbitf): Add tests for zero.
39162         (test_signbitd, test_signbitl): Likewise.
39163
39164         More strtod touchups.
39165         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
39166         sign of negative underflow, for now.  Use .5, not .1.
39167         * doc/posix-functions/strtod.texi (strtod): Mention these
39168         limitations.
39169         Reported by Jim Meyering.
39170
39171 2008-03-30  Bruno Haible  <bruno@clisp.org>
39172
39173         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
39174         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
39175
39176 2008-03-30  Bruno Haible  <bruno@clisp.org>
39177
39178         Avoid failure when attempting to return empty iconv results on some
39179         platforms.
39180         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
39181         allocation, don't report ENOMEM when the resulting string is empty.
39182
39183 2008-03-30  Bruno Haible  <bruno@clisp.org>
39184
39185         Fix buffer overrun.
39186         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
39187         Don't consider the width for tmp_length. Check count against tmp_length
39188         before doing the padding. Ensure enough allocation during padding.
39189
39190 2008-03-30  Eric Blake  <ebb9@byu.net>
39191
39192         strtod touchups.
39193         * lib/strtod.c (strtod): Avoid compiler warnings.
39194         Reported by Jim Meyering.
39195
39196 2008-03-30  Bruno Haible  <bruno@clisp.org>
39197
39198         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
39199         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
39200         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
39201         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
39202         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
39203         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
39204         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
39205         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
39206
39207         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
39208         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
39209         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
39210         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
39211         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
39212         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
39213         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
39214         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
39215
39216         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
39217         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
39218         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
39219         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
39220         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
39221         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
39222         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
39223         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
39224
39225         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
39226         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
39227
39228         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
39229         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
39230
39231         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
39232         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
39233
39234         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
39235         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
39236         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
39237
39238         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
39239         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
39240         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
39241
39242         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
39243         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
39244         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
39245
39246         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
39247         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
39248         * modules/vasprintf (Depends-on): Add EOVERFLOW.
39249
39250         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
39251         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
39252         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
39253         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
39254         (Depends-on): Add EOVERFLOW.
39255         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
39256         (Depends-on): Add EOVERFLOW.
39257         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
39258         (Depends-on): Add EOVERFLOW.
39259         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
39260         (Depends-on): Add EOVERFLOW.
39261         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
39262         (Depends-on): Add EOVERFLOW.
39263         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
39264         (Depends-on): Add EOVERFLOW.
39265         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
39266         (Depends-on): Add EOVERFLOW.
39267         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
39268         (Depends-on): Add EOVERFLOW.
39269
39270         * lib/sprintf.c (EOVERFLOW): Remove fallback.
39271         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
39272         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
39273
39274         * lib/snprintf.c (EOVERFLOW): Remove fallback.
39275         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
39276         * modules/snprintf (Depends-on): Add EOVERFLOW.
39277
39278         * lib/poll.c (EOVERFLOW): Remove fallback.
39279         * modules/poll (Depends-on): Add EOVERFLOW.
39280
39281         * lib/getugroups.c (EOVERFLOW): Remove fallback.
39282         * modules/getugroups (Depends-on): Add EOVERFLOW.
39283
39284         * lib/getdelim.c (EOVERFLOW): Remove fallback.
39285         * modules/getdelim (Depends-on): Add EOVERFLOW.
39286
39287         * lib/ftell.c (EOVERFLOW): Remove fallback.
39288         * modules/ftell (Depends-on): Add EOVERFLOW.
39289
39290         * lib/fprintf.c (EOVERFLOW): Remove fallback.
39291         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
39292         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
39293
39294         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
39295
39296         * modules/EOVERFLOW-tests: New file.
39297         * tests/test-EOVERFLOW.c: New file.
39298
39299         * modules/EOVERFLOW: New file.
39300         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
39301
39302 2008-03-30  Bruno Haible  <bruno@clisp.org>
39303
39304         Fix bug introduced on 2007-06-10.
39305         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
39306         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
39307
39308 2008-03-30  Bruno Haible  <bruno@clisp.org>
39309
39310         Improve freadseek's efficiency after ungetc.
39311         * lib/freadseek.c: Include freadahead.h.
39312         (freadptrinc): New function, extracted from freadseek.
39313         (freadseek): Use it in a loop. Use freadahead to determine the number
39314         of loop iterations.
39315         * modules/freadseek (Depends-on): Add freadahead.
39316         (configure.ac): Require AC_C_INLINE.
39317
39318 2008-03-30  Bruno Haible  <bruno@clisp.org>
39319
39320         * lib/freadseek.c (freadseek): Don't ignore the return value of
39321         freadptr.
39322
39323 2008-03-29  Eric Blake  <ebb9@byu.net>
39324
39325         Add hex float support.
39326         * modules/strtod (Depends-on): Add c-ctype.
39327         (Link): Mention POW_LIB.
39328         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
39329         whitespace between 'e' and exponent.
39330         * tests/test-strtod.c (main): Enable hex float tests.
39331         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
39332         now provides.
39333
39334         Document various strtod bugs, with some fixes.
39335         * doc/posix-functions/strtod.texi (strtod): Document bugs with
39336         "-0x", "inf", "nan", and hex constants.
39337         * doc/posix-functions/atof.texi (atof): Likewise.
39338         * modules/stdlib (Makefile.am): Support strtod.
39339         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
39340         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
39341         detect additional strtod bugs.
39342         * lib/stdlib.in.h (rpl_strtod): Add declarations.
39343         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
39344         bool where appropriate.  Parse 'inf' and 'nan'.
39345         * tests/test-strtod.c: New file.
39346         * modules/strtod (Depends-on): Add stdbool, stdlib.
39347         (configure.ac): Turn on module indicator.
39348         * modules/strtod-tests: New module.
39349
39350 2008-03-29  Eric Blake  <ebb9@byu.net>
39351
39352         Fix ftell on mingw.
39353         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
39354         * modules/ftell-tests (Depends-on): Add binary-io.
39355         * modules/ftello-tests (Depends-on): Likewise.
39356         * tests/test-ftell.c (main): Enhance test to cover behavior after
39357         ungetc.  Enforce binary mode.
39358         * tests/test-ftello.c (main): Likewise.
39359
39360         Pass test-freadseek on cygwin.
39361         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
39362         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
39363         ungetc buffer.
39364
39365         * tests/test-fflush2.c (main): Fix typo.
39366
39367 2008-03-29  Bruno Haible  <bruno@clisp.org>
39368
39369         * tests/test-fflush2.c (main): Temporarily disable the contents of
39370         this test.
39371         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
39372         Reported by Eric Blake.
39373
39374 2008-03-28  Simon Josefsson  <simon@josefsson.org>
39375
39376         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
39377         (GC_SHA224_DIGEST_SIZE): Add.
39378
39379         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
39380         (gc_hash_digest_length): Likewise.
39381         (gc_hash_buffer): Likewise.
39382
39383 2008-03-25  Bruno Haible  <bruno@clisp.org>
39384
39385         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
39386         detail which gettext release to use.
39387         Reported by Simon Josefsson.
39388
39389 2008-03-26  Jim Meyering  <meyering@redhat.com>
39390
39391         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
39392         * modules/gnumakefile (clean-GNUmakefile): Also, use
39393         test ... && ... || : syntax rather than if-then ... fi.
39394
39395         gnumakefile: Don't double-quote-expand $(VPATH) value.
39396         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
39397
39398 2008-03-24  Eric Blake  <ebb9@byu.net>
39399
39400         Alter GNUmakefile to install into top directory.
39401         * modules/maintainer-makefile: Split, and add dependency...
39402         * modules/gnumakefile: to this new module.
39403         * build-aux/GNUmakefile: Move...
39404         * top/GNUmakefile: ...here.
39405         * build-aux/maint.mk: Move...
39406         * top/maint.mk: ...here.
39407         * MODULES.html.sh (Support for maintaining...): Document new
39408         module.
39409
39410 2008-03-23  Bruno Haible  <bruno@clisp.org>
39411
39412         * gnulib-tool: New options --vc-files, --no-vc-files.
39413         (func_usage): Document them.
39414         (vc_files): New variable.
39415         (func_import): Consider vc_files.
39416         (func_create_testdir): Set vc_files to empty.
39417         Suggested by Jim Meyering and Karl Berry.
39418
39419 2008-03-23  Bruno Haible  <bruno@clisp.org>
39420
39421         Fix regex compilation error on HP-UX 11.
39422         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
39423         * modules/regex (Files): Add m4/mbstate_t.m4.
39424         Reported by Ton Voon <ton.voon@altinity.com>.
39425
39426 2008-03-23  Bruno Haible  <bruno@clisp.org>
39427
39428         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
39429
39430 2008-03-23  Eric Blake  <ebb9@byu.net>
39431             Bruno Haible  <bruno@clisp.org>
39432
39433         Install files from top/ in the destination directory.
39434         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
39435         augmentation also for the files from top/.
39436         (func_import, func_create_testdir): Rewrite file names:
39437         top/filename -> filename.
39438
39439 2008-03-23  Bruno Haible  <bruno@clisp.org>
39440
39441         Tweak "gnulib --version" output.
39442         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
39443
39444 2008-03-23  Bruno Haible  <bruno@clisp.org>
39445
39446         Tweak "gnulib --version" output.
39447         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
39448         rather than contents of ChangeLog, when possible.
39449
39450 2008-03-21  Eric Blake  <ebb9@byu.net>
39451
39452         More --version tweaks.
39453         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
39454         date of last ChangeLog entry.
39455
39456 2008-03-21  Jim Meyering  <meyering@redhat.com>
39457
39458         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
39459
39460 2008-03-20  Eric Blake  <ebb9@byu.net>
39461
39462         VPATH fix.
39463         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
39464
39465 2008-03-20  Simon Josefsson  <simon@josefsson.org>
39466
39467         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
39468         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
39469
39470 2008-03-20  Eric Blake  <ebb9@byu.net>
39471
39472         Sync GNUmakefile with coreutils.
39473         * build-aux/GNUmakefile (have-Makefile): Rename...
39474         (_have-Makefile): ...to this, for namespace consideration.
39475         (GNUmakefile.cfg): Include, if present.
39476         (_autoreconf): Define a default.
39477         (_is-dist-target): New rule for rebuilds to pick up intra-release
39478         version.
39479         (maint-cfg.mk): Rename...
39480         (cfg.mk): ...to this.
39481
39482 2008-03-18  Jim Meyering  <meyering@redhat.com>
39483
39484         New script and module: mktempd
39485         * MODULES.html.sh (maint+release support): Add mktempd.
39486         * build-aux/mktempd: New file.
39487         * modules/mktempd: New file.
39488
39489 2008-03-15  Jim Meyering  <meyering@redhat.com>
39490
39491         Undo last change.
39492         * lib/sha1.c, lib/md5.c: 63 != ~63.
39493         Reported by Andreas Schwab.
39494
39495         sha1.c, md5.c: Hoist a redundant expression.
39496         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
39497         "ctx->buflen" only once, before calling *_process_block.
39498         * lib/md5.c (md5_process_bytes): Likewise.
39499
39500 2008-03-14  Eric Blake  <ebb9@byu.net>
39501
39502         Bump copyright year in files generated by gnulib-tool.
39503         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
39504         gnulib-tool, rather than hard-coding it.
39505
39506         Fix 'gnulib-tool --version' output to work with git.
39507         * gnulib-tool (func_gnulib_dir): New function, extracted from...
39508         (startup): ...here.
39509         (func_version): Use it to invoke git-version-gen, rather than
39510         relying on CVS keyword expansion.  Modernize wording.
39511         (cvsdatestamp, last_checkin_date, version): Kill unused
39512         variables.
39513
39514 2008-03-12  Jim Meyering  <meyering@redhat.com>
39515
39516         Recognize optional cast of the argument to free.
39517         * build-aux/useless-if-before-free: Update regexps.
39518
39519         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
39520
39521 2008-03-11  Bruno Haible  <bruno@clisp.org>
39522
39523         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
39524         by a single package.
39525         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
39526         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
39527         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
39528         Reported by Sam Steingold <sds@gnu.org>.
39529
39530 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39531
39532         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
39533         repositories.
39534
39535 2008-03-11  Bruno Haible  <bruno@clisp.org>
39536
39537         Avoid conflicts between local macro definitions.
39538         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
39539         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
39540
39541 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
39542             Bruno Haible  <bruno@clisp.org>
39543
39544         Make va_copy work with some version of xlc on AIX 5.1.
39545         * lib/stdarg.in.h: New file.
39546         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
39547         On AIX, use a <stdarg.h> file substitute.
39548         * modules/stdarg (Files): Add lib/stdarg.in.h.
39549         (Depends-on): Add include_next.
39550         (Makefile.am): Build a stdarg.h substitute if requested.
39551         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
39552
39553 2008-03-10  Bruno Haible  <bruno@clisp.org>
39554
39555         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
39556         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39557         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
39558
39559 2008-03-10  Bruno Haible  <bruno@clisp.org>
39560
39561         * modules/stdlib (Depends-on): Add include_next, remove
39562         absolute-header.
39563
39564 2008-03-09  Bruno Haible  <bruno@clisp.org>
39565
39566         * lib/freadahead.h (freadahead): Document more precisely.
39567         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
39568         the sum of both buffer sizes.
39569         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
39570         * NEWS: Document the change.
39571
39572 2008-03-09  Bruno Haible  <bruno@clisp.org>
39573
39574         Extend freadptr to return also the buffer size.
39575         * lib/freadptr.h (freadptr): Add sizep argument.
39576         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
39577         (freadptr): Add sizep argument. Determine buffer size like freadahead
39578         does.
39579         * tests/test-freadptr.c: Don't include freadahead.h.
39580         (main): Adapt for new calling convention of freadptr.
39581         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
39582         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
39583         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
39584         tests/test-freadptr2.sh.
39585         (Depends): Remove freadahead.
39586         (TESTS): Add test-freadptr2.sh.
39587         (check_PROGRAMS): Add test-freadptr2.
39588
39589 2008-03-09  Bruno Haible  <bruno@clisp.org>
39590
39591         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
39592         Report and solution by Simon Josefsson.
39593
39594 2008-03-06  Bruno Haible  <bruno@clisp.org>
39595
39596         Make fflush after ungetc work on BSD platforms.
39597         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
39598         * tests/test-fflush2.c: New file.
39599         * tests/test-fflush2.sh: New file.
39600         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
39601         tests/test-fflush2.c.
39602         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
39603         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
39604
39605 2008-03-06  Eric Blake  <ebb9@byu.net>
39606
39607         Likewise for ftello.
39608         * modules/ftello (Dependencies): Add extensions.
39609         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
39610
39611 2008-03-06  Bruno Haible  <bruno@clisp.org>
39612
39613         * modules/fseeko (Dependencies): Add extensions.
39614         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
39615         Needed on glibc systems.
39616
39617 2008-03-06  Bruno Haible  <bruno@clisp.org>
39618
39619         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
39620         email address.
39621         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39622
39623 2008-03-06  Bruno Haible  <bruno@clisp.org>
39624
39625         * users.txt: Add libgnupdf.
39626
39627 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
39628
39629         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
39630         (Header File Substitutes, Function Substitutes,
39631         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
39632         (Build robot for gnulib): Fix typo.
39633
39634 2008-03-06  Bruno Haible  <bruno@clisp.org>
39635
39636         * doc/gnulib-tool.texi (VCS Issues): Small updates.
39637         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39638
39639 2008-03-06  Bruno Haible  <bruno@clisp.org>
39640
39641         * doc/func.texi: New file, extracted from doc/gnulib.texi.
39642         * doc/gnulib.texi: Include it.
39643
39644 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39645
39646         * modules/func (License): Change license to unlimited; there was
39647         no LGPL parts in the module anyway.
39648
39649 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39650
39651         * modules/__func__: Renamed to modules/func.
39652         * modules/__func__-tests: Renamed to modules/func-tests.
39653         * tests/test-__func__.c: Renamed to tests/test-func.c.
39654         * m4/__func__.m4: Renamed to m4/func.m4.
39655         * doc/gnulib.texi (__func__): Section renamed to func.
39656         Suggested by Eric Blake <ebb9@byu.net>.
39657
39658 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39659
39660         * doc/gnulib.texi (__func__): Use C99 terminology when talking
39661         about __func__.  Make example self-contained.  Suggested by Eric
39662         Blake <ebb9@byu.net>.
39663
39664         * tests/test-__func__.c (main): Avoid extraneous () around __func.
39665         Suggested by Eric Blake <ebb9@byu.net>.
39666
39667 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39668
39669         * modules/__func__: New file.
39670         * modules/__func__-tests: New file.
39671         * tests/test-__func__.c: New file.
39672         * m4/__func__.m4: New file.
39673         * doc/gnulib.texi (__func__): Document __func__ module.
39674
39675 2008-03-05  Simon Josefsson  <simon@josefsson.org>
39676
39677         * modules/byteswap (License): Re-license as LGPLv2+.
39678
39679 2008-03-05  Simon Josefsson  <simon@josefsson.org>
39680
39681         * doc/Makefile: Add pdf target.
39682
39683 2008-03-05  Simon Josefsson  <simon@josefsson.org>
39684
39685         * modules/inline (License): Use 'unlimited', since there are only
39686         *.m4 files in this module.
39687
39688 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
39689             Bruno Haible  <bruno@clisp.org>
39690
39691         Add support for HP C 7.1 on OpenVMS 8.3.
39692         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
39693
39694 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
39695
39696         Update VMS specifics.
39697         * lib/getopt.c [VMS]: Remove include of unixlib.h.
39698
39699 2008-03-02  Jim Meyering  <meyering@redhat.com>
39700
39701         Remove the last dependency on the "free" module.
39702         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
39703         Reported by Bob Proulx.
39704
39705         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
39706
39707         Remove useless "if" tests before free.  Deprecate "free" module.
39708         * doc/posix-functions/free.texi: Mention that this
39709         module is no longer useful.
39710         * modules/free (Notice): Say this module is obsolete.
39711         * modules/readutmp (Depends-on): Remove free.
39712         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
39713         * lib/putenv.c (putenv): Likewise.
39714         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
39715         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
39716         * tests/test-c-strcasestr.c (main): Likewise.
39717         * tests/test-c-strstr.c (main): Likewise.
39718         * tests/test-mbscasestr1.c (main): Likewise.
39719         * tests/test-mbscasestr2.c (main): Likewise.
39720         * tests/test-mbsstr1.c (main): Likewise.
39721         * tests/test-mbsstr2.c (main): Likewise.
39722         * tests/test-memmem.c (main): Likewise.
39723         * tests/test-strcasestr.c (main): Likewise.
39724         * tests/test-striconv.c (main): Likewise.
39725         * tests/test-striconveh.c (main): Likewise.
39726         * tests/test-striconveha.c (main): Likewise.
39727         * tests/test-strstr.c (main): Likewise.
39728
39729         * build-aux/git-version-gen: Adjust a comment and the Usage string.
39730
39731         bootstrap: sync from coreutils again
39732         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
39733
39734 2008-03-01  Jim Meyering  <meyering@redhat.com>
39735
39736         bootstrap: sync from coreutils
39737         * build-aux/bootstrap (update_po_files): Copy a .po file into place
39738         also when the target doesn't exist.
39739
39740 2008-03-01  Eric Blake  <ebb9@byu.net>
39741
39742         Fix bugs in last patch.
39743         * lib/memchr2.c (memchr2): Fix typo.
39744         * tests/test-memchr2.c: Test previous bug, and don't use GNU
39745         extension.
39746         Reported by Bruce Korb.
39747
39748         New module 'memchr2'.
39749         * modules/memchr2: New file.
39750         * modules/memchr2-tests: Likewise.
39751         * lib/memchr2.h: Likewise.
39752         * lib/memchr2.c: Likewise, based on memchr.c.
39753         * tests/test-memchr2.c: New test.
39754         * MODULES.html.sh (String handling): Add memchr2.
39755
39756 2008-02-29  Bruno Haible  <bruno@clisp.org>
39757
39758         * modules/freadseek-tests: New file.
39759         * tests/test-freadseek.sh: New file.
39760         * tests/test-freadseek.c: New file.
39761
39762         New module 'freadseek'.
39763         * modules/freadseek: New file.
39764         * lib/freadseek.h: New file.
39765         * lib/freadseek.c: New file.
39766         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
39767
39768 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
39769
39770         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
39771         wydawca.
39772
39773         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
39774         program_invocation_name and program_invocation_short_name are
39775         present.
39776
39777 2008-02-28  Bruno Haible  <bruno@clisp.org>
39778
39779         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
39780         * tests/test-freadptr.sh: Also test non-seekable stdin.
39781
39782 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
39783
39784         * build-aux/bootstrap (source_base, m4_base)
39785         (doc_base, tests_base): New variables.
39786         (gnulib_tool_options): Do not hardcode base directories, use
39787         the above variables instead.
39788
39789 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
39790
39791         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
39792
39793 2008-02-28  Bruno Haible  <bruno@clisp.org>
39794
39795         * modules/freadptr-tests: New file.
39796         * tests/test-freadptr.sh: New file.
39797         * tests/test-freadptr.c: New file.
39798
39799         New module 'freadptr'.
39800         * modules/freadptr: New file.
39801         * lib/freadptr.h: New file.
39802         * lib/freadptr.c: New file.
39803         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
39804
39805 2008-02-26  Karl Berry  <karl@freefriends.org>
39806
39807         Sync from Libtool:
39808         * libltdl/argz.c (argz_add, argz_count): New functions.
39809         * libltdl/argz.in.h: Declare them.
39810         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
39811
39812 2008-02-22  Bruno Haible  <bruno@clisp.org>
39813
39814         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
39815         is a pointer type.  Needed for HP-UX 10.
39816         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
39817         * doc/posix-functions/gmtime_r.texi: Likewise.
39818         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
39819
39820 2008-02-24  Bruno Haible  <bruno@clisp.org>
39821
39822         * modules/environ-tests: New file.
39823         * tests/test-environ.c: New file.
39824
39825         New module 'environ'.
39826         * modules/environ: New file.
39827         * lib/unistd.in.h (environ): New declaration.
39828         * m4/environ.m4: New file.
39829         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
39830         after use.
39831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
39832         HAVE_DECL_ENVIRON.
39833         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
39834         HAVE_DECL_ENVIRON.
39835         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
39836         wrong claim that 'environ' is missing on some systems.
39837         * modules/execute (Depends-on): Add environ.
39838         * lib/execute.c (environ): Remove fallback declaration.
39839         * modules/pipe (Depends-on): Add environ.
39840         * lib/pipe.c (environ): Remove fallback declaration.
39841         * modules/setenv (Depends-on): Add environ.
39842         * lib/setenv.c (environ): Remove fallback declaration.
39843         * modules/unsetenv (Depends-on): Add environ.
39844         * lib/unsetenv.c (environ): Remove fallback declaration.
39845         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
39846         m4/environ.m4.
39847         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
39848         (gl_PREREQ_UNSETENV): Likewise.
39849
39850 2008-02-24  Bruno Haible  <bruno@clisp.org>
39851
39852         * doc/posix-functions/environ.texi: Document the MacOS X problem.
39853
39854 2008-02-20  Bob Proulx  <bob@proulx.com>
39855
39856         Enable use of older two part flavor 'git describe'.
39857         * build-aux/git-version-gen: If using the older two part flavor of
39858         git version then recreate the third part now present in the
39859         newer three part flavor of git describe.
39860
39861 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
39862
39863         * lib/fts.c (fts_build): Typo correction to comment.
39864
39865 2008-02-17  Bruno Haible  <bruno@clisp.org>
39866
39867         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
39868         generating no-op conflicts.
39869
39870 2008-02-17  Bruno Haible  <bruno@clisp.org>
39871
39872         Speed up by 10%.
39873         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
39874         result_entries, rather than an index-based loop.
39875
39876 2008-02-17  Bruno Haible  <bruno@clisp.org>
39877
39878         Speed up by 25%.
39879         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
39880         'hashcode_cached'.
39881         (entry_create): New function.
39882         (entry_hashcode): Use the cached hashcode if possible.
39883         (read_changelog_file, try_split_merged_entry): Use entry_create.
39884
39885 2008-02-17  Bruno Haible  <bruno@clisp.org>
39886
39887         Speed up from O(n^2) to O(n) for long ChangeLog files.
39888         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
39889         (read_changelog_file): Change implementation of entries_reversed list
39890         to rbtreehash.
39891         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
39892
39893 2008-02-17  Bruno Haible  <bruno@clisp.org>
39894
39895         New option --split-merged-entry.
39896         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
39897         (find_paragraph_end, try_split_merged_entry): New functions.
39898         (long_options): Add option --split-merged-entry.
39899         (usage): Document option --split-merged-entry.
39900         (main): Implement option --split-merged-entry.
39901         Reported by Eric Blake.
39902
39903 2008-02-17  Bruno Haible  <bruno@clisp.org>
39904
39905         * lib/git-merge-changelog.c: Include c-strstr.h.
39906         (main): Support the "git pull --rebase" situation.
39907         * modules/git-merge-changelog (Depends-on): Add c-strstr.
39908         Reported by Eric Blake.
39909
39910 2008-02-16  Eric Blake  <ebb9@byu.net>
39911
39912         Avoid doubling \ in common case of "c-maybe" quoting style.
39913         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
39914         eliding outer quotes.
39915         * lib/quotearg.h: Document this.
39916         * tests/test-quotearg.c (result_strings, inputs, results_g)
39917         (flag_results, locale_results): Test it by adding a new string to
39918         each test group.
39919         (compare_strings): Test new string.
39920
39921 2008-02-13  Eric Blake  <ebb9@byu.net>
39922
39923         Avoid trigraph quoting in default output.
39924         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
39925         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
39926         unless explicitly requested.
39927         * tests/test-quotearg.c (flag_results, main): Add additional tests.
39928
39929 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
39930
39931         Don't rely on signed integer overflowing to negative value.
39932         * lib/getugroups.c (getugroups): Include <limits.h>.
39933         Instead, compare against INT_MAX, and increment only if the test passes.
39934
39935 2008-02-13  Jim Meyering  <meyering@redhat.com>
39936         and Eric Blake  <ebb9@byu.net>
39937
39938         Avoid shadowing warning and compile errors on Linux.
39939         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
39940         forwarding macros on Linux.
39941         (dcgettext): Define a stub, for Linux.
39942         (results_g, main): Avoid warnings.
39943
39944 2008-02-12  Eric Blake  <ebb9@byu.net>
39945
39946         Silence warning in last patch.
39947         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
39948
39949         Quotearg part 4: add tests, fix c-maybe colon quoting.
39950         * lib/quotearg.h: Improve documentation.
39951         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
39952         escapes when adding outer quotes.  When quoting trigraphs, use
39953         valid C notation.  When quoting NUL, omit extra characters if next
39954         character is not digit.  Alter prototype.
39955         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
39956         callers.
39957         * modules/quotearg-tests: New module.
39958         * tests/test-quotearg.c: New test.
39959
39960 2008-02-07  Eric Blake  <ebb9@byu.net>
39961
39962         Quotearg part 3: add flag to control outer quote elision.
39963         * lib/quotearg.h (c_maybe_quoting_style): New style.
39964         (enum quoting_flags): Better documentation of flags.
39965         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
39966         c-maybe style.
39967         (quotearg_buffer_restyled): Handle new flag to elide outer
39968         quotes.
39969
39970         Quotearg part 2: add flag that can control NUL elision.
39971         * lib/quotearg.h (set_quoting_flags): New prototype.
39972         * lib/quotearg.c (struct quoting_options): Add flag field.
39973         (set_quoting_flags): New function.
39974         (quotearg_buffer_restyled): Add flags parameter.
39975         (quotearg_alloc_mem): Set the flag if length cannot be returned.
39976         (quotearg_n_options): Set the flag, since length cannot be
39977         returned.
39978         (quoting_options_from_style): Default flags correctly.
39979
39980         Quotearg part 1: more wrappers, restore quotearg_char state.
39981         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
39982         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
39983         (quotearg_colon_mem): New wrappers.
39984         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
39985         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
39986         functions.
39987         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
39988         (quotearg_colon_mem): New functions.
39989
39990 2008-02-11  Bruno Haible  <bruno@clisp.org>
39991
39992         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
39993         library in the current directory: it does not work with parallel make.
39994         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39995
39996 2008-02-11  Bruno Haible  <bruno@clisp.org>
39997
39998         * .gitattributes: New file.
39999
40000 2008-02-11  Jim Meyering  <meyering@redhat.com>
40001
40002         useless-if-before-free: Fix reversed exit values.
40003         * build-aux/useless-if-before-free: Use correct values
40004         for EXIT_MATCH and EXIT_NO_MATCH.
40005
40006         * build-aux/useless-if-before-free: Close stdout carefully.
40007
40008 2008-02-10  Bruno Haible  <bruno@clisp.org>
40009
40010         New module 'git-merge-changelog'.
40011         * modules/git-merge-changelog: New file.
40012         * lib/git-merge-changelog.c: New file.
40013
40014 2008-02-10  Jim Meyering  <meyering@redhat.com>
40015
40016         useless-if-before-free: New option: --list (-l).
40017
40018         useless-if-before-free: Don't exit immediately upon open failure.
40019         * build-aux/useless-if-before-free: Exit 2 for errors.
40020         Upon failure to open a file, don't exit immediately.
40021         Rather, just warn and continue with any remaining files.
40022
40023 2008-02-10  Bruno Haible  <bruno@clisp.org>
40024
40025         New abstract list operation 'node_set_value'.
40026         * lib/gl_list.h (gl_list_node_set_value): New function.
40027         (struct gl_list_implementation): New field node_set_value.
40028         * lib/gl_list.c (gl_list_node_set_value): New function.
40029         * lib/gl_array_list.c (gl_array_node_set_value): New function.
40030         (gl_array_list_implementation): Update.
40031         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
40032         (gl_carray_list_implementation): Update.
40033         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
40034         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
40035         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
40036         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
40037         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
40038         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
40039         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
40040         Update.
40041         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
40042         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
40043         (gl_sublist_list_implementation): Update.
40044
40045 2008-02-10  Bruno Haible  <bruno@clisp.org>
40046
40047         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
40048         Needed when ELEMENT is #defined to 'some_type *'.
40049
40050 2008-02-10  Jim Meyering  <meyering@redhat.com>
40051
40052         New script and module: useless-if-before-free
40053         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
40054         * build-aux/useless-if-before-free: New file.
40055         * modules/useless-if-before-free: New file.
40056
40057         * build-aux/gitlog-to-changelog: Use committer date, not author date.
40058
40059         xstrtol_error: Fix typo.
40060         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
40061         s/exit_failure/exit_status/.
40062
40063 2008-02-09  Jim Meyering  <meyering@redhat.com>
40064
40065         New script and module: gitlog-to-changelog
40066         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
40067         * modules/gitlog-to-changelog: New file.
40068         * build-aux/gitlog-to-changelog: New file.
40069
40070 2008-02-08  Jim Meyering  <meyering@redhat.com>
40071
40072         Avoid two "parameter unused" warnings.
40073         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
40074         Mark "st" as used.
40075
40076         Use "git COMMAND", not "git-COMMAND".
40077         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
40078         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
40079         * build-aux/git-version-gen: Use "git status", not "git-status".
40080
40081 2008-02-07  Bruno Haible  <bruno@clisp.org>
40082
40083         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
40084         Avoids a crash on Windows Vista.
40085         Reported by Adam Strzelecki <ono@java.pl> via
40086         Simon Josefsson <simon@josefsson.org>.
40087
40088 2008-02-06  Bruno Haible  <bruno@clisp.org>
40089
40090         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
40091         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
40092         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
40093         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
40094         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40095         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40096         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
40097         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
40098         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40099         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40100         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40101         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40102         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40103         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40104         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40105         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
40106         left-adjust flag.
40107         * tests/test-snprintf-posix.h (test_function): Likewise.
40108         * tests/test-sprintf-posix.h (test_function): Likewise.
40109         * tests/test-vasprintf-posix.c (test_function): Likewise.
40110         * doc/posix-functions/fprintf.texi: Update.
40111         * doc/posix-functions/printf.texi: Update.
40112         * doc/posix-functions/snprintf.texi: Update.
40113         * doc/posix-functions/sprintf.texi: Update.
40114         * doc/posix-functions/vfprintf.texi: Update.
40115         * doc/posix-functions/vprintf.texi: Update.
40116         * doc/posix-functions/vsnprintf.texi: Update.
40117         * doc/posix-functions/vsprintf.texi: Update.
40118         Reported by Peter Fales <psfales@alcatel-lucent.com>.
40119
40120 2008-02-06  Bruno Haible  <bruno@clisp.org>
40121
40122         Fix bug introduced on 2008-01-26.
40123         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
40124
40125 2008-02-06  Bruno Haible  <bruno@clisp.org>
40126
40127         Fix bug introduced on 2007-06-10.
40128         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
40129         !NEED_PRINTF_FLAG_ZERO.
40130
40131 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
40132
40133         getloadavg: use libperfstat on AIX5
40134         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
40135
40136 2008-02-03  Bruno Haible  <bruno@clisp.org>
40137
40138         * lib/diffseq.h: Add comments about required #includes.
40139         Reported by Michael Biggs <gnulib@doubleplum.net>.
40140
40141 2008-02-01  Bruno Haible  <bruno@clisp.org>
40142
40143         * users.txt: Add gnuit.
40144
40145 2008-01-31  Bruno Haible  <bruno@clisp.org>
40146
40147         * lib/md4.c (set_uint32): Mark as inline.
40148         * lib/md5.c (set_uint32): Likewise.
40149         * lib/sha1.c (set_uint32): Likewise.
40150         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
40151         * m4/md5.m4 (gl_MD5): Likewise.
40152         * m4/sha1.m4 (gl_SHA1): Likewise.
40153
40154 2008-01-31  Jim Meyering  <meyering@redhat.com>
40155
40156         Use "sizeof VAR", rather than a literal "4".
40157         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
40158         * lib/md4.c (md4_read_ctx): Likewise.
40159         * lib/sha1.c (sha1_read_ctx): Likewise.
40160
40161 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40162
40163         * tests/test-sha1.c: New file, based on test-md5.c.
40164
40165         * modules/crypto/sha1-tests: New file.
40166
40167 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40168
40169         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
40170
40171 2008-01-31  Jim Meyering  <meyering@redhat.com>
40172
40173         Prefer "sizeof v" over the equivalent "4".
40174         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
40175         * lib/md5.c (set_uint32): Likewise.
40176         * lib/sha1.c (set_uint32): Likewise.
40177
40178 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40179
40180         * lib/sha1.c (set_uint32): Mark function as static.
40181
40182 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40183
40184         md2: clarify comments to say that alignment is not required.
40185         * lib/md2.h: Remove warning about alignment in comment.
40186         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
40187         never been required.
40188
40189 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40190
40191         md4: adapt alignment constraint fix from sha1.
40192         * lib/md4.c (set_uint32): New function, from sha1.c
40193         (md4_read_ctx): Use it.
40194         (md4_finish_ctx): Doc fix.
40195         * lib/md4.h: Doc fix.
40196
40197 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40198
40199         md5: adapt alignment constraint fix from sha1.
40200         * lib/md5.c (set_uint32): New function, from sha1.c
40201         (md5_read_ctx): Use it.
40202         (md5_finish_ctx): Doc fix.
40203         * lib/md5.h: Doc fix.
40204
40205 2008-01-30  Peter Palfrader  <weasel@debian.org>
40206
40207         sha1: remove the result buffer alignment constraint
40208         * lib/sha1.c (set_uint32): New function.
40209         (sha1_read_ctx): Rewrite to remove the result buffer alignment
40210         constraint.
40211         (sha1_finish_ctx): Remove comment warning about alignment constraint.
40212         * lib/sha1.h: Likewise.
40213
40214 2008-01-30  Andreas Schwab  <schwab@suse.de>
40215             Bruno Haible  <bruno@clisp.org>
40216
40217         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
40218         correct definition of LDBL_MIN_EXP.
40219
40220 2008-01-30  Karl Berry  <karl@gnu.org>
40221
40222         * config/srclist-update: try to preserve x bit on updates.
40223         * config/srclistvars.sh: update for karl.
40224
40225 2008-01-29  Jim Meyering  <meyering@redhat.com>
40226
40227         vasnprintf.c: Avoid warning about unused label
40228         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
40229         "overflow" label definition and associated code with the
40230         same cpp condition that guards the sole use of that label.
40231
40232 2008-01-26  Bruno Haible  <bruno@clisp.org>
40233
40234         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
40235         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
40236         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
40237         * lib/isnanl-nolibm.h (isnanl): Likewise.
40238         Reported by Paul Eggert <eggert@cs.ucla.edu>.
40239
40240 2008-01-26  Bruno Haible  <bruno@clisp.org>
40241
40242         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
40243         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
40244
40245 2008-01-26  Bruno Haible  <bruno@clisp.org>
40246
40247         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
40248         GCC >= 4.0 built-in.
40249         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
40250
40251 2008-01-26  Bruno Haible  <bruno@clisp.org>
40252
40253         Rename isnan, applicable to 'double' only, to isnand.
40254         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
40255         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
40256         (configure.ac): Update.
40257         (Include): Replace "isnan.h" with "isnand.h".
40258         * m4/isnand.m4: Renamed from m4/isnan.m4.
40259         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
40260         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
40261         instead of isnan.c.
40262         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
40263         instead of HAVE_ISNAN_IN_LIBC.
40264         (isnand): Renamed from isnan.
40265         * lib/isnand.c: New file.
40266         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
40267         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
40268         (Makefile.am): Update.
40269         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
40270         Include isnand.h instead of isnan.h.
40271         (main): Test isnand instead of isnan.
40272         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
40273         isnan-nolibm.
40274         * modules/frexp (Depends-on): Likewise.
40275         * modules/frexp-tests (Depends-on): Likewise.
40276         * modules/frexp-nolibm (Depends-on): Likewise.
40277         * modules/frexp-nolibm-tests (Depends-on): Likewise.
40278         * modules/isfinite (Depends-on): Likewise.
40279         * modules/round-tests (Depends-on): Likewise.
40280         * modules/signbit (Depends-on): Likewise.
40281         * modules/signbit-tests (Depends-on): Likewise.
40282         * modules/snprintf-posix (Depends-on): Likewise.
40283         * modules/sprintf-posix (Depends-on): Likewise.
40284         * modules/trunc-tests (Depends-on): Likewise.
40285         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40286         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40287         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40288         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40289         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40290         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40291         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40292         * modules/vasnprintf-posix (Depends-on): Likewise.
40293         * modules/vasprintf-posix (Depends-on): Likewise.
40294         * modules/vfprintf-posix (Depends-on): Likewise.
40295         * modules/vsnprintf-posix (Depends-on): Likewise.
40296         * modules/vsprintf-posix (Depends-on): Likewise.
40297         * lib/frexp.c: Include isnand.h instead of isnan.h.
40298         (ISNAN): Set to isnand instead of isnan.
40299         * lib/isfinite.c: Include isnand.h instead of isnan.h.
40300         (gl_isfinited): Use isnand instead of isnan.
40301         * lib/signbitd.c: Include isnand.h instead of isnan.h.
40302         (gl_signbitd): Use isnand instead of isnan.
40303         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
40304         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
40305         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
40306         (main): Use isnand instead of isnan.
40307         * tests/test-round1.c: Include isnand.h.
40308         (main): Use isnand instead of isnan.
40309         * tests/test-round2.c: Include isnand.h instead of isnan.h.
40310         (ISNAN): Set to isnand instead of isnan.
40311         * tests/test-trunc1.c: Include isnand.h.
40312         (main): Use isnand instead of isnan.
40313         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
40314         (equal): Use isnand instead of isnan.
40315         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
40316         isnand-nolibm.
40317         * NEWS: Mention the change.
40318
40319 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
40320             Bruno Haible  <bruno@clisp.org>
40321
40322         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
40323         the GCC builtins for signbits are present and set
40324         REPLACE_SIGNBIT_USING_GCC if so.
40325         * lib/math.in.h (signbit): Define using GCC builtins if
40326         REPLACE_SIGNBIT_USING_GCC is set.
40327         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
40328         REPLACE_SIGNBIT_USING_GCC.
40329         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
40330
40331 2008-01-25  Jim Meyering  <meyering@redhat.com>
40332
40333         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
40334         * lib/poll.c: Include <config.h>, not "config.h".
40335         * tests/test-getaddrinfo.c: Likewise.
40336
40337 2008-01-25  Simon Josefsson  <simon@josefsson.org>
40338
40339         * modules/sockets-tests: New file.
40340
40341 2008-01-24  Simon Josefsson  <simon@josefsson.org>
40342
40343         * modules/sockets: New module, can be used to call WSA_Startup and
40344         WSA_Cleanup when needed.
40345
40346         * lib/sockets.h, lib/sockets.c: New files.
40347
40348         * m4/sockets.m4: New file.
40349
40350         * tests/test-sockets.c: New file.
40351
40352 2008-01-19  Bruno Haible  <bruno@clisp.org>
40353
40354         * doc/posix-headers: Renamed from doc/headers.
40355         * doc/posix-functions: Renamed from doc/functions.
40356         * doc/gnulib.texi: Update.
40357
40358 2008-01-19  Bruno Haible  <bruno@clisp.org>
40359
40360         * doc/glibc-functions/strcasestr.texi: Include contents of
40361         doc/functions/strcasestr.texi, fixing the list of platforms.
40362         * doc/functions/strcasestr.texi: Remove file.
40363
40364 2008-01-19  Bruno Haible  <bruno@clisp.org>
40365
40366         * doc/glibc-functions/memmem.texi: Include contents of
40367         doc/functions/memmem.texi.
40368         * doc/functions/memmem.texi: Remove file.
40369
40370 2008-01-18  Bruno Haible  <bruno@clisp.org>
40371
40372         * doc/glibc-functions/*.texi: New files.
40373         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
40374         to use the new files.
40375
40376 2008-01-17  Bruno Haible  <bruno@clisp.org>
40377
40378         * tests/test-gethostname.c (main): Fix printf statement.
40379
40380 2008-01-17  Simon Josefsson  <simon@josefsson.org>
40381
40382         * modules/gethostname-tests: New file.
40383
40384         * tests/test-gethostname.c: New file.
40385
40386 2008-01-17  Simon Josefsson  <simon@josefsson.org>
40387
40388         * lib/gethostname.c: Include string.h unconditionally, strncpy is
40389         used by the UNAME case.  Reported by Bruno Haible
40390         <bruno@clisp.org>.
40391
40392 2008-01-17  Eric Blake  <ebb9@byu.net>
40393
40394         Convert c-strcasestr to be more efficient.
40395         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
40396         (Depends-on): Add c-strcase, remove malloca, strnlen.
40397         * tests/test-c-strcasestr.c (main): Enhance test.
40398         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
40399
40400 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
40401
40402         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
40403         Use it in creating po/Makevars.
40404
40405 2008-01-15  Simon Josefsson  <simon@josefsson.org>
40406
40407         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
40408         Applications that requires it should initialize libgcrypt
40409         manually.
40410
40411 2008-01-16  Simon Josefsson  <simon@josefsson.org>
40412
40413         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
40414
40415 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
40416
40417         Fix problem with getdate on mingw32 reported by Simon Josefsson
40418         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
40419         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
40420         tzname", when deciding whether to declare tzname.
40421         * lib/strftime.c (tzname): Likewise.
40422
40423 2008-01-15  Bruno Haible  <bruno@clisp.org>
40424
40425         Work around a MacOS X 10.5 bug in frexpl().
40426         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
40427         * doc/functions/frexpl.texi: Document the bug.
40428         Reported by Elias Pipping <pipping@gentoo.org>.
40429
40430 2008-01-14  Eric Blake  <ebb9@byu.net>
40431
40432         Touch up previous patch.
40433         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
40434         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
40435
40436         Convert strcasestr module to use Two-Way algorithm.
40437         * modules/strcasestr-simple: New module, based on the old
40438         strcasestr, but with Two-Way rather than KMP.
40439         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
40440         * lib/string.in.h (rpl_strcasestr): Declare.
40441         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
40442         performance.
40443         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
40444         * modules/string (Makefile.am): Support strcasestr.
40445         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
40446         * modules/strcasestr-tests (Depends-on): Check for alarm.
40447         * tests/test-strcasestr.c: Augment test.
40448         * lib/str-two-way.h: Clean up stray macro.
40449         * NEWS: Document new module.
40450         * MODULES.html.sh (string handling): Likewise.
40451         * doc/functions/strcasestr.texi: New file.
40452         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
40453         here, since it is not a POSIX function.
40454
40455 2008-01-14  Colin Watson  <cjwatson@debian.org>
40456             Bruno Haible  <bruno@clisp.org>
40457
40458         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
40459         works fine; if not, set REPLACE_STRSIGNAL.
40460         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
40461         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40462         REPLACE_STRSIGNAL.
40463         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
40464         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
40465         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
40466
40467 2008-01-14  Bruno Haible  <bruno@clisp.org>
40468
40469         * modules/strsignal (Include): Change to <string.h>.
40470
40471 2008-01-14  Colin Watson  <cjwatson@debian.org>
40472
40473         * modules/argp (Notice): Add a notice recommending to change
40474         XGETTEXT_OPTIONS.
40475         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
40476
40477 2008-01-13  Colin Watson  <cjwatson@debian.org>
40478
40479         * modules/strsignal-tests: New file.
40480         * tests/test-strsignal.c: New file.
40481
40482         * lib/strsignal.c: New file, from glibc with modifications.
40483         * lib/siglist.h: New file, from glibc with modifications.
40484         * lib/string.in.h (strsignal): New declaration.
40485         * m4/strsignal.m4: New file.
40486         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40487         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
40488         * modules/strsignal: New file.
40489         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
40490         HAVE_DECL_STRSIGNAL.
40491
40492 2008-01-13  Bruno Haible  <bruno@clisp.org>
40493
40494         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
40495         locale encoding is not ASCII. Needed for OpenBSD 4.0.
40496         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
40497         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
40498
40499 2008-01-13  Bruno Haible  <bruno@clisp.org>
40500
40501         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
40502         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
40503         * lib/argp.h (__attribute__): Likewise.
40504         * lib/c-stack.c (__attribute__): Likewise.
40505         * lib/error.h (__attribute__): Likewise.
40506         * lib/fts.c (__attribute__): Likewise.
40507         * lib/openat.h (__attribute__): Likewise.
40508         * lib/stdio.in.h (__attribute__): Likewise.
40509         * lib/string.in.h (__attribute__): Likewise.
40510         * lib/utimens.c (__attribute__): Likewise.
40511         * lib/vasnprintf.h (__attribute__): Likewise.
40512         * lib/xalloc.h (__attribute__): Likewise.
40513         * lib/xprintf.h (__attribute__): Likewise.
40514         * lib/xstrtol.h (__attribute__): Likewise.
40515         * lib/xvasprintf.h (__attribute__): Likewise.
40516
40517 2008-01-12  Bruno Haible  <bruno@clisp.org>
40518
40519         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
40520         * doc/glibc-headers/a.out.texi: New file.
40521         * doc/glibc-headers/aliases.texi: New file.
40522         * doc/glibc-headers/alloca.texi: New file.
40523         * doc/glibc-headers/ar.texi: New file.
40524         * doc/glibc-headers/argp.texi: New file.
40525         * doc/glibc-headers/argz.texi: New file.
40526         * doc/glibc-headers/byteswap.texi: New file.
40527         * doc/glibc-headers/crypt.texi: New file.
40528         * doc/glibc-headers/endian.texi: New file.
40529         * doc/glibc-headers/envz.texi: New file.
40530         * doc/glibc-headers/err.texi: New file.
40531         * doc/glibc-headers/error.texi: New file.
40532         * doc/glibc-headers/execinfo.texi: New file.
40533         * doc/glibc-headers/fpu_control.texi: New file.
40534         * doc/glibc-headers/fstab.texi: New file.
40535         * doc/glibc-headers/fts.texi: New file.
40536         * doc/glibc-headers/getopt.texi: New file.
40537         * doc/glibc-headers/ieee754.texi: New file.
40538         * doc/glibc-headers/ifaddrs.texi: New file.
40539         * doc/glibc-headers/libintl.texi: New file.
40540         * doc/glibc-headers/mcheck.texi: New file.
40541         * doc/glibc-headers/mntent.texi: New file.
40542         * doc/glibc-headers/obstack.texi: New file.
40543         * doc/glibc-headers/paths.texi: New file.
40544         * doc/glibc-headers/printf.texi: New file.
40545         * doc/glibc-headers/pty.texi: New file.
40546         * doc/glibc-headers/resolv.texi: New file.
40547         * doc/glibc-headers/shadow.texi: New file.
40548         * doc/glibc-headers/sysexits.texi: New file.
40549         * doc/glibc-headers/ttyent.texi: New file.
40550
40551 2008-01-12  Jim Meyering  <meyering@redhat.com>
40552
40553         announce-gen: emit Gnulib's git-based version string.
40554         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
40555         New option --gnulib-version=V, where V is expected to be
40556         the output of running git describe in the gnulib directory.
40557         (get_tool_versions): Request feedback on xdelta.  I suspect it's
40558         not useful, and plan to stop publishing an xdelta file with each
40559         coreutils release.
40560
40561         * build-aux/announce-gen: Also check for lzma-compressed files.
40562
40563 2008-01-11  Bruno Haible  <bruno@clisp.org>
40564
40565         * tests/test-memmem.c (main): Increase maximum allowed time.
40566         * tests/test-strstr.c (main): Likewise.
40567
40568 2008-01-11  Bruno Haible  <bruno@clisp.org>
40569
40570         * doc/functions/memmem.texi: Add more precisions about platforms.
40571         * doc/functions/strstr.texi: Likewise.
40572
40573 2008-01-10  Eric Blake  <ebb9@byu.net>
40574
40575         * m4/strstr.m4: Delete cruft from copy-n-paste.
40576         Reported by Bruno Haible.
40577
40578 2008-01-10  Bruno Haible  <bruno@clisp.org>
40579
40580         Make c-strstr rely on strstr.
40581         * lib/c-strstr.c: Don't include str-kmp.h.
40582         (c_strstr): Define in terms of strstr.
40583         * modules/c-strstr (Files): Remove lib/str-kmp.h.
40584         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
40585
40586 2008-01-10  Bruno Haible  <bruno@clisp.org>
40587
40588         * doc/gnulib.texi (String Functions in C Locale): New section.
40589         * doc/c-ctype.texi: New file.
40590         * doc/c-strcase.texi: New file.
40591         * doc/c-strcaseeq.texi: New file.
40592         * doc/c-strcasestr.texi: New file.
40593         * doc/c-strstr.texi: New file.
40594         * doc/c-strtod.texi: New file.
40595         * doc/c-strtold.texi: New file.
40596
40597 2008-01-10  Eric Blake  <ebb9@byu.net>
40598
40599         * lib/relocatable.h: Fix a comment.
40600
40601 2008-01-10  Eric Blake  <ebb9@byu.net>
40602
40603         Share two-way algorithm.
40604         * lib/str-two-way.h: New file, merged from...
40605         * lib/memmem.c: ...here...
40606         * lib/strstr.c: ...and here.
40607         * modules/memmem (Files): Use it.
40608         * modules/strstr (Files): Likewise.
40609
40610         Avoid quadratic strstr implementations.
40611         * lib/strstr.c: New file.
40612         * m4/strstr.m4: Likewise.
40613         * modules/strstr: Likewise.
40614         * modules/strstr-tests: Likewise.
40615         * tests/test-strstr.c: Likewise.
40616         * lib/string.in.h (rpl_strstr): Declare.
40617         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
40618         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
40619         * modules/string (Makefile.am): Likewise.
40620         * MODULES.html.sh (string handling): Mention new module.
40621         * doc/functions/strstr.texi (strstr): Document the bug.
40622
40623 2008-01-10  Bruno Haible  <bruno@clisp.org>
40624
40625         * lib/relocatable.h (relocate): State whether result is freshly
40626         allocated or not.
40627         * lib/relocatable.c (relocate): Return a freshly allocated string
40628         instead of a pointer to a privately held string.
40629         Reported by Sylvain Beucler <beuc@gnu.org>.
40630
40631 2008-01-10  Colin Watson  <cjwatson@debian.org>
40632
40633         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
40634         s/S_ISNLK/S_ISLNK/.
40635
40636 2008-01-09  Bruno Haible  <bruno@clisp.org>
40637
40638         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
40639         and other files.
40640         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
40641         if it's only a guess.
40642         * modules/memmem: Simplify by depending on memmem-simple.
40643
40644 2008-01-09  Bruno Haible  <bruno@clisp.org>
40645
40646         Work around OpenBSD 4.0 tdelete() bug.
40647         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
40648         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
40649         macros and don't redefine the enum values.
40650         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
40651         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
40652         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
40653
40654 2008-01-09  Bruno Haible  <bruno@clisp.org>
40655
40656         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
40657         (main): Don't perform the tests if setlocale did not install a UTF-8
40658         locale. Needed on OpenBSD 4.0.
40659         * modules/wcwidth-tests (Depends-on): Add localcharset.
40660
40661 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
40662
40663         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
40664         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
40665         * NEWS: announce this.
40666         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
40667
40668 2008-01-09  Simon Josefsson  <simon@josefsson.org>
40669         and Eric Blake  <ebb9@byu.net>
40670
40671         Add memmem-simple module.
40672         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
40673         (gl_FUNC_MEMMEM): Separate performance from presence checks.
40674         * modules/memmem-simple: New file.
40675         * modules/memmem (Description): Tweak.
40676         * MODULES.html.sh (string handling): Mention new module.
40677         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
40678         addressed by memmem-simple.
40679         * NEWS: Document the difference.
40680
40681 2008-01-09  Eric Blake  <ebb9@byu.net>
40682
40683         Give gcc some memmem optimization hints.
40684         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
40685         (strcasestr): Declare as pure.
40686         * modules/memmem (Maintainer): Claim my implementation.
40687
40688 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40689
40690         Support AIX 6.1 and higher.
40691         * build-aux/config.libpath: Likewise.
40692         * build-aux/config.rpath: Likewise.
40693
40694 2008-01-08  Jim Meyering  <meyering@redhat.com>
40695             Bruno Haible  <bruno@clisp.org>
40696
40697         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
40698         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
40699         Reported by Peter Fales in
40700         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
40701
40702 2008-01-08  Bruno Haible  <bruno@clisp.org>
40703
40704         * modules/unictype/category-of (Depends-on): Add
40705         unictype/category-none.
40706         * modules/unictype/category-and-tests (Depends-on): Add
40707         unictype/category-{L,N,Lu,Nd}.
40708         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
40709         * modules/unictype/category-or-tests (Depends-on): Add
40710         unictype/category-{L,N}.
40711         * modules/unictype/category-name-tests (Depends-on): Add
40712         unictype/category-{Z,Nl}.
40713         Reported by Simon Josefsson.
40714
40715 2008-01-08  Bruno Haible  <bruno@clisp.org>
40716
40717         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
40718         convention better.
40719         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
40720         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
40721         Reported by Peter Miller <millerp@canb.auug.org.au>.
40722
40723 2008-01-08  Eric Blake  <ebb9@byu.net>
40724
40725         Rewrite memmem to guarantee linear complexity without malloc.
40726         * lib/memmem.c (memmem): Use Two-Way rather than
40727         Knuth-Morris-Pratt, to allow O(1) space usage.
40728         (critical_factorization, two_way_short_needle)
40729         (two_way_long_needle): New functions.
40730         (knuth_morris_pratt): Delete.
40731         * modules/memmem (Depends-on): No longer need malloca or stdbool.
40732         Add stdint.
40733         * tests/test-memmem.c (main): Add tests for periodic needle and
40734         sublinear performance.
40735         * doc/functions/memmem.texi (memmem): Document other deficiencies
40736         in cygwin and older glibc.
40737
40738 2008-01-08  Bruno Haible  <bruno@clisp.org>
40739
40740         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
40741         augmentation.
40742
40743 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
40744
40745         Add a configure time option: --disable-acl.
40746         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
40747         AC_ARG_ENABLE(acl).
40748
40749 2008-01-06  Simon Josefsson  <simon@josefsson.org>
40750
40751         * tests/test-localename.c: Don't include obsolete "setenv.h".
40752
40753         * modules/localename-tests (Depends-on): Need unsetenv.
40754
40755 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40756
40757         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
40758
40759 2008-01-06  Colin Watson  <cjwatson@debian.org>
40760
40761         * users.txt: Add man-db.
40762
40763 2008-01-07  Bruno Haible  <bruno@clisp.org>
40764
40765         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
40766         previous section name.
40767
40768 2008-01-07  Bruno Haible  <bruno@clisp.org>
40769
40770         * lib/progname.c (set_program_name): Don't strip off a leading
40771         "lt-" prefix outside a .libs directory.
40772         Suggested by Paul Eggert.
40773
40774 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
40775             Bruno Haible  <bruno@clisp.org>
40776
40777         Improve memory cleanup in 'relocatable' module.
40778         * lib/relocatable.h (compute_curr_prefix): Change return type to
40779         'char *'.
40780         * lib/relocatable.c (compute_curr_prefix): Change return type to
40781         'char *'. Free curr_installdir after use.
40782         (relocate): Free curr_prefix_better after use.
40783         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
40784
40785 2008-01-01  Bruno Haible  <bruno@clisp.org>
40786
40787         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
40788         failure on older glibc systems.
40789         Reported by Peter Fales <psfales@alcatel-lucent.com>.
40790
40791 2008-01-05  Eric Blake  <ebb9@byu.net>
40792
40793         Avoid quadratic system memmem.
40794         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
40795         Reported by Ralf Wildenhues.
40796
40797         Fix memmem test for mingw.
40798         * modules/memmem-tests (configure.ac): Check for alarm.
40799         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
40800         it.
40801         * doc/functions/memmem.texi: New file.
40802         * doc/gnulib.texi (Function Substitutes): Add memmem.
40803         Reported by Bruno Haible.
40804
40805 2008-01-04  Bruno Haible  <bruno@clisp.org>
40806
40807         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
40808         Require gl_HEADER_STRINGS_H_DEFAULTS, not
40809         gl_HEADER_STRING_H_DEFAULTS.
40810
40811 2008-01-04  Eric Blake  <ebb9@byu.net>
40812
40813         Shorten duration of memmem test.
40814         * tests/test-memmem.c (main): Use alarm to declare failure if test
40815         is taking too long.
40816         Reported by Ralf Wildenhues.
40817
40818 2007-12-21  Simon Josefsson  <simon@josefsson.org>
40819
40820         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
40821         string, needed by strerror.
40822
40823 2008-01-03  Colin Watson  <cjwatson@debian.org>
40824             Bruno Haible  <bruno@clisp.org>
40825
40826         * doc/gnulib-tool.texi (Localization): New section.
40827
40828 2008-01-02  Bruno Haible  <bruno@clisp.org>
40829
40830         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
40831         variables to 'unsigned char *' type.
40832         Reported by Paul Eggert.
40833
40834 2008-01-02  Jim Meyering  <jim@meyering.net>
40835
40836         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
40837
40838 2007-12-31  Jim Meyering  <jim@meyering.net>
40839
40840         Avoid use of private FTS type name.
40841         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
40842
40843 2007-12-30  Karl Berry  <karl@gnu.org>
40844
40845         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
40846         work around defect in Texinfo and/or the standalone Info browser.
40847
40848 2007-12-30  Bruno Haible  <bruno@clisp.org>
40849
40850         Unify 5 copies of the KMP code.
40851         * lib/str-kmp.h: New file.
40852         * lib/c-strcasestr.c: Include str-kmp.h.
40853         (knuth_morris_pratt): Remove function.
40854         (c_strcasestr): Update.
40855         * lib/c-strstr.c: Include str-kmp.h.
40856         (knuth_morris_pratt): Remove function.
40857         (c_strcasestr): Update.
40858         * lib/mbscasestr.c: Include str-kmp.h.
40859         (knuth_morris_pratt_unibyte): Remove function.
40860         * lib/mbsstr.c: Include str-kmp.h.
40861         (knuth_morris_pratt_unibyte): Remove function.
40862         * lib/strcasestr.c: Include str-kmp.h.
40863         (knuth_morris_pratt): Remove function.
40864         (strcasestr): Update.
40865         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
40866         * modules/c-strstr (Files): Likewise.
40867         * modules/mbscasestr (Files): Likewise.
40868         * modules/mbsstr (Files): Likewise.
40869         * modules/strcasestr (Files): Likewise.
40870         Suggested by Paul Eggert.
40871
40872 2007-12-30  Bruno Haible  <bruno@clisp.org>
40873
40874         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
40875         defined.
40876
40877 2007-12-30  Bruno Haible  <bruno@clisp.org>
40878
40879         * lib/xmalloca.h: Include xalloc.h.
40880         (xnmalloca): New macro.
40881
40882 2007-12-30  Bruno Haible  <bruno@clisp.org>
40883
40884         * lib/malloca.h (nmalloca): New macro.
40885         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
40886         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
40887         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
40888         knuth_morris_pratt_multibyte): Likewise.
40889         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
40890         knuth_morris_pratt_multibyte): Likewise.
40891         * lib/memmem.c (knuth_morris_pratt): Likewise.
40892         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
40893
40894 2007-12-25  Bruno Haible  <bruno@clisp.org>
40895
40896         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
40897         * lib/glob.c: Don't include openat.h.
40898         (link_exists2_p): Add back the code that deals with the
40899         !GLOB_ALTDIRFUNC case.
40900         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
40901         let it do the filename concatenation.
40902         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
40903         * modules/glob (Depends-on): Remove openat.
40904
40905 2007-12-31  Bruno Haible  <bruno@clisp.org>
40906
40907         * modules/dirfd (License): Change to LGPLv2+.
40908         Approved by Jim Meyering.
40909
40910 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
40911
40912         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
40913         when multiplying M by sizeof (size_t).
40914
40915 2007-12-10  Martin Lambers  <marlam@marlam.de>
40916
40917         Override getpagesize on mingw.
40918         * lib/getpagesize.c: New file.
40919         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
40920         * modules/getpagesize (Files): Add lib/getpagesize.c.
40921         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
40922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40923         REPLACE_GETPAGESIZE.
40924         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
40925
40926 2007-12-25  Bruno Haible  <bruno@clisp.org>
40927
40928         * modules/localcharset (Notice): New field.
40929         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
40930         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
40931
40932 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40933             Bruno Haible  <bruno@clisp.org>
40934
40935         Avoid using the syntax symbol() in formatted documentation.
40936         * MODULES.html.sh (func_module): When replacing symbol() with a
40937         hyperlink, remove the parentheses. Show an error if some remain.
40938         Recognize and render the '...' syntax.
40939         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
40940         Rework. Add paragraph about GCC's inlining.
40941         * doc/alloca.texi: Likewise.
40942         * doc/error.texi: Remove parentheses from symbol reference.
40943         * doc/gnulib-intro.texi: Likewise.
40944         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
40945         * modules/fnmatch (Description): Reword to say "the ... function".
40946         * modules/full-read (Description): Likewise.
40947         * modules/full-write (Description): Likewise.
40948         * modules/safe-read (Description): Likewise.
40949         * modules/safe-write (Description): Likewise.
40950         * modules/strchrnul (Description): Likewise.
40951         * modules/trim (Description): Likewise.
40952         * modules/error (Description): Remove parentheses from symbol
40953         references.
40954         * modules/verror (Description): Likewise.
40955         Reported by Karl Berry.
40956
40957 2007-12-25  Bruno Haible  <bruno@clisp.org>
40958
40959         Fixup after 2007-10-16 commit.
40960         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
40961
40962 2007-12-24  Bruno Haible  <bruno@clisp.org>
40963
40964         Make --enable-relocatable work with DESTDIR.
40965         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
40966         to compute installdir from destprog.
40967         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
40968         also set the RELOC_DESTDIR variable.
40969         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
40970
40971 2007-12-24  Bruno Haible  <bruno@clisp.org>
40972
40973         Fix link error due to xalloc_die().
40974         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
40975         of xreadlink.
40976         * lib/relocwrapper.c: Update comments.
40977         * build-aux/install-reloc: Remove xreadlink.c from file list.
40978         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
40979         xreadlink.c.
40980         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
40981
40982 2007-12-24  Bruno Haible  <bruno@clisp.org>
40983
40984         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
40985         * lib/setenv.h: Remove file.
40986         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
40987         lib/setenv.h.
40988         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
40989         (Depends-on): Add stdlib.
40990         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
40991         gl_FUNC_UNSETENV.
40992         (Include): Replace setenv.h with <stdlib.h>.
40993         * modules/unsetenv: New file.
40994         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
40995         * lib/unsetenv.c: Include <stdlib.h> first.
40996         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
40997         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
40998         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
40999         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
41000         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
41001         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
41002         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
41003         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
41004         * doc/functions/unsetenv.texi: Update.
41005         * modules/xsetenv (Depends-on): Add unsetenv.
41006         * modules/getdate (Depends-on): Likewise.
41007         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
41008         * lib/xsetenv.c: Don't include setenv.h.
41009         * lib/getdate.y: Likewise.
41010         * lib/relocwrapper.c: Likewise.
41011         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
41012         (Depends-on): Add stdlib.
41013         * NEWS: Mention the changes.
41014         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
41015
41016 2007-12-23  Bruno Haible  <bruno@clisp.org>
41017
41018         * lib/memmem.c (memmem): Use lowercase variable names. Tab
41019         indentation.
41020
41021 2007-12-23  Bruno Haible  <bruno@clisp.org>
41022
41023         * lib/c-strcasestr.c: Add more comments.
41024         * lib/c-strstr.c: Likewise.
41025         * lib/mbscasestr.c: Likewise.
41026         * lib/mbsstr.c: Likewise.
41027         * lib/strcasestr.c: Likewise.
41028         * lib/memmem.c: Likewise.
41029
41030 2007-12-23  Bruno Haible  <bruno@clisp.org>
41031
41032         * tests/test-memmem.c: Include <string.h> first.
41033
41034 2007-12-22  Bruno Haible  <bruno@clisp.org>
41035
41036         * gnulib-tool (func_create_testdir): Change $auxdir while generating
41037         the contents of $testsbase.
41038         Reported by Ralf Wildenhues.
41039
41040 2007-12-22  Bruno Haible  <bruno@clisp.org>
41041
41042         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
41043         two variables local_ldadd_before, local_ldadd_last.
41044
41045 2007-12-20  Eric Blake  <ebb9@byu.net>
41046
41047         Work around circular library issue when cross-compiling.
41048         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
41049         that progname.o does not need to pull in rpl_memcmp.
41050
41051 2007-12-19  Eric Blake  <ebb9@byu.net>
41052
41053         Fix memmem to avoid O(n^2) worst-case complexity.
41054         * lib/memmem.c (knuth_morris_pratt): New function.
41055         (memmem): Use it if first few naive iterations fail.
41056         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
41057         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
41058         * modules/memchr (License): Likewise.
41059         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
41060         malloca.
41061         * tests/test-memmem.c: Rewrite, borrowing ideas from
41062         test-mbsstr1.c; the old version wouldn't even compile!
41063         * modules/memmem-tests: New file.
41064         * lib/string.in.h (rpl_memmem): Add declaration.
41065         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
41066         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
41067         REPLACE_MEMMEM.
41068
41069 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41070
41071         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
41072         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
41073         before any system include files, and undef after them all.  This
41074         should fix a problem on VMS reported by John E. Malmberg in
41075         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
41076
41077 2007-12-17  Eric Blake  <ebb9@byu.net>
41078
41079         Revert addition of verify, for BSD/OS.
41080         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
41081         can't handle large files, for the sake of obsolete platforms.
41082         * modules/fseeko (Depends-on): Remove verify.
41083         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
41084         * doc/functions/ftello.texi (ftello): Likewise.
41085         * doc/functions/fgetpos.texi (fgetpos): Likewise.
41086         Reported by Larry Jones.
41087
41088 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
41089
41090         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
41091         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
41092
41093 2007-12-17  Jim Meyering  <meyering@redhat.com>
41094
41095         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
41096         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
41097         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
41098         * modules/getcwd (Depends-on): Add openat.
41099         Reported by Petr Salinger.
41100
41101 2007-12-17  Bruno Haible  <bruno@clisp.org>
41102
41103         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
41104         avoid a segmentation fault of the configure test on x86_64 systems.
41105
41106 2007-12-15  Jim Meyering  <meyering@redhat.com>
41107
41108         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
41109
41110 2007-12-13  Eric Blake  <ebb9@byu.net>
41111
41112         Another fseek test.
41113         * tests/test-fseek.c (main): Also test ungetc handling.
41114         * tests/test-fseeko.c (main): Likewise.
41115         * modules/fseeko (Depends-on): Add verify.
41116         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
41117         large.
41118         Reported by Larry Jones.
41119
41120         Fix fseeko on mingw.
41121         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
41122         seek.
41123
41124         Beef up fseek tests.
41125         * tests/test-fseek.c (main): Also test eof handling.
41126         * tests/test-fseeko.c (main): Likewise.
41127         Reported by Larry Jones.
41128
41129 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
41130
41131         Fix fseeko on BSD-based platforms.
41132         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
41133         successful seek.
41134
41135 2007-12-12  Eric Blake  <ebb9@byu.net>
41136
41137         Allow circular dependency of separate libtests.a
41138         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
41139         when use_libtests.
41140
41141 2007-12-11  Eric Blake  <ebb9@byu.net>
41142
41143         Fix bug with -0.0L in previous patch.
41144         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
41145         * tests/test-isnan.c (main): Also test on zeroes.
41146         * tests/test-isnanf.c (main): Likewise.
41147         * tests/test-isnanl.h (main): Likewise.
41148
41149         Detect pseudo-denormals on x86 even when cross-compiling.
41150         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
41151         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
41152         invalid bit patterns that happen to satisfy ==.
41153
41154         Avoid link failures with separate libtests.a.
41155         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
41156         last, to satisfy circular dependencies.
41157
41158 2007-12-11  Eric Blake  <ebb9@byu.net>
41159         and Bruno Haible  <bruno@clisp.org>
41160
41161         Fix OpenBSD 4.0 <float.h> handling of long double.
41162         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
41163         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
41164         * doc/headers/float.texi (float.h): Document OpenBSD bug.
41165
41166 2007-12-11  Jim Meyering  <meyering@redhat.com>
41167
41168         * users.txt: Add libvirt.
41169
41170         Support versions of autoconf prior to 2.59c.
41171         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
41172         if it is not already defined.
41173
41174 2007-12-09  Bruno Haible  <bruno@clisp.org>
41175
41176         Let 'gnulib-tool --import' collect sources needed for the tests in
41177         tests/ rather than in lib/.
41178         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
41179         argument. If true, add rules to generate libtests.a, and put libtests.a
41180         into $(LDADD). Consider source files in subdirectories and set
41181         uses_subdirs.
41182         (func_emit_initmacro_start, func_emit_initmacro_end,
41183         func_emit_initmacro_done): Pass all arguments explicitly.
41184         (func_import): Determine two module lists main_modules,
41185         testsrelated_modules. Determine use_libtests. Determine two variables
41186         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
41187         instead of just sed_transform_lib_file. Determine two variables
41188         main_files and testsrelated_files. Compute 'files' as the union of
41189         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
41190         func_add_or_update. In the generated gnulib-comp.m4, collect the
41191         object files for tests/ in different variables than those for lib/.
41192         Substitute LIBTESTS_LIBDEPS.
41193         (func_create_testdir): Combine the uses_subdirs results from
41194         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
41195
41196 2007-12-09  Bruno Haible  <bruno@clisp.org>
41197
41198         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
41199         the build-aux directory.
41200
41201 2007-12-09  Bruno Haible  <bruno@clisp.org>
41202
41203         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
41204         introduced on 2006-09-09.
41205
41206 2007-12-07  Jim Meyering  <meyering@redhat.com>
41207
41208         Let these macros work also with autoconf-2.59.
41209         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
41210         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
41211         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
41212
41213 2007-12-06  Jim Meyering  <meyering@redhat.com>
41214
41215         Avoid a configure-time syntax error in gl_FUNC_ACL.
41216         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
41217         function in each branch, before testing the cache variable.
41218
41219 2007-12-04  Eric Blake  <ebb9@byu.net>
41220
41221         Make scripts executable.
41222         * build-aux/config.guess: Add execute permissions.
41223         * build-aux/config.sub: Likewise.
41224         * build-aux/gendocs.sh: Likewise.
41225
41226         Fix frexp on mingw.
41227         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
41228         cross-compiling.
41229         * doc/functions/frexp.texi (frexp): Document the bug.
41230
41231         Make cygwin fseeko check more reliable.
41232         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
41233         version numbers, rather than unrelated feature check.
41234         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
41235         * doc/functions/ftello.texi (ftello): Likewise.
41236         Reported by Bruno Haible.
41237
41238         * m4/strerror.m4: Bump version number.
41239
41240 2007-12-03  Bruno Haible  <bruno@clisp.org>
41241
41242         * doc/functions/mprotect.texi: Mention the mingw problem.
41243
41244 2007-12-03  Eric Blake  <ebb9@byu.net>
41245
41246         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
41247         REPLACE_STRERROR is initialized before this macro.
41248
41249 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
41250
41251         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
41252         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
41253         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
41254         put -lsec in even for programs other than 'ls'.  This fixes a problem
41255         for gettext reported by Bruno Haible in
41256         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
41257         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
41258         Add support for Solaris 10.  This isn't efficient, but should get the
41259         job done for now.
41260
41261 2007-12-03  James Youngman  <jay@gnu.org>
41262
41263         * doc/regexprops-generic.texi: change "an close-group" to "a
41264         close-group" and "illegal" to "not allowed".
41265
41266 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41267
41268         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
41269         pr_byname.h. Needed for the rare case when the maintainer has done
41270         "make maintainer-clean" in the source directory and then attempts a
41271         build outside the source directory.
41272         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
41273         scripts_byname.h.
41274
41275 2007-12-02  Martin Lambers <marlam@marlam.de>
41276             Bruno Haible  <bruno@clisp.org>
41277
41278         * lib/getpagesize.h: Remove file.
41279         * lib/unistd.in.h: Include declaration of getpagesize here.
41280         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
41281         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
41282         HAVE_SYS_PARAM_H.
41283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
41284         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
41285         * modules/getpagesize (Files): Remove lib/getpagesize.h.
41286         (Depends-on): Add unistd.
41287         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41288         (Include): Use <unistd.h> instead of getpagesize.h.
41289         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
41290         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
41291         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
41292         gl_GETPAGESIZE invocation, already handled by module dependency.
41293         * lib/pagealign_alloc.c: Don't include getpagesize.h.
41294
41295 2007-12-02  Bruno Haible  <bruno@clisp.org>
41296
41297         * modules/strings-tests: New file.
41298         * tests/test-strings.c: New file.
41299
41300         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
41301         * lib/strings.in.h: New file.
41302         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
41303         * m4/strings_h.m4: New file.
41304         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
41305         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
41306         * modules/strings: New file.
41307         * modules/string (Makefile.am): Update.
41308         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
41309         Reported by Karl Berry.
41310
41311 2007-12-01  Eric Blake  <ebb9@byu.net>
41312
41313         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
41314         accomodate fix in cygwin 1.5.25.
41315
41316 2007-12-01  Jim Meyering  <meyering@redhat.com>
41317
41318         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
41319         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
41320         that would inhibit utf8-optimization of a regexp containing line-
41321         or buffer-anchors, e.g., `^', `$'.
41322
41323 2007-11-30  Bruno Haible  <bruno@clisp.org>
41324
41325         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
41326         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
41327         glthread_recursive_lock_init.
41328         * lib/lock.c (glthread_recursive_lock_init)
41329         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
41330         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41331
41332 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
41333
41334         New function qset_acl, like set_acl but with syscall semantics.
41335         * lib/acl.h (qset_acl): New decl.
41336         * lib/acl.c (qset_acl): New function.
41337         (set_acl): Use new function.  Use more-consistent diagnostics.
41338
41339 2007-11-28  Jim Meyering  <meyering@redhat.com>
41340
41341         * modules/physmem (License): Change from GPL to LGPLv2+.
41342
41343 2007-11-26  Bruno Haible  <bruno@clisp.org>
41344
41345         * lib/vasnprintf.c (decode_long_double): Don't abort if the
41346         'long double' type has excess precision.
41347         Reported by Jim Meyering in
41348         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
41349
41350 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41351
41352         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
41353         Sync from <http://gnu.org/licenses>.
41354         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
41355         with license text from same location.
41356         * doc/maintain.texi, doc/standards.texi:  Sync from
41357         <http://savannah.gnu.org/projects/gnustandards>.
41358
41359 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
41360         and Jim Meyering  <meyering@redhat.com>
41361
41362         Adjust getdate' grammar to accept a slightly more regular language.
41363         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
41364         Before, the former was rejected.
41365         * lib/getdate.y (digits_to_date_time): New function, factored
41366         out of ...
41367         (number): ...here.  Just call digits_to_date_time.
41368         (hybrid): New non-terminal to handle an <unsigned number,
41369         signed relative offset> sequence consistently.
41370
41371 2007-11-18  Jim Meyering  <meyering@redhat.com>
41372
41373         Pull my changes from coreutils:
41374         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
41375         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
41376         use of $gnulib_tool_option_extras, so that it's separated from the
41377         preceding argument.
41378
41379         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
41380         * build-aux/bootstrap (cp_mark_as_generated): Create any required
41381         parent destination directories before copying a file into place.
41382
41383 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
41384
41385         bootstrap: work also with 4-argument variant of AC_INIT
41386         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
41387
41388 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41389
41390         Port test-getaddrinfo to Solaris.
41391         Problem reported by Bruno Haible in
41392         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
41393         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
41394         explanation of setting 'hints'.
41395         Don't reject an implementation merely because it returns EAI_SERVICE.
41396         (EAI_SERVICE): Define to 0 if not defined.
41397
41398 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
41399
41400         The license of gnu-make and posix-shell is now "GPLed build tool".
41401         * modules/gnu-make (License): Likewise.
41402         * modules/posix-shell (License): Likewise.
41403
41404         New module posix-shell, for determining a POSIX shell
41405         or perhaps something that is close enough to a POSIX shell.
41406         * m4/posix-shell.m4: New file.
41407         * modules/posix-shell: New file.
41408
41409         * MODULES.html.sh: Mention new module.
41410
41411         New module gnu-make, for determining whether we're using GNU Make.
41412         * m4/gnu-make.m4: New file.
41413         * modules/gnu-make: New file.
41414         * MODULES.html.sh: Mention new module.
41415
41416 2007-11-14  Jim Meyering  <meyering@redhat.com>
41417
41418         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
41419         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
41420         use this macro to create a function _definition_.
41421         Remove useless "#undef ARGMATCH_DIE".
41422
41423 2007-11-14  Bruno Haible  <bruno@clisp.org>
41424
41425         * lib/config.charset: Update for OpenBSD 4.1.
41426         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
41427
41428 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
41429
41430         Document 64-bit #if problems in stdint.texi.
41431         * doc/headers/stdint.texi (stdint.h): Mention problems with
41432         64-bit-#if, and how to work around them.
41433
41434         Don't insist on 'long long int' support in the preprocessor.  It
41435         breaks too many things.  For example, PRIdMAX still uses a 'long
41436         long int' format with the latest Sun compiler, even though
41437         HAVE_LONG_LONG_INT isn't defined due to that compiler's
41438         preprocessor problem.  This causes the latest coreutils to dump
41439         core on Solaris 10 sparc with the Sun C compiler.
41440         Instead, fix the 2007-10-16 problem in a different way, by evaluating
41441         the troublesome expressions at configure-time, not at #if-time.
41442         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
41443         preprocessor.
41444         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
41445         compile-time C checks, done at 'configure'-time.
41446         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
41447         * modules/inttypes (Makefile): Substitute the new symbols that
41448         gl_INTTYPES_H now generates.
41449         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
41450
41451 2007-11-12  Bruno Haible  <bruno@clisp.org>
41452
41453         Tests for Unicode character classification functions.
41454
41455         * modules/unictype/bidicategory-byname-tests: New file.
41456         * modules/unictype/bidicategory-name-tests: New file.
41457         * modules/unictype/bidicategory-of-tests: New file.
41458         * modules/unictype/bidicategory-test-tests: New file.
41459         * modules/unictype/block-list-tests: New file.
41460         * modules/unictype/block-of-tests: New file.
41461         * modules/unictype/block-test-tests: New file.
41462         * modules/unictype/category-C-tests: New file.
41463         * modules/unictype/category-Cc-tests: New file.
41464         * modules/unictype/category-Cf-tests: New file.
41465         * modules/unictype/category-Cn-tests: New file.
41466         * modules/unictype/category-Co-tests: New file.
41467         * modules/unictype/category-Cs-tests: New file.
41468         * modules/unictype/category-L-tests: New file.
41469         * modules/unictype/category-Ll-tests: New file.
41470         * modules/unictype/category-Lm-tests: New file.
41471         * modules/unictype/category-Lo-tests: New file.
41472         * modules/unictype/category-Lt-tests: New file.
41473         * modules/unictype/category-Lu-tests: New file.
41474         * modules/unictype/category-M-tests: New file.
41475         * modules/unictype/category-Mc-tests: New file.
41476         * modules/unictype/category-Me-tests: New file.
41477         * modules/unictype/category-Mn-tests: New file.
41478         * modules/unictype/category-N-tests: New file.
41479         * modules/unictype/category-Nd-tests: New file.
41480         * modules/unictype/category-Nl-tests: New file.
41481         * modules/unictype/category-No-tests: New file.
41482         * modules/unictype/category-P-tests: New file.
41483         * modules/unictype/category-Pc-tests: New file.
41484         * modules/unictype/category-Pd-tests: New file.
41485         * modules/unictype/category-Pe-tests: New file.
41486         * modules/unictype/category-Pf-tests: New file.
41487         * modules/unictype/category-Pi-tests: New file.
41488         * modules/unictype/category-Po-tests: New file.
41489         * modules/unictype/category-Ps-tests: New file.
41490         * modules/unictype/category-S-tests: New file.
41491         * modules/unictype/category-Sc-tests: New file.
41492         * modules/unictype/category-Sk-tests: New file.
41493         * modules/unictype/category-Sm-tests: New file.
41494         * modules/unictype/category-So-tests: New file.
41495         * modules/unictype/category-Z-tests: New file.
41496         * modules/unictype/category-Zl-tests: New file.
41497         * modules/unictype/category-Zp-tests: New file.
41498         * modules/unictype/category-Zs-tests: New file.
41499         * modules/unictype/category-and-not-tests: New file.
41500         * modules/unictype/category-and-tests: New file.
41501         * modules/unictype/category-byname-tests: New file.
41502         * modules/unictype/category-name-tests: New file.
41503         * modules/unictype/category-none-tests: New file.
41504         * modules/unictype/category-of-tests: New file.
41505         * modules/unictype/category-or-tests: New file.
41506         * modules/unictype/category-test-withtable-tests: New file.
41507         * modules/unictype/combining-class-tests: New file.
41508         * modules/unictype/ctype-alnum-tests: New file.
41509         * modules/unictype/ctype-alpha-tests: New file.
41510         * modules/unictype/ctype-blank-tests: New file.
41511         * modules/unictype/ctype-cntrl-tests: New file.
41512         * modules/unictype/ctype-digit-tests: New file.
41513         * modules/unictype/ctype-graph-tests: New file.
41514         * modules/unictype/ctype-lower-tests: New file.
41515         * modules/unictype/ctype-print-tests: New file.
41516         * modules/unictype/ctype-punct-tests: New file.
41517         * modules/unictype/ctype-space-tests: New file.
41518         * modules/unictype/ctype-upper-tests: New file.
41519         * modules/unictype/ctype-xdigit-tests: New file.
41520         * modules/unictype/decimal-digit-tests: New file.
41521         * modules/unictype/digit-tests: New file.
41522         * modules/unictype/mirror-tests: New file.
41523         * modules/unictype/numeric-tests: New file.
41524         * modules/unictype/property-alphabetic-tests: New file.
41525         * modules/unictype/property-ascii-hex-digit-tests: New file.
41526         * modules/unictype/property-bidi-arabic-digit-tests: New file.
41527         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
41528         * modules/unictype/property-bidi-block-separator-tests: New file.
41529         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
41530         * modules/unictype/property-bidi-common-separator-tests: New file.
41531         * modules/unictype/property-bidi-control-tests: New file.
41532         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
41533         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
41534         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
41535         * modules/unictype/property-bidi-european-digit-tests: New file.
41536         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
41537         * modules/unictype/property-bidi-left-to-right-tests: New file.
41538         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
41539         * modules/unictype/property-bidi-other-neutral-tests: New file.
41540         * modules/unictype/property-bidi-pdf-tests: New file.
41541         * modules/unictype/property-bidi-segment-separator-tests: New file.
41542         * modules/unictype/property-bidi-whitespace-tests: New file.
41543         * modules/unictype/property-byname-tests: New file.
41544         * modules/unictype/property-combining-tests: New file.
41545         * modules/unictype/property-composite-tests: New file.
41546         * modules/unictype/property-currency-symbol-tests: New file.
41547         * modules/unictype/property-dash-tests: New file.
41548         * modules/unictype/property-decimal-digit-tests: New file.
41549         * modules/unictype/property-default-ignorable-code-point-tests: New file.
41550         * modules/unictype/property-deprecated-tests: New file.
41551         * modules/unictype/property-diacritic-tests: New file.
41552         * modules/unictype/property-extender-tests: New file.
41553         * modules/unictype/property-format-control-tests: New file.
41554         * modules/unictype/property-grapheme-base-tests: New file.
41555         * modules/unictype/property-grapheme-extend-tests: New file.
41556         * modules/unictype/property-grapheme-link-tests: New file.
41557         * modules/unictype/property-hex-digit-tests: New file.
41558         * modules/unictype/property-hyphen-tests: New file.
41559         * modules/unictype/property-id-continue-tests: New file.
41560         * modules/unictype/property-id-start-tests: New file.
41561         * modules/unictype/property-ideographic-tests: New file.
41562         * modules/unictype/property-ids-binary-operator-tests: New file.
41563         * modules/unictype/property-ids-trinary-operator-tests: New file.
41564         * modules/unictype/property-ignorable-control-tests: New file.
41565         * modules/unictype/property-iso-control-tests: New file.
41566         * modules/unictype/property-join-control-tests: New file.
41567         * modules/unictype/property-left-of-pair-tests: New file.
41568         * modules/unictype/property-line-separator-tests: New file.
41569         * modules/unictype/property-logical-order-exception-tests: New file.
41570         * modules/unictype/property-lowercase-tests: New file.
41571         * modules/unictype/property-math-tests: New file.
41572         * modules/unictype/property-non-break-tests: New file.
41573         * modules/unictype/property-not-a-character-tests: New file.
41574         * modules/unictype/property-numeric-tests: New file.
41575         * modules/unictype/property-other-alphabetic-tests: New file.
41576         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
41577         * modules/unictype/property-other-grapheme-extend-tests: New file.
41578         * modules/unictype/property-other-id-continue-tests: New file.
41579         * modules/unictype/property-other-id-start-tests: New file.
41580         * modules/unictype/property-other-lowercase-tests: New file.
41581         * modules/unictype/property-other-math-tests: New file.
41582         * modules/unictype/property-other-uppercase-tests: New file.
41583         * modules/unictype/property-paired-punctuation-tests: New file.
41584         * modules/unictype/property-paragraph-separator-tests: New file.
41585         * modules/unictype/property-pattern-syntax-tests: New file.
41586         * modules/unictype/property-pattern-white-space-tests: New file.
41587         * modules/unictype/property-private-use-tests: New file.
41588         * modules/unictype/property-punctuation-tests: New file.
41589         * modules/unictype/property-quotation-mark-tests: New file.
41590         * modules/unictype/property-radical-tests: New file.
41591         * modules/unictype/property-sentence-terminal-tests: New file.
41592         * modules/unictype/property-soft-dotted-tests: New file.
41593         * modules/unictype/property-space-tests: New file.
41594         * modules/unictype/property-terminal-punctuation-tests: New file.
41595         * modules/unictype/property-test-tests: New file.
41596         * modules/unictype/property-titlecase-tests: New file.
41597         * modules/unictype/property-unassigned-code-value-tests: New file.
41598         * modules/unictype/property-unified-ideograph-tests: New file.
41599         * modules/unictype/property-uppercase-tests: New file.
41600         * modules/unictype/property-variation-selector-tests: New file.
41601         * modules/unictype/property-white-space-tests: New file.
41602         * modules/unictype/property-xid-continue-tests: New file.
41603         * modules/unictype/property-xid-start-tests: New file.
41604         * modules/unictype/property-zero-width-tests: New file.
41605         * modules/unictype/scripts-tests: New file.
41606         * modules/unictype/syntax-c-ident-tests: New file.
41607         * modules/unictype/syntax-c-whitespace-tests: New file.
41608         * modules/unictype/syntax-java-ident-tests: New file.
41609         * modules/unictype/syntax-java-whitespace-tests: New file.
41610         * tests/unictype/test-bidi_byname.c: New file.
41611         * tests/unictype/test-bidi_name.c: New file.
41612         * tests/unictype/test-bidi_of.c: New file.
41613         * tests/unictype/test-bidi_test.c: New file.
41614         * tests/unictype/test-block_list.c: New file.
41615         * tests/unictype/test-block_of.c: New file.
41616         * tests/unictype/test-block_test.c: New file.
41617         * tests/unictype/test-categ_and.c: New file.
41618         * tests/unictype/test-categ_and_not.c: New file.
41619         * tests/unictype/test-categ_byname.c: New file.
41620         * tests/unictype/test-categ_name.c: New file.
41621         * tests/unictype/test-categ_none.c: New file.
41622         * tests/unictype/test-categ_of.c: New file.
41623         * tests/unictype/test-categ_or.c: New file.
41624         * tests/unictype/test-categ_test_withtable.c: New file.
41625         * tests/unictype/test-combining.c: New file.
41626         * tests/unictype/test-decdigit.c: New file.
41627         * tests/unictype/test-digit.c: New file.
41628         * tests/unictype/test-mirror.c: New file.
41629         * tests/unictype/test-numeric.c: New file.
41630         * tests/unictype/test-pr_byname.c: New file.
41631         * tests/unictype/test-pr_test.c: New file.
41632         * tests/unictype/test-predicate-part1.h: New file.
41633         * tests/unictype/test-predicate-part2.h: New file.
41634         * tests/unictype/test-scripts.c: New file.
41635         * tests/unictype/test-sy_c_ident.c: New file.
41636         * tests/unictype/test-sy_java_ident.c: New file.
41637
41638         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
41639         for Unicode 5.0.0.
41640         * tests/unictype/test-categ_Cc.c: Likewise.
41641         * tests/unictype/test-categ_Cf.c: Likewise.
41642         * tests/unictype/test-categ_Cn.c: Likewise.
41643         * tests/unictype/test-categ_Co.c: Likewise.
41644         * tests/unictype/test-categ_Cs.c: Likewise.
41645         * tests/unictype/test-categ_L.c: Likewise.
41646         * tests/unictype/test-categ_Ll.c: Likewise.
41647         * tests/unictype/test-categ_Lm.c: Likewise.
41648         * tests/unictype/test-categ_Lo.c: Likewise.
41649         * tests/unictype/test-categ_Lt.c: Likewise.
41650         * tests/unictype/test-categ_Lu.c: Likewise.
41651         * tests/unictype/test-categ_M.c: Likewise.
41652         * tests/unictype/test-categ_Mc.c: Likewise.
41653         * tests/unictype/test-categ_Me.c: Likewise.
41654         * tests/unictype/test-categ_Mn.c: Likewise.
41655         * tests/unictype/test-categ_N.c: Likewise.
41656         * tests/unictype/test-categ_Nd.c: Likewise.
41657         * tests/unictype/test-categ_Nl.c: Likewise.
41658         * tests/unictype/test-categ_No.c: Likewise.
41659         * tests/unictype/test-categ_P.c: Likewise.
41660         * tests/unictype/test-categ_Pc.c: Likewise.
41661         * tests/unictype/test-categ_Pd.c: Likewise.
41662         * tests/unictype/test-categ_Pe.c: Likewise.
41663         * tests/unictype/test-categ_Pf.c: Likewise.
41664         * tests/unictype/test-categ_Pi.c: Likewise.
41665         * tests/unictype/test-categ_Po.c: Likewise.
41666         * tests/unictype/test-categ_Ps.c: Likewise.
41667         * tests/unictype/test-categ_S.c: Likewise.
41668         * tests/unictype/test-categ_Sc.c: Likewise.
41669         * tests/unictype/test-categ_Sk.c: Likewise.
41670         * tests/unictype/test-categ_Sm.c: Likewise.
41671         * tests/unictype/test-categ_So.c: Likewise.
41672         * tests/unictype/test-categ_Z.c: Likewise.
41673         * tests/unictype/test-categ_Zl.c: Likewise.
41674         * tests/unictype/test-categ_Zp.c: Likewise.
41675         * tests/unictype/test-categ_Zs.c: Likewise.
41676         * tests/unictype/test-ctype_alnum.c: Likewise.
41677         * tests/unictype/test-ctype_alpha.c: Likewise.
41678         * tests/unictype/test-ctype_blank.c: Likewise.
41679         * tests/unictype/test-ctype_cntrl.c: Likewise.
41680         * tests/unictype/test-ctype_digit.c: Likewise.
41681         * tests/unictype/test-ctype_graph.c: Likewise.
41682         * tests/unictype/test-ctype_lower.c: Likewise.
41683         * tests/unictype/test-ctype_print.c: Likewise.
41684         * tests/unictype/test-ctype_punct.c: Likewise.
41685         * tests/unictype/test-ctype_space.c: Likewise.
41686         * tests/unictype/test-ctype_upper.c: Likewise.
41687         * tests/unictype/test-ctype_xdigit.c: Likewise.
41688         * tests/unictype/test-decdigit.h: Likewise.
41689         * tests/unictype/test-digit.h: Likewise.
41690         * tests/unictype/test-numeric.h: Likewise.
41691         * tests/unictype/test-pr_alphabetic.c: Likewise.
41692         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
41693         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
41694         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
41695         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
41696         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
41697         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
41698         * tests/unictype/test-pr_bidi_control.c: Likewise.
41699         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
41700         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
41701         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
41702         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
41703         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
41704         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
41705         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
41706         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
41707         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
41708         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
41709         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
41710         * tests/unictype/test-pr_combining.c: Likewise.
41711         * tests/unictype/test-pr_composite.c: Likewise.
41712         * tests/unictype/test-pr_currency_symbol.c: Likewise.
41713         * tests/unictype/test-pr_dash.c: Likewise.
41714         * tests/unictype/test-pr_decimal_digit.c: Likewise.
41715         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
41716         * tests/unictype/test-pr_deprecated.c: Likewise.
41717         * tests/unictype/test-pr_diacritic.c: Likewise.
41718         * tests/unictype/test-pr_extender.c: Likewise.
41719         * tests/unictype/test-pr_format_control.c: Likewise.
41720         * tests/unictype/test-pr_grapheme_base.c: Likewise.
41721         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
41722         * tests/unictype/test-pr_grapheme_link.c: Likewise.
41723         * tests/unictype/test-pr_hex_digit.c: Likewise.
41724         * tests/unictype/test-pr_hyphen.c: Likewise.
41725         * tests/unictype/test-pr_id_continue.c: Likewise.
41726         * tests/unictype/test-pr_id_start.c: Likewise.
41727         * tests/unictype/test-pr_ideographic.c: Likewise.
41728         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
41729         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
41730         * tests/unictype/test-pr_ignorable_control.c: Likewise.
41731         * tests/unictype/test-pr_iso_control.c: Likewise.
41732         * tests/unictype/test-pr_join_control.c: Likewise.
41733         * tests/unictype/test-pr_left_of_pair.c: Likewise.
41734         * tests/unictype/test-pr_line_separator.c: Likewise.
41735         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
41736         * tests/unictype/test-pr_lowercase.c: Likewise.
41737         * tests/unictype/test-pr_math.c: Likewise.
41738         * tests/unictype/test-pr_non_break.c: Likewise.
41739         * tests/unictype/test-pr_not_a_character.c: Likewise.
41740         * tests/unictype/test-pr_numeric.c: Likewise.
41741         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
41742         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
41743         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
41744         * tests/unictype/test-pr_other_id_continue.c: Likewise.
41745         * tests/unictype/test-pr_other_id_start.c: Likewise.
41746         * tests/unictype/test-pr_other_lowercase.c: Likewise.
41747         * tests/unictype/test-pr_other_math.c: Likewise.
41748         * tests/unictype/test-pr_other_uppercase.c: Likewise.
41749         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
41750         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
41751         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
41752         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
41753         * tests/unictype/test-pr_private_use.c: Likewise.
41754         * tests/unictype/test-pr_punctuation.c: Likewise.
41755         * tests/unictype/test-pr_quotation_mark.c: Likewise.
41756         * tests/unictype/test-pr_radical.c: Likewise.
41757         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
41758         * tests/unictype/test-pr_soft_dotted.c: Likewise.
41759         * tests/unictype/test-pr_space.c: Likewise.
41760         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
41761         * tests/unictype/test-pr_titlecase.c: Likewise.
41762         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
41763         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
41764         * tests/unictype/test-pr_uppercase.c: Likewise.
41765         * tests/unictype/test-pr_variation_selector.c: Likewise.
41766         * tests/unictype/test-pr_white_space.c: Likewise.
41767         * tests/unictype/test-pr_xid_continue.c: Likewise.
41768         * tests/unictype/test-pr_xid_start.c: Likewise.
41769         * tests/unictype/test-pr_zero_width.c: Likewise.
41770         * tests/unictype/test-sy_c_whitespace.c: Likewise.
41771         * tests/unictype/test-sy_java_whitespace.c: Likewise.
41772
41773 2007-11-12  Bruno Haible  <bruno@clisp.org>
41774
41775         Unicode character classification functions.
41776         * lib/unictype.h: New file.
41777         * modules/unictype/base: New file.
41778         * modules/unictype/category-L: New file.
41779         * modules/unictype/category-Lu: New file.
41780         * modules/unictype/category-Ll: New file.
41781         * modules/unictype/category-Lt: New file.
41782         * modules/unictype/category-Lm: New file.
41783         * modules/unictype/category-Lo: New file.
41784         * modules/unictype/category-M: New file.
41785         * modules/unictype/category-Mn: New file.
41786         * modules/unictype/category-Mc: New file.
41787         * modules/unictype/category-Me: New file.
41788         * modules/unictype/category-N: New file.
41789         * modules/unictype/category-Nd: New file.
41790         * modules/unictype/category-Nl: New file.
41791         * modules/unictype/category-No: New file.
41792         * modules/unictype/category-P: New file.
41793         * modules/unictype/category-Pc: New file.
41794         * modules/unictype/category-Pd: New file.
41795         * modules/unictype/category-Ps: New file.
41796         * modules/unictype/category-Pe: New file.
41797         * modules/unictype/category-Pi: New file.
41798         * modules/unictype/category-Pf: New file.
41799         * modules/unictype/category-Po: New file.
41800         * modules/unictype/category-S: New file.
41801         * modules/unictype/category-Sm: New file.
41802         * modules/unictype/category-Sc: New file.
41803         * modules/unictype/category-Sk: New file.
41804         * modules/unictype/category-So: New file.
41805         * modules/unictype/category-Z: New file.
41806         * modules/unictype/category-Zs: New file.
41807         * modules/unictype/category-Zl: New file.
41808         * modules/unictype/category-Zp: New file.
41809         * modules/unictype/category-C: New file.
41810         * modules/unictype/category-Cc: New file.
41811         * modules/unictype/category-Cf: New file.
41812         * modules/unictype/category-Cs: New file.
41813         * modules/unictype/category-Co: New file.
41814         * modules/unictype/category-Cn: New file.
41815         * modules/unictype/category-or: New file.
41816         * modules/unictype/category-of: New file.
41817         * modules/unictype/category-test: New file.
41818         * modules/unictype/category-test-withtable: New file.
41819         * modules/unictype/category-byname: New file.
41820         * modules/unictype/category-none: New file.
41821         * modules/unictype/category-and: New file.
41822         * modules/unictype/category-and-not: New file.
41823         * modules/unictype/category-name: New file.
41824         * modules/unictype/combining-class: New file.
41825         * modules/unictype/category-all: New file.
41826         * modules/unictype/bidicategory-all: New file.
41827         * modules/unictype/bidicategory-byname: New file.
41828         * modules/unictype/bidicategory-name: New file.
41829         * modules/unictype/bidicategory-of: New file.
41830         * modules/unictype/bidicategory-test: New file.
41831         * modules/unictype/decimal-digit: New file.
41832         * modules/unictype/digit: New file.
41833         * modules/unictype/numeric: New file.
41834         * modules/unictype/mirror: New file.
41835         * modules/unictype/property-white-space: New file.
41836         * modules/unictype/property-alphabetic: New file.
41837         * modules/unictype/property-other-alphabetic: New file.
41838         * modules/unictype/property-not-a-character: New file.
41839         * modules/unictype/property-default-ignorable-code-point: New file.
41840         * modules/unictype/property-other-default-ignorable-code-point: New
41841         file.
41842         * modules/unictype/property-deprecated: New file.
41843         * modules/unictype/property-logical-order-exception: New file.
41844         * modules/unictype/property-variation-selector: New file.
41845         * modules/unictype/property-private-use: New file.
41846         * modules/unictype/property-unassigned-code-value: New file.
41847         * modules/unictype/property-uppercase: New file.
41848         * modules/unictype/property-other-uppercase: New file.
41849         * modules/unictype/property-lowercase: New file.
41850         * modules/unictype/property-other-lowercase: New file.
41851         * modules/unictype/property-titlecase: New file.
41852         * modules/unictype/property-soft-dotted: New file.
41853         * modules/unictype/property-id-start: New file.
41854         * modules/unictype/property-other-id-start: New file.
41855         * modules/unictype/property-id-continue: New file.
41856         * modules/unictype/property-other-id-continue: New file.
41857         * modules/unictype/property-xid-start: New file.
41858         * modules/unictype/property-xid-continue: New file.
41859         * modules/unictype/property-pattern-white-space: New file.
41860         * modules/unictype/property-pattern-syntax: New file.
41861         * modules/unictype/property-join-control: New file.
41862         * modules/unictype/property-grapheme-base: New file.
41863         * modules/unictype/property-grapheme-extend: New file.
41864         * modules/unictype/property-other-grapheme-extend: New file.
41865         * modules/unictype/property-grapheme-link: New file.
41866         * modules/unictype/property-bidi-control: New file.
41867         * modules/unictype/property-bidi-left-to-right: New file.
41868         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
41869         * modules/unictype/property-bidi-arabic-right-to-left: New file.
41870         * modules/unictype/property-bidi-european-digit: New file.
41871         * modules/unictype/property-bidi-eur-num-separator: New file.
41872         * modules/unictype/property-bidi-eur-num-terminator: New file.
41873         * modules/unictype/property-bidi-arabic-digit: New file.
41874         * modules/unictype/property-bidi-common-separator: New file.
41875         * modules/unictype/property-bidi-block-separator: New file.
41876         * modules/unictype/property-bidi-segment-separator: New file.
41877         * modules/unictype/property-bidi-whitespace: New file.
41878         * modules/unictype/property-bidi-non-spacing-mark: New file.
41879         * modules/unictype/property-bidi-boundary-neutral: New file.
41880         * modules/unictype/property-bidi-pdf: New file.
41881         * modules/unictype/property-bidi-embedding-or-override: New file.
41882         * modules/unictype/property-bidi-other-neutral: New file.
41883         * modules/unictype/property-hex-digit: New file.
41884         * modules/unictype/property-ascii-hex-digit: New file.
41885         * modules/unictype/property-ideographic: New file.
41886         * modules/unictype/property-unified-ideograph: New file.
41887         * modules/unictype/property-radical: New file.
41888         * modules/unictype/property-ids-binary-operator: New file.
41889         * modules/unictype/property-ids-trinary-operator: New file.
41890         * modules/unictype/property-zero-width: New file.
41891         * modules/unictype/property-space: New file.
41892         * modules/unictype/property-non-break: New file.
41893         * modules/unictype/property-iso-control: New file.
41894         * modules/unictype/property-format-control: New file.
41895         * modules/unictype/property-dash: New file.
41896         * modules/unictype/property-hyphen: New file.
41897         * modules/unictype/property-punctuation: New file.
41898         * modules/unictype/property-line-separator: New file.
41899         * modules/unictype/property-paragraph-separator: New file.
41900         * modules/unictype/property-quotation-mark: New file.
41901         * modules/unictype/property-sentence-terminal: New file.
41902         * modules/unictype/property-terminal-punctuation: New file.
41903         * modules/unictype/property-currency-symbol: New file.
41904         * modules/unictype/property-math: New file.
41905         * modules/unictype/property-other-math: New file.
41906         * modules/unictype/property-paired-punctuation: New file.
41907         * modules/unictype/property-left-of-pair: New file.
41908         * modules/unictype/property-combining: New file.
41909         * modules/unictype/property-composite: New file.
41910         * modules/unictype/property-decimal-digit: New file.
41911         * modules/unictype/property-numeric: New file.
41912         * modules/unictype/property-diacritic: New file.
41913         * modules/unictype/property-extender: New file.
41914         * modules/unictype/property-ignorable-control: New file.
41915         * modules/unictype/property-test: New file.
41916         * modules/unictype/property-byname: New file.
41917         * modules/unictype/property-all: New file.
41918         * modules/unictype/scripts: New file.
41919         * modules/unictype/scripts-all: New file.
41920         * modules/unictype/block-of: New file.
41921         * modules/unictype/block-test: New file.
41922         * modules/unictype/block-list: New file.
41923         * modules/unictype/block-all: New file.
41924         * modules/unictype/syntax-c-whitespace: New file.
41925         * modules/unictype/syntax-java-whitespace: New file.
41926         * modules/unictype/syntax-c-ident: New file.
41927         * modules/unictype/syntax-java-ident: New file.
41928         * modules/unictype/ctype-alnum: New file.
41929         * modules/unictype/ctype-alpha: New file.
41930         * modules/unictype/ctype-cntrl: New file.
41931         * modules/unictype/ctype-digit: New file.
41932         * modules/unictype/ctype-graph: New file.
41933         * modules/unictype/ctype-lower: New file.
41934         * modules/unictype/ctype-print: New file.
41935         * modules/unictype/ctype-punct: New file.
41936         * modules/unictype/ctype-space: New file.
41937         * modules/unictype/ctype-upper: New file.
41938         * modules/unictype/ctype-xdigit: New file.
41939         * modules/unictype/ctype-blank: New file.
41940         * lib/unictype/bidi_byname.c: New file.
41941         * lib/unictype/bidi_name.c: New file.
41942         * lib/unictype/bidi_of.c: New file.
41943         * lib/unictype/bidi_test.c: New file.
41944         * lib/unictype/bitmap.h: New file.
41945         * lib/unictype/block_test.c: New file.
41946         * lib/unictype/blocks.c: New file.
41947         * lib/unictype/categ_C.c: New file.
41948         * lib/unictype/categ_Cc.c: New file.
41949         * lib/unictype/categ_Cf.c: New file.
41950         * lib/unictype/categ_Cn.c: New file.
41951         * lib/unictype/categ_Co.c: New file.
41952         * lib/unictype/categ_Cs.c: New file.
41953         * lib/unictype/categ_L.c: New file.
41954         * lib/unictype/categ_Ll.c: New file.
41955         * lib/unictype/categ_Lm.c: New file.
41956         * lib/unictype/categ_Lo.c: New file.
41957         * lib/unictype/categ_Lt.c: New file.
41958         * lib/unictype/categ_Lu.c: New file.
41959         * lib/unictype/categ_M.c: New file.
41960         * lib/unictype/categ_Mc.c: New file.
41961         * lib/unictype/categ_Me.c: New file.
41962         * lib/unictype/categ_Mn.c: New file.
41963         * lib/unictype/categ_N.c: New file.
41964         * lib/unictype/categ_Nd.c: New file.
41965         * lib/unictype/categ_Nl.c: New file.
41966         * lib/unictype/categ_No.c: New file.
41967         * lib/unictype/categ_P.c: New file.
41968         * lib/unictype/categ_Pc.c: New file.
41969         * lib/unictype/categ_Pd.c: New file.
41970         * lib/unictype/categ_Pe.c: New file.
41971         * lib/unictype/categ_Pf.c: New file.
41972         * lib/unictype/categ_Pi.c: New file.
41973         * lib/unictype/categ_Po.c: New file.
41974         * lib/unictype/categ_Ps.c: New file.
41975         * lib/unictype/categ_S.c: New file.
41976         * lib/unictype/categ_Sc.c: New file.
41977         * lib/unictype/categ_Sk.c: New file.
41978         * lib/unictype/categ_Sm.c: New file.
41979         * lib/unictype/categ_So.c: New file.
41980         * lib/unictype/categ_Z.c: New file.
41981         * lib/unictype/categ_Zl.c: New file.
41982         * lib/unictype/categ_Zp.c: New file.
41983         * lib/unictype/categ_Zs.c: New file.
41984         * lib/unictype/categ_and.c: New file.
41985         * lib/unictype/categ_and_not.c: New file.
41986         * lib/unictype/categ_byname.c: New file.
41987         * lib/unictype/categ_name.c: New file.
41988         * lib/unictype/categ_none.c: New file.
41989         * lib/unictype/categ_of.c: New file.
41990         * lib/unictype/categ_or.c: New file.
41991         * lib/unictype/categ_test.c: New file.
41992         * lib/unictype/combining.c: New file.
41993         * lib/unictype/ctype_alnum.c: New file.
41994         * lib/unictype/ctype_alpha.c: New file.
41995         * lib/unictype/ctype_blank.c: New file.
41996         * lib/unictype/ctype_cntrl.c: New file.
41997         * lib/unictype/ctype_digit.c: New file.
41998         * lib/unictype/ctype_graph.c: New file.
41999         * lib/unictype/ctype_lower.c: New file.
42000         * lib/unictype/ctype_print.c: New file.
42001         * lib/unictype/ctype_punct.c: New file.
42002         * lib/unictype/ctype_space.c: New file.
42003         * lib/unictype/ctype_upper.c: New file.
42004         * lib/unictype/ctype_xdigit.c: New file.
42005         * lib/unictype/decdigit.c: New file.
42006         * lib/unictype/digit.c: New file.
42007         * lib/unictype/identsyntaxmap.h: New file.
42008         * lib/unictype/mirror.c: New file.
42009         * lib/unictype/numeric.c: New file.
42010         * lib/unictype/pr_alphabetic.c: New file.
42011         * lib/unictype/pr_ascii_hex_digit.c: New file.
42012         * lib/unictype/pr_bidi_arabic_digit.c: New file.
42013         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
42014         * lib/unictype/pr_bidi_block_separator.c: New file.
42015         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
42016         * lib/unictype/pr_bidi_common_separator.c: New file.
42017         * lib/unictype/pr_bidi_control.c: New file.
42018         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
42019         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
42020         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
42021         * lib/unictype/pr_bidi_european_digit.c: New file.
42022         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
42023         * lib/unictype/pr_bidi_left_to_right.c: New file.
42024         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
42025         * lib/unictype/pr_bidi_other_neutral.c: New file.
42026         * lib/unictype/pr_bidi_pdf.c: New file.
42027         * lib/unictype/pr_bidi_segment_separator.c: New file.
42028         * lib/unictype/pr_bidi_whitespace.c: New file.
42029         * lib/unictype/pr_byname.c: New file.
42030         * lib/unictype/pr_byname.gperf: New file.
42031         * lib/unictype/pr_combining.c: New file.
42032         * lib/unictype/pr_composite.c: New file.
42033         * lib/unictype/pr_currency_symbol.c: New file.
42034         * lib/unictype/pr_dash.c: New file.
42035         * lib/unictype/pr_decimal_digit.c: New file.
42036         * lib/unictype/pr_default_ignorable_code_point.c: New file.
42037         * lib/unictype/pr_deprecated.c: New file.
42038         * lib/unictype/pr_diacritic.c: New file.
42039         * lib/unictype/pr_extender.c: New file.
42040         * lib/unictype/pr_format_control.c: New file.
42041         * lib/unictype/pr_grapheme_base.c: New file.
42042         * lib/unictype/pr_grapheme_extend.c: New file.
42043         * lib/unictype/pr_grapheme_link.c: New file.
42044         * lib/unictype/pr_hex_digit.c: New file.
42045         * lib/unictype/pr_hyphen.c: New file.
42046         * lib/unictype/pr_id_continue.c: New file.
42047         * lib/unictype/pr_id_start.c: New file.
42048         * lib/unictype/pr_ideographic.c: New file.
42049         * lib/unictype/pr_ids_binary_operator.c: New file.
42050         * lib/unictype/pr_ids_trinary_operator.c: New file.
42051         * lib/unictype/pr_ignorable_control.c: New file.
42052         * lib/unictype/pr_iso_control.c: New file.
42053         * lib/unictype/pr_join_control.c: New file.
42054         * lib/unictype/pr_left_of_pair.c: New file.
42055         * lib/unictype/pr_line_separator.c: New file.
42056         * lib/unictype/pr_logical_order_exception.c: New file.
42057         * lib/unictype/pr_lowercase.c: New file.
42058         * lib/unictype/pr_math.c: New file.
42059         * lib/unictype/pr_non_break.c: New file.
42060         * lib/unictype/pr_not_a_character.c: New file.
42061         * lib/unictype/pr_numeric.c: New file.
42062         * lib/unictype/pr_other_alphabetic.c: New file.
42063         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
42064         * lib/unictype/pr_other_grapheme_extend.c: New file.
42065         * lib/unictype/pr_other_id_continue.c: New file.
42066         * lib/unictype/pr_other_id_start.c: New file.
42067         * lib/unictype/pr_other_lowercase.c: New file.
42068         * lib/unictype/pr_other_math.c: New file.
42069         * lib/unictype/pr_other_uppercase.c: New file.
42070         * lib/unictype/pr_paired_punctuation.c: New file.
42071         * lib/unictype/pr_paragraph_separator.c: New file.
42072         * lib/unictype/pr_pattern_syntax.c: New file.
42073         * lib/unictype/pr_pattern_white_space.c: New file.
42074         * lib/unictype/pr_private_use.c: New file.
42075         * lib/unictype/pr_punctuation.c: New file.
42076         * lib/unictype/pr_quotation_mark.c: New file.
42077         * lib/unictype/pr_radical.c: New file.
42078         * lib/unictype/pr_sentence_terminal.c: New file.
42079         * lib/unictype/pr_soft_dotted.c: New file.
42080         * lib/unictype/pr_space.c: New file.
42081         * lib/unictype/pr_terminal_punctuation.c: New file.
42082         * lib/unictype/pr_test.c: New file.
42083         * lib/unictype/pr_titlecase.c: New file.
42084         * lib/unictype/pr_unassigned_code_value.c: New file.
42085         * lib/unictype/pr_unified_ideograph.c: New file.
42086         * lib/unictype/pr_uppercase.c: New file.
42087         * lib/unictype/pr_variation_selector.c: New file.
42088         * lib/unictype/pr_white_space.c: New file.
42089         * lib/unictype/pr_xid_continue.c: New file.
42090         * lib/unictype/pr_xid_start.c: New file.
42091         * lib/unictype/pr_zero_width.c: New file.
42092         * lib/unictype/scripts.c: New file.
42093         * lib/unictype/sy_c_ident.c: New file.
42094         * lib/unictype/sy_c_whitespace.c: New file.
42095         * lib/unictype/sy_java_ident.c: New file.
42096         * lib/unictype/sy_java_whitespace.c: New file.
42097
42098         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
42099         Unicode 5.0.0.
42100         * lib/unictype/blocks.h: Likewise.
42101         * lib/unictype/categ_C.h: Likewise.
42102         * lib/unictype/categ_Cc.h: Likewise.
42103         * lib/unictype/categ_Cf.h: Likewise.
42104         * lib/unictype/categ_Cn.h: Likewise.
42105         * lib/unictype/categ_Co.h: Likewise.
42106         * lib/unictype/categ_Cs.h: Likewise.
42107         * lib/unictype/categ_L.h: Likewise.
42108         * lib/unictype/categ_Ll.h: Likewise.
42109         * lib/unictype/categ_Lm.h: Likewise.
42110         * lib/unictype/categ_Lo.h: Likewise.
42111         * lib/unictype/categ_Lt.h: Likewise.
42112         * lib/unictype/categ_Lu.h: Likewise.
42113         * lib/unictype/categ_M.h: Likewise.
42114         * lib/unictype/categ_Mc.h: Likewise.
42115         * lib/unictype/categ_Me.h: Likewise.
42116         * lib/unictype/categ_Mn.h: Likewise.
42117         * lib/unictype/categ_N.h: Likewise.
42118         * lib/unictype/categ_Nd.h: Likewise.
42119         * lib/unictype/categ_Nl.h: Likewise.
42120         * lib/unictype/categ_No.h: Likewise.
42121         * lib/unictype/categ_P.h: Likewise.
42122         * lib/unictype/categ_Pc.h: Likewise.
42123         * lib/unictype/categ_Pd.h: Likewise.
42124         * lib/unictype/categ_Pe.h: Likewise.
42125         * lib/unictype/categ_Pf.h: Likewise.
42126         * lib/unictype/categ_Pi.h: Likewise.
42127         * lib/unictype/categ_Po.h: Likewise.
42128         * lib/unictype/categ_Ps.h: Likewise.
42129         * lib/unictype/categ_S.h: Likewise.
42130         * lib/unictype/categ_Sc.h: Likewise.
42131         * lib/unictype/categ_Sk.h: Likewise.
42132         * lib/unictype/categ_Sm.h: Likewise.
42133         * lib/unictype/categ_So.h: Likewise.
42134         * lib/unictype/categ_Z.h: Likewise.
42135         * lib/unictype/categ_Zl.h: Likewise.
42136         * lib/unictype/categ_Zp.h: Likewise.
42137         * lib/unictype/categ_Zs.h: Likewise.
42138         * lib/unictype/categ_of.h: Likewise.
42139         * lib/unictype/combining.h: Likewise.
42140         * lib/unictype/ctype_alnum.h: Likewise.
42141         * lib/unictype/ctype_alpha.h: Likewise.
42142         * lib/unictype/ctype_blank.h: Likewise.
42143         * lib/unictype/ctype_cntrl.h: Likewise.
42144         * lib/unictype/ctype_digit.h: Likewise.
42145         * lib/unictype/ctype_graph.h: Likewise.
42146         * lib/unictype/ctype_lower.h: Likewise.
42147         * lib/unictype/ctype_print.h: Likewise.
42148         * lib/unictype/ctype_punct.h: Likewise.
42149         * lib/unictype/ctype_space.h: Likewise.
42150         * lib/unictype/ctype_upper.h: Likewise.
42151         * lib/unictype/ctype_xdigit.h: Likewise.
42152         * lib/unictype/decdigit.h: Likewise.
42153         * lib/unictype/digit.h: Likewise.
42154         * lib/unictype/mirror.h: Likewise.
42155         * lib/unictype/numeric.h: Likewise.
42156         * lib/unictype/pr_alphabetic.h: Likewise.
42157         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
42158         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
42159         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
42160         * lib/unictype/pr_bidi_block_separator.h: Likewise.
42161         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
42162         * lib/unictype/pr_bidi_common_separator.h: Likewise.
42163         * lib/unictype/pr_bidi_control.h: Likewise.
42164         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
42165         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
42166         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
42167         * lib/unictype/pr_bidi_european_digit.h: Likewise.
42168         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
42169         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
42170         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
42171         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
42172         * lib/unictype/pr_bidi_pdf.h: Likewise.
42173         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
42174         * lib/unictype/pr_bidi_whitespace.h: Likewise.
42175         * lib/unictype/pr_combining.h: Likewise.
42176         * lib/unictype/pr_composite.h: Likewise.
42177         * lib/unictype/pr_currency_symbol.h: Likewise.
42178         * lib/unictype/pr_dash.h: Likewise.
42179         * lib/unictype/pr_decimal_digit.h: Likewise.
42180         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
42181         * lib/unictype/pr_deprecated.h: Likewise.
42182         * lib/unictype/pr_diacritic.h: Likewise.
42183         * lib/unictype/pr_extender.h: Likewise.
42184         * lib/unictype/pr_format_control.h: Likewise.
42185         * lib/unictype/pr_grapheme_base.h: Likewise.
42186         * lib/unictype/pr_grapheme_extend.h: Likewise.
42187         * lib/unictype/pr_grapheme_link.h: Likewise.
42188         * lib/unictype/pr_hex_digit.h: Likewise.
42189         * lib/unictype/pr_hyphen.h: Likewise.
42190         * lib/unictype/pr_id_continue.h: Likewise.
42191         * lib/unictype/pr_id_start.h: Likewise.
42192         * lib/unictype/pr_ideographic.h: Likewise.
42193         * lib/unictype/pr_ids_binary_operator.h: Likewise.
42194         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
42195         * lib/unictype/pr_ignorable_control.h: Likewise.
42196         * lib/unictype/pr_iso_control.h: Likewise.
42197         * lib/unictype/pr_join_control.h: Likewise.
42198         * lib/unictype/pr_left_of_pair.h: Likewise.
42199         * lib/unictype/pr_line_separator.h: Likewise.
42200         * lib/unictype/pr_logical_order_exception.h: Likewise.
42201         * lib/unictype/pr_lowercase.h: Likewise.
42202         * lib/unictype/pr_math.h: Likewise.
42203         * lib/unictype/pr_non_break.h: Likewise.
42204         * lib/unictype/pr_not_a_character.h: Likewise.
42205         * lib/unictype/pr_numeric.h: Likewise.
42206         * lib/unictype/pr_other_alphabetic.h: Likewise.
42207         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
42208         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
42209         * lib/unictype/pr_other_id_continue.h: Likewise.
42210         * lib/unictype/pr_other_id_start.h: Likewise.
42211         * lib/unictype/pr_other_lowercase.h: Likewise.
42212         * lib/unictype/pr_other_math.h: Likewise.
42213         * lib/unictype/pr_other_uppercase.h: Likewise.
42214         * lib/unictype/pr_paired_punctuation.h: Likewise.
42215         * lib/unictype/pr_paragraph_separator.h: Likewise.
42216         * lib/unictype/pr_pattern_syntax.h: Likewise.
42217         * lib/unictype/pr_pattern_white_space.h: Likewise.
42218         * lib/unictype/pr_private_use.h: Likewise.
42219         * lib/unictype/pr_punctuation.h: Likewise.
42220         * lib/unictype/pr_quotation_mark.h: Likewise.
42221         * lib/unictype/pr_radical.h: Likewise.
42222         * lib/unictype/pr_sentence_terminal.h: Likewise.
42223         * lib/unictype/pr_soft_dotted.h: Likewise.
42224         * lib/unictype/pr_space.h: Likewise.
42225         * lib/unictype/pr_terminal_punctuation.h: Likewise.
42226         * lib/unictype/pr_titlecase.h: Likewise.
42227         * lib/unictype/pr_unassigned_code_value.h: Likewise.
42228         * lib/unictype/pr_unified_ideograph.h: Likewise.
42229         * lib/unictype/pr_uppercase.h: Likewise.
42230         * lib/unictype/pr_variation_selector.h: Likewise.
42231         * lib/unictype/pr_white_space.h: Likewise.
42232         * lib/unictype/pr_xid_continue.h: Likewise.
42233         * lib/unictype/pr_xid_start.h: Likewise.
42234         * lib/unictype/pr_zero_width.h: Likewise.
42235         * lib/unictype/scripts.h: Likewise.
42236         * lib/unictype/scripts_byname.gperf: Likewise.
42237         * lib/unictype/sy_c_ident.h: Likewise.
42238         * lib/unictype/sy_c_whitespace.h: Likewise.
42239         * lib/unictype/sy_java_ident.h: Likewise.
42240         * lib/unictype/sy_java_whitespace.h: Likewise.
42241
42242         * lib/unictype/Makefile: New file.
42243         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
42244         glibc.
42245         * lib/unictype/3level.h: New file, copied from glibc.
42246         * lib/unictype/3levelbit.h: New file.
42247
42248 2007-11-11  Bruno Haible  <bruno@clisp.org>
42249
42250         * modules/gperf: New file.
42251         * modules/iconv_open (Depends-on): Add it.
42252         (Makefile.am): Remove the GPERF definition.
42253
42254 2007-11-11  Bruno Haible  <bruno@clisp.org>
42255
42256         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
42257         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
42258
42259 2007-11-11  Bruno Haible  <bruno@clisp.org>
42260
42261         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
42262         (usage): Remove function.
42263
42264 2007-11-11  Bruno Haible  <bruno@clisp.org>
42265
42266         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
42267         gl_FUNC_CEILF_LIBS.
42268         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
42269         gl_FUNC_CEIL_LIBS.
42270         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
42271         gl_FUNC_CEILL_LIBS.
42272         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
42273         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
42274         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
42275
42276 2007-11-11  Bruno Haible  <bruno@clisp.org>
42277
42278         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
42279         roundf were declared but do not exist on functions.
42280         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
42281         roundl were declared but do not exist on functions.
42282         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
42283         HAVE_FLOORL_AND_CEILL, respectively.
42284         Needed for Sun C on Solaris 10.
42285
42286 2007-11-11  Bruno Haible  <bruno@clisp.org>
42287
42288         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
42289         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
42290         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
42291         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
42292         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
42293         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
42294         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
42295         HAVE_DECL_ROUNDF.
42296         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
42297         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
42298         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
42299         of HAVE_DECL_ROUND*.
42300         * modules/math (Makefile.am): Update.
42301
42302 2007-11-10  Bruno Haible  <bruno@clisp.org>
42303
42304         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
42305         ptrdiff_t as m4/intl.m4.
42306
42307 2007-11-10  Jim Meyering  <meyering@redhat.com>
42308
42309         Avoid link failure for the argmatch test.
42310         * tests/test-argmatch.c (usage): Define function to avoid a link
42311         failure: argmatch_die requires a usage function.
42312
42313 2007-11-09  Bruno Haible  <bruno@clisp.org>
42314
42315         * doc/functions/snprintf.texi: Mention BeOS deficiency.
42316         * doc/functions/vsnprintf.texi: Likewise.
42317         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
42318         with a size argument < 2.
42319
42320 2007-11-09  Bruno Haible  <bruno@clisp.org>
42321
42322         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
42323         buffer. Fixes an inefficiency introduced on 2007-11-03.
42324
42325 2007-11-09  Bruno Haible  <bruno@clisp.org>
42326
42327         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
42328         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
42329
42330 2007-11-08  Jim Meyering  <meyering@redhat.com>
42331
42332         Change cache variable name prefix "jm_" to "gl_" everywhere.
42333         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
42334         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
42335         * m4/uptime.m4: s/gl_/jm_/
42336
42337 2007-11-07  Bruno Haible  <bruno@clisp.org>
42338
42339         Update to GNU gettext 0.17.
42340         * m4/intl.m4: Update to GNU gettext 0.17.
42341         * m4/po.m4: Likewise.
42342         * modules/gettext (Files): Remove m4/ulonglong.m4.
42343         (configure.ac): Require gettext infrastructure from version 0.17.
42344
42345 2007-11-06  Bruno Haible  <bruno@clisp.org>
42346
42347         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
42348         symbolic values are not defined in a public header.
42349         * lib/freadable.c (freadable) [QNX]: Likewise.
42350         * lib/freadahead.c (freadahead) [QNX]: Likewise.
42351         * lib/freading.c (freading) [QNX]: Likewise.
42352         * lib/fseterr.c (fseterr) [QNX]: Likewise.
42353         * lib/fwritable.c (fwritable) [QNX]: Likewise.
42354         * lib/fwriting.c (fwriting) [QNX]: Likewise.
42355         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
42356         Reported by Alain Magloire.
42357
42358         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
42359
42360 2007-11-05  Bruno Haible  <bruno@clisp.org>
42361
42362         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
42363         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
42364         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
42365         Reported by Eric Blake.
42366
42367 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42368             Bruno Haible  <bruno@clisp.org>
42369
42370         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
42371         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
42372         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
42373         (malloc): Undefine also before including <stdlib.h>.
42374         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
42375         Needed on OSF/1 4.0.
42376
42377 2007-11-05  Jim Meyering  <meyering@redhat.com>
42378
42379         git-version-gen: sync from coreutils.
42380         * build-aux/git-version-gen: Add comments.
42381         Change the first '-' to '.' in the snapshot version string,
42382         e.g., 6.9-377-08144 -> 6.9.377-08144
42383         Remove first parameter.
42384         Don't declare a version "-dirty" merely because a time
42385         stamp has changed.
42386
42387 2007-11-04  Bruno Haible  <bruno@clisp.org>
42388
42389         * lib/lock.h: Protect all macro definitions containing an 'if'
42390         statement through a "do { ... } while (0)".
42391         * lib/tls.h: Likewise.
42392
42393 2007-11-04  Bruno Haible  <bruno@clisp.org>
42394
42395         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
42396
42397 2007-11-04  Bruno Haible  <bruno@clisp.org>
42398
42399         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
42400         * modules/fprintf-posix (Depends-on): Add nocrash.
42401         * modules/snprintf-posix (Depends-on): Likewise.
42402         * modules/sprintf-posix (Depends-on): Likewise.
42403         * modules/vasnprintf-posix (Depends-on): Likewise.
42404         * modules/vasprintf-posix (Depends-on): Likewise.
42405         * modules/vfprintf-posix (Depends-on): Likewise.
42406         * modules/vsnprintf-posix (Depends-on): Likewise.
42407         * modules/vsprintf-posix (Depends-on): Likewise.
42408         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42409         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42410         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42411         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42412         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42413         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42414         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42415
42416 2007-11-04  Bruno Haible  <bruno@clisp.org>
42417
42418         * modules/nocrash: New file.
42419         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
42420         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
42421
42422 2007-11-04  Bruno Haible  <bruno@clisp.org>
42423
42424         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
42425         precision handling.
42426         * tests/test-vasprintf-posix.c (test_function): Likewise.
42427         * tests/test-snprintf-posix.h (test_function): Likewise.
42428         * tests/test-sprintf-posix.h (test_function): Likewise.
42429
42430         Fix *printf behaviour for large precisions on mingw and BeOS.
42431         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
42432         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
42433         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
42434         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42435         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42436         gl_PRINTF_PRECISION and test its result. Invoke
42437         gl_PREREQ_VASNPRINTF_PRECISION.
42438         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42439         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42440         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42441         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42442         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42443         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42444         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42445         * doc/functions/fprintf.texi: Update.
42446         * doc/functions/printf.texi: Update.
42447         * doc/functions/snprintf.texi: Update.
42448         * doc/functions/sprintf.texi: Update.
42449         * doc/functions/vfprintf.texi: Update.
42450         * doc/functions/vprintf.texi: Update.
42451         * doc/functions/vsnprintf.texi: Update.
42452         * doc/functions/vsprintf.texi: Update.
42453
42454 2007-11-04  Bruno Haible  <bruno@clisp.org>
42455
42456         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
42457
42458 2007-11-04  Bruno Haible  <bruno@clisp.org>
42459
42460         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
42461         Reported by Sylvain Beucler <beuc@gnu.org>.
42462
42463 2007-11-03  Bruno Haible  <bruno@clisp.org>
42464
42465         * tests/test-fprintf-posix2.sh: New file.
42466         * tests/test-fprintf-posix2.c: New file.
42467         * modules/fprintf-posix-tests (Files): Add them.
42468         (TESTS): Add test-fprintf-posix2.sh.
42469         (configure.ac): Check for getrlimit and setrlimit.
42470         (check_PROGRAMS): Add test-fprintf-posix2.
42471
42472         * tests/test-printf-posix2.sh: New file.
42473         * tests/test-printf-posix2.c: New file.
42474         * modules/printf-posix-tests (Files): Add them.
42475         (TESTS): Add test-printf-posix2.sh.
42476         (configure.ac): Check for getrlimit and setrlimit.
42477         (check_PROGRAMS): Add test-printf-posix2.
42478
42479         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
42480         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
42481         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
42482         (decode_double): New function, copied from decode_long_double.
42483         (scale10_round_decimal_decoded): New function, extracted from
42484         scale10_round_decimal_long_double.
42485         (scale10_round_decimal_long_double): Use it.
42486         (scale10_round_decimal_double): New function.
42487         (floorlog10): New function.
42488         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
42489         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
42490         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42491         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42492         gl_PRINTF_ENOMEM and test its result. Invoke
42493         gl_PREREQ_VASNPRINTF_ENOMEM.
42494         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42495         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42496         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42497         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42498         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42499         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42500         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42501         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
42502         * modules/snprintf-posix (Depends-on): Likewise.
42503         * modules/sprintf-posix (Depends-on): Likewise.
42504         * modules/vasnprintf-posix (Depends-on): Likewise.
42505         * modules/vasprintf-posix (Depends-on): Likewise.
42506         * modules/vfprintf-posix (Depends-on): Likewise.
42507         * modules/vsnprintf-posix (Depends-on): Likewise.
42508         * modules/vsprintf-posix (Depends-on): Likewise.
42509         * doc/functions/fprintf.texi: Update.
42510         * doc/functions/printf.texi: Update.
42511         * doc/functions/snprintf.texi: Update.
42512         * doc/functions/sprintf.texi: Update.
42513         * doc/functions/vfprintf.texi: Update.
42514         * doc/functions/vprintf.texi: Update.
42515         * doc/functions/vsnprintf.texi: Update.
42516         * doc/functions/vsprintf.texi: Update.
42517
42518 2007-11-03  Bruno Haible  <bruno@clisp.org>
42519
42520         * modules/frexp-nolibm-tests: New file.
42521
42522         * modules/frexp-nolibm: New file.
42523         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
42524
42525 2007-11-03  Bruno Haible  <bruno@clisp.org>
42526
42527         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
42528         value is C99 compliant.
42529         Needed for OSF/1 5.1.
42530
42531 2007-11-03  Bruno Haible  <bruno@clisp.org>
42532
42533         Fix out-of-memory handling of vasnprintf.
42534         * lib/printf-parse.c: Include <errno.h>.
42535         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
42536         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
42537         is already set.
42538
42539 2007-11-02  Eric Blake  <ebb9@byu.net>
42540
42541         Fix tests on cygwin.
42542         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
42543
42544 2007-11-01  Bruno Haible  <bruno@clisp.org>
42545
42546         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
42547         warning.
42548         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
42549         needed for POSIX compatibility.
42550
42551 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
42552
42553         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
42554         for compatibility with GNU.
42555
42556 2007-11-01  Bruno Haible  <bruno@clisp.org>
42557
42558         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
42559         (putenv): Renamed from rpl_putenv. Change argument type from
42560         'const char *' to 'char *'.
42561         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
42562         of defining putenv in config.h, just set REPLACE_PUTENV.
42563         * modules/putenv (Depends-on): Add stdlib.
42564         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42565         (Include): Use <stdlib.h>.
42566         * lib/stdlib.in.h (putenv): New declaration.
42567         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
42568         REPLACE_PUTENV.
42569         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
42570         REPLACE_PUTENV.
42571         Needed for MacOS X 10.5.0.
42572         Reported by Peter O'Gorman <peter@pogma.com>.
42573
42574 2007-11-01  Jim Meyering  <meyering@redhat.com>
42575
42576         Treat an empty date string exactly like "0".
42577         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
42578         if the remaining date string (to be parsed) is empty, use "0".
42579         Reported by Mischa Molhoek and discussed in this thread:
42580         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
42581
42582 2007-10-31  Bruno Haible  <bruno@clisp.org>
42583
42584         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
42585         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
42586         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
42587         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
42588         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
42589         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
42590
42591 2007-10-31  Bruno Haible  <bruno@clisp.org>
42592
42593         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
42594         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
42595         (AC_TYPE_LONG_LONG_INT): Use it.
42596         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
42597         it as well.
42598         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
42599         to m4/longlong.m4.
42600         * modules/stdint (Files): Remove m4/ulonglong.m4.
42601         * modules/strtoull (Files): Use m4/longlong.m4 instead of
42602         m4/ulonglong.m4.
42603         * modules/strtoumax (Files): Likewise.
42604
42605 2007-10-30  Bruno Haible  <bruno@clisp.org>
42606
42607         * modules/xvasprintf-posix: New file.
42608         Suggested by Eric Blake.
42609
42610 2007-10-30  Bruno Haible  <bruno@clisp.org>
42611
42612         * modules/xprintf-posix-tests: New file.
42613         * tests/test-xprintf-posix.sh: New file.
42614         * tests/test-xprintf-posix.c: New file.
42615         * tests/test-xfprintf-posix.c: New file.
42616
42617         * modules/xprintf-posix: New file.
42618
42619 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42620
42621         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
42622         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
42623         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
42624
42625 2007-10-29  Bruno Haible  <bruno@clisp.org>
42626
42627         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
42628         contain the special marker '_cv_'.
42629         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
42630         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
42631         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
42632         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
42633         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
42634         Reported by Ralf Wildenhues.
42635
42636 2007-10-29  Bruno Haible  <bruno@clisp.org>
42637
42638         * gnulib-tool (func_import): When --lgpl is not specified, set
42639         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
42640         GPLv3.
42641         Reported by Simon Josefsson.
42642
42643 2007-10-28  Bruno Haible  <bruno@clisp.org>
42644
42645         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
42646         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
42647         HAVE_DECL_ISFINITE.
42648         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
42649         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
42650         HAVE_DECL_ISFINITE.
42651
42652 2007-10-28  Bruno Haible  <bruno@clisp.org>
42653
42654         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
42655         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
42656
42657 2007-10-28  Bruno Haible  <bruno@clisp.org>
42658
42659         Fix link errors with Sun C 5.0 on Solaris 10.
42660         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
42661         function is declared but not present in the compiler's libm.
42662         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
42663         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
42664         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
42665         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
42666         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
42667         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
42668         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
42669         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
42670         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
42671         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
42672         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
42673         HAVE_DECL_FLOORL.
42674
42675 2007-10-28  Bruno Haible  <bruno@clisp.org>
42676
42677         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
42678         gl_FUNC_FLOORL. Cache the result.
42679         (gl_FUNC_FLOORL): Use it.
42680         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
42681         gl_FUNC_CEILL. Cache the result.
42682         (gl_FUNC_CEILL): Use it.
42683
42684         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
42685         gl_FUNC_FLOOR. Cache the result.
42686         (gl_FUNC_FLOOR): Use it.
42687         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
42688         gl_FUNC_CEIL. Cache the result.
42689         (gl_FUNC_CEIL): Use it.
42690
42691         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
42692         gl_FUNC_FLOORF. Cache the result.
42693         (gl_FUNC_FLOORF): Use it.
42694         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
42695         gl_FUNC_CEILF. Cache the result.
42696         (gl_FUNC_CEILF): Use it.
42697
42698 2007-10-28  Bruno Haible  <bruno@clisp.org>
42699
42700         * gnulib-tool: Allow specifying the LGPL version number through
42701         --lgpl=2 or --lgpl=3.
42702         (func_usage): Document --lgpl with argument.
42703         Handle --lgpl=... arguments.
42704         (func_import): Recognize also gl_LGPL calls with an argument. When
42705         --lgpl=2 is used and the module's license is just LGPL, report an
42706         error. Set sed_transform_lib_file according to the lgpl variable. In
42707         the generated files, use --lgpl or gl_LGPL invocations with argument,
42708         if necessary.
42709         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
42710         an LGPv2+ license.
42711         * doc/gnulib-tool.texi (Modified imports): Update explanation of
42712         gl_LGPL macro.
42713
42714 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42715             Bruno Haible  <bruno@clisp.org>
42716
42717         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
42718         (u16_uctomb_aux): Likewise.
42719         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
42720         !HAVE_INLINE.
42721         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
42722
42723 2007-10-28  Bruno Haible  <bruno@clisp.org>
42724
42725         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
42726         Invoke AM_GETTEXT_OPTION if it exists.
42727         * modules/vasprintf: Likewise.
42728         * modules/verror: Likewise.
42729         * modules/xprintf: Likewise.
42730         * modules/xvasprintf: Likewise.
42731
42732 2007-10-27  Ben Pfaff  <blp@gnu.org>
42733
42734         * lib/math.in.h: Define isfinite macro and prototypes for
42735         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
42736         implementations.
42737         * m4/math_h.m4: New substitutions for isfinite module.
42738         * lib/isfinite.c: New file.
42739         * m4/isfinite.m4: New file.
42740         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
42741         * modules/isfinite: New file.
42742         * modules/isfinite-tests: New file.
42743         * tests/tests-isfinite.c: New file.
42744         * doc/functions/isfinite.texi: Mention isfinite module.
42745         * MODULES.html.sh: Mention new module.
42746
42747 2007-10-27  Ben Pfaff  <blp@gnu.org>
42748
42749         Ralf Wildenhues reported that Tru64 4.0D declares the round
42750         functions but does not have definitions.
42751         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
42752         cannot be found in any library, set the output variable to
42753         "missing" instead of "".
42754         * m4/round.m4: Also use our substitute if we cannot find round in
42755         any library, even if it is declared.
42756         * m4/roundf.m4: Likewise for roundf.
42757         * m4/roundl.m4: Likewise for roundl.
42758         * lib/math.in.h: Undefine roundf, round, roundl before defining
42759         their replacements, to allow for hypothetical systems where these
42760         may be defined as macros but not available in libraries.
42761
42762 2007-10-27  Bruno Haible  <bruno@clisp.org>
42763
42764         * doc/gnulib.texi: Invoke @firstparagraphindent.
42765         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
42766         changes in gnulib.
42767         (Source changes): New section.
42768
42769 2007-10-26  Bruno Haible  <bruno@clisp.org>
42770
42771         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
42772         borrowed from autoconf.
42773
42774 2007-10-26  Bruno Haible  <bruno@clisp.org>
42775
42776         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
42777         strerror returned the empty string. Needed on HP-UX 11.00.
42778
42779 2007-10-24  Micah Cowan  <micah@cowan.name>
42780
42781         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
42782         * build-aux/bootstrap: Remove support for now-unnecessary option,
42783         --cvs-user, and envvars CVS_USER, CVS_RSH.
42784
42785 2007-10-24  Jim Meyering  <meyering@redhat.com>
42786
42787         Avoid diagnostics from sha1sum when there is no cached checksum.
42788         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
42789         if the po.s1 file hasn't been created yet.
42790
42791         * build-aux/bootstrap: Sync from coreutils:
42792         2007-10-24  Jim Meyering  <meyering@redhat.com>
42793         Get gnulib from the git repository, not from an obsolete cvs one.
42794         * build-aux/bootstrap: Suggestion from Micah Cowan.
42795         2007-10-04  Jim Meyering  <jim@meyering.net>
42796         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
42797         (update_po_files): Work also when there are no .po files in po/.
42798
42799 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42800
42801         * README: Append ".git" to git and cg examples.
42802         Problem reported by Benoit Sigoure.
42803
42804 2007-10-23  Micah Cowan  <micah@cowan.name>
42805
42806         * users.txt: Add wget.
42807
42808 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42809
42810         Fix linking of some unistdio tests on FreeBSD.
42811         * modules/unistdio/u16-vsnprintf-tests
42812         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
42813         * modules/unistdio/u16-vsprintf-tests
42814         (test_u16_vsnprintf1_LDADD): Likewise.
42815         * modules/unistdio/u32-vsnprintf-tests
42816         (test_u32_vsnprintf1_LDADD): Likewise.
42817         * modules/unistdio/u32-vsprintf-tests
42818         (test_u32_vsprintf1_LDADD): Likewise.
42819         * modules/unistdio/u8-vsnprintf-tests
42820         (test_u8_vsnprintf1_LDADD): Likewise.
42821         * modules/unistdio/u8-vsprintf-tests
42822         (test_u8_vsprintf1_LDADD): Likewise.
42823         * modules/unistdio/ulc-vsnprintf-tests
42824         (test_ulc_vsnprintf1_LDADD): Likewise.
42825         * modules/unistdio/ulc-vsprintf-tests
42826         (test_ulc_vsprintf1_LDADD): Likewise.
42827
42828         Fix linking of some uniconv tests on FreeBSD.
42829         * modules/uniconv/u16-conv-from-enc-tests
42830         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
42831         * modules/uniconv/u16-conv-to-enc-tests
42832         (test_u16_conv_to_enc_LDADD): Likewise.
42833         * modules/uniconv/u16-strconv-from-enc-tests
42834         (test_u16_strconv_from_enc_LDADD): Likewise.
42835         * modules/uniconv/u16-strconv-to-enc-tests
42836         (test_u16_strconv_to_enc_LDADD): Likewise.
42837         * modules/uniconv/u32-conv-from-enc-tests
42838         (test_u32_conv_from_enc_LDADD): Likewise.
42839         * modules/uniconv/u32-conv-to-enc-tests
42840         (test_u32_conv_to_enc_LDADD): Likewise.
42841         * modules/uniconv/u32-strconv-from-enc-tests
42842         (test_u32_strconv_from_enc_LDADD): Likewise.
42843         * modules/uniconv/u32-strconv-to-enc-tests
42844         (test_u32_strconv_to_enc_LDADD): Likewise.
42845         * modules/uniconv/u8-conv-from-enc-tests
42846         (test_u8_conv_from_enc_LDADD): Likewise.
42847         * modules/uniconv/u8-conv-to-enc-tests
42848         (test_u8_conv_to_enc_LDADD): Likewise.
42849         * modules/uniconv/u8-strconv-from-enc-tests
42850         (test_u8_strconv_from_enc_LDADD): Likewise.
42851         * modules/uniconv/u8-strconv-to-enc-tests
42852         (test_u8_strconv_to_enc_LDADD): Likewise.
42853
42854 2007-10-22  Bruno Haible  <bruno@clisp.org>
42855
42856         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
42857         size.
42858
42859 2007-10-22  Eric Blake  <ebb9@byu.net>
42860
42861         Tweak x*printf documentation.
42862         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
42863         variable name and comments.
42864         Suggested by Bruno Haible.
42865
42866 2007-10-22  Bruno Haible  <bruno@clisp.org>
42867
42868         * lib/acl.c (copy_acl): Fix file name in comment.
42869
42870 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
42871
42872         Fix Tru64 problem with stdbool.h.
42873         * lib/stdbool.in.h (false, true):
42874         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
42875         Don't declare as an enum in this situation; it runs afoul of Tru64.
42876         Problem reported by Steven M. Schweda in
42877         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
42878
42879 2007-10-22  Eric Blake  <ebb9@byu.net>
42880
42881         Also wrap vf?printf.
42882         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
42883         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
42884         (xvprintf, xvfprintf): New functions.
42885
42886 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42887
42888         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
42889         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
42890
42891         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
42892         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
42893
42894 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
42895
42896         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
42897         by Bruno Haible.
42898
42899 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42900
42901         * lib/getloadavg.c
42902         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
42903         Undef `sys' after including sys/table.h, for Tru64 4.0D.
42904
42905         * tests/test-i-ring.c: Work for C89.
42906
42907 2007-10-22  Bruno Haible  <bruno@clisp.org>
42908
42909         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
42910         -1u, in preprocessor expression, so that we don't test for the bug
42911         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
42912         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
42913
42914 2007-10-22  Eric Blake  <ebb9@byu.net>
42915
42916         * tests/test-yesno.sh: Silence stderr during test.
42917
42918 2007-10-22  Simon Josefsson  <simon@josefsson.org>
42919
42920         * modules/crypto/gc-camellia: New file.
42921
42922         * m4/gc-camellia.m4: New file.
42923
42924         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
42925
42926         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
42927
42928 2007-10-22  Simon Josefsson  <simon@josefsson.org>
42929
42930         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
42931         --help to stdout.  Reported by sms@antinode.org (Steven
42932         M. Schweda).
42933
42934 2007-10-22  Simon Josefsson  <simon@josefsson.org>
42935
42936         * users.txt: Fix link to libksba.
42937
42938 2007-10-21  Ben Pfaff  <blp@gnu.org>
42939
42940         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
42941         round.c roundf implementation that depends on floorf and ceilf to
42942         be tested unconditionally.
42943
42944 2007-10-21  Ben Pfaff  <blp@gnu.org>
42945
42946         * m4/check-libm-func.m4: Removed.
42947         * m4/check-math-lib.m4: New file.
42948         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
42949         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
42950         definition and lack of AC_LIBOBJ([roundf]).
42951         * m4/roundl.m4: Ditto, and similarly for roundl.
42952         * modules/round: Reference new m4 file.
42953         * modules/roundf: Ditto.
42954         * modules/roundl: Ditto.
42955         * tests/test-round2.c (main): Use ROUND instead of round.
42956         Bug report from Bruno Haible.
42957
42958 2007-10-21  Bruno Haible  <bruno@clisp.org>
42959
42960         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
42961         context.
42962
42963 2007-10-21  Bruno Haible  <bruno@clisp.org>
42964
42965         * tests/test-wcwidth.c (main): Allow negative result for some control
42966         characters.
42967
42968         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
42969         Needed on OSF/1 5.1.
42970
42971 2007-10-21  Bruno Haible  <bruno@clisp.org>
42972
42973         * tests/test-floorf1.c: Include isnanf.h.
42974         (main): Use isnanf() instead of isnan().
42975         * tests/test-ceilf1.c: Include isnanf.h.
42976         (main): Use isnanf() instead of isnan().
42977         * tests/test-truncf1.c: Include isnanf.h.
42978         (main): Use isnanf() instead of isnan().
42979         * tests/test-roundf1.c: Include isnanf.h.
42980         (main): Use isnanf() instead of isnan().
42981
42982 2007-10-21  Eric Blake  <ebb9@byu.net>
42983
42984         * users.txt: Update URL for m4.
42985
42986 2007-10-21  Bruno Haible  <bruno@clisp.org>
42987
42988         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
42989
42990 2007-10-21  Bruno Haible  <bruno@clisp.org>
42991
42992         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
42993         Git's management files if the CVS files are not present.
42994
42995 2007-10-20  Bruno Haible  <bruno@clisp.org>
42996
42997         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
42998         gcc-3.4.x.
42999
43000 2007-10-20  Ben Pfaff  <blp@gnu.org>
43001
43002         * lib/math.in.h: Declare round, roundf, roundl if we are providing
43003         implementations.
43004         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
43005         * lib/round.c: New file.
43006         * lib/roundf.c: New file.
43007         * lib/roundl.c: New file.
43008         * m4/round.m4: New file.
43009         * m4/roundf.m4: New file.
43010         * m4/roundl.m4: New file.
43011         * m4/check-libm-func-m4: New file.
43012         * modules/math: Replace round, roundf, roundl related @VARS@ in
43013         math.in.h.
43014         * modules/round: New file.
43015         * modules/round-tests: New file.
43016         * modules/roundf: New file.
43017         * modules/roundf-tests: New file.
43018         * modules/roundl: New file.
43019         * modules/roundl-tests: New file.
43020         * tests/test-round1.c: New file.
43021         * tests/test-round2.c: New file.
43022         * tests/test-roundf1.c: New file.
43023         * tests/test-roundf2.c: New file.
43024         * tests/test-roundl.c: New file.
43025         * doc/functions/round.texi: Mention round module.
43026         * doc/functions/roundf.texi: Mention roundf module.
43027         * doc/functions/roundl.texi: Mention roundl module.
43028         * MODULES.html.sh: Mention new modules.
43029         Thanks to Bruno Haible for suggestions.
43030
43031 2007-10-20  Jim Meyering  <meyering@redhat.com>
43032
43033         * lib/xprintf.c: Include <config.h> unconditionally.
43034
43035         Change xprintf's license to GPL.
43036         * modules/xprintf (License): s/LGPL/GPL/, since this module
43037         depends on modules (exit and exitfail) which are GPL.
43038         Suggestion from Bruno Haible.
43039
43040         xprintf fixes.
43041         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
43042         Use a clearer diagnostic.
43043         Patch from Bruno Haible.
43044
43045 2007-10-20  Bruno Haible  <bruno@clisp.org>
43046
43047         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
43048         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
43049         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43050
43051 2007-10-20  Bruno Haible  <bruno@clisp.org>
43052
43053         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
43054         precision in the comparison result > x - 1 or similar.
43055         * tests/test-ceilf2.c (correct_result_p): Likewise.
43056         * tests/test-truncf2.c (correct_result_p): Likewise.
43057         * tests/test-trunc2.c (correct_result_p): Likewise.
43058         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43059
43060 2007-10-20  Bruno Haible  <bruno@clisp.org>
43061
43062         * modules/ceil: New file.
43063         * m4/ceil.m4: New file.
43064         * doc/functions/ceil.texi: Mention the 'ceil' module.
43065
43066 2007-10-20  Bruno Haible  <bruno@clisp.org>
43067
43068         * modules/floor: New file.
43069         * m4/floor.m4: New file.
43070         * doc/functions/floor.texi: Mention the 'floor' module.
43071
43072 2007-10-20  Bruno Haible  <bruno@clisp.org>
43073
43074         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
43075         of %a.
43076         * modules/floorf-tests (Depends-on): Likewise.
43077         * modules/truncf-tests (Depends-on): Likewise.
43078         * modules/trunc-tests (Depends-on): Likewise.
43079         Reported by Ben Pfaff.
43080
43081 2007-10-19  Jim Meyering  <meyering@redhat.com>
43082
43083         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
43084         Don't bother testing specific errno values.  Just test ferror.
43085
43086         New module: xprintf
43087         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
43088
43089 2007-10-19  Bruno Haible  <bruno@clisp.org>
43090
43091         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
43092         syntax.
43093         * modules/javaexec (Makefile.am): Likewise.
43094         * modules/relocatable-prog (Makefile.am): Likewise.
43095         Suggested by Jim Meyering.
43096
43097 2007-10-18  Bruno Haible  <bruno@clisp.org>
43098
43099         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
43100         Reported by Jim Meyering.
43101
43102 2007-10-18  Eric Blake  <ebb9@byu.net>
43103
43104         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
43105
43106 2007-10-18  Bruno Haible  <bruno@clisp.org>
43107
43108         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
43109         the format string into writable memory. Needed in Fortify conditions.
43110
43111 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
43112             Bruno Haible  <bruno@clisp.org>
43113
43114         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
43115         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
43116         * modules/trim (Depends-on): Add mbchar.
43117         (configure.ac): Add gl_FUNC_MBRTOWC.
43118         (Makefile.am): Augment lib_SOURCES.
43119
43120 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
43121
43122         Modify glob.c to use fstatat and dirfd, to simplify it.
43123         Suggested by Eric Blake.
43124         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
43125         Don't include <stdbool.h>; not used.
43126         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
43127         (link_exists_p): Simplify implementation, since we can now assume
43128         dirfd and fstatat.
43129         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
43130
43131 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43132
43133         * gnulib-tool (func_get_dependencies): Fix sed script to
43134         match only tests.
43135
43136 2007-10-17  Bruno Haible  <bruno@clisp.org>
43137
43138         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
43139         allow locale names without encoding suffix.
43140         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43141         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43142
43143 2007-10-16  Bruno Haible  <bruno@clisp.org>
43144
43145         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
43146         * lib/getgroups.c (getgroups): Likewise.
43147         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
43148
43149 2007-10-16  Bruno Haible  <bruno@clisp.org>
43150
43151         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
43152         * modules/malloc-posix (License): Likewise.
43153         * modules/realloc-posix (License): Likewise.
43154         * modules/calloc-posix (License): Likewise.
43155         * modules/intprops (License): Change from GPL to LGPL, with
43156         Paul Eggert's approval.
43157
43158 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
43159
43160         Merge glibc changes into lib/glob.c.
43161
43162         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
43163         2007-10-15 04:59:03 UTC.  Here are the changes:
43164
43165         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
43166
43167         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
43168
43169         * lib/glob.c: Add some branch prediction throughout.
43170
43171         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
43172
43173         [BZ #5103]
43174         * lib/glob.c (glob): Recognize patterns starting \/.
43175
43176         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
43177
43178         [BZ #3996]
43179         * lib/glob.c (attribute_hidden): Define if not defined.
43180         (glob): Unescape dirname, filename or username when needed and not
43181         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
43182         is NULL.  Handle unescaped [ in pattern without closing ].
43183         Don't pass GLOB_CHECK down to recursive glob for directories.
43184         (__glob_pattern_type): New function.
43185         (__glob_pattern_p): Implement using __glob_pattern_type.
43186         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
43187         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
43188         Remove unreachable code.
43189
43190         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
43191
43192         * lib/glob.c (glob_in_dir): Add some comments and asserts to
43193         explain why there are no leaks.
43194
43195         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
43196
43197         [BZ #3253]
43198         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
43199         time, rather allocate increasingly bigger arrays of pointers, if
43200         possible with alloca, if too large with malloc.
43201
43202 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
43203
43204         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
43205         Problem reported by H.Merijn Brand in
43206         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
43207         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
43208         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
43209
43210 2007-10-15  Bruno Haible  <bruno@clisp.org>
43211
43212         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
43213         with explicit rpl_ prefix.
43214         * lib/fopen.c (fopen): Likewise.
43215         * lib/freopen.c (freopen): Likewise.
43216         * lib/iconv.c (iconv): Likewise.
43217         * lib/iconv_close.c (iconv_close): Likewise.
43218
43219 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43220
43221         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
43222
43223 2007-10-15  Bruno Haible  <bruno@clisp.org>
43224
43225         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
43226         <stddef.h> instead of <stdlib.h> since we only need NULL.
43227         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43228
43229 2007-10-15  Bruno Haible  <bruno@clisp.org>
43230
43231         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
43232         Replace paragraph talking about LIBOBJS.
43233         Reported by Colin Watson <cjwatson@debian.org>.
43234
43235 2007-10-15  Bruno Haible  <bruno@clisp.org>
43236
43237         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
43238         <stdlib.h> before using NULL.
43239
43240 2007-10-15  Simon Josefsson  <simon@josefsson.org>
43241
43242         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
43243         Reported by Albert Chin <china@thewrittenword.com>.
43244
43245 2007-10-14  Bruno Haible  <bruno@clisp.org>
43246
43247         * modules/iconv_open-utf-tests: New file.
43248         * tests/test-iconv-utf.c: New file.
43249
43250         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
43251         * modules/iconv_open-utf: New file.
43252         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
43253         (iconv, iconv_close): New declarations.
43254         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
43255         be defined.
43256         (iconv_open): Add special handling of conversion between UTF-8 and
43257         UTF-{16,32}{BE,LE}.
43258         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
43259         * lib/iconv_close.c: New file.
43260         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
43261         gl_FUNC_ICONV_OPEN.
43262         (gl_FUNC_ICONV_OPEN): Use it.
43263         (gl_FUNC_ICONV_OPEN_UTF): New macro.
43264         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
43265         and REPLACE_ICONV_UTF.
43266         * modules/iconv_open (Depends-on): Add c-strcase.
43267         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
43268         ICONV_CONST.
43269         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
43270
43271 2007-10-13  Albert Chin  <china@thewrittenword.com>
43272             Bruno Haible  <bruno@clisp.org>
43273
43274         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
43275         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
43276
43277 2007-10-13  Bruno Haible  <bruno@clisp.org>
43278
43279         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
43280         defined, use the ISO C99 inline semantics.
43281         * lib/argp.h (ARGP_EI): Likewise.
43282
43283 2007-10-13  Bruno Haible  <bruno@clisp.org>
43284
43285         Handle 'inline' change in gcc 4.3.0.
43286         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
43287         argp_fmtstream_write, argp_fmtstream_set_lmargin,
43288         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
43289         argp_fmtstream_point): Disable 'extern' declaration if the function
43290         definition is going to be provided inline.
43291         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
43292         semantics, not the ISO C99 inline semantics.
43293         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
43294         'extern' declaration if the function definition is going to be provided
43295         inline.
43296         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
43297         the GNU C inline semantics, not the ISO C99 inline semantics. With
43298         GCC 4.2, avoid a warning.
43299
43300 2007-10-13  Bruno Haible  <bruno@clisp.org>
43301
43302         * lib/freading.h (freading): Enable the use of __freading for
43303         glibc >= 2.7.
43304         * lib/freading.c (freading): Likewise.
43305
43306 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
43307
43308         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
43309         "warning: C99 inline functions are not supported; using GNU89".
43310
43311 2007-10-12  Bruno Haible  <bruno@clisp.org>
43312
43313         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
43314         of 2.
43315         * tests/test-ceilf2.c: New file.
43316         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
43317
43318         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
43319         * modules/ceilf-tests: Update.
43320
43321 2007-10-12  Bruno Haible  <bruno@clisp.org>
43322
43323         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
43324         of 2.
43325         * tests/test-floorf2.c: New file.
43326         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
43327
43328         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
43329         * modules/floorf-tests: Update.
43330
43331 2007-10-12  Bruno Haible  <bruno@clisp.org>
43332
43333         * tests/test-trunc2.c: New file.
43334         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
43335
43336         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
43337         * modules/trunc-tests: Update.
43338
43339 2007-10-12  Bruno Haible  <bruno@clisp.org>
43340
43341         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
43342         of 2.
43343         * tests/test-truncf2.c: New file.
43344         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
43345
43346         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
43347         * modules/truncf-tests: Update.
43348
43349 2007-10-11  Eric Blake  <ebb9@byu.net>
43350
43351         Don't claim strerror is broken on Interix.
43352         * doc/functions/strerror.texi (strerror): Known broken systems are
43353         now Solaris 8, and not Interix.
43354         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
43355         Interix on cross-compile.
43356         Reported by Martin Koeppe in
43357         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
43358
43359 2007-10-11  Bruno Haible  <bruno@clisp.org>
43360
43361         * modules/i-ring-tests: New file.
43362         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
43363         instead of assert.
43364
43365 2007-10-11  Bruno Haible  <bruno@clisp.org>
43366
43367         * modules/filenamecat-tests: New file.
43368         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
43369         * lib/filenamecat.c: Remove test code.
43370
43371 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
43372
43373         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
43374
43375         * lib/strerror.c: Include <string.h> always, to test interface,
43376         and to remove the need for the dummy.
43377         Include intprops.h to compute width instead of doing it ourselves
43378         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
43379         (strerror): Define it to return NULL if there's no system strerror.
43380         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
43381         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
43382         ancient pre-strerror Unix systems well any more.  Saying "unknown
43383         system error" is enough.
43384         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
43385         simpler strerror.c implementation.
43386         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
43387         Simplify the tests to reflect the simpler strerror implementation.
43388         * modules/strerror (Depends-on): Add intprops.
43389
43390 2007-10-09  Eric Blake  <ebb9@byu.net>
43391
43392         Silence test-fpending.
43393         * modules/fpending-tests (Files): Add wrapper script.
43394         * tests/test-fpending.sh: New file.
43395
43396 2007-10-09  Bruno Haible  <bruno@clisp.org>
43397
43398         * MODULES.html.sh (func_module): Don't create a hyperlink for
43399         function names like 'printf_frexp'.
43400         (Misc): Add crc, memxor.
43401         (Characteristics of floating types): New section.
43402         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
43403         isnanf-nolibm, signbit, trunc, truncf, truncl.
43404         (Enhancements for ISO C 99 functions): New subsection Input/output.
43405         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
43406         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
43407         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
43408         (Compatibility checks for POSIX:2001 functions): Add clock-time.
43409         (Enhancements for POSIX:2001 functions): Add chdir-long.
43410         (File system functions): Add areadlink, chdir-safer, read-file.
43411         Remove cycle-check.
43412         (File system as inode set): New section.
43413         (Date and time): Add gethrxtime.
43414         (Multithreading): Add openmp.
43415         (Internationalization functions): Add localename.
43416         (Unicode string functions): Add unistr/u*-mbsnlen.
43417         (Support for maintaining and releasing projects): Add git-version-gen.
43418         (Lone files): Remove directories.
43419
43420 2007-10-08  Ben Pfaff  <blp@gnu.org>
43421
43422         * lib/xmalloca.h: Fix typo in comment.
43423
43424 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
43425
43426         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
43427         when avoiding problems with integer overflow.  Use a portable test
43428         instead.
43429
43430 2007-10-08  Simon Josefsson  <simon@josefsson.org>
43431
43432         * modules/dummy (License): Change to LGPLv2+.
43433         * modules/float (License): Likewise
43434         * modules/realloc (License): Likewise
43435         * modules/stdlib (License): Likewise
43436
43437 2007-10-07  Bruno Haible  <bruno@clisp.org>
43438
43439         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
43440         * floor.c (TWO_MANT_DIG): Likewise.
43441         * ceil.c (TWO_MANT_DIG): Likewise.
43442         Reported by Ben Pfaff.
43443
43444 2007-10-07  Bruno Haible  <bruno@clisp.org>
43445
43446         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
43447         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
43448         * lib/frexp.c (FUNC): Likewise.
43449         * lib/printf-frexp.h (printf_frexp): Likewise.
43450         * lib/printf-frexpl.h (printf_frexpl): Likewise.
43451         * lib/printf-frexp.c (FUNC): Likewise.
43452         Suggested by Jim Meyering.
43453
43454 2007-10-07  Jim Meyering  <meyering@redhat.com>
43455
43456         Make xnanosleep's integer overflow test more robust.
43457         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
43458         so that gcc-4.3.0 doesn't optimize away this test for overflow.
43459
43460 2007-10-07  Bruno Haible  <bruno@clisp.org>
43461
43462         * NEWS: Mention the license change.
43463
43464         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
43465         abbreviations in the modules files.
43466
43467         Change copyright notice from GPLv2+ to GPLv3+.
43468         * README: Change copyright notice.
43469         * MODULES.html.sh: Likewise.
43470         * build-aux/bootstrap.conf: Likewise.
43471         * build-aux/config.libpath: Likewise.
43472         * build-aux/csharpcomp.sh.in: Likewise.
43473         * build-aux/csharpexec.sh.in: Likewise.
43474         * build-aux/install-reloc: Likewise.
43475         * build-aux/javacomp.sh.in: Likewise.
43476         * build-aux/javaexec.sh.in: Likewise.
43477         * build-aux/ldd.sh.in: Likewise.
43478         * build-aux/reloc-ldflags: Likewise.
43479         * build-aux/relocatable.sh.in: Likewise.
43480         * build-aux/x-to-1.in: Likewise.
43481         * check-module: Likewise.
43482         * config/srclistvars.sh: Likewise.
43483         * gnulib-tool: Likewise.
43484         * lib/acl-internal.h: Likewise.
43485         * lib/acl.c: Likewise.
43486         * lib/acl.h: Likewise.
43487         * lib/acl_entries.c: Likewise.
43488         * lib/areadlink-with-size.c: Likewise.
43489         * lib/areadlink.c: Likewise.
43490         * lib/areadlink.h: Likewise.
43491         * lib/argmatch.c: Likewise.
43492         * lib/argmatch.h: Likewise.
43493         * lib/argp-ba.c: Likewise.
43494         * lib/argp-eexst.c: Likewise.
43495         * lib/argp-fmtstream.c: Likewise.
43496         * lib/argp-fmtstream.h: Likewise.
43497         * lib/argp-fs-xinl.c: Likewise.
43498         * lib/argp-help.c: Likewise.
43499         * lib/argp-namefrob.h: Likewise.
43500         * lib/argp-parse.c: Likewise.
43501         * lib/argp-pin.c: Likewise.
43502         * lib/argp-pv.c: Likewise.
43503         * lib/argp-pvh.c: Likewise.
43504         * lib/argp-xinl.c: Likewise.
43505         * lib/argp.h: Likewise.
43506         * lib/at-func.c: Likewise.
43507         * lib/atanl.c: Likewise.
43508         * lib/backupfile.c: Likewise.
43509         * lib/backupfile.h: Likewise.
43510         * lib/basename.c: Likewise.
43511         * lib/binary-io.h: Likewise.
43512         * lib/byteswap.in.h: Likewise.
43513         * lib/c-stack.c: Likewise.
43514         * lib/c-stack.h: Likewise.
43515         * lib/c-strcasestr.c: Likewise.
43516         * lib/c-strcasestr.h: Likewise.
43517         * lib/c-strstr.c: Likewise.
43518         * lib/c-strstr.h: Likewise.
43519         * lib/c-strtod.c: Likewise.
43520         * lib/calloc.c: Likewise.
43521         * lib/canon-host.c: Likewise.
43522         * lib/canon-host.h: Likewise.
43523         * lib/canonicalize-lgpl.c: Likewise.
43524         * lib/canonicalize.c: Likewise.
43525         * lib/canonicalize.h: Likewise.
43526         * lib/ceil.c: Likewise.
43527         * lib/ceilf.c: Likewise.
43528         * lib/ceill.c: Likewise.
43529         * lib/chdir-long.c: Likewise.
43530         * lib/chdir-long.h: Likewise.
43531         * lib/chdir-safer.c: Likewise.
43532         * lib/chdir-safer.h: Likewise.
43533         * lib/chown.c: Likewise.
43534         * lib/classpath.c: Likewise.
43535         * lib/classpath.h: Likewise.
43536         * lib/clean-temp.c: Likewise.
43537         * lib/clean-temp.h: Likewise.
43538         * lib/cloexec.c: Likewise.
43539         * lib/close-stream.c: Likewise.
43540         * lib/closein.c: Likewise.
43541         * lib/closein.h: Likewise.
43542         * lib/closeout.c: Likewise.
43543         * lib/closeout.h: Likewise.
43544         * lib/concat-filename.c: Likewise.
43545         * lib/copy-file.c: Likewise.
43546         * lib/copy-file.h: Likewise.
43547         * lib/count-one-bits.h: Likewise.
43548         * lib/crc.c: Likewise.
43549         * lib/crc.h: Likewise.
43550         * lib/creat-safer.c: Likewise.
43551         * lib/csharpcomp.c: Likewise.
43552         * lib/csharpcomp.h: Likewise.
43553         * lib/csharpexec.c: Likewise.
43554         * lib/csharpexec.h: Likewise.
43555         * lib/cycle-check.c: Likewise.
43556         * lib/cycle-check.h: Likewise.
43557         * lib/diacrit.c: Likewise.
43558         * lib/diacrit.h: Likewise.
43559         * lib/diffseq.h: Likewise.
43560         * lib/dirchownmod.c: Likewise.
43561         * lib/dirent.in.h: Likewise.
43562         * lib/dirfd.c: Likewise.
43563         * lib/dirfd.h: Likewise.
43564         * lib/dirname.c: Likewise.
43565         * lib/dirname.h: Likewise.
43566         * lib/dummy.c: Likewise.
43567         * lib/dup-safer.c: Likewise.
43568         * lib/dup2.c: Likewise.
43569         * lib/eealloc.h: Likewise.
43570         * lib/error.c: Likewise.
43571         * lib/error.h: Likewise.
43572         * lib/euidaccess.c: Likewise.
43573         * lib/exclude.c: Likewise.
43574         * lib/exclude.h: Likewise.
43575         * lib/execute.c: Likewise.
43576         * lib/execute.h: Likewise.
43577         * lib/exitfail.c: Likewise.
43578         * lib/exitfail.h: Likewise.
43579         * lib/expl.c: Likewise.
43580         * lib/fatal-signal.c: Likewise.
43581         * lib/fatal-signal.h: Likewise.
43582         * lib/fbufmode.c: Likewise.
43583         * lib/fbufmode.h: Likewise.
43584         * lib/fchdir.c: Likewise.
43585         * lib/fchmodat.c: Likewise.
43586         * lib/fchownat.c: Likewise.
43587         * lib/fcntl--.h: Likewise.
43588         * lib/fcntl-safer.h: Likewise.
43589         * lib/fcntl.in.h: Likewise.
43590         * lib/fd-safer.c: Likewise.
43591         * lib/fflush.c: Likewise.
43592         * lib/file-has-acl.c: Likewise.
43593         * lib/file-set.c: Likewise.
43594         * lib/file-type.c: Likewise.
43595         * lib/file-type.h: Likewise.
43596         * lib/fileblocks.c: Likewise.
43597         * lib/filemode.c: Likewise.
43598         * lib/filemode.h: Likewise.
43599         * lib/filename.h: Likewise.
43600         * lib/filenamecat.c: Likewise.
43601         * lib/filenamecat.h: Likewise.
43602         * lib/findprog.c: Likewise.
43603         * lib/findprog.h: Likewise.
43604         * lib/float.in.h: Likewise.
43605         * lib/floor.c: Likewise.
43606         * lib/floorf.c: Likewise.
43607         * lib/floorl.c: Likewise.
43608         * lib/fopen-safer.c: Likewise.
43609         * lib/fopen.c: Likewise.
43610         * lib/fpending.c: Likewise.
43611         * lib/fpending.h: Likewise.
43612         * lib/fprintf.c: Likewise.
43613         * lib/fprintftime.h: Likewise.
43614         * lib/fpucw.h: Likewise.
43615         * lib/fpurge.c: Likewise.
43616         * lib/fpurge.h: Likewise.
43617         * lib/freadable.c: Likewise.
43618         * lib/freadable.h: Likewise.
43619         * lib/freadahead.c: Likewise.
43620         * lib/freadahead.h: Likewise.
43621         * lib/freading.c: Likewise.
43622         * lib/freading.h: Likewise.
43623         * lib/free.c: Likewise.
43624         * lib/freopen.c: Likewise.
43625         * lib/frexp.c: Likewise.
43626         * lib/frexpl.c: Likewise.
43627         * lib/fseek.c: Likewise.
43628         * lib/fseterr.c: Likewise.
43629         * lib/fseterr.h: Likewise.
43630         * lib/fstatat.c: Likewise.
43631         * lib/fstrcmp.c: Likewise.
43632         * lib/fstrcmp.h: Likewise.
43633         * lib/fsusage.c: Likewise.
43634         * lib/fsusage.h: Likewise.
43635         * lib/ftell.c: Likewise.
43636         * lib/ftello.c: Likewise.
43637         * lib/fts-cycle.c: Likewise.
43638         * lib/fts.c: Likewise.
43639         * lib/fts_.h: Likewise.
43640         * lib/full-read.c: Likewise.
43641         * lib/full-read.h: Likewise.
43642         * lib/full-write.c: Likewise.
43643         * lib/full-write.h: Likewise.
43644         * lib/fwritable.c: Likewise.
43645         * lib/fwritable.h: Likewise.
43646         * lib/fwriteerror.c: Likewise.
43647         * lib/fwriteerror.h: Likewise.
43648         * lib/fwriting.c: Likewise.
43649         * lib/fwriting.h: Likewise.
43650         * lib/gcd.c: Likewise.
43651         * lib/gcd.h: Likewise.
43652         * lib/getcwd.c: Likewise.
43653         * lib/getdate.h: Likewise.
43654         * lib/getdate.y: Likewise.
43655         * lib/getdomainname.c: Likewise.
43656         * lib/getdomainname.h: Likewise.
43657         * lib/getgroups.c: Likewise.
43658         * lib/gethostname.c: Likewise.
43659         * lib/gethrxtime.c: Likewise.
43660         * lib/gethrxtime.h: Likewise.
43661         * lib/getloadavg.c: Likewise.
43662         * lib/getndelim2.c: Likewise.
43663         * lib/getndelim2.h: Likewise.
43664         * lib/getnline.c: Likewise.
43665         * lib/getnline.h: Likewise.
43666         * lib/getopt.c: Likewise.
43667         * lib/getopt.in.h: Likewise.
43668         * lib/getopt1.c: Likewise.
43669         * lib/getopt_int.h: Likewise.
43670         * lib/getpagesize.h: Likewise.
43671         * lib/getsubopt.c: Likewise.
43672         * lib/gettime.c: Likewise.
43673         * lib/getugroups.c: Likewise.
43674         * lib/getugroups.h: Likewise.
43675         * lib/getusershell.c: Likewise.
43676         * lib/gl_anyavltree_list1.h: Likewise.
43677         * lib/gl_anyavltree_list2.h: Likewise.
43678         * lib/gl_anyhash_list1.h: Likewise.
43679         * lib/gl_anyhash_list2.h: Likewise.
43680         * lib/gl_anylinked_list1.h: Likewise.
43681         * lib/gl_anylinked_list2.h: Likewise.
43682         * lib/gl_anyrbtree_list1.h: Likewise.
43683         * lib/gl_anyrbtree_list2.h: Likewise.
43684         * lib/gl_anytree_list1.h: Likewise.
43685         * lib/gl_anytree_list2.h: Likewise.
43686         * lib/gl_anytree_oset.h: Likewise.
43687         * lib/gl_anytreehash_list1.h: Likewise.
43688         * lib/gl_anytreehash_list2.h: Likewise.
43689         * lib/gl_array_list.c: Likewise.
43690         * lib/gl_array_list.h: Likewise.
43691         * lib/gl_array_oset.c: Likewise.
43692         * lib/gl_array_oset.h: Likewise.
43693         * lib/gl_avltree_list.c: Likewise.
43694         * lib/gl_avltree_list.h: Likewise.
43695         * lib/gl_avltree_oset.c: Likewise.
43696         * lib/gl_avltree_oset.h: Likewise.
43697         * lib/gl_avltreehash_list.c: Likewise.
43698         * lib/gl_avltreehash_list.h: Likewise.
43699         * lib/gl_carray_list.c: Likewise.
43700         * lib/gl_carray_list.h: Likewise.
43701         * lib/gl_linked_list.c: Likewise.
43702         * lib/gl_linked_list.h: Likewise.
43703         * lib/gl_linkedhash_list.c: Likewise.
43704         * lib/gl_linkedhash_list.h: Likewise.
43705         * lib/gl_list.c: Likewise.
43706         * lib/gl_list.h: Likewise.
43707         * lib/gl_oset.c: Likewise.
43708         * lib/gl_oset.h: Likewise.
43709         * lib/gl_rbtree_list.c: Likewise.
43710         * lib/gl_rbtree_list.h: Likewise.
43711         * lib/gl_rbtree_oset.c: Likewise.
43712         * lib/gl_rbtree_oset.h: Likewise.
43713         * lib/gl_rbtreehash_list.c: Likewise.
43714         * lib/gl_rbtreehash_list.h: Likewise.
43715         * lib/gl_sublist.c: Likewise.
43716         * lib/gl_sublist.h: Likewise.
43717         * lib/group-member.c: Likewise.
43718         * lib/group-member.h: Likewise.
43719         * lib/hard-locale.c: Likewise.
43720         * lib/hard-locale.h: Likewise.
43721         * lib/hash-pjw.c: Likewise.
43722         * lib/hash-pjw.h: Likewise.
43723         * lib/hash-triple.c: Likewise.
43724         * lib/hash.c: Likewise.
43725         * lib/hash.h: Likewise.
43726         * lib/human.c: Likewise.
43727         * lib/human.h: Likewise.
43728         * lib/i-ring.c: Likewise.
43729         * lib/i-ring.h: Likewise.
43730         * lib/idcache.c: Likewise.
43731         * lib/imaxabs.c: Likewise.
43732         * lib/imaxdiv.c: Likewise.
43733         * lib/inet_pton.c: Likewise.
43734         * lib/inet_pton.h: Likewise.
43735         * lib/intprops.h: Likewise.
43736         * lib/inttostr.c: Likewise.
43737         * lib/inttostr.h: Likewise.
43738         * lib/inttypes.in.h: Likewise.
43739         * lib/isapipe.c: Likewise.
43740         * lib/isdir.c: Likewise.
43741         * lib/isnan.c: Likewise.
43742         * lib/isnan.h: Likewise.
43743         * lib/isnanf.c: Likewise.
43744         * lib/isnanf.h: Likewise.
43745         * lib/isnanl-nolibm.h: Likewise.
43746         * lib/isnanl.c: Likewise.
43747         * lib/isnanl.h: Likewise.
43748         * lib/javacomp.c: Likewise.
43749         * lib/javacomp.h: Likewise.
43750         * lib/javaexec.c: Likewise.
43751         * lib/javaexec.h: Likewise.
43752         * lib/javaversion.c: Likewise.
43753         * lib/javaversion.h: Likewise.
43754         * lib/javaversion.java: Likewise.
43755         * lib/lbrkprop.h: Likewise.
43756         * lib/lchmod.h: Likewise.
43757         * lib/lchown.c: Likewise.
43758         * lib/ldexpl.c: Likewise.
43759         * lib/linebreak.c: Likewise.
43760         * lib/linebreak.h: Likewise.
43761         * lib/linebuffer.c: Likewise.
43762         * lib/linebuffer.h: Likewise.
43763         * lib/locale.in.h: Likewise.
43764         * lib/logl.c: Likewise.
43765         * lib/long-options.c: Likewise.
43766         * lib/long-options.h: Likewise.
43767         * lib/lstat.c: Likewise.
43768         * lib/lstat.h: Likewise.
43769         * lib/math.in.h: Likewise.
43770         * lib/mbchar.c: Likewise.
43771         * lib/mbchar.h: Likewise.
43772         * lib/mbfile.h: Likewise.
43773         * lib/mbiter.h: Likewise.
43774         * lib/mbscasecmp.c: Likewise.
43775         * lib/mbscasestr.c: Likewise.
43776         * lib/mbschr.c: Likewise.
43777         * lib/mbscspn.c: Likewise.
43778         * lib/mbslen.c: Likewise.
43779         * lib/mbsncasecmp.c: Likewise.
43780         * lib/mbsnlen.c: Likewise.
43781         * lib/mbspbrk.c: Likewise.
43782         * lib/mbspcasecmp.c: Likewise.
43783         * lib/mbsrchr.c: Likewise.
43784         * lib/mbssep.c: Likewise.
43785         * lib/mbsspn.c: Likewise.
43786         * lib/mbsstr.c: Likewise.
43787         * lib/mbstok_r.c: Likewise.
43788         * lib/mbswidth.c: Likewise.
43789         * lib/mbswidth.h: Likewise.
43790         * lib/mbuiter.h: Likewise.
43791         * lib/memcasecmp.c: Likewise.
43792         * lib/memcasecmp.h: Likewise.
43793         * lib/memchr.c: Likewise.
43794         * lib/memcmp.c: Likewise.
43795         * lib/memcoll.c: Likewise.
43796         * lib/memcoll.h: Likewise.
43797         * lib/memcpy.c: Likewise.
43798         * lib/memrchr.c: Likewise.
43799         * lib/mkancesdirs.c: Likewise.
43800         * lib/mkdir-p.c: Likewise.
43801         * lib/mkdir-p.h: Likewise.
43802         * lib/mkdir.c: Likewise.
43803         * lib/mkdirat.c: Likewise.
43804         * lib/mkdtemp.c: Likewise.
43805         * lib/mkstemp-safer.c: Likewise.
43806         * lib/mkstemp.c: Likewise.
43807         * lib/modechange.c: Likewise.
43808         * lib/modechange.h: Likewise.
43809         * lib/mountlist.c: Likewise.
43810         * lib/mountlist.h: Likewise.
43811         * lib/mpsort.c: Likewise.
43812         * lib/nanosleep.c: Likewise.
43813         * lib/obstack.c: Likewise.
43814         * lib/obstack.h: Likewise.
43815         * lib/open-safer.c: Likewise.
43816         * lib/open.c: Likewise.
43817         * lib/openat-die.c: Likewise.
43818         * lib/openat-priv.h: Likewise.
43819         * lib/openat-proc.c: Likewise.
43820         * lib/openat.c: Likewise.
43821         * lib/openat.h: Likewise.
43822         * lib/pagealign_alloc.c: Likewise.
43823         * lib/pagealign_alloc.h: Likewise.
43824         * lib/physmem.c: Likewise.
43825         * lib/physmem.h: Likewise.
43826         * lib/pipe-safer.c: Likewise.
43827         * lib/pipe.c: Likewise.
43828         * lib/pipe.h: Likewise.
43829         * lib/posixtm.c: Likewise.
43830         * lib/posixtm.h: Likewise.
43831         * lib/posixver.c: Likewise.
43832         * lib/printf-frexp.c: Likewise.
43833         * lib/printf-frexp.h: Likewise.
43834         * lib/printf-frexpl.c: Likewise.
43835         * lib/printf-frexpl.h: Likewise.
43836         * lib/printf.c: Likewise.
43837         * lib/progname.c: Likewise.
43838         * lib/progname.h: Likewise.
43839         * lib/progreloc.c: Likewise.
43840         * lib/putenv.c: Likewise.
43841         * lib/quote.c: Likewise.
43842         * lib/quote.h: Likewise.
43843         * lib/quotearg.c: Likewise.
43844         * lib/quotearg.h: Likewise.
43845         * lib/raise.c: Likewise.
43846         * lib/readline.c: Likewise.
43847         * lib/readline.h: Likewise.
43848         * lib/readlink.c: Likewise.
43849         * lib/readtokens.c: Likewise.
43850         * lib/readtokens.h: Likewise.
43851         * lib/readtokens0.c: Likewise.
43852         * lib/readtokens0.h: Likewise.
43853         * lib/readutmp.c: Likewise.
43854         * lib/readutmp.h: Likewise.
43855         * lib/realloc.c: Likewise.
43856         * lib/relocwrapper.c: Likewise.
43857         * lib/rename-dest-slash.c: Likewise.
43858         * lib/rename.c: Likewise.
43859         * lib/rmdir.c: Likewise.
43860         * lib/rpmatch.c: Likewise.
43861         * lib/safe-read.c: Likewise.
43862         * lib/safe-read.h: Likewise.
43863         * lib/safe-write.c: Likewise.
43864         * lib/safe-write.h: Likewise.
43865         * lib/same-inode.h: Likewise.
43866         * lib/same.c: Likewise.
43867         * lib/same.h: Likewise.
43868         * lib/save-cwd.c: Likewise.
43869         * lib/save-cwd.h: Likewise.
43870         * lib/savedir.c: Likewise.
43871         * lib/savedir.h: Likewise.
43872         * lib/savewd.c: Likewise.
43873         * lib/savewd.h: Likewise.
43874         * lib/search.in.h: Likewise.
43875         * lib/setenv.c: Likewise.
43876         * lib/setenv.h: Likewise.
43877         * lib/settime.c: Likewise.
43878         * lib/sh-quote.c: Likewise.
43879         * lib/sh-quote.h: Likewise.
43880         * lib/sig2str.c: Likewise.
43881         * lib/sig2str.h: Likewise.
43882         * lib/signal.in.h: Likewise.
43883         * lib/signbitd.c: Likewise.
43884         * lib/signbitf.c: Likewise.
43885         * lib/signbitl.c: Likewise.
43886         * lib/sigprocmask.c: Likewise.
43887         * lib/sincosl.c: Likewise.
43888         * lib/sleep.c: Likewise.
43889         * lib/sprintf.c: Likewise.
43890         * lib/sqrtl.c: Likewise.
43891         * lib/stat-time.h: Likewise.
43892         * lib/stdio--.h: Likewise.
43893         * lib/stdio-safer.h: Likewise.
43894         * lib/stdlib--.h: Likewise.
43895         * lib/stdlib-safer.h: Likewise.
43896         * lib/stdlib.in.h: Likewise.
43897         * lib/stpcpy.c: Likewise.
43898         * lib/stpncpy.c: Likewise.
43899         * lib/strchrnul.c: Likewise.
43900         * lib/strcspn.c: Likewise.
43901         * lib/strerror.c: Likewise.
43902         * lib/strftime.c: Likewise.
43903         * lib/strftime.h: Likewise.
43904         * lib/striconveh.c: Likewise.
43905         * lib/striconveh.h: Likewise.
43906         * lib/striconveha.c: Likewise.
43907         * lib/striconveha.h: Likewise.
43908         * lib/stripslash.c: Likewise.
43909         * lib/strnlen1.c: Likewise.
43910         * lib/strnlen1.h: Likewise.
43911         * lib/strtod.c: Likewise.
43912         * lib/strtoimax.c: Likewise.
43913         * lib/strtok_r.c: Likewise.
43914         * lib/strtol.c: Likewise.
43915         * lib/strtoll.c: Likewise.
43916         * lib/strtoul.c: Likewise.
43917         * lib/strtoull.c: Likewise.
43918         * lib/sysexits.in.h: Likewise.
43919         * lib/tempname.c: Likewise.
43920         * lib/tempname.h: Likewise.
43921         * lib/timespec.h: Likewise.
43922         * lib/tls.c: Likewise.
43923         * lib/tls.h: Likewise.
43924         * lib/tmpdir.c: Likewise.
43925         * lib/tmpdir.h: Likewise.
43926         * lib/tmpfile-safer.c: Likewise.
43927         * lib/tmpfile.c: Likewise.
43928         * lib/trigl.c: Likewise.
43929         * lib/trigl.h: Likewise.
43930         * lib/trim.c: Likewise.
43931         * lib/trim.h: Likewise.
43932         * lib/trunc.c: Likewise.
43933         * lib/truncf.c: Likewise.
43934         * lib/truncl.c: Likewise.
43935         * lib/tsearch.c: Likewise.
43936         * lib/unicodeio.c: Likewise.
43937         * lib/unicodeio.h: Likewise.
43938         * lib/unistd--.h: Likewise.
43939         * lib/unistd-safer.h: Likewise.
43940         * lib/unistdio/ulc-fprintf.c: Likewise.
43941         * lib/unistdio/ulc-vfprintf.c: Likewise.
43942         * lib/unlinkdir.c: Likewise.
43943         * lib/unlinkdir.h: Likewise.
43944         * lib/unlocked-io.h: Likewise.
43945         * lib/unsetenv.c: Likewise.
43946         * lib/userspec.c: Likewise.
43947         * lib/utime.c: Likewise.
43948         * lib/utimecmp.c: Likewise.
43949         * lib/utimecmp.h: Likewise.
43950         * lib/utimens.c: Likewise.
43951         * lib/verify.h: Likewise.
43952         * lib/verror.c: Likewise.
43953         * lib/verror.h: Likewise.
43954         * lib/version-etc-fsf.c: Likewise.
43955         * lib/version-etc.c: Likewise.
43956         * lib/version-etc.h: Likewise.
43957         * lib/vfprintf.c: Likewise.
43958         * lib/vprintf.c: Likewise.
43959         * lib/vsprintf.c: Likewise.
43960         * lib/w32spawn.h: Likewise.
43961         * lib/wait-process.c: Likewise.
43962         * lib/wait-process.h: Likewise.
43963         * lib/wcwidth.c: Likewise.
43964         * lib/write-any-file.c: Likewise.
43965         * lib/xalloc-die.c: Likewise.
43966         * lib/xalloc.h: Likewise.
43967         * lib/xasprintf.c: Likewise.
43968         * lib/xgetcwd.c: Likewise.
43969         * lib/xgetcwd.h: Likewise.
43970         * lib/xgetdomainname.c: Likewise.
43971         * lib/xgetdomainname.h: Likewise.
43972         * lib/xgethostname.c: Likewise.
43973         * lib/xmalloc.c: Likewise.
43974         * lib/xmalloca.c: Likewise.
43975         * lib/xmalloca.h: Likewise.
43976         * lib/xmemcoll.c: Likewise.
43977         * lib/xnanosleep.c: Likewise.
43978         * lib/xreadlink.c: Likewise.
43979         * lib/xreadlink.h: Likewise.
43980         * lib/xsetenv.c: Likewise.
43981         * lib/xsetenv.h: Likewise.
43982         * lib/xstriconv.c: Likewise.
43983         * lib/xstriconv.h: Likewise.
43984         * lib/xstrndup.c: Likewise.
43985         * lib/xstrndup.h: Likewise.
43986         * lib/xstrtod.c: Likewise.
43987         * lib/xstrtod.h: Likewise.
43988         * lib/xstrtol-error.c: Likewise.
43989         * lib/xstrtol.c: Likewise.
43990         * lib/xstrtol.h: Likewise.
43991         * lib/xtime.h: Likewise.
43992         * lib/xvasprintf.c: Likewise.
43993         * lib/xvasprintf.h: Likewise.
43994         * lib/yesno.c: Likewise.
43995         * lib/yesno.h: Likewise.
43996         * posix-modules: Likewise.
43997         * tests/test-alloca-opt.c: Likewise.
43998         * tests/test-arcfour.c: Likewise.
43999         * tests/test-arctwo.c: Likewise.
44000         * tests/test-argmatch.c: Likewise.
44001         * tests/test-argp-2.sh: Likewise.
44002         * tests/test-argp.c: Likewise.
44003         * tests/test-arpa_inet.c: Likewise.
44004         * tests/test-array_list.c: Likewise.
44005         * tests/test-array_oset.c: Likewise.
44006         * tests/test-atexit.c: Likewise.
44007         * tests/test-avltree_list.c: Likewise.
44008         * tests/test-avltree_oset.c: Likewise.
44009         * tests/test-avltreehash_list.c: Likewise.
44010         * tests/test-base64.c: Likewise.
44011         * tests/test-binary-io.c: Likewise.
44012         * tests/test-byteswap.c: Likewise.
44013         * tests/test-c-ctype.c: Likewise.
44014         * tests/test-c-strcasecmp.c: Likewise.
44015         * tests/test-c-strcasestr.c: Likewise.
44016         * tests/test-c-strncasecmp.c: Likewise.
44017         * tests/test-c-strstr.c: Likewise.
44018         * tests/test-canonicalize-lgpl.c: Likewise.
44019         * tests/test-canonicalize.c: Likewise.
44020         * tests/test-carray_list.c: Likewise.
44021         * tests/test-ceilf.c: Likewise.
44022         * tests/test-ceill.c: Likewise.
44023         * tests/test-count-one-bits.c: Likewise.
44024         * tests/test-crc.c: Likewise.
44025         * tests/test-dirname.c: Likewise.
44026         * tests/test-fbufmode.c: Likewise.
44027         * tests/test-fcntl.c: Likewise.
44028         * tests/test-fflush.c: Likewise.
44029         * tests/test-floorf.c: Likewise.
44030         * tests/test-floorl.c: Likewise.
44031         * tests/test-fopen.c: Likewise.
44032         * tests/test-fprintf-posix.c: Likewise.
44033         * tests/test-fprintf-posix.h: Likewise.
44034         * tests/test-fpurge.c: Likewise.
44035         * tests/test-freadable.c: Likewise.
44036         * tests/test-freadahead.c: Likewise.
44037         * tests/test-freading.c: Likewise.
44038         * tests/test-freopen.c: Likewise.
44039         * tests/test-frexp.c: Likewise.
44040         * tests/test-frexpl.c: Likewise.
44041         * tests/test-fseek.c: Likewise.
44042         * tests/test-fseeko.c: Likewise.
44043         * tests/test-fseterr.c: Likewise.
44044         * tests/test-fstrcmp.c: Likewise.
44045         * tests/test-ftell.c: Likewise.
44046         * tests/test-ftello.c: Likewise.
44047         * tests/test-fwritable.c: Likewise.
44048         * tests/test-fwriting.c: Likewise.
44049         * tests/test-getaddrinfo.c: Likewise.
44050         * tests/test-getpass.c: Likewise.
44051         * tests/test-gettimeofday.c: Likewise.
44052         * tests/test-hmac-md5.c: Likewise.
44053         * tests/test-hmac-sha1.c: Likewise.
44054         * tests/test-iconv.c: Likewise.
44055         * tests/test-iconvme.c: Likewise.
44056         * tests/test-inttypes.c: Likewise.
44057         * tests/test-isnan.c: Likewise.
44058         * tests/test-isnanf.c: Likewise.
44059         * tests/test-isnanl-nolibm.c: Likewise.
44060         * tests/test-isnanl.c: Likewise.
44061         * tests/test-isnanl.h: Likewise.
44062         * tests/test-ldexpl.c: Likewise.
44063         * tests/test-linked_list.c: Likewise.
44064         * tests/test-linkedhash_list.c: Likewise.
44065         * tests/test-locale.c: Likewise.
44066         * tests/test-localename.c: Likewise.
44067         * tests/test-lock.c: Likewise.
44068         * tests/test-lseek.c: Likewise.
44069         * tests/test-malloca.c: Likewise.
44070         * tests/test-math.c: Likewise.
44071         * tests/test-mbscasecmp.c: Likewise.
44072         * tests/test-mbscasestr1.c: Likewise.
44073         * tests/test-mbscasestr2.c: Likewise.
44074         * tests/test-mbscasestr3.c: Likewise.
44075         * tests/test-mbscasestr4.c: Likewise.
44076         * tests/test-mbschr.c: Likewise.
44077         * tests/test-mbscspn.c: Likewise.
44078         * tests/test-mbsncasecmp.c: Likewise.
44079         * tests/test-mbspbrk.c: Likewise.
44080         * tests/test-mbspcasecmp.c: Likewise.
44081         * tests/test-mbsrchr.c: Likewise.
44082         * tests/test-mbsspn.c: Likewise.
44083         * tests/test-mbsstr1.c: Likewise.
44084         * tests/test-mbsstr2.c: Likewise.
44085         * tests/test-mbsstr3.c: Likewise.
44086         * tests/test-md5.c: Likewise.
44087         * tests/test-memmem.c: Likewise.
44088         * tests/test-netinet_in.c: Likewise.
44089         * tests/test-open.c: Likewise.
44090         * tests/test-printf-frexp.c: Likewise.
44091         * tests/test-printf-frexpl.c: Likewise.
44092         * tests/test-printf-posix.c: Likewise.
44093         * tests/test-printf-posix.h: Likewise.
44094         * tests/test-rbtree_list.c: Likewise.
44095         * tests/test-rbtree_oset.c: Likewise.
44096         * tests/test-rbtreehash_list.c: Likewise.
44097         * tests/test-read-file.c: Likewise.
44098         * tests/test-rijndael.c: Likewise.
44099         * tests/test-search.c: Likewise.
44100         * tests/test-signbit.c: Likewise.
44101         * tests/test-sleep.c: Likewise.
44102         * tests/test-snprintf-posix.c: Likewise.
44103         * tests/test-snprintf-posix.h: Likewise.
44104         * tests/test-snprintf.c: Likewise.
44105         * tests/test-sprintf-posix.c: Likewise.
44106         * tests/test-sprintf-posix.h: Likewise.
44107         * tests/test-stat-time.c: Likewise.
44108         * tests/test-stdbool.c: Likewise.
44109         * tests/test-stdint.c: Likewise.
44110         * tests/test-stdio.c: Likewise.
44111         * tests/test-stdlib.c: Likewise.
44112         * tests/test-stpncpy.c: Likewise.
44113         * tests/test-strcasestr.c: Likewise.
44114         * tests/test-striconv.c: Likewise.
44115         * tests/test-striconveh.c: Likewise.
44116         * tests/test-striconveha.c: Likewise.
44117         * tests/test-string.c: Likewise.
44118         * tests/test-sys_select.c: Likewise.
44119         * tests/test-sys_socket.c: Likewise.
44120         * tests/test-sys_stat.c: Likewise.
44121         * tests/test-sys_time.c: Likewise.
44122         * tests/test-sysexits.c: Likewise.
44123         * tests/test-time.c: Likewise.
44124         * tests/test-tls.c: Likewise.
44125         * tests/test-trunc.c: Likewise.
44126         * tests/test-truncf.c: Likewise.
44127         * tests/test-truncl.c: Likewise.
44128         * tests/test-unistd.c: Likewise.
44129         * tests/test-vasnprintf-posix.c: Likewise.
44130         * tests/test-vasnprintf-posix2.c: Likewise.
44131         * tests/test-vasnprintf.c: Likewise.
44132         * tests/test-vasprintf-posix.c: Likewise.
44133         * tests/test-vasprintf.c: Likewise.
44134         * tests/test-verify.c: Likewise.
44135         * tests/test-vfprintf-posix.c: Likewise.
44136         * tests/test-vprintf-posix.c: Likewise.
44137         * tests/test-vsnprintf-posix.c: Likewise.
44138         * tests/test-vsnprintf.c: Likewise.
44139         * tests/test-vsprintf-posix.c: Likewise.
44140         * tests/test-wchar.c: Likewise.
44141         * tests/test-wctype.c: Likewise.
44142         * tests/test-wcwidth.c: Likewise.
44143         * tests/test-xstrtol.c: Likewise.
44144         * tests/test-xvasprintf.c: Likewise.
44145         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
44146         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
44147         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
44148         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
44149         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
44150         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
44151         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
44152         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
44153         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
44154         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
44155         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
44156         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
44157         * tests/uniname/test-uninames.c: Likewise.
44158         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
44159         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
44160         * tests/unistdio/test-u16-printf1.h: Likewise.
44161         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
44162         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
44163         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
44164         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
44165         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
44166         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
44167         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
44168         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
44169         * tests/unistdio/test-u32-printf1.h: Likewise.
44170         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
44171         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
44172         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
44173         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
44174         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
44175         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
44176         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
44177         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
44178         * tests/unistdio/test-u8-printf1.h: Likewise.
44179         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
44180         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
44181         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
44182         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
44183         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
44184         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
44185         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
44186         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
44187         * tests/unistdio/test-ulc-printf1.h: Likewise.
44188         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
44189         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
44190         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
44191         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
44192         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
44193         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
44194         * tests/uniwidth/test-u16-strwidth.c: Likewise.
44195         * tests/uniwidth/test-u16-width.c: Likewise.
44196         * tests/uniwidth/test-u32-strwidth.c: Likewise.
44197         * tests/uniwidth/test-u32-width.c: Likewise.
44198         * tests/uniwidth/test-u8-strwidth.c: Likewise.
44199         * tests/uniwidth/test-u8-width.c: Likewise.
44200         * tests/uniwidth/test-uc_width.c: Likewise.
44201         * config/srclist-update: Likewise.
44202         (fixlicense): Update to GPLv3+.
44203
44204         Change copyright notice from LGPLv2.1+ to LGPLv3+.
44205         * tests/test-tsearch.c: Change copyright notice.
44206
44207         Change copyright notice from LGPLv2.0+ to LGPLv3+.
44208         * lib/c-strcaseeq.h: Change copyright notice.
44209         * lib/streq.h: Likewise.
44210         * lib/uniconv.h: Likewise.
44211         * lib/uniconv/u-conv-from-enc.h: Likewise.
44212         * lib/uniconv/u-conv-to-enc.h: Likewise.
44213         * lib/uniconv/u-strconv-from-enc.h: Likewise.
44214         * lib/uniconv/u-strconv-to-enc.h: Likewise.
44215         * lib/uniconv/u16-conv-from-enc.c: Likewise.
44216         * lib/uniconv/u16-conv-to-enc.c: Likewise.
44217         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
44218         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
44219         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
44220         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
44221         * lib/uniconv/u32-conv-from-enc.c: Likewise.
44222         * lib/uniconv/u32-conv-to-enc.c: Likewise.
44223         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
44224         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
44225         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
44226         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
44227         * lib/uniconv/u8-conv-from-enc.c: Likewise.
44228         * lib/uniconv/u8-conv-to-enc.c: Likewise.
44229         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
44230         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
44231         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
44232         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
44233         * lib/uniname.h: Likewise.
44234         * lib/uniname/uniname.c: Likewise.
44235         * lib/unistdio.h: Likewise.
44236         * lib/unistdio/u-asnprintf.h: Likewise.
44237         * lib/unistdio/u-asprintf.h: Likewise.
44238         * lib/unistdio/u-printf-args.c: Likewise.
44239         * lib/unistdio/u-printf-args.h: Likewise.
44240         * lib/unistdio/u-printf-parse.h: Likewise.
44241         * lib/unistdio/u-snprintf.h: Likewise.
44242         * lib/unistdio/u-sprintf.h: Likewise.
44243         * lib/unistdio/u-vasprintf.h: Likewise.
44244         * lib/unistdio/u-vsnprintf.h: Likewise.
44245         * lib/unistdio/u-vsprintf.h: Likewise.
44246         * lib/unistdio/u16-asnprintf.c: Likewise.
44247         * lib/unistdio/u16-asprintf.c: Likewise.
44248         * lib/unistdio/u16-printf-parse.c: Likewise.
44249         * lib/unistdio/u16-snprintf.c: Likewise.
44250         * lib/unistdio/u16-sprintf.c: Likewise.
44251         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
44252         * lib/unistdio/u16-u16-asprintf.c: Likewise.
44253         * lib/unistdio/u16-u16-snprintf.c: Likewise.
44254         * lib/unistdio/u16-u16-sprintf.c: Likewise.
44255         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
44256         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
44257         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
44258         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
44259         * lib/unistdio/u16-vasnprintf.c: Likewise.
44260         * lib/unistdio/u16-vasprintf.c: Likewise.
44261         * lib/unistdio/u16-vsnprintf.c: Likewise.
44262         * lib/unistdio/u16-vsprintf.c: Likewise.
44263         * lib/unistdio/u32-asnprintf.c: Likewise.
44264         * lib/unistdio/u32-asprintf.c: Likewise.
44265         * lib/unistdio/u32-printf-parse.c: Likewise.
44266         * lib/unistdio/u32-snprintf.c: Likewise.
44267         * lib/unistdio/u32-sprintf.c: Likewise.
44268         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
44269         * lib/unistdio/u32-u32-asprintf.c: Likewise.
44270         * lib/unistdio/u32-u32-snprintf.c: Likewise.
44271         * lib/unistdio/u32-u32-sprintf.c: Likewise.
44272         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
44273         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
44274         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
44275         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
44276         * lib/unistdio/u32-vasnprintf.c: Likewise.
44277         * lib/unistdio/u32-vasprintf.c: Likewise.
44278         * lib/unistdio/u32-vsnprintf.c: Likewise.
44279         * lib/unistdio/u32-vsprintf.c: Likewise.
44280         * lib/unistdio/u8-asnprintf.c: Likewise.
44281         * lib/unistdio/u8-asprintf.c: Likewise.
44282         * lib/unistdio/u8-printf-parse.c: Likewise.
44283         * lib/unistdio/u8-snprintf.c: Likewise.
44284         * lib/unistdio/u8-sprintf.c: Likewise.
44285         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
44286         * lib/unistdio/u8-u8-asprintf.c: Likewise.
44287         * lib/unistdio/u8-u8-snprintf.c: Likewise.
44288         * lib/unistdio/u8-u8-sprintf.c: Likewise.
44289         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
44290         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
44291         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
44292         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
44293         * lib/unistdio/u8-vasnprintf.c: Likewise.
44294         * lib/unistdio/u8-vasprintf.c: Likewise.
44295         * lib/unistdio/u8-vsnprintf.c: Likewise.
44296         * lib/unistdio/u8-vsprintf.c: Likewise.
44297         * lib/unistdio/ulc-asnprintf.c: Likewise.
44298         * lib/unistdio/ulc-asprintf.c: Likewise.
44299         * lib/unistdio/ulc-printf-parse.c: Likewise.
44300         * lib/unistdio/ulc-snprintf.c: Likewise.
44301         * lib/unistdio/ulc-sprintf.c: Likewise.
44302         * lib/unistdio/ulc-vasnprintf.c: Likewise.
44303         * lib/unistdio/ulc-vasprintf.c: Likewise.
44304         * lib/unistdio/ulc-vsnprintf.c: Likewise.
44305         * lib/unistdio/ulc-vsprintf.c: Likewise.
44306         * lib/unistr.h: Likewise.
44307         * lib/unistr/u-cpy-alloc.h: Likewise.
44308         * lib/unistr/u-cpy.h: Likewise.
44309         * lib/unistr/u-endswith.h: Likewise.
44310         * lib/unistr/u-move.h: Likewise.
44311         * lib/unistr/u-set.h: Likewise.
44312         * lib/unistr/u-startswith.h: Likewise.
44313         * lib/unistr/u-stpcpy.h: Likewise.
44314         * lib/unistr/u-stpncpy.h: Likewise.
44315         * lib/unistr/u-strcat.h: Likewise.
44316         * lib/unistr/u-strcpy.h: Likewise.
44317         * lib/unistr/u-strcspn.h: Likewise.
44318         * lib/unistr/u-strdup.h: Likewise.
44319         * lib/unistr/u-strlen.h: Likewise.
44320         * lib/unistr/u-strncat.h: Likewise.
44321         * lib/unistr/u-strncpy.h: Likewise.
44322         * lib/unistr/u-strnlen.h: Likewise.
44323         * lib/unistr/u-strpbrk.h: Likewise.
44324         * lib/unistr/u-strspn.h: Likewise.
44325         * lib/unistr/u-strstr.h: Likewise.
44326         * lib/unistr/u-strtok.h: Likewise.
44327         * lib/unistr/u16-check.c: Likewise.
44328         * lib/unistr/u16-chr.c: Likewise.
44329         * lib/unistr/u16-cmp.c: Likewise.
44330         * lib/unistr/u16-cpy-alloc.c: Likewise.
44331         * lib/unistr/u16-cpy.c: Likewise.
44332         * lib/unistr/u16-endswith.c: Likewise.
44333         * lib/unistr/u16-mblen.c: Likewise.
44334         * lib/unistr/u16-mbsnlen.c: Likewise.
44335         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44336         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44337         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44338         * lib/unistr/u16-mbtouc.c: Likewise.
44339         * lib/unistr/u16-mbtoucr.c: Likewise.
44340         * lib/unistr/u16-move.c: Likewise.
44341         * lib/unistr/u16-next.c: Likewise.
44342         * lib/unistr/u16-prev.c: Likewise.
44343         * lib/unistr/u16-set.c: Likewise.
44344         * lib/unistr/u16-startswith.c: Likewise.
44345         * lib/unistr/u16-stpcpy.c: Likewise.
44346         * lib/unistr/u16-stpncpy.c: Likewise.
44347         * lib/unistr/u16-strcat.c: Likewise.
44348         * lib/unistr/u16-strchr.c: Likewise.
44349         * lib/unistr/u16-strcmp.c: Likewise.
44350         * lib/unistr/u16-strcpy.c: Likewise.
44351         * lib/unistr/u16-strcspn.c: Likewise.
44352         * lib/unistr/u16-strdup.c: Likewise.
44353         * lib/unistr/u16-strlen.c: Likewise.
44354         * lib/unistr/u16-strmblen.c: Likewise.
44355         * lib/unistr/u16-strmbtouc.c: Likewise.
44356         * lib/unistr/u16-strncat.c: Likewise.
44357         * lib/unistr/u16-strncmp.c: Likewise.
44358         * lib/unistr/u16-strncpy.c: Likewise.
44359         * lib/unistr/u16-strnlen.c: Likewise.
44360         * lib/unistr/u16-strpbrk.c: Likewise.
44361         * lib/unistr/u16-strrchr.c: Likewise.
44362         * lib/unistr/u16-strspn.c: Likewise.
44363         * lib/unistr/u16-strstr.c: Likewise.
44364         * lib/unistr/u16-strtok.c: Likewise.
44365         * lib/unistr/u16-to-u32.c: Likewise.
44366         * lib/unistr/u16-to-u8.c: Likewise.
44367         * lib/unistr/u16-uctomb-aux.c: Likewise.
44368         * lib/unistr/u16-uctomb.c: Likewise.
44369         * lib/unistr/u32-check.c: Likewise.
44370         * lib/unistr/u32-chr.c: Likewise.
44371         * lib/unistr/u32-cmp.c: Likewise.
44372         * lib/unistr/u32-cpy-alloc.c: Likewise.
44373         * lib/unistr/u32-cpy.c: Likewise.
44374         * lib/unistr/u32-endswith.c: Likewise.
44375         * lib/unistr/u32-mblen.c: Likewise.
44376         * lib/unistr/u32-mbsnlen.c: Likewise.
44377         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44378         * lib/unistr/u32-mbtouc.c: Likewise.
44379         * lib/unistr/u32-mbtoucr.c: Likewise.
44380         * lib/unistr/u32-move.c: Likewise.
44381         * lib/unistr/u32-next.c: Likewise.
44382         * lib/unistr/u32-prev.c: Likewise.
44383         * lib/unistr/u32-set.c: Likewise.
44384         * lib/unistr/u32-startswith.c: Likewise.
44385         * lib/unistr/u32-stpcpy.c: Likewise.
44386         * lib/unistr/u32-stpncpy.c: Likewise.
44387         * lib/unistr/u32-strcat.c: Likewise.
44388         * lib/unistr/u32-strchr.c: Likewise.
44389         * lib/unistr/u32-strcmp.c: Likewise.
44390         * lib/unistr/u32-strcpy.c: Likewise.
44391         * lib/unistr/u32-strcspn.c: Likewise.
44392         * lib/unistr/u32-strdup.c: Likewise.
44393         * lib/unistr/u32-strlen.c: Likewise.
44394         * lib/unistr/u32-strmblen.c: Likewise.
44395         * lib/unistr/u32-strmbtouc.c: Likewise.
44396         * lib/unistr/u32-strncat.c: Likewise.
44397         * lib/unistr/u32-strncmp.c: Likewise.
44398         * lib/unistr/u32-strncpy.c: Likewise.
44399         * lib/unistr/u32-strnlen.c: Likewise.
44400         * lib/unistr/u32-strpbrk.c: Likewise.
44401         * lib/unistr/u32-strrchr.c: Likewise.
44402         * lib/unistr/u32-strspn.c: Likewise.
44403         * lib/unistr/u32-strstr.c: Likewise.
44404         * lib/unistr/u32-strtok.c: Likewise.
44405         * lib/unistr/u32-to-u16.c: Likewise.
44406         * lib/unistr/u32-to-u8.c: Likewise.
44407         * lib/unistr/u32-uctomb.c: Likewise.
44408         * lib/unistr/u8-check.c: Likewise.
44409         * lib/unistr/u8-chr.c: Likewise.
44410         * lib/unistr/u8-cmp.c: Likewise.
44411         * lib/unistr/u8-cpy-alloc.c: Likewise.
44412         * lib/unistr/u8-cpy.c: Likewise.
44413         * lib/unistr/u8-endswith.c: Likewise.
44414         * lib/unistr/u8-mblen.c: Likewise.
44415         * lib/unistr/u8-mbsnlen.c: Likewise.
44416         * lib/unistr/u8-mbtouc-aux.c: Likewise.
44417         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44418         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44419         * lib/unistr/u8-mbtouc.c: Likewise.
44420         * lib/unistr/u8-mbtoucr.c: Likewise.
44421         * lib/unistr/u8-move.c: Likewise.
44422         * lib/unistr/u8-next.c: Likewise.
44423         * lib/unistr/u8-prev.c: Likewise.
44424         * lib/unistr/u8-set.c: Likewise.
44425         * lib/unistr/u8-startswith.c: Likewise.
44426         * lib/unistr/u8-stpcpy.c: Likewise.
44427         * lib/unistr/u8-stpncpy.c: Likewise.
44428         * lib/unistr/u8-strcat.c: Likewise.
44429         * lib/unistr/u8-strchr.c: Likewise.
44430         * lib/unistr/u8-strcmp.c: Likewise.
44431         * lib/unistr/u8-strcpy.c: Likewise.
44432         * lib/unistr/u8-strcspn.c: Likewise.
44433         * lib/unistr/u8-strdup.c: Likewise.
44434         * lib/unistr/u8-strlen.c: Likewise.
44435         * lib/unistr/u8-strmblen.c: Likewise.
44436         * lib/unistr/u8-strmbtouc.c: Likewise.
44437         * lib/unistr/u8-strncat.c: Likewise.
44438         * lib/unistr/u8-strncmp.c: Likewise.
44439         * lib/unistr/u8-strncpy.c: Likewise.
44440         * lib/unistr/u8-strnlen.c: Likewise.
44441         * lib/unistr/u8-strpbrk.c: Likewise.
44442         * lib/unistr/u8-strrchr.c: Likewise.
44443         * lib/unistr/u8-strspn.c: Likewise.
44444         * lib/unistr/u8-strstr.c: Likewise.
44445         * lib/unistr/u8-strtok.c: Likewise.
44446         * lib/unistr/u8-to-u16.c: Likewise.
44447         * lib/unistr/u8-to-u32.c: Likewise.
44448         * lib/unistr/u8-uctomb-aux.c: Likewise.
44449         * lib/unistr/u8-uctomb.c: Likewise.
44450         * lib/unitypes.h: Likewise.
44451         * lib/uniwidth.h: Likewise.
44452         * lib/uniwidth/cjk.h: Likewise.
44453         * lib/uniwidth/u16-strwidth.c: Likewise.
44454         * lib/uniwidth/u16-width.c: Likewise.
44455         * lib/uniwidth/u32-strwidth.c: Likewise.
44456         * lib/uniwidth/u32-width.c: Likewise.
44457         * lib/uniwidth/u8-strwidth.c: Likewise.
44458         * lib/uniwidth/u8-width.c: Likewise.
44459         * lib/uniwidth/width.c: Likewise.
44460
44461 2007-10-07  Bruno Haible  <bruno@clisp.org>
44462
44463         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
44464         The file is still under LGPL (see modules/inttypes).
44465
44466 2007-10-06  Bruno Haible  <bruno@clisp.org>
44467
44468         * modules/trunc (Dependencies): Add 'extensions'.
44469         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
44470         Reported by Ben Pfaff <blp@gnu.org>.
44471
44472 2007-10-06  Bruno Haible  <bruno@clisp.org>
44473
44474         * modules/freopen-tests: New file.
44475         * tests/test-freopen.c: New file.
44476
44477         * modules/fopen-tests: New file.
44478         * tests/test-fopen.c: New file.
44479
44480         * modules/fopen: New file.
44481         * lib/fopen.c: New file.
44482         * m4/fopen.m4: New file.
44483         * modules/freopen: New file.
44484         * lib/freopen.c: New file.
44485         * m4/freopen.m4: New file.
44486         * lib/stdio.in.h (fopen, freopen): New declarations.
44487         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
44488         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
44489         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
44490         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
44491         * doc/functions/fopen.texi: Mention the 'fopen' module.
44492         * doc/functions/freopen.texi: Mention the 'freopen' module.
44493
44494 2007-10-06  Bruno Haible  <bruno@clisp.org>
44495
44496         * modules/open-tests: New file.
44497         * tests/test-open.c: New file.
44498
44499         * modules/open: New file.
44500         * lib/open.c: New file.
44501         * m4/open.m4: New file.
44502         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
44503         lib/open.c does.
44504         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
44505         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
44506         macros.
44507         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
44508         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
44509         REPLACE_OPEN.
44510         * doc/functions/open.texi: Mention the 'open' module.
44511
44512 2007-10-04  Bruno Haible  <bruno@clisp.org>
44513
44514         * modules/ceill-tests: New file.
44515         * tests/test-ceill.c: New file.
44516
44517         * modules/ceill: New file.
44518         * lib/ceill.c: Replace entire file.
44519         * m4/ceill.m4: New file.
44520         * lib/math.in.h (ceill): Replace declaration.
44521         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
44522         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
44523         * doc/functions/ceill.texi: Mention the 'ceill' module.
44524         * modules/mathl (Files): Remove lib/ceill.c.
44525         (Depends-on): Add ceill.
44526
44527 2007-10-04  Bruno Haible  <bruno@clisp.org>
44528
44529         * modules/ceilf-tests: New file.
44530         * tests/test-ceilf.c: New file.
44531
44532         * modules/ceilf: New file.
44533         * lib/ceil.c: New file.
44534         * lib/ceilf.c: New file.
44535         * m4/ceilf.m4: New file.
44536         * lib/math.in.h (ceilf): New declaration.
44537         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
44538         HAVE_DECL_CEILF.
44539         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
44540         HAVE_DECL_CEILF.
44541         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
44542
44543 2007-10-04  Bruno Haible  <bruno@clisp.org>
44544
44545         * modules/floorl-tests: New file.
44546         * tests/test-floorl.c: New file.
44547
44548         * modules/floorl: New file.
44549         * lib/floorl.c: Replace entire file.
44550         * m4/floorl.m4: New file.
44551         * lib/math.in.h (floorl): Replace declaration.
44552         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
44553         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
44554         * doc/functions/floorl.texi: Mention the 'floorl' module.
44555         * modules/mathl (Files): Remove lib/floorl.c.
44556         (Depends-on): Add floorl.
44557
44558 2007-10-04  Bruno Haible  <bruno@clisp.org>
44559
44560         * modules/floorf-tests: New file.
44561         * tests/test-floorf.c: New file.
44562
44563         * modules/floorf: New file.
44564         * lib/floor.c: New file.
44565         * lib/floorf.c: New file.
44566         * m4/floorf.m4: New file.
44567         * lib/math.in.h (floorf): New declaration.
44568         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
44569         HAVE_DECL_FLOORF.
44570         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
44571         HAVE_DECL_FLOORF.
44572         * doc/functions/floorf.texi: Mention the 'floorf' module.
44573
44574 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
44575             Bruno Haible  <bruno@clisp.org>
44576
44577         Advertise for the Git server instead of the CVS server.
44578         * doc/gnulib-intro.texi (Steady Development): Mention the Git
44579         repository instead of the CVS one.
44580         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
44581         about all VCS systems generically.
44582         * doc/gnulib.texi (Introduction): Capitalize `Git'.
44583
44584 2007-10-04  Bruno Haible  <bruno@clisp.org>
44585
44586         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
44587         means.
44588         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
44589
44590 2007-10-04  Bruno Haible  <bruno@clisp.org>
44591
44592         * modules/truncl-tests: New file.
44593         * tests/test-truncl.c: New file.
44594
44595         * modules/truncl: New file.
44596         * lib/truncl.c: New file.
44597         * m4/truncl.m4: New file.
44598         * lib/math.in.h (truncl): New declaration.
44599         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
44600         HAVE_DECL_TRUNCL.
44601         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
44602         HAVE_DECL_TRUNCL.
44603         * doc/functions/truncl.texi: Mention the 'truncl' module.
44604
44605 2007-10-04  Bruno Haible  <bruno@clisp.org>
44606
44607         * modules/truncf-tests: New file.
44608         * tests/test-truncf.c: New file.
44609
44610         * modules/truncf: New file.
44611         * lib/trunc.c: Make paramerizable through USE_* macros.
44612         * lib/truncf.c: New file.
44613         * m4/truncf.m4: New file.
44614         * lib/math.in.h (truncf): New declaration.
44615         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
44616         HAVE_DECL_TRUNCF.
44617         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
44618         HAVE_DECL_TRUNCF.
44619         * doc/functions/truncf.texi: Mention the 'truncf' module.
44620
44621 2007-10-03  Bruno Haible  <bruno@clisp.org>
44622
44623         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
44624         augmentation also for tests modules.
44625         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
44626         * modules/atexit-tests (Makefile.am): Likewise.
44627         * modules/binary-io-tests (Makefile.am): Likewise.
44628         * modules/c-strcase-tests (Makefile.am): Likewise.
44629         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
44630         * modules/canonicalize-tests (Makefile.am): Likewise.
44631         * modules/closein-tests (Makefile.am): Likewise.
44632         * modules/fprintf-posix-tests (Makefile.am): Likewise.
44633         * modules/freadahead-tests (Makefile.am): Likewise.
44634         * modules/fseek-tests (Makefile.am): Likewise.
44635         * modules/fseeko-tests (Makefile.am): Likewise.
44636         * modules/ftell-tests (Makefile.am): Likewise.
44637         * modules/ftello-tests (Makefile.am): Likewise.
44638         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
44639         * modules/isnanl-tests (Makefile.am): Likewise.
44640         * modules/lseek-tests (Makefile.am): Likewise.
44641         * modules/mbscasecmp-tests (Makefile.am): Likewise.
44642         * modules/mbscasestr-tests (Makefile.am): Likewise.
44643         * modules/mbschr-tests (Makefile.am): Likewise.
44644         * modules/mbscspn-tests (Makefile.am): Likewise.
44645         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
44646         * modules/mbspbrk-tests (Makefile.am): Likewise.
44647         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
44648         * modules/mbsrchr-tests (Makefile.am): Likewise.
44649         * modules/mbsspn-tests (Makefile.am): Likewise.
44650         * modules/mbsstr-tests (Makefile.am): Likewise.
44651         * modules/printf-posix-tests (Makefile.am): Likewise.
44652         * modules/snprintf-posix-tests (Makefile.am): Likewise.
44653         * modules/sprintf-posix-tests (Makefile.am): Likewise.
44654         * modules/tsearch-tests (Makefile.am): Likewise.
44655         * modules/uniname/uniname-tests (Makefile.am): Likewise.
44656         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
44657         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
44658         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
44659         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
44660         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
44661         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
44662         * modules/vprintf-posix-tests (Makefile.am): Likewise.
44663         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
44664         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
44665         * modules/xstrtoimax-tests (Makefile.am): Likewise.
44666         * modules/xstrtol-tests (Makefile.am): Likewise.
44667         * modules/xstrtoumax-tests (Makefile.am): Likewise.
44668         * modules/yesno-tests (Makefile.am): Likewise.
44669
44670 2007-10-03  Bruno Haible  <bruno@clisp.org>
44671
44672         * modules/trunc-tests: New file.
44673         * tests/test-trunc.c: New file.
44674
44675         * modules/trunc: New file.
44676         * lib/trunc.c: New file.
44677         * m4/trunc.m4: New file.
44678         * lib/math.in.h (trunc): New declaration.
44679         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
44680         HAVE_DECL_TRUNC.
44681         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
44682         HAVE_DECL_TRUNC.
44683         * doc/functions/trunc.texi: Mention the 'trunc' module.
44684
44685 2007-10-03  Bruno Haible  <bruno@clisp.org>
44686
44687         * tests/test-fpending.c: New file, mostly copied
44688         from coreutils/lib/t-fpending.c.
44689         * modules/fpending-tests: New file.
44690
44691 2007-10-03  Bruno Haible  <bruno@clisp.org>
44692
44693         Port the stdio extensions to QNX (untested).
44694         * lib/fseterr.c (fseterr): Add support for QNX.
44695         * lib/fbufmode.c (fbufmode): Likewise.
44696         * lib/freadable.c (freadable): Likewise.
44697         * lib/fwritable.c (fwritable): Likewise.
44698         * lib/freading.c (freading): Likewise.
44699         * lib/fwriting.c (fwriting): Likewise.
44700         * lib/freadahead.c (freadahed): Likewise.
44701         * lib/fpurge.c (fpurge): Likewise.
44702         * lib/fseeko.c (rpl_fseeko): Likewise.
44703
44704 2007-10-03  Bruno Haible  <bruno@clisp.org>
44705             Jim Meyering  <jim@meyering.net>
44706             Eric Blake  <ebb9@byu.net>
44707
44708         * doc/relocatable.texi: Use @command instead of @program.
44709
44710 2007-10-02  Jim Meyering  <jim@meyering.net>
44711
44712         Perform one more "_.h" -> ".in.h" substitution.
44713         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
44714         instead of unistd_.h here, too.
44715
44716 2007-10-01  Bruno Haible  <bruno@clisp.org>
44717
44718         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
44719         Needed for the alloca-opt module.
44720
44721 2007-09-30  Bruno Haible  <bruno@clisp.org>
44722
44723         * lib/alloca.in.h: Renamed from lib/alloca_.h.
44724         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
44725         alloca_.h.
44726         * lib/argz.in.h: Renamed from lib/argz_.h.
44727         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
44728         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
44729         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
44730         byteswap_.h.
44731         * lib/dirent.in.h: Renamed from lib/dirent_.h.
44732         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
44733         dirent_.h.
44734         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
44735         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
44736         fcntl_.h.
44737         * lib/float.in.h: Renamed from lib/float_.h.
44738         * modules/float (Files, Makefile.am): Use float.in.h instead of
44739         float_.h.
44740         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
44741         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
44742         fnmatch_.h.
44743         * lib/getopt.in.h: Renamed from lib/getopt_.h.
44744         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
44745         getopt_.h.
44746         * lib/glob.in.h: Renamed from lib/glob_.h.
44747         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
44748         * lib/iconv.in.h: Renamed from lib/iconv_.h.
44749         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
44750         iconv_.h.
44751         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
44752         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
44753         inttypes_.h.
44754         * lib/locale.in.h: Renamed from lib/locale_.h.
44755         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
44756         locale_.h.
44757         * lib/math.in.h: Renamed from lib/math_.h.
44758         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
44759         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
44760         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
44761         of netinet_in_.h. Add dependency.
44762         * lib/poll.in.h: Renamed from lib/poll_.h.
44763         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
44764         * lib/search.in.h: Renamed from lib/search_.h.
44765         * modules/search (Files, Makefile.am): Use search.in.h instead of
44766         search_.h.
44767         * lib/signal.in.h: Renamed from lib/signal_.h.
44768         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
44769         _signal.h.
44770         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
44771         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
44772         stdbool_.h.
44773         * lib/stdint.in.h: Renamed from lib/stdint_.h.
44774         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
44775         stdint_.h.
44776         * lib/stdio.in.h: Renamed from lib/stdio_.h.
44777         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
44778         stdio_.h.
44779         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
44780         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
44781         stdlib_.h.
44782         * lib/string.in.h: Renamed from lib/string_.h.
44783         * modules/string (Files, Makefile.am): Use string.in.h instead of
44784         string_.h.
44785         * doc/gnulib-tool.texi (Initial import): Update.
44786         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
44787         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
44788         of sys_select_.h. Add dependency.
44789         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
44790         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
44791         of sys_socket_.h.
44792         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
44793         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
44794         sys_stat_.h.
44795         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
44796         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
44797         sys_time_.h.
44798         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
44799         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
44800         sysexits_.h.
44801         * lib/time.in.h: Renamed from lib/time_.h.
44802         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
44803         * lib/unistd.in.h: Renamed from lib/unistd_.h.
44804         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
44805         unistd_.h.
44806         * lib/wchar.in.h: Renamed from lib/wchar_.h.
44807         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
44808         wchar_.h.
44809         * lib/wctype.in.h: Renamed from lib/wctype_.h.
44810         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
44811         wctype_.h.
44812         * build-aux/bootstrap (slurp): Update.
44813         * lib/.cppi-disable: Update.
44814
44815 2007-09-30  Bruno Haible  <bruno@clisp.org>
44816
44817         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
44818         Needed on BeOS.
44819
44820 2007-09-30  Bruno Haible  <bruno@clisp.org>
44821
44822         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
44823
44824 2007-09-29  Bruno Haible  <bruno@clisp.org>
44825
44826         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
44827
44828 2007-09-29  Bruno Haible  <bruno@clisp.org>
44829
44830         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
44831         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
44832         * build-aux/install-reloc: Compile also areadlink.c.
44833         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
44834
44835 2007-09-29  Bruno Haible  <bruno@clisp.org>
44836
44837         * gnulib-tool (func_emit_initmacro_done): Indentation.
44838
44839 2007-09-29  Bruno Haible  <bruno@clisp.org>
44840
44841         * README: Add CVS checkout update instructions.
44842         Info from Bob Proulx <bob@proulx.com>.
44843
44844 2007-09-28  Eric Blake  <ebb9@byu.net>
44845
44846         Provide move-if-change.
44847         * build-aux/move-if-change: New file, based on best practice
44848         rather than any canonical upstream location.
44849
44850 2007-09-28  Jim Meyering  <jim@meyering.net>
44851
44852         Fix canonicalize loop-detection corner case.
44853         Do not attempt to stat the symlink values stored via seen_triple.
44854         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
44855         on linux-2.6.18, (but not 2.6.22).
44856         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
44857         triple_compare.  The former compares dev,ino,filename, while the latter
44858         would actually stat dirname(filename) when dev and ino were equal.
44859         * lib/hash-triple.c: Install <string.h>.
44860         (STREQ): Define.
44861         (triple_compare_ino_str): New function.
44862         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
44863
44864 2007-09-28  Eric Blake  <ebb9@byu.net>
44865
44866         Enforce that AC_REPLACE_FUNCS files exist.
44867         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
44868         override check for typos.
44869
44870         Fix test-closein on Solaris 10.
44871         * tests/test-closein.c (main): Don't assume stdin can be inherited
44872         closed on all systems.
44873         * tests/test-closein.sh: Likewise.
44874         Reported by Piotr Tarnowski.
44875
44876 2007-09-28  Jim Meyering  <jim@meyering.net>
44877
44878         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
44879
44880 2007-09-27  Jim Meyering  <jim@meyering.net>
44881
44882         canonicalize: Avoid a false-positive cycle failure.
44883         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
44884         Sort.  Remove cycle-check.
44885         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
44886         not cycle-check.h.
44887         (seen_triple): New function.
44888         (canonicalize_filename_mode): Use it instead of cycle-check.
44889         * tests/test-canonicalize.c: Add a test for this bug.
44890         * tests/test-canonicalize.sh: Set up and run the test.
44891
44892         New module, file-set, from coreutils.
44893         * modules/file-set: Define it.
44894         * lib/file-set.c, lib/file-set.h: Implement.
44895
44896         New module, hash-triple, from coreutils.
44897         * modules/hash-triple: Define it.
44898         * lib/hash-triple.c, lib/hash-triple.h: Implement.
44899
44900 2007-09-25  Eric Blake  <ebb9@byu.net>
44901
44902         Fix strerror on Interix.
44903         * lib/string_.h (strerror): Declare replacement.
44904         * doc/functions/strerror.texi (strerror): Document the Interix
44905         shortcoming.
44906         * modules/string (Makefile.am): Support new hooks.
44907         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
44908         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
44909         gl_FUNC_STRERROR_SEPARATE.
44910         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
44911         * lib/strerror.c (rpl_strerror): Provide replacement.
44912         * modules/strerror (Depends-on): Add string.
44913         (configure.ac): Detect use of module.
44914         * tests/test-strerror.c: New file.
44915         * modules/strerror-tests: New test module.
44916         * modules/argp (Depends-on): Add strerror.
44917         * modules/error (Depends-on): Likewise.
44918         Reported by Martin Koeppe.
44919
44920 2007-09-24  Bruno Haible  <bruno@clisp.org>
44921
44922         * README: Update git instructions.
44923
44924 2007-09-24  Eric Blake  <ebb9@byu.net>
44925
44926         Revert fpending breakage from 2007-09-08.
44927         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
44928         __fpending.c.
44929
44930 2007-09-24  Jim Meyering  <jim@meyering.net>
44931
44932         filenamecat.c: Add a test.
44933         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
44934         showing how the function works when DIR is the empty string.
44935
44936 2007-09-21  Simon Josefsson  <simon@josefsson.org>
44937
44938         * tests/test-canonicalize.sh: Turn on executable bit.
44939
44940 2007-09-19  Eric Blake  <ebb9@byu.net>
44941
44942         * README: Update CVS instructions.
44943
44944 2007-09-18  Bruno Haible  <bruno@clisp.org>
44945
44946         * modules/areadlink: New file.
44947         * lib/areadlink.h (areadlink): New declaration.
44948         * lib/areadlink.c: New file, based on lib/xreadlink.c.
44949
44950 2007-09-17  Jim Meyering  <jim@meyering.net>
44951
44952         * lib/savewd.c (ESTALE) [!defined]: Define.
44953         Reported to be required on Interix by Martin Koeppe.
44954
44955 2007-09-17  Bruno Haible  <bruno@clisp.org>
44956
44957         * gnulib-tool (func_version): Use $version.
44958
44959 2007-09-16  Bruno Haible  <bruno@clisp.org>
44960
44961         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
44962         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
44963         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
44964         Reported by Greg Schafer <gschafer@zip.com.au>.
44965
44966 2007-09-15  Bruno Haible  <bruno@clisp.org>
44967
44968         * gnulib-tool (sed): Try a little harder to make bash understand the
44969         alias.
44970         Reported by Bruce Korb <bruce.korb@gmail.com>.
44971
44972 2007-09-13  Eric Blake  <ebb9@byu.net>
44973
44974         * ChangeLog: Remove conflict markers.
44975
44976 2007-09-13  Simon Josefsson  <simon@josefsson.org>
44977
44978         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
44979         Reported by Bruno Haible <bruno@clisp.org>.
44980
44981 2007-09-12  Bruno Haible  <bruno@clisp.org>
44982
44983         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
44984         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
44985         is not defined.
44986
44987 2007-09-12  Eric Blake  <ebb9@byu.net>
44988
44989         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
44990         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
44991         Autoconf definition.
44992         * modules/euidaccess (Depends-on): Add extensions, for
44993         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
44994         * modules/fnmatch (Depends-on): Likewise.
44995         * modules/getaddrinfo (Depends-on): Likewise.
44996         * modules/getdelim (Depends-on): Likewise.
44997         * modules/getline (Depends-on): Likewise.
44998         * modules/getsubopt (Depends-on): Likewise.
44999         * modules/gettext (Depends-on): Likewise.
45000         * modules/group-member (Depends-on): Likewise.
45001         * modules/mbchar (Depends-on): Likewise.
45002         * modules/memmem (Depends-on): Likewise.
45003         * modules/mempcpy (Depends-on): Likewise.
45004         * modules/memrchr (Depends-on): Likewise.
45005         * modules/pagealign_alloc (Depends-on): Likewise.
45006         * modules/readutmp (Depends-on): Likewise.
45007         * modules/stpcpy (Depends-on): Likewise.
45008         * modules/stpncpy (Depends-on): Likewise.
45009         * modules/strchrnul (Depends-on): Likewise.
45010         * modules/strndup (Depends-on): Likewise.
45011         * modules/strsep (Depends-on): Likewise.
45012         * modules/strverscmp (Depends-on): Likewise.
45013         * modules/vasprintf (Depends-on): Likewise.
45014         * modules/wcwidth (Depends-on): Likewise.
45015         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
45016         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
45017         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
45018         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
45019         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
45020         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45021         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
45022         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45023         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
45024         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
45025         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45026         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
45027         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
45028         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
45029         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
45030         * m4/readutmp.m4 (gl_READUTMP): Likewise.
45031         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45032         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
45033         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45034         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
45035         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
45036         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
45037         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
45038         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
45039         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
45040         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45041         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
45042         so that lock.m4 can be used in gettext without extensions module.
45043
45044 2007-09-11  Bruno Haible  <bruno@clisp.org>
45045
45046         * m4/isc-posix.m4: Remove file.
45047         Suggested by Eric Blake.
45048
45049 2007-09-11  Eric Blake  <ebb9@byu.net>
45050
45051         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
45052
45053 2007-09-10  Bruno Haible  <bruno@clisp.org>
45054
45055         * posix-modules: Fix typo in error message.
45056         Reported by Matt <mkraai@beckman.com>.
45057
45058 2007-09-09  Bruno Haible  <bruno@clisp.org>
45059
45060         * doc/functions/getdelim.texi: Update list of platforms lacking the
45061         function.
45062         * doc/functions/getline.texi: Likewise.
45063
45064 2007-09-09  Jim Meyering  <jim@meyering.net>
45065
45066         * lib/hash.c (hash_initialize): Detect calloc failure.
45067         Reported by Bruno Haible.
45068
45069 2007-09-09  Bruno Haible  <bruno@clisp.org>
45070
45071         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
45072         malloc or realloc fails.
45073
45074 2007-09-09  Bruno Haible  <bruno@clisp.org>
45075
45076         * modules/getcwd (Depends-on): Add malloc-posix.
45077         * modules/glob (Depends-on): Likewise.
45078         * modules/putenv (Depends-on): Likewise.
45079         * modules/strdup (Depends-on): Likewise.
45080         * modules/getdelim (Depends-on): Add realloc-posix.
45081         * modules/read-file (Depends-on): Likewise.
45082
45083 2007-09-09  Bruno Haible  <bruno@clisp.org>
45084
45085         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
45086         (gl_FUNC_MALLOC_POSIX): Require it.
45087         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
45088         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
45089         * modules/realloc (Files): Add m4/malloc.m4.
45090         * modules/calloc (Files): Likewise.
45091
45092 2007-09-09  Bruno Haible  <bruno@clisp.org>
45093
45094         * modules/malloc-posix: New file.
45095         * modules/malloc (Depends-on): Add malloc-posix.
45096         * lib/malloc.c: Include errno.h.
45097         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
45098         and a POSIX-compatible malloc into a single function. Set ENOMEM
45099         when returning NULL.
45100         * m4/malloc.m4: New file.
45101         * doc/functions/malloc.texi: Mention the malloc-posix module.
45102         * lib/stdlib_.h (malloc): New declaration.
45103         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
45104         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
45105         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
45106         and HAVE_MALLOC_POSIX.
45107
45108 2007-09-09  Bruno Haible  <bruno@clisp.org>
45109
45110         * modules/realloc-posix: New file.
45111         * modules/realloc (Depends-on): Add realloc-posix.
45112         * lib/realloc.c: Include errno.h.
45113         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
45114         and a POSIX-compatible realloc into a single function. Set ENOMEM
45115         when returning NULL.
45116         * m4/realloc.m4: New file.
45117         * doc/functions/realloc.texi: Mention the realloc-posix module.
45118         * lib/stdlib_.h (realloc): New declaration.
45119         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
45120         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
45121         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
45122         and HAVE_REALLOC_POSIX.
45123
45124 2007-09-09  Bruno Haible  <bruno@clisp.org>
45125
45126         * modules/calloc-posix: New file.
45127         * modules/calloc (Depends-on): Add calloc-posix.
45128         * lib/calloc.c: Include errno.h.
45129         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
45130         and a POSIX-compatible calloc into a single function. Set ENOMEM
45131         when returning NULL.
45132         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
45133         * doc/functions/calloc.texi: Mention the calloc-posix module.
45134         * lib/stdlib_.h (calloc): New declaration.
45135         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
45136         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
45137         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
45138         and HAVE_CALLOC_POSIX.
45139
45140 2007-09-09  Bruno Haible  <bruno@clisp.org>
45141
45142         Allow for modules to show an arbitrary notice.
45143         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
45144         * gnulib-tool: New option --extract-notice.
45145         (func_usage): Document it.
45146         (sed_extract_prog): Update.
45147         (func_get_notice): New function.
45148         (func_modules_notice): New function.
45149         (func_import, func_create_testdir): Invoke it.
45150         Suggested by Jim Meyering.
45151
45152 2007-09-09  Bruno Haible  <bruno@clisp.org>
45153
45154         * gnulib-tool: New options --verbose, --quiet.
45155         (func_usage): Document them.
45156         (verbose): New variable.
45157         (func_execute_command): New function.
45158         (func_import): Don't show the module list and the file list if
45159         $verbose < 0.
45160         (func_create_testdir): Likewise. Use func_execute_command.
45161         (func_create_megatestdir): Use func_execute_command.
45162
45163 2007-09-08  Bruno Haible  <bruno@clisp.org>
45164
45165         * gnulib-tool (func_import): Prefer rsync over wget when available,
45166         for fetching the PO files.
45167
45168 2007-09-08  Bruno Haible  <bruno@clisp.org>
45169
45170         * posix-modules: New file. Portions copied from gnulib-tool.
45171         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
45172
45173 2007-09-08  Jim Meyering  <jim@meyering.net>
45174
45175         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
45176         * lib/fpending.h: Rename from __fpending.h.
45177         * lib/fpending.c: Rename from __fpending.c.
45178         Include "fpending.h", not "__fpending.h".
45179         * lib/__fpending.h, lib/__fpending.c: Remove files.
45180         * modules/fpending (Files): Reflect new file names.
45181         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
45182
45183 2007-09-08  Bruno Haible  <bruno@clisp.org>
45184
45185         * m4/inttypes-h.m4: Remove stub file.
45186
45187 2007-09-07  Simon Josefsson  <simon@josefsson.org>
45188
45189         * doc/headers/stdint.texi: Discuss #include_next issue.
45190
45191 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
45192
45193         * build-aux/bootstrap: Remove obsolete comment about wget --help.
45194
45195 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45196
45197         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
45198         in variable name.
45199
45200 2007-09-03  Jim Meyering  <jim@meyering.net>
45201
45202         New module: git-version-gen.
45203         * modules/git-version-gen: New file.
45204
45205         Import changes from coreutils for bootstrap script.
45206
45207         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
45208
45209         bootstrap: uses rsync to download the .po files
45210         * build-aux/bootstrap (po_download_command_format): New global.
45211         (download_po_files): Use rsync.
45212         (update_po_files): Don't remove .po files after download,
45213         so future rsync runs can take advantage of the copies.
45214
45215         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
45216
45217         Solve the unnecessary-.po-file-regeneration problem once and for all.
45218         * build-aux/bootstrap (download_po_files): New function, renamed from
45219         get_translations.  Now, downloads, but doesn't update LINGUAS.
45220         (update_po_files): New function.
45221
45222         bootstrap: Ignore more.
45223         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
45224         uniwidth to e.g., lib/.gitignore.
45225         (slurp): Handle the sys_stat_.h -> sys mapping, too.
45226
45227         * build-aux/bootstrap: New setting: vc_ignore.
45228         (insert_sorted_if_absent): Create $file if absent.
45229         Adapt to new, possibly empty, list: $vc_ignore.
45230
45231         bootstrap: generate more ignorable names
45232         * build-aux/bootstrap (slurp): When generating ignorable names,
45233         also map .sin to .sed, .gperf to .c, and .y to .c.
45234
45235 2007-09-03  Jim Meyering  <jim@meyering.net>
45236
45237         * build-aux/git-version-gen: New file, from coreutils.  For details, see
45238         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
45239
45240 2007-09-02  Bruno Haible  <bruno@clisp.org>
45241
45242         Fix mis-recognition of 'mcs' on QNX 6.
45243         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
45244         output contains the string "Mono".
45245         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
45246         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
45247
45248 2007-09-01  Bruno Haible  <bruno@clisp.org>
45249
45250         Fix collision between uniwidth/* and linebreak modules.
45251         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
45252         u32_width): Remove declarations.
45253         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
45254         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
45255         streq3, streq2, streq1, streq0): Remove functions.
45256         (STREQ): Remove macro.
45257         (is_cjk_encoding): Remove function.
45258         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
45259         (uc_width, u8_width, u16_width, u32_width): Remove functions.
45260         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
45261         * NEWS: Document the change.
45262
45263 2007-09-01  Bruno Haible  <bruno@clisp.org>
45264
45265         * lib/streq.h: Add double-inclusion guard.
45266
45267 2007-09-01  Karl Berry  <karl@gnu.org>
45268
45269         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
45270
45271 2007-08-28  Jim Meyering  <jim@meyering.net>
45272
45273         Rename mreadlink_with_size to areadlink_with_size.
45274         * NEWS: Document the change.
45275         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
45276         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
45277         * lib/mreadlink.h: Rename this to...
45278         * lib/areadlink.h: ...this.
45279         * modules/mreadlink-with-size: Rename this to...
45280         * modules/areadlink-with-size: ...this.
45281         * lib/canonicalize.c: Reflect the renaming.
45282         * modules/canonicalize: Likewise.
45283
45284 2007-08-26  Bruno Haible  <bruno@clisp.org>
45285
45286         * gnulib-tool (func_import): When deciding which files to remove,
45287         consider also dangling symbolic links.
45288         Reported by Eric Blake.
45289
45290 2007-08-26  Bruno Haible  <bruno@clisp.org>
45291
45292         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
45293
45294 2007-08-23  Simon Josefsson  <simon@josefsson.org>
45295
45296         * lib/readline.c: Don't include getline.h, the prototype is now
45297         found in stdio.h.
45298
45299 2007-08-23  Jim Meyering  <jim@meyering.net>
45300
45301         Getdelim touchup.
45302         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
45303         around the funlockfile call, since funlockfile never sets errno.
45304         Don't set errno upon failed realloc.
45305
45306 2007-08-22  Eric Blake  <ebb9@byu.net>
45307
45308         Getline touchups.
45309         * lib/getdelim.c (getdelim): Revert regression that required *n to
45310         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
45311         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
45312         getdelim, rather than whether implementation is missing.
45313         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
45314         * lib/stdio_.h (getline): Also declare if replacement is
45315         required.
45316         * doc/functions/getdelim.texi: New file.
45317         * doc/functions/getline.texi: Likewise.
45318         * doc/gnulib.texi (Function Substitutes): Add new files.
45319         Reported by Bruno Haible.
45320
45321 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
45322
45323         * users.txt: Add Guile.
45324
45325 2007-08-22  Eric Blake  <ebb9@byu.net>
45326
45327         * tests/test-getdelim.c (main): Use remove, not unlink.
45328         * tests/test-getline.c (main): Likewise.
45329
45330         Move getline and getdelim into stdio.h, per POSIX 200x.
45331         * modules/getline (Files): Remove getline.h.
45332         (Depends-on): Add stdio.
45333         (configure.ac): Add module indicator.
45334         * modules/getdelim (Files): Remove getdelim.h.
45335         (Depends-on): Add stdio.
45336         (configure.ac): Add module indicator.
45337         * modules/stdio (Makefile.am): Work with new indicators.
45338         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
45339         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
45340         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45341         * lib/getdelim.h: Delete.
45342         * lib/getline.h: Delete.
45343         * lib/stdio_.h (getdelim, getline): Declare.
45344         * modules/getdelim-tests: New module.
45345         * modules/getline-tests: Likewise.
45346         * tests/test-getdelim.c: New file.
45347         * tests/test-getline.c: Likewise.
45348         * NEWS: Document the change.
45349         * lib/getline.c: Update choice of header.
45350         * lib/csharpcomp.c: Likewise.
45351         * lib/getpass.c: Likewise.
45352         * lib/javacomp.c: Likewise.
45353         * lib/javaversion.c: Likewise.
45354         * lib/yesno.c: Likewise.
45355         * lib/getdelim.c: Likewise.
45356         (getdelim): Set errno on failure, and avoid memory leak.
45357
45358 2007-08-19  Bruno Haible  <bruno@clisp.org>
45359
45360         * modules/closein (Depends-on): Add freadahead.
45361         * lib/closein.c: Include freadahead.h.
45362         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
45363         is zero.
45364
45365 2007-08-19  Bruno Haible  <bruno@clisp.org>
45366
45367         * modules/freadahead-tests: New file.
45368         * tests/test-freadahead.sh: New file.
45369         * tests/test-freadahead.c: New file.
45370
45371         * modules/freadahead: New file.
45372         * lib/freadahead.h: New file.
45373         * lib/freadahead.c: New file.
45374         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
45375         fbufmode, fpurge, freadable, fwritable.
45376
45377 2007-08-19  Eric Blake  <ebb9@byu.net>
45378
45379         Test yesno in combination with closein.
45380         * lib/yesno.c (yesno): Document use of stdin.
45381         * modules/yesno-tests (Files): New module.
45382         * tests/test-yesno.c (main): New file.
45383         * tests/test-yesno.sh: Likewise.
45384
45385 2007-08-19  Bruno Haible  <bruno@clisp.org>
45386
45387         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
45388         * lib/fseeko.c (rpl_fseeko): Likewise.
45389         * lib/fseterr.c (fseterr): Likewise.
45390
45391 2007-08-19  Bruno Haible  <bruno@clisp.org>
45392
45393         * tests/test-lseek.c (main): Disable a test for BeOS.
45394         * doc/functions/lseek.texi: Document the BeOS bug.
45395
45396 2007-08-19  Bruno Haible  <bruno@clisp.org>
45397             Eric Blake  <ebb9@byu.net>
45398
45399         * lib/lseek.c: Include <sys/stat.h>.
45400         (rpl_lseek): Add workaround code also for Unix platforms.
45401         Needed for BeOS.
45402         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
45403         * doc/functions/lseek.texi: Document BeOS definiency.
45404
45405 2007-08-18  Bruno Haible  <bruno@clisp.org>
45406
45407         * modules/fstrcmp-tests: New file.
45408         * tests/test-fstrcmp.c: New file.
45409
45410 2007-08-18  Bruno Haible  <bruno@clisp.org>
45411
45412         * modules/fstrcmp: New file, from GNU gettext with modifications.
45413         * lib/fstrcmp.h: New file, from GNU gettext.
45414         * lib/fstrcmp.c: New file, from GNU gettext.
45415         * MODULES.html.sh (String handling): Add fstrcmp.
45416
45417 2007-08-18  Bruno Haible  <bruno@clisp.org>
45418
45419         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
45420         'bool'.
45421         (diag, compareseq): Remove const from the ctxt argument.
45422         (USE_HEURISTIC): Undefine at the end.
45423
45424 2007-08-18  Jim Meyering  <jim@meyering.net>
45425
45426         New file: lib/idcache.h
45427         * NEWS: Mention the addition.
45428         * modules/idcache (Files): Add lib/idcache.h
45429         * lib/idcache.c: Include "idcache.h".
45430         Don't include <sys/types.h>.
45431         Add a FIXME comment.
45432         Move file-scoped "static" declarations to the top.
45433         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
45434
45435 2007-08-17  Bruno Haible  <bruno@clisp.org>
45436         and Paul Eggert  <eggert@cs.ucla.edu>
45437
45438         * MODULES.html.sh: Add diffseq.
45439         * modules/diffseq: New file.
45440         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
45441         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
45442
45443 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45444
45445         Import changes from coreutils for bootstrap script.
45446
45447         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
45448
45449         * build-aux/bootstrap (slurp): Work even in environments where
45450         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
45451         current code does not slurp files whose names start with ".", and
45452         this looks like it might be a troublesome area.
45453
45454         2007-07-11  Jim Meyering  <jim@meyering.net>
45455
45456         If there's a GPL vN copyright comment, require that N == 3.
45457
45458         2007-07-08  Jim Meyering  <jim@meyering.net>
45459
45460         Run the coreutils-specific code only if tests/Makefile.am.in exists.
45461         * build-aux/bootstrap (mam_template): Move definition out of loop.
45462
45463         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
45464
45465         * build-aux/bootstrap (symlink_to_dir): Rename function from
45466         symlink_to_gnulib.  Add a directory parameter.  Update all
45467         callers.
45468         (cp_mark_as_generated): Also check for -- and link to -- files in
45469         gl/.
45470
45471         2007-07-08  Jim Meyering  <jim@meyering.net>
45472
45473         Adapt to deeper hierarchy in gnulib.
45474         * build-aux/bootstrap (symlink_to_dir): If the destination
45475         directory doesn't exist, create it. This is required at least for
45476         "lib/uniwidth/cjk.h".
45477
45478         2007-05-15  Jim Meyering  <jim@meyering.net>
45479
45480         * build-aux/bootstrap: Now that generated Makefile.am files
45481         are no longer under version control, they must be created at
45482         bootstrap time.
45483
45484 2007-08-14  Ben Pfaff  <blp@gnu.org>
45485
45486         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
45487
45488 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45489
45490         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
45491         given the changes below.
45492         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
45493         even on hosts that have padding bits beyond the supported 64.
45494
45495 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45496
45497         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
45498         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
45499         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
45500         depends on it.
45501         (xstrtol_error): Remove.
45502         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
45503         but with a different signature.
45504         (ATTRIBUTE_NORETURN, __attribute__): New macros.
45505         * lib/xstrtol-error.c: Include exitfail.h.
45506         (xstrtol_fatal): New function, with a different signature from the
45507         old xstrtol_error, so that the caller need not worry about passing
45508         in an exit status, or about storage management of the option argument.
45509         (xstrtol_error): Now a static function.  Redo signature to
45510         implement xstrtol_fatal.  Output the correct number of hyphens in
45511         front of the option so that the caller need not worry about
45512         storage management.
45513         (N_): New macro.
45514         (_): Remove; not used now.
45515         * modules/xstrtol: Depend on getopt.
45516         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
45517         of old STRTOL_FATAL_ERROR macro.
45518         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
45519         of test program.
45520         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
45521         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
45522
45523 2007-08-08  Eric Blake  <ebb9@byu.net>
45524
45525         * lib/xstrtol-error.c: Add missing include.
45526
45527         Move xstrtol messages into gnulib domain, when --pobase is used.
45528         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
45529         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
45530         * modules/xstrtol (Files): Distribute new file.
45531         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
45532         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
45533         * tests/test-xstrtol.c: ...into new file.
45534         * tests/test-xstrtoul.c: Also test xstrtoul.
45535         * tests/test-xstrtoimax.c: Also test xstrtoimax.
45536         * tests/test-xstrtoumax.c: Also test xstrtoumax.
45537         * tests/test-xstrtol.sh: Drive the tests.
45538         * tests/test-xstrtoimax.sh: Likewise.
45539         * tests/test-xstrtoumax.sh: Likewise.
45540         * modules/xstrtol-tests: New module.
45541         * modules/xstrtoimax-tests: Likewise.
45542         * modules/xstrtoumax-tests: Likewise.
45543
45544 2007-08-08  Jim Meyering  <jim@meyering.net>
45545
45546         New function: mfile_name_concat.
45547         * lib/filenamecat.c (mfile_name_concat): New function, just like
45548         file_name_concat, but return NULL upon failure rather than exiting
45549         with a diagnostic.
45550         * lib/filenamecat.h: Declare it.
45551
45552 2007-08-07  Bruno Haible  <bruno@clisp.org>
45553
45554         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
45555         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
45556         warning from gcc.
45557         Reported by Eric Blake.
45558
45559 2007-08-07  Simon Josefsson  <simon@josefsson.org>
45560
45561         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
45562         * modules/crypto/arcfour (License): Likewise.
45563         * modules/crypto/des-tests (License): Likewise.
45564         * modules/crypto/gc-arctwo-tests (License): Likewise.
45565         * modules/crypto/gc-des-tests (License): Likewise.
45566         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
45567         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
45568         * modules/crypto/gc-md2-tests (License): Likewise.
45569         * modules/crypto/gc-md4-tests (License): Likewise.
45570         * modules/crypto/gc-md5-tests (License): Likewise.
45571         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
45572         * modules/crypto/gc-rijndael-tests (License): Likewise.
45573         * modules/crypto/gc-sha1-tests (License): Likewise.
45574         * modules/crypto/gc-tests (License): Likewise.
45575         * modules/crypto/hmac-md5 (License): Likewise.
45576         * modules/crypto/hmac-sha1 (License): Likewise.
45577         * modules/crypto/md2-tests (License): Likewise.
45578         * modules/crypto/md4-tests (License): Likewise.
45579         * modules/crypto/md5 (License): Likewise.
45580         * modules/crypto/rijndael (License): Likewise.
45581         * modules/crypto/sha1 (License): Likewise.
45582         * modules/memxor (License): Likewise.
45583
45584 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
45585         and Bruno Haible  <bruno@clisp.org>
45586
45587         * NEWS: Describe interface changes to human, xstrtol.
45588         * lib/human.h: Include <xstrtol.h>.
45589         (human_options): Return enum strtol_error, not int.  Remove
45590         bool arg; take int * instead.
45591         * lib/human.c: Don't include "gettext.h".
45592         (_): Remove; no longer used.
45593         Don't include <xstrtol.h>, since human.h does it.
45594         (human_options): Adjust to abovementioned interface changes.
45595         Do not report error to stderr; that's now the caller's
45596         responsibility.
45597         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
45598         interface change.
45599         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
45600         Str, Argument_type_string.  All uses changed.  Put " argument"
45601         in diagnostics to make them clearer.  Change wording of suffix
45602         message for clarity.
45603         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
45604         Argument_type_string.
45605         (STRTOL_FATAL_WARN): Remove; no longer used.
45606         * modules/human (Depends-on): Remove gettext-h.
45607
45608 2007-08-06  Simon Josefsson  <simon@josefsson.org>
45609
45610         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
45611
45612 2007-07-31  Bruno Haible  <bruno@clisp.org>
45613
45614         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
45615         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
45616         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
45617
45618 2007-07-31  Bruno Haible  <bruno@clisp.org>
45619
45620         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
45621         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
45622
45623 2007-07-30  Bruno Haible  <bruno@clisp.org>
45624
45625         * modules/base64 (License): Use the synonymous term "LGPLv2+".
45626         * modules/c-ctype (License): Likewise.
45627         * modules/c-strcase (License): Likewise.
45628         * modules/check-version (License): Likewise.
45629         * modules/iconv (License): Likewise.
45630         * modules/iconv_open (License): Likewise.
45631         * modules/read-file (License): Likewise.
45632         * modules/striconv (License): Likewise.
45633         * modules/strverscmp (License): Likewise.
45634         * modules/vasprintf (License): Likewise.
45635         * modules/crypto/des (License): Likewise.
45636         * modules/crypto/gc (License): Likewise.
45637         * modules/crypto/gc-arcfour (License): Likewise.
45638         * modules/crypto/gc-arctwo (License): Likewise.
45639         * modules/crypto/gc-des (License): Likewise.
45640         * modules/crypto/gc-hmac-md5 (License): Likewise.
45641         * modules/crypto/gc-hmac-sha1 (License): Likewise.
45642         * modules/crypto/gc-md2 (License): Likewise.
45643         * modules/crypto/gc-md4 (License): Likewise.
45644         * modules/crypto/gc-md5 (License): Likewise.
45645         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
45646         * modules/crypto/gc-random (License): Likewise.
45647         * modules/crypto/gc-rijndael (License): Likewise.
45648         * modules/crypto/gc-sha1 (License): Likewise.
45649         * modules/crypto/md2 (License): Likewise.
45650         * modules/crypto/md4 (License): Likewise.
45651
45652 2007-07-30  Jim Meyering  <jim@meyering.net>
45653
45654         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
45655         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
45656         it has valid stat data.  This bug would cause du not to count the
45657         sizes of inaccessible directories.
45658         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
45659         in <http://bugzilla.redhat.com/250077>.
45660
45661 2007-07-25  Peter O'Gorman  <peter@pogma.com>
45662             Bruno Haible  <bruno@clisp.org>
45663
45664         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
45665         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
45666         #include_next, gives a diagnostic about it, but reports no error in
45667         the exit code.
45668         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
45669
45670 2007-07-24  Ben Pfaff  <blp@gnu.org>
45671
45672         Improve name: "count-one-bits" is better than "popcount".
45673         * MODULES.html.sh: Update name.
45674         * lib/popcount.h: Renamed lib/count-one-bits.h.
45675         (popcount): Renamed count_one_bits.
45676         (popcountl): Renamed count_one_bits_l.
45677         (popcountll): Renamed count_one_bits_ll.
45678         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
45679         * modules/popcount: Renamed module/count-one-bits.
45680         * modules/popcount-tests: Renamed module/count-one-bits-tests.
45681         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
45682
45683 2007-07-23  Ben Pfaff  <blp@gnu.org>
45684
45685         * lib/popcount.h (popcount32): Reduce size of constants, to allow
45686         better code generation, and add U to large constants to avoid
45687         warnings, in non-GCC case.
45688         Suggested by Bruno Haible.
45689
45690 2007-07-23  Ben Pfaff  <blp@gnu.org>
45691
45692         * lib/popcount.h: Use verify_true instead of if...abort.
45693         * modules/popcount: Depend on verify module.
45694         Suggested by Jim Meyering.
45695
45696 2007-07-23  Bruno Haible  <bruno@clisp.org>
45697
45698         * gnulib-tool (func_import): Create a .cvsignore file also when the
45699         directory is not yet in CVS but the toplevel directory is. When
45700         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
45701         Reported by Karl Berry.
45702
45703 2007-07-22  Ben Pfaff  <blp@gnu.org>
45704
45705         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
45706         case.
45707         Suggested by Eric Blake.
45708
45709 2007-07-22  Ben Pfaff  <blp@gnu.org>
45710
45711         New module: popcount.
45712         * MODULES.html.sh: Add popcount.
45713         * modules/popcount: New file.
45714         * modules/popcount-tests: New file.
45715         * tests/test-popcount.c: New file.
45716         * lib/popcount.h: New file.
45717         * m4/popcount.m4: New file.
45718
45719 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45720
45721         * build-aux/announce-gen: Update to GPLv3.
45722
45723         * build-aux/config.guess: Update from config.
45724
45725 2007-07-21  Bruno Haible  <bruno@clisp.org>
45726
45727         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
45728         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
45729
45730 2007-07-20  Jim Meyering  <jim@meyering.net>
45731
45732         * check-module: Diagnose a self-dependency.
45733
45734 2007-07-19  Bruno Haible  <bruno@clisp.org>
45735
45736         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
45737         empty.
45738         Reported by Eric Blake.
45739
45740 2007-07-18  Bruno Haible  <bruno@clisp.org>
45741
45742         * gnulib-tool: New options --po-base, --po-domain.
45743         (func_usage): Document them.
45744         (pobase, po_domain): New variables.
45745         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
45746         DEFAULT_TEXT_DOMAIN.
45747         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
45748         (func_import): Consider pobase and po_domain. Create a po/ directory.
45749         (func_create_testdir): Set pobase and po_domain to empty.
45750         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
45751         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
45752
45753 2007-07-18  Bruno Haible  <bruno@clisp.org>
45754
45755         * gnulib-tool (func_get_automake_snippet): Synthesize also an
45756         EXTRA_DIST augmentation for files in build-aux/.
45757
45758 2007-07-16  Bruno Haible  <bruno@clisp.org>
45759
45760         * modules/lseek (License): Use the synonymous term "LGPLv2+".
45761         * modules/getdelim (License): Likewise.
45762
45763 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45764
45765         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
45766         * modules/d-type (License): Likewise.
45767         * modules/extensions (License): Likewise.
45768         * modules/fnmatch (License): Likewise.
45769         * modules/fseeko (License): Likewise.
45770         * modules/getaddrinfo (License): Likewise.
45771         * modules/getline (License): Likewise.
45772         * modules/getlogin_r (License): Likewise.
45773         * modules/getpass (License): Likewise.
45774         * modules/gettimeofday (License): Likewise.
45775         * modules/glob (License): Likewise.
45776         * modules/inet_ntop (License): Likewise.
45777         * modules/malloc (License): Likewise.
45778         * modules/malloca (License): Likewise.
45779         * modules/memmem (License): Likewise.
45780         * modules/mempcpy (License): Likewise.
45781         * modules/memset (License): Likewise.
45782         * modules/minmax (License): Likewise.
45783         * modules/mktime (License): Likewise.
45784         * modules/netinet_in (License): Likewise.
45785         * modules/pathmax (License): Likewise.
45786         * modules/poll (License): Likewise.
45787         * modules/regex (License): Likewise.
45788         * modules/snprintf (License): Likewise.
45789         * modules/stdbool (License): Likewise.
45790         * modules/stdint (License): Likewise.
45791         * modules/stdio (License): Likewise.
45792         * modules/strcase (License): Likewise.
45793         * modules/strcasestr (License): Likewise.
45794         * modules/strdup (License): Likewise.
45795         * modules/string (License): Likewise.
45796         * modules/strndup (License): Likewise.
45797         * modules/strnlen (License): Likewise.
45798         * modules/strpbrk (License): Likewise.
45799         * modules/strptime (License): Likewise.
45800         * modules/strsep (License): Likewise.
45801         * modules/sys_select (License): Likewise.
45802         * modules/sys_socket (License): Likewise.
45803         * modules/sys_stat (License): Likewise.
45804         * modules/sys_time (License): Likewise.
45805         * modules/time (License): Likewise.
45806         * modules/time_r (License): Likewise.
45807         * modules/timegm (License): Likewise.
45808         * modules/unistd (License): Likewise.
45809         * modules/vsnprintf (License): Likewise.
45810         * modules/wctype (License): Likewise.
45811
45812 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45813
45814         * modules/argz (License): LGPLv2+.
45815
45816 2007-07-15  Karl Berry  <karl@gnu.org>
45817
45818         * doc/gnulib.texi: revise node structure per new fdl.texi.
45819
45820 2007-07-14  Bruno Haible  <bruno@clisp.org>
45821
45822         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
45823         the output file.
45824         * lib/uniname/uninames.h: Regenerated.
45825
45826 2007-07-14  Karl Berry  <karl@gnu.org>
45827
45828         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
45829         omitting sectioning and index commands.
45830
45831 2007-07-13  Bruno Haible  <bruno@clisp.org>
45832
45833         New gnulib-tool option --more-symlinks.
45834         * gnulib-tool (func_usage): Document --more-symlinks.
45835         (do_copyrights): New variable.
45836         Recognize option --more-symlinks.
45837         (func_import): Don't add a copyright notice transform to
45838         sed_transform_lib_file if do_copyrights is empty.
45839
45840 2007-07-13  Bruno Haible  <bruno@clisp.org>
45841
45842         * lib/vasnprintf.c (decimal_point_char): Define also if
45843         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
45844         && !NEED_PRINTF_DIRECTIVE_A.
45845         Reported by Clemens Koller <clemens.koller@anagramm.de> via
45846         Gary V. Vaughan <gary@gnu.org>.
45847
45848 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
45849
45850         * lib/inttypes_.h: Undo previous change, since it was fixed
45851         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
45852
45853 2007-07-13  Bruno Haible  <bruno@clisp.org>
45854
45855         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
45856         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
45857
45858 2007-07-13  Jim Meyering  <jim@meyering.net>
45859
45860         df: Don't fail for Tru64's "file-on-file mount".
45861         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
45862         so we fall through and use statfs instead.  Details here:
45863         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
45864         Reported by Albert Chin.
45865
45866 2007-07-13  Bruno Haible  <bruno@clisp.org>
45867
45868         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
45869         * modules/configmake (License): Likewise.
45870         * modules/gettext (License): Likewise.
45871         * modules/gettext-h (License): Likewise.
45872         * modules/include_next (License): Likewise.
45873         * modules/link-warning (License): Likewise.
45874         * modules/localcharset (License): Likewise.
45875         * modules/localename (License): Likewise.
45876         * modules/lock (License): Likewise.
45877         * modules/relocatable-lib-lgpl (License): Likewise.
45878         * modules/size_max (License): Likewise.
45879         * modules/vasnprintf (License): Likewise.
45880         * modules/wchar (License): Likewise.
45881         * modules/xsize (License): Likewise.
45882
45883 2007-07-13  Bruno Haible  <bruno@clisp.org>
45884
45885         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
45886         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
45887
45888 2007-07-12  Bruno Haible  <bruno@clisp.org>
45889
45890         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
45891         in the modules files.
45892
45893 2007-07-11  Karl Berry  <karl@gnu.org>
45894
45895         * MODULES.html.sh (func_module): use
45896          sed -e '\|^'"${includefile}"'$|d'
45897          instead of /.../d, to avoid errors on $includefile's containing /.
45898
45899 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
45900
45901         * gnulib-tool (func_import): Avoid duplication of --avoid
45902         statements
45903         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
45904         names to `_' in variable names.
45905
45906 2007-07-10  Eric Blake  <ebb9@byu.net>
45907
45908         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
45909         * NEWS: Document this change.
45910
45911 2007-07-08  Bruno Haible  <bruno@clisp.org>
45912
45913         Update to Unicode 5.0.
45914         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
45915         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
45916         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
45917         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
45918         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
45919         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
45920         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
45921         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
45922         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
45923         U+10A3F, U+1D242..U+1D244.
45924         (nonspacing_table_ind): Update.
45925         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
45926         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
45927
45928 2007-07-08  Bruno Haible  <bruno@clisp.org>
45929
45930         Update to Unicode 5.0.
45931         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
45932         code transform. Extend the name index field of unicode_name_to_code and
45933         unicode_code_to_name from 16 to 24 bits.
45934         * lib/uniname/uniname.c (unicode_character_name,
45935         unicode_name_character): Add the range 0x12xxx to the code transform.
45936         * lib/uniname/uninames.h: Regenerated.
45937         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
45938
45939 2007-07-07  Bruno Haible  <bruno@clisp.org>
45940
45941         * modules/wcwidth-tests: New file.
45942         * tests/test-wcwidth.c: New file.
45943
45944         Work around MacOS X wcwidth() bug.
45945         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
45946         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
45947         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
45948         original wcwidth in non-UTF-8 locales.
45949         * modules/wcwidth (Depends-on): Add localcharset, streq,
45950         uniwidth/width.
45951         * doc/functions/wcwidth.texi: Update.
45952
45953 2007-07-07  Bruno Haible  <bruno@clisp.org>
45954
45955         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
45956         (wcwidth): New declaration.
45957         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
45958         macros.
45959         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
45960         here. Prepare for creating <wchar.h> unconditionally.
45961         * modules/wchar (Depends-on): Add link-warning.
45962         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
45963         REPLACE_WCWIDTH, and GL_LINK_WARNING.
45964         * lib/wcwidth.h: Remove file.
45965         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
45966         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
45967         * modules/wcwidth (Files): Remove lib/wcwidth.h.
45968         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
45969         (Include): Replace wcwidth.h with <wchar.h>.
45970         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
45971         * lib/mbchar.h: Don't include wcwidth.h.
45972         * lib/mbswidth.c: Likewise.
45973         * NEWS: Mention the change.
45974
45975 2007-07-07  Bruno Haible  <bruno@clisp.org>
45976
45977         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
45978         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
45979         definition with an external declaration.
45980         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
45981         defined as a function. Remove AC_C_INLINE requirement.
45982         * modules/wcwidth (Files): Add lib/wcwidth.c.
45983         (Makefile.am): Remove redundant statement.
45984
45985 2007-07-07  Bruno Haible  <bruno@clisp.org>
45986
45987         * MODULES.html.sh (Unicode string functions): Add the new modules.
45988
45989         * tests/uniwidth/test-u32-strwidth.c: New file.
45990         * modules/uniwidth/u32-strwidth-tests: New file.
45991
45992         * lib/uniwidth/u32-strwidth.c: New file.
45993         * modules/uniwidth/u32-strwidth: New file.
45994
45995         * tests/uniwidth/test-u16-strwidth.c: New file.
45996         * modules/uniwidth/u16-strwidth-tests: New file.
45997
45998         * lib/uniwidth/u16-strwidth.c: New file.
45999         * modules/uniwidth/u16-strwidth: New file.
46000
46001         * tests/uniwidth/test-u8-strwidth.c: New file.
46002         * modules/uniwidth/u8-strwidth-tests: New file.
46003
46004         * lib/uniwidth/u8-strwidth.c: New file.
46005         * modules/uniwidth/u8-strwidth: New file.
46006
46007         * tests/uniwidth/test-u32-width.c: New file.
46008         * modules/uniwidth/u32-width-tests: New file.
46009
46010         * lib/uniwidth/u32-width.c: New file.
46011         * modules/uniwidth/u32-width: New file.
46012
46013         * tests/uniwidth/test-u16-width.c: New file.
46014         * modules/uniwidth/u16-width-tests: New file.
46015
46016         * lib/uniwidth/u16-width.c: New file.
46017         * modules/uniwidth/u16-width: New file.
46018
46019         * tests/uniwidth/test-u8-width.c: New file.
46020         * modules/uniwidth/u8-width-tests: New file.
46021
46022         * lib/uniwidth/u8-width.c: New file.
46023         * modules/uniwidth/u8-width: New file.
46024
46025         * tests/uniwidth/test-uc_width.c: New file.
46026         * modules/uniwidth/width-tests: New file.
46027
46028         * lib/uniwidth/width.c: New file, from GNU libiconv.
46029         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
46030         * modules/uniwidth/width: New file.
46031
46032         * lib/uniwidth.h: New file, from GNU libiconv.
46033         * modules/uniwidth/base: New file.
46034
46035 2007-07-07  Bruno Haible  <bruno@clisp.org>
46036
46037         * lib/uniname.h: New file, from GNU gettext.
46038         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
46039         * lib/uniname/uninames.h: New file, from GNU gettext.
46040         * lib/uniname/uniname.c: New file, from GNU gettext.
46041         * tests/uniname/test-uninames.sh: New file.
46042         * tests/uniname/test-uninames.c: New file, from GNU gettext.
46043         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
46044         * modules/uniname/base: New file.
46045         * modules/uniname/uniname: New file.
46046         * modules/uniname/uniname-tests: New file.
46047         * MODULES.html.sh (Unicode string functions): Add the new modules.
46048
46049 2007-07-06  Bruno Haible  <bruno@clisp.org>
46050
46051         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
46052
46053 2007-07-06  Bruno Haible  <bruno@clisp.org>
46054
46055         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
46056         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
46057         includes <cygwin/sys_time.h> which includes <sys/select.h> which
46058         include <sys/time.h>.
46059         Reported by Eric Blake.
46060
46061 2007-07-06  Eric Blake  <ebb9@byu.net>
46062
46063         Fix testing canonicalize on cygwin.
46064         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
46065         Revert patch from 2007-06-19.
46066         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
46067         canonicalize module is also in use.
46068         * tests/test-canonicalize.c: New file.
46069         * tests/test-canonicalize.sh: Likewise.
46070         * modules/canonicalize-tests: Likewise.
46071
46072 2007-07-06  Jim Meyering  <jim@meyering.net>
46073
46074         * lib/getugroups.c (getugroups): Detect getgrent failure.
46075         Adjust comment to reflect reality: this function may return -1.
46076
46077 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
46078
46079         * build-aux/bootstrap (TP_URL,get_translations): Update to use
46080         the new TP address.
46081         (usage): Fix typo
46082         (gnulib_mk): New variable.
46083
46084 2007-07-05  Jim Meyering  <jim@meyering.net>
46085
46086         Don't let endgrent clobber errno, no matter how improbable.
46087         * lib/getugroups.c (getugroups): Save and restore errno around
46088         endgrent call.
46089
46090         Close the group DB even when failing with 2^31 or more members.
46091         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
46092
46093 2007-07-04  Jim Meyering  <jim@meyering.net>
46094
46095         * lib/getugroups.h: New file.
46096         * lib/getugroups.c: Include "getugroups.h".
46097         Remove uses of "register" keyword.
46098         Move local variable, "cp", down into scope where used.
46099         Give "username" parameter the "const" attribute.
46100         * modules/getugroups (Files): Add lib/getugroups.h
46101
46102 2007-07-04  Karl Berry  <karl@gnu.org>
46103
46104         * MODULES.html.sh (func_all_modules): Complete rename of
46105         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
46106
46107 2007-07-02  Bruno Haible  <bruno@clisp.org>
46108
46109         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
46110         mode, when inttypes.h comes from gnulib.
46111         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46112
46113 2007-07-02  Simon Josefsson  <simon@josefsson.org>
46114
46115         * NEWS: Mention lgpl module name change.
46116
46117         * modules/lgpl-2.1: Renamed from lgpl.
46118
46119         * NEWS: Mention gpl module name change.
46120
46121         * modules/gpl-3.0: New file, based on gpl-2.0.
46122
46123         * modules/gpl-2.0: Renamed from gpl.
46124
46125         * modules/gpl: Fix filename, doc/gpl.texi is now found at
46126         doc/gpl-2.0.texi.
46127
46128 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46129
46130         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
46131         #define __STDC_LIMIT_MACROS temporarily while including
46132         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
46133         Problem reported by Joel E. Denny in
46134         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
46135
46136 2007-07-01  Bruno Haible  <bruno@clisp.org>
46137
46138         * lib/unistdio.h: New file.
46139         * lib/unistdio/u-asnprintf.h: New file.
46140         * lib/unistdio/u-asprintf.h: New file.
46141         * lib/unistdio/u-printf-args.c: New file.
46142         * lib/unistdio/u-printf-args.h: New file.
46143         * lib/unistdio/u-printf-parse.h: New file.
46144         * lib/unistdio/u-snprintf.h: New file.
46145         * lib/unistdio/u-sprintf.h: New file.
46146         * lib/unistdio/u-vasprintf.h: New file.
46147         * lib/unistdio/u-vsnprintf.h: New file.
46148         * lib/unistdio/u-vsprintf.h: New file.
46149         * lib/unistdio/ulc-asnprintf.c: New file.
46150         * lib/unistdio/ulc-asprintf.c: New file.
46151         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
46152         * lib/unistdio/ulc-printf-parse.c: New file.
46153         * lib/unistdio/ulc-snprintf.c: New file.
46154         * lib/unistdio/ulc-sprintf.c: New file.
46155         * lib/unistdio/ulc-vasnprintf.c: New file.
46156         * lib/unistdio/ulc-vasprintf.c: New file.
46157         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
46158         * lib/unistdio/ulc-vsnprintf.c: New file.
46159         * lib/unistdio/ulc-vsprintf.c: New file.
46160         * lib/unistdio/u8-asnprintf.c: New file.
46161         * lib/unistdio/u8-asprintf.c: New file.
46162         * lib/unistdio/u8-printf-parse.c: New file.
46163         * lib/unistdio/u8-snprintf.c: New file.
46164         * lib/unistdio/u8-sprintf.c: New file.
46165         * lib/unistdio/u8-vasnprintf.c: New file.
46166         * lib/unistdio/u8-vasprintf.c: New file.
46167         * lib/unistdio/u8-vsnprintf.c: New file.
46168         * lib/unistdio/u8-vsprintf.c: New file.
46169         * lib/unistdio/u8-u8-asnprintf.c: New file.
46170         * lib/unistdio/u8-u8-asprintf.c: New file.
46171         * lib/unistdio/u8-u8-snprintf.c: New file.
46172         * lib/unistdio/u8-u8-sprintf.c: New file.
46173         * lib/unistdio/u8-u8-vasnprintf.c: New file.
46174         * lib/unistdio/u8-u8-vasprintf.c: New file.
46175         * lib/unistdio/u8-u8-vsnprintf.c: New file.
46176         * lib/unistdio/u8-u8-vsprintf.c: New file.
46177         * lib/unistdio/u16-asnprintf.c: New file.
46178         * lib/unistdio/u16-asprintf.c: New file.
46179         * lib/unistdio/u16-printf-parse.c: New file.
46180         * lib/unistdio/u16-snprintf.c: New file.
46181         * lib/unistdio/u16-sprintf.c: New file.
46182         * lib/unistdio/u16-vasnprintf.c: New file.
46183         * lib/unistdio/u16-vasprintf.c: New file.
46184         * lib/unistdio/u16-vsnprintf.c: New file.
46185         * lib/unistdio/u16-vsprintf.c: New file.
46186         * lib/unistdio/u16-u16-asnprintf.c: New file.
46187         * lib/unistdio/u16-u16-asprintf.c: New file.
46188         * lib/unistdio/u16-u16-snprintf.c: New file.
46189         * lib/unistdio/u16-u16-sprintf.c: New file.
46190         * lib/unistdio/u16-u16-vasnprintf.c: New file.
46191         * lib/unistdio/u16-u16-vasprintf.c: New file.
46192         * lib/unistdio/u16-u16-vsnprintf.c: New file.
46193         * lib/unistdio/u16-u16-vsprintf.c: New file.
46194         * lib/unistdio/u32-asnprintf.c: New file.
46195         * lib/unistdio/u32-asprintf.c: New file.
46196         * lib/unistdio/u32-printf-parse.c: New file.
46197         * lib/unistdio/u32-snprintf.c: New file.
46198         * lib/unistdio/u32-sprintf.c: New file.
46199         * lib/unistdio/u32-vasnprintf.c: New file.
46200         * lib/unistdio/u32-vasprintf.c: New file.
46201         * lib/unistdio/u32-vsnprintf.c: New file.
46202         * lib/unistdio/u32-vsprintf.c: New file.
46203         * lib/unistdio/u32-u32-asnprintf.c: New file.
46204         * lib/unistdio/u32-u32-asprintf.c: New file.
46205         * lib/unistdio/u32-u32-snprintf.c: New file.
46206         * lib/unistdio/u32-u32-sprintf.c: New file.
46207         * lib/unistdio/u32-u32-vasnprintf.c: New file.
46208         * lib/unistdio/u32-u32-vasprintf.c: New file.
46209         * lib/unistdio/u32-u32-vsnprintf.c: New file.
46210         * lib/unistdio/u32-u32-vsprintf.c: New file.
46211         * tests/unistdio/test-ulc-asnprintf1.c: New file.
46212         * tests/unistdio/test-ulc-asnprintf1.h: New file.
46213         * tests/unistdio/test-ulc-printf1.h: New file.
46214         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
46215         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
46216         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
46217         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
46218         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
46219         * tests/unistdio/test-ulc-vasprintf1.c: New file.
46220         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
46221         * tests/unistdio/test-ulc-vsprintf1.c: New file.
46222         * tests/unistdio/test-u8-asnprintf1.c: New file.
46223         * tests/unistdio/test-u8-asnprintf1.h: New file.
46224         * tests/unistdio/test-u8-printf1.h: New file.
46225         * tests/unistdio/test-u8-vasnprintf1.c: New file.
46226         * tests/unistdio/test-u8-vasnprintf2.c: New file.
46227         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
46228         * tests/unistdio/test-u8-vasnprintf3.c: New file.
46229         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
46230         * tests/unistdio/test-u8-vasprintf1.c: New file.
46231         * tests/unistdio/test-u8-vsnprintf1.c: New file.
46232         * tests/unistdio/test-u8-vsprintf1.c: New file.
46233         * tests/unistdio/test-u16-asnprintf1.c: New file.
46234         * tests/unistdio/test-u16-asnprintf1.h: New file.
46235         * tests/unistdio/test-u16-printf1.h: New file.
46236         * tests/unistdio/test-u16-vasnprintf1.c: New file.
46237         * tests/unistdio/test-u16-vasnprintf2.c: New file.
46238         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
46239         * tests/unistdio/test-u16-vasnprintf3.c: New file.
46240         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
46241         * tests/unistdio/test-u16-vasprintf1.c: New file.
46242         * tests/unistdio/test-u16-vsnprintf1.c: New file.
46243         * tests/unistdio/test-u16-vsprintf1.c: New file.
46244         * tests/unistdio/test-u32-asnprintf1.c: New file.
46245         * tests/unistdio/test-u32-asnprintf1.h: New file.
46246         * tests/unistdio/test-u32-printf1.h: New file.
46247         * tests/unistdio/test-u32-vasnprintf1.c: New file.
46248         * tests/unistdio/test-u32-vasnprintf2.c: New file.
46249         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
46250         * tests/unistdio/test-u32-vasnprintf3.c: New file.
46251         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
46252         * tests/unistdio/test-u32-vasprintf1.c: New file.
46253         * tests/unistdio/test-u32-vsnprintf1.c: New file.
46254         * tests/unistdio/test-u32-vsprintf1.c: New file.
46255         * modules/unistdio/base: New file.
46256         * modules/unistdio/u-printf-args: New file.
46257         * modules/unistdio/ulc-asnprintf: New file.
46258         * modules/unistdio/ulc-asprintf: New file.
46259         * modules/unistdio/ulc-fprintf: New file.
46260         * modules/unistdio/ulc-printf-parse: New file.
46261         * modules/unistdio/ulc-snprintf: New file.
46262         * modules/unistdio/ulc-sprintf: New file.
46263         * modules/unistdio/ulc-vasnprintf: New file.
46264         * modules/unistdio/ulc-vasprintf: New file.
46265         * modules/unistdio/ulc-vfprintf: New file.
46266         * modules/unistdio/ulc-vsnprintf: New file.
46267         * modules/unistdio/ulc-vsprintf: New file.
46268         * modules/unistdio/u8-asnprintf: New file.
46269         * modules/unistdio/u8-asprintf: New file.
46270         * modules/unistdio/u8-printf-parse: New file.
46271         * modules/unistdio/u8-snprintf: New file.
46272         * modules/unistdio/u8-sprintf: New file.
46273         * modules/unistdio/u8-vasnprintf: New file.
46274         * modules/unistdio/u8-vasprintf: New file.
46275         * modules/unistdio/u8-vsnprintf: New file.
46276         * modules/unistdio/u8-vsprintf: New file.
46277         * modules/unistdio/u8-u8-asnprintf: New file.
46278         * modules/unistdio/u8-u8-asprintf: New file.
46279         * modules/unistdio/u8-u8-snprintf: New file.
46280         * modules/unistdio/u8-u8-sprintf: New file.
46281         * modules/unistdio/u8-u8-vasnprintf: New file.
46282         * modules/unistdio/u8-u8-vasprintf: New file.
46283         * modules/unistdio/u8-u8-vsnprintf: New file.
46284         * modules/unistdio/u8-u8-vsprintf: New file.
46285         * modules/unistdio/u16-asnprintf: New file.
46286         * modules/unistdio/u16-asprintf: New file.
46287         * modules/unistdio/u16-printf-parse: New file.
46288         * modules/unistdio/u16-snprintf: New file.
46289         * modules/unistdio/u16-sprintf: New file.
46290         * modules/unistdio/u16-vasnprintf: New file.
46291         * modules/unistdio/u16-vasprintf: New file.
46292         * modules/unistdio/u16-vsnprintf: New file.
46293         * modules/unistdio/u16-vsprintf: New file.
46294         * modules/unistdio/u16-u16-asnprintf: New file.
46295         * modules/unistdio/u16-u16-asprintf: New file.
46296         * modules/unistdio/u16-u16-snprintf: New file.
46297         * modules/unistdio/u16-u16-sprintf: New file.
46298         * modules/unistdio/u16-u16-vasnprintf: New file.
46299         * modules/unistdio/u16-u16-vasprintf: New file.
46300         * modules/unistdio/u16-u16-vsnprintf: New file.
46301         * modules/unistdio/u16-u16-vsprintf: New file.
46302         * modules/unistdio/u32-asnprintf: New file.
46303         * modules/unistdio/u32-asprintf: New file.
46304         * modules/unistdio/u32-printf-parse: New file.
46305         * modules/unistdio/u32-snprintf: New file.
46306         * modules/unistdio/u32-sprintf: New file.
46307         * modules/unistdio/u32-vasnprintf: New file.
46308         * modules/unistdio/u32-vasprintf: New file.
46309         * modules/unistdio/u32-vsnprintf: New file.
46310         * modules/unistdio/u32-vsprintf: New file.
46311         * modules/unistdio/u32-u32-asnprintf: New file.
46312         * modules/unistdio/u32-u32-asprintf: New file.
46313         * modules/unistdio/u32-u32-snprintf: New file.
46314         * modules/unistdio/u32-u32-sprintf: New file.
46315         * modules/unistdio/u32-u32-vasnprintf: New file.
46316         * modules/unistdio/u32-u32-vasprintf: New file.
46317         * modules/unistdio/u32-u32-vsnprintf: New file.
46318         * modules/unistdio/u32-u32-vsprintf: New file.
46319         * modules/unistdio/ulc-asnprintf-tests: New file.
46320         * modules/unistdio/ulc-vasnprintf-tests: New file.
46321         * modules/unistdio/ulc-vasprintf-tests: New file.
46322         * modules/unistdio/ulc-vsnprintf-tests: New file.
46323         * modules/unistdio/ulc-vsprintf-tests: New file.
46324         * modules/unistdio/u8-asnprintf-tests: New file.
46325         * modules/unistdio/u8-vasnprintf-tests: New file.
46326         * modules/unistdio/u8-vasprintf-tests: New file.
46327         * modules/unistdio/u8-vsnprintf-tests: New file.
46328         * modules/unistdio/u8-vsprintf-tests: New file.
46329         * modules/unistdio/u16-asnprintf-tests: New file.
46330         * modules/unistdio/u16-vasnprintf-tests: New file.
46331         * modules/unistdio/u16-vasprintf-tests: New file.
46332         * modules/unistdio/u16-vsnprintf-tests: New file.
46333         * modules/unistdio/u16-vsprintf-tests: New file.
46334         * modules/unistdio/u32-asnprintf-tests: New file.
46335         * modules/unistdio/u32-vasnprintf-tests: New file.
46336         * modules/unistdio/u32-vasprintf-tests: New file.
46337         * modules/unistdio/u32-vsnprintf-tests: New file.
46338         * modules/unistdio/u32-vsprintf-tests: New file.
46339         * MODULES.html.sh (Unicode string functions): Add the new modules.
46340
46341 2007-07-01  Bruno Haible  <bruno@clisp.org>
46342
46343         * lib/sprintf.c (sprintf): Limit the available length estimation,
46344         to avoid address wraparound.
46345         * lib/vsprintf.c (vsprintf): Likewise.
46346         * modules/sprintf-posix (Dependencies): Add stdint.
46347         * modules/vsprintf-posix (Dependencies): Likewise.
46348
46349 2007-07-01  Bruno Haible  <bruno@clisp.org>
46350
46351         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
46352         Windows PATH as well. Conservative double-quoting. Comments.
46353
46354 2007-07-01  Bruno Haible  <bruno@clisp.org>
46355             Eric Blake  <ebb9@byu.net>
46356             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46357
46358         * gnulib-tool (self_abspathname): Fix algorithm to cope with
46359         empty components in $PATH, denoting '.'.
46360
46361 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46362
46363         * gnulib-tool: Fix indentation.
46364         (func_create_megatestdir): Likewise.
46365         Report by Bruno Haible.
46366
46367 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46368
46369         Sync from Automake.
46370         * build-aux/gnupload: Fix shell portability issues with for loops.
46371         Report by Karl Berry.
46372
46373 2007-06-29  Simon Josefsson  <simon@josefsson.org>
46374
46375         * build-aux/maint.mk (POURL): Use translationproject.org.
46376
46377 2007-06-27  Simon Josefsson  <simon@josefsson.org>
46378             Bruno Haible  <bruno@clisp.org>
46379
46380         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
46381         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
46382         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
46383         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
46384         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
46385
46386 2007-06-27  Bruno Haible  <bruno@clisp.org>
46387
46388         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
46389         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
46390
46391 2007-06-26  Karl Berry  <karl@gnu.org>
46392
46393         * MODULES.html.sh: remove xreadlink-with-size.
46394
46395 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
46396
46397         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
46398         method that I hope also handles the double-include problem noted
46399         by Bruno Haible in
46400         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
46401
46402 2007-06-23  Bruno Haible  <bruno@clisp.org>
46403
46404         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46405         Don't let the 'mostlyclean' target fail if the last subdirectory could
46406         not be removed.
46407         Reported by Karl Berry.
46408
46409 2007-06-23  Bruno Haible  <bruno@clisp.org>
46410
46411         * gnulib-tool (echo): Add a speedier workaround for ksh.
46412         * tests/test-echo.sh: Likewise.
46413
46414 2007-06-23  Bruno Haible  <bruno@clisp.org>
46415
46416         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
46417         * tests/test-echo.sh: Likewise.
46418
46419 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46420
46421         * gnulib-tool (IFS): Initialize early, so we don't set it to
46422         empty later.
46423         (self_abspathname): Rewrite algorithm to set it, reindent.
46424         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
46425         (func_create_megatestdir): Merge some sed scripts.
46426
46427 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
46428
46429         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
46430         exposed by Sun Studio 11 cc on Solaris 8.
46431
46432 2007-06-22  Bruno Haible  <bruno@clisp.org>
46433
46434         * gnulib-tool (echo): Ensure the echo primitive does not interpret
46435         backslashes.
46436         * tests/test-echo.sh: New file.
46437
46438 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46439
46440         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
46441         simplify `sed_replace_build_aux' scripts, they are portable but
46442         echoing them with `echo' is not.
46443         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
46444
46445 2007-06-21  Karl Berry  <karl@gnu.org>
46446
46447         * config/srclist.txt: guess we can't handle the licenses via
46448         srclist at the moment.
46449
46450 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
46451
46452         * MODULES.html.sh: Add include_next.
46453         * modules/include_next: New file.
46454
46455 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
46456
46457         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
46458         INCLUDE_NEXT.
46459         (gl_CHECK_NEXT_HEADERS): New macro.
46460         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
46461         the obsolescent gl_ABSOLUTE_HEADER.
46462         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
46463         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
46464         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
46465         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
46466         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
46467         * m4/math_h.m4 (gl_MATH_H): Likewise.
46468         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
46469         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
46470         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
46471         * m4/stdint.m4 (gl_STDINT_H): Likewise.
46472         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
46473         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
46474         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
46475         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46476         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
46477         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
46478         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
46479         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
46480         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
46481         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
46482         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
46483         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46484         * m4/inttypes.m4 (gl_INTTYPES_H): Define
46485         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
46486         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
46487         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
46488         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
46489         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
46490         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
46491         * lib/float_.h: Likewise.
46492         * lib/inttypes_.h: Likewise.
46493         * lib/math_.h: Likewise.
46494         * lib/search_.h: Likewise.
46495         * lib/signal_.h: Likewise.
46496         * lib/stdint_.h: Likewise.
46497         * lib/stdio_.h: Likewise.
46498         * lib/stdlib_.h: Likewise.
46499         * lib/string_.h: Likewise.
46500         * lib/sys_stat_.h: Likewise.
46501         * lib/sys_time_.h: Likewise.
46502         * lib/time_.h: Likewise.
46503         * lib/unistd_.h: Likewise.
46504         * lib/wchar_.h: Likewise.
46505         * lib/wctype_.h: Likewise.
46506         * lib/dirent_.h: Likewise.
46507         * lib/iconv_.h: Likewise.
46508         * lib/locale_.h: Likewise.
46509         * lib/netinet_in_.h: Likewise.
46510         * lib/sys_select_.h: Likewise.
46511         * lib/sys_socket_.h: Likewise.
46512         * lib/sysexits_.h: Likewise.
46513         * modules/fcntl (Depends-on): Depend on include_next, not
46514         absolute_header.
46515         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
46516         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
46517         * modules/fchdir: Likewise.
46518         * modules/float: Likewise.
46519         * modules/iconv_open: Likewise.
46520         * modules/inttypes: Likewise.
46521         * modules/locale: Likewise.
46522         * modules/math: Likewise.
46523         * modules/netinet_in: Likewise.
46524         * modules/search: Likewise.
46525         * modules/signal: Likewise.
46526         * modules/stdint: Likewise.
46527         * modules/stdio: Likewise.
46528         * modules/stdlib: Likewise.
46529         * modules/string: Likewise.
46530         * modules/sys_select: Likewise.
46531         * modules/sys_socket: Likewise.
46532         * modules/sys_stat: Likewise.
46533         * modules/sys_time: Likewise.
46534         * modules/sysexits: Likewise.
46535         * modules/time: Likewise.
46536         * modules/unistd: Likewise.
46537         * modules/wchar: Likewise.
46538         * modules/wctype: Likewise.
46539         * modules/sys_stat: Change maintainer to "all".
46540         * modules/unistd: Likewise.
46541
46542 2007-06-20  Karl Berry  <karl@gnu.org>
46543
46544         * config/srclist.txt: track www changes in license files.
46545
46546 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
46547
46548         * build-aux/bootstrap: Remove stray dot.
46549         Make sure build_aux settings are honored when linking
46550         gnulib_extra_files.
46551
46552 2007-06-19  Eric Blake  <ebb9@byu.net>
46553
46554         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
46555         Allow compilation on cygwin.
46556
46557 2007-06-19  Jim Meyering  <jim@meyering.net>
46558
46559         xreadlink-with-size: Remove module.  No longer used.
46560         Ex-callers now use xreadlink or mreadlink-with-size.
46561         * modules/xreadlink-with-size: Remove module.
46562         * lib/xreadlink-with-size.c: Remove file.
46563         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
46564         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
46565         just before the function definition *is* accurate.
46566
46567         Eliminate one way canonicalize_filename_mode could exit.
46568         * lib/canonicalize.c (canonicalize_filename_mode):
46569         Use mreadlink_with_size, not xreadlink_with_size.
46570
46571 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
46572
46573         Detect porting problems to FreeBSD/arm, which has time_t wider than
46574         long int.  Original problem reported for GNU diff by Xin Li in
46575         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
46576         * modules/getdate (Depends-on): Add intprops, verify.
46577         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
46578         is an integer type no wider than long int.
46579
46580 2007-06-18  Jim Meyering  <jim@meyering.net>
46581
46582         New module: mreadlink-with-size.
46583         * MODULES.html.sh: Add mreadlink-with-size.
46584         * modules/mreadlink-with-size: New module
46585         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
46586         not xreadlink-with-size.
46587         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
46588
46589 2007-06-16  Bruno Haible  <bruno@clisp.org>
46590
46591         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
46592         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
46593         Reported by Gary V. Vaughan <gary@gnu.org>.
46594
46595 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
46596
46597         Revamp lchown so that it lives in unistd.h where it belongs.
46598         * lib/lchown.h: Remove.
46599         * lib/dirchownmod.c: Don't include lib/lchown.h.
46600         * lib/fchownat.c: Likewise.
46601         * lib/openat.c: Likewise.
46602         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
46603         does not follow symlinks.
46604         (EOPNOTSUPP): Define if not defined.
46605         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
46606         is defined to 0.
46607         (lchown): New decl.
46608         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
46609         Do not check for lchown decl.
46610         Set REPLACE_LCHOWN.
46611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
46612         REPLACE_LCHOWN.
46613         * modules/chown: Make it clear it follows symlinks.
46614         * modules/lchown: Make it clear it doesn't follow symlinks.
46615         (Files): Remove lib/lchown.h
46616         (Depends-on): Add unistd.
46617         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
46618         (Include): Include <unistd.h>, not "lchown.h".
46619         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
46620         REPLACE_LCHOWN.
46621
46622 2007-06-15  Jim Meyering  <jim@meyering.net>
46623
46624         Change license (GPL to LGPL) of fsusage and dependents.
46625         * modules/fsusage (License): Change to LGPL.
46626         * modules/full-read (License): Likewise.
46627         * modules/full-write (License): Likewise.
46628         * modules/safe-read (License): Likewise.
46629         * modules/safe-write (License): Likewise.
46630
46631 2007-06-14  Ben Pfaff  <blp@gnu.org>
46632
46633         Missing part of allocsa -> malloca transition.
46634         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
46635         gl_MALLOCA.
46636
46637 2007-06-12  Bruno Haible  <bruno@clisp.org>
46638
46639         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
46640         to ia64, x86_64, i386.
46641         Reported by Eric Blake.
46642
46643 2007-06-12  Bruno Haible  <bruno@clisp.org>
46644
46645         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
46646         cross-compiling to x86_64.
46647
46648 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
46649
46650         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
46651         glitch reported by Ralf Wildenhues in
46652         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
46653
46654         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
46655         Vin Shelton.
46656
46657 2007-06-11  Bruno Haible  <bruno@clisp.org>
46658
46659         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
46660         replacement string.
46661         Reported by Eric Blake.
46662
46663 2007-06-10  Bruno Haible  <bruno@clisp.org>
46664
46665         Prepare vasnprintf code for use with Unicode strings.
46666         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
46667         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
46668         TYPE_U32_STRING.
46669         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
46670         a_u32_string variants.
46671         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
46672         * lib/printf-args.c: Don't include config.h and the specification
46673         header if PRINTF_FETCHARGS is already defined.
46674         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
46675         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
46676         TYPE_U16_STRING, TYPE_U32_STRING.
46677         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
46678         u16_directive, u16_directives, u32_directive, u32_directives): New
46679         types.
46680         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
46681         New declarations.
46682         * lib/printf-parse.c: Don't include config.h and the specification
46683         header if PRINTF_PARSE is already defined. Eliminate the set of
46684         parameters for WIDE_CHAR_VERSION; the user of this file must provide
46685         them now. Include c-ctype.h.
46686         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
46687         directive and CHAR_T_ONLY_ASCII.
46688         * lib/vasnprintf.c: Don't include config.h and the specification header
46689         if VASNPRINTF is already defined.
46690         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
46691         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
46692         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
46693         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
46694         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
46695         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
46696         code accordingly.
46697         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
46698         pad_ourselves also in this case, with the 'c' and 's' directives, and
46699         with a different notion of "width".
46700         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
46701
46702 2007-06-10  Bruno Haible  <bruno@clisp.org>
46703
46704         * modules/unistr/u32-mbsnlen: New file.
46705         * lib/unistr/u32-mbsnlen.c: New file.
46706
46707         * modules/unistr/u16-mbsnlen: New file.
46708         * lib/unistr/u16-mbsnlen.c: New file.
46709
46710         * modules/unistr/u8-mbsnlen: New file.
46711         * lib/unistr/u8-mbsnlen.c: New file.
46712
46713         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
46714         declarations.
46715
46716 2007-06-10  Bruno Haible  <bruno@clisp.org>
46717
46718         * lib/string_.h (mbsnlen): New declaration.
46719         * lib/mbsnlen.c: New file.
46720         * m4/mbsnlen.m4: New file.
46721         * modules/mbsnlen: New file.
46722         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
46723         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
46724         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
46725
46726 2007-06-10  Bruno Haible  <bruno@clisp.org>
46727
46728         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
46729
46730 2007-06-10  Bruno Haible  <bruno@clisp.org>
46731
46732         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
46733         * lib/mbuiter.h: Likewise.
46734
46735 2007-06-10  Bruno Haible  <bruno@clisp.org>
46736
46737         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
46738         declaration.
46739
46740 2007-06-10  Karl Berry  <karl@gnu.org>
46741
46742         * config/srclist.txt: remove gettext entries, Bruno prefers
46743         to update individually.
46744
46745 2007-06-10  Bruno Haible  <bruno@clisp.org>
46746
46747         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
46748         'maxlen'. Ensure only length + width bytes are allocated, not
46749         length + 1 + width.
46750
46751 2007-06-09  Bruno Haible  <bruno@clisp.org>
46752
46753         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
46754         (CHAR_T): Remove macro.
46755         (VASNPRINTF): Update.
46756
46757 2007-06-09  Bruno Haible  <bruno@clisp.org>
46758
46759         * MODULES.html.sh (Unicode string functions): Add the new modules.
46760
46761         * modules/uniconv/u32-conv-to-enc: New file.
46762         * lib/uniconv/u32-conv-to-enc.c: New file.
46763         * modules/uniconv/u32-conv-to-enc-tests: New file.
46764         * tests/uniconv/test-u32-conv-to-enc.c: New file.
46765
46766         * modules/uniconv/u16-conv-to-enc: New file.
46767         * lib/uniconv/u16-conv-to-enc.c: New file.
46768         * lib/uniconv/u-conv-to-enc.h: New file.
46769         * modules/uniconv/u16-conv-to-enc-tests: New file.
46770         * tests/uniconv/test-u16-conv-to-enc.c: New file.
46771
46772         * modules/uniconv/u8-conv-to-enc: New file.
46773         * lib/uniconv/u8-conv-to-enc.c: New file.
46774         * modules/uniconv/u8-conv-to-enc-tests: New file.
46775         * tests/uniconv/test-u8-conv-to-enc.c: New file.
46776
46777         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
46778         u32_conv_to_encoding): New declarations.
46779
46780 2007-06-09  Bruno Haible  <bruno@clisp.org>
46781
46782         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
46783
46784 2007-06-09  Bruno Haible  <bruno@clisp.org>
46785
46786         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
46787         * modules/malloca: Renamed from modules/allocsa, updated.
46788         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
46789         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
46790         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
46791         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
46792         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
46793         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
46794         * modules/xmalloca: Renamed from modules/xallocsa, updated.
46795         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
46796         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
46797         * modules/c-strcasestr (Depends-on): Update.
46798         * lib/c-strcasestr.c: Update.
46799         * modules/c-strstr (Depends-on): Update.
46800         * lib/c-strstr.c: Update.
46801         * modules/canonicalize-lgpl (Depends-on): Update.
46802         * lib/canonicalize-lgpl.c: Update.
46803         * modules/clean-temp (Depends-on): Update.
46804         * lib/clean-temp.c: Update.
46805         * modules/csharpcomp (Depends-on): Update.
46806         * lib/csharpcomp.c: Update.
46807         * modules/csharpexec (Depends-on): Update.
46808         * lib/csharpexec.c: Update.
46809         * modules/javacomp (Depends-on): Update.
46810         * lib/javacomp.c: Update.
46811         * modules/javaexec (Depends-on): Update.
46812         * lib/javaexec.c: Update.
46813         * modules/mbscasestr (Depends-on): Update.
46814         * lib/mbscasestr.c: Update.
46815         * modules/mbsstr (Depends-on): Update.
46816         * lib/mbsstr.c: Update.
46817         * modules/setenv (Depends-on): Update.
46818         * lib/setenv.c: Update.
46819         * modules/strcasestr (Depends-on): Update.
46820         * lib/strcasestr.c: Update.
46821         * modules/striconveha (Depends-on): Update.
46822         * lib/striconveha.c: Update.
46823         * modules/relocatable-prog-wrapper (Files): Update.
46824         * lib/relocwrapper.c: Update.
46825         * build-aux/install-reloc: Update.
46826         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
46827
46828 2007-06-08  Bruno Haible  <bruno@clisp.org>
46829
46830         Port to uClibc.
46831         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
46832         * lib/fpurge.c (fpurge): Likewise.
46833         * lib/freading.c (freading): Likewise.
46834         * lib/fseeko.c (rpl_fseeko): Likewise.
46835         * lib/fseterr.c (fseterr): Likewise.
46836         * lib/fwriting.c (fwriting): Likewise.
46837         * tests/test-fflush.c (main): Avoid a failure on uClibc.
46838
46839 2007-06-08  Bruno Haible  <bruno@clisp.org>
46840
46841         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
46842         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
46843         * modules/gettext (Files): Add m4/intlmacosx.m4.
46844
46845 2007-06-07  Bruno Haible  <bruno@clisp.org>
46846
46847         * modules/localename-tests: New file.
46848         * tests/test-localename.c: New file.
46849
46850         New module 'localename'.
46851         * lib/localename.h: New file.
46852         * lib/localename.c: New file, from GNU gettext.
46853         * m4/localename.m4: New file.
46854         * modules/localename: New file.
46855
46856 2007-06-07  Bruno Haible  <bruno@clisp.org>
46857
46858         Work around the lack of <wchar.h> on some builds of uClibc.
46859         * doc/headers/wchar.texi: Update.
46860         * lib/wchar_.h: Include <wchar.h> only if it exists.
46861         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
46862         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
46863         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
46864         doesn't exist.
46865         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
46866         * modules/mbfile (Depends-on): Add wchar.
46867         * modules/mbiter (Depends-on): Likewise.
46868         * modules/mbuiter (Depends-on): Likewise.
46869         Reported by Simon Josefsson.
46870
46871 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
46872
46873         Work around problem reported by Steven M. Schweda in
46874         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
46875         Tru64 5.1B with the Compaq compiler environment installed declares
46876         an 'isblank' function but does not define it in the C library.
46877         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
46878         * lib/regex_internal.h (isblank): Likewise.
46879         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
46880         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
46881
46882 2007-06-05  Bruno Haible  <bruno@clisp.org>
46883
46884         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
46885         ia64.
46886         * modules/printf-safe: New file.
46887         * modules/fprintf-posix (Depends-on): Add printf-safe.
46888         * modules/printf-posix (Depends-on): Likewise.
46889         * modules/snprintf-posix (Depends-on): Likewise.
46890         * modules/sprintf-posix (Depends-on): Likewise.
46891         * modules/vasnprintf-posix (Depends-on): Likewise.
46892         * modules/vasprintf-posix (Depends-on): Likewise.
46893         * modules/vfprintf-posix (Depends-on): Likewise.
46894         * modules/vprintf-posix (Depends-on): Likewise.
46895         * modules/vsnprintf-posix (Depends-on): Likewise.
46896         * modules/vsprintf-posix (Depends-on): Likewise.
46897         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
46898         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
46899         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
46900         "no" on i386, x86_64, ia64.
46901         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
46902         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
46903         on i386, x86_64, ia64.
46904         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
46905         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
46906         on i386, x86_64, ia64.
46907         * tests/test-vasnprintf-posix.c: Include float.h.
46908         (LDBL80_WORDS): New macro.
46909         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
46910         on i386, x86_64, ia64.
46911         * tests/test-vasprintf-posix.c: Include float.h.
46912         (LDBL80_WORDS): New macro.
46913         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
46914         on i386, x86_64, ia64.
46915         * tests/test-snprintf-posix.c: Include float.h.
46916         * tests/test-sprintf-posix.c: Likewise.
46917         * tests/test-vsnprintf-posix.c: Likewise.
46918         * tests/test-vsprintf-posix.c: Likewise.
46919
46920 2007-06-05  Bruno Haible  <bruno@clisp.org>
46921
46922         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
46923         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
46924         non-IEEE numbers on i386, x86_64, ia64.
46925         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
46926         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
46927         * tests/test-isnanl.h: Include float.h.
46928         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
46929
46930 2007-06-05  Bruno Haible  <bruno@clisp.org>
46931
46932         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
46933         also the %a / %A. Handle the %a / %A code before this extra handling.
46934
46935 2007-06-05  Bruno Haible  <bruno@clisp.org>
46936
46937         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
46938         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
46939
46940 2007-06-05  Bruno Haible  <bruno@clisp.org>
46941
46942         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
46943         typo in variable name.
46944
46945 2007-06-05  Eric Blake  <ebb9@byu.net>
46946
46947         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
46948         Reported by Simon Josefsson.
46949
46950 2007-06-04  Bruno Haible  <bruno@clisp.org>
46951
46952         Avoid test failures on some PowerPC platforms.
46953         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
46954         Define differently for PowerPC.
46955         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
46956         Reported by Gary V. Vaughan <gary@gnu.org>.
46957
46958 2007-06-02  Bruno Haible  <bruno@clisp.org>
46959
46960         Fix test-stdint failure on FreeBSD/ia64.
46961         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
46962         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
46963         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
46964         * doc/headers/stdint.texi: Update.
46965
46966 2007-06-01  Bruno Haible  <bruno@clisp.org>
46967
46968         * tests/test-binary-io.c (main): Pass a third argument to open().
46969         Reported by Gary V. Vaughan <gary@gnu.org>.
46970
46971 2007-06-01  Bruno Haible  <bruno@clisp.org>
46972
46973         * doc/functions/frexpl.texi: Update for mingw.
46974
46975 2007-06-01  Bruno Haible  <bruno@clisp.org>
46976
46977         * tests/test-lseek.c (main): Disable test of errno for invalid third
46978         argument.
46979         * doc/functions/lseek.texi: Update.
46980         Reported by Gary V. Vaughan <gary@gnu.org>.
46981
46982 2007-05-28  Bruno Haible  <bruno@clisp.org>
46983
46984         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
46985
46986 2007-05-31  Eric Blake  <ebb9@byu.net>
46987
46988         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
46989         cross compiling.
46990
46991 2007-05-30  Eric Blake  <ebb9@byu.net>
46992         and Bruno Haible  <bruno@clisp.org>
46993
46994         Work around mingw test failures exposed by m4-1.4.9b.
46995         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
46996         * tests/test-unistd.c: Disable uid_t and git_t tests for the
46997         moment.
46998
46999 2007-05-30  Bruno Haible  <bruno@clisp.org>
47000
47001         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
47002         assuming that they are closed. Needed on HP-UX 11.
47003
47004 2007-05-29  Bruno Haible  <bruno@clisp.org>
47005
47006         Fix a problem with #include_next.
47007         * lib/dirent_.h: Split the double-inclusion guard.
47008         * lib/fcntl_.h: Likewise.
47009         * lib/float_.h: Likewise.
47010         * lib/iconv_.h: Likewise.
47011         * lib/inttypes_.h: Likewise.
47012         * lib/locale_.h: Likewise.
47013         * lib/math_.h: Likewise.
47014         * lib/netinet_in_.h: Likewise.
47015         * lib/search_.h: Likewise.
47016         * lib/signal_.h: Likewise.
47017         * lib/stdint_.h: Likewise.
47018         * lib/stdio_.h: Likewise.
47019         * lib/stdlib_.h: Likewise.
47020         * lib/string_.h: Likewise.
47021         * lib/sys_select_.h: Likewise.
47022         * lib/sys_socket_.h: Likewise.
47023         * lib/sys_stat_.h: Likewise.
47024         * lib/sys_time_.h: Likewise.
47025         * lib/sysexits_.h: Likewise.
47026         * lib/time_.h: Likewise.
47027         * lib/unistd_.h: Likewise.
47028         * lib/wchar_.h: Likewise.
47029         * lib/wctype_.h: Likewise.
47030
47031 2007-05-29  Bruno Haible  <bruno@clisp.org>
47032
47033         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
47034         for the moment.
47035
47036 2007-05-29  Bruno Haible  <bruno@clisp.org>
47037
47038         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
47039         invocation.
47040         Reported by Eric Blake.
47041
47042 2007-05-29  Bruno Haible  <bruno@clisp.org>
47043
47044         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
47045         compiling case.
47046
47047 2007-05-29  Eric Blake  <ebb9@byu.net>
47048             Bruno Haible  <bruno@clisp.org>
47049
47050         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
47051         cross compiles.
47052
47053 2007-05-28  Eric Blake  <ebb9@byu.net>
47054
47055         * modules/closein-tests (test_closein_LDADD): Support test on
47056         cygwin with libtool.
47057
47058 2007-05-28  Bruno Haible  <bruno@clisp.org>
47059
47060         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
47061         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
47062         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
47063         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
47064         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
47065         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
47066         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
47067         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
47068         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
47069
47070 2007-05-28  Eric Blake  <ebb9@byu.net>
47071
47072         Unconditionally include <config.h> in unit tests.
47073         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
47074         * tests/test-allocsa.c, tests/test-arcfour.c,
47075         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
47076         tests/test-array_list.c, tests/test-array_oset.c,
47077         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
47078         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
47079         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
47080         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
47081         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
47082         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
47083         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
47084         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
47085         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
47086         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
47087         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
47088         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
47089         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
47090         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
47091         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
47092         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
47093         test-md5.c, test-memmem.c, test-printf-posix.c,
47094         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
47095         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
47096         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
47097         test-strcasestr.c, test-striconv.c, test-striconveh.c,
47098         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
47099         test-vasnprintf-posix2.c, test-vasnprintf.c,
47100         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
47101         test-vfprintf-posix.c, test-vprintf-posix.c,
47102         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
47103         test-xvasprintf.c: Likewise.
47104
47105 2007-05-28  Bruno Haible  <bruno@clisp.org>
47106
47107         * gnulib-tool (func_import): Remember the --with-tests command-line
47108         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
47109         Reported by Eric Blake.
47110
47111 2007-05-28  Bruno Haible  <bruno@clisp.org>
47112
47113         * modules/ftell-tests: New file.
47114         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
47115         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
47116
47117         * lib/ftell.c: New file.
47118         * modules/ftell: New file.
47119         * m4/ftell.m4: New file.
47120         * doc/functions/ftell.texi: Update.
47121         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
47122         REPLACE_FTELL.
47123         * lib/stdio_.h (rpl_ftell): New declaration.
47124         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
47125         REPLACE_FTELL.
47126
47127 2007-05-28  Eric Blake  <ebb9@byu.net>
47128
47129         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
47130
47131 2007-05-28  Bruno Haible  <bruno@clisp.org>
47132
47133         * modules/fseek-tests: New file.
47134         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
47135         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
47136
47137         * lib/fseek.c: New file.
47138         * modules/fseek: New file.
47139         * m4/fseek.m4: New file.
47140         * doc/functions/fseek.texi: Update.
47141         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
47142         REPLACE_FSEEK.
47143         * lib/stdio_.h (rpl_fseek): New declaration.
47144         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
47145         REPLACE_FSEEK.
47146
47147 2007-05-28  Bruno Haible  <bruno@clisp.org>
47148
47149         * lib/stdio_.h (fflush): More comments.
47150
47151 2007-05-28  Bruno Haible  <bruno@clisp.org>
47152
47153         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
47154         runtime test.
47155
47156 2007-05-28  Eric Blake  <ebb9@byu.net>
47157
47158         Improve lseek module.
47159         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
47160         * lib/unistd_.h (lseek): Scale back link warning message.
47161         * tests/test-lseek.c: Beef up test.
47162         * tests/test-lseek.sh: Exercise more facets of lseek.
47163         Reported by Bruno Haible.
47164
47165 2007-05-28  Bruno Haible  <bruno@clisp.org>
47166
47167         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
47168         to define.
47169
47170 2007-05-27  Bruno Haible  <bruno@clisp.org>
47171
47172         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
47173
47174 2007-05-27  Bruno Haible  <bruno@clisp.org>
47175
47176         * modules/openmp: New file.
47177         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
47178         Noah Misch.
47179
47180 2007-05-26  Bruno Haible  <bruno@clisp.org>
47181
47182         * modules/chdir-long (Depends-on): Add fchdir.
47183         * modules/chdir-safer (Depends-on): Likewise.
47184         * modules/fts (Depends-on): Likewise.
47185         * modules/fts-lgpl (Depends-on): Likewise.
47186         * modules/openat (Depends-on): Likewise.
47187         * modules/savewd (Depends-on): Likewise.
47188
47189 2007-05-24  Eric Blake  <ebb9@byu.net>
47190
47191         Fix lseek on mingw.
47192         * modules/lseek: New module.
47193         * m4/lseek.m4: New file.
47194         * lib/lseek.c: New file.
47195         * modules/lseek-tests: New file.
47196         * tests/test-lseek.c: New file.
47197         * tests/test-lseek.sh: New file.
47198         * MODULES.html.sh: Document lseek module.
47199         * modules/fflush (Depends-on): Add lseek, fseeko.
47200         * modules/fseeko (Depends-on): Likewise.
47201         * modules/ftello (Depends-on): Likewise.
47202         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
47203         broken.
47204         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
47205         broken.
47206         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
47207         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
47208         * lib/ftello.c (rpl_ftello): Likewise.
47209         * tests/test-fseeko.c (main): Test this.
47210         * tests/test-fseeko.sh: Likewise.
47211         * tests/test-ftello.c (main): Likewise.
47212         * tests/test-ftello.sh: Likewise.
47213         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
47214         implies replacing fseek.
47215         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
47216         HAVE_FTELLO.
47217         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
47218         * modules/unistd (Makefile.am): Likewise.
47219         * lib/unistd_.h (lseek): Declare a replacement.
47220         * doc/functions/lseek.texi (lseek): Document this fix.
47221         * doc/functions/fseek.texi (fseek): Likewise.
47222         * doc/functions/ftell.texi (ftell): Likewise.
47223
47224 2007-05-24  Bruno Haible  <bruno@clisp.org>
47225
47226         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
47227         in the printed representation of a NaN.
47228         * tests/test-vasprintf-posix.c (test_function): Likewise.
47229         * tests/test-snprintf-posix.h (test_function): Likewise.
47230         * tests/test-sprintf-posix.h (test_function): Likewise.
47231         Reported by Eric Blake.
47232
47233 2007-05-23  Eric Blake  <ebb9@byu.net>
47234
47235         Fix fseeko/ftello on cygwin 1.5.24.
47236         * doc/functions/fseeko.texi (fseeko): Document the fix.
47237         * doc/functions/ftello.texi (ftello): Document the fix.
47238         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
47239         * doc/functions/stdout.text (stdout): New file.
47240         * doc/functions/stderr.text (stderr): New file.
47241         * doc/gnulib.texi (Function Substitutes): Use new files.
47242         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
47243         prior to 1.7.0.
47244         * tests/test-ftello.c (main): Likewise for ftello.
47245         * tests/test-fseeko.sh: New file.
47246         * tests/test-ftello.sh: New file.
47247         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
47248         with seekable stdin.
47249         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
47250         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
47251         (gl_REPLACE_FSEEKO): New macro.
47252         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
47253         * modules/fseeko (Files): Distribute fseeko.c.
47254         * modules/ftello (Files): Distribute ftello.c.
47255         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
47256         mode.
47257         * lib/ftello.c (rpl_ftello): New file.
47258         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
47259         fseeko, ftello.
47260         (gl_STDIN_LARGE_OFFSET): New macro.
47261         * modules/stdio (Makefile.am): Perform the replacement.
47262         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
47263
47264 2007-05-23  Bruno Haible  <bruno@clisp.org>
47265
47266         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
47267         GNULIB_POSIXCHECK is defined.
47268
47269 2007-05-21  Bruno Haible  <bruno@clisp.org>
47270
47271         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
47272         Check also the output for NaN arguments. When cross-compiling, guess
47273         no on IRIX.
47274         * lib/vasnprintf.c: Update comments.
47275         * tests/test-vasnprintf-posix.c (strisnan): New function.
47276         (test_function): Use it.
47277         * tests/test-vasprintf-posix.c (strisnan): New function.
47278         (test_function): Use it.
47279         * tests/test-snprintf-posix.h (strisnan): New function.
47280         (test_function): Use it.
47281         * tests/test-sprintf-posix.h (strisnan): New function.
47282         (test_function): Use it.
47283         Reported by Eric Blake.
47284
47285 2007-05-20  Bruno Haible  <bruno@clisp.org>
47286
47287         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
47288         numbers that fails on BeOS.
47289         * doc/functions/frexpl.texi: Update.
47290
47291 2007-05-20  Jim Meyering  <jim@meyering.net>
47292
47293         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
47294         forced upon us by glibc-2.6.
47295
47296 2007-05-20  Bruno Haible  <bruno@clisp.org>
47297
47298         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
47299         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
47300         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
47301         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
47302         NEED_PRINTF_INFINITE.
47303         (is_infinitel): New function.
47304         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
47305         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
47306         gl_PREREQ_VASNPRINTF_INFINITE.
47307         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
47308         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47309         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
47310         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
47311         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
47312         gl_PREREQ_VASNPRINTF_INFINITE.
47313         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47314         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47315         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47316         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47317         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47318         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47319         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47320         * doc/functions/fprintf.texi: Update.
47321         * doc/functions/printf.texi: Update.
47322         * doc/functions/snprintf.texi: Update.
47323         * doc/functions/sprintf.texi: Update.
47324         * doc/functions/vfprintf.texi: Update.
47325         * doc/functions/vprintf.texi: Update.
47326         * doc/functions/vsnprintf.texi: Update.
47327         * doc/functions/vsprintf.texi: Update.
47328
47329 2007-05-20  Bruno Haible  <bruno@clisp.org>
47330
47331         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
47332         was not found in libc.
47333         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
47334
47335 2007-05-20  Bruno Haible  <bruno@clisp.org>
47336
47337         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
47338         printed as "-nan" instead of "nan".
47339         * tests/test-vasprintf-posix.c (test_function): Likewise.
47340         * tests/test-snprintf-posix.h (test_function): Likewise.
47341         * tests/test-sprintf-posix.h (test_function): Likewise.
47342         Needed for HP-UX 11.
47343
47344 2007-05-20  Jim Meyering  <jim@meyering.net>
47345
47346         Fix buggy test for the fchownat-deref bug.
47347         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
47348         symlink required for the run-test.  Without it, this test would
47349         always declare that fchownat doesn't work, and client code would
47350         unnecessarily use the replacement function with fixed libc.
47351         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
47352         Reported by Greg Schafer.
47353
47354 2007-05-19  Bruno Haible  <bruno@clisp.org>
47355
47356         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
47357         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
47358         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
47359         Needed for IRIX 6.5 and Solaris 2.5.1.
47360
47361 2007-05-19  Bruno Haible  <bruno@clisp.org>
47362
47363         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
47364         (test_function): Skip tests involving -0.0 on platforms where
47365         -0.0 = 0.0.
47366         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
47367         (test_function): Skip tests involving -0.0 on platforms where
47368         -0.0 = 0.0.
47369         * tests/test-snprintf-posix.h (have_minus_zero): New function.
47370         (test_function): Skip tests involving -0.0 on platforms where
47371         -0.0 = 0.0.
47372         * tests/test-sprintf-posix.h (have_minus_zero): New function.
47373         (test_function): Skip tests involving -0.0 on platforms where
47374         -0.0 = 0.0.
47375         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
47376         tests.
47377         * tests/test-printf-posix.h (test_function): Likewise.
47378         * tests/test-printf-posix.output: Remove all -0.0 related results.
47379         Needed for IRIX 6.5.
47380
47381 2007-05-19  Bruno Haible  <bruno@clisp.org>
47382
47383         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
47384         printed as "nan0x7fffffff" instead of "nan".
47385         * tests/test-vasprintf-posix.c (test_function): Likewise.
47386         * tests/test-snprintf-posix.h (test_function): Likewise.
47387         * tests/test-sprintf-posix.h (test_function): Likewise.
47388         * tests/test-fprintf-posix.h (NaN): Remove macro.
47389         (test_function): Remove all NaN related tests.
47390         * tests/test-printf-posix.h (NaN): Remove macro.
47391         (test_function): Remove all NaN related tests.
47392         * tests/test-printf-posix.output: Remove all NaN related results.
47393         Needed for IRIX 6.5.
47394
47395 2007-05-19  Bruno Haible  <bruno@clisp.org>
47396
47397         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
47398         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
47399
47400 2007-05-19  Bruno Haible  <bruno@clisp.org>
47401
47402         * lib/float_.h: New file.
47403         * m4/float_h.m4: New file.
47404         * modules/float: New file.
47405         * modules/isnanl (Dependencies): Add float.
47406         * modules/isnanl-nolibm (Dependencies): Likewise.
47407         * modules/mathl (Dependencies): Likewise.
47408         * modules/printf-frexpl (Dependencies): Likewise.
47409         * modules/signbit (Dependencies): Likewise.
47410         * modules/vasnprintf (Dependencies): Likewise.
47411         * doc/headers/float.texi: Update.
47412
47413 2007-05-19  Jim Meyering  <jim@meyering.net>
47414
47415         * lib/utimens.c (gl_futimens): Rename from futimens,
47416         now that glibc-2.6 declares futimens.
47417         * lib/utimens.h: Likewise.
47418
47419 2007-05-19  Bruno Haible  <bruno@clisp.org>
47420
47421         Avoid test failures on mingw.
47422         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
47423         * tests/test-printf-posix.sh: Likewise.
47424         * tests/test-vfprintf-posix.sh: Likewise.
47425         * tests/test-vprintf-posix.sh: Likewise.
47426
47427 2007-05-19  Bruno Haible  <bruno@clisp.org>
47428
47429         Fix *printf result for NaN, Inf, -0.0 on mingw.
47430         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
47431         * lib/vasnprintf.c: Include math.h and isnan.h.
47432         (is_infinite_or_zero): New function.
47433         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
47434         values in the %f, %F, %e, %E, %g, %G directives.
47435         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
47436         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47437         gl_PRINTF_INFINITE and test its result. Invoke
47438         gl_PREREQ_VASNPRINTF_INFINITE.
47439         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47440         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47441         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47442         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47443         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47444         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47445         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47446         * doc/functions/fprintf.texi: Update.
47447         * doc/functions/printf.texi: Update.
47448         * doc/functions/snprintf.texi: Update.
47449         * doc/functions/sprintf.texi: Update.
47450         * doc/functions/vfprintf.texi: Update.
47451         * doc/functions/vprintf.texi: Update.
47452         * doc/functions/vsnprintf.texi: Update.
47453         * doc/functions/vsprintf.texi: Update.
47454
47455 2007-05-19  Bruno Haible  <bruno@clisp.org>
47456
47457         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
47458         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
47459         Instead of multiplying with 10^k, set extra_zeroes to k.
47460         (scale10_round_long_double): Remove function.
47461
47462 2007-05-18  Bruno Haible  <bruno@clisp.org>
47463
47464         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
47465         introduced on 2007-05-06.
47466
47467 2007-05-18  Bruno Haible  <bruno@clisp.org>
47468
47469         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
47470         %g directives.
47471         * tests/test-vasprintf-posix.c (test_function): Likewise.
47472         * tests/test-snprintf-posix.h (test_function): Likewise.
47473         * tests/test-sprintf-posix.h (test_function): Likewise.
47474
47475 2007-05-18  Bruno Haible  <bruno@clisp.org>
47476
47477         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
47478         (strmatch): New function.
47479         (test_function): Test the %f directive on numbers of various exponents.
47480         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
47481         (strmatch): New function.
47482         (test_function): Test the %f directive on numbers of various exponents.
47483         * tests/test-snprintf-posix.h (strmatch): New function.
47484         (test_function): Test the %f directive on numbers of various exponents.
47485         * tests/test-sprintf-posix.h (strmatch): New function.
47486         (test_function): Test the %f directive on numbers of various exponents.
47487         * tests/test-snprintf-posix.c (SIZEOF): New macro.
47488         * tests/test-sprintf-posix.c (SIZEOF): New macro.
47489         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
47490         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
47491
47492 2007-05-18  Bruno Haible  <bruno@clisp.org>
47493
47494         Add support for 'long double' number output.
47495         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
47496         * lib/vasnprintf.c: Include math.h and float+.h.
47497         (mp_limb_t): New type.
47498         (GMP_LIMB_BITS): New macro.
47499         (mp_twolimb_t): New type.
47500         (GMP_TWOLIMB_BITS): New macro.
47501         (mpn_t): New type.
47502         (multiply, divide, convert_to_decimal, decode_long_double,
47503         scale10_round_long_double, scale10_round_decimal_long_double,
47504         floorlog10l): New functions.
47505         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
47506         for the %f, %F, %e, %E, %g, %G directives.
47507         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
47508         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47509         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
47510         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
47511         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47512         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47513         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47514         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47515         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47516         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47517         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47518         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
47519         * modules/snprintf-posix (Depends-on): Likewise.
47520         * modules/sprintf-posix (Depends-on): Likewise.
47521         * modules/vasnprintf-posix (Depends-on): Likewise.
47522         * modules/vasprintf-posix (Depends-on): Likewise.
47523         * modules/vfprintf-posix (Depends-on): Likewise.
47524         * modules/vsnprintf-posix (Depends-on): Likewise.
47525         * modules/vsprintf-posix (Depends-on): Likewise.
47526         * modules/vasnprintf (Files): Add lib/float+.h.
47527         * doc/functions/fprintf.texi: Update.
47528         * doc/functions/printf.texi: Update.
47529         * doc/functions/snprintf.texi: Update.
47530         * doc/functions/sprintf.texi: Update.
47531         * doc/functions/vfprintf.texi: Update.
47532         * doc/functions/vprintf.texi: Update.
47533         * doc/functions/vsnprintf.texi: Update.
47534         * doc/functions/vsprintf.texi: Update.
47535
47536 2007-05-18  Bruno Haible  <bruno@clisp.org>
47537
47538         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
47539
47540 2007-05-18  Bruno Haible  <bruno@clisp.org>
47541
47542         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
47543         for printing 64-bit integers. Needed for mingw.
47544
47545 2007-05-18  Bruno Haible  <bruno@clisp.org>
47546
47547         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
47548         gl_FUNC_FREXPL_WORKS.
47549         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
47550
47551 2007-05-18  Bruno Haible  <bruno@clisp.org>
47552
47553         * modules/frexpl-nolibm-tests: New file.
47554
47555         * modules/frexpl-nolibm: New file.
47556         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
47557
47558 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
47559
47560         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
47561         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
47562         GCC 4.2, which otherwise issues a lot of warnings.
47563         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
47564         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
47565         Likewise.
47566         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
47567         * modules/iconv_open (iconv.h): Likewise.
47568         * modules/locale (locale.h): Likewise.
47569         * modules/netinet_in (netinet/in.h): Likewise.
47570         * modules/sys_select (sys_select.h): Likewise.
47571         * modules/sys_socket (sys/socket.h): Likewise.
47572         * modules/sys_stat (sys/stat.h): Likewise.
47573         * modules/sysexits (sysexits.h): Likewise.
47574         * modules/unistd (unistd.h): Likewise.
47575
47576 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47577
47578         * modules/closein-tests (Makefile.am): Distribute
47579         `test-closein.sh'.
47580
47581 2007-05-17  Bruno Haible  <bruno@clisp.org>
47582
47583         * tests/test-printf-posix.output: Renamed from
47584         tests/test-fprintf-posix.out.
47585         * modules/fprintf-posix-tests: Update.
47586         * modules/printf-posix-tests: Update.
47587         * modules/vfprintf-posix-tests: Update.
47588         * modules/vprintf-posix-tests: Update.
47589         * tests/test-fprintf-posix.sh: Update.
47590         * tests/test-printf-posix.sh: Update.
47591         * tests/test-vfprintf-posix.sh: Update.
47592         * tests/test-vprintf-posix.sh: Update.
47593         Reported by Ralf Wildenhues.
47594
47595 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
47596
47597         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
47598         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
47599         GCC 4.2, which otherwise issues a lot of warnings.
47600         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
47601         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
47602         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
47603         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
47604         it should no longer be needed.
47605         * lib/string_.h: Likewise.
47606         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
47607         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
47608         * modules/inttypes (inttypes.h): Likewise.
47609         * modules/math (math.h): Likewise.
47610         * modules/search (search.h): Likewise.
47611         * modules/signal (signal.h): Likewise.
47612         * modules/stdint (stdint.h): Likewise.
47613         * modules/stdio (stdio.h): Likewise.
47614         * modules/stdlib (stdlib.h): Likewise.
47615         * modules/string (string.h): Likewise.
47616         * modules/sys_time (sys/time.h): Likewise.
47617         * modules/time (time.h): Likewise.
47618         * modules/wchar (wchar.h): Likewise.
47619         * modules/wctype (wtype.h): Likewise.
47620
47621 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47622
47623         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
47624
47625 2007-05-13  Bruno Haible  <bruno@clisp.org>
47626
47627         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
47628         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47629         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
47630         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
47631         (gl_PREREQ_STRTOK_R): Don't require it here.
47632
47633 2007-05-13  Bruno Haible  <bruno@clisp.org>
47634
47635         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
47636         when used in C++ mode.
47637
47638 2007-05-12  Bruno Haible  <bruno@clisp.org>
47639
47640         * lib/linebuffer.h: Tweak doc.
47641         * lib/linebuffer.c: Likewise.
47642
47643 2007-05-12  James Youngman  <jay@gnu.org>
47644
47645         * lib/linebuffer.c (readlinebuffer_delim): New function,
47646         like readlinebuffer, but use a caller-specified delimiter.
47647         (readlinebuffer): Just call readlinebuffer_delim with '\n'
47648         as the delimiter.
47649         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
47650
47651 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47652
47653         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
47654         * modules/openat (Files): Remove openat-die.c.
47655         (Depends-on): Add openat-die.
47656         * modules/openat-die: New module.
47657
47658 2007-05-06  Bruno Haible  <bruno@clisp.org>
47659
47660         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
47661         Update with info about Cygwin.
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         Reported by Eric Blake.
47671
47672 2007-05-06  Bruno Haible  <bruno@clisp.org>
47673
47674         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
47675         padding ourselves for the floating-point directives.
47676         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
47677         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
47678         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47679         gl_PRINTF_FLAG_ZERO and test its result. Invoke
47680         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
47681         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47682         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
47683         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47684         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47685         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47686         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47687         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47688         * tests/test-snprintf-posix.h (test_function): Also check the width
47689         and some flags in the %f directive.
47690         * tests/test-sprintf-posix.h (test_function): Likewise.
47691         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47692         * tests/test-vasprintf-posix.c (test_function): Likewise.
47693         * doc/functions/fprintf.texi: Update.
47694         * doc/functions/printf.texi: Update.
47695         * doc/functions/snprintf.texi: Update.
47696         * doc/functions/sprintf.texi: Update.
47697         * doc/functions/vfprintf.texi: Update.
47698         * doc/functions/vprintf.texi: Update.
47699         * doc/functions/vsnprintf.texi: Update.
47700         * doc/functions/vsprintf.texi: Update.
47701
47702 2007-05-06  Bruno Haible  <bruno@clisp.org>
47703
47704         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
47705         pass the ' flag character to sprintf or snprintf.
47706         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
47707         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
47708         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47709         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
47710         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
47711         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47712         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
47713         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47714         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47715         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47716         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47717         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47718         * tests/test-snprintf-posix.h (test_function): Also check the grouping
47719         flag.
47720         * tests/test-sprintf-posix.h (test_function): Likewise.
47721         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47722         * tests/test-vasprintf-posix.c (test_function): Likewise.
47723         * doc/functions/fprintf.texi: Update.
47724         * doc/functions/printf.texi: Update.
47725         * doc/functions/snprintf.texi: Update.
47726         * doc/functions/sprintf.texi: Update.
47727         * doc/functions/vfprintf.texi: Update.
47728         * doc/functions/vprintf.texi: Update.
47729         * doc/functions/vsnprintf.texi: Update.
47730         * doc/functions/vsprintf.texi: Update.
47731
47732 2007-05-01  Bruno Haible  <bruno@clisp.org>
47733
47734         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
47735
47736 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
47737
47738         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
47739         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
47740
47741 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47742
47743         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
47744         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
47745         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
47746
47747 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
47748
47749         * lib/argp-help.c (struct hol_entry): New member `ord'.
47750         (HOL_ENTRY_PTRCMP): Use ord for comparison
47751         (hol_sort): Initialize ord.
47752
47753 2007-05-01  Bruno Haible  <bruno@clisp.org>
47754
47755         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
47756         Reported by Eric Blake.
47757         * doc/gnulib.texi (Function Substitutes): Update.
47758
47759 2007-05-01  Bruno Haible  <bruno@clisp.org>
47760
47761         * doc/functions.texi: Remove file, now redundant through
47762         doc/functions/*.texi.
47763
47764 2007-05-01  Bruno Haible  <bruno@clisp.org>
47765
47766         * modules/argp (Depends-on): Add sleep.
47767
47768 2007-05-01  Bruno Haible  <bruno@clisp.org>
47769
47770         * modules/sleep-tests: New file.
47771         * tests/test-sleep.c: New file.
47772
47773         * modules/sleep: New file.
47774         * lib/sleep.c: New file.
47775         * m4/sleep.m4: New file.
47776         * lib/unistd_.h (sleep): New declaration.
47777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
47778         HAVE_SLEEP.
47779         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
47780         * doc/functions/sleep.texi: Document the sleep module.
47781
47782 2007-05-01  Bruno Haible  <bruno@clisp.org>
47783
47784         * lib/sigprocmask.h: Remove file.
47785         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
47786         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
47787         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
47788         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
47789         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
47790         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
47791         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
47792         HAVE_SIGSET_T as a shell variable.
47793         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
47794         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
47795         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
47796         (Depends-on): Add signal. Remove verify.
47797         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
47798         (Include): Mention <signal.h> instead of sigprocmask.h.
47799         * NEWS: Mention the change.
47800         * lib/fatal-signal.c: Don't include sigprocmask.h.
47801
47802 2007-05-01  Bruno Haible  <bruno@clisp.org>
47803
47804         * modules/signal: New file.
47805         * lib/signal_.h: New file.
47806         * m4/signal_h.m4: New file.
47807
47808 2007-05-01  Bruno Haible  <bruno@clisp.org>
47809
47810         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
47811         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
47812         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
47813         HAVE_WCTYPE_CTMP_BUG into wctype.h.
47814
47815 2007-05-01  Bruno Haible  <bruno@clisp.org>
47816
47817         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
47818         configure time.
47819         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
47820         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
47821         * modules/sys_stat (Makefile.am): Substitute their values into
47822         sys/stat.h.
47823
47824 2007-05-01  Bruno Haible  <bruno@clisp.org>
47825
47826         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
47827         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
47828         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
47829
47830 2007-05-01  Bruno Haible  <bruno@clisp.org>
47831
47832         * doc/header/assert.texi: Undo last change: don't mention the gnulib
47833         'assert' module here.
47834
47835 2007-05-01  Bruno Haible  <bruno@clisp.org>
47836
47837         * doc/functions/*.texi: New files.
47838         * doc/functions/google-ranking.txt: New file.
47839         * doc/gnulib.texi (Function Substitutes): New chapter.
47840         (ctime, inet_ntoa): Remove sections.
47841         * doc/ctime.texi: Remove file.
47842         * doc/inet_ntoa.texi: Remove file.
47843         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
47844         dependencies.
47845         (%.info): New rule, specifying a --reference-limit.
47846
47847 2007-05-01  Bruno Haible  <bruno@clisp.org>
47848
47849         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
47850
47851 2007-05-01  Bruno Haible  <bruno@clisp.org>
47852
47853         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
47854         the portability of 'mkdir' to mingw systems.
47855
47856 2007-05-01  Bruno Haible  <bruno@clisp.org>
47857
47858         * doc/headers/google-ranking.txt: New file.
47859
47860 2007-04-30  Eric Blake  <ebb9@byu.net>
47861
47862         Prefer fseeko to fseek.
47863         * modules/getpass (Depends-on): Add fseeko.
47864         * lib/getpass.c (getpass): Use fseeko, not fseek.
47865
47866 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
47867
47868         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
47869         assumes the sorting is stable, while most qsort implementations
47870         are not.  Use argument addresses to ensure they never compare as
47871         equal.
47872
47873         * tests/test-argp-2.sh (usage-indent test): Fix output
47874         (func_compare): Restore diff options
47875         * tests/test-argp.c: Restore #include "progname.h"
47876
47877 2007-04-29  Bruno Haible  <bruno@clisp.org>
47878
47879         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
47880         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47881         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
47882         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47883         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
47884         (configure.ac): Define CHECK_SNPRINTF_POSIX.
47885         (TESTS, check_PROGRAMS): Add test-snprintf.
47886         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
47887         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
47888         (TESTS, check_PROGRAMS): Add test-vsnprintf.
47889         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
47890         assertions that fail on HP-UX, OSF/1, or IRIX.
47891         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
47892
47893 2007-04-29  Bruno Haible  <bruno@clisp.org>
47894
47895         * MODULES.html.sh (posix_functions): Remove 'contents'.
47896
47897 2007-04-29  Karl Berry  <karl@gnu.org>
47898
47899         * config/srclist.txt (gendocs_template_min): new entry.
47900
47901 2007-04-29  Bruno Haible  <bruno@clisp.org>
47902
47903         Work around fpurge bug on BSD systems.
47904         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
47905         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
47906         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
47907         fpurge to rpl_fpurge if the system already has this function.
47908         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
47909         the case where the system already has this function. Correct invariants
47910         on BSD systems.
47911         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
47912         BSD systems.
47913
47914 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
47915
47916         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
47917         proposed by Sven Verdoolaege.
47918
47919         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
47920         options.
47921         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
47922         (usage and help tests): Update
47923
47924 2007-04-29  Bruno Haible  <bruno@clisp.org>
47925
47926         * tests/test-fflush.c (main): Use a file of size 17, not 10.
47927         Print more information in case of failure. Disable a test on BeOS.
47928
47929 2007-04-29  Bruno Haible  <bruno@clisp.org>
47930
47931         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
47932         This helps debugging on systems on which no gdb is available.
47933
47934 2007-04-29  Bruno Haible  <bruno@clisp.org>
47935
47936         * lib/freading.h: Improve comments.
47937         * lib/fwriting.h: Likewise.
47938         * tests/test-freading.c (main): Don't check freading immediately after
47939         repositioning. Needed for glibc.
47940
47941 2007-04-29  Bruno Haible  <bruno@clisp.org>
47942
47943         * lib/freading.c (freading): Trivial simplification.
47944
47945 2007-04-28  Bruno Haible  <bruno@clisp.org>
47946
47947         * tests/test-fwriting.c (main): Also test the interaction between
47948         fflush and fwriting.
47949         * modules/fwriting-tests (Depends-on): Add fflush.
47950
47951         * tests/test-freading.c (main): Also test the interaction between
47952         fflush and freading.
47953         * modules/freading-tests (Depends-on): Add fflush.
47954
47955 2007-04-28  Bruno Haible  <bruno@clisp.org>
47956
47957         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
47958         fseeko and ftello.
47959         Suggested by Eric Blake.
47960
47961 2007-04-28  Jim Meyering  <jim@meyering.net>
47962
47963         Avoid false-negative in gl_STDINT_H's C99 conformance test.
47964         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
47965         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
47966
47967 2007-04-27  Eric Blake  <ebb9@byu.net>
47968
47969         * doc/headers/assert.texi (assert.h): Document assert module use.
47970
47971 2007-04-27  Bruno Haible  <bruno@clisp.org>
47972
47973         * doc/headers/*.texi: New files.
47974         * doc/gnulib.texi (Header File Substitutes): New chapter.
47975         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
47976         dependencies.
47977         (standards.info ,standards.html, standards.dvi): Update dependencies.
47978         (mostlyclean, clean): New targets.
47979
47980 2007-04-27  Bruno Haible  <bruno@clisp.org>
47981
47982         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
47983         * modules/sysexits (Files, Makefile.am): Update.
47984
47985         * lib/sys_socket_.h: Renamed from lib/socket_.h.
47986         * modules/sys_socket (Files, Makefile.am): Update.
47987
47988         * lib/sys_stat_.h: Renamed from lib/stat_.h.
47989         * modules/sys_stat (Files, Makefile.am): Update.
47990
47991 2007-04-27  Eric Blake  <ebb9@byu.net>
47992
47993         * lib/freading.h: Improve comments.
47994         * lib/fwriting.h: Likewise.
47995         * lib/fflush.c: Likewise.
47996
47997         Fix closein for mingw.
47998         * modules/closein-tests: Add tests for closein.
47999         * tests/test-closein.c: New file.
48000         * tests/test-closein.sh: Likewise.
48001         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
48002         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
48003
48004 2007-04-27  Bruno Haible  <bruno@clisp.org>
48005
48006         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
48007         version is < 6.
48008         * lib/math_.h [__DECC]: Likewise.
48009         * lib/stdio_.h [__DECC]: Likewise.
48010         * lib/stdlib_.h [__DECC]: Likewise.
48011         * lib/string_.h [__DECC]: Likewise.
48012         * lib/time_.h [__DECC]: Likewise.
48013         * lib/wchar_.h [__DECC]: Likewise.
48014         * lib/wctype_.h [__DECC]: Likewise.
48015
48016 2007-04-27  Bruno Haible  <bruno@clisp.org>
48017
48018         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
48019
48020 2007-04-27  Bruno Haible  <bruno@clisp.org>
48021
48022         * lib/fflush.c: Add comments.
48023         * modules/fpurge-tests (Depends-on): Add fflush.
48024         * modules/freadable-tests (Depends-on): Likewise.
48025         * modules/fwritable-tests (Depends-on): Likewise.
48026
48027 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
48028
48029         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
48030         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
48031         Report by Bruno Haible <bruno@clisp.org>.
48032
48033 2007-04-26  Eric Blake  <ebb9@byu.net>
48034
48035         Fix fflush on mingw.
48036         * modules/fflush (Depends-on): Add freading.
48037         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
48038         but unread data.
48039
48040 2007-04-26  Eric Blake  <ebb9@byu.net>
48041         and Bruno Haible  <bruno@clisp.org>
48042
48043         Implement freading and fwriting.
48044         * lib/freading.c: New file.
48045         * lib/freading.h: Likewise.
48046         * m4/freading.m4: Likewise.
48047         * modules/freading: Likewise.
48048         * modules/freading-tests: Likewise.
48049         * tests/test-freading.c: Likewise.
48050         * lib/fwriting.c: New file.
48051         * lib/fwriting.h: Likewise.
48052         * m4/fwriting.m4: Likewise.
48053         * modules/fwriting: Likewise.
48054         * modules/fwriting-tests: Likewise.
48055         * tests/test-fwriting.c: Likewise.
48056         * MODULES.html.sh (File stream based Input/Output): Mention them.
48057
48058 2007-04-26  Bruno Haible  <bruno@clisp.org>
48059
48060         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
48061         'long' when we assume it.
48062         Suggested by Eric Blake.
48063
48064 2007-04-26  Bruno Haible  <bruno@clisp.org>
48065
48066         Ensure fseeko, ftello are declared on glibc systems.
48067         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
48068         * modules/fseeko (configure.ac-early): Likewise.
48069         * modules/ftello (configure.ac-early): Likewise.
48070         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
48071         AC_FUNC_FSEEKO for this.
48072         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
48073         (gl_CHECK_FSEEKO): Remove macro.
48074
48075 2007-04-26  Bruno Haible  <bruno@clisp.org>
48076
48077         * tests/test-fflush.c (main): Also check the ftell result after
48078         fflush and fseek/fseeko.
48079         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
48080         file descriptor position cache in the stream.
48081         * lib/fseeko.c (rpl_fseeko): Likewise.
48082
48083 2007-04-26  Bruno Haible  <bruno@clisp.org>
48084
48085         * modules/fflush-tests (Depends-on): Add fseeko.
48086
48087 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
48088             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48089
48090         * lib/argz_.h: ensure error_t definition is obtained in same
48091         mechanism system argz.h would have.
48092         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
48093         argz facilities are known bad.  Err on the side of caution if
48094         cross-compiling.
48095
48096 2007-04-25  Eric Blake  <ebb9@byu.net>
48097
48098         * lib/fpurge.c (includes): Use stdlib.h for free.
48099         * tests/test-fflush.c (main): Also test fflush-fseeko.
48100
48101 2007-04-25  Bruno Haible  <bruno@clisp.org>
48102
48103         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
48104         * lib/fseeko.c: New file.
48105         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
48106         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
48107         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
48108         gl_FUNC_FSEEKO.
48109         (gl_FUNC_FSEEKO): Invoke it.
48110         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
48111         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
48112         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
48113
48114 2007-04-25  Bruno Haible  <bruno@clisp.org>
48115
48116         * modules/fflush (Depends-on): Add ftello.
48117
48118 2007-04-25  Bruno Haible  <bruno@clisp.org>
48119
48120         * modules/ftello-tests: New file.
48121         * tests/test-ftello.c: New file.
48122
48123         * modules/ftello: New file.
48124         * m4/ftello.m4: New file.
48125         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
48126         HAVE_FTELLO.
48127         * lib/stdio_.h (ftello): New declaration.
48128         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
48129         HAVE_FTELLO.
48130
48131 2007-04-25  Bruno Haible  <bruno@clisp.org>
48132
48133         * modules/fseeko-tests: New file.
48134         * tests/test-fseeko.c: New file.
48135
48136         * modules/fseeko: New file.
48137         * m4/fseeko.m4: New file.
48138         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
48139         HAVE_FSEEKO.
48140         * lib/stdio_.h (fseeko): New declaration.
48141         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
48142         HAVE_FSEEKO.
48143
48144 2007-04-25  Bruno Haible  <bruno@clisp.org>
48145
48146         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
48147
48148 2007-04-25  Bruno Haible  <bruno@clisp.org>
48149
48150         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
48151         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
48152         * tests/test-unistd.c: Likewise.
48153         * tests/test-fcntl.c: Likewise.
48154
48155 2007-04-23  Eric Blake  <ebb9@byu.net>
48156
48157         * lib/fflush.c: Fix missing include.
48158         Reported by Bruno Haible.
48159
48160 2007-04-23  Bruno Haible  <bruno@clisp.org>
48161
48162         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
48163         Reported by Eric Blake.
48164
48165 2007-04-23  Bruno Haible  <bruno@clisp.org>
48166
48167         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
48168
48169 2007-04-23  Bruno Haible  <bruno@clisp.org>
48170
48171         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
48172
48173 2007-04-23  Bruno Haible  <bruno@clisp.org>
48174
48175         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
48176         Needed on HP-UX 11.
48177
48178 2007-04-16  Eric Blake  <ebb9@byu.net>
48179
48180         Make fflush rely on fpurge.
48181         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
48182         open coding all variants.
48183         * modules/fflush (Depends-on): Add fpurge and unistd.
48184         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
48185         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
48186
48187         Fix --with-tests compilation on cygwin.
48188         * modules/argmatch-tests (Makefile.am): List gnulib library first
48189         in LDADD.
48190         * modules/argp-tests (Makefile.am): Likewise.
48191         * modules/array-list-tests (Makefile.am): Likewise.
48192         * modules/array-oset-tests (Makefile.am): Likewise.
48193         * modules/avltree-list-tests (Makefile.am): Likewise.
48194         * modules/avltree-oset-tests (Makefile.am): Likewise.
48195         * modules/avltreehash-list-tests (Makefile.am): Likewise.
48196         * modules/carray-list-tests (Makefile.am): Likewise.
48197         * modules/dirname-tests (Makefile.am): Likewise.
48198         * modules/frexp-tests (Makefile.am): Likewise.
48199         * modules/isnanl-tests (Makefile.am): Likewise.
48200         * modules/linked-list-tests (Makefile.am): Likewise.
48201         * modules/linkedhash-list-tests (Makefile.am): Likewise.
48202         * modules/lock-tests (Makefile.am): Likewise.
48203         * modules/rbtree-list-tests (Makefile.am): Likewise.
48204         * modules/rbtree-oset-tests (Makefile.am): Likewise.
48205         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
48206         * modules/tls-tests (Makefile.am): Likewise.
48207         * modules/tsearch-tests (Makefile.am): Likewise.
48208         * modules/xvasprintf-tests (Makefile.am): Likewise.
48209
48210         Fix fpurge for cygwin.
48211         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
48212         value.
48213         * modules/fpurge-tests (Depends-on): Clean up trash.
48214
48215 2007-04-16  Simon Josefsson  <simon@josefsson.org>
48216
48217         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
48218
48219         * m4/autobuild.m4: Re-indent.
48220
48221 2007-04-13  Bruno Haible  <bruno@clisp.org>
48222
48223         * modules/fpurge-tests: New file.
48224         * tests/test-fpurge.c: New file.
48225
48226         * modules/fpurge: New file.
48227         * lib/fpurge.h: New file.
48228         * lib/fpurge.c: New file.
48229         * m4/fpurge.m4: New file.
48230
48231 2007-04-13  Bruno Haible  <bruno@clisp.org>
48232
48233         * modules/fbufmode-tests: New file.
48234         * tests/test-fbufmode.c: New file.
48235
48236         * modules/fbufmode: New file.
48237         * lib/fbufmode.h: New file.
48238         * lib/fbufmode.c: New file.
48239         * m4/fbufmode.m4: New file.
48240
48241 2007-04-13  Bruno Haible  <bruno@clisp.org>
48242
48243         * modules/fwritable-tests: New file.
48244         * tests/test-fwritable.c: New file.
48245
48246         * modules/fwritable: New file.
48247         * lib/fwritable.h: New file.
48248         * lib/fwritable.c: New file.
48249         * m4/fwritable.m4: New file.
48250
48251 2007-04-13  Bruno Haible  <bruno@clisp.org>
48252
48253         * modules/freadable-tests: New file.
48254         * tests/test-freadable.c: New file.
48255
48256         * modules/freadable: New file.
48257         * lib/freadable.h: New file.
48258         * lib/freadable.c: New file.
48259         * m4/freadable.m4: New file.
48260
48261 2007-04-13  Bruno Haible  <bruno@clisp.org>
48262
48263         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
48264         MOSTLYCLEANFILES.
48265
48266 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
48267
48268         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
48269         gzip bootstrap.conf to avoid dragging in i18n machinery.
48270         (gnulib_tool_option): Use it.
48271
48272 2007-04-13  Bruno Haible  <bruno@clisp.org>
48273
48274         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
48275         %F directives.
48276         * tests/test-vasprintf-posix.c (test_function): Likewise.
48277         * tests/test-snprintf-posix.h (test_function): Likewise.
48278         * tests/test-sprintf-posix.h (test_function): Likewise.
48279         * tests/test-fprintf-posix.h (test_function): Likewise.
48280         * tests/test-printf-posix.h (test_function): Likewise.
48281         * tests/test-fprintf-posix.out: Likewise.
48282
48283 2007-04-13  Bruno Haible  <bruno@clisp.org>
48284
48285         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
48286         * modules/tls-tests (configure.ac): Likewise.
48287         Reported by Arto C. Nirkko <anirkko@insel.ch>.
48288
48289 2007-04-13  Bruno Haible  <bruno@clisp.org>
48290
48291         * lib/tls.c (glthread_tls_get): Fix return type.
48292         Patch by Arto C. Nirkko <anirkko@insel.ch>.
48293
48294 2007-04-12  Eric Blake  <ebb9@byu.net>
48295
48296         * modules/gettime (Depends-on): Remove gettime.
48297         Reported by Dmitry V. Levin.
48298
48299 2007-04-12  Bruno Haible  <bruno@clisp.org>
48300
48301         * modules/fflush (Include): Mention <stdio.h>.
48302         * modules/strtoimax (Include): Mention <inttypes.h>.
48303         * modules/strtoumax (Include): Likewise.
48304
48305 2007-04-12  Eric Blake  <ebb9@byu.net>
48306
48307         * .cvsignore: New file.
48308         * .gitignore: Likewise.
48309
48310 2007-04-12  Bruno Haible  <bruno@clisp.org>
48311
48312         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
48313         not before, since $(LDADD) often contains libgnu.a.
48314         * modules/striconv-tests (test_striconv_LDADD): Likewise.
48315         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
48316         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
48317         Needed on Cygwin.
48318
48319 2007-04-12  Eric Blake  <ebb9@byu.net>
48320
48321         Work around glibc's failure to flush stdin on fclose.
48322         * lib/closein.c (close_stdin): Flush stdin before closing.
48323
48324         Work around glibc's failure to reset seekable stdin on exit.
48325         * modules/closein: New module.
48326         * lib/closein.c: New file.
48327         * lib/closein.h: Likewise.
48328         * m4/closein.m4: Likewise.
48329         * MODULES.html.sh (File stream based Input/Output): Document it.
48330
48331 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48332
48333         * gnulib-tool: Rename generated 'autobuild' script to
48334         'do-autobuild' in --create-megatestdir output.
48335
48336         * doc/gnulib.texi (Build robot for gnulib): Fix.
48337
48338 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48339
48340         * modules/sysexits (Depends-on): Add absolute-header.
48341
48342 2007-04-12  Eric Blake  <ebb9@byu.net>
48343
48344         No need to preserve errno on success.
48345         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
48346         Reported by Bruno Haible.
48347
48348 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48349
48350         * MODULES.html.sh (Support for maintaining and releasing
48351         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
48352
48353 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48354
48355         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
48356
48357 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48358
48359         * modules/autobuild: New module.
48360
48361         * m4/autobuild.m4: New file.
48362
48363 2007-04-11  Bruno Haible  <bruno@clisp.org>
48364
48365         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
48366         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
48367         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
48368         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
48369         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48370         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48371         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48372         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48373         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48374         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48375         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
48376         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48377         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48378         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
48379         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48380         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48381         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
48382         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48383         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48384         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
48385         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48386         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48387         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
48388         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48389         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48390         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
48391         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48392         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48393         Reported by Eric Blake.
48394
48395 2007-04-11  Bruno Haible  <bruno@clisp.org>
48396
48397         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
48398
48399 2007-04-10  Bruno Haible  <bruno@clisp.org>
48400
48401         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
48402         for NaN and Infinity. Needed on FreeBSD 6.1.
48403         * tests/test-vasnprintf-posix.c (test_function): Undo last change
48404         regarding results for "%010a" of Infinity and NaN.
48405         * tests/test-vasprintf-posix.c (test_function): Likewise.
48406         * tests/test-snprintf-posix.h (test_function): Likewise.
48407         * tests/test-sprintf-posix.h (test_function): Likewise.
48408         * tests/test-fprintf-posix.h (test_function): Likewise.
48409         * tests/test-printf-posix.h (test_function): Likewise.
48410         * tests/test-fprintf-posix.out: Likewise.
48411
48412 2007-04-10  Bruno Haible  <bruno@clisp.org>
48413
48414         * modules/locale-tests: New file.
48415         * tests/test-locale.c: New file.
48416
48417         * modules/locale: New file.
48418         * lib/locale_.h: New file.
48419         * m4/locale_h.m4: New file.
48420
48421 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
48422             Bruno Haible  <bruno@clisp.org>
48423
48424         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
48425         be determined, test for availability of the copysignf, copysign,
48426         copysignl functions.
48427         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
48428         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
48429         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
48430
48431 2007-04-09  Eric Blake  <ebb9@byu.net>
48432
48433         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
48434         * modules/stdio (Makefile.am): Support fflush.
48435         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48436         * modules/fflush: New file.
48437         * lib/fflush.c: Likewise.
48438         * m4/fflush.m4: Likewise.
48439         * modules/fflush-tests: New test.
48440         * tests/test-fflush.c: Likewise.
48441         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
48442
48443 2007-04-06  Bruno Haible  <bruno@clisp.org>
48444
48445         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
48446         (VASNPRINTF): Use signbit for faster determination whether to print a
48447         minus sign.
48448         * modules/vasnprintf (Files): Remove lib/float+.h.
48449         * modules/fprintf-posix (Depends-on): Add signbit.
48450         * modules/snprintf-posix (Depends-on): Likewise.
48451         * modules/sprintf-posix (Depends-on): Likewise.
48452         * modules/vasnprintf-posix (Depends-on): Likewise.
48453         * modules/vasprintf-posix (Depends-on): Likewise.
48454         * modules/vfprintf-posix (Depends-on): Likewise.
48455         * modules/vsnprintf-posix (Depends-on): Likewise.
48456         * modules/vsprintf-posix (Depends-on): Likewise.
48457
48458 2007-04-06  Bruno Haible  <bruno@clisp.org>
48459
48460         * tests/test-frexp.c (main): Test also the sign bit of zero results.
48461         * tests/test-frexpl.c (main): Likewise.
48462         * tests/test-ldexpl.c (main): Likewise.
48463         * modules/frexp-tests (Depends-on): Add signbit.
48464         * modules/frexpl-tests (Depdends-on): Likewise.
48465         * modules/ldexpl-tests (Depdends-on): Likewise.
48466
48467 2007-04-06  Bruno Haible  <bruno@clisp.org>
48468
48469         * modules/signbit-tests: New file.
48470         * tests/test-signbit.c: New file.
48471
48472         * modules/signbit: New file.
48473         * lib/signbitf.c: New file.
48474         * lib/signbitd.c: New file.
48475         * lib/signbitl.c: New file.
48476         * m4/signbit.m4: New file.
48477         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
48478         (signbit): New macro.
48479         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
48480         REPLACE_SIGNBIT.
48481         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
48482         REPLACE_FREXPL into math.h.
48483
48484 2007-04-06  Bruno Haible  <bruno@clisp.org>
48485
48486         * modules/isnanf-nolibm-tests: New file.
48487         * tests/test-isnanf.c: New file.
48488
48489         * modules/isnanf-nolibm: New file.
48490         * lib/isnanf.h: New file.
48491         * lib/isnanf.c: New file.
48492         * lib/isnan.c: Consider the USE_FLOAT macro.
48493         * m4/isnanf.m4: New file.
48494
48495 2007-04-06  Bruno Haible  <bruno@clisp.org>
48496
48497         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
48498         (Link): New section.
48499
48500         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
48501
48502 2007-04-06  Bruno Haible  <bruno@clisp.org>
48503
48504         Assume the 'long double' type.
48505         * m4/longdouble.m4: Remove file.
48506         * config/srclist.txt: Don't mention longdouble.m4.
48507         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
48508         * lib/float+.h: Likewise.
48509         * lib/frexp.c: Likewise.
48510         * lib/printf-args.h: Likewise.
48511         * lib/printf-args.c: Likewise.
48512         * lib/printf-frexp.c: Likewise.
48513         * lib/printf-parse.c: Likewise.
48514         * lib/vasnprintf.c: Likewise.
48515         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
48516         * m4/intl.m4: Likewise.
48517         * m4/isnanl.m4: Likewise.
48518         * m4/printf.m4: Likewise.
48519         * m4/printf-frexpl.m4: Likewise.
48520         * m4/vasnprintf.m4: Likewise.
48521         * modules/allocsa (Files): Remove m4/longdouble.m4.
48522         * modules/gettext (Files): Likewise.
48523         * modules/relocatable-prog-wrapper (Files): Likewise.
48524         * modules/vasnprintf (Files): Likewise.
48525         * modules/isnanl (Files): Likewise.
48526         (Include): Simplify.
48527         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
48528         (Include): Simplify.
48529         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
48530         (Include): Simplify.
48531         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
48532         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48533         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
48534         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48535         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
48536         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48537         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
48538         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48539         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
48540         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48541         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
48542         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48543         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
48544         * tests/test-isnanl.c: Likewise.
48545         * tests/test-snprintf-posix.h: Likewise.
48546         * tests/test-sprintf-posix.h: Likewise.
48547         * tests/test-vasnprintf-posix.c: Likewise.
48548         * tests/test-vasnprintf-posix2.c: Likewise.
48549         * tests/test-vasprintf-posix.c: Likewise.
48550
48551 2007-04-06  Bruno Haible  <bruno@clisp.org>
48552
48553         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
48554         * lib/math_.h [__DECC]: Include the overridden include file through
48555         #include_next, outside the double-inclusion guard.
48556         * lib/stdio_.h [__DECC]: Likewise.
48557         * lib/stdlib_.h [__DECC]: Likewise.
48558         * lib/string_.h [__DECC]: Likewise.
48559         * lib/time_.h [__DECC]: Likewise.
48560         * lib/wchar_.h [__DECC]: Likewise.
48561         * lib/wctype_.h [__DECC]: Likewise.
48562         * lib/inttypes_.h [__DECC]: Likewise.
48563         Reported by Albert Chin <china@thewrittenword.com> in
48564         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
48565
48566 2007-04-04  Eric Blake  <ebb9@byu.net>
48567
48568         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
48569         1.5.x.
48570
48571 2007-04-04  Bruno Haible  <bruno@clisp.org>
48572
48573         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
48574         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
48575
48576 2007-04-04  Bruno Haible  <bruno@clisp.org>
48577
48578         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
48579         results for "%010a" of Infinity and NaN.
48580         * tests/test-vasprintf-posix.c (test_function): Likewise.
48581         * tests/test-snprintf-posix.h (test_function): Likewise.
48582         * tests/test-sprintf-posix.h (test_function): Likewise.
48583         * tests/test-fprintf-posix.h (test_function): Remove these tests.
48584         * tests/test-printf-posix.h (test_function): Likewise.
48585         * tests/test-fprintf-posix.out: Update.
48586         Needed for FreeBSD 6.1.
48587
48588 2007-04-04  Bruno Haible  <bruno@clisp.org>
48589
48590         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
48591         directly used by the gnulib modules nor by gnulib-tool.
48592
48593 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
48594
48595         * DEPENDENCIES: Give overall description of version dependency
48596         desirability.  Use more-typical names for apps.
48597         Add shell, coreutils, diffutils, grep, tar, gzip.
48598
48599 2007-04-04  Simon Josefsson  <simon@josefsson.org>
48600
48601         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
48602
48603 2007-04-04  Karl Berry  <karl@gnu.org>
48604
48605         * MODULES.html.sh (func_module): missing '.
48606
48607 2007-04-03  Bruno Haible  <bruno@clisp.org>
48608
48609         * modules/argmatch-tests (Makefile.am): New variable
48610         test_argmatch_LDADD.
48611         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
48612         * modules/array-list-tests (Makefile.am): New variable
48613         test_array_list_LDADD.
48614         * modules/array-oset-tests (Makefile.am): New variable
48615         test_array_oset_LDADD.
48616         * modules/avltree-list-tests (Makefile.am): New variable
48617         test_avltree_list_LDADD.
48618         * modules/avltree-oset-tests (Makefile.am): New variable
48619         test_avltree_oset_LDADD.
48620         * modules/avltreehash-list-tests (Makefile.am): New variable
48621         test_avltreehash_list_LDADD.
48622         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
48623         test_canonicalize_lgpl_LDADD.
48624         * modules/carray-list-tests (Makefile.am): New variable
48625         test_carray_list_LDADD.
48626         * modules/dirname-tests (Makefile.am): New variable
48627         test_dirname_LDADD.
48628         * modules/linked-list-tests (Makefile.am): New variable
48629         test_linked_list_LDADD.
48630         * modules/linkedhash-list-tests (Makefile.am): New variable
48631         test_linkedhash_list_LDADD.
48632         * modules/rbtree-list-tests (Makefile.am): New variable
48633         test_rbtree_list_LDADD.
48634         * modules/rbtree-oset-tests (Makefile.am): New variable
48635         test_rbtree_oset_LDADD.
48636         * modules/rbtreehash-list-tests (Makefile.am): New variable
48637         test_rbtreehash_list_LDADD.
48638         * modules/xvasprintf-tests (Makefile.am): New variable
48639         test_xvasprintf_LDADD.
48640         Reported by Eric Blake.
48641
48642 2007-04-03  Eric Blake  <ebb9@byu.net>
48643
48644         * DEPENDENCIES: Weaken m4 requirements.
48645
48646 2007-04-03  Bruno Haible  <bruno@clisp.org>
48647
48648         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
48649         * modules/isnanl-tests (configure.ac): Likewise.
48650
48651 2007-04-03  Ben Pfaff  <blp@gnu.org>
48652
48653         * modules/iconv_open: Add $(srcdir)/ to source directory
48654         references in Makefile fragments that call gperf, to fix VPATH
48655         builds.
48656
48657 2007-04-03  Bruno Haible  <bruno@clisp.org>
48658
48659         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
48660         * lib/ldexpl.c: Undo last change.
48661
48662 2007-04-03  Bruno Haible  <bruno@clisp.org>
48663
48664         * modules/printf-frexpl (Depends-on): Undo last change.
48665         (Files): Add m4/ldexpl.m4.
48666
48667 2007-04-03  Bruno Haible  <bruno@clisp.org>
48668
48669         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
48670         * modules/isnanl (Link): New section.
48671
48672         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
48673         * modules/frexp (Link): New section.
48674
48675         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
48676         * modules/frexpl (Link): New section.
48677
48678         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
48679         * modules/ldexpl (Link): New section.
48680
48681 2007-04-03  Bruno Haible  <bruno@clisp.org>
48682
48683         * modules/TEMPLATE-EXTENDED: New file.
48684         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
48685
48686 2007-04-03  Bruno Haible  <bruno@clisp.org>
48687
48688         * DEPENDENCIES: New file.
48689         Suggested by Simon Josefsson.
48690
48691 2007-04-03  Bruno Haible  <bruno@clisp.org>
48692
48693         * doc/gnulib.texi: Escape @.
48694
48695 2007-04-03  James Youngman  <jay@gnu.org>
48696         and Paul Eggert  <eggert@cs.ucla.edu>
48697
48698         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
48699         birthtime on all systems that have birthtime, not just those which
48700         use st_birthtimensec rather than st_birthtim.  Putting zero in
48701         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
48702         that the birth time is not available for files on an NFS mount.
48703
48704 2007-04-03  Simon Josefsson  <simon@josefsson.org>
48705
48706         * modules/memxor: Move back from crypto/, suggested by Bruno.
48707         * modules/crypto/hmac-sha1: Fix memxor dependency.
48708
48709         * modules/crypto/gc: Moved from ../.
48710
48711 2007-04-02  Eric Blake  <ebb9@byu.net>
48712
48713         * lib/ldexpl.c (includes): Avoid libm.
48714
48715         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
48716
48717 2007-04-02  Bruno Haible  <bruno@clisp.org>
48718
48719         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
48720         on IRIX.
48721
48722 2007-04-02  Bruno Haible  <bruno@clisp.org>
48723
48724         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
48725         x86 or x86_64 platforms running MacOS X.
48726         Reported by Ryan Schmidt <@ryandesign.com>.
48727
48728 2007-04-02  Bruno Haible  <bruno@clisp.org>
48729
48730         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
48731         i386.
48732
48733 2007-04-01  Simon Josefsson  <simon@josefsson.org>
48734
48735         * modules/crypto/arcfour: Moved from ../.
48736         * modules/crypto/arcfour-tests: Moved from ../.
48737         * modules/crypto/arctwo: Moved from ../.
48738         * modules/crypto/arctwo-tests: Moved from ../.
48739         * modules/crypto/des: Moved from ../.
48740         * modules/crypto/des-tests: Moved from ../.
48741         * modules/crypto/gc-arcfour: Moved from ../.
48742         * modules/crypto/gc-arcfour-tests: Moved from ../.
48743         * modules/crypto/gc-arctwo: Moved from ../.
48744         * modules/crypto/gc-arctwo-tests: Moved from ../.
48745         * modules/crypto/gc-des: Moved from ../.
48746         * modules/crypto/gc-des-tests: Moved from ../.
48747         * modules/crypto/gc-hmac-md5: Moved from ../.
48748         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
48749         * modules/crypto/gc-hmac-sha1: Moved from ../.
48750         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
48751         * modules/crypto/gc-md2: Moved from ../.
48752         * modules/crypto/gc-md2-tests: Moved from ../.
48753         * modules/crypto/gc-md4: Moved from ../.
48754         * modules/crypto/gc-md4-tests: Moved from ../.
48755         * modules/crypto/gc-md5: Moved from ../.
48756         * modules/crypto/gc-md5-tests: Moved from ../.
48757         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
48758         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
48759         * modules/crypto/gc-random: Moved from ../.
48760         * modules/crypto/gc-rijndael: Moved from ../.
48761         * modules/crypto/gc-rijndael-tests: Moved from ../.
48762         * modules/crypto/gc-sha1: Moved from ../.
48763         * modules/crypto/gc-sha1-tests: Moved from ../.
48764         * modules/crypto/gc-tests: Moved from ../.
48765         * modules/crypto/hmac-md5: Moved from ../.
48766         * modules/crypto/hmac-md5-tests: Moved from ../.
48767         * modules/crypto/hmac-sha1: Moved from ../.
48768         * modules/crypto/hmac-sha1-tests: Moved from ../.
48769         * modules/crypto/md2: Moved from ../.
48770         * modules/crypto/md2-tests: Moved from ../.
48771         * modules/crypto/md4: Moved from ../.
48772         * modules/crypto/md4-tests: Moved from ../.
48773         * modules/crypto/md5: Moved from ../.
48774         * modules/crypto/md5-tests: Moved from ../.
48775         * modules/crypto/memxor: Moved from ../.
48776         * modules/crypto/rijndael: Moved from ../.
48777         * modules/crypto/rijndael-tests: Moved from ../.
48778         * modules/crypto/sha1: Moved from ../.
48779
48780 2007-03-30  James Youngman  <jay@gnu.org>
48781
48782         * tests/test-stat-time.c (prepare_test): use chmod() rather than
48783         rename() to change the ctime of a file (because ctime is unaffected
48784         by rename on jfs2 on AIX 5.1).
48785         (main): Start by doing cleanup, in case a previous run failed leaving
48786         test files behind.
48787
48788 2007-03-31  Bruno Haible  <bruno@clisp.org>
48789
48790         Support old proprietary implementations of iconv.
48791         * modules/iconv_open: New file.
48792         * lib/iconv_.h: New file.
48793         * m4/iconv_h.m4: New file.
48794         * lib/iconv_open.c: New file.
48795         * lib/iconv_open-aix.gperf: New file.
48796         * lib/iconv_open-hpux.gperf: New file.
48797         * lib/iconv_open-irix.gperf: New file.
48798         * lib/iconv_open-osf.gperf: New file.
48799         * m4/iconv_open.m4: New file.
48800         * modules/linebreak (Depends-on): Add iconv_open.
48801         * modules/striconv (Depends-on): Likewise.
48802         * modules/striconveh (Depends-on): Likewise.
48803         * modules/unicodeio (Depends-on): Likewise.
48804         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
48805         (iconv_t)(-1).
48806         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
48807         conversion if cd is (iconv_t)(-1).
48808         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
48809         is not possible.
48810
48811 2007-03-31  Bruno Haible  <bruno@clisp.org>
48812
48813         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
48814         work on Solaris either. Protect also second use of "autodetect_jp".
48815
48816 2007-03-31  Bruno Haible  <bruno@clisp.org>
48817
48818         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
48819         the function is not present.
48820
48821 2007-03-31  Bruno Haible  <bruno@clisp.org>
48822
48823         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
48824         the function is not present.
48825
48826 2007-03-31  Bruno Haible  <bruno@clisp.org>
48827
48828         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
48829         a bug in HP-UX iconv_open().
48830
48831 2007-03-31  Bruno Haible  <bruno@clisp.org>
48832
48833         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
48834         (Mathematics <math.h>): New section, add fpieee.
48835         (Input/output <stdio.h>): Add fseterr.
48836         (Mathematics <math.h>): New section, add printf-frexp.
48837         (Container data structures): Add sublist.
48838         (Core language properties): Add fpucw, inline.
48839         (Functions for greatest-width integer types <inttypes.h>): Add
48840         imaxabs, imaxdiv, inttypes.
48841         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
48842         isnanl-nolibm, ldexp.
48843         (Mathematics <math.h>): New section, add printf-frexpl.
48844         (Support for systems lacking POSIX:2001): Add fprintf-posix,
48845         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
48846         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
48847         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
48848         (Unicode string functions): Add unistr/u*-mbtoucr.
48849         (Java): Add javacomp-script, javaexec-script.
48850         (C#): Add csharpcomp-script, csharpexec-script.
48851         (Support for building libraries and executables): Add havelib,
48852         relocatable-*.
48853         (Support for maintaining and releasing projects): Renamed from
48854         'Support for maintaining and release projects'. Add announce-gen.
48855
48856 2007-03-31  Bruno Haible  <bruno@clisp.org>
48857
48858         * README: Talk primarily about git.
48859         (git and CVS): Renamed from CVS.
48860         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
48861         gnulib is available through git.
48862         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
48863
48864 2007-03-30  Bruno Haible  <bruno@clisp.org>
48865
48866         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
48867         * lib/poll_.h: Likewise.
48868         * lib/stat_.h: Likewise.
48869         * lib/sys_time_.h: Likewise.
48870         * lib/sysexit_.h: Likewise.
48871         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
48872         * lib/stdbool_.h: Likewise.
48873         * lib/byteswap_.h: Add double-inclusion guard.
48874
48875 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
48876
48877         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
48878
48879 2007-03-30  Karl Berry  <karl@gnu.org>
48880
48881         * config/srclist-update: double space after USA in the license
48882         substitution, since that's how it's usually (?) written.
48883
48884 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
48885
48886         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
48887         reported by Bruno Haible.
48888
48889 2007-03-29  Bruno Haible  <bruno@clisp.org>
48890
48891         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
48892         a bug in AIX iconv().
48893
48894 2007-03-29  Bruno Haible  <bruno@clisp.org>
48895
48896         * modules/ldexpl-tests: New file.
48897         * tests/test-ldexpl.c: New file.
48898
48899 2007-03-29  Bruno Haible  <bruno@clisp.org>
48900
48901         * lib/ldexpl.c: Include fpucw.h.
48902         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
48903         multiplication.
48904         * modules/ldexpl (Depends-on): Add fpucw.
48905
48906 2007-03-29  Bruno Haible  <bruno@clisp.org>
48907
48908         * modules/ldexpl: New file.
48909         * m4/ldexpl.m4: New file.
48910         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
48911         set.
48912         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
48913         REPLACE_LDEXPL.
48914         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
48915         REPLACE_LDEXPL.
48916         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
48917         gl_FUNC_LDEXPL_WORKS.
48918         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
48919         * modules/mathl (Files): Remove lib/ldexpl.c.
48920         (Depends-on): Add ldexpl.
48921
48922 2007-03-29  Bruno Haible  <bruno@clisp.org>
48923
48924         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
48925
48926 2007-03-29  Bruno Haible  <bruno@clisp.org>
48927
48928         * tests/test-striconveh.c (main): Don't assume that a direct conversion
48929         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
48930         and possibly also HP-UX.
48931         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
48932         work on AIX, IRIX, HP-UX, OSF/1.
48933         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
48934         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
48935         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
48936         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
48937         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
48938         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
48939
48940 2007-03-29  Bruno Haible  <bruno@clisp.org>
48941
48942         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
48943
48944 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
48945
48946         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
48947         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
48948
48949 2007-03-29  Eric Blake  <ebb9@byu.net>
48950
48951         * lib/acl-internal.h: Remove redundant include.
48952         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
48953         Cygwin when a file is locked.
48954
48955 2007-03-29  Bruno Haible  <bruno@clisp.org>
48956
48957         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
48958         file.
48959         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
48960
48961 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
48962
48963         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
48964         try to remove a parent directory if the child couldn't be removed
48965         (except for the first rmdir, which could fail because the child
48966         doesn't exist).  Problem reported by Jeff Blaine in
48967         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
48968
48969 2007-03-28  Bruno Haible  <bruno@clisp.org>
48970
48971         * lib/striconveh.c (utf8conv_carefully): New function.
48972         (mem_cd_iconveh_internal): Invoke it.
48973
48974 2007-03-28  Bruno Haible  <bruno@clisp.org>
48975
48976         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
48977         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
48978         input.
48979         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
48980         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
48981         unistr/u8-uctomb.
48982
48983 2007-03-28  Bruno Haible  <bruno@clisp.org>
48984
48985         * modules/unistr/u8-mbtoucr: New file.
48986         * lib/unistr/u8-mbtoucr.c: New file.
48987         * modules/unistr/u16-mbtoucr: New file.
48988         * lib/unistr/u16-mbtoucr.c: New file.
48989         * modules/unistr/u16-mbtoucr: New file.
48990         * lib/unistr/u16-mbtoucr.c: New file.
48991         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
48992
48993 2007-03-27  Simon Josefsson  <simon@josefsson.org>
48994             Bruno Haible  <bruno@clisp.org>
48995
48996         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
48997         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
48998         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
48999
49000         * m4/stdio_h.m4: Add stubs for vasprintf too.
49001
49002         * modules/stdio: Support vasprintf in sed command.
49003
49004         * modules/vasprintf: Depend on stdio for prototypes.  Remove
49005         vasprintf.h.  Add stdio module indicator.
49006
49007         * lib/stdio_.h: Declare asprintf and vasprintf, based on
49008         vasprintf.h.
49009
49010         * lib/vasprintf.h: File removed.
49011
49012         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
49013         * lib/vasprintf.c: Ditto.
49014         * lib/xvasprintf.c: Ditto.
49015         * tests/test-vasprintf-posix.c: Ditto.
49016         * tests/test-vasprintf.c: Ditto.
49017
49018 2007-03-27  Bruno Haible  <bruno@clisp.org>
49019
49020         Make vasnprintf multithread-safe.
49021         * lib/vasnprintf.c (decimal_point_char): New function.
49022         (VASNPRINTF): Use it.
49023         Suggested by Simon Josefsson.
49024
49025 2007-03-27  Eric Blake  <ebb9@byu.net>
49026
49027         Support sub-second birthtime on cygwin.
49028         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
49029         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
49030         (get_stat_birthtime): Also work with st_birthtim.
49031
49032 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
49033
49034         * lib/stat-time.h (USE_BIRTHTIME): Remove.
49035         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
49036         (get_stat_birthtime_ns): Do not try to use "spare" fields.
49037         (get_stat_birthtime_ns): Simplify compile-time tests.
49038         (get_stat_birthtime): Change the API to look like
49039         get_stat_mtime etc., except return a negative tv_nsec on error.
49040         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
49041         Don't check for "spare" fields.
49042         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
49043         or for struct stat.st_birthtime, as these tests aren't used.
49044         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
49045
49046 2007-03-27  Bruno Haible  <bruno@clisp.org>
49047
49048         * lib/stat-time.h: Include <sys/stat.h>.
49049
49050 2007-03-27  James Youngman  <jay@gnu.org>
49051
49052         * lib/stat-time.h (get_stat_birthtime): New function for
49053           retrieving st_birthtime as provided by UFS2 (hence *BSD).
49054         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
49055           and its variants.
49056         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
49057         * modules/stat-time-test: New file.
49058         * tests/test-stat-time.c: New test, devised by Bruno Haible.
49059
49060 2007-03-26  Bruno Haible  <bruno@clisp.org>
49061
49062         Better support of signalling NaNs.
49063         * lib/atanl.c: Include isnanl.h.
49064         (atanl): Perform test for NaN at the beginning of the function and
49065         through a call to isnanl.
49066         * lib/cosl.c: Include isnanl.h.
49067         (cosl): Perform test for NaN at the beginning of the function and
49068         through a call to isnanl.
49069         * lib/ldexpl.c: Include isnanl.h.
49070         (ldexpl): Perform test for NaN through a call to isnanl.
49071         * lib/logl.c: Include isnanl.h.
49072         (logl): Perform test for NaN at the beginning of the function and
49073         through a call to isnanl.
49074         * lib/sinl.c: Include isnanl.h.
49075         (sinl): Perform test for NaN at the beginning of the function and
49076         through a call to isnanl.
49077         * lib/sqrtl.c: Include isnanl.h.
49078         (sqrtl): Perform test for NaN at the beginning of the function and
49079         through a call to isnanl.
49080         * lib/tanl.c: Include isnanl.h.
49081         (tanl): Perform test for NaN at the beginning of the function and
49082         through a call to isnanl.
49083         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
49084         * modules/mathl (Depends-on): Add isnanl.
49085
49086 2007-03-26  Eric Blake  <ebb9@byu.net>
49087
49088         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
49089         regression in logic sense of previous patch.
49090
49091 2007-03-26  Bruno Haible  <bruno@clisp.org>
49092
49093         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
49094         unportable shell command "if ! ...".
49095         Reported by Ralf Wildenhues.
49096
49097 2007-03-25  Bruno Haible  <bruno@clisp.org>
49098
49099         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
49100         <sysexits.h> file, and only add EX_CONFIG.
49101         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
49102         absolute file name and whether it is sufficient. Substitute also
49103         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
49104         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
49105         ABSOLUTE_SYSEXITS_H into sysexits.h.
49106
49107 2007-03-25  Bruno Haible  <bruno@clisp.org>
49108
49109         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
49110         hints is NULL.
49111
49112 2007-03-25  Bruno Haible  <bruno@clisp.org>
49113
49114         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
49115         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
49116
49117 2007-03-25  Bruno Haible  <bruno@clisp.org>
49118
49119         * lib/vasnprintf.c: Include langinfo.h.
49120         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
49121         multithread-safe.
49122         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
49123         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
49124         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49125         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49126         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49127         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49128         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49129         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
49130         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49131         Reported by Simon Josefsson.
49132
49133 2007-03-25  Bruno Haible  <bruno@clisp.org>
49134
49135         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
49136         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
49137         * modules/vasnprintf (Depends-on): Add stdint.
49138
49139 2007-03-25  Bruno Haible  <bruno@clisp.org>
49140
49141         * modules/fpieee: New file.
49142         * m4/fpieee.m4: New file.
49143         * modules/isnan-nolibm (Depends-on): Add fpieee.
49144         * modules/isnanl-nolibm (Depends-on): Add fpieee.
49145         * modules/isnanl (Depends-on): Add fpieee.
49146
49147 2007-03-25  Bruno Haible  <bruno@clisp.org>
49148
49149         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
49150
49151 2007-03-25  Bruno Haible  <bruno@clisp.org>
49152
49153         Avoid test failures on IRIX 6.5.
49154         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
49155         (main): Use it.
49156         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
49157         macros.
49158         (main): Use them.
49159
49160 2007-03-25  Bruno Haible  <bruno@clisp.org>
49161
49162         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
49163         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
49164         exists but doesn't work.
49165         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
49166         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
49167         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
49168         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
49169
49170 2007-03-25  Bruno Haible  <bruno@clisp.org>
49171
49172         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
49173         returns inf. Needed on IRIX 6.5.
49174
49175 2007-03-25  Bruno Haible  <bruno@clisp.org>
49176
49177         * tests/test-frexpl.c: Include isnanl-nolibm.h.
49178         (main): Use isnanl instead of x != x idiom.
49179         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
49180
49181         * tests/test-frexp.c: Include isnan.h.
49182         (main): Use isnan instead of x != x idiom.
49183         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
49184
49185 2007-03-25  Bruno Haible  <bruno@clisp.org>
49186
49187         * tests/test-frexp.c (NaN): New function/macro.
49188         (main): Use it instead of 0.0 / 0.0.
49189         * tests/test-isnan.c (NaN): New function/macro.
49190         (main): Use it instead of 0.0 / 0.0.
49191         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
49192         (test_function): Use it instead of 0.0 / 0.0.
49193         * tests/test-vasprintf-posix.c (NaN): New function/macro.
49194         (test_function): Use it instead of 0.0 / 0.0.
49195         * tests/test-snprintf-posix.h (NaN): New function/macro.
49196         (test_function): Use it instead of 0.0 / 0.0.
49197         * tests/test-sprintf-posix.h (NaN): New function/macro.
49198         (test_function): Use it instead of 0.0 / 0.0.
49199         * tests/test-fprintf-posix.h (NaN): New function/macro.
49200         (test_function): Use it instead of 0.0 / 0.0.
49201         * tests/test-printf-posix.h (NaN): New function/macro.
49202         (test_function): Use it instead of 0.0 / 0.0.
49203
49204         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
49205
49206 2007-03-25  Bruno Haible  <bruno@clisp.org>
49207
49208         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
49209
49210 2007-03-25  Bruno Haible  <bruno@clisp.org>
49211
49212         * lib/regexec.c (merge_state_with_log): Make static.
49213
49214 2007-03-25  Bruno Haible  <bruno@clisp.org>
49215
49216         * lib/trigl.c (kernel_rem_pio2): Make static.
49217
49218 2007-03-25  Bruno Haible  <bruno@clisp.org>
49219
49220         * lib/sincosl.c (sincosl_table): Make static.
49221
49222 2007-03-25  Bruno Haible  <bruno@clisp.org>
49223
49224         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
49225         if the compiler does not support C99.
49226
49227 2007-03-25  Bruno Haible  <bruno@clisp.org>
49228
49229         * modules/time (Makefile.am): Ensure all rule action lines start with a
49230         tab.
49231
49232 2007-03-24  Bruno Haible  <bruno@clisp.org>
49233
49234         * modules/tsearch-tests: New file.
49235         * tests/test-tsearch.sh: New file.
49236         * tests/test-tsearch.c: New file, mostly copied from glibc.
49237
49238         * modules/search-tests: New file.
49239         * tests/test-search.c: New file.
49240
49241         * modules/search: New file.
49242         * lib/search_.h: New file, incorporating lib/tsearch.h.
49243         * m4/search_h.m4: New file.
49244         * lib/tsearch.h: Remove file.
49245         * lib/tsearch.c: Include search.h instead of tsearch.h.
49246         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
49247         HAVE_TSEARCH.
49248         * modules/tsearch (Files): Remove lib/tsearch.h.
49249         (Depends-on): Add search.
49250         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
49251         (Include): Change tsearch.h into search.h.
49252
49253 2007-03-24  Bruno Haible  <bruno@clisp.org>
49254
49255         * modules/fpucw: New file.
49256         * lib/fpucw.h: New file.
49257         * lib/frexp.c: Include fpucw.h.
49258         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
49259         (FUNC): Use them.
49260         * lib/printf-frexp.c: Include fpucw.h.
49261         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
49262         (FUNC): Use them.
49263         * lib/vasnprintf.c: Include fpucw.h.
49264         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
49265         'long double' calculations.
49266         * tests/test-frexpl.c: Include fpucw.h.
49267         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
49268         * tests/test-printf-frexpl.c: Include fpucw.h.
49269         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
49270         * modules/frexpl (Depends-on): Add fpucw.
49271         * modules/printf-frexpl (Depends-on): Likewise.
49272         * modules/fprintf-posix (Depends-on): Likewise.
49273         * modules/snprintf-posix (Depends-on): Likewise.
49274         * modules/sprintf-posix (Depends-on): Likewise.
49275         * modules/vasnprintf-posix (Depends-on): Likewise.
49276         * modules/vasprintf-posix (Depends-on): Likewise.
49277         * modules/vfprintf-posix (Depends-on): Likewise.
49278         * modules/vsnprintf-posix (Depends-on): Likewise.
49279         * modules/vsprintf-posix (Depends-on): Likewise.
49280         * modules/frexpl-tests (Depends-on): Likewise.
49281         * modules/printf-frexpl-tests (Depends-on): Likewise.
49282
49283 2007-03-24  Bruno Haible  <bruno@clisp.org>
49284
49285         * lib/float+.h: New file.
49286         * lib/isnan.c: Include float+.h.
49287         (SIZE): New macro.
49288         (FUNC): Compare only SIZE bytes of the value.
49289         * lib/vasnprintf.c: Include float+.h.
49290         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
49291         SIZEOF_LDBL or SIZEOF_DBL bytes.
49292         * modules/isnan-nolibm (Files): Add lib/float+.h.
49293         * modules/isnanl-nolibm (Files): Add lib/float+.h.
49294         * modules/isnanl (Files): Add lib/float+.h.
49295         * modules/vasnprintf (Files): Add lib/float+.h.
49296
49297 2007-03-24  Bruno Haible  <bruno@clisp.org>
49298
49299         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
49300         include isnanl-nolibm.h.
49301
49302 2007-03-24  Bruno Haible  <bruno@clisp.org>
49303
49304         * tests/test-read-file.c (main): Don't produce spurious output for
49305         expected situations. Make the test fail if it encountered unexpected
49306         results.
49307
49308 2007-03-24  Bruno Haible  <bruno@clisp.org>
49309
49310         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
49311         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
49312
49313 2007-03-24  Bruno Haible  <bruno@clisp.org>
49314
49315         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
49316
49317 2007-03-24  Bruno Haible  <bruno@clisp.org>
49318
49319         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
49320         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
49321
49322         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
49323         * modules/utf8-ucs4: Turn into a symbolic link to module
49324         unistr/u8-mbtouc.
49325
49326         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
49327         utf8-ucs4-unsafe.
49328         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
49329         unistr/u8-mbtouc-unsafe.
49330
49331         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
49332         * modules/utf16-ucs4: Turn into a symbolic link to module
49333         unistr/u16-mbtouc.
49334
49335         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
49336         utf16-ucs4-unsafe.
49337         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
49338         unistr/u16-mbtouc-unsafe.
49339
49340         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
49341         * modules/ucs4-utf8: Turn into a symbolic link to module
49342         unistr/u8-ubtomb.
49343
49344         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
49345         * modules/ucs4-utf16: Turn into a symbolic link to module
49346         unistr/u16-ubtomb.
49347
49348 2007-03-24  Bruno Haible  <bruno@clisp.org>
49349
49350         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
49351         Enable the function only if HAVE_INLINE.
49352         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
49353         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
49354         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
49355         Enable the function only if HAVE_INLINE.
49356         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
49357         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
49358         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
49359         Enable the function only if HAVE_INLINE.
49360         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
49361         Enable the function only if HAVE_INLINE.
49362         * modules/utf8-ucs4: Update.
49363         * modules/utf8-ucs4-unsafe: Update.
49364         * modules/utf16-ucs4: Update.
49365         * modules/utf16-ucs4-unsafe: Update.
49366         * modules/ucs4-utf8: Update.
49367         * modules/ucs4-utf16: Update.
49368
49369 2007-03-24  Bruno Haible  <bruno@clisp.org>
49370
49371         * lib/utf8-ucs4.h: Remove file.
49372         * lib/utf8-ucs4-unsafe.h: Remove file.
49373         * lib/utf16-ucs4.h: Remove file.
49374         * lib/utf16-ucs4-unsafe.h: Remove file.
49375         * lib/ucs4-utf8.h: Remove file.
49376         * lib/ucs4-utf16.h: Remove file.
49377         * lib/unistr.h: Include their previous contents.
49378         * m4/utf-ucs4.m4: Remove file.
49379         * m4/ucs4-utf.m4: Remove file.
49380         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
49381         (Depends-on): Add unistr/base.
49382         (configure.ac): Remove gl_UTF_UCS4.
49383         (Makefile.am): Update.
49384         (Include): Change to unistr.h.
49385         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
49386         (Depends-on): Add unistr/base.
49387         (configure.ac): Remove gl_UTF_UCS4.
49388         (Makefile.am): Update.
49389         (Include): Change to unistr.h.
49390         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
49391         (Depends-on): Add unistr/base.
49392         (configure.ac): Remove gl_UTF_UCS4.
49393         (Makefile.am): Update.
49394         (Include): Change to unistr.h.
49395         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
49396         (Depends-on): Add unistr/base.
49397         (configure.ac): Remove gl_UTF_UCS4.
49398         (Makefile.am): Update.
49399         (Include): Change to unistr.h.
49400         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
49401         (Depends-on): Add unistr/base.
49402         (configure.ac): Remove gl_UCS4_UTF.
49403         (Makefile.am): Update.
49404         (Include): Change to unistr.h.
49405         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
49406         (Depends-on): Add unistr/base.
49407         (configure.ac): Remove gl_UCS4_UTF.
49408         (Makefile.am): Update.
49409         (Include): Change to unistr.h.
49410         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
49411         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
49412         utf8-ucs4-unsafe.h.
49413         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
49414         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
49415         utf16-ucs4-unsafe.h.
49416         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
49417         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
49418         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
49419         * lib/unistr/u8-strchr.c: Likewise.
49420         * lib/unistr/u8-strrchr.c: Likewise.
49421         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
49422         * lib/unistr/u16-strchr.c: Likewise.
49423         * lib/unistr/u16-strrchr.c: Likewise.
49424         * lib/striconveh.c: Update.
49425         * lib/linebreak.c: Update.
49426
49427 2007-03-24  Bruno Haible  <bruno@clisp.org>
49428
49429         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
49430         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
49431
49432 2007-03-22  Bruno Haible  <bruno@clisp.org>
49433
49434         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
49435
49436 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
49437
49438         * MODULES.html.sh (File system functions): New module write-any-file.
49439         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
49440         * m4/write-any-file.m4: New files.
49441
49442 2007-03-23  Eric Blake  <ebb9@byu.net>
49443
49444         * gnulib-tool: Rearrange space-tab sequences, since some editors
49445         like to eat them.
49446
49447 2007-03-23  Eric Blake  <ebb9@byu.net>
49448
49449         * lib/version-etc.c (version_etc_va): Update license wording to
49450         be more concise.  Recommended by Richard Stallman.
49451
49452 2007-03-22  Bruno Haible  <bruno@clisp.org>
49453
49454         * lib/poll.c (MSG_PEEK): New fallback definition.
49455
49456 2007-03-22  Bruno Haible  <bruno@clisp.org>
49457
49458         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
49459         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
49460         (main): Update.
49461         Fixes a compilation error on BeOS.
49462
49463 2007-03-22  Bruno Haible  <bruno@clisp.org>
49464
49465         * modules/frexpl-tests: New file.
49466         * tests/test-frexpl.c: New file.
49467
49468         * modules/frexpl: New file.
49469         * m4/frexpl.m4: New file.
49470         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
49471         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
49472         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
49473         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
49474         (Depends-on): Add frexpl. Remove isnanl-nolibm.
49475         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
49476
49477 2007-03-22  Bruno Haible  <bruno@clisp.org>
49478
49479         * lib/frexpl.c: Share code with lib/frexp.c.
49480         * modules/mathl (Files): Add lib/frexp.c.
49481         (Depends-on): Add isnanl-nolibm.
49482
49483 2007-03-22  Bruno Haible  <bruno@clisp.org>
49484
49485         * modules/printf-frexp (Files): Add m4/frexp.m4.
49486         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
49487         only if the found frexp function actually works.
49488
49489 2007-03-22  Bruno Haible  <bruno@clisp.org>
49490
49491         * lib/frexp.c: Remove older implementation that uses divisions.
49492
49493 2007-03-21  Bruno Haible  <bruno@clisp.org>
49494
49495         * modules/frexp-tests: New file.
49496         * tests/test-frexp.c: New file.
49497
49498         * modules/frexp: New file.
49499         * lib/frexp.c: New file.
49500         * m4/frexp.m4: New file.
49501         * lib/math_.h (frexp): New declaration.
49502         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
49503         REPLACE_FREXP.
49504         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
49505
49506 2007-03-21  Bruno Haible  <bruno@clisp.org>
49507
49508         * modules/isnanl-tests: New file.
49509         * tests/test-isnanl.c: New file.
49510
49511         * modules/isnanl: New file.
49512         * lib/isnanl.h: New file.
49513         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
49514         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
49515         gl_FUNC_ISNANL_WORKS.
49516         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
49517         New macros.
49518
49519 2007-03-21  Bruno Haible  <bruno@clisp.org>
49520
49521         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
49522         lib/isnanl.h.
49523         (Include): Update.
49524         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
49525         * lib/vasnprintf.c: Update.
49526         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
49527         tests/test-isnanl.h, remove tests/test-isnanl.c.
49528         (Makefile.am): Update.
49529         * tests/test-isnanl-nolibm.c: New file.
49530         * tests/test-isnanl.h: New file.
49531         * tests/test-isnanl.c: Remove file.
49532
49533 2007-03-21  Jim Meyering  <jim@meyering.net>
49534
49535         When trying to open ".", treat ESTALE like EACCES.
49536         * lib/savewd.c (savewd_save): Resort to forking not just upon
49537         failure with EACCES, but also when errno is ESTALE.
49538
49539 2007-03-20  Bruno Haible  <bruno@clisp.org>
49540
49541         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
49542         Needed on AIX 5.1. Reported by Matthew Woehlke.
49543
49544 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
49545
49546         Suggestions by Bruno Haible:
49547         * lib/acl-internal.h: Include "gettext.h" rather than rolling
49548         our own.
49549         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
49550         * modules/acl (Depends-on): Add gettext.
49551
49552 2007-03-19  Bruno Haible  <bruno@clisp.org>
49553
49554         * modules/iconvme: Remove file.
49555         * lib/iconvme.h: Remove file.
49556         * lib/iconvme.c: Remove file.
49557         * m4/iconvme.m4: Remove file.
49558
49559 2007-03-19  Bruno Haible  <bruno@clisp.org>
49560
49561         * doc/relocatable-maint.texi: Break long shell script line.
49562         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
49563
49564 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
49565
49566         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
49567         handle file_has_acl.
49568         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
49569         * lib/acl.c: Move header inclusions and related macro defns into
49570         lib/acl-internal.h.
49571         (S_ISLNK): Remove defn, since that's now done for us.
49572         (file_has_acl): Move to lib/file-has-acl.c.
49573         Call acl_trivial if available.  This is the crucial part of the fix.
49574         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
49575         shared within the library.  Rewrite a bit, partly to make it compatible
49576         with the GNU coding style.
49577         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
49578         Remove unnecessary double-quotes.
49579         Don't test for acl_to_text; the build will catch that.
49580         Replace acl_entries if it doesn't exist and it is needed.
49581         Check for -lsec and acl_trivial (as used on Solaris 10).
49582         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
49583         lib/file-has-acl.c.
49584         (Depends-on): Add sys_stat, for S_ISLNK.
49585
49586 2007-03-19  Ben Pfaff  <blp@gnu.org>
49587
49588         * doc/gnulib.texi: Fix typos.
49589         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
49590
49591 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
49592
49593         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
49594         If size is zero here, buf must be zero.
49595
49596 2007-03-19  Simon Josefsson  <simon@josefsson.org>
49597
49598         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
49599         <bruno@clisp.org>.
49600
49601 2007-03-18  Bruno Haible  <bruno@clisp.org>
49602
49603         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
49604         Suggested by Eric Blake.
49605
49606 2007-03-18  Ben Pfaff  <blp@gnu.org>
49607
49608         * doc/relocatable.texi: Recommend using as prefix a directory
49609         that does not exist and will never be created.  Based on
49610         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
49611         and others.
49612
49613 2007-03-17  Bruno Haible  <bruno@clisp.org>
49614
49615         * lib/fchownat.c: Include lchown.h.
49616
49617 2007-03-17  Bruno Haible  <bruno@clisp.org>
49618
49619         Fix endless loop when the given allocated size was > INT_MAX.
49620         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
49621         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
49622         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
49623         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
49624         * lib/sprintf.c (sprintf): Likewise.
49625
49626 2007-03-17  Bruno Haible  <bruno@clisp.org>
49627
49628         * tests/test-argp-2.sh (func_compare): Output a context diff.
49629
49630 2007-03-17  Bruno Haible  <bruno@clisp.org>
49631
49632         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
49633         locale's decimal-point character.
49634
49635 2007-03-17  Bruno Haible  <bruno@clisp.org>
49636
49637         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
49638         before comparing it. Needed because on some platforms (e.g. x86) a
49639         'long double' occupies less bytes than sizeof (long double).
49640
49641 2007-03-17  Bruno Haible  <bruno@clisp.org>
49642
49643         * tests/test-crc.c (main): Make printf statements 64-bit clean.
49644         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
49645         * tests/test-getaddrinfo.c (simple): Likewise.
49646         * tests/test-read-file.c (main): Likewise.
49647
49648 2007-03-17  Bruno Haible  <bruno@clisp.org>
49649
49650         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
49651
49652 2007-03-17  Bruno Haible  <bruno@clisp.org>
49653
49654         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
49655         unused variable.
49656
49657 2007-03-17  Bruno Haible  <bruno@clisp.org>
49658
49659         * tests/test-c-strcasecmp.c: Include c-strcase.h.
49660         * tests/test-c-strncasecmp.c: Likewise.
49661
49662 2007-03-17  Bruno Haible  <bruno@clisp.org>
49663
49664         * modules/stdlib (Depends-on): Add unistd.
49665         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
49666         Needed for MacOS X 10.3.
49667
49668 2007-03-17  Bruno Haible  <bruno@clisp.org>
49669
49670         * lib/unistr/u-strdup.h: Include <stdlib.h>.
49671
49672 2007-03-17  Bruno Haible  <bruno@clisp.org>
49673
49674         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
49675
49676 2007-03-17  Bruno Haible  <bruno@clisp.org>
49677
49678         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
49679         to reflect files copied from gnulib (with or without modifications).
49680         Suggested by Jim Meyering.
49681
49682 2007-03-17  Eric Blake  <ebb9@byu.net>
49683
49684         * NEWS: Document stdlib change from 2007-02-18.
49685
49686 2007-03-17  Jim Meyering  <jim@meyering.net>
49687
49688         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
49689         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
49690         someone uses a name containing shell meta-characters.
49691         Reported by Alfred M. Szmidt.
49692
49693         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
49694
49695 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
49696
49697         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
49698         and copy gettext configuration files only if configure.ac contains
49699         a use of AM_GNU_GETTEXT_VERSION.
49700
49701 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
49702
49703         * build-aux/bootstrap (gnulib_name): New variable.
49704         (gnulib_tool_options): Use it.
49705
49706 2007-03-13  Simon Josefsson  <simon@josefsson.org>
49707
49708         * tests/test-des.c: Use new namespace.
49709
49710 2007-03-15  Bruno Haible  <bruno@clisp.org>
49711
49712         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
49713         Reported by James Youngman <jay@gnu.org>.
49714
49715 2007-03-15  Bruno Haible  <bruno@clisp.org>
49716
49717         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
49718         declared prototype. Needed with cc on OSF/1 5.1.
49719
49720 2007-03-15  Bruno Haible  <bruno@clisp.org>
49721
49722         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
49723         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
49724         (struct gl_list_implementation): Add dispose_fn argument to the
49725         'create_empty', 'create' methods.
49726         (struct gl_list_impl_base): Add field 'dispose_fn'.
49727         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
49728         argument.
49729         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
49730         dispose_fn argument.
49731         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
49732         dispose_fn on the dropped values.
49733         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
49734         dispose_fn argument.
49735         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
49736         dropped values.
49737         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
49738         (gl_tree_remove_node): Call dispose_fn on the dropped value.
49739         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
49740         (gl_tree_remove_node): Call dispose_fn on the dropped value.
49741         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
49742         argument.
49743         (gl_tree_list_free): Call dispose_fn on the dropped values.
49744         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
49745         the dropped values.
49746         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
49747         Add dispose_fn argument.
49748         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
49749         Call dispose_fn on the dropped values.
49750         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
49751         Add dispose_fn argument.
49752         (gl_sublist_create): Initialize the 'dispose_fn' field.
49753         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
49754         * tests/test-array_list.c (main): Update.
49755         * tests/test-carray_list.c (main): Update.
49756         * tests/test-avltree_list.c (main): Update.
49757         * tests/test-rbtree_list.c (main): Update.
49758         * tests/test-avltreehash_list.c (main): Update.
49759         * tests/test-rbtreehash_list.c (main): Update.
49760         * tests/test-linked_list.c (main): Update.
49761         * tests/test-linkedhash_list.c (main): Update.
49762         * tests/test-array_oset.c (main): Update.
49763
49764 2007-03-15  Bruno Haible  <bruno@clisp.org>
49765
49766         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
49767         (gl_oset_create_empty): Add dispose_fn argument.
49768         (struct gl_oset_implementation): Add dispose_fn argument to
49769         'create_empty' method.
49770         (struct gl_oset_impl_base): Add dispose_fn field.
49771         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
49772         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
49773         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
49774         values.
49775         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
49776         (gl_tree_oset_free): Call dispose_fn on the dropped values.
49777         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
49778         dropped value.
49779         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
49780         dropped value.
49781         * tests/test-array_oset.c (main): Update.
49782         * tests/test-avltree_oset.c (main): Update.
49783         * tests/test-rbtree_oset.c (main): Update.
49784         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
49785
49786 2007-03-13  Bruno Haible  <bruno@clisp.org>
49787
49788         * tests/test-stdbool.c (i): Update after last patch.
49789
49790 2007-03-12  Bruno Haible  <bruno@clisp.org>
49791
49792         * lib/quotearg.c: Include <wctype.h> early, before the definition of
49793         the iswprint macro. Needed on Solaris 2.5.1.
49794
49795 2007-03-12  Bruno Haible  <bruno@clisp.org>
49796
49797         * tests/test-printf-frexp.c (main): Declare x as volatile.
49798
49799 2007-03-12  Simon Josefsson  <simon@josefsson.org>
49800
49801         * doc/gnulib.texi (Build robot for gnulib): New section.
49802
49803 2007-03-12  Jim Meyering  <jim@meyering.net>
49804
49805         * build-aux/bootstrap: New file.
49806         * build-aux/bootstrap.conf: New file, from coreutils.
49807
49808 2007-03-11  Bruno Haible  <bruno@clisp.org>
49809
49810         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
49811
49812 2007-03-12  Simon Josefsson  <simon@josefsson.org>
49813
49814         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
49815         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
49816         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
49817
49818 2007-03-11  Bruno Haible  <bruno@clisp.org>
49819
49820         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
49821         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
49822
49823 2007-03-11  Bruno Haible  <bruno@clisp.org>
49824
49825         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
49826         formula. Needed for SunPRO C 5.0.
49827
49828 2007-03-11  Bruno Haible  <bruno@clisp.org>
49829
49830         * modules/long-options (Depends-on): Add getopt.
49831
49832 2007-03-11  Bruno Haible  <bruno@clisp.org>
49833
49834         * modules/modechange (Depends-on): Add stdbool.
49835
49836 2007-03-11  Bruno Haible  <bruno@clisp.org>
49837
49838         * modules/i-ring (Depends-on): Add stdbool.
49839
49840 2007-03-11  Bruno Haible  <bruno@clisp.org>
49841
49842         * modules/gc-des (Depends-on): Add stdbool.
49843
49844 2007-03-11  Bruno Haible  <bruno@clisp.org>
49845
49846         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
49847
49848 2007-03-11  Bruno Haible  <bruno@clisp.org>
49849
49850         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
49851
49852 2007-03-11  Bruno Haible  <bruno@clisp.org>
49853
49854         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
49855
49856 2007-03-11  Bruno Haible  <bruno@clisp.org>
49857
49858         * lib/vasnprintf.c (sprintf): Undefine.
49859
49860 2007-03-11  Bruno Haible  <bruno@clisp.org>
49861
49862         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
49863         initializers in SunPRO C and Compaq C compilers.
49864
49865 2007-03-11  Bruno Haible  <bruno@clisp.org>
49866
49867         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
49868         decrementing code ANSI C compliant.
49869
49870 2007-03-11  Bruno Haible  <bruno@clisp.org>
49871
49872         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
49873         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
49874
49875 2007-03-11  Bruno Haible  <bruno@clisp.org>
49876
49877         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
49878         <stdbool.h> substitute doesn't pass.
49879
49880 2007-03-11  Bruno Haible  <bruno@clisp.org>
49881
49882         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
49883
49884 2007-03-11  Bruno Haible  <bruno@clisp.org>
49885
49886         * gnulib-tool (func_create_megatestdir): Create also an autobuild
49887         script, for submission to autobuild.josefsson.org.
49888
49889 2007-03-10  Bruno Haible  <bruno@clisp.org>
49890
49891         * modules/canonicalize-lgpl-tests: New file.
49892         * tests/test-canonicalize-lgpl.sh: New file.
49893         * tests/test-canonicalize-lgpl.c: New file.
49894
49895         * modules/c-strcase-tests: New file.
49896         * tests/test-c-strcase.sh: New file.
49897         * tests/test-c-strcasecmp.c: New file.
49898         * tests/test-c-strncasecmp.c: New file.
49899
49900         * modules/atexit-tests: New file.
49901         * tests/test-atexit.sh: New file.
49902         * tests/test-atexit.c: New file.
49903
49904 2007-03-10  Bruno Haible  <bruno@clisp.org>
49905
49906         * tests/test-binary-io.sh: Use temporary filenames that are not so
49907         likely to clash with those of other tests (in a parallel make).
49908         * tests/test-binary-io.c: Likewise.
49909
49910 2007-03-10  Bruno Haible  <bruno@clisp.org>
49911
49912         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
49913         fallback; use #error instead.
49914         Suggested by Simon Josefsson.
49915
49916 2007-03-10  Bruno Haible  <bruno@clisp.org>
49917
49918         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
49919         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
49920         first and the last.
49921
49922 2007-03-10  Bruno Haible  <bruno@clisp.org>
49923
49924         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
49925
49926 2007-03-10  Bruno Haible  <bruno@clisp.org>
49927
49928         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
49929         "make distcheck".
49930         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
49931         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
49932         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
49933
49934 2007-03-10  Bruno Haible  <bruno@clisp.org>
49935
49936         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
49937         variable.
49938         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
49939         variable.
49940
49941 2007-03-09  Eric Blake  <ebb9@byu.net>
49942         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
49943
49944         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
49945         types are not being provided by gnulib.
49946         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
49947         types are supported.
49948
49949 2007-03-10  Bruno Haible  <bruno@clisp.org>
49950
49951         * lib/stdio_.h (__attribute__): New macro.
49952         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
49953         vsprintf): Specify __attribute__ __format__ for GCC.
49954         Suggested by Eric Blake.
49955
49956 2007-03-09  Bruno Haible  <bruno@clisp.org>
49957
49958         * modules/printf-posix-tests: New file.
49959         * tests/test-printf-posix.sh: New file.
49960         * tests/test-printf-posix.c: New file.
49961
49962         * modules/printf-posix: New file.
49963         * lib/printf.c: New file.
49964         * m4/printf-posix-rpl.m4: New file.
49965         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
49966         REPLACE_PRINTF.
49967         * lib/stdio_.h (printf): New declaration.
49968         (format, __format__, ____printf____, ____scanf____, ____strftime____,
49969         ____strfmon____): New macros.
49970         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
49971         REPLACE_PRINTF.
49972
49973 2007-03-09  Bruno Haible  <bruno@clisp.org>
49974
49975         * tests/test-vasnprintf-posix2.sh: New file.
49976         * tests/test-vasnprintf-posix2.c: New file.
49977         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
49978         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
49979         (Makefile.am): Activate test-vasnprintf-posix2.sh.
49980
49981         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
49982         a locale dependent decimal point, rather than always '.'.
49983
49984 2007-03-09  Eric Blake  <ebb9@byu.net>
49985
49986         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
49987         spite of platforms like Tandem/NSK that define it to -1.
49988
49989 2007-03-08  Bruno Haible  <bruno@clisp.org>
49990
49991         * modules/vprintf-posix-tests: New file.
49992         * tests/test-vprintf-posix.sh: New file.
49993         * tests/test-vprintf-posix.c: New file.
49994         * tests/test-printf-posix.h: New file.
49995
49996         * modules/vprintf-posix: New file.
49997         * lib/vprintf.c: New file.
49998         * m4/vprintf-posix.m4: New file.
49999         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
50000         REPLACE_VPRINTF.
50001         * lib/stdio_.h (vprintf): New declaration.
50002         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
50003         REPLACE_VPRINTF.
50004
50005 2007-03-08  Bruno Haible  <bruno@clisp.org>
50006
50007         * modules/fprintf-posix-tests: New file.
50008         * tests/test-fprintf-posix.sh: New file.
50009         * tests/test-fprintf-posix.c: New file.
50010
50011         * modules/fprintf-posix: New file.
50012         * lib/fprintf.c: New file.
50013         * m4/fprintf-posix.m4: New file.
50014         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
50015         REPLACE_FPRINTF.
50016         * lib/stdio_.h (fprintf): New declaration.
50017         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
50018         REPLACE_FPRINTF.
50019
50020 2007-03-08  Bruno Haible  <bruno@clisp.org>
50021
50022         * modules/vfprintf-posix-tests: New file.
50023         * tests/test-vfprintf-posix.sh: New file.
50024         * tests/test-vfprintf-posix.c: New file.
50025         * tests/test-fprintf-posix.h: New file.
50026         * tests/test-fprintf-posix.out: New file.
50027
50028         * modules/vfprintf-posix: New file.
50029         * lib/vfprintf.c: New file.
50030         * m4/vfprintf-posix.m4: New file.
50031         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
50032         REPLACE_VFPRINTF.
50033         * lib/stdio_.h (vfprintf): New declaration.
50034         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
50035         REPLACE_VFPRINTF.
50036
50037 2007-03-08  Bruno Haible  <bruno@clisp.org>
50038
50039         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
50040
50041 2007-03-08  Bruno Haible  <bruno@clisp.org>
50042
50043         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
50044         instead of 'expr' invocations.
50045         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50046         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50047         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50048         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50049         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50050         Suggested by Paul Eggert.
50051
50052 2007-03-08  Bruno Haible  <bruno@clisp.org>
50053
50054         * modules/fseterr-tests: New file.
50055         * tests/test-fseterr.c: New file.
50056
50057         * modules/fseterr: New file.
50058         * lib/fseterr.h: New file.
50059         * lib/fseterr.c: New file.
50060
50061 2007-03-08  Bruno Haible  <bruno@clisp.org>
50062
50063         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
50064         * lib/getopt_.h: Likewise.
50065         * lib/mbswidth.h: Likewise.
50066         * lib/setenv.h: Likewise.
50067         * lib/vasnprintf.h: Likewise.
50068         * lib/vasprintf.h: Likewise.
50069         * lib/verror.h: Likewise.
50070         * lib/xsetenv.h: Likewise.
50071         * lib/xvasprintf.h: Likewise.
50072
50073 2007-03-08  Jim Meyering  <jim@meyering.net>
50074
50075         * users.txt: Add parted.
50076
50077         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
50078
50079 2007-03-07  Bruno Haible  <bruno@clisp.org>
50080
50081         * m4/printf.m4: Make the shell script snippets copy&pastable.
50082
50083 2007-03-02  Bruno Haible  <bruno@clisp.org>
50084
50085         * lib/netinet_in_.h: New file.
50086         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
50087         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
50088         * modules/netinet_in (Files): Add lib/netinet_in_.h.
50089         (Depends-on): Add absolute-header.
50090         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
50091         into netinet/in.h.
50092
50093 2007-03-03  Bruno Haible  <bruno@clisp.org>
50094
50095         * lib/sys_select_.h: New file.
50096         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
50097         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
50098         * modules/sys_select (Files): Add lib/sys_select_.h.
50099         (Depends-on): Add absolute-header.
50100         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
50101         into sys/select.h.
50102
50103 2007-03-02  Bruno Haible  <bruno@clisp.org>
50104
50105         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
50106         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
50107         values.
50108         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
50109         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
50110         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
50111         * modules/sys_socket (Depends-on): Add absolute-header.
50112         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
50113         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
50114         (Include): Remove requirement of inclusion of <sys/types.h>.
50115
50116 2007-03-02  Bruno Haible  <bruno@clisp.org>
50117
50118         * lib/byteswap_.h (bswap_32): Fix formula.
50119
50120 2007-03-06  Bruno Haible  <bruno@clisp.org>
50121
50122         * modules/sprintf-posix-tests: New file.
50123         * tests/test-sprintf-posix.c: New file.
50124
50125         * modules/sprintf-posix: New file.
50126         * lib/sprintf.c: New file.
50127         * m4/sprintf-posix.m4: New file.
50128         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
50129         REPLACE_SPRINTF.
50130         * lib/stdio_.h (sprintf): New declaration.
50131         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
50132         REPLACE_SPRINTF.
50133
50134 2007-03-06  Bruno Haible  <bruno@clisp.org>
50135
50136         * modules/vsprintf-posix-tests: New file.
50137         * tests/test-vsprintf-posix.c: New file.
50138         * tests/test-sprintf-posix.h: New file.
50139
50140         * modules/vsprintf-posix: New file.
50141         * lib/vsprintf.c: New file.
50142         * m4/vsprintf-posix.m4: New file.
50143         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
50144         REPLACE_VSPRINTF.
50145         * lib/stdio_.h (vsprintf): New declaration.
50146         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
50147         REPLACE_VSPRINTF.
50148
50149 2007-03-06  Bruno Haible  <bruno@clisp.org>
50150
50151         * modules/vsnprintf (Depend-on): Remove minmax.
50152
50153 2007-03-06  Bruno Haible  <bruno@clisp.org>
50154
50155         * modules/snprintf-posix-tests: New file.
50156         * tests/test-snprintf-posix.c: New file.
50157
50158         * modules/snprintf-posix: New file.
50159         * m4/snprintf-posix.m4: New file.
50160         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
50161         gl_FUNC_SNPRINTF.
50162         (gl_FUNC_SNPRINTF): Invoke it.
50163         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
50164         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
50165         is set.
50166         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
50167
50168 2007-03-06  Bruno Haible  <bruno@clisp.org>
50169
50170         * modules/vsnprintf-posix-tests: New file.
50171         * tests/test-vsnprintf-posix.c: New file.
50172         * tests/test-snprintf-posix.h: New file.
50173
50174         * modules/vsnprintf-posix: New file.
50175         * m4/vsnprintf-posix.m4: New file.
50176         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
50177         gl_FUNC_VSNPRINTF.
50178         (gl_FUNC_VSNPRINTF): Invoke it.
50179         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
50180         * lib/stdio_.h (vsnprintf): Define as a replacement if
50181         REPLACE_VSNPRINTF is set.
50182         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
50183
50184 2007-03-06  Bruno Haible  <bruno@clisp.org>
50185
50186         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
50187         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
50188
50189 2007-03-06  Bruno Haible  <bruno@clisp.org>
50190
50191         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
50192         (asinl): Declare also if HAVE_DECL_ASINL is set.
50193         (atanl): Declare also if HAVE_DECL_ATANL is set.
50194         (ceill): Declare also if HAVE_DECL_CEILL is set.
50195         (cosl): Declare also if HAVE_DECL_COSL is set.
50196         (expl): Declare also if HAVE_DECL_EXPL is set.
50197         (floorl): Declare also if HAVE_DECL_FLOORL is set.
50198         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
50199         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
50200         (logl): Declare also if HAVE_DECL_LOGL is set.
50201         (sinl): Declare also if HAVE_DECL_SINL is set.
50202         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
50203         (tanl): Declare also if HAVE_DECL_TANL is set.
50204         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
50205         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
50206         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
50207         declaration of frexpl, ldexpl.
50208         * modules/printf-frexpl (Depends-on): Add math.
50209         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
50210
50211 2007-03-05  Bruno Haible  <bruno@clisp.org>
50212
50213         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
50214         frexpl and ldexpl are declared.
50215         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
50216
50217 2007-03-05  Bruno Haible  <bruno@clisp.org>
50218
50219         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
50220         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
50221
50222 2007-03-05  Bruno Haible  <bruno@clisp.org>
50223
50224         * lib/stdio_.h: Include <stddef.h>.
50225
50226 2007-03-05  Bruno Haible  <bruno@clisp.org>
50227
50228         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
50229
50230 2007-03-05  Bruno Haible  <bruno@clisp.org>
50231
50232         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
50233         NetBSD 4, from Ralf Wildenhues.
50234
50235 2007-03-04  Bruno Haible  <bruno@clisp.org>
50236
50237         * lib/vasprintf.h: Update #if logic for the case when the functions
50238         exist but are overridden.
50239
50240 2007-03-04  Bruno Haible  <bruno@clisp.org>
50241
50242         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
50243         implementations: glibc-2.4 and MacOS X 10.3.
50244         * tests/test-vasnprintf-posix.c (test_function): Test also the case
50245         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
50246         * tests/test-vasprintf-posix.c (test_function): Likewise.
50247
50248 2007-03-04  Bruno Haible  <bruno@clisp.org>
50249
50250         * modules/vasprintf-posix-tests: New file.
50251         * tests/test-vasprintf-posix.c: New file.
50252
50253         * modules/vasprintf-posix: New file.
50254         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
50255         defined.
50256         * m4/vasprintf-posix.m4: New file.
50257         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
50258         gl_FUNC_VASPRINTF.
50259         (gl_FUNC_VASPRINTF): Invoke it.
50260         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
50261         here.
50262         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
50263
50264 2007-03-04  Bruno Haible  <bruno@clisp.org>
50265
50266         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
50267         REPLACE_GETTIMEOFDAY.
50268         * modules/sys_time (Makefile.am): Likewise.
50269         * m4/sys_time_h.m4: Likewise.
50270         * m4/gettimeofday.m4: Likewise.
50271
50272 2007-03-04  Bruno Haible  <bruno@clisp.org>
50273
50274         * modules/vasnprintf-posix-tests: New file.
50275         * tests/test-vasnprintf-posix.c: New file.
50276
50277         * modules/vasnprintf-posix: New file.
50278         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
50279         printf-frexpl.h.
50280         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
50281         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
50282         REPLACE_VASNPRINTF is defined.
50283         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
50284         gl_FUNC_VASNPRINTF.
50285         (gl_FUNC_VASNPRINTF): Invoke it.
50286         * m4/vasnprintf-posix.m4: New file.
50287         * m4/printf.m4: New file.
50288
50289 2007-03-04  Bruno Haible  <bruno@clisp.org>
50290
50291         Compile progreloc.c only if --enable-relocatable is specified.
50292         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
50293         if --enable-relocatable was specified.
50294         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
50295         lib_SOURCES.
50296
50297 2007-03-04  Jim Meyering  <jim@meyering.net>
50298
50299         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
50300         Use it consistently, rather than enumerating errno constants.
50301
50302 2007-03-04  Bruno Haible  <bruno@clisp.org>
50303
50304         * modules/xvasprintf-tests: New file.
50305         * tests/test-xvasprintf.c: New file.
50306
50307         * modules/vasprintf-tests: New file.
50308         * tests/test-vasprintf.c: New file.
50309
50310         * modules/vasnprintf-tests: New file.
50311         * tests/test-vasnprintf.c: New file.
50312
50313         * modules/vsnprintf-tests: New file.
50314         * tests/test-vsnprintf.c: New file.
50315
50316         * modules/snprintf-tests: New file.
50317         * tests/test-snprintf.c: New file.
50318
50319 2007-03-04  Bruno Haible  <bruno@clisp.org>
50320
50321         Compile relocatable.c only if --enable-relocatable is specified.
50322         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
50323         gl_RELOCATABLE_LIBRARY.
50324         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
50325         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
50326         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
50327         gl_RELOCATABLE_LIBRARY.
50328         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
50329         (Makefile.am): Remove lib_SOURCES.
50330         * modules/relocatable-lib-lgpl (configure.ac): Invoke
50331         gl_RELOCATABLE_LIBRARY.
50332         (Makefile.am): Remove lib_SOURCES.
50333         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
50334         always.
50335         * modules/relocatable-prog-wrapper (configure.ac): Invoke
50336         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
50337
50338 2007-03-04  Bruno Haible  <bruno@clisp.org>
50339
50340         * modules/argmatch-tests: New file.
50341         * tests/test-argmatch.c: New file.
50342
50343         * tests/test-allocsa.c (main): Halve the number of loop runs.
50344
50345         * modules/alloca-opt-tests: New file.
50346         * tests/test-alloca-opt.c: New file.
50347
50348 2007-03-04  Jim Meyering  <jim@meyering.net>
50349
50350         Work around difference between Linux ACLs and Solaris 10 ZFS.
50351         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
50352         for EINVAL.
50353
50354 2007-03-03  Bruno Haible  <bruno@clisp.org>
50355
50356         * modules/relocatable-prog (Depends-on): Add back progreloc's
50357         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
50358
50359 2007-03-03  Bruno Haible  <bruno@clisp.org>
50360
50361         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
50362         * modules/relocatable-lib: New file.
50363
50364 2007-03-03  Bruno Haible  <bruno@clisp.org>
50365
50366         * modules/relocatable-prog: Renamed from modules/relocatable.
50367         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
50368
50369 2007-03-03  Bruno Haible  <bruno@clisp.org>
50370
50371         * modules/relocatable-script (Files): Add doc/relocatable.texi,
50372         m4/relocatable-lib.m4.
50373         (Depends-on): Remove 'relocatable'.
50374         (configure.ac): Add gl_RELOCATABLE_NOP.
50375
50376 2007-03-03  Bruno Haible  <bruno@clisp.org>
50377
50378         * modules/relocatable-prog-wrapper: New file.
50379         * modules/relocatable (Depends-on): Add it. Remove all other
50380         dependencies except progname.
50381         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
50382
50383         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
50384         (gl_FUNC_STRERROR): Nop.
50385         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
50386
50387         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
50388         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
50389
50390         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
50391         (gl_FUNC_READLINK): Update.
50392
50393         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
50394
50395 2007-03-03  Bruno Haible  <bruno@clisp.org>
50396
50397         * lib/xreadlink.c: Include <unistd.h> unconditionally.
50398         * modules/xreadlink (Depends-on): Add unistd.
50399         * modules/xreadlink-with-size (Depends-on): Likewise.
50400
50401 2007-03-03  Bruno Haible  <bruno@clisp.org>
50402
50403         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
50404         extracted from gt_FUNC_SETENV.
50405         (gt_FUNC_SETENV): Remove macro.
50406         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
50407         remove gt_FUNC_SETENV.
50408
50409 2007-03-03  Bruno Haible  <bruno@clisp.org>
50410
50411         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
50412         ENABLE_RELOCATABLE here.
50413         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
50414
50415 2007-03-03  Bruno Haible  <bruno@clisp.org>
50416
50417         * modules/rbtreehash-list-tests (Depends-on): Add progname.
50418         * tests/test-rbtreehash_list.c: Include progname.h.
50419         (main): Call set_program_name.
50420
50421         * modules/rbtree-oset-tests (Depends-on): Add progname.
50422         * tests/test-rbtree_oset.c: Include progname.h.
50423         (main): Call set_program_name.
50424
50425         * modules/rbtree-list-tests (Depends-on): Add progname.
50426         * tests/test-rbtree_list.c: Include progname.h.
50427         (main): Call set_program_name.
50428
50429         * modules/linked-list-tests (Depends-on): Add progname.
50430         * tests/test-linked_list.c: Include progname.h.
50431         (main): Call set_program_name.
50432
50433 2007-03-03  Bruno Haible  <bruno@clisp.org>
50434
50435         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
50436         All uses of __restrict changed to _Restrict_.
50437         * lib/glob_.h (__restrict): Remove macro.
50438
50439 2007-03-02  Bruno Haible  <bruno@clisp.org>
50440
50441         * modules/gettext (configure.ac): Require gettext infrastructure
50442         from version 0.16.1.
50443
50444 2007-03-02  Bruno Haible  <bruno@clisp.org>
50445
50446         * modules/linkedhash-list-tests (Depends-on): Add progname.
50447         * tests/test-linkedhash_list.c: Include progname.h.
50448         (main): Call set_program_name.
50449
50450         * modules/carray-list-tests (Depends-on): Add progname.
50451         * tests/test-carray_list.c: Include progname.h.
50452         (main): Call set_program_name.
50453
50454         * modules/avltreehash-list-tests (Depends-on): Add progname.
50455         * tests/test-avltreehash_list.c: Include progname.h.
50456         (main): Call set_program_name.
50457
50458         * modules/avltree-oset-tests (Depends-on): Add progname.
50459         * tests/test-avltree_oset.c: Include progname.h.
50460         (main): Call set_program_name.
50461
50462         * modules/avltree-list-tests (Depends-on): Add progname.
50463         * tests/test-avltree_list.c: Include progname.h.
50464         (main): Call set_program_name.
50465
50466         * modules/array-oset-tests (Depends-on): Add progname.
50467         * tests/test-array_oset.c: Include progname.h.
50468         (main): Call set_program_name.
50469
50470         * modules/array-list-tests (Depends-on): Add progname.
50471         * tests/test-array_list.c: Include progname.h.
50472         (main): Call set_program_name.
50473
50474         * modules/argp-tests (Depends-on): Add progname.
50475         * tests/test-argp.c: Include argp.h first. Include progname.h.
50476         (main): Call set_program_name.
50477
50478 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
50479
50480         * doc/gnulib-tool.texi (Initial import): Reword description of
50481         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
50482         limited effect even if defined after the first system include.
50483
50484 2007-03-01  Bruno Haible  <bruno@clisp.org>
50485
50486         * build-aux/config.libpath: Update to libtool-1.5.22.
50487         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50488
50489 2007-03-01  Bruno Haible  <bruno@clisp.org>
50490
50491         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
50492         foo_CFLAGS.
50493         Reported by Ralf Wildenhues.
50494
50495 2007-03-01  Bruno Haible  <bruno@clisp.org>
50496
50497         * build-aux/install-reloc: Remove object files left over by some
50498         compilers.
50499         Reported by Ralf Wildenhues.
50500
50501 2007-03-01  Bruno Haible  <bruno@clisp.org>
50502
50503         * build-aux/install-reloc: Break long lines.
50504
50505 2007-03-01  Bruno Haible  <bruno@clisp.org>
50506
50507         * doc/relocatable.texi: Document that it may not work on OpenBSD.
50508         Reported by Ralf Wildenhues.
50509
50510 2007-03-01  Bruno Haible  <bruno@clisp.org>
50511
50512         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
50513         include ordering constraints.
50514
50515 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
50516
50517         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
50518         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
50519         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
50520         as another example.
50521         * lib/time_.h: Fix misspelling.
50522         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
50523         Require gl_HEADER_TIME_H_DEFAULTS.
50524         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
50525         * m4/time_r.m4 (gl_TIME_R): Likewise.
50526         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
50527
50528 2007-03-01  Bruno Haible  <bruno@clisp.org>
50529
50530         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
50531         * m4/utimens.m4 (gl_UTIMENS): Likewise.
50532
50533 2007-03-01  Jim Meyering  <jim@meyering.net>
50534
50535         * modules/xreadlink (Maintainer): Add my name.
50536         * modules/xreadlink-with-size (Depends-on): Alphabetize.
50537
50538 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
50539             Bruno Haible  <bruno@clisp.org>
50540
50541         * build-aux/install-reloc: Compile also c-ctype.c.
50542         * build-aux/relocatable.sh.in: New file.
50543         * doc/relocatable.texi: New file.
50544         * doc/relocatable-maint.texi: New file.
50545         * doc/gnulib.texi: Include relocatable-maint.texi.
50546         * lib/progreloc.c: Include unistd.h unconditionally.
50547         * lib/relocwrapper.c: Include unistd.h unconditionally.
50548         Include c-ctype.h.
50549         (add_dotbin): Use c_tolower.
50550         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
50551         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
50552         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
50553         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
50554         to m4/relocatable-lib.m4.
50555         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
50556         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
50557         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
50558         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
50559         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
50560         * modules/relocatable: New file.
50561         * modules/relocatable-lib: New file.
50562         * modules/relocatable-script: New file.
50563
50564 2007-02-28  Bruno Haible  <bruno@clisp.org>
50565
50566         Import --enable-relocatable infrastructure.
50567         * build-aux/config.libpath: New file, from GNU gettext.
50568         * build-aux/install-reloc: New file, from GNU gettext.
50569         * build-aux/reloc-ldflags: New file, from GNU gettext.
50570         * lib/relocatable.h: New file, from GNU gettext.
50571         * lib/relocatable.c: New file, from GNU gettext.
50572         * lib/relocwrapper.c: New file, from GNU gettext.
50573         * m4/relocatable.m4: New file, from GNU gettext.
50574
50575 2007-02-28  Bruno Haible  <bruno@clisp.org>
50576
50577         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
50578
50579         * modules/xreadlink: New file, from GNU gettext with modifications.
50580         * lib/xreadlink.c: New file, from GNU gettext.
50581         * lib/xreadlink.h: Add comments.
50582         (xreadlink): New declaration.
50583
50584         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
50585         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
50586         lib/xreadlink-with-size.c.
50587         (configure.ac): Remove gl_XREADLINK invocation.
50588         (Makefile.am): Augment lib_SOURCES.
50589         * m4/xreadlink.m4: Remove file.
50590         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
50591         (xreadlink_with_size): Renamed from xreadink.
50592         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
50593         * modules/canonicalize (Depends-on): Replace xreadlink with
50594         xreadlink-with-size.
50595         * lib/canonicalize.c (canonicalize_filename_mode): Update.
50596
50597 2007-02-25  Jim Meyering  <jim@meyering.net>
50598
50599         * build-aux/announce-gen: When complaining about excess arguments,
50600         list them.
50601
50602 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
50603
50604         * README: Document signed integer overflow situation more
50605         accurately.
50606
50607 2007-02-25  Bruno Haible  <bruno@clisp.org>
50608
50609         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
50610         'a' or 'A' conversion.
50611
50612 2007-02-25  Bruno Haible  <bruno@clisp.org>
50613
50614         * modules/filename: Renamed from modules/pathname.
50615         (Files): Replace lib/pathname.h with lib/filename.h. Replace
50616         lib/concatpath.c with lib/concat-filename.c.
50617         (Makefile.am): Update.
50618         (Include): Replace pathname.h with filename.h.
50619         * lib/filename.h: Renamed from lib/pathname.h.
50620         (concatenated_filename): Renamed from concatenated_pathname.
50621         * lib/concat-filename.c: Renamed from lib/concatpath.c.
50622         (concatenated_filename): Renamed from concatenated_pathname.
50623         * lib/findprog.c: Include filename.h instead of pathname.h.
50624         (find_in_path): Update.
50625         * lib/javacomp.c: Include filename.h instead of pathname.h.
50626         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
50627         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
50628         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
50629         is_oldgcj_14_13_usable, is_javac_usable): Update.
50630         * lib/javaexec.c: Include filename.h instead of pathname.h.
50631         (execute_java_class): Update.
50632         * modules/findprog: Update.
50633         * modules/javacomp: Update.
50634         * modules/javaexec: Update.
50635         * MODULES.html.sh (File system functions): Add 'filename', remove
50636         'pathname'.
50637
50638 2007-02-25  Bruno Haible  <bruno@clisp.org>
50639
50640         * modules/printf-frexpl-tests: New file.
50641         * tests/test-printf-frexpl.c: New file.
50642
50643         * modules/printf-frexpl: New file.
50644         * lib/printf-frexpl.h: New file.
50645         * lib/printf-frexpl.c: New file.
50646         * m4/printf-frexpl.m4: New file.
50647
50648 2007-02-25  Bruno Haible  <bruno@clisp.org>
50649
50650         * modules/printf-frexp-tests: New file.
50651         * tests/test-printf-frexp.c: New file.
50652
50653         * modules/printf-frexp: New file.
50654         * lib/printf-frexp.h: New file.
50655         * lib/printf-frexp.c: New file.
50656         * m4/printf-frexp.m4: New file.
50657
50658 2007-02-25  Bruno Haible  <bruno@clisp.org>
50659
50660         Assume automake >= 1.10 for the tests.
50661         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
50662         * modules/arctwo-tests: Likewise.
50663         * modules/argp-tests: Likewise.
50664         * modules/avltree-list-tests: Likewise.
50665         * modules/avltree-oset-tests: Likewise.
50666         * modules/avltreehash-list-tests: Likewise.
50667         * modules/carray-list-tests: Likewise.
50668         * modules/crc-tests: Likewise.
50669         * modules/des-tests: Likewise.
50670         * modules/gc-arcfour-tests: Likewise.
50671         * modules/gc-arctwo-tests: Likewise.
50672         * modules/gc-des-tests: Likewise.
50673         * modules/gc-hmac-md5-tests: Likewise.
50674         * modules/gc-hmac-sha1-tests: Likewise.
50675         * modules/gc-md2-tests: Likewise.
50676         * modules/gc-md4-tests: Likewise.
50677         * modules/gc-md5-tests: Likewise.
50678         * modules/gc-pbkdf2-sha1-tests: Likewise.
50679         * modules/gc-rijndael-tests: Likewise.
50680         * modules/gc-sha1-tests: Likewise.
50681         * modules/gc-tests: Likewise.
50682         * modules/getaddrinfo-tests: Likewise.
50683         * modules/hmac-md5-tests: Likewise.
50684         * modules/hmac-sha1-tests: Likewise.
50685         * modules/linked-list-tests: Likewise.
50686         * modules/linkedhash-list-tests: Likewise.
50687         * modules/lock-tests: Likewise.
50688         * modules/md2-tests: Likewise.
50689         * modules/md4-tests: Likewise.
50690         * modules/md5-tests: Likewise.
50691         * modules/rbtree-list-tests: Likewise.
50692         * modules/rbtree-oset-tests: Likewise.
50693         * modules/rbtreehash-list-tests: Likewise.
50694         * modules/read-file-tests: Likewise.
50695         * modules/rijndael-tests: Likewise.
50696         * modules/stdint-tests: Likewise.
50697         * modules/tls-tests: Likewise.
50698
50699 2007-02-24  Bruno Haible  <bruno@clisp.org>
50700
50701         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
50702         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
50703         function; instead check whether isnan with a double argument links.
50704         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
50705         function; instead check whether isnan with a 'long double' argument
50706         links.
50707         Reported by Eric Blake <ebb9@byu.net>.
50708
50709 2007-02-24  Bruno Haible  <bruno@clisp.org>
50710
50711         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
50712         defined.
50713         * lib/isnanl.c: Remove all code. Just include isnan.c.
50714         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
50715
50716 2007-02-25  Jim Meyering  <jim@meyering.net>
50717
50718         Avoid conflicting types for 'unsetenv' on FreeBSD.
50719         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
50720         conflicting with FreeBSD's (5.0 and 6.1) function declaration
50721         in stdlib.h.
50722
50723 2007-02-24  Bruno Haible  <bruno@clisp.org>
50724
50725         * modules/isnanl-nolibm-tests: New file.
50726         * tests/test-isnanl.c: New file.
50727
50728         * modules/isnanl-nolibm: New file.
50729         * lib/isnanl.h: New file.
50730         * lib/isnanl.c: New file.
50731         * m4/isnanl.m4: New file.
50732
50733 2007-02-24  Bruno Haible  <bruno@clisp.org>
50734
50735         * modules/isnan-nolibm-tests: New file.
50736         * tests/test-isnan.c: New file.
50737
50738         * modules/isnan-nolibm: New file.
50739         * lib/isnan.h: New file.
50740         * lib/isnan.c: New file.
50741         * m4/isnan.m4: New file.
50742
50743 2007-02-24  Bruno Haible  <bruno@clisp.org>
50744
50745         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
50746         assume that an exponent fits in 20 bits.
50747
50748 2007-02-24  Jim Meyering  <jim@meyering.net>
50749
50750         * m4/regex.m4: Update the description of the configure-time option,
50751         --without-included-regex, to state accurately what the defaults are,
50752         and perhaps to give people an idea why using this option is risky.
50753
50754 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
50755
50756         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
50757         loops on small arguments.  This attempts to avoid the problem
50758         Bruno Haible reported for AIX 4.3.2 in
50759         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
50760
50761 2007-02-23  Bruno Haible  <bruno@clisp.org>
50762
50763         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
50764         Needed for help2man.
50765
50766 2007-02-23  Karl Berry  <karl@gnu.org>
50767
50768         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
50769         exists, foo.h should be cvs-ignored, not committed.
50770
50771 2007-02-23  Eric Blake  <ebb9@byu.net>
50772
50773         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
50774         * lib/stat-time.h (includes): Likewise.
50775         * lib/utimecmp.c (includes): Likewise.
50776         * lib/utimens.h (includes): Likewise.
50777         * lib/getdate.y (includes): Also include "timespec.h" for use
50778         internal to the module.
50779         * modules/utimens (Depends-on): Revert yesterday's patch.
50780         * modules/nanosleep (Depends-on): Add missing dependency.
50781
50782 2007-02-22  Bruno Haible  <bruno@clisp.org>
50783
50784         * lib/glob.c: Don't include getlogin_r.h.
50785
50786 2007-02-22  Jim Meyering  <jim@meyering.net>
50787
50788         * modules/utimens (Depends-on): Add timespec, required for
50789         utimens.h's inclusion of timespec.h.
50790
50791 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
50792
50793         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
50794         long unreadable paths in GNU/Linux.  Problem reported by Andreas
50795         Schwab in
50796         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
50797         I'll try to think of a better way to fix the Solaris problem.
50798
50799         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
50800         like glibc; on Solaris 10, it fails with errno == EINVAL.
50801         POSIX says the behavior is unspecified if the first argument is NULL,
50802         so play it safe and never pass NULL to the system getcwd.
50803
50804 2007-02-21  Jim Meyering  <jim@meyering.net>
50805
50806         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
50807         of gettimeofday.  It would conflict with the one now always
50808         provided via sys_time_.h.  Reported by Matthew Woehlke, as
50809         an IRIX 6.5 build failure.
50810
50811 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
50812
50813         Minor fixups to port to Solaris 10 with Sun C 5.8.
50814         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
50815         * modules/getcwd (Depends-on): Add dirfd.
50816         * lib/putenv.c (putenv): #undef it.
50817         (rpl_putenv): New decl.
50818         (malloc, free): Include <stdlib.h> rather than prototyping separately.
50819
50820 2007-02-20  Bruno Haible  <bruno@clisp.org>
50821
50822         * modules/stdio-tests: New file.
50823         * tests/test-stdio.c: New file.
50824
50825         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
50826         (Depends-on): Add stdio.
50827         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
50828         (Include): Use <stdio.h> instead of vsnprintf.h.
50829         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
50830         HAVE_DECL_VSNPRINTF.
50831         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
50832
50833         * modules/snprintf (Files): Remove lib/snprintf.h.
50834         (Depends-on): Add stdio.
50835         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
50836         (Include): Use <stdio.h> instead of snprintf.h.
50837         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
50838         HAVE_DECL_SNPRINTF.
50839         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
50840         * lib/getaddrinfo.c: Likewise.
50841
50842         * modules/stdio: New file.
50843         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
50844         * lib/snprintf.h: Remove file.
50845         * lib/vsnprintf.h: Remove file.
50846         * lib/.cppi-disable: Remove snprintf.h.
50847         * m4/stdio_h.m4: New file.
50848         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
50849
50850 2007-02-20  Jim Meyering  <jim@meyering.net>
50851
50852         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
50853         used by e.g., mingw.  From Bruno Haible.
50854
50855 2007-02-19  Bruno Haible  <bruno@clisp.org>
50856
50857         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
50858         warnings.
50859         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50860
50861 2007-02-19  Bruno Haible  <bruno@clisp.org>
50862
50863         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
50864         from mingw users.
50865
50866 2007-02-19  Bruno Haible  <bruno@clisp.org>
50867
50868         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
50869         warnings.
50870         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
50871
50872 2007-02-19  Jim Meyering  <jim@meyering.net>
50873
50874         Don't use FD after a successful "fdopendir (fd)".
50875         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
50876         Reset it by calling dirfd on the just-obtained DIR*.
50877
50878         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
50879         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
50880
50881 2007-02-18  Bruno Haible  <bruno@clisp.org>
50882
50883         * lib/readlink.c: Include <unistd.h>.
50884         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
50885         HAVE_READLINK.
50886         * modules/readlink (Depends-on): Add unistd.
50887         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50888         (Include): Add <unistd.h>.
50889
50890         * lib/getlogin_r.h: Remove file.
50891         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
50892         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
50893         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
50894         HAVE_DECL_GETLOGIN_R.
50895         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
50896         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50897         (Include): Use <unistd.h> instead of getlogin_r.h.
50898
50899         * lib/getcwd.h: Remove file.
50900         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
50901         * lib/xgetcwd.c: Likewise.
50902         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
50903         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
50904         * modules/getcwd (Files): Remove lib/getcwd.h.
50905         (Depends-on): Add unistd.
50906         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50907         (Include): Use <unistd.h> instad of getcwd.h.
50908
50909         * lib/ftruncate.c: Include <unistd.h> first.
50910         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
50911         Set HAVE_FTRUNCATE.
50912         * modules/ftruncate (Depends-on): Add unistd.
50913         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50914
50915         * lib/fchdir.c: Include <unistd.h> first.
50916         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
50917         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
50918         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
50919         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50920         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
50921
50922         * lib/dup2.c: Include <unistd.h> first.
50923         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
50924         HAVE_DUP2.
50925         * modules/dup2 (Depends-on): Add unistd.
50926         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50927
50928         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
50929         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
50930         REPLACE_CHOWN. Don't define chown as a macro here.
50931         * modules/chown (Depends-on): Add unistd.
50932         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50933
50934         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
50935         Add definition for GL_LINK_WARNING.
50936         (chown, dup2): New declarations.
50937         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
50938         link warning.
50939         (ftruncate): New declaration.
50940         (getcwd): New declaration, taken from old getcwd.h.
50941         (getlogin_r): New declaration, taken from old getlogin_r.h.
50942         (readlink): New declaration.
50943         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
50944         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
50945         (gl_PREREQ_UNISTD): Remove macro.
50946         (gl_UNISTD_MODULE_INDICATOR): New macro.
50947         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
50948         many new variables. Don't set UNISTD_H.
50949         * modules/unistd (Description): Change.
50950         (Depends-on): Add link-warning.
50951         (configure.ac): Update.
50952         (Makefile.am): Create unistd.h always. Substitute many new variables
50953         into it.
50954
50955 2007-02-18  Bruno Haible  <bruno@clisp.org>
50956
50957         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
50958         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
50959         HAVE_GETSUBOPT.
50960         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
50961         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
50962         * lib/getsubopt.h: Remove file.
50963         * modules/getsubopt (Files): Remove lib/getsubopt.h.
50964         (Depends-on): Add stdlib.
50965         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50966         (Includes): Use <stdlib.h> instead of getsubopt.h.
50967         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
50968         Set HAVE_GETSUBOPT.
50969         * lib/getsubopt.c: Don't include getsubopt.h.
50970
50971 2007-02-18  Bruno Haible  <bruno@clisp.org>
50972
50973         * modules/fchdir (Depends-on): Add dup2.
50974
50975 2007-02-18  Bruno Haible  <bruno@clisp.org>
50976
50977         * lib/stdlib_.h: Handle glibc's special invocation convention
50978         specially.
50979
50980 2007-02-18  Bruno Haible  <bruno@clisp.org>
50981
50982         * modules/stdlib-tests: New file.
50983         * tests/test-stdlib.c: New file.
50984
50985         * modules/mkstemp (Files): Remove lib/mkstemp.h.
50986         (Depends-on): Add stdlib.
50987         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50988         (Includes): Use <stdlib.h> instead of mkstemp.h.
50989         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
50990         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
50991         * lib/mkstemp.c: Don't include mkstemp.h.
50992         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
50993         * lib/stdlib--.h: Don't include mkstemp.h.
50994
50995         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
50996         (Depends-on): Add stdlib.
50997         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50998         (Includes): Use <stdlib.h> instead of mkdtemp.h.
50999         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
51000         HAVE_MKDTEMP.
51001         * lib/mkdtemp.c: Don't include mkdtemp.h.
51002         * lib/clean-temp.c: Don't include mkdtemp.h.
51003
51004         * modules/exit (Files): Remove lib/exit.h.
51005         (Depends-on): Add stdlib.
51006         (Makefile.am): Remove lib_SOURCES.
51007         (Include): Use <stdlib.h> instead of exit.h.
51008         * lib/argmatch.c: Don't include exit.h.
51009         * lib/execute.c: Likewise.
51010         * lib/pagealign_alloc.c: Likewise.
51011         * lib/pipe.c: Likewise.
51012         * lib/wait-process.c: Likewise.
51013         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
51014         * lib/exitfail.c: Likewise.
51015         * lib/savewd.c: Likewise.
51016         * lib/xsetenv.c: Likewise.
51017
51018         * modules/stdlib: New file.
51019         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
51020         and extra comments about mkstemp().
51021         * lib/exit.h: Remove file.
51022         * lib/mkdtemp.h: Remove file.
51023         * lib/mkstemp.h: Remove file.
51024         * m4/stdlib_h.m4: New file.
51025         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
51026
51027 2007-02-18  Bruno Haible  <bruno@clisp.org>
51028
51029         * modules/math-tests: New file.
51030         * tests/test-math.c: New file.
51031
51032         * modules/math: New file.
51033         * modules/mathl (Files): Remove lib/mathl.h.
51034         (Depends-on): Add math.
51035         (Makefile.am): Don't mention mathl.h.
51036         (Include): Use <math.h> instead of mathl.h.
51037         * lib/math_.h: New file.
51038         * lib/mathl.h: Remove file.
51039         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
51040         mathl.h.
51041         * lib/asinl.c: Likewise.
51042         * lib/atanl.c: Likewise.
51043         * lib/ceill.c: Likewise.
51044         * lib/cosl.c: Likewise.
51045         * lib/expl.c: Likewise.
51046         * lib/floorl.c: Likewise.
51047         * lib/frexpl.c: Likewise.
51048         * lib/ldexpl.c: Likewise.
51049         * lib/logl.c: Likewise.
51050         * lib/sincosl.c: Likewise.
51051         * lib/sinl.c: Likewise.
51052         * lib/sqrtl.c: Likewise.
51053         * lib/tanl.c: Likewise.
51054         * lib/trigl.c: Likewise.
51055         * m4/math_h.m4: New file.
51056         * MODULES.html.sh (Mathematics): Add math.
51057
51058 2007-02-17  Bruno Haible  <bruno@clisp.org>
51059
51060         * modules/wctype-tests: New file.
51061         * tests/test-wctype.c: New file.
51062
51063         * modules/wchar-tests: New file.
51064         * tests/test-wchar.c: New file.
51065
51066         * modules/unistd-tests: New file.
51067         * tests/test-unistd.c: New file.
51068
51069         * modules/time-tests: New file.
51070         * tests/test-time.c: New file.
51071
51072         * modules/sysexits-tests: New file.
51073         * tests/test-sysexits.c: New file.
51074
51075         * modules/sys_time-tests: New file.
51076         * tests/test-sys_time.c: New file.
51077
51078         * modules/sys_stat-tests: New file.
51079         * tests/test-sys_stat.c: New file.
51080
51081         * modules/sys_socket-tests: New file.
51082         * tests/test-sys_socket.c: New file.
51083
51084         * modules/sys_select-tests: New file.
51085         * tests/test-sys_select.c: New file.
51086
51087         * modules/string-tests: New file.
51088         * tests/test-string.c: New file.
51089
51090         * modules/stdbool-tests: New file.
51091         * tests/test-stdbool.c: New file.
51092
51093         * modules/netinet_in-tests: New file.
51094         * tests/test-netinet_in.c: New file.
51095
51096         * modules/inttypes-tests: New file.
51097         * tests/test-inttypes.c: New file.
51098
51099         * modules/fcntl-tests: New file.
51100         * tests/test-fcntl.c: New file.
51101
51102         * modules/byteswap-tests: New file.
51103         * tests/test-byteswap.c: New file.
51104
51105         * modules/arpa_inet-tests: New file.
51106         * tests/test-arpa_inet.c: New file.
51107
51108 2007-02-17  Bruno Haible  <bruno@clisp.org>
51109
51110         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
51111         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
51112         if the corresponding module is not enabled. Emit link warnings if
51113         the function is used nevertheless.
51114         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
51115         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
51116         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
51117         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
51118         * modules/inttypes (Depends-on): Add link-warning.
51119         (Makefile.am): Copy the contents of build-aux/link-warning.h into
51120         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
51121         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
51122         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
51123         * modules/imaxdiv (configure.ac): Likewise.
51124         * modules/strtoimax (configure.ac): Likewise.
51125         * modules/strtoumax (configure.ac): Likewise.
51126
51127 2007-02-17  Bruno Haible  <bruno@clisp.org>
51128
51129         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
51130         gl_STRING_MODULE_INDICATOR_DEFAULTS.
51131         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
51132         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
51133
51134 2007-02-17  Bruno Haible  <bruno@clisp.org>
51135
51136         * modules/link-warning: New file.
51137         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
51138         * lib/string_.h (GL_LINK_WARNING): Remove definition.
51139         * modules/string (Depends-on): Add link-warning.
51140         (Makefile.am): Copy the contents of build-aux/link-warning.h into
51141         string.h.
51142         * MODULES.html.sh (Support for building libraries and executables): Add
51143         link-warning.
51144
51145 2007-02-17  Bruno Haible  <bruno@clisp.org>
51146
51147         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
51148         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
51149         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
51150         long lines.
51151
51152 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
51153             Bruno Haible  <bruno@clisp.org>
51154
51155         * modules/tmpfile: New file.
51156         * lib/tmpfile.c: New file.
51157         * m4/tmpfile.m4: New file.
51158         * MODULES.html.sh (func_all_modules): New section "Input/output".
51159
51160 2007-02-15  Bruno Haible  <bruno@clisp.org>
51161
51162         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
51163         (supports_delete_on_close): New function.
51164         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
51165
51166 2007-02-14  Bruno Haible  <bruno@clisp.org>
51167
51168         * modules/mbspcasecmp-tests: New file.
51169         * tests/test-mbspcasecmp.sh: New file.
51170         * tests/test-mbspcasecmp.c: New file.
51171
51172         New module mbspcasecmp.
51173         * modules/mbspcasecmp: New file.
51174         * lib/mbspcasecmp.c: New file.
51175         * lib/string_.h (strncasecmp): Change warning message.
51176         (mbspcasecmp): New declaration.
51177         * m4/mbspcasecmp.m4: New file.
51178         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51179         GNULIB_MBSPCASECMP.
51180         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
51181         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
51182
51183 2007-02-14  Bruno Haible  <bruno@clisp.org>
51184
51185         * modules/mbsncasecmp-tests: New file.
51186         * tests/test-mbsncasecmp.sh: New file.
51187         * tests/test-mbsncasecmp.c: New file.
51188
51189         New module mbsncasecmp.
51190         * modules/mbsncasecmp: New file.
51191         * lib/mbsncasecmp.c: New file.
51192         * lib/string_.h (mbsncasecmp): New declaration.
51193         * m4/mbsncasecmp.m4: New file.
51194         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51195         GNULIB_MBSNCASECMP.
51196         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
51197         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
51198
51199 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
51200
51201         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
51202         Verify that it doesn't overlap with our flags.
51203         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
51204         do not have the desired effect in multibyte locales; instead, use
51205         mbscasecmp.
51206         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
51207         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
51208         we don't require GNU fnmatch ourselves (if our users require it, they
51209         should do so explicitly).
51210
51211         Fix regex code so it doesn't rely on strcasecmp.
51212         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
51213         Otherwise, include gnulib's langinfo.h.
51214         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
51215         undesirable behavior in non-C locales.  Instead, rely on localecharset.
51216         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
51217         * modules/regex (FILES): Remove m4/codeset.m4.
51218         (Depends-on): Add localcharset.  Remove strcase.
51219
51220 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51221
51222         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
51223         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
51224
51225 2007-02-13  Bruno Haible  <bruno@clisp.org>
51226
51227         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
51228         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51229
51230 2007-02-12  Bruno Haible  <bruno@clisp.org>
51231
51232         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
51233         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
51234         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
51235         time warning rather than a link error.
51236
51237 2007-02-12  Bruno Haible  <bruno@clisp.org>
51238
51239         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
51240         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51241         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51242
51243 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
51244
51245         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
51246         args, not 2.
51247
51248 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
51249
51250         New module 'time', so that apps can include <time.h> as per
51251         POSIX and GNU instead of separate include files like time_r.h
51252         and timegm.h.  This implementation tries out a simpler approach
51253         for replacing decls in standard include files (as compared to
51254         the string module), somewhat as an experiment.
51255
51256         * config/srclist.txt: Comment out mktime.c for now.
51257         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
51258         since it doesn't apply any more.  Use generic wording instead.
51259         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
51260         'time'.
51261         * lib/time_.h, m4/time_h.m4, modules/time: New files.
51262         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
51263         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
51264         Don't include <sys/types.h>; no longer needed since we assume C89.
51265         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
51266         * lib/strftime.c: Likewise.
51267         * lib/time_r.c: Likewise.
51268         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
51269         * lib/nanosleep.c: Include <time.h> first, to check interface.
51270         * lib/strptime.c: Likewise.
51271         * lib/time_r.c: Likewise.
51272         * lib/timegm.c: Likewise.
51273         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
51274         needed.
51275         * lib/timegm.c: Don't include timegm.h; no longer needed.
51276         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
51277         time.h now handles any problems in that area.
51278         (struct timespec, nanosleep): Remove; time.h now arranges for these.
51279         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
51280         that time.h defines struct timespec.
51281         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
51282         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
51283         handles that.
51284         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
51285         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
51286         needed.  Set REPLACE_LOCALTIME.
51287         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
51288         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
51289         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
51290         nanosleep; time_h.m4 now does that.  Don't require
51291         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
51292         module handles this now.
51293         * modules/getdate (Depends-on): Remove timespec.  Add time.
51294         * modules/nanosleep (Depends-on): Likewise.
51295         * modules/stat-time (Depends-on): Likewise.
51296         * modules/nanosleep (Include): Include time.h, not timespec.h.
51297         * modules/strptime (Files): Remove lib/strptime.h.
51298         (Depends-on): Add extensions, time.
51299         (Include): Include time.h, not strptime.h.
51300         * modules/time_r (Files): Remove lib/time_r.h.
51301         (Depends-on): Add time.
51302         (Include): Include time.h, not time_r.h.
51303         * modules/timegm: Likewise.
51304         * modules/timespec (Description): Now does timespec-related decls
51305         of our own, instead of struct timespec itself.
51306         (Depends-on): Add time; remove extensions.
51307         (Maintainer): Add self.
51308         * modules/utimecmp (Depends-on): Add time; remove timespec.
51309         * modules/utimens (Depends-on): Likewise.
51310         * modules/xnanosleep (Depends-on): Likewise.
51311
51312 2007-02-11  Bruno Haible  <bruno@clisp.org>
51313
51314         * lib/c-strstr.c: Include allocsa.h.
51315         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
51316         * lib/c-strcasestr.c: Include allocsa.h.
51317         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
51318         * lib/strcasestr.c: Include allocsa.h.
51319         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
51320         * lib/mbsstr.c: Include allocsa.h.
51321         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
51322         allocsa/freesa instead of malloc/free.
51323         * lib/mbscasestr.c: Include allocsa.h.
51324         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
51325         allocsa/freesa instead of malloc/free.
51326         * modules/c-strstr (Depends-on): Add allocsa.
51327         * modules/c-strcasestr (Depends-on): Likewise.
51328         * modules/strcasestr (Depends-on): Likewise.
51329         * modules/mbsstr (Depends-on): Likewise.
51330         * modules/mbscasestr (Depends-on): Likewise.
51331
51332 2007-02-11  Bruno Haible  <bruno@clisp.org>
51333
51334         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
51335
51336         * modules/mbsspn-tests: New file.
51337         * tests/test-mbsspn.sh: New file.
51338         * tests/test-mbsspn.c: New file.
51339
51340 2007-02-11  Bruno Haible  <bruno@clisp.org>
51341
51342         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
51343
51344         * modules/mbspbrk-tests: New file.
51345         * tests/test-mbspbrk.sh: New file.
51346         * tests/test-mbspbrk.c: New file.
51347
51348 2007-02-11  Bruno Haible  <bruno@clisp.org>
51349
51350         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
51351         unneeded cast.
51352
51353         * modules/mbscspn-tests: New file.
51354         * tests/test-mbscspn.sh: New file.
51355         * tests/test-mbscspn.c: New file.
51356
51357 2007-02-11  Bruno Haible  <bruno@clisp.org>
51358
51359         * modules/mbscasecmp-tests: New file.
51360         * tests/test-mbscasecmp.sh: New file.
51361         * tests/test-mbscasecmp.c: New file.
51362
51363 2007-02-11  Bruno Haible  <bruno@clisp.org>
51364
51365         Ensure O(n) worst-case complexity of mbscasestr.
51366         * lib/mbscasestr.c: Include stdbool.h.
51367         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
51368         functions.
51369         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
51370         the bookkeeping indicates that it's worth it.
51371         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
51372
51373         * modules/mbscasestr-tests: New file.
51374         * tests/test-mbscasestr1.c: New file.
51375         * tests/test-mbscasestr2.sh: New file.
51376         * tests/test-mbscasestr2.c: New file.
51377         * tests/test-mbscasestr3.sh: New file.
51378         * tests/test-mbscasestr3.c: New file.
51379         * tests/test-mbscasestr4.sh: New file.
51380         * tests/test-mbscasestr4.c: New file.
51381         * m4/locale-tr.m4: New file.
51382
51383 2007-02-11  Bruno Haible  <bruno@clisp.org>
51384
51385         Ensure O(n) worst-case complexity of mbsstr.
51386         * lib/mbsstr.c: Include stdbool.h.
51387         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
51388         functions.
51389         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
51390         bookkeeping indicates that it's worth it.
51391         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
51392
51393         * modules/mbsstr-tests: New file.
51394         * tests/test-mbsstr1.c: New file.
51395         * tests/test-mbsstr2.sh: New file.
51396         * tests/test-mbsstr2.c: New file.
51397         * tests/test-mbsstr3.sh: New file.
51398         * tests/test-mbsstr3.c: New file.
51399         * m4/locale-fr.m4: New file.
51400
51401 2007-02-11  Bruno Haible  <bruno@clisp.org>
51402
51403         * lib/mbsrchr.c (mbsrchr): Fix bug.
51404
51405         * modules/mbsrchr-tests: New file.
51406         * tests/test-mbsrchr.sh: New file.
51407         * tests/test-mbsrchr.c: New file.
51408
51409 2007-02-11  Bruno Haible  <bruno@clisp.org>
51410
51411         * lib/mbschr.c (mbschr): Fix bug.
51412
51413         * modules/mbschr-tests: New file.
51414         * tests/test-mbschr.sh: New file.
51415         * tests/test-mbschr.c: New file.
51416         * m4/locale-zh.m4: New file.
51417
51418 2007-02-11  Bruno Haible  <bruno@clisp.org>
51419
51420         Support for copying multibyte string iterators.
51421         * lib/mbiter.h: Include <string.h>.
51422         (mbiter_multi_copy): New function.
51423         (mbi_copy): New macro.
51424         * lib/mbuiter.h: Include <string.h>.
51425         (mbuiter_multi_copy): New function.
51426         (mbui_copy): New macro.
51427
51428 2007-02-11  Bruno Haible  <bruno@clisp.org>
51429
51430         New module mbslen.
51431         * modules/mbslen: New file.
51432         * lib/mbslen.c: New file.
51433         * lib/string_.h (mbslen): New declaration.
51434         * m4/mbslen.m4: New file.
51435         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51436         GNULIB_MBSLEN.
51437         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
51438         * MODULES.html.sh (Internationalization functions): Add mbslen.
51439
51440 2007-02-11  Bruno Haible  <bruno@clisp.org>
51441
51442         Ensure O(n) worst-case complexity of strcasestr substitute.
51443         * lib/strcasestr.c: Include stdbool.h.
51444         (knuth_morris_pratt): New function.
51445         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
51446         bookkeeping indicates that it's worth it.
51447         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
51448
51449         * modules/strcasestr-tests: New file.
51450         * tests/test-strcasestr.c: New file.
51451
51452 2007-02-11  Bruno Haible  <bruno@clisp.org>
51453
51454         Ensure O(n) worst-case complexity of c_strcasestr.
51455         * lib/c-strcasestr.c: Include stdbool.h, string.h.
51456         (knuth_morris_pratt): New function.
51457         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
51458         the bookkeeping indicates that it's worth it.
51459         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
51460
51461         * modules/c-strcasestr-tests: New file.
51462         * tests/test-c-strcasestr.c: New file.
51463
51464 2007-02-11  Bruno Haible  <bruno@clisp.org>
51465
51466         Ensure O(n) worst-case complexity of c_strstr.
51467         * lib/c-strstr.c: Include stdbool.h, string.h.
51468         (knuth_morris_pratt): New function.
51469         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
51470         bookkeeping indicates that it's worth it.
51471         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
51472
51473         * lib/c-strstr.c: Complete rewrite for maintainability.
51474
51475         * modules/c-strstr-tests: New file.
51476         * tests/test-c-strstr.c: New file.
51477
51478 2007-02-11  Bruno Haible  <bruno@clisp.org>
51479
51480         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
51481         5.2.1 and earlier, whereby \055 was treated just like the range
51482         delimiter '-'.
51483         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
51484
51485 2007-02-08  Bruno Haible  <bruno@clisp.org>
51486
51487         * modules/regex (Depends-on): Add stdbool.
51488         Reported by Dalibor Topic <robilad@kaffe.org>.
51489
51490 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
51491
51492         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
51493         Prefer returning from main to exiting from it.
51494         Remove unnecessary parens after sizeof.
51495
51496 2007-02-05  Bruno Haible  <bruno@clisp.org>
51497
51498         New module mbssep.
51499         * modules/mbssep: New file.
51500         * lib/mbssep.c: New file.
51501         * lib/string_.h (strsep): Add a conditional link warning.
51502         (mbssep): New declaration.
51503         * m4/mbssep.m4: New file.
51504         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51505         GNULIB_MBSSEP.
51506         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
51507         * MODULES.html.sh (Internationalization functions): Add mbssep.
51508
51509 2007-02-05  Bruno Haible  <bruno@clisp.org>
51510
51511         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
51512         Optimize search in case of 1 delimiter.
51513
51514 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
51515
51516         * lib/acl.h: Include sys/types.h before sys/acl.h.
51517
51518 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
51519
51520         Merge upstream fix for glibc bugzilla #3957:
51521
51522         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
51523
51524         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
51525         bit for RE_HAT_LISTS_NOT_NEWLINE.
51526         (build_charclass_op): Remove bogus comment.
51527
51528 2007-02-05  Simon Josefsson  <simon@josefsson.org>
51529
51530         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
51531
51532 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
51533
51534         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
51535         * lib/memmem.c [!defined _LIBC]: Include config.h.
51536
51537 2007-02-04  Bruno Haible  <bruno@clisp.org>
51538
51539         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
51540         warning message.
51541
51542 2007-02-04  Bruno Haible  <bruno@clisp.org>
51543
51544         New module mbstok_r.
51545         * modules/mbstok_r: New file.
51546         * lib/mbstok_r.c: New file.
51547         * lib/string_.h (strtok_r): Change argument names to match the
51548         comments. Add a conditional link warning.
51549         (mbstok_r): New declaration.
51550         * m4/mbstok_r.m4: New file.
51551         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51552         GNULIB_MBSTOK_R.
51553         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
51554         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
51555
51556 2007-02-04  Bruno Haible  <bruno@clisp.org>
51557
51558         New module mbsspn.
51559         * modules/mbsspn: New file.
51560         * lib/mbsspn.c: New file.
51561         * lib/string_.h (strspn): Add a conditional link warning.
51562         (mbsspn): New declaration.
51563         * m4/mbsspn.m4: New file.
51564         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51565         GNULIB_MBSSPN.
51566         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
51567         * MODULES.html.sh (Internationalization functions): Add mbsspn.
51568
51569 2007-02-04  Bruno Haible  <bruno@clisp.org>
51570
51571         New module mbspbrk.
51572         * modules/mbspbrk: New file.
51573         * lib/mbspbrk.c: New file.
51574         * lib/string_.h (strpbrk): Add a conditional link warning.
51575         (mbspbrk): New declaration.
51576         * m4/mbspbrk.m4: New file.
51577         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51578         GNULIB_MBSPBRK.
51579         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
51580         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
51581
51582 2007-02-04  Bruno Haible  <bruno@clisp.org>
51583
51584         New module mbscspn.
51585         * modules/mbscspn: New file.
51586         * lib/mbscspn.c: New file.
51587         * lib/string_.h (strcspn): Add a conditional link warning.
51588         (mbscspn): New declaration.
51589         * m4/mbscspn.m4: New file.
51590         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51591         GNULIB_MBSCSPN.
51592         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
51593         * MODULES.html.sh (Internationalization functions): Add mbscspn.
51594
51595 2007-02-04  Bruno Haible  <bruno@clisp.org>
51596
51597         New module mbscasestr, reduced goal of strcasestr.
51598         * modules/mbscasestr: New file.
51599         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
51600         (mbscasestr): Renamed from strcasestr.
51601         * lib/strcasestr.c: Don't include mbuiter.h.
51602         (strcasestr): Remove support for multibyte locales.
51603         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
51604         Change the conditional link warning.
51605         (mbscasestr): New declaration.
51606         * m4/mbscasestr.m4: New file.
51607         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
51608         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
51609         REPLACE_STRCASESTR.
51610         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
51611         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51612         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
51613         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
51614         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
51615         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
51616         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
51617         (Depends-on): Remove mbuiter.
51618         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
51619
51620 2007-02-04  Bruno Haible  <bruno@clisp.org>
51621
51622         Simplify handling of strncasecmp.
51623         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
51624         the conditional link warning.
51625         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51626         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
51627         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
51628         * modules/strcase (configure.ac): Don't invoke
51629         gl_STRING_MODULE_INDICATOR.
51630         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
51631
51632 2007-02-04  Bruno Haible  <bruno@clisp.org>
51633
51634         New module mbscasecmp, reduced goal of strcasecmp.
51635         * modules/mbscasecmp: New file.
51636         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
51637         (mbscasecmp): Renamed from strcasecmp.
51638         * lib/strcasecmp.c: Don't include mbuiter.h.
51639         (strcasecmp): Remove support for multibyte locales.
51640         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
51641         Change the conditional link warning.
51642         (mbscasecmp): New declaration.
51643         * m4/mbscasecmp.m4: New file.
51644         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
51645         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
51646         REPLACE_STRCASECMP.
51647         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
51648         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51649         GNULIB_MBSCASECMP.
51650         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
51651         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
51652         * modules/strcase (Files): Remove m4/mbrtowc.m4.
51653         (Depends-on): Remove mbuiter.
51654         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
51655
51656 2007-02-04  Bruno Haible  <bruno@clisp.org>
51657
51658         New module mbsstr. Remove module strstr.
51659         * modules/mbsstr: New file.
51660         * modules/strstr: Remove file.
51661         * lib/mbsstr.c: Renamed from lib/strstr.c.
51662         (mbsstr): Renamed from strstr.
51663         * lib/string_.h (strstr): Remove declaration. Change the conditional
51664         link warning.
51665         (mbsstr): New declaration.
51666         * m4/mbsstr.m4: New file.
51667         * m4/strstr.m4: Remove file.
51668         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
51669         REPLACE_STRSTR.
51670         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
51671         Don't initialize GNULIB_STRSTR.
51672         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
51673         substitute GNULIB_STRSTR and REPLACE_STRSTR.
51674         * MODULES.html.sh (Internationalization functions): Add mbsstr.
51675         (Support for systems lacking ANSI C 89): Remove strstr.
51676
51677 2007-02-04  Bruno Haible  <bruno@clisp.org>
51678
51679         New module mbsrchr.
51680         * modules/mbsrchr: New file.
51681         * lib/mbsrchr.c: New file.
51682         * lib/string_.h (strrchr): Add a conditional link warning.
51683         (mbsrchr): New declaration.
51684         * m4/mbsrchr.m4: New file.
51685         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51686         GNULIB_MBSRCHR.
51687         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
51688         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
51689
51690 2007-02-04  Bruno Haible  <bruno@clisp.org>
51691
51692         New module mbschr.
51693         * modules/mbschr: New file.
51694         * lib/mbschr.c: New file.
51695         * lib/string_.h (strchr): Add a conditional link warning.
51696         (mbschr): New declaration.
51697         * m4/mbschr.m4: New file.
51698         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51699         GNULIB_MBSCHR.
51700         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
51701         * MODULES.html.sh (Internationalization functions): Add mbschr.
51702
51703 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
51704
51705         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
51706
51707         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
51708
51709 2007-02-04  Bruno Haible  <bruno@clisp.org>
51710
51711         New module description section 'configure.ac-early'.
51712         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
51713         (func_get_autoconf_early_snippet): New function.
51714         (func_import, func_create_testdir): Use it. Remove special cases for
51715         modules 'extensions' and 'lock'.
51716         * modules/extensions (configure.ac-early): Require
51717         gl_USE_SYSTEM_EXTENSIONS.
51718         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
51719
51720 2007-02-04  Bruno Haible  <bruno@clisp.org>
51721
51722         Make use of gcj-4.3's -fsource and -ftarget option.
51723         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
51724         and if so try the options -fsource and -ftarget.
51725         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
51726         source_version, ftarget_option, target_version arguments.
51727         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
51728         (is_envjavac_oldgcj_14_14_usable): Renamed from
51729         is_envjavac_gcj_14_14_usable.
51730         (is_envjavac_oldgcj_14_13_usable): Renamed from
51731         is_envjavac_gcj_14_13_usable.
51732         (is_gcj_present): Update.
51733         (is_gcj_43, is_gcj43_usable): New functions.
51734         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
51735         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
51736         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
51737         try the options -fsource and -ftarget.
51738
51739 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51740
51741         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
51742         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
51743         larger value.
51744
51745 2007-02-03  Jim Meyering  <jim@meyering.net>
51746
51747         Give tools a better chance to allocate space for very large buffers.
51748         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
51749
51750         Make pwd and readlink work also when run with an unreadable parent dir
51751         on systems with openat support.
51752         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
51753         provided getcwd function, even when we have openat support.
51754         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
51755
51756 2007-02-02  Bruno Haible  <bruno@clisp.org>
51757
51758         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
51759         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
51760         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
51761         portability problems if one of these functions is only used on specific
51762         platforms.
51763         Reported by Paul Eggert.
51764
51765 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
51766
51767         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
51768         is causing more trouble than it's curing.
51769         * lib/regex_internal.h (__mempcpy): Remove.
51770         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
51771         (and make the code a tad smaller to boot).
51772         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
51773
51774 2007-02-02  Jim Meyering  <jim@meyering.net>
51775
51776         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
51777         section, not in the Makefile.am: one.
51778
51779 2007-02-02  Eric Blake  <ebb9@byu.net>
51780
51781         * lib/strchrnul.c: Always include config.h first.
51782
51783         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
51784         gnulib strstr is not necessary here.
51785
51786 2007-02-02  Simon Josefsson  <simon@josefsson.org>
51787
51788         * m4/socklen.m4: Fix typo.
51789
51790 2007-02-02  Eric Blake  <ebb9@byu.net>
51791
51792         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
51793         * modules/netinet_in (Makefile.am): Likewise.
51794
51795 2007-02-01  Bruno Haible  <bruno@clisp.org>
51796
51797         * lib/string_.h (GL_LINK_WARNING): New macro.
51798         (strcasecmp, strstr, strcasestr): If provided by the system,
51799         conditionally define as a macro that leads to a warning instead of to
51800         an error.
51801         (strncasecmp): Conditionally define as a macro that leads to a warning.
51802
51803 2007-02-01  Karl Berry  <karl@gnu.org>
51804
51805         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
51806
51807 2007-02-01  Bruno Haible  <bruno@clisp.org>
51808
51809         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
51810         renamings.
51811
51812 2007-02-01  Eric Blake  <ebb9@byu.net>
51813
51814         * modules/regex (Depends-on): Revert dependence on mempcpy.
51815         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
51816         module's definition of mempcpy.
51817         Reported by Paul Eggert.
51818
51819 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
51820
51821         * lib/string_.h: If the gnulib module XYZ is not present, undefine
51822         the symbol XYZ before redefining it.  This fixes a problem with
51823         programs that don't use XYZ, when compiled on systems that define
51824         XYZ to something else.
51825
51826 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
51827
51828         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
51829         occurs when "mkdir -m foo" creates a setgid directory that is (1)
51830         writeable to group or other and (2) is intended to have a special
51831         mode bit that is set or cleared.  In such a case, the directory
51832         should be neither group- nor other-writeable until the special
51833         mode bits are right.
51834
51835 2007-01-31  Eric Blake  <ebb9@byu.net>
51836
51837         * modules/mountlist (Depends-on): Add strstr.
51838
51839         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
51840         bug.
51841         * modules/string (Makefile.am): Remove redundant replacement.
51842         * modules/regex (Depends-on): Add mempcpy.
51843
51844 2007-01-31  Bruno Haible  <bruno@clisp.org>
51845
51846         New module description field 'Link'.
51847         * gnulib-tool (func_usage): Document --extract-link-directive.
51848         (sed_extract_prog): Recognize 'Link' directive.
51849         (func_get_link_directive): New function.
51850         (func_import): Show summary of link directives.
51851         Handle --extract-link-directive option.
51852         * modules/acl (Link): New section.
51853         * modules/clock-time (Link): New section.
51854         * modules/euidaccess (Link): New section.
51855         * modules/gettext (Link): New section.
51856         * modules/iconv (Link): New section.
51857         * modules/lock (Link): New section.
51858         * modules/nanosleep (Link): New section.
51859         * modules/readline (Link): New section.
51860
51861 2007-01-27  Bruno Haible  <bruno@clisp.org>
51862
51863         Enforce the use of gnulib modules for unportable <string.h> functions.
51864         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
51865         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
51866         (gl_HEADER_STRING_H_BODY): Require it.
51867         * lib/string_.h: If the gnulib module XYZ is not present, redefine
51868         the symbol XYZ to one that gives a link error.
51869         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
51870         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
51871         * modules/mempcpy (configure.ac): Likewise.
51872         * modules/memrchr (configure.ac): Likewise.
51873         * modules/stpcpy (configure.ac): Likewise.
51874         * modules/stpncpy (configure.ac): Likewise.
51875         * modules/strcase (configure.ac): Likewise.
51876         * modules/strcasestr (configure.ac): Likewise.
51877         * modules/strchrnul (configure.ac): Likewise.
51878         * modules/strdup (configure.ac): Likewise.
51879         * modules/strndup (configure.ac): Likewise.
51880         * modules/strnlen (configure.ac): Likewise.
51881         * modules/strpbrk (configure.ac): Likewise.
51882         * modules/strsep (configure.ac): Likewise.
51883         * modules/strstr (configure.ac): Likewise.
51884         * modules/strtok_r (configure.ac): Likewise.
51885
51886 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
51887
51888         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
51889
51890 2007-01-30  Jim Meyering  <jim@meyering.net>
51891
51892         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
51893
51894 2007-01-29  Bruno Haible  <bruno@clisp.org>
51895
51896         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
51897         * lib/execute.c: Likewise.
51898         * lib/pipe.c: Likewise.
51899         * lib/printf-args.h: Likewise.
51900         * lib/printf-args.c: Likewise.
51901         * lib/printf-parse.c: Likewise.
51902         * lib/vasnprintf.c: Likewise.
51903
51904 2007-01-29  Eric Blake  <ebb9@byu.net>
51905
51906         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
51907         declaration.
51908
51909 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
51910
51911         * lib/strptime.h (strptime): Use 'restrict' for args where
51912         POSIX requires this.
51913         * lib/strptime.c (strptime): Likewise.
51914         Change license notice from LGPL to GPL, since gnulib-tool will
51915         change this as needed.
51916         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
51917         defined.
51918         Include "strptime.h" first, to check interface.
51919         Do not #undef _LIBC and _NL_CURRENT.
51920         Do not include <stdlib.h>; no longer needed.
51921         Include "time_r.h" and declare ptime_locale_status
51922         only if _LIBC is not defined.
51923         (__P): Remove unused macro.
51924         (match_string): Bring back glibc version, but use it only if _LIBC
51925         is defined.
51926         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
51927         Remove unnecessary assertion and abort() call.
51928         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
51929         * m4/strptime.m4: Fix serial number comment.
51930         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
51931         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
51932         (Depends-on): Add time_r.
51933
51934 2007-01-29  Bruno Haible  <bruno@clisp.org>
51935
51936         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51937         strptime.
51938         * modules/strptime (Depends-on): Add stdbool.
51939         * lib/strptime.h: Include <time.h> always. Add comments.
51940
51941 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51942
51943         * modules/strptime: New file.
51944         * lib/strptime.h: New file.
51945         * lib/strptime.c: New file.
51946         * m4/strptime.m4: New file.
51947
51948 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51949
51950         * MODULES.html.sh: New module mpsort.
51951         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
51952
51953         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
51954         a circularity problem with HP-UX ia64 reported by Bob Proulx in
51955         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
51956         All uses changed.
51957         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
51958         All uses changed.
51959         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
51960         to _Restrict_.
51961         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
51962         the parameter matches the prototype.
51963
51964 2007-01-28  Jim Meyering  <jim@meyering.net>
51965
51966         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
51967         sys/time.h here, reverting that part of the previous patch:
51968         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
51969
51970 2007-01-28  Bruno Haible  <bruno@clisp.org>
51971
51972         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
51973         value of $(SYS_TIME_H).
51974         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
51975         remove it conditionally, too. [added by Jim Meyering]
51976         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
51977         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
51978         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
51979         GETTIMEOFDAY_REPLACEMENT to 1.
51980
51981 2007-01-28  Bruno Haible  <bruno@clisp.org>
51982
51983         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
51984         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
51985         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
51986         Set UNISTD_H instead of UNISTD_H2.
51987         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
51988
51989 2007-01-28  Bruno Haible  <bruno@clisp.org>
51990
51991         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
51992         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
51993
51994 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51995
51996         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
51997         (func_create_testdir): Ensure C locale for `grep' and `tr'
51998         character ranges.
51999         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
52000         ACLOCAL_AMFLAGS parsing state machine.
52001
52002 2007-01-27  Bruno Haible  <bruno@clisp.org>
52003
52004         * modules/unistr/base: Update.
52005
52006 2007-01-27  Bruno Haible  <bruno@clisp.org>
52007
52008         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
52009         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
52010         * modules/unistr/u32-mbtouc-unsafe: Renamed from
52011         modules/unistr/u32-mbtouc.
52012         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
52013         * lib/unistr.h: Update.
52014         * lib/linebreak.c: Update.
52015         * modules/unistr/u32-mbtouc: Renamed from
52016         modules/unistr/u32-mbtouc-safe.
52017         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
52018         * lib/unistr.h: Update.
52019         * lib/unistr/u32-to-u8.c: Update.
52020         * lib/unistr/u32-to-u16.c: Update.
52021
52022 2007-01-27  Bruno Haible  <bruno@clisp.org>
52023
52024         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
52025         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
52026         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
52027         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
52028         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
52029         * modules/unistr/u16-mbtouc-unsafe: Renamed from
52030         modules/unistr/u16-mbtouc.
52031         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
52032         * lib/unistr.h: Update.
52033         * lib/linebreak.c: Update.
52034         * modules/linebreak: Update.
52035         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
52036         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
52037         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
52038         * modules/unistr/u16-mbtouc: Renamed from
52039         modules/unistr/u16-mbtouc-safe.
52040         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
52041         * lib/unistr.h: Update.
52042         * lib/unistr/u16-to-u8.c: Update.
52043         * modules/unistr/u16-to-u8: Update.
52044         * lib/unistr/u16-to-u32.c: Update.
52045         * modules/unistr/u16-to-u32: Update.
52046
52047 2007-01-27  Bruno Haible  <bruno@clisp.org>
52048
52049         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
52050         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
52051         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
52052         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
52053         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
52054         * modules/unistr/u8-mbtouc-unsafe: Renamed from
52055         modules/unistr/u8-mbtouc.
52056         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
52057         * lib/unistr.h: Update.
52058         * lib/striconveh.c: Update.
52059         * modules/striconveh: Update.
52060         * lib/linebreak.c: Update.
52061         * modules/linebreak: Update.
52062         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
52063         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
52064         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
52065         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
52066         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
52067         * lib/unistr.h: Update.
52068         * lib/striconveh.c: Update.
52069         * modules/striconveh: Update.
52070         * lib/unistr/u8-to-u16.c: Update.
52071         * modules/unistr/u8-to-u16: Update.
52072         * lib/unistr/u8-to-u32.c: Update.
52073         * modules/unistr/u8-to-u32: Update.
52074
52075 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52076
52077         Sync from Libtool.
52078         * lib/argz.c: Do not include strings.h nor memory.h, include
52079         string.h unconditionally.  Patch by Simon Josefsson.
52080
52081 2007-01-27  Bruno Haible  <bruno@clisp.org>
52082
52083         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
52084         from gl_HEADER_STRING_H_BODY.
52085         (gl_HEADER_STRING_H_BODY): Require it.
52086         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
52087         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
52088         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
52089         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
52090         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52091         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
52092         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52093         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
52094         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
52095         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
52096         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
52097         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
52098         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
52099         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52100         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52101
52102 2007-01-27  Bruno Haible  <bruno@clisp.org>
52103
52104         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
52105         check_PROGRAMS into noinst_PROGRAMS.
52106         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
52107         check_PROGRAMS in this case.
52108         (func_import): Set for_test to false.
52109         (func_create_testdir): Set for_test to true.
52110
52111 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
52112             Bruno Haible  <bruno@clisp.org>
52113
52114         * modules/strcasestr (Files): Remove lib/strcasestr.h.
52115         (Depends-on): Add string.
52116         (Includes): Use <string.h> instead of strcasestr.h.
52117         * modules/string (Makefile.am): Also substitute the value of
52118         REPLACE_STRCASESTR.
52119         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
52120         assume strcasestr is declared in <string.h> not <strings.h>. Also
52121         set REPLACE_STRCASESTR.
52122         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
52123         REPLACE_STRCASESTR.
52124         * lib/strcasestr.h: Remove file.
52125         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
52126         * lib/string_.h (strcasestr): New declaration.
52127
52128 2007-01-27  Bruno Haible  <bruno@clisp.org>
52129
52130         * lib/string_.h: Use 'extern'.
52131
52132 2007-01-27  Jim Meyering  <jim@meyering.net>
52133
52134         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
52135         of set-but-not-used local, "q".
52136
52137         * lib/mempcpy.c: Include <config.h> before <string.h>.
52138         This fixes a compilation error on HP-UX, due to the system's
52139         "restrict"-using mempcpy prototype.
52140
52141 2007-01-26  Bruno Haible  <bruno@clisp.org>
52142
52143         Small optimization.
52144         * lib/javacomp.c: Include c-strstr.h.
52145          (is_envjavac_gcj): Use c_strstr instead of strstr.
52146         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
52147
52148 2007-01-26  Bruno Haible  <bruno@clisp.org>
52149
52150         * MODULES.html.sh (Unicode string functions): Add the new modules.
52151
52152         * modules/uniconv/u32-strconv-to-locale: New file.
52153         * lib/uniconv/u32-strconv-to-locale.c: New file.
52154
52155         * modules/uniconv/u16-strconv-to-locale: New file.
52156         * lib/uniconv/u16-strconv-to-locale.c: New file.
52157
52158         * modules/uniconv/u8-strconv-to-locale: New file.
52159         * lib/uniconv/u8-strconv-to-locale.c: New file.
52160
52161         * modules/uniconv/u32-strconv-from-locale: New file.
52162         * lib/uniconv/u32-strconv-from-locale.c: New file.
52163
52164         * modules/uniconv/u16-strconv-from-locale: New file.
52165         * lib/uniconv/u16-strconv-from-locale.c: New file.
52166
52167         * modules/uniconv/u8-strconv-from-locale: New file.
52168         * lib/uniconv/u8-strconv-from-locale.c: New file.
52169
52170         * modules/uniconv/u32-strconv-to-enc: New file.
52171         * lib/uniconv/u32-strconv-to-enc.c: New file.
52172         * modules/uniconv/u32-strconv-to-enc-tests: New file.
52173         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
52174
52175         * modules/uniconv/u16-strconv-to-enc: New file.
52176         * lib/uniconv/u16-strconv-to-enc.c: New file.
52177         * lib/uniconv/u-strconv-to-enc.h: New file.
52178         * modules/uniconv/u16-strconv-to-enc-tests: New file.
52179         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
52180
52181         * modules/uniconv/u8-strconv-to-enc: New file.
52182         * lib/uniconv/u8-strconv-to-enc.c: New file.
52183         * modules/uniconv/u8-strconv-to-enc-tests: New file.
52184         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
52185
52186         * modules/uniconv/u32-strconv-from-enc: New file.
52187         * lib/uniconv/u32-strconv-from-enc.c: New file.
52188         * modules/uniconv/u32-strconv-from-enc-tests: New file.
52189         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
52190
52191         * modules/uniconv/u16-strconv-from-enc: New file.
52192         * lib/uniconv/u16-strconv-from-enc.c: New file.
52193         * modules/uniconv/u16-strconv-from-enc-tests: New file.
52194         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
52195
52196         * modules/uniconv/u8-strconv-from-enc: New file.
52197         * lib/uniconv/u8-strconv-from-enc.c: New file.
52198         * lib/uniconv/u-strconv-from-enc.h: New file.
52199         * modules/uniconv/u8-strconv-from-enc-tests: New file.
52200         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
52201
52202         * modules/uniconv/u32-conv-from-enc: New file.
52203         * lib/uniconv/u32-conv-from-enc.c: New file.
52204         * modules/uniconv/u32-conv-from-enc-tests: New file.
52205         * tests/uniconv/test-u32-conv-from-enc.c: New file.
52206
52207         * modules/uniconv/u16-conv-from-enc: New file.
52208         * lib/uniconv/u16-conv-from-enc.c: New file.
52209         * lib/uniconv/u-conv-from-enc.h: New file.
52210         * modules/uniconv/u16-conv-from-enc-tests: New file.
52211         * tests/uniconv/test-u16-conv-from-enc.c: New file.
52212
52213         * modules/uniconv/u8-conv-from-enc: New file.
52214         * lib/uniconv/u8-conv-from-enc.c: New file.
52215         * modules/uniconv/u8-conv-from-enc-tests: New file.
52216         * tests/uniconv/test-u8-conv-from-enc.c: New file.
52217
52218         * modules/uniconv/base: New file.
52219         * lib/uniconv.h: New file.
52220
52221 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
52222
52223         * doc/gnulib-tool.texi (Initial import): Update to match current
52224         behavior with strdup module.
52225         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
52226         * lib/memmem.h: Remove; all uses removed.  This is now done
52227         by <string.h>.
52228         * lib/mempcpy.h: Likewise.
52229         * lib/memrchr.h: Likewise.
52230         * lib/stpcpy.h: Likewise.
52231         * lib/stpncpy.h: Likewise.
52232         * lib/strcase.h: Likewise.
52233         * lib/strchrnul.h: Likewise.
52234         * lib/strdup.h: Likewise.
52235         * lib/strndup.h: Likewise.
52236         * lib/strnlen.h: Likewise.
52237         * lib/strpbrk.h: Likewise.
52238         * lib/strsep.h: Likewise.
52239         * lib/strstr.h: Likewise.
52240         * lib/strtok_r.h: Likewise.
52241         * lib/string_.h: New file.
52242         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
52243         Rely on <string.h> instead.
52244         * lib/canon-host.c: Likewise.
52245         * lib/chdir-long.c: Likewise.
52246         * lib/concatpath.c: Likewise.
52247         * lib/exclude.c: Likewise.
52248         * lib/fchdir.c: Likewise.
52249         * lib/getaddrinfo.c: Likewise.
52250         * lib/getcwd.c: Likewise.
52251         * lib/getsubopt.c: Likewise.
52252         * lib/glob.c: Likewise.
52253         * lib/hard-locale.c: Likewise.
52254         * lib/iconvme.c: Likewise.
52255         * lib/javacomp.c: Likewise.
52256         * lib/mempcpy.c: Likewise.
52257         * lib/memrchr.c: Likewise.
52258         * lib/regex_internal.h: Likewise.
52259         * lib/stpncpy.c: Likewise.
52260         * lib/strcasecmp.c: Likewise.
52261         * lib/strchrnul.c: Likewise.
52262         * lib/strdup.c: Likewise.
52263         * lib/striconv.c: Likewise.
52264         * lib/striconveh.c: Likewise.
52265         * lib/striconveha.c: Likewise.
52266         * lib/strncasecmp.c: Likewise.
52267         * lib/strndup.c: Likewise.
52268         * lib/strnlen.c: Likewise.
52269         * lib/strsep.c: Likewise.
52270         * lib/strstr.c: Likewise.
52271         * lib/strtok_r.c: Likewise.
52272         * lib/userspec.c: Likewise.
52273         * lib/w32spawn.h: Likewise.
52274         * lib/xstrndup.c: Likewise.
52275         * lib/mountlist.c (strstr): Remove decl.
52276         * m4/string_h.m4: New file.
52277         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
52278         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
52279         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
52280         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
52281         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
52282         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
52283         Set REPLACE_STRCASECMP if necessary.
52284         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
52285         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
52286         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
52287         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
52288         HAVE_DECL_STRDUP if necessary.
52289         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
52290         since gl_FUNC_STRNDUP does that now.
52291         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
52292         Check for decl here...
52293         (gl_PREREQ_STRNLEN): ... not here.
52294         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
52295         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
52296         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
52297         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
52298         necessary.
52299         * modules/string: New file.
52300         * modules/memmem (Files): Remove special-purpose include file.
52301         (Depends-on): Add string.
52302         (Include): Include <string.h>, not the removed file.
52303         * modules/mempcpy: Likewise.
52304         * modules/memrchr: Likewise.
52305         * modules/stpcpy: Likewise.
52306         * modules/stpncpy: Likewise.
52307         * modules/strcase: Likewise.
52308         * modules/strchrnul: Likewise.
52309         * modules/strdup: Likewise.
52310         * modules/strndup: Likewise.
52311         * modules/strnlen: Likewise.
52312         * modules/strpbrk: Likewise.
52313         * modules/strsep: Likewise.
52314         * modules/strstr: Likewise.
52315         * modules/strtok_r: Likewise.
52316         * tests/test-dirname.c: Don't include "strdup.h", since
52317         <string.h> now suffices.
52318         * tests/test-memmem.c: Don't include "memmem.h", since
52319         <string.h> now suffices.
52320
52321 2007-01-25  Bruno Haible  <bruno@clisp.org>
52322
52323         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
52324         *resultp is 0.
52325
52326         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
52327         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
52328         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
52329         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
52330
52331         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
52332         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
52333         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
52334         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
52335         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
52336         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
52337
52338 2007-01-24  Bruno Haible  <bruno@clisp.org>
52339
52340         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
52341         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
52342         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
52343         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
52344         gl_FUNC_FTS_CORE.
52345         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
52346         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
52347         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52348         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
52349         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
52350         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
52351         gl_FUNC_FCHOWNAT.
52352         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
52353         gl_FUNC_STRFTIME.
52354         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
52355         Reported by Ralf Wildenhues.
52356
52357 2007-01-24  Bruno Haible  <bruno@clisp.org>
52358
52359         Drop AC_REQUIRE calls that are redundant with the module dependencies.
52360         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
52361         gl_GETADDRINFO.
52362         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
52363         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
52364         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
52365
52366 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
52367
52368         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
52369         Don't use 'exit'; just return from 'main'.
52370         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
52371
52372         * lib/fnmatch_.h: Readjust white space and comments to match
52373         glibc, to avoid spurious diffs.
52374
52375 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52376
52377         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
52378         2004-12-01 change by Jakub Jelinek, since this code won't compile
52379         if !LIBC.  Problem reported by Bob Proulx.
52380
52381 2007-01-23  Bruno Haible  <bruno@clisp.org>
52382
52383         * lib/striconveh.c: Include c-strcaseeq.h.
52384         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
52385         * modules/striconveh (Depends-on): Add c-strcaseeq.
52386
52387 2007-01-23  Bruno Haible  <bruno@clisp.org>
52388
52389         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
52390
52391         * modules/c-strcaseeq: New file.
52392         * lib/c-strcaseeq.h: New file.
52393
52394         * modules/streq: New file.
52395         * lib/streq.h: New file.
52396
52397 2007-01-23  Bruno Haible  <bruno@clisp.org>
52398
52399         * modules/striconveha-tests: New file.
52400         * tests/test-striconveha.c: New file.
52401
52402         * lib/striconveha.h: Include <stdbool.h>.
52403         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
52404         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
52405         (mem_iconveha_notranslit): Renamed from mem_iconveha.
52406         (mem_iconveha): New function.
52407         (str_iconveha_notranslit): Renamed from str_iconveha.
52408         (str_iconveha): New function.
52409         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
52410         c-strcase.
52411
52412 2007-01-23  Bruno Haible  <bruno@clisp.org>
52413
52414         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
52415         encodings without forgiving before trying any encoding with handler.
52416         (str_iconveha): Try all encodings without forgiving before trying any
52417         encoding with handler.
52418
52419 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52420
52421         Import the following changes from libc.
52422
52423         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
52424
52425         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
52426
52427         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
52428
52429         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
52430         normal_bracket label.
52431
52432         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
52433
52434         [BZ #361]
52435         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
52436         to normal_bracket after fetching the next character.
52437
52438 2007-01-22  Bruno Haible  <bruno@clisp.org>
52439
52440         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
52441         argument.
52442         * lib/striconveh.c (iconv_carefully_1): New function.
52443         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
52444         argument.
52445         (str_cd_iconveh): Update.
52446         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
52447         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
52448         * tests/test-striconveh.c (MAGIC): New macro.
52449         (new_offsets): New function.
52450         (main): Test call with and without offsets.
52451
52452 2007-01-22  Bruno Haible  <bruno@clisp.org>
52453
52454         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
52455         * modules/sys_select (Makefile.am): Likewise.
52456         * modules/sys_socket (Makefile.am): Likewise.
52457         * modules/sys_time (Makefile.am): Likewise.
52458
52459 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
52460
52461         * modules/gettimeofday (License): Change from GPL to LGPL, since
52462         gettimeofday is a library function.
52463
52464 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52465
52466         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
52467
52468 2007-01-21  Bruno Haible  <bruno@clisp.org>
52469
52470         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
52471
52472 2007-01-21  Bruno Haible  <bruno@clisp.org>
52473
52474         * modules/striconveha: New file.
52475         * lib/striconveha.h: New file.
52476         * lib/striconveha.c: New file.
52477         * MODULES.html.sh (Internationalization functions): Add striconveha.
52478         * lib/striconv.c (str_iconv): Optimize the case of an empty input
52479         string.
52480         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
52481
52482 2007-01-21  Bruno Haible  <bruno@clisp.org>
52483
52484         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
52485         * lib/striconveh.c (str_iconveh): Likewise.
52486
52487 2007-01-21  Bruno Haible  <bruno@clisp.org>
52488
52489         * lib/striconveh.h (mem_iconveh): New declaration.
52490         * lib/striconveh.c (mem_iconveh): New function.
52491         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
52492
52493 2007-01-21  Bruno Haible  <bruno@clisp.org>
52494
52495         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
52496
52497         * lib/striconveh.h (mem_cd_iconveh): Change specification.
52498         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
52499         original result buffer.
52500         (str_cd_iconveh): Update.
52501         * tests/test-striconveh.c (main): Update.
52502
52503         * lib/striconv.h (mem_cd_iconv): Change specification.
52504         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
52505         result buffer.
52506         (str_cd_iconv): Update.
52507         * tests/test-striconv.c (main): Update.
52508
52509 2007-01-21  Bruno Haible  <bruno@clisp.org>
52510
52511         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
52512
52513 2007-01-20  Jim Meyering  <jim@meyering.net>
52514
52515         * lib/userspec.c (parse_with_separator): If a user or group string
52516         starts with "+", skip the corresponding name-to-ID look-up, since
52517         such a look-up must fail: user and group names may not include "+".
52518
52519 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
52520
52521         * lib/poll.c: Include sys/time.h and time.h unconditionally,
52522         since we now assume the sys_time module.
52523         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
52524         check for sys/time.h; no longer needed.
52525         * modules/poll (Depends-on): Depend on sys_time.
52526
52527 2007-01-18  Bruno Haible  <bruno@clisp.org>
52528
52529         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
52530         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
52531
52532         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
52533         gettimeofday.
52534
52535         * tests/test-gettimeofday.c: Include <time.h>.
52536         (dummy): Remove variable.
52537
52538         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
52539         gl_HEADER_SYS_TIME_H.
52540         (gl_HEADER_SYS_TIME_H): New macro.
52541
52542         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
52543         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52544         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
52545         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
52546         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52547         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
52548         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
52549         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52550         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
52551         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
52552         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52553
52554         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
52555         last change; it caused a compilation error when cross-compiling to
52556         Cygwin.
52557
52558 2007-01-18  Jim Meyering  <jim@meyering.net>
52559
52560         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
52561         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
52562         than the race-prone "test -d sys || mkdir sys".
52563         (configure.ac): Use AC_PROG_MKDIR_P.
52564         * modules/sys_select: Likewise.
52565         * modules/sys_socket: Likewise.
52566         * modules/sys_time: Likewise.
52567
52568 2007-01-18  Eric Blake  <ebb9@byu.net>
52569
52570         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
52571         replace gettimeofday.
52572         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
52573         name, to avoid infinite recursion.
52574
52575 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
52576
52577         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
52578         module sys_time.
52579         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
52580         assume timespec.h defines struct timeval.
52581         * lib/settime.c: Likewise.
52582         * lib/utimens.c: Likewise.
52583         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
52584         since we now assume the gettimeofday module.
52585         * lib/tempname.c (__gen_tempname): Likewise.
52586         * lib/gettimeofday.h: Remove.
52587         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
52588         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
52589         Include <time.h>, for 'time()'.
52590         (localtime_buffer_addr): Also use this workaround if
52591         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
52592         to simplify the uses.  All uses changed.
52593         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
52594         that #undef is inside {}, and 'const' follows type name consistently.
52595         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
52596         (gettimeofday): Do not use the maximum possible value for
52597         tv->tv_usec, since that might break usages other than ls.c.
52598         Instead, we'll leave ls.c alone.  This undoes today's patch
52599         by Bruno.  Add a compile-time warning for 1s-clock resolution;
52600         we've never observed the problem but might as well keep the
52601         canary.
52602         * lib/nanosleep.c: Include timespec.h first, for interface check.
52603         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
52604         now assume the sys_time module.
52605         * lib/tempname.c: Likewise.
52606         * lib/timespec.h: Likewise.
52607         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
52608         needed.
52609         * lib/strftime.c: Likewise.
52610         * lib/timespec.h: Likewise.
52611         * lib/posixtm.c: Include posixtm.h first, for interface check.
52612         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
52613         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
52614         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
52615         * lib/sys_time_.h: New file.
52616         * lib/timespec.h (struct timespec): Use long int, not long.
52617         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
52618         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
52619         Remove obsolescent call to AC_HEADER_TIME.
52620         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
52621         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52622         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
52623         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
52624         Likewise.
52625         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
52626         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
52627         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
52628         into the sys_time module.  Check for gettimeofday just once.
52629         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
52630         for gettimeofday signature to just check the signature.  Merely
52631         compile it, since linking doesn't test signature.  Improve test for
52632         whether gettimeofday.o is actually needed.
52633         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
52634         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
52635         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
52636         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52637         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
52638         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
52639         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
52640         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
52641         than worrying about sys/time.h.
52642         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
52643         Don't bother worrying about TIME_WITH_SYS_TIME.
52644         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
52645         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
52646         * m4/sys_time_h.m4: New file.
52647         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
52648         Don't include sys/time.h.  Return from main rather than exiting.
52649         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
52650         all uses changed.
52651         * modules/gethrxtime (Depends-on): Add sys_time.
52652         * modules/gettime (Depends-on): Likewise.
52653         * modules/gettimeofday (Depends-on): Likewise.
52654         * modules/nanosleep (Depends-on): Likewise.
52655         * modules/settime (Depends-on): Likewise.
52656         * modules/tempname (Depends-on): Likewise.
52657         * modules/utimens (Depends-on): Likewise.
52658         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
52659         (Include:) Change back to <sys/time.h>.
52660         (Maintainer:) Add self.
52661         * modules/sys_time: New file.
52662         * modules/tempname (Depends-on): Add gettimeofday.
52663         * tests/test-gettimeofday.c: Include <sys/time.h>
52664         rather than gettimeofday.h.
52665
52666 2007-01-17  Bruno Haible  <bruno@clisp.org>
52667
52668         * gnulib-tool (func_get_license): Revert last patch. Instead, let
52669         the license default to GPL.
52670         (func_create_testdir): Don't complain if a module is LGPL and its
52671         tests module depends on GPLed modules.
52672
52673 2007-01-17  Bruno Haible  <bruno@clisp.org>
52674
52675         * lib/gettimeofday.c (gettimeofday): Add code for the case
52676         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
52677         maximum possible value for tv->tv_usec, rather than the minimum one.
52678
52679 2005-10-08  Martin Lambers  <marlam@marlam.de>
52680 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
52681 2007-01-16  Bruno Haible  <bruno@clisp.org>
52682
52683         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
52684         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
52685         gl_FUNC_GETTIMEOFDAY.
52686         (Include): Add gettimeofday.h.
52687         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
52688         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
52689         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
52690         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
52691         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
52692         * lib/gettimeofday.h: New file.
52693         * lib/gettimeofday.c: Include <sys/timeb.h>.
52694         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
52695         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52696         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
52697         fall back on time().
52698
52699         * tests/test-gettimeofday.c: New file.
52700         * modules/gettimeofday-tests: New file.
52701
52702 2007-01-16  Eric Blake  <ebb9@byu.net>
52703
52704         * modules/fnmatch (Depends-on): Depend on wchar.
52705         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
52706         * m4/fnmatch.m4: Likewise.
52707         * modules/mbchar (Makefile.am): Assume <wchar.h>.
52708         * m4/mbchar.m4: Likewise.
52709         * modules/mbswidth (Depends-on): Depend on wchar.
52710         * lib/mbswidth.c: Assume <wchar.h>.
52711         * m4/mbswidth.m4: Likewise.
52712         * modules/quotearg (Depends-on): Depend on wchar.
52713         * lib/quotearg.c: Assume <wchar.h>.
52714         * m4/quotearg.m4: Likewise.
52715         * modules/regex (Depends-on): Depend on wchar.
52716         * lib/regex_internal.h: Assume <wchar.h>.
52717         * m4/regex.m4: Likewise.
52718         * modules/stdint (Depends-on): Depend on wchar.
52719         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
52720         * m4/stdint.m4: Likewise.
52721         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
52722         * modules/strftime (Depends-on): Depend on wchar.
52723         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
52724         * modules/strtol (Depends-on): Depend on wchar.
52725         * lib/strtol.c: Assume <wchar.h>.
52726         * modules/wcwidth (Depends-on): Depend on wchar.
52727         * lib/wcwidth.h: Assume <wchar.h>.
52728         * m4/wcwidth.m4: Likewise.
52729
52730 2007-01-16  Bruno Haible  <bruno@clisp.org>
52731
52732         * modules/csharpexec-script: New, created from...
52733         * modules/csharpexec: ... this.
52734
52735 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52736
52737         * modules/javaexec-script: New, created from...
52738         * modules/javaexec: ... this.
52739
52740 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52741
52742         * modules/poll (Dependencies): Add sys_select.
52743
52744 2007-01-15  Jim Meyering  <jim@meyering.net>
52745
52746         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
52747         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
52748         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
52749         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
52750
52751 2007-01-15  Bruno Haible  <bruno@clisp.org>
52752
52753         * modules/striconveh: New file.
52754         * lib/striconveh.h: New file.
52755         * lib/striconveh.c: New file.
52756         * MODULES.html.sh (Internationalization functions): Add striconveh.
52757
52758         * modules/striconveh-tests: New file.
52759         * tests/test-striconveh.c: New file.
52760
52761 2007-01-15  Bruno Haible  <bruno@clisp.org>
52762
52763         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
52764         not from GNU libiconv or GNU libc.
52765
52766 2007-01-15  Bruno Haible  <bruno@clisp.org>
52767
52768         * doc/gnulib-intro.texi (Copyright): Explain the different license
52769         terms for module descriptions, autoconf macros, tests, documentation.
52770
52771 2007-01-14  Bruno Haible  <bruno@clisp.org>
52772
52773         * modules/striconv-tests: New file.
52774         * tests/test-striconv.c: New file.
52775
52776 2007-01-14  Bruno Haible  <bruno@clisp.org>
52777
52778         * modules/iconv-tests: New file.
52779         * tests/test-iconv.c: New file.
52780
52781 2007-01-14  Bruno Haible  <bruno@clisp.org>
52782
52783         * gnulib-tool (func_get_license): For test modules, use the license of
52784         the main module.
52785
52786 2007-01-14  Bruno Haible  <bruno@clisp.org>
52787
52788         * modules/iconv (Include): Clarify that <iconv.h> can only be included
52789         if iconv is found to exist.
52790
52791 2007-01-14  Bruno Haible  <bruno@clisp.org>
52792
52793         * modules/c-ctype-tests: New file.
52794         * tests/test-c-ctype.c: New file.
52795
52796 2007-01-14  Bruno Haible  <bruno@clisp.org>
52797
52798         * modules/binary-io-tests: New file.
52799         * tests/test-binary-io.sh: New file.
52800         * tests/test-binary-io.c: New file.
52801
52802 2007-01-14  Bruno Haible  <bruno@clisp.org>
52803
52804         * modules/array-oset-tests: New file.
52805         * tests/test-array_oset.c: New file.
52806
52807 2007-01-14  Bruno Haible  <bruno@clisp.org>
52808
52809         * modules/array-list-tests: New file.
52810         * tests/test-array_list.c: New file.
52811
52812 2007-01-14  Bruno Haible  <bruno@clisp.org>
52813
52814         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
52815         and make.
52816         Reported by Simon Josefsson in
52817         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
52818
52819 2007-01-14  Bruno Haible  <bruno@clisp.org>
52820
52821         * modules/allocsa-tests: New file.
52822         * tests/test-allocsa.c: New file.
52823
52824 2007-01-14  Bruno Haible  <bruno@clisp.org>
52825
52826         * modules/fchdir (Depends-on): Add absolute-header.
52827         * modules/unistd (Depends-on): Likewise.
52828
52829 2006-12-30  Bruno Haible  <bruno@clisp.org>
52830
52831         * modules/fchdir: New file.
52832         * modules/unistd (Files): Add lib/unistd_.h.
52833         (Makefile.am): Generate unistd.h from unistd_.h.
52834         * lib/fchdir.c: New file.
52835         * lib/dirent_.h: New file.
52836         * lib/unistd_.h: New file.
52837         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
52838         * m4/fchdir.m4: New file.
52839         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
52840         (gl_HEADER_UNISTD): Invoke it.
52841         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
52842         function.
52843         * lib/backupfile.c (opendir, closedir): Undefine.
52844         * lib/chown.c (open, close): Undefine.
52845         * lib/clean-temp.c (open, close): Undefine.
52846         * lib/copy-file.c (open, close): Undefine.
52847         * lib/execute.c (open, close): Undefine.
52848         * lib/fsusage.c (open, close): Undefine.
52849         * lib/gc-gnulib.c (open, close): Undefine.
52850         * lib/getcwd.c (opendir, closedir): Undefine.
52851         * lib/glob.c (opendir, closedir): Undefine.
52852         * lib/javacomp.c (open, close): Undefine.
52853         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
52854         * lib/openat-proc.c (open, close): Undefine.
52855         * lib/pagealign_alloc.c (open, close): Undefine.
52856         * lib/pipe.c (open, close): Undefine.
52857         * lib/progreloc.c (open, close): Undefine.
52858         * lib/savedir.c (opendir, closedir): Undefine.
52859         * lib/utime.c (open, close): Undefine.
52860         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
52861
52862 2007-01-10  Bruno Haible  <bruno@clisp.org>
52863
52864         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
52865
52866 2007-01-12  Eric Blake  <ebb9@byu.net>
52867
52868         Provide a robust <wchar.h>.  Further simplifications are now
52869         possible in other modules, but not included here.
52870         * modules/wchar: New module.
52871         * m4/wchar.m4: New file.
52872         * lib/wchar_.h: Likewise.
52873         * modules/mbchar (Depends-on): Depend on wchar, as the first use
52874         of the new module.
52875         * MODULES.html.sh (Extended multibyte and wide character utilities):
52876         New section.
52877
52878 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
52879
52880         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
52881         to a reasonable default for memory allocation.
52882         (xreadlink): Don't allocate a huge buffer, to work around a buggy
52883         file system that reports garbage st_size values for symlinks.
52884         Problem reported by Liyang Hu.
52885
52886 2007-01-11  Simon Josefsson  <simon@josefsson.org>
52887
52888         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
52889         Emacs .#* auto-save files).
52890
52891 2007-01-11  Bruno Haible  <bruno@clisp.org>
52892
52893         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
52894         directory.
52895
52896 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
52897
52898         Use @...@ consistently in lib/wctype_.h.
52899         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
52900         on it being set to 1 or 0.
52901         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
52902         go back to AC_SUBSTing it.
52903         * modules/wctype (Makefile.am): Undo previous change.
52904
52905 2007-01-10  Eric Blake  <ebb9@byu.net>
52906
52907         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
52908         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
52909         * modules/wctype (Makefile.am): Likewise.
52910         Reported by Chris McGuire.
52911
52912 2007-01-10  Jim Meyering  <jim@meyering.net>
52913
52914         fts.c: a small readability/maintainability improvement
52915         * lib/fts.c (fts_read): Make this code slightly more readable and
52916         maintainable by hoisting the "sp->fts_cur = p" assignments to
52917         immediately follow the statements that set P.  Derived from
52918         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
52919
52920 2007-01-10  Eric Blake  <ebb9@byu.net>
52921
52922         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
52923         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
52924         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
52925         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
52926         Reported by Chris McGuire.
52927
52928 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52929
52930         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
52931         in sed script.
52932
52933 2007-01-09  Bruno Haible  <bruno@clisp.org>
52934
52935         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
52936         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
52937         variables.
52938         (func_module): Use them.
52939
52940 2007-01-09  Bruno Haible  <bruno@clisp.org>
52941
52942         * modules/unistr/base: New file.
52943         * lib/unistr.h: New file.
52944
52945         * modules/unistr/u8-to-u16: New file.
52946         * lib/unistr/u8-to-u16.c: New file.
52947
52948         * modules/unistr/u8-to-u32: New file.
52949         * lib/unistr/u8-to-u32.c: New file.
52950
52951         * modules/unistr/u16-to-u8: New file.
52952         * lib/unistr/u16-to-u8.c: New file.
52953
52954         * modules/unistr/u16-to-u32: New file.
52955         * lib/unistr/u16-to-u32.c: New file.
52956
52957         * modules/unistr/u32-to-u8: New file.
52958         * lib/unistr/u32-to-u8.c: New file.
52959
52960         * modules/unistr/u32-to-u16: New file.
52961         * lib/unistr/u32-to-u16.c: New file.
52962
52963         * modules/unistr/u8-check: New file.
52964         * modules/unistr/u16-check: New file.
52965         * modules/unistr/u32-check: New file.
52966         * lib/unistr/u8-check.c: New file.
52967         * lib/unistr/u16-check.c: New file.
52968         * lib/unistr/u32-check.c: New file.
52969
52970         * modules/unistr/u8-chr: New file.
52971         * modules/unistr/u16-chr: New file.
52972         * modules/unistr/u32-chr: New file.
52973         * lib/unistr/u8-chr.c: New file.
52974         * lib/unistr/u16-chr.c: New file.
52975         * lib/unistr/u32-chr.c: New file.
52976
52977         * modules/unistr/u8-cmp: New file.
52978         * modules/unistr/u16-cmp: New file.
52979         * modules/unistr/u32-cmp: New file.
52980         * lib/unistr/u8-cmp.c: New file.
52981         * lib/unistr/u16-cmp.c: New file.
52982         * lib/unistr/u32-cmp.c: New file.
52983
52984         * modules/unistr/u8-cpy: New file.
52985         * modules/unistr/u16-cpy: New file.
52986         * modules/unistr/u32-cpy: New file.
52987         * lib/unistr/u8-cpy.c: New file.
52988         * lib/unistr/u16-cpy.c: New file.
52989         * lib/unistr/u32-cpy.c: New file.
52990         * lib/unistr/u-cpy.h: New file.
52991
52992         * modules/unistr/u8-cpy-alloc: New file.
52993         * modules/unistr/u16-cpy-alloc: New file.
52994         * modules/unistr/u32-cpy-alloc: New file.
52995         * lib/unistr/u8-cpy-alloc.c: New file.
52996         * lib/unistr/u16-cpy-alloc.c: New file.
52997         * lib/unistr/u32-cpy-alloc.c: New file.
52998         * lib/unistr/u-cpy-alloc.h: New file.
52999
53000         * modules/unistr/u8-endswith: New file.
53001         * modules/unistr/u16-endswith: New file.
53002         * modules/unistr/u32-endswith: New file.
53003         * lib/unistr/u8-endswith.c: New file.
53004         * lib/unistr/u16-endswith.c: New file.
53005         * lib/unistr/u32-endswith.c: New file.
53006         * lib/unistr/u-endswith.h: New file.
53007
53008         * modules/unistr/u8-mblen: New file.
53009         * modules/unistr/u16-mblen: New file.
53010         * modules/unistr/u32-mblen: New file.
53011         * lib/unistr/u8-mblen.c: New file.
53012         * lib/unistr/u16-mblen.c: New file.
53013         * lib/unistr/u32-mblen.c: New file.
53014
53015         * modules/unistr/u8-mbtouc: New file.
53016         * modules/unistr/u16-mbtouc: New file.
53017         * modules/unistr/u32-mbtouc: New file.
53018         * lib/unistr/u8-mbtouc.c: New file.
53019         * lib/unistr/u16-mbtouc.c: New file.
53020         * lib/unistr/u32-mbtouc.c: New file.
53021
53022         * modules/unistr/u8-mbtouc-safe: New file.
53023         * modules/unistr/u16-mbtouc-safe: New file.
53024         * modules/unistr/u32-mbtouc-safe: New file.
53025         * lib/unistr/u8-mbtouc-safe.c: New file.
53026         * lib/unistr/u16-mbtouc-safe.c: New file.
53027         * lib/unistr/u32-mbtouc-safe.c: New file.
53028
53029         * modules/unistr/u8-move: New file.
53030         * modules/unistr/u16-move: New file.
53031         * modules/unistr/u32-move: New file.
53032         * lib/unistr/u8-move.c: New file.
53033         * lib/unistr/u16-move.c: New file.
53034         * lib/unistr/u32-move.c: New file.
53035         * lib/unistr/u-move.h: New file.
53036
53037         * modules/unistr/u8-next: New file.
53038         * modules/unistr/u16-next: New file.
53039         * modules/unistr/u32-next: New file.
53040         * lib/unistr/u8-next.c: New file.
53041         * lib/unistr/u16-next.c: New file.
53042         * lib/unistr/u32-next.c: New file.
53043
53044         * modules/unistr/u8-prev: New file.
53045         * modules/unistr/u16-prev: New file.
53046         * modules/unistr/u32-prev: New file.
53047         * lib/unistr/u8-prev.c: New file.
53048         * lib/unistr/u16-prev.c: New file.
53049         * lib/unistr/u32-prev.c: New file.
53050
53051         * modules/unistr/u8-set: New file.
53052         * modules/unistr/u16-set: New file.
53053         * modules/unistr/u32-set: New file.
53054         * lib/unistr/u8-set.c: New file.
53055         * lib/unistr/u16-set.c: New file.
53056         * lib/unistr/u32-set.c: New file.
53057         * lib/unistr/u-set.h: New file.
53058
53059         * modules/unistr/u8-startswith: New file.
53060         * modules/unistr/u16-startswith: New file.
53061         * modules/unistr/u32-startswith: New file.
53062         * lib/unistr/u8-startswith.c: New file.
53063         * lib/unistr/u16-startswith.c: New file.
53064         * lib/unistr/u32-startswith.c: New file.
53065         * lib/unistr/u-startswith.h: New file.
53066
53067         * modules/unistr/u8-stpcpy: New file.
53068         * modules/unistr/u16-stpcpy: New file.
53069         * modules/unistr/u32-stpcpy: New file.
53070         * lib/unistr/u8-stpcpy.c: New file.
53071         * lib/unistr/u16-stpcpy.c: New file.
53072         * lib/unistr/u32-stpcpy.c: New file.
53073         * lib/unistr/u-stpcpy.h: New file.
53074
53075         * modules/unistr/u8-stpncpy: New file.
53076         * modules/unistr/u16-stpncpy: New file.
53077         * modules/unistr/u32-stpncpy: New file.
53078         * lib/unistr/u8-stpncpy.c: New file.
53079         * lib/unistr/u16-stpncpy.c: New file.
53080         * lib/unistr/u32-stpncpy.c: New file.
53081         * lib/unistr/u-stpncpy.h: New file.
53082
53083         * modules/unistr/u8-strcat: New file.
53084         * modules/unistr/u16-strcat: New file.
53085         * modules/unistr/u32-strcat: New file.
53086         * lib/unistr/u8-strcat.c: New file.
53087         * lib/unistr/u16-strcat.c: New file.
53088         * lib/unistr/u32-strcat.c: New file.
53089         * lib/unistr/u-strcat.h: New file.
53090
53091         * modules/unistr/u8-strchr: New file.
53092         * modules/unistr/u16-strchr: New file.
53093         * modules/unistr/u32-strchr: New file.
53094         * lib/unistr/u8-strchr.c: New file.
53095         * lib/unistr/u16-strchr.c: New file.
53096         * lib/unistr/u32-strchr.c: New file.
53097
53098         * modules/unistr/u8-strcmp: New file.
53099         * modules/unistr/u16-strcmp: New file.
53100         * modules/unistr/u32-strcmp: New file.
53101         * lib/unistr/u8-strcmp.c: New file.
53102         * lib/unistr/u16-strcmp.c: New file.
53103         * lib/unistr/u32-strcmp.c: New file.
53104
53105         * modules/unistr/u8-strcpy: New file.
53106         * modules/unistr/u16-strcpy: New file.
53107         * modules/unistr/u32-strcpy: New file.
53108         * lib/unistr/u8-strcpy.c: New file.
53109         * lib/unistr/u16-strcpy.c: New file.
53110         * lib/unistr/u32-strcpy.c: New file.
53111         * lib/unistr/u-strcpy.h: New file.
53112
53113         * modules/unistr/u8-strcspn: New file.
53114         * modules/unistr/u16-strcspn: New file.
53115         * modules/unistr/u32-strcspn: New file.
53116         * lib/unistr/u8-strcspn.c: New file.
53117         * lib/unistr/u16-strcspn.c: New file.
53118         * lib/unistr/u32-strcspn.c: New file.
53119         * lib/unistr/u-strcspn.h: New file.
53120
53121         * modules/unistr/u8-strdup: New file.
53122         * modules/unistr/u16-strdup: New file.
53123         * modules/unistr/u32-strdup: New file.
53124         * lib/unistr/u8-strdup.c: New file.
53125         * lib/unistr/u16-strdup.c: New file.
53126         * lib/unistr/u32-strdup.c: New file.
53127         * lib/unistr/u-strdup.h: New file.
53128
53129         * modules/unistr/u8-strlen: New file.
53130         * modules/unistr/u16-strlen: New file.
53131         * modules/unistr/u32-strlen: New file.
53132         * lib/unistr/u8-strlen.c: New file.
53133         * lib/unistr/u16-strlen.c: New file.
53134         * lib/unistr/u32-strlen.c: New file.
53135         * lib/unistr/u-strlen.h: New file.
53136
53137         * modules/unistr/u8-strmblen: New file.
53138         * modules/unistr/u16-strmblen: New file.
53139         * modules/unistr/u32-strmblen: New file.
53140         * lib/unistr/u8-strmblen.c: New file.
53141         * lib/unistr/u16-strmblen.c: New file.
53142         * lib/unistr/u32-strmblen.c: New file.
53143
53144         * modules/unistr/u8-strmbtouc: New file.
53145         * modules/unistr/u16-strmbtouc: New file.
53146         * modules/unistr/u32-strmbtouc: New file.
53147         * lib/unistr/u8-strmbtouc.c: New file.
53148         * lib/unistr/u16-strmbtouc.c: New file.
53149         * lib/unistr/u32-strmbtouc.c: New file.
53150
53151         * modules/unistr/u8-strncat: New file.
53152         * modules/unistr/u16-strncat: New file.
53153         * modules/unistr/u32-strncat: New file.
53154         * lib/unistr/u8-strncat.c: New file.
53155         * lib/unistr/u16-strncat.c: New file.
53156         * lib/unistr/u32-strncat.c: New file.
53157         * lib/unistr/u-strncat.h: New file.
53158
53159         * modules/unistr/u8-strncmp: New file.
53160         * modules/unistr/u16-strncmp: New file.
53161         * modules/unistr/u32-strncmp: New file.
53162         * lib/unistr/u8-strncmp.c: New file.
53163         * lib/unistr/u16-strncmp.c: New file.
53164         * lib/unistr/u32-strncmp.c: New file.
53165
53166         * modules/unistr/u8-strncpy: New file.
53167         * modules/unistr/u16-strncpy: New file.
53168         * modules/unistr/u32-strncpy: New file.
53169         * lib/unistr/u8-strncpy.c: New file.
53170         * lib/unistr/u16-strncpy.c: New file.
53171         * lib/unistr/u32-strncpy.c: New file.
53172         * lib/unistr/u-strncpy.h: New file.
53173
53174         * modules/unistr/u8-strnlen: New file.
53175         * modules/unistr/u16-strnlen: New file.
53176         * modules/unistr/u32-strnlen: New file.
53177         * lib/unistr/u8-strnlen.c: New file.
53178         * lib/unistr/u16-strnlen.c: New file.
53179         * lib/unistr/u32-strnlen.c: New file.
53180         * lib/unistr/u-strnlen.h: New file.
53181
53182         * modules/unistr/u8-strpbrk: New file.
53183         * modules/unistr/u16-strpbrk: New file.
53184         * modules/unistr/u32-strpbrk: New file.
53185         * lib/unistr/u8-strpbrk.c: New file.
53186         * lib/unistr/u16-strpbrk.c: New file.
53187         * lib/unistr/u32-strpbrk.c: New file.
53188         * lib/unistr/u-strpbrk.h: New file.
53189
53190         * modules/unistr/u8-strrchr: New file.
53191         * modules/unistr/u16-strrchr: New file.
53192         * modules/unistr/u32-strrchr: New file.
53193         * lib/unistr/u8-strrchr.c: New file.
53194         * lib/unistr/u16-strrchr.c: New file.
53195         * lib/unistr/u32-strrchr.c: New file.
53196
53197         * modules/unistr/u8-strspn: New file.
53198         * modules/unistr/u16-strspn: New file.
53199         * modules/unistr/u32-strspn: New file.
53200         * lib/unistr/u8-strspn.c: New file.
53201         * lib/unistr/u16-strspn.c: New file.
53202         * lib/unistr/u32-strspn.c: New file.
53203         * lib/unistr/u-strspn.h: New file.
53204
53205         * modules/unistr/u8-strstr: New file.
53206         * modules/unistr/u16-strstr: New file.
53207         * modules/unistr/u32-strstr: New file.
53208         * lib/unistr/u8-strstr.c: New file.
53209         * lib/unistr/u16-strstr.c: New file.
53210         * lib/unistr/u32-strstr.c: New file.
53211         * lib/unistr/u-strstr.h: New file.
53212
53213         * modules/unistr/u8-strtok: New file.
53214         * modules/unistr/u16-strtok: New file.
53215         * modules/unistr/u32-strtok: New file.
53216         * lib/unistr/u8-strtok.c: New file.
53217         * lib/unistr/u16-strtok.c: New file.
53218         * lib/unistr/u32-strtok.c: New file.
53219         * lib/unistr/u-strtok.h: New file.
53220
53221         * modules/unistr/u8-uctomb: New file.
53222         * modules/unistr/u16-uctomb: New file.
53223         * modules/unistr/u32-uctomb: New file.
53224         * lib/unistr/u8-uctomb.c: New file.
53225         * lib/unistr/u16-uctomb.c: New file.
53226         * lib/unistr/u32-uctomb.c: New file.
53227
53228         * MODULES.html.sh (Unicode string functions): Add the new modules.
53229
53230 2007-01-08  Bruno Haible  <bruno@clisp.org>
53231
53232         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
53233         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
53234         subdirectories.
53235
53236 2007-01-08  Karl Berry  <karl@gnu.org>
53237
53238         * doc/error.texi: mention that main() fns must set program_name
53239         when progname is used.
53240
53241 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
53242
53243         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
53244         WCTYPE_H is empty, for the benefit of builds from non-distclean
53245         directories.  Problem reported by Eric Blake in
53246         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
53247
53248 2007-01-08  Bruno Haible  <bruno@clisp.org>
53249
53250         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
53251         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
53252         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
53253         PROVIDE_CANONICALIZE_FILENAME_MODE.
53254         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
53255
53256 2007-01-08  Bruno Haible  <bruno@clisp.org>
53257
53258         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
53259         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
53260         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
53261         * lib/fts.c: Likewise.
53262         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
53263
53264 2006-12-25  Bruno Haible  <bruno@clisp.org>
53265
53266         * modules/utf8-ucs4-safe: New file.
53267         * lib/utf8-ucs4-safe.h: New file.
53268         * lib/unistr/utf8-ucs4-safe.c: New file.
53269
53270         * modules/utf16-ucs4-safe: New file.
53271         * lib/utf16-ucs4-safe.h: New file.
53272         * lib/unistr/utf16-ucs4-safe.c: New file.
53273
53274         * MODULES.html.sh (Unicode string functions): Add the new modules.
53275
53276 2007-01-08  Bruno Haible  <bruno@clisp.org>
53277
53278         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
53279         (Depends-on): Add unitypes.
53280         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
53281         (u8_mbtouc_aux): Move out to separate file.
53282         (u8_mbtouc): Use ucs4_t, uint8_t types.
53283         * lib/unistr/utf8-ucs4.c: New file.
53284
53285         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
53286         (Depends-on): Add unitypes.
53287         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
53288         (u16_mbtouc_aux): Move out to separate file.
53289         (u16_mbtouc): Use ucs4_t, uint16_t types.
53290         * lib/unistr/utf16-ucs4.c: New file.
53291
53292         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
53293         (Depends-on): Add unitypes.
53294         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
53295         (u8_uctomb_aux): Move out to separate file.
53296         (u8_uctomb): Use ucs4_t, uint8_t types.
53297         * lib/unistr/ucs4-utf8.c: New file.
53298
53299         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
53300         (Depends-on): Add unitypes.
53301         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
53302         (u16_uctomb_aux): Move out to separate file.
53303         (u16_uctomb): Use ucs4_t, uint16_t types.
53304         * lib/unistr/ucs4-utf16.c: New file.
53305
53306 2006-12-25  Bruno Haible  <bruno@clisp.org>
53307
53308         * modules/unitypes: New file.
53309         * lib/unitypes.h: New file.
53310         * MODULES.html.sh (func_all_modules): New section "Unicode string
53311         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
53312         this section. Add unitypes.
53313
53314 2007-01-08  Bruno Haible  <bruno@clisp.org>
53315
53316         Avoid variable names that conflict with those from libtool.
53317         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
53318         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
53319         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
53320         library_names_spec to acl_library_names_spec, hardcode_* to
53321         acl_hardcode_*.
53322         Reported by Ralf Wildenhues.
53323
53324 2007-01-08  Bruno Haible  <bruno@clisp.org>
53325
53326         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
53327         definition.
53328         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
53329         definition.
53330         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
53331         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
53332         definition.
53333         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
53334         definition.
53335         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
53336         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
53337         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
53338         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
53339         definition.
53340         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
53341         definition.
53342         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
53343         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
53344         GC_USE_<algorithm>.
53345         * lib/gc-libgcrypt.c: Likewise.
53346         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
53347         * modules/gc-arctwo (configure.ac): Likewise.
53348         * modules/gc-des (configure.ac): Likewise.
53349         * modules/gc-hmac-md5 (configure.ac): Likewise.
53350         * modules/gc-hmac-sha1 (configure.ac): Likewise.
53351         * modules/gc-md2 (configure.ac): Likewise.
53352         * modules/gc-md4 (configure.ac): Likewise.
53353         * modules/gc-md5 (configure.ac): Likewise.
53354         * modules/gc-random (configure.ac): Likewise.
53355         * modules/gc-rijndael (configure.ac): Likewise.
53356         * modules/gc-sha1 (configure.ac): Likewise.
53357
53358 2007-01-08  Bruno Haible  <bruno@clisp.org>
53359
53360         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
53361         macro definition.
53362         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
53363         definition.
53364         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
53365         definition.
53366         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
53367         * modules/fcntl-safer (configure.ac): Likewise.
53368         * modules/fopen-safer (configure.ac): Likewise.
53369         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
53370         GNULIB_FWRITEERROR macro definition.
53371
53372 2007-01-08  Bruno Haible  <bruno@clisp.org>
53373
53374         * m4/gnulib-common.m4: New file.
53375         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
53376         (func_get_filelist): Add m4/gnulib-common.m4.
53377
53378 2007-01-08  Bruno Haible  <bruno@clisp.org>
53379
53380         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
53381         command.
53382
53383 2007-01-08  Jim Meyering  <jim@meyering.net>
53384
53385         Use a more robust test for a "can't happen" condition.
53386         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
53387         narrowed the st_size value.  Presuming the "can't happen" condition
53388         is true, that narrowing could conceivably convert an invalid st_size
53389         value into a valid one.  Instead, use a change based on Matthew
53390         Woehlke's original patch.
53391
53392         Slight readability improvement: use an assert-like macro
53393         in place of literal "abort ()" uses.
53394         * lib/fts.c (fts_assert): Define.
53395         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
53396         Use this macro instead of a bare 'abort'.
53397
53398 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
53399
53400         Don't worry about using IRIX 5.3's wctype.h broken definitions;
53401         simply work around them.
53402         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
53403         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
53404         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
53405         declaring.
53406         Don't bother to define as macros, since the standard doesn't require it.
53407         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
53408         longer worry about IRIX 5.3.
53409         (HAVE_WCTYPE_CTMP_BUG): Remove.
53410
53411 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53412
53413         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
53414         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
53415         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
53416         Problems reported by Georg Schwarz for IRIX 5.3.
53417
53418         * gnulib-tool (autoconf_minversion): Take the maximum version number
53419         found, not the minimum.  Problem reported by James Youngman.
53420
53421 2007-01-03  Karl Berry  <karl@gnu.org>
53422
53423         * doc/error.texi: new file, explaining interaction with progname.
53424         * doc/gnulib.texi: include it.  Update copyright.
53425
53426 2007-01-03  Simon Josefsson  <simon@josefsson.org>
53427
53428         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
53429         AC_CANONICAL_HOST, to improve autobuild outputs.
53430
53431 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
53432             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
53433
53434         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
53435         sockets, server sockets, and other file descriptors.  Count errors
53436         to compute the return value.  Reorder the code a bit to be easier
53437         to follow.  Don't set event bits that were not requested (except
53438         POLLERR and POLLHUP).
53439
53440 2007-01-01  Bruno Haible  <bruno@clisp.org>
53441
53442         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
53443
53444 2007-01-03  Jim Meyering  <jim@meyering.net>
53445
53446         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
53447
53448 2007-01-02  Bruno Haible  <bruno@clisp.org>
53449
53450         * modules/settime (Include): Require timespec.h.
53451         * modules/nanosleep (Include): Likewise.
53452
53453 2007-01-01  Bruno Haible  <bruno@clisp.org>
53454
53455         * gnulib-tool (func_emit_copyright_notice): Bump year.
53456         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
53457
53458 2007-01-01  Bruno Haible  <bruno@clisp.org>
53459
53460         Improve support for OpenBSD.
53461         * build-aux/config.rpath (libname_spec): Export.
53462         (library_names_spec): New variable. Export.
53463         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
53464         library_names_spec from the config.rpath output. Locate shared library
53465         through the name pattern in library_names_spec.
53466
53467 2007-01-01  Eric Blake  <ebb9@byu.net>
53468
53469         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
53470
53471 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
53472
53473         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
53474         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
53475         assume the C locale, and avoid an "eval" that could cause trouble.
53476         Problem with SORT reported by Bob Proulx.
53477
53478         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
53479         Define.  Trivial patch from Henning Nielsen Lund, originally
53480         sent to bug-grep@gnu.org today.
53481
53482 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53483
53484         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
53485         struct stat.  Problem reported by Henning Nielsen Lund.
53486         * lib/acl.c: Include acl.h first, to check interface.  Don't
53487         bother to include sys/types.h and sys/stat.h again.
53488
53489 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53490
53491         Import the following change from libc; problem reported by
53492         Sven Verdoolaege.
53493
53494         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
53495
53496         [BZ #1373]
53497         * lib/argp.h: Remove __NTH for __argp_usage inline function.
53498
53499 2006-12-28  Jim Meyering  <jim@meyering.net>
53500
53501         * build-aux/announce-gen: Do not assume that the package
53502         builds any of tar.gz, tar.bz2, and .xdelta files.
53503         Suggestion from Simon Josefsson.
53504
53505 2006-12-28  Simon Josefsson  <simon@josefsson.org>
53506
53507         * modules/announce-gen: New file.
53508
53509 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
53510
53511         * lib/mbchar.h: Just include <wctype.h>; the wctype module
53512         handles its gotchas now.
53513         * lib/mbswidth.c: Likewise.
53514         * lib/wcwidth.h: Likewise.
53515         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
53516         and iswcntrl; the wctype module does this stuff now.
53517         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53518         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53519         * modules/mbchar (Depends-on): Add wctype.
53520         * modules/mbswidth (Depends-on): Likewise.
53521         * modules/wcwidth (Depends-on): Likewise.
53522
53523 2006-12-27  Eric Blake  <ebb9@byu.net>
53524
53525         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
53526         module uses more than what <wctype.h> is required to provide.
53527
53528 2006-12-26  Eric Blake  <ebb9@byu.net>
53529
53530         * gnulib-tool (sed_extract_prog): Avoid space-tab.
53531
53532 2006-12-26  Eric Blake  <ebb9@byu.net>
53533
53534         * modules/absolute-header: New module.
53535         * modules/fcntl (Depends-on): Depend on it.
53536         * modules/inttypes (Depends-on): Likewise.
53537         * modules/stdint (Depends-on): Likewise.
53538         * modules/sys_stat (Depends-on): Likewise.
53539         * modules/wctype (Depends-on): Likewise.
53540         * MODULES.html.sh (Support for building libraries and
53541         executables): Document it.
53542
53543 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53544
53545         * gnulib-tool (SED): Remove, undoing previous change.
53546         The problem was that it broke coreutils on Solaris, because
53547         "sed --posix" leaked into a makefile.
53548         (sed): New alias, if 'alias' and GNU sed.
53549
53550 2006-12-24  Jim Meyering  <jim@meyering.net>
53551
53552         Work around an fchownat bug in glibc-2.4:
53553         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
53554         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
53555         in spite of the -P option.
53556         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
53557         New macros.
53558         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
53559         * modules/openat (Files): Add lib/fchownat.c.
53560         * lib/openat.c (fchownat): Don't define here.  Move to...
53561         * lib/fchownat.c: ...this new file.
53562
53563 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53564
53565         Fix bug reported by Bruno Haible in
53566         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
53567         where quotearg.c didn't compile on Mac OS X 10.2 because it
53568         lacks <wchar.h> and wint_t.
53569         * lib/wctype_.h (__wctype_wint_t): New type.
53570         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
53571         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
53572         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
53573         Arg is now of type __wctype_wint_t, not wint_t.
53574         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
53575         substitute HAVE_WINT_T.
53576         * modules/wctype (Files): Add m4/wint_t.m4.
53577         (wctype.h): Substitute HAVE_WINT_T.
53578
53579 2006-12-23  Bruno Haible  <bruno@clisp.org>
53580
53581         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
53582
53583 2006-12-23  Bruno Haible  <bruno@clisp.org>
53584
53585         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
53586         S_ISLNK.
53587         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
53588         mingw.
53589
53590 2006-12-22  Bruno Haible  <bruno@clisp.org>
53591
53592         * lib/copy-file.c: Include acl.h.
53593         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
53594         Close the file descriptors only after being done with copy_acl.
53595         * modules/copy-file (Depends-on): Add acl.
53596
53597 2006-12-22  Bruno Haible  <bruno@clisp.org>
53598
53599         * gnulib-tool (SED): New variable.
53600         Use $SED instead of sed everywhere.
53601
53602 2006-12-22  Bruno Haible  <bruno@clisp.org>
53603
53604         * modules/no-c++: New file.
53605         * m4/no-c++.m4: New file.
53606         * MODULES.html.sh (Support for building libraries and executables):
53607         Add no-c++.
53608
53609 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
53610
53611         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
53612         Include <limits.h>, and use its INT_MAX to rewrite the
53613         j loop so that it does not overflow 'int'.  Problem reported by
53614         Ralf Wildenhues in
53615         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
53616         Play it safe by shifting left by 1 rather than multiplying by 2,
53617         as GCC is less likely to optimize this away when the value
53618         is signed (when it assumes overflow leads to undefined behavior).
53619         Also, don't assume time_t uses two's complement.
53620
53621 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
53622
53623         * MODULES.html.sh: New module wctype.
53624         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
53625         * lib/fnmatch.c: Don't bother to include <wchar.h> before
53626         <wctype.h>, since the new wctype module should fix this.
53627         * lib/quotearg.c: Include <wctype.h> unconditionally, since
53628         the wctype module should arrange for it.
53629         * lib/regex_internal.h: Likewise.
53630         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
53631         since the wctype module should handle this now.
53632         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
53633         * modules/fnmatch (Depends-on): Add wctype.
53634         * modules/quotearg (Depends-on): Likewise.
53635         * modules/regex (Depends-on): Likewise.
53636
53637 2006-12-19  Bruno Haible  <bruno@clisp.org>
53638
53639         * lib/strdup.h [C++]: Wrap definitions in extern "C".
53640         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
53641
53642 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53643
53644         * modules/savewd (Depends-on): Fix dependency on fcntl.
53645
53646 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53647
53648         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
53649         conforms to C99, rather than relying on the user's environment
53650         setting of STDINT_H.
53651
53652 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53653         and Eric Blake  <ebb9@byu.net>
53654
53655         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
53656         This is more consistent with the other defines here.
53657         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
53658         Port to z/OS.  Problem reported by Paul Gilmartin.
53659         Change local vars to use gl_ prefix rather than ac_.
53660         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
53661         with other defines.
53662         * modules/double-slash-root: New module.
53663         * modules/dirname (Files): Remove m4/double-slash-root.m4.
53664         (Depends-on): Add double-slash-root.
53665         * MODULES.html.sh (File system functions): Mention new module.
53666
53667 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
53668
53669         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
53670         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
53671         This is for the benefit of gzip, which doesn't do i18n.
53672
53673 2006-12-12  Jim Meyering  <jim@meyering.net>
53674
53675         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
53676         Reported by Andreas Schwab <schwab@suse.de>.
53677
53678 2006-12-12  Bruno Haible  <bruno@clisp.org>
53679
53680         Merge these changes.
53681         2006-09-05  Bruno Haible  <bruno@clisp.org>
53682         * lib/iconvme.c (iconv_string): No need to save and restore errno when
53683         iconv_alloc succeeded.
53684         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
53685         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
53686         test for " && dest " at the end - dest is always != NULL there. Call
53687         iconv with 4xNULL arguments initially, to reset the state. Call iconv
53688         with 2xNULL arguments, also to flush the state storage. Handle the
53689         IRIX iconv behaviour. Realloc the final result, to throw away unused
53690         memory.
53691
53692 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
53693
53694         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
53695         and fchmodat unconditionally, since glibc 2.4 has them.
53696         Problem reported by Arkadiusz Miskiewicz.
53697
53698 2006-12-10  Bruno Haible  <bruno@clisp.org>
53699
53700         * gnulib-tool (func_import): Show the include files only for those
53701         modules that are copied and specified.
53702         Reported by Karl Berry.
53703
53704 2006-12-08  Jim Meyering  <jim@meyering.net>
53705
53706         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
53707         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
53708
53709         * build-aux/announce-gen: Add two new options, both optional:
53710         --bootstrap-tools=TOOL_LIST
53711               a comma-separated list of tools, e.g.,
53712               autoconf,automake,bison,gnulib
53713         --gnulib-snapshot-date=DATE
53714               if gnulib is in the bootstrap tool list,
53715               then report this as the snapshot date.
53716               If not specified, use the current date/time.
53717               If you specify a date here, be sure it's UTC.
53718
53719 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53720
53721         * tests/test-argp-2.sh: Fix test to match actual output.
53722         (func_compare): Fix sed script to be portable.
53723
53724 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
53725
53726         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
53727         workaround for this case.  It is not autoconfigured now; offhand
53728         it's hard to see how to autoconfigure it.
53729
53730 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53731
53732         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
53733         a directory that is about to be chowned.  Such a directory's
53734         initial file permissions should permit the owner only and this
53735         should not be changed until after the chown, since the group and
53736         other bits would be incorrect if they granted permission before
53737         the chown.
53738
53739         Fix porting problem for iswctype reported by Georg Schwarz in:
53740         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
53741         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
53742         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
53743         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
53744         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53745
53746 2006-12-03  Jim Meyering  <jim@meyering.net>
53747
53748         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
53749         p->fts_statp may not yet be defined.
53750         (fts_read): Instead, set it in the caller, once p->fts_statp is
53751         sure to be defined, and corresponds to a top-level directory.
53752         This bug made du -x fail.  Here's the coreutils test case:
53753         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
53754         Reported by Mike Frysinger.
53755
53756 2006-12-01  Jim Meyering  <jim@meyering.net>
53757
53758         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
53759         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
53760         Reported by Simon Josefsson.
53761
53762 2006-11-30  Jim Meyering  <jim@meyering.net>
53763
53764         * m4/warning.m4: Use the all-permissive copyright notice
53765         recommended by RMS (rather than LGPL).
53766         * m4/vararrays.m4: Likewise.
53767         * m4/flexmember.m4: Likewise.
53768
53769 2006-11-29  Bruno Haible  <bruno@clisp.org>
53770
53771         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
53772         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
53773         using +=.
53774         Reported by Simon Josefsson <simon@josefsson.org>.
53775
53776 2006-11-28  James Youngman <jay@gnu.org>
53777
53778         * README: Advise users that they might find the bug-gnulib@gnu.org
53779         and autotools-announce@gnu.org mailing lists useful.
53780
53781 2006-11-28  Bruno Haible  <bruno@clisp.org>
53782
53783         * m4/ptrdiff_max.m4: Remove file.
53784
53785 2006-11-21  Bruno Haible  <bruno@clisp.org>
53786
53787         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
53788         _AC_COMPUTE_INT.
53789         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
53790         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
53791         _AC_COMPUTE_INT.
53792         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
53793         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
53794         _AC_COMPUTE_INT.
53795         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
53796
53797 2006-11-28  Jim Meyering  <jim@meyering.net>
53798
53799         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
53800         warning from "gcc -Wshadow" about shadowing the builtin.
53801
53802 2006-11-27  Bruno Haible  <bruno@clisp.org>
53803
53804         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
53805         _AC_COMPUTE_INT.
53806         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
53807
53808 2006-11-27  Bruno Haible  <bruno@clisp.org>
53809             Paul Eggert  <eggert@cs.ucla.edu>
53810
53811         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
53812
53813 2006-11-26  Bruno Haible  <bruno@clisp.org>
53814
53815         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
53816         noinst_LTLIBRARIES.
53817
53818 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
53819             Bruno Haible  <bruno@clisp.org>
53820
53821         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
53822         if compiling with "gcc -ansi".
53823
53824 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
53825
53826         Fix some incompatibilities with gcc -ansi -pedantic.
53827         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
53828         if compiling pedantically with GCC, unless it's C99 or later.
53829         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
53830         it mishandles gcc -ansi -pedantic as well.
53831         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
53832         if gcc -pedantic.
53833         * lib/regexec.c (check_node_accept_bytes): Don't use auto
53834         initializers for struct if -pedantic, unless it's C99 or later.
53835
53836 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
53837
53838         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
53839         Don't close an fd more than once. Identical atimes indicate
53840         success, not failure.
53841
53842 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
53843
53844         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
53845
53846 2006-11-23  Jim Meyering  <jim@meyering.net>
53847
53848         * build-aux/announce-gen: New file.  From coreutils.
53849
53850 2006-11-22  Jim Meyering  <jim@meyering.net>
53851
53852         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
53853         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
53854         (fts_read): Use a temporary to narrow the overused st_size member
53855         before using it in a switch statement.  Reported by Matthew Woehlke.
53856
53857         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
53858         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
53859
53860 2006-11-20  Bruno Haible  <bruno@clisp.org>
53861
53862         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
53863         changequote instead of pairs of brackets.
53864         Reported by Andreas Schwab <schwab@suse.de>.
53865
53866 2006-11-21  Jim Meyering  <jim@meyering.net>
53867
53868         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
53869         so as to remain compatible with older compilers.
53870         Patch from Michael Deutschmann.
53871
53872 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
53873
53874         * MODULES.html.sh (File system functions): Add openat.
53875
53876         * lib/openat.h (rpl_fstatat): New macro, if
53877         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
53878         (fstatat): Define to rpl_fstatat under the same conditions,
53879         unless COMPILING_FSTATAT.
53880         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
53881         seems to have the bug.
53882         * lib/fstatat.c: New file.
53883         * modules/openat (Files): Add it.
53884
53885 2006-11-20  Bruno Haible  <bruno@clisp.org>
53886
53887         * Makefile: New file.
53888
53889 2006-11-20  Jim Meyering  <jim@meyering.net>
53890
53891         The beginnings of syntax-related checks for gnulib.
53892         * lib/Makefile: New file.
53893         * lib/t-idcache: New script.  Ensure that the two halves of
53894         idcache.c stay in sync.
53895
53896         * lib/idcache.c: Adjust comments in user- and group- portions to
53897         be more accurate, and to be consistent with one another.
53898
53899 2006-11-20  Jim Meyering  <jim@meyering.net>
53900
53901         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
53902         continue using the flexible array member (thus, this module performs
53903         half as many malloc calls), with the addition that...
53904         (getgroup, getuser): Consistently record a non-match via an empty
53905         "name" string, and map an empty string match to a NULL return value.
53906         * modules/idcache (Depends-on): Re-add flexmember.
53907
53908         * lib/idcache.c (getuser): Remove all uses of the register keyword.
53909         (getuidbyname, getgroup, getgidbyname): Likewise.
53910
53911         Use cleaner syntax: NULL rather than 0.
53912         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
53913
53914 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
53915
53916         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
53917         It mishandled the case where the group was missing.
53918         Problem reported by Greg Schafer.
53919         * modules/idcache: Likewise.
53920
53921 2006-11-18  Jim Meyering  <jim@meyering.net>
53922
53923         * check-module (%exempt_header): Add exception for some
53924         conditionally-included headers.
53925
53926         * modules/i-ring (Depends-on): Add verify.
53927         (License): Change to LGPL.
53928
53929 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53930
53931         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
53932         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
53933         and inttostr.h.  Use snprintf rather than uinttostr, so that
53934         LGPLed code doesn't depend on GPLed.
53935
53936 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53937
53938         * modules/inline (License): Change from GPL to LGPL.
53939
53940 2006-11-17  Jim Meyering  <jim@meyering.net>
53941
53942         * modules/d-type (License): Switch to LGPL.
53943
53944 2006-11-15  Bruno Haible  <bruno@clisp.org>
53945
53946         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
53947
53948 2006-11-15  Eric Blake  <ebb9@byu.net>
53949
53950         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
53951         the module dependency.
53952
53953 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53954             Bruno Haible  <bruno@clisp.org>
53955
53956         * gnulib-tool (func_create_testdir): Add license consistency check.
53957
53958 2006-11-15  Eric Blake  <ebb9@byu.net>
53959
53960         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
53961         random "(cached)" in configure output.
53962
53963 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53964
53965         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
53966         test for conforming inttypes.h is both announced and cached.
53967
53968         * MODULES.html.sh (seen_modules, seen_files): New variables.
53969         (func_module): Rewrite to use a few less gnulib-tool and sed
53970         invocations.  Avoid a couple of quadratic algorithms for ...
53971         (missed_modules, missed_files): ... these, with ...
53972         (func_append, func_tmpdir): ... these new functions, from
53973         gnulib-tool.  Analogously, install traps for cleanup.
53974
53975         * tests/test-gc.c (main): Remove unused variables.
53976         * tests/test-read-file.c: Include stdlib.h, for 'free'.
53977
53978 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
53979
53980         * modules/inttostr (License): Change to LGPL.
53981
53982 2006-11-14  Eric Blake  <ebb9@byu.net>
53983
53984         * modules/tempname (License): Change to LGPL.
53985
53986 2006-11-14  Eric Blake  <ebb9@byu.net>
53987
53988         * doc/functions.texi (Function Portability): *printf functions on
53989         Cygwin now understand all POSIX size specifiers.
53990
53991 2006-11-14  Bruno Haible  <bruno@clisp.org>
53992
53993         * modules/c-ctype (License): Change to LGPL.
53994
53995 2006-11-12  Bruno Haible  <bruno@clisp.org>
53996
53997         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
53998         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
53999         for GNOME libraries, for which the include files are installed in
54000         subdirectories of $prefix/include.
54001
54002 2006-11-12  Bruno Haible  <bruno@clisp.org>
54003
54004         * m4/lib-link.m4: Require at least autoconf-2.54.
54005         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
54006         name to underscores for the --with option.
54007
54008 2006-11-13  Bruno Haible  <bruno@clisp.org>
54009
54010         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
54011         the tests directory.
54012         Reported by Ralf Wildenhues.
54013
54014 2006-11-13  Bruno Haible  <bruno@clisp.org>
54015
54016         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
54017         (func_emit_initmacro_end): Undo the override here.
54018         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
54019         Works around the famous automake error in coreutils.
54020
54021 2006-11-13  Eric Blake  <ebb9@byu.net>
54022
54023         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
54024         element, not its node.
54025
54026 2006-11-12  Bruno Haible  <bruno@clisp.org>
54027
54028         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
54029         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
54030
54031 2006-11-12  Bruno Haible  <bruno@clisp.org>
54032
54033         * gnulib-tool: New option --local-symlink.
54034         (func_usage): Document it.
54035         (lsymbolic): New variable.
54036         (func_import, func_create_testdir): If --symlink was not specified,
54037         test whether --local-symlink was specified and the file comes from
54038         the local_gnulib_dir.
54039
54040 2006-11-12  Bruno Haible  <bruno@clisp.org>
54041
54042         * gnulib-tool (func_ln): New function.
54043         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
54044
54045 2006-11-12  Bruno Haible  <bruno@clisp.org>
54046
54047         Finish support for source files in subdirectories.
54048         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
54049         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
54050         AUTOMAKE_OPTIONS.
54051         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
54052
54053 2006-11-12  Bruno Haible  <bruno@clisp.org>
54054
54055         * gnulib-tool (func_get_automake_snippet): Synthesize also an
54056         EXTRA_lib_SOURCES augmentation.
54057         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
54058
54059 2006-11-12  Jim Meyering  <jim@meyering.net>
54060
54061         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
54062         file descriptors.  This also averts a failure on systems with
54063         native openat support when a traversed directory lacks "x" access.
54064         * lib/fts_.h: Include "i-ring.h"
54065         (struct FTS) [fts_fd_ring]: New member.
54066         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
54067         (FCHDIR): Add parentheses.
54068         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
54069         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
54070         When descending, rather than simply closing the previous
54071         fts_cwd_fd value, push that file descriptor onto the ring.
54072         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
54073         (fts_open): Initialize the new fd_ring member.
54074         (fts_close): Clear the ring.
54075         (fts_safe_changedir): When possible, use our new fd_ring to skip
54076         the diropen and fstat and dev/ino comparison that would normally
54077         accompany a virtual `chdir ("..")'.
54078
54079         * modules/fts (Depends-on): Add i-ring.
54080         * modules/i-ring: New module.
54081         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
54082         * m4/i-ring.m4: New file.
54083
54084 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54085
54086         * gnulib-tool (func_create_testdir): Fix replacement of
54087         `build-aux' in configure.ac.  Run autotools in gltests
54088         subdirectory.
54089         (func_create_testdir, func_create_megatestdir, test): There is
54090         no need for '--force' in most autotool invocations in a new
54091         tree.  Actually fail the whole test if any of the tools, or the
54092         configure or make stages fail.
54093
54094         Sync from Automake.
54095         * build-aux/gnupload: Revert last change.  Add pointer to upload
54096         instructions of the GNU Maintenance Instructions.
54097         Suggestion by Karl Berry.
54098
54099 2006-11-10  Jim Meyering  <jim@meyering.net>
54100
54101         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
54102
54103 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54104
54105         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
54106         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
54107         (bind_textdomain_codeset) [! ENABLE_NLS]:
54108         Evaluate all the arguments.  That way, callers get compatible behavior
54109         if the arguments have side effects.  Also, it avoids some GCC
54110         diagnostics in some cases; Joel E. Denny reported problems when Bison
54111         was configured with --enable-gcc-warnigs.
54112
54113 2006-11-10  Jim Meyering  <jim@meyering.net>
54114
54115         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
54116         relevant options in CFLAGS (like -O, -fno-inline) are taken into
54117         account.
54118
54119 2006-11-10  Jim Meyering  <jim@meyering.net>
54120
54121         * modules/inline: New file/module.
54122         * modules/xalloc (Files): Remove m4/inline.m4.
54123         (Depends-on): Add inline, instead.
54124         * modules/oset: Likewise.
54125         * modules/list: Likewise.
54126
54127 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54128
54129         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
54130         Problem reported by Matthew Woehlke.
54131
54132 2006-11-09  Bruno Haible  <bruno@clisp.org>
54133
54134         * lib/tempname.c (gen_tempname): Remove variant that invokes
54135         __gen_tempname.
54136         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
54137         __gen_tempname.
54138
54139 2006-11-08  Bruno Haible  <bruno@clisp.org>
54140
54141         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
54142         to 'yes' instead of 'cross-compiling'.
54143
54144 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
54145
54146         * lib/quotearg.h (quotearg_free): New decl.
54147         * lib/quotearg.c (quotearg_free): New function.
54148         (slot0, nslots, slotvec0, slotvec):
54149         Now file-scope so that quotearg_free can get at them.
54150
54151 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54152
54153         Sync from Automake.
54154         * build-aux/gnupload: Add missing 'gnu' to example URL.
54155         Report by Karl Berry.
54156
54157 2006-11-08  Bruno Haible  <bruno@clisp.org>
54158
54159         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
54160         Suggested by Paul Eggert.
54161
54162 2006-11-08  Jim Meyering  <jim@meyering.net>
54163
54164         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
54165         It's already included if !_LIBC.
54166         (fts_safe_changedir): Add a comment.
54167
54168 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
54169
54170         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
54171         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
54172         Matthew Woehlke.
54173
54174         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
54175         definitions up, to avoid colliding with change below.
54176         (static_inline) [HAVE_INLINE]: New macro.
54177         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
54178         Provide extern decls when !HAVE_INLINE.  Do not define unless
54179         static_inline is defined, either by us or by xmalloc.c.  Use
54180         static_inline rather than static inline.
54181         (XCALLOC): Optimize sizeof(T) = 1 case.
54182         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
54183
54184 2006-11-07  Bruno Haible  <bruno@clisp.org>
54185
54186         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
54187         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
54188         AC_C_INLINE.
54189         * modules/xalloc (Files): Add m4/inline.m4.
54190
54191 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54192
54193         * README: Fix typo.
54194         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
54195         (Miscellanous Notes): ...from this.
54196
54197 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
54198
54199         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
54200         Mention that offsetof should be used instead of sizeof.
54201         From Bruno Haible.
54202
54203 2006-11-07  Bruno Haible  <bruno@clisp.org>
54204
54205         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
54206
54207 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
54208
54209         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
54210         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
54211         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
54212         (gl_tree_add_before, gl_tree_add_after):
54213         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
54214         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
54215         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
54216         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
54217         (gl_linked_add_after, gl_linked_add_at): Likewise.
54218         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
54219         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
54220         (gl_tree_add_before, gl_tree_add_after): Likewise.
54221         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
54222         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
54223         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
54224
54225 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54226
54227         * lib/gl_oset.h: Use C comment style, not C++ comment style.
54228
54229 2006-11-06  Bruno Haible  <bruno@clisp.org>
54230
54231         * m4/inline.m4: New file.
54232         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
54233         * modules/list (Files): Add m4/inline.m4.
54234         * modules/oset (Files): Likewise.
54235
54236 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
54237
54238         * lib/idcache.c: Include <stddef.h>, for offsetof.
54239         (struct userid.name): Change from char * to a flexible array member.
54240         All uses changed.
54241         * modules/idcache (Depends-on): Add flexmember.
54242
54243         * MODULES.html.sh (Core language properties): New module flexmember.
54244         * modules/flexmember, m4/flexmember.m4: New files.
54245
54246         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
54247         inline functions that are identical with the old xnmalloc_inline,
54248         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
54249         that we can avoid some unnecessary integer multiplications and
54250         divisions in the common case where the element size is known at
54251         compile time.
54252         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
54253         needed.
54254         (xnboundedmalloc): Remove.
54255         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
54256         arguments, for consistency with rest of this header.
54257         (xcharalloc): Rewrite using XNMALLOC.
54258         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
54259         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
54260         versions have been moved to lib/xalloc.h and renamed to be the
54261         non-*_inline versions.
54262         (xmalloc, xrealloc): Implement without reference to the xnmalloc
54263         and xnrealloc functions, since those functions are now inline and
54264         now call us.
54265         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
54266         renaming described above.
54267         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
54268         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
54269         captures the dependency in AC_C_INLINE.
54270
54271         New module canonicalize-lgpl, proposed by Charles Wilson in
54272         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
54273         with a few small changes afterwards.
54274         * MODULES.html.sh (File system functions): New module
54275         canonicalize-lgpl.
54276         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
54277         and canonicalize_file_name.
54278         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
54279         * modules/canonicalize-lgpl: New files.
54280
54281 2006-11-05  Bruno Haible  <bruno@clisp.org>
54282
54283         * gnulib-tool (func_import, func_create_testdir): Create directories
54284         also for files in subdirectories of lib/.
54285
54286 2006-11-05  Bruno Haible  <bruno@clisp.org>
54287
54288         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
54289         ANSI C compliant.
54290
54291 2006-11-03  Bruno Haible  <bruno@clisp.org>
54292
54293         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
54294         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
54295         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
54296         (xnboundedmalloc): New inline function.
54297         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
54298         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
54299         xmalloc.
54300         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
54301         xmalloc.
54302         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
54303         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
54304         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
54305         xmalloc.
54306         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
54307         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
54308         xmalloc.
54309         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
54310         gl_tree_add_after): Use XMALLOC instead of xmalloc.
54311         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
54312         xmalloc.
54313         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
54314         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
54315         gl_tree_add_after): Use XMALLOC instead of xmalloc.
54316         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
54317         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
54318         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
54319         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
54320
54321 2006-11-03  Bruno Haible  <bruno@clisp.org>
54322
54323         * lib/c-ctype.h [C++]: Define functions without name mangling.
54324         * lib/fwriteerror.h [C++]: Likewise.
54325         * lib/gcd.h [C++]: Likewise.
54326         * lib/linebreak.h [C++]: Likewise.
54327
54328 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
54329
54330         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
54331         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
54332         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
54333         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
54334         Check for functions and headers just once.
54335         Check for declaration of canonicalize_file_name.
54336         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
54337
54338 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
54339
54340         * gnulib-tool (func_import): Fix typo in actioncmd.
54341
54342 2006-11-02  Bruno Haible  <bruno@clisp.org>
54343
54344         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
54345         newline sequence in the Makefile.am snippet as a space, like "make"
54346         does.
54347         Reported by Roger Persson <perrog@gmail.com>.
54348
54349 2006-11-01  Bruno Haible  <bruno@clisp.org>
54350
54351         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
54352         already declared in <string.h>.
54353         * lib/strcase.h (strncasecmp): Don't declare it if yes.
54354
54355 2006-11-01  Bruno Haible  <bruno@clisp.org>
54356
54357         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
54358         * lib/strcase.h: Include <string.h>.
54359         (strcasecmp): Define to rpl_strcasecmp here.
54360
54361 2006-11-01  Bruno Haible  <bruno@clisp.org>
54362
54363         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
54364
54365 2006-11-01  Eric Blake  <ebb9@byu.net>
54366
54367         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
54368
54369         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
54370
54371 2006-10-29  Bruno Haible  <bruno@clisp.org>
54372
54373         Make it compile in C++ mode.
54374         * lib/full-write.c (full_rw): Add a cast.
54375
54376 2006-11-01  Bruno Haible  <bruno@clisp.org>
54377
54378         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
54379         be POSIX compliant.
54380         Reported by Roger Persson <perrog@gmail.com>.
54381
54382 2006-11-01  Eric Blake  <ebb9@byu.net>
54383
54384         * lib/getopt_.h: Fix comments.
54385
54386 2006-10-31  Eric Blake  <ebb9@byu.net>
54387
54388         * modules/tmpdir (Depends-on): Add sys_stat.
54389         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
54390         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
54391         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
54392         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
54393         tempname.
54394
54395 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
54396
54397         Avoid some C++ diagnostics reported by Bruno Haible.
54398         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
54399         xmalloc.
54400         (quotearg_alloc): Use xcharalloc rather than xmalloc.
54401         (struct slotvec): Move to top level.
54402         (quotearg_n_options): Rewrite to avoid xmalloc.
54403         * lib/xalloc.h (xcharalloc): New function.
54404         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
54405         [defined __cplusplus]: Add function template that provides result
54406         type propagation.  This part of the change is from Bruno Haible.
54407
54408 2006-10-29  Bruno Haible  <bruno@clisp.org>
54409
54410         Make it compile in C++ mode.
54411         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
54412         * lib/strnlen1.c (strnlen1): Cast memchr result.
54413         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
54414         * lib/clean-temp.c (string_equals, string_hash): Add casts.
54415         (create_temp_dir): Rename local variable 'template'.
54416         (compile_csharp_using_sscli): Add cast.
54417         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
54418         * lib/findprog.c (find_in_path): Likewise.
54419         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
54420         * lib/wait-process.c (register_slave_subprocess): Likewise.
54421
54422 2006-10-22  Bruno Haible  <bruno@clisp.org>
54423
54424         * modules/tsearch: New file.
54425         * lib/tsearch.h: New file.
54426         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
54427         * m4/tsearch.m4: New file.
54428         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
54429
54430 2006-10-29  Eric Blake  <ebb9@byu.net>
54431
54432         * lib/arcfour.c: Assume config.h.
54433         * lib/arctwo.c: Likewise.
54434         * lib/base64.c: Likewise.
54435         * lib/check-version.c: Likewise.
54436         * lib/crc.c: Likewise.
54437         * lib/des.c: Likewise.
54438         * lib/gc-gnulib.c: Likewise.
54439         * lib/gc-libgcrypt.c: Likewise.
54440         * lib/gc-pbkdf2-sha1.c: Likewise.
54441         * lib/getaddrinfo.c: Likewise.
54442         * lib/getdelim.c: Likewise.
54443         * lib/getline.c: Likewise.
54444         * lib/hmac-md5.c: Likewise.
54445         * lib/hmac-sha1.c: Likewise.
54446         * lib/iconvme.c: Likewise.
54447         * lib/md2.c: Likewise.
54448         * lib/md4.c: Likewise.
54449         * lib/memxor.c: Likewise.
54450         * lib/read-file.c: Likewise.
54451         * lib/readline.c: Likewise.
54452         * lib/rijndael-alg-fst.c: Likewise.
54453         * lib/rijndael-api-fst.c: Likewise.
54454         * lib/xgetdomainname.c: Likewise.
54455
54456 2006-10-28  Eric Blake  <ebb9@byu.net>
54457
54458         * lib/xstrndup.c: Assume config.h.
54459
54460 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
54461
54462         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
54463         stat-macros.h is now for our own macros, whereas stat_h is for
54464         macros in the <sys/stat.h> name space.
54465         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
54466         (STAT_MACROS_H): Remove.
54467         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
54468         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
54469         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
54470         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
54471         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
54472         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
54473         Move these macros to ...
54474         * lib/stat_.h: here.  Don't include stat-macros.h.
54475         * lib/canonicalize.c: Don't include stat-macros.h.
54476         * lib/chown.c: Likewise.
54477         * lib/euidaccess.c: Likewise.
54478         * lib/file-type.c: Likewise.
54479         * lib/filemode.c: Likewise.
54480         * lib/glob.c: Likewise.
54481         * lib/isapipe.c: Likewise.
54482         * lib/lchown.c: Likewise.
54483         * lib/lstat.c: Likewise.
54484         * lib/mkdir-p.c: Likewise.
54485         * lib/rmdir.c: Likewise.
54486         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
54487         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
54488         unless mkdir isn't declared, to speed up 'configure'.
54489         Always create sys/stat.h, since it's unlikely any real sys/stat.h
54490         would define all the S_* symbols.
54491         * modules/canonicalize (Depends-on):
54492         Depend on sys_stat, not stat-macros.
54493         * modules/chown: Likewise.
54494         * modules/euidaccess: Likewise.
54495         * modules/filemode: Likewise.
54496         * modules/file-type: Likewise.
54497         * modules/glob: Likewise.
54498         * modules/isapipe: Likewise.
54499         * modules/lchown: Likewise.
54500         * modules/lstat: Likewise.
54501         * modules/mkancesdirs: Likewise.
54502         * modules/rmdir: Likewise.
54503         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
54504         * modules/modechange: Likewise.
54505         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
54506         (configure.ac): Remove gl_STAT_MACROS.
54507         * modules/sys_stat (Depends-on): Remove stat-macros.
54508
54509 2006-10-27  Bruno Haible  <bruno@clisp.org>
54510
54511         * m4/signed.m4: Remove file.
54512         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
54513         invocation.
54514         * modules/vasnprintf (Files): Remove m4/signed.m4.
54515
54516 2006-10-27  Bruno Haible  <bruno@clisp.org>
54517
54518         Update to GNU gettext 0.16.
54519         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
54520         m4/inttypes-h.m4, m4/signed.m4.
54521         * m4/gettext.m4: Update to GNU gettext 0.16.
54522         * m4/intl.m4: New file, from GNU gettext.
54523         * m4/intldir.m4: New file, from GNU gettext.
54524         * config/srclist.txt: Update
54525
54526 2006-10-27  Eric Blake  <ebb9@byu.net>
54527
54528         * MODULES.html.sh: Document tempname.
54529         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
54530         dependencies.
54531         (Files): Move lib/tempname.c...
54532         * modules/tempname: ...to this new module.
54533         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
54534         (gl_PREREQ_TEMPNAME): Move...
54535         * m4/tempname.m4: ...to this new file.
54536         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
54537         * modules/sys_stat (Depends-on): Add stat-macros.
54538         * lib/stat_.h (includes): Pick up stat macros.
54539         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
54540         if stat macros are broken.
54541         * lib/tempname.c (includes): No need to include "stat-macros.h".
54542         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
54543         (direxists, __path_search) [!_LIBC]: Don't compile these in
54544         gnulib; the tmpdir module covers that.
54545         * lib/tempname.h: New file.
54546
54547 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
54548
54549         * COPYING: Explain how gnulib-tool converts licence headers.
54550         Almost all wording by Eric Blake.
54551
54552 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
54553
54554         * lib/mbchar.h (is_basic_table): Make read-only.
54555         * lib/mbchar.c (is_basic_table): Likewise.
54556         Reported by John Darrington.
54557
54558 2006-10-25  Bruno Haible  <bruno@clisp.org>
54559
54560         * lib/progname.h (set_program_name): Undefine before defining.
54561
54562 2006-10-25  Bruno Haible  <bruno@clisp.org>
54563
54564         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
54565         false for non-gcc C++ compilers.
54566         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
54567
54568 2006-10-24  Bruno Haible  <bruno@clisp.org>
54569
54570         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
54571         iconv implementations like Irix iconv.
54572
54573 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54574
54575         * modules/vararrays: New file.
54576         * m4/vararrays.m4: New file, taken from diffutils.
54577         * MODULES.html.sh: New module vararrays.
54578
54579 2006-10-24  Karl Berry  <karl@gnu.org>
54580
54581         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
54582         Don't call GNU Unix.
54583
54584 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54585
54586         * users.txt: Add Libtool.
54587
54588         Sync from Libtool:
54589
54590         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54591
54592         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
54593         to gnulib's policy of including config.h unconditionally.
54594
54595 2006-10-24  Bruno Haible  <bruno@clisp.org>
54596
54597         * modules/wcwidth (Files): Add m4/wint_t.m4.
54598         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
54599         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
54600
54601 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54602
54603         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
54604         to pacify GCC with some -W flags enabled.  Problem reported by
54605         Bruno Haible.
54606
54607 2006-10-24  Jim Meyering  <jim@meyering.net>
54608
54609         * MODULES.html.sh: Remove uinttostr.  It's not a module.
54610         Reported by Karl Berry.
54611
54612 2006-10-23  Bruno Haible  <bruno@clisp.org>
54613
54614         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
54615
54616 2006-10-24  Bruno Haible  <bruno@clisp.org>
54617
54618         * lib/gl_list.h: Use C comment style, not C++ comment style.
54619
54620 2006-10-23  Eric Blake  <ebb9@byu.net>
54621
54622         * lib/getaddrinfo.c (includes): Add missing include.
54623
54624 2006-10-23  Bruno Haible  <bruno@clisp.org>
54625             Paul Eggert  <eggert@cs.ucla.edu>
54626
54627         Ability to rename obstack_free.
54628         * lib/obstack.h (__obstack_free): New macro. Declare instead of
54629         obstack_free.
54630         (obstack_free): Invoke the __obstack_free macro.
54631         * lib/obstack.c (obstack_free): Use __obstack_free macro.
54632
54633 2006-10-23  Bruno Haible  <bruno@clisp.org>
54634             Paul Eggert  <eggert@cs.ucla.edu>
54635
54636         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
54637         __argc, __argv from the declaration. (They are defined as macros on
54638         mingw.)
54639
54640 2006-10-22  Bruno Haible  <bruno@clisp.org>
54641
54642         * doc/gnulib-intro.texi: New file.
54643         * doc/gnulib.texi: Include it.
54644
54645 2006-10-21  Bruno Haible  <bruno@clisp.org>
54646
54647         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
54648         "Introduction", "Miscellanous Notes", "Particular Modules".
54649
54650 2006-10-21  Bruno Haible  <bruno@clisp.org>
54651
54652         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54653         Change mostlyclean-local rule to avoid sh syntax error from bash
54654         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
54655
54656 2006-10-23  Jim Meyering  <jim@meyering.net>
54657
54658         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
54659         in place of snprintf.
54660
54661         * modules/inttostr (Files): Add lib/uinttostr.c.
54662         * lib/uinttostr.c (inttostr): New file/function.
54663         * lib/inttostr.h (uinttostr): Declare.
54664         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
54665         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
54666         Add uinttostr.
54667         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
54668
54669 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
54670
54671         * lib/canonicalize.c (ELOOP): Define if not already defined.
54672         Problem reported by Bruno Haible in
54673         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
54674
54675 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
54676
54677         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
54678         Problem reported by Perry Smith and Ville Laurikari.
54679
54680         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
54681         uses.
54682
54683 2006-10-19  Bruno Haible  <bruno@clisp.org>
54684
54685         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
54686         for mingw.
54687
54688 2006-10-19  Bruno Haible  <bruno@clisp.org>
54689
54690         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
54691         Needed for mingw.
54692
54693 2006-10-19  Bruno Haible  <bruno@clisp.org>
54694
54695         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
54696
54697 2006-10-19  Bruno Haible  <bruno@clisp.org>
54698
54699         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
54700         it.
54701
54702 2006-10-19  Bruno Haible  <bruno@clisp.org>
54703
54704         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
54705         invocation.
54706
54707 2006-10-19  Bruno Haible  <bruno@clisp.org>
54708
54709         * gnulib-tool (func_create_testdir): Don't include ftruncate and
54710         mountlist by default.
54711
54712 2006-10-16  Bruno Haible  <bruno@clisp.org>
54713
54714         * lib/c-strstr.c: Include c-strstr.h.
54715
54716 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
54717
54718         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
54719         in a slash.
54720
54721 2006-10-18  Bruno Haible  <bruno@clisp.org>
54722
54723         * lib/lock.h [C++]: Wrap definitions in extern "C".
54724
54725 2006-10-18  Bruno Haible  <bruno@clisp.org>
54726
54727         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
54728         gl_LIBOBJS list.
54729
54730 2006-10-18  Bruno Haible  <bruno@clisp.org>
54731
54732         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
54733
54734 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
54735
54736         * lib/xstrtol.h: Include gettext.h.
54737         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
54738         Problem reported by Eric Blake.
54739         * modules/xstrtol (Depends-on): Add gettext-h.
54740
54741 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
54742
54743         * lib/strftime.c (advance): New macro.
54744         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
54745         incomplete type, so you can't add 0 to it.  Problem and patch
54746         reported by Eelco Dolstra for dietlibc.
54747
54748 2006-10-18  Jim Meyering  <jim@meyering.net>
54749
54750         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
54751         type for a local, and rename it: s/up/user_proc/.
54752
54753 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
54754
54755         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
54756         READ_UTMP_USER_PROCESS.
54757         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
54758
54759 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54760
54761         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
54762         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
54763
54764 2006-10-17  Eric Blake  <ebb9@byu.net>
54765
54766         * lib/sigprocmask.c (sigprocmask): Fix typo.
54767
54768         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
54769
54770         * modules/clean-temp (Makefile.am): Don't add to make output...
54771         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
54772         config.h.
54773
54774 2006-10-17  Bruno Haible  <bruno@clisp.org>
54775
54776         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
54777         differently if DEFAULT_TEXT_DOMAIN is set.
54778
54779 2006-10-16  Bruno Haible  <bruno@clisp.org>
54780
54781         * lib/clean-temp.c: Include fwriteerror.h.
54782
54783 2006-10-16  Bruno Haible  <bruno@clisp.org>
54784
54785         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
54786
54787 2006-10-16  Bruno Haible  <bruno@clisp.org>
54788
54789         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
54790         * lib/sigprocmask.h: Include <sys/types.h>.
54791         (sigset_t): Use the system's definition if present.
54792
54793 2006-10-17  Eric Blake  <ebb9@byu.net>
54794
54795         * lib/xvasprintf.c (includes): Assume config.h.
54796         * lib/xasprintf.c (includes): Likewise.
54797
54798 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54799
54800         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
54801         at least as wide as intmax_t.
54802
54803 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
54804
54805         (Imported from Automake.)
54806         * build-aux/gnupload: Update to version 1.1 of directive file.
54807
54808 2006-10-16  Eric Blake  <ebb9@byu.net>
54809
54810         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
54811         match Automake 1.10a.
54812
54813 2006-10-14  Bruno Haible  <bruno@clisp.org>
54814
54815         * modules/sigprocmask: New file.
54816         * lib/sigprocmask.h: New file.
54817         * lib/sigprocmask.c: New file.
54818         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
54819         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
54820         request sigprocmask.o.
54821         (gl_PREREQ_SIGPROCMASK): New macro.
54822         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
54823         (Depends-on): Add sigprocmask.
54824         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
54825         gt_SIGNALBLOCKING. Test for 'raise' only once.
54826         * lib/fatal-signal.c: Include sigprocmask.h.
54827         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
54828         unblock_fatal_signals): Define always.
54829         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54830         sigprocmask.
54831
54832 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54833
54834         Sync from Automake.
54835         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
54836         which incorrectly sets the mode of an existing destination
54837         directory.  In some cases the unpatched install-sh could do the
54838         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
54839         system.  We hope this is rare in practice, but it's clearly worth
54840         fixing.  Problem reported by Alex Unleashed in
54841         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
54842         Also, don't bother to check for -m bugs unless we're using -m;
54843         suggested by Stepan Kasal.
54844
54845 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54846
54847         Sync from Automake.
54848         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
54849         `-c' flag, so they appear at the same position as in %FASTDEP%
54850         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
54851         which ignores unknown options only after the first non-option.
54852         Bug report against M4 by Nelson H. F. Beebe.
54853
54854 2006-10-13  Jim Meyering  <jim@meyering.net>
54855
54856         Fix a bug in yesterday's change.
54857         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
54858         p->fts_statp->st_dev would be used uninitialized.
54859         Ensures that we always call fts_stat on the very first entry.
54860         Miklos Szeredi reported that find -xdev stopped working.
54861
54862 2006-10-12  Bruno Haible  <bruno@clisp.org>
54863
54864         * gnulib-tool (func_get_automake_snippet): Append an automatically
54865         computed EXTRA_DIST augmentation.
54866         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
54867         * modules/alloca-opt (Makefile.am): Likewise.
54868         * modules/allocsa (Makefile.am): Likewise.
54869         * modules/arcfour (Makefile.am): Likewise.
54870         * modules/arctwo (Makefile.am): Likewise.
54871         * modules/argmatch (Makefile.am): Likewise.
54872         * modules/argz (Makefile.am): Likewise.
54873         * modules/atexit (Makefile.am): Likewise.
54874         * modules/backupfile (Makefile.am): Likewise.
54875         * modules/byteswap (Makefile.am): Likewise.
54876         * modules/c-strtod (Makefile.am): Likewise.
54877         * modules/c-strtold (Makefile.am): Likewise.
54878         * modules/calloc (Makefile.am): Likewise.
54879         * modules/canon-host (Makefile.am): Likewise.
54880         * modules/canonicalize (Makefile.am): Likewise.
54881         * modules/chdir-long (Makefile.am): Likewise.
54882         * modules/chdir-safer (Makefile.am): Likewise.
54883         * modules/check-version (Makefile.am): Likewise.
54884         * modules/chown (Makefile.am): Likewise.
54885         * modules/cloexec (Makefile.am): Likewise.
54886         * modules/close-stream (Makefile.am): Likewise.
54887         * modules/closeout (Makefile.am): Likewise.
54888         * modules/crc (Makefile.am): Likewise.
54889         * modules/csharpexec (Makefile.am): Likewise.
54890         * modules/cycle-check (Makefile.am): Likewise.
54891         * modules/des (Makefile.am): Likewise.
54892         * modules/dev-ino (Makefile.am): Likewise.
54893         * modules/dirfd (Makefile.am): Likewise.
54894         * modules/dirname (Makefile.am): Likewise.
54895         * modules/dup2 (Makefile.am): Likewise.
54896         * modules/eealloc (Makefile.am): Likewise.
54897         * modules/error (Makefile.am): Likewise.
54898         * modules/euidaccess (Makefile.am): Likewise.
54899         * modules/exclude (Makefile.am): Likewise.
54900         * modules/exitfail (Makefile.am): Likewise.
54901         * modules/fcntl-safer (Makefile.am): Likewise.
54902         * modules/fcntl (Makefile.am): Likewise.
54903         * modules/file-type (Makefile.am): Likewise.
54904         * modules/fileblocks (Makefile.am): Likewise.
54905         * modules/filemode (Makefile.am): Likewise.
54906         * modules/filenamecat (Makefile.am): Likewise.
54907         * modules/fnmatch (Makefile.am): Likewise.
54908         * modules/fopen-safer (Makefile.am): Likewise.
54909         * modules/fpending (Makefile.am): Likewise.
54910         * modules/fprintftime (Makefile.am): Likewise.
54911         * modules/free (Makefile.am): Likewise.
54912         * modules/fsusage (Makefile.am): Likewise.
54913         * modules/ftruncate (Makefile.am): Likewise.
54914         * modules/fts (Makefile.am): Likewise.
54915         * modules/gc-arcfour (Makefile.am): Likewise.
54916         * modules/gc-des (Makefile.am): Likewise.
54917         * modules/gc-hmac-md5 (Makefile.am): Likewise.
54918         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
54919         * modules/gc-md4 (Makefile.am): Likewise.
54920         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
54921         * modules/gc-sha1 (Makefile.am): Likewise.
54922         * modules/gc (Makefile.am): Likewise.
54923         * modules/getaddrinfo (Makefile.am): Likewise.
54924         * modules/getcwd (Makefile.am): Likewise.
54925         * modules/getdelim (Makefile.am): Likewise.
54926         * modules/getdomainname (Makefile.am): Likewise.
54927         * modules/getgroups (Makefile.am): Likewise.
54928         * modules/gethostname (Makefile.am): Likewise.
54929         * modules/gethrxtime (Makefile.am): Likewise.
54930         * modules/getline (Makefile.am): Likewise.
54931         * modules/getloadavg (Makefile.am): Likewise.
54932         * modules/getlogin_r (Makefile.am): Likewise.
54933         * modules/getndelim2 (Makefile.am): Likewise.
54934         * modules/getopt (Makefile.am): Likewise.
54935         * modules/getpagesize (Makefile.am): Likewise.
54936         * modules/getpass-gnu (Makefile.am): Likewise.
54937         * modules/getpass (Makefile.am): Likewise.
54938         * modules/getsubopt (Makefile.am): Likewise.
54939         * modules/gettime (Makefile.am): Likewise.
54940         * modules/gettimeofday (Makefile.am): Likewise.
54941         * modules/getugroups (Makefile.am): Likewise.
54942         * modules/getusershell (Makefile.am): Likewise.
54943         * modules/glob (Makefile.am): Likewise.
54944         * modules/group-member (Makefile.am): Likewise.
54945         * modules/hard-locale (Makefile.am): Likewise.
54946         * modules/hash (Makefile.am): Likewise.
54947         * modules/hmac-md5 (Makefile.am): Likewise.
54948         * modules/hmac-sha1 (Makefile.am): Likewise.
54949         * modules/human (Makefile.am): Likewise.
54950         * modules/idcache (Makefile.am): Likewise.
54951         * modules/imaxabs (Makefile.am): Likewise.
54952         * modules/imaxdiv (Makefile.am): Likewise.
54953         * modules/inet_ntop (Makefile.am): Likewise.
54954         * modules/inet_pton (Makefile.am): Likewise.
54955         * modules/intprops (Makefile.am): Likewise.
54956         * modules/inttostr (Makefile.am): Likewise.
54957         * modules/inttypes (Makefile.am): Likewise.
54958         * modules/isapipe (Makefile.am): Likewise.
54959         * modules/javaversion (Makefile.am): Likewise.
54960         * modules/lchmod (Makefile.am): Likewise.
54961         * modules/lchown (Makefile.am): Likewise.
54962         * modules/localcharset (Makefile.am): Likewise.
54963         * modules/long-options (Makefile.am): Likewise.
54964         * modules/lstat (Makefile.am): Likewise.
54965         * modules/malloc (Makefile.am): Likewise.
54966         * modules/mathl (Makefile.am): Likewise.
54967         * modules/mbchar (Makefile.am): Likewise.
54968         * modules/md2 (Makefile.am): Likewise.
54969         * modules/md4 (Makefile.am): Likewise.
54970         * modules/md5 (Makefile.am): Likewise.
54971         * modules/memcasecmp (Makefile.am): Likewise.
54972         * modules/memchr (Makefile.am): Likewise.
54973         * modules/memcmp (Makefile.am): Likewise.
54974         * modules/memcoll (Makefile.am): Likewise.
54975         * modules/memcpy (Makefile.am): Likewise.
54976         * modules/memmem (Makefile.am): Likewise.
54977         * modules/memmove (Makefile.am): Likewise.
54978         * modules/mempcpy (Makefile.am): Likewise.
54979         * modules/memrchr (Makefile.am): Likewise.
54980         * modules/memset (Makefile.am): Likewise.
54981         * modules/memxor (Makefile.am): Likewise.
54982         * modules/mkancesdirs (Makefile.am): Likewise.
54983         * modules/mkdir-p (Makefile.am): Likewise.
54984         * modules/mkdir (Makefile.am): Likewise.
54985         * modules/mkdtemp (Makefile.am): Likewise.
54986         * modules/mkstemp (Makefile.am): Likewise.
54987         * modules/mktime (Makefile.am): Likewise.
54988         * modules/modechange (Makefile.am): Likewise.
54989         * modules/mountlist (Makefile.am): Likewise.
54990         * modules/nanosleep (Makefile.am): Likewise.
54991         * modules/obstack (Makefile.am): Likewise.
54992         * modules/openat (Makefile.am): Likewise.
54993         * modules/pagealign_alloc (Makefile.am): Likewise.
54994         * modules/pathmax (Makefile.am): Likewise.
54995         * modules/physmem (Makefile.am): Likewise.
54996         * modules/poll (Makefile.am): Likewise.
54997         * modules/posixtm (Makefile.am): Likewise.
54998         * modules/posixver (Makefile.am): Likewise.
54999         * modules/putenv (Makefile.am): Likewise.
55000         * modules/quote (Makefile.am): Likewise.
55001         * modules/quotearg (Makefile.am): Likewise.
55002         * modules/raise (Makefile.am): Likewise.
55003         * modules/read-file (Makefile.am): Likewise.
55004         * modules/readline (Makefile.am): Likewise.
55005         * modules/readlink (Makefile.am): Likewise.
55006         * modules/readtokens (Makefile.am): Likewise.
55007         * modules/readutmp (Makefile.am): Likewise.
55008         * modules/realloc (Makefile.am): Likewise.
55009         * modules/regex (Makefile.am): Likewise.
55010         * modules/rename-dest-slash (Makefile.am): Likewise.
55011         * modules/rename (Makefile.am): Likewise.
55012         * modules/rijndael (Makefile.am): Likewise.
55013         * modules/rmdir (Makefile.am): Likewise.
55014         * modules/rpmatch (Makefile.am): Likewise.
55015         * modules/safe-read (Makefile.am): Likewise.
55016         * modules/safe-write (Makefile.am): Likewise.
55017         * modules/same-inode (Makefile.am): Likewise.
55018         * modules/same (Makefile.am): Likewise.
55019         * modules/save-cwd (Makefile.am): Likewise.
55020         * modules/savedir (Makefile.am): Likewise.
55021         * modules/setenv (Makefile.am): Likewise.
55022         * modules/settime (Makefile.am): Likewise.
55023         * modules/sha1 (Makefile.am): Likewise.
55024         * modules/sig2str (Makefile.am): Likewise.
55025         * modules/snprintf (Makefile.am): Likewise.
55026         * modules/stat-macros (Makefile.am): Likewise.
55027         * modules/stat-time (Makefile.am): Likewise.
55028         * modules/stdbool (Makefile.am): Likewise.
55029         * modules/stdint (Makefile.am): Likewise.
55030         * modules/stdlib-safer (Makefile.am): Likewise.
55031         * modules/stpcpy (Makefile.am): Likewise.
55032         * modules/stpncpy (Makefile.am): Likewise.
55033         * modules/strcase (Makefile.am): Likewise.
55034         * modules/strcasestr (Makefile.am): Likewise.
55035         * modules/strchrnul (Makefile.am): Likewise.
55036         * modules/strcspn (Makefile.am): Likewise.
55037         * modules/strdup (Makefile.am): Likewise.
55038         * modules/strerror (Makefile.am): Likewise.
55039         * modules/strftime (Makefile.am): Likewise.
55040         * modules/strndup (Makefile.am): Likewise.
55041         * modules/strnlen (Makefile.am): Likewise.
55042         * modules/strpbrk (Makefile.am): Likewise.
55043         * modules/strsep (Makefile.am): Likewise.
55044         * modules/strstr (Makefile.am): Likewise.
55045         * modules/strtod (Makefile.am): Likewise.
55046         * modules/strtoimax (Makefile.am): Likewise.
55047         * modules/strtok_r (Makefile.am): Likewise.
55048         * modules/strtol (Makefile.am): Likewise.
55049         * modules/strtoll (Makefile.am): Likewise.
55050         * modules/strtoul (Makefile.am): Likewise.
55051         * modules/strtoull (Makefile.am): Likewise.
55052         * modules/strtoumax (Makefile.am): Likewise.
55053         * modules/strverscmp (Makefile.am): Likewise.
55054         * modules/sys_socket (Makefile.am): Likewise.
55055         * modules/sys_stat (Makefile.am): Likewise.
55056         * modules/sysexits (Makefile.am): Likewise.
55057         * modules/time_r (Makefile.am): Likewise.
55058         * modules/timegm (Makefile.am): Likewise.
55059         * modules/timespec (Makefile.am): Likewise.
55060         * modules/tmpfile-safer (Makefile.am): Likewise.
55061         * modules/trim (Makefile.am): Likewise.
55062         * modules/unistd-safer (Makefile.am): Likewise.
55063         * modules/unlinkdir (Makefile.am): Likewise.
55064         * modules/unlocked-io (Makefile.am): Likewise.
55065         * modules/userspec (Makefile.am): Likewise.
55066         * modules/utime (Makefile.am): Likewise.
55067         * modules/utimecmp (Makefile.am): Likewise.
55068         * modules/utimens (Makefile.am): Likewise.
55069         * modules/vasnprintf (Makefile.am): Likewise.
55070         * modules/vasprintf (Makefile.am): Likewise.
55071         * modules/vsnprintf (Makefile.am): Likewise.
55072         * modules/xalloc (Makefile.am): Likewise.
55073         * modules/xgetcwd (Makefile.am): Likewise.
55074         * modules/xnanosleep (Makefile.am): Likewise.
55075         * modules/xreadlink (Makefile.am): Likewise.
55076         * modules/xstrtod (Makefile.am): Likewise.
55077         * modules/xstrtol (Makefile.am): Likewise.
55078         * modules/xstrtold (Makefile.am): Likewise.
55079         * modules/yesno (Makefile.am): Likewise.
55080         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
55081
55082 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55083
55084         * modules/error (Makefile.am): Distribute files through
55085         EXTRA_DIST, not lib_SOURCES.
55086
55087 2006-10-12  Eric Blake  <ebb9@byu.net>
55088
55089         * modules/error (Makefile.am): Distribute files in /lib.
55090         * modules/obstack (Makefile.am): Likewise.
55091
55092 2006-10-12  Bruno Haible  <bruno@clisp.org>
55093
55094         * modules/acl (Makefile.am): Distribute all files in lib/ through
55095         EXTRA_DIST.
55096         * modules/arcfour (Makefile.am): Likewise.
55097         * modules/arctwo (Makefile.am): Likewise.
55098         * modules/argmatch (Makefile.am): Likewise.
55099         * modules/argz (Makefile.am): Likewise.
55100         * modules/atexit (Makefile.am): Likewise.
55101         * modules/backupfile (Makefile.am): Likewise.
55102         * modules/c-strtod (Makefile.am): Likewise.
55103         * modules/c-strtold (Makefile.am): Likewise.
55104         * modules/calloc (Makefile.am): Likewise.
55105         * modules/canon-host (Makefile.am): Likewise.
55106         * modules/canonicalize (Makefile.am): Likewise.
55107         * modules/chdir-long (Makefile.am): Likewise.
55108         * modules/chdir-safer (Makefile.am): Likewise.
55109         * modules/check-version (Makefile.am): Likewise.
55110         * modules/chown (Makefile.am): Likewise.
55111         * modules/cloexec (Makefile.am): Likewise.
55112         * modules/close-stream (Makefile.am): Likewise.
55113         * modules/closeout (Makefile.am): Likewise.
55114         * modules/crc (Makefile.am): Likewise.
55115         * modules/cycle-check (Makefile.am): Likewise.
55116         * modules/des (Makefile.am): Likewise.
55117         * modules/dirfd (Makefile.am): Likewise.
55118         * modules/dirname (Makefile.am): Likewise.
55119         * modules/dup2 (Makefile.am): Likewise.
55120         * modules/euidaccess (Makefile.am): Likewise.
55121         * modules/exclude (Makefile.am): Likewise.
55122         * modules/exitfail (Makefile.am): Likewise.
55123         * modules/fcntl-safer (Makefile.am): Likewise.
55124         * modules/file-type (Makefile.am): Likewise.
55125         * modules/fileblocks (Makefile.am): Likewise.
55126         * modules/filemode (Makefile.am): Likewise.
55127         * modules/filenamecat (Makefile.am): Likewise.
55128         * modules/fnmatch (Makefile.am): Likewise.
55129         * modules/fopen-safer (Makefile.am): Likewise.
55130         * modules/fpending (Makefile.am): Likewise.
55131         * modules/fprintftime (Makefile.am): Likewise.
55132         * modules/free (Makefile.am): Likewise.
55133         * modules/fsusage (Makefile.am): Likewise.
55134         * modules/ftruncate (Makefile.am): Likewise.
55135         * modules/fts (Makefile.am): Likewise.
55136         * modules/gc (Makefile.am): Likewise.
55137         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
55138         * modules/getaddrinfo (Makefile.am): Likewise.
55139         * modules/getcwd (Makefile.am): Likewise.
55140         * modules/getdelim (Makefile.am): Likewise.
55141         * modules/getdomainname (Makefile.am): Likewise.
55142         * modules/getgroups (Makefile.am): Likewise.
55143         * modules/gethostname (Makefile.am): Likewise.
55144         * modules/gethrxtime (Makefile.am): Likewise.
55145         * modules/getline (Makefile.am): Likewise.
55146         * modules/getloadavg (Makefile.am): Likewise.
55147         * modules/getlogin_r (Makefile.am): Likewise.
55148         * modules/getopt (Makefile.am): Likewise.
55149         * modules/getpass (Makefile.am): Likewise.
55150         * modules/getpass-gnu (Makefile.am): Likewise.
55151         * modules/getsubopt (Makefile.am): Likewise.
55152         * modules/gettime (Makefile.am): Likewise.
55153         * modules/gettimeofday (Makefile.am): Likewise.
55154         * modules/getugroups (Makefile.am): Likewise.
55155         * modules/getusershell (Makefile.am): Likewise.
55156         * modules/glob (Makefile.am): Likewise.
55157         * modules/group-member (Makefile.am): Likewise.
55158         * modules/hard-locale (Makefile.am): Likewise.
55159         * modules/hash (Makefile.am): Likewise.
55160         * modules/hmac-md5 (Makefile.am): Likewise.
55161         * modules/hmac-sha1 (Makefile.am): Likewise.
55162         * modules/human (Makefile.am): Likewise.
55163         * modules/idcache (Makefile.am): Likewise.
55164         * modules/imaxabs (Makefile.am): Likewise.
55165         * modules/imaxdiv (Makefile.am): Likewise.
55166         * modules/inet_ntop (Makefile.am): Likewise.
55167         * modules/inet_pton (Makefile.am): Likewise.
55168         * modules/inttostr (Makefile.am): Likewise.
55169         * modules/isapipe (Makefile.am): Likewise.
55170         * modules/lchown (Makefile.am): Likewise.
55171         * modules/long-options (Makefile.am): Likewise.
55172         * modules/lstat (Makefile.am): Likewise.
55173         * modules/malloc (Makefile.am): Likewise.
55174         * modules/mathl (Makefile.am): Likewise.
55175         * modules/mbchar (Makefile.am): Likewise.
55176         * modules/md2 (Makefile.am): Likewise.
55177         * modules/md4 (Makefile.am): Likewise.
55178         * modules/md5 (Makefile.am): Likewise.
55179         * modules/memcasecmp (Makefile.am): Likewise.
55180         * modules/memchr (Makefile.am): Likewise.
55181         * modules/memcmp (Makefile.am): Likewise.
55182         * modules/memcoll (Makefile.am): Likewise.
55183         * modules/memcpy (Makefile.am): Likewise.
55184         * modules/memmem (Makefile.am): Likewise.
55185         * modules/memmove (Makefile.am): Likewise.
55186         * modules/mempcpy (Makefile.am): Likewise.
55187         * modules/memrchr (Makefile.am): Likewise.
55188         * modules/memset (Makefile.am): Likewise.
55189         * modules/memxor (Makefile.am): Likewise.
55190         * modules/mkancesdirs (Makefile.am): Likewise.
55191         * modules/mkdir (Makefile.am): Likewise.
55192         * modules/mkdir-p (Makefile.am): Likewise.
55193         * modules/mkdtemp (Makefile.am): Likewise.
55194         * modules/mkstemp (Makefile.am): Likewise.
55195         * modules/mktime (Makefile.am): Likewise.
55196         * modules/modechange (Makefile.am): Likewise.
55197         * modules/mountlist (Makefile.am): Likewise.
55198         * modules/nanosleep (Makefile.am): Likewise.
55199         * modules/openat (Makefile.am): Likewise.
55200         * modules/pagealign_alloc (Makefile.am): Likewise.
55201         * modules/physmem (Makefile.am): Likewise.
55202         * modules/poll (Makefile.am): Likewise.
55203         * modules/posixtm (Makefile.am): Likewise.
55204         * modules/posixver (Makefile.am): Likewise.
55205         * modules/putenv (Makefile.am): Likewise.
55206         * modules/quote (Makefile.am): Likewise.
55207         * modules/quotearg (Makefile.am): Likewise.
55208         * modules/raise (Makefile.am): Likewise.
55209         * modules/read-file (Makefile.am): Likewise.
55210         * modules/readline (Makefile.am): Likewise.
55211         * modules/readlink (Makefile.am): Likewise.
55212         * modules/readtokens (Makefile.am): Likewise.
55213         * modules/readutmp (Makefile.am): Likewise.
55214         * modules/realloc (Makefile.am): Likewise.
55215         * modules/regex (Makefile.am): Likewise.
55216         * modules/rename (Makefile.am): Likewise.
55217         * modules/rename-dest-slash (Makefile.am): Likewise.
55218         * modules/rijndael (Makefile.am): Likewise.
55219         * modules/rmdir (Makefile.am): Likewise.
55220         * modules/rpmatch (Makefile.am): Likewise.
55221         * modules/safe-read (Makefile.am): Likewise.
55222         * modules/safe-write (Makefile.am): Likewise.
55223         * modules/same (Makefile.am): Likewise.
55224         * modules/save-cwd (Makefile.am): Likewise.
55225         * modules/savedir (Makefile.am): Likewise.
55226         * modules/setenv (Makefile.am): Likewise.
55227         * modules/settime (Makefile.am): Likewise.
55228         * modules/sha1 (Makefile.am): Likewise.
55229         * modules/sig2str (Makefile.am): Likewise.
55230         * modules/snprintf (Makefile.am): Likewise.
55231         * modules/stdlib-safer (Makefile.am): Likewise.
55232         * modules/stpcpy (Makefile.am): Likewise.
55233         * modules/stpncpy (Makefile.am): Likewise.
55234         * modules/strcase (Makefile.am): Likewise.
55235         * modules/strcasestr (Makefile.am): Likewise.
55236         * modules/strchrnul (Makefile.am): Likewise.
55237         * modules/strcspn (Makefile.am): Likewise.
55238         * modules/strdup (Makefile.am): Likewise.
55239         * modules/strerror (Makefile.am): Likewise.
55240         * modules/strftime (Makefile.am): Likewise.
55241         * modules/strndup (Makefile.am): Likewise.
55242         * modules/strnlen (Makefile.am): Likewise.
55243         * modules/strpbrk (Makefile.am): Likewise.
55244         * modules/strsep (Makefile.am): Likewise.
55245         * modules/strstr (Makefile.am): Likewise.
55246         * modules/strtod (Makefile.am): Likewise.
55247         * modules/strtoimax (Makefile.am): Likewise.
55248         * modules/strtok_r (Makefile.am): Likewise.
55249         * modules/strtol (Makefile.am): Likewise.
55250         * modules/strtoll (Makefile.am): Likewise.
55251         * modules/strtoul (Makefile.am): Likewise.
55252         * modules/strtoull (Makefile.am): Likewise.
55253         * modules/strtoumax (Makefile.am): Likewise.
55254         * modules/strverscmp (Makefile.am): Likewise.
55255         * modules/time_r (Makefile.am): Likewise.
55256         * modules/timegm (Makefile.am): Likewise.
55257         * modules/tmpfile-safer (Makefile.am): Likewise.
55258         * modules/unistd-safer (Makefile.am): Likewise.
55259         * modules/unlinkdir (Makefile.am): Likewise.
55260         * modules/userspec (Makefile.am): Likewise.
55261         * modules/utime (Makefile.am): Likewise.
55262         * modules/utimecmp (Makefile.am): Likewise.
55263         * modules/utimens (Makefile.am): Likewise.
55264         * modules/vasnprintf (Makefile.am): Likewise.
55265         * modules/vasprintf (Makefile.am): Likewise.
55266         * modules/vsnprintf (Makefile.am): Likewise.
55267         * modules/xalloc (Makefile.am): Likewise.
55268         * modules/xgetcwd (Makefile.am): Likewise.
55269         * modules/xnanosleep (Makefile.am): Likewise.
55270         * modules/xreadlink (Makefile.am): Likewise.
55271         * modules/xstrtod (Makefile.am): Likewise.
55272         * modules/xstrtol (Makefile.am): Likewise.
55273         * modules/xstrtold (Makefile.am): Likewise.
55274         * modules/yesno (Makefile.am): Likewise.
55275
55276 2006-10-12  Jim Meyering  <jim@meyering.net>
55277
55278         * m4/getloadavg.m4: Revert the change below.
55279
55280         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
55281         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
55282         fail with a symlink, which is what coreutils' ./bootstrap now
55283         creates by default.
55284
55285 2006-10-12  Bruno Haible  <bruno@clisp.org>
55286
55287         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
55288         mingw.
55289         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
55290         MSVC and mingw explicitly.
55291
55292 2006-10-11  Simon Josefsson  <jas@extundo.com>
55293             Bruno Haible  <bruno@clisp.org>
55294
55295         Add support for multiple gnulib-tool invocations in the scope of a
55296         single configure.ac file.
55297         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
55298         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
55299         with the same contents as the _LIBADD variable.
55300         (func_emit_initmacro_start, func_emit_initmacro_end,
55301         func_emit_initmacro_done): New functions.
55302         (func_import, func_create_testdir): Invoke them. Allow the identifiers
55303         gl_LIBOBJS and gl_LTLIBOBJS.
55304
55305 2006-10-11  Bruno Haible  <bruno@clisp.org>
55306
55307         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
55308         (func_create_testdir): Don't create po/Makefile.am, don't invoke
55309         autoreconf. Instead, invoke autopoint explicitly but move back the
55310         *.m4 files from gnulib.
55311
55312 2006-10-11  Bruno Haible  <bruno@clisp.org>
55313
55314         * gnulib-tool (func_usage): Make module names after --create-testdir
55315         optional.
55316         (func_create_testdir): If no module was specified, use nearly all
55317         modules.
55318
55319 2006-10-12  Jim Meyering  <jim@meyering.net>
55320
55321         Big performance improvement for fts-based tools that use FTS_NOSTAT.
55322         Avoid spurious inode-mismatch problems on non-POSIX file systems.
55323         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
55324         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
55325         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
55326         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
55327         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
55328         (fts_set_stat_required): New function.
55329         (fts_open): Defer the calls to fts_stat, if possible or requested.
55330         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
55331         into fts_stat itself.
55332         (fts_read): Perform any required (deferred) fts_stat call.
55333         (fts_build): Likewise, for the directory we're about to open and read.
55334         In the readdir loop, carefully decide whether each entry will require
55335         an eventual call to fts_stat, using dirent.d_type info if available.
55336         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
55337         a command line argument into this function.  Update all callers.
55338         Map a return value of FTS_DOT to FTS_D for a command line argument.
55339         * modules/fts (Depends-on): Add d-type.  Alphabetize.
55340         Thanks to Miklos Szeredi for his tenacity and for the initial
55341         bug report about "find" failing on a FUSE-based file system.
55342
55343         * lib/fts.c (fts_open): Use consistent indentation.
55344
55345 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55346
55347         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
55348         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
55349         reported by Jim Meyering.  All uses of cache variables renamed
55350         to match Autoconf's.
55351         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
55352         the other one.
55353
55354         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
55355         Fix misspelling in diagnostic.
55356
55357 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55358
55359         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
55360         defined.  Problem reported by Matthew Woehlke.
55361
55362         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
55363         Add support for Tandem NonStop R series.
55364         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
55365         Use new macro.
55366
55367         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
55368         (has_trailing_slash): Omit size arg; all callers changed.
55369         Omit 'inline', since it doesn't help performance and we'd
55370         need to configure it.
55371         Don't count //, ///, etc. as having a trailing slash.
55372         As a side effect, this removes a C99ism reported by Matthew Woehlke.
55373         (rpl_rename_dest_slash): On failure, use rename's errno rather
55374         than (in some cases) an incorrect or junk errno.
55375         Simplify code by removing need to compute length; this does
55376         cause it to make two passes instead of one over the file name,
55377         but it's worth it.
55378
55379         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
55380         change, since Autoconf's version may no longer be appropriate now
55381         that we are using CVS Autoconf's version.  Add support for Tandem.
55382
55383 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55384             Bruno Haible  <bruno@clisp.org>
55385
55386         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
55387         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
55388         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
55389         gl_AC_TYPE_LONG_LONG.
55390
55391         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
55392         instead of HAVE_LONG_LONG.
55393         * lib/printf-args.c (printf_fetchargs): Likewise.
55394         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
55395         * lib/vasnprintf.c (VASNPRINTF): Likewise.
55396         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
55397         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
55398         gl_AC_TYPE_LONG_LONG.
55399
55400 2006-10-11  Bruno Haible  <bruno@clisp.org>
55401
55402         * m4/longlong.m4: Add comments.
55403         * m4/ulonglong.m4: Likewise.
55404
55405 2006-10-10  Bruno Haible  <bruno@clisp.org>
55406
55407         Make it possible to #define stpcpy, strdup to aliases.
55408         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
55409         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
55410
55411 2006-10-10  Bruno Haible  <bruno@clisp.org>
55412
55413         Make it possible to #define gcd to an alias.
55414         * lib/gcd.c: Include config.h.
55415
55416 2006-10-10  Bruno Haible  <bruno@clisp.org>
55417
55418         Make it possible to #define c_isascii to an alias.
55419         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
55420         defined. Undefine the macros before defining them, to avoid gcc
55421         warnings.
55422         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
55423         define NO_C_CTYPE_MACROS early.
55424
55425 2006-10-10  Bruno Haible  <bruno@clisp.org>
55426
55427         Make it possible to #define set_program_name to an alias.
55428         * lib/progname.c: Don't undefine set_program_name; instead, undefine
55429         ENABLE_RELOCATABLE early.
55430
55431 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
55432
55433         Port to Tandem NSK OSS, which has 64-bit signed int but at most
55434         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
55435         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
55436         More generally, don't assume that 64-bit signed int is available
55437         if unsigned int is, and vice versa.
55438         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
55439         unsigned symbols, not on their signed counterparts.
55440         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
55441         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
55442         (UINT64_C, UINTMAX_C):
55443         Likewise.
55444         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
55445         unsigned counterparts.
55446         (Have_long_long, Unsigned): New macros.
55447         (Int): Renamed from INT.
55448         (strtoimax): Use the new macros.
55449         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
55450         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
55451         * modules/inttypes (inttypes.h): Substitute
55452         HAVE_UNSIGNED_LONG_LONG_INT.
55453         * modules/stdint (stdint.h): Likewise.
55454         (Files): Add m4/ulonglong.m4.
55455
55456 2006-10-10  Bruno Haible  <bruno@clisp.org>
55457
55458         Fix a gcc -Wshadow warning.
55459         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
55460         to 'bucket'.
55461         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
55462         gl_linked_indexof_from_to): Likewise.
55463         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
55464         Likewise.
55465         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
55466         Likewise.
55467         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
55468         Reported by Eric Blake.
55469
55470 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
55471
55472         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
55473         for NetBSD.  Problem reported by Bruno Haible.
55474
55475 2006-10-09  Jim Meyering  <jim@meyering.net>
55476
55477         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
55478         Patch from Bruno Haible.
55479
55480 2006-10-09  Jim Meyering  <jim@meyering.net>
55481
55482         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
55483         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
55484         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
55485
55486 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55487
55488         Don't include <config.h> twice; this doesn't work in some cases,
55489         e.g., when config.h has "#define intmax_t long long int" and
55490         we include <config.h>, <inttypes.h>, <config.h> in that order.
55491         Problem reported by Matthew Woehlke in:
55492         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
55493         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
55494         * lib/fts-cycle.c: Don't include config.h.
55495         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
55496         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
55497         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
55498         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
55499         inttypes.h.
55500         * lib/xstrtoumax.c: Likewise.
55501         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
55502         __strtol and the like, so that this module is more like its siblings.
55503         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
55504         Remove; no longer needed now that we assume gnulib inttypes.h.
55505
55506 2006-10-08  Bruno Haible  <bruno@clisp.org>
55507
55508         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
55509         option.
55510
55511 2006-10-07  Jim Meyering  <jim@meyering.net>
55512
55513         * modules/inttypes (inttypes.h): Revert what seems to have been
55514         an inadvertent part of today's change: use "|", not "/" in the
55515         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
55516
55517 2006-10-07  Bruno Haible  <bruno@clisp.org>
55518
55519         * modules/sublist: New file.
55520
55521 2006-10-07  Bruno Haible  <bruno@clisp.org>
55522
55523         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
55524         * modules/argz (argz.h): Likewise.
55525         * modules/arpa_inet (arpa/inet.h): Likewise.
55526         * modules/byteswap (byteswap.h): Likewise.
55527         * modules/configmake (configmake.h): Likewise.
55528         * modules/fcntl (fcntl.h): Likewise.
55529         * modules/fnmatch (fnmatch.h): Likewise.
55530         * modules/getopt (getopt.h): Likewise.
55531         * modules/glob (glob.h): Likewise.
55532         * modules/inttypes (inttypes.h): Likewise.
55533         * modules/netinet_in (netinet/in.h): Likewise.
55534         * modules/poll (poll.h): Likewise.
55535         * modules/stdbool (stdbool.h): Likewise.
55536         * modules/stdint (stdint.h): Likewise.
55537         * modules/sys_select (sys/select.h): Likewise.
55538         * modules/sys_socket (sys/socket.h): Likewise.
55539         * modules/sys_stat (sys/stat.h): Likewise.
55540         * modules/sysexits (sysexits.h): Likewise.
55541         * modules/unistd (unistd.h): Likewise.
55542         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55543         Add a "DO NOT EDIT" comment to the generated file.
55544         (func_import): Likewise for gnulib-comp.m4.
55545
55546 2006-10-07  Bruno Haible  <bruno@clisp.org>
55547
55548         * lib/gl_sublist.h: New file.
55549         * lib/gl_sublist.c: New file.
55550
55551 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
55552
55553         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
55554         name (relative to the original working directory) and the file
55555         name component (relative to the temporary working directory).  All
55556         callers changed.
55557         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
55558         * lib/mkdir-p.c (make_dir_parents): Likewise.
55559         * lib/mkdir-p.h (make_dir_parents): Likewise.
55560
55561 2006-10-06  Eric Blake  <ebb9@byu.net>
55562
55563         Define several macros for use by the clean-temp module.
55564         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
55565         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
55566         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
55567
55568         * lib/clean-temp.h (close_stream_temp): New declaration.
55569         * lib/clean-temp.c (includes): Pull in headers according to what
55570         other modules are in use.
55571         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
55572
55573 2006-10-06  Bruno Haible  <bruno@clisp.org>
55574
55575         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
55576         instead of fopen, fwriteerror.
55577
55578 2006-10-06  Bruno Haible  <bruno@clisp.org>
55579
55580         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
55581         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
55582         int.
55583         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
55584         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
55585         Return an error indicator.
55586         Suggested by Eric Blake.
55587
55588 2006-10-06  Bruno Haible  <bruno@clisp.org>
55589
55590         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
55591         Reported by Eric Blake.
55592
55593 2006-10-06  Bruno Haible  <bruno@clisp.org>
55594
55595         * modules/closeout (Description): Mention stderr too.
55596
55597 2006-10-06  Bruno Haible  <bruno@clisp.org>
55598         and Paul Eggert  <eggert@cs.ucla.edu>
55599
55600         * lib/closeout.c (close_stdout): Also close stderr.
55601         * lib/closeout.h: Update comment.
55602
55603 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
55604
55605         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
55606         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
55607         * lib/dirchownmod.c: Include lchown.h.
55608         * lib/lchown.c: Don't include files that lchown.h now includes.
55609         Don't declare chown, since lchown.h now does that.
55610         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
55611         (lchown): Define to rpl_chown if lchown is declared but
55612         does not exist.  Declare using a prototype if lchown is not
55613         declared.  Add a copyright notice.
55614         * lib/mkstemp.h: Include <unistd.h>.
55615         * lib/openat.c: Include lchown.h.
55616
55617         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
55618         we now test for that separately.
55619         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
55620         rather than O_NOFOLLOW, when testing whether it's possible to
55621         avoid a race condition reliably.
55622         * lib/savewd.c (savewd_chdir): Likewise.
55623
55624         Remove macros that are no longer needed now that stdint.h is
55625         reliable.
55626         * lib/fsusage.c (UINTMAX_MAX): Remove.
55627         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
55628         * lib/utimecmp.c (SIZE_MAX): Remove.
55629
55630         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
55631
55632         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
55633         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
55634         O_NOATIME works.
55635
55636 2006-10-05  Bruno Haible  <bruno@clisp.org>
55637
55638         * lib/gl_list.h (gl_sortedlist_search_from_to,
55639         gl_sortedlist_indexof_from_to): New declarations.
55640         (gl_list_implementation): New fields sortedlist_search_from_to,
55641         sortedlist_indexof_from_to.
55642         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
55643         inline functions.
55644         * lib/gl_list.c (gl_sortedlist_search_from_to,
55645         gl_sortedlist_indexof_from_to): New functions.
55646         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
55647         function.
55648         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
55649         (gl_array_sortedlist_search_from_to): New function.
55650         (gl_array_list_implementation): Update.
55651         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
55652         function.
55653         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
55654         (gl_carray_sortedlist_search_from_to): New function.
55655         (gl_carray_list_implementation): Update.
55656         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
55657         gl_linked_sortedlist_indexof_from_to): New functions.
55658         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
55659         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
55660         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
55661         gl_tree_sortedlist_indexof_from_to): New functions.
55662         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
55663         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
55664         Update.
55665         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
55666         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
55667         Update.
55668
55669 2006-10-05  Bruno Haible  <bruno@clisp.org>
55670
55671         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
55672         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
55673         (struct gl_list_implementation): Add fields search_from_to,
55674         indexof_from_to. Remove fields search, indexof.
55675         (gl_list_search): Use the search_from_to method.
55676         (gl_list_search_from, gl_list_search_from_to): New functions.
55677         (gl_list_indexof): Use the indexof_from_to method.
55678         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
55679         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
55680         (gl_list_search_from, gl_list_search_from_to): New functions.
55681         (gl_list_indexof): Use the indexof_from_to method.
55682         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
55683         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
55684         gl_array_indexof. Add start_index, end_index arguments.
55685         (gl_array_search_from_to): Renamed from gl_array_search. Add
55686         start_index, end_index arguments.
55687         (gl_array_remove, gl_array_list_implementation): Update.
55688         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
55689         gl_carray_indexof. Add start_index, end_index arguments.
55690         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
55691         start_index, end_index arguments.
55692         (gl_carray_remove, gl_carray_list_implementation): Update.
55693         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
55694         gl_linked_search. Add start_index, end_index arguments.
55695         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
55696         start_index, end_index arguments.
55697         (gl_linked_remove): Update.
55698         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
55699         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
55700         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
55701         field to 'size_t'.
55702         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
55703         gl_tree_search. Add start_index, end_index arguments.
55704         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
55705         start_index, end_index arguments.
55706         (gl_tree_remove): Update.
55707         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
55708         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
55709         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
55710         function.
55711         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
55712         gl_tree_search. Add start_index, end_index arguments.
55713         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
55714         start_index, end_index arguments.
55715         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
55716         Update.
55717         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
55718
55719 2006-10-05  Bruno Haible  <bruno@clisp.org>
55720
55721         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
55722
55723         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
55724         fwriteerror_temp): New declarations.
55725         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
55726         (descriptors): New variable.
55727         (cleanup): First, close the descriptors.
55728         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
55729         fclose_temp, fwriteerror_temp): New functions.
55730
55731 2006-10-04  Jim Meyering  <jim@meyering.net>
55732
55733         * lib/fts.c (fts_open): Tiny comment change.
55734
55735 2006-10-04  Bruno Haible  <bruno@clisp.org>
55736
55737         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
55738         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
55739         gl_LOCK_BODY.
55740         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
55741         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
55742         gl_LOCK_EARLY_BODY.
55743         (gl_LOCK): Require gl_LOCK_BODY.
55744
55745 2006-10-04  Bruno Haible  <bruno@clisp.org>
55746
55747         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
55748         (gl_oset_search_atleast): New declaration.
55749         (struct gl_oset_implementation): Add field 'search_atleast'.
55750         (gl_oset_search_atleast): New inline function.
55751         * lib/gl_oset.c (gl_oset_search_atleast): New function.
55752         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
55753         (gl_array_oset_implementation): Update.
55754         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
55755         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
55756         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
55757
55758 2006-10-04  Bruno Haible  <bruno@clisp.org>
55759
55760         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
55761
55762 2006-10-03  Bruno Haible  <bruno@clisp.org>
55763
55764         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
55765         from gl_avltreehash_list_implementation.
55766
55767 2006-10-03  Bruno Haible  <bruno@clisp.org>
55768
55769         * lib/gl_oset.c (gl_oset_add): Fix return type.
55770
55771 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
55772
55773         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
55774
55775 2006-10-02  Eric Blake  <ebb9@byu.net>
55776
55777         * modules/strnlen (Depends-on): Add extensions.
55778
55779 2006-10-02  Eric Blake  <ebb9@byu.net>
55780
55781         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
55782         definition in 2.60+.
55783
55784 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
55785
55786         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
55787         checks.
55788
55789 2006-10-02  Bruno Haible  <bruno@clisp.org>
55790
55791         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
55792         to the AUTOMAKE_OPTIONS.
55793         Reported by Jim Meyering.
55794
55795 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
55796
55797         Work around bug in Solaris 10 /proc file system:
55798         /proc/self/fd/NNN/.. isn't the parent directory of
55799         the directory whose file descriptor is NNN.  This needs to
55800         be worked around at run time, not compile time, since a
55801         program might be built on Solaris 8, where things work, and
55802         run on Solaris 10.
55803         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
55804         to use the following interface instead:
55805         (OPENAT_BUFFER_SIZE): New macro.
55806         (openat_proc_name): New function.
55807         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
55808         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
55809         Likewise.
55810         * lib/openat-proc.c: New file.
55811         * modules/openat (Files): Add lib/openat-proc.c.
55812         (Depends-on): Add same-inode, stdbool.
55813         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
55814
55815 2006-09-29  Bruno Haible  <bruno@clisp.org>
55816
55817         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
55818         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
55819         argument. Set stdout_closed before testing for ferror, not after.
55820         (fwriteerror, fwriteerror_no_ebadf): New functions.
55821
55822 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55823
55824         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
55825
55826 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
55827
55828         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
55829         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
55830
55831 2006-09-28  Jim Meyering  <jim@meyering.net>
55832
55833         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
55834         Include <unistd.h>.
55835
55836 2006-09-28  Bruno Haible  <bruno@clisp.org>
55837
55838         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
55839         * modules/linkedhash-list (Depends-on): Likewise.
55840         * modules/rbtreehash-list (Depends-on): Likewise.
55841
55842 2006-09-28  Bruno Haible  <bruno@clisp.org>
55843
55844         * lib/strndup.h: Simplify the redefinition of strndup.
55845         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
55846         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
55847
55848 2006-09-28  Bruno Haible  <bruno@clisp.org>
55849
55850         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
55851         * lib/gl_linkedhash_list.c: Likewise.
55852         * lib/gl_rbtreehash_list.c: Likewise.
55853
55854 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
55855
55856         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
55857         getaddrinfo.
55858
55859         * lib/__fpending.h: Don't include <stdio_ext.h> unless
55860         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
55861         it causes <stdio_ext.h> to cause a compile-time error.
55862         Problem reported by Nelson H. F. Beebe.
55863         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
55864         of HAVE_DECL___PENDING.
55865
55866         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
55867         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
55868         declaration.
55869
55870 2006-09-27  Jim Meyering  <jim@meyering.net>
55871
55872         This file could end up with a definition for a function
55873         named __strndup, rather than rpl_strndup on a system with
55874         incomplete weak_alias support.
55875         * lib/strndup.c (strndup): Rename from __strndup.
55876         Remove #defines that used to map __strndup to strndup.
55877         Don't use K&R prototypes.
55878         Remove LIBC-related code, since this file is not sync'd with glibc.
55879         * lib/strndup.h: Revamp, accordingly.
55880         * m4/strndup.m4: Modernize.
55881
55882 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
55883
55884         * modules/savewd (Depends-on): Add 'raise'.
55885         * lib/savewd.c: Include <signal.h>, for 'raise'.
55886
55887 2006-09-26  Jim Meyering  <jim@meyering.net>
55888
55889         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
55890         when we detect Darwin 8.7.0's acl_get_file bug.
55891         Rearrange to perform the new (below) run-test while $LIBS
55892         contains any acl-related library.  Set USE_ACL at the end.
55893         (gl_ACL_GET_FILE): New function.
55894
55895 2006-09-26  Eric Blake  <ebb9@byu.net>
55896
55897         * lib/verror.c: Include <config.h> unconditionally.
55898
55899 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
55900
55901         * modules/clock-time (Maintainer): Add self.
55902         * modules/getlogin_r (Depends-on): Add extensions.
55903
55904 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55905
55906         * modules/clock-time: New module.
55907         * modules/nanosleep (Depends-on): Add clock-time.
55908         * modules/gethrxtime (Depends-on): Likewise.
55909         * modules/gettime (Depends-on): Likewise.
55910         * modules/settime (Depends-on): Likewise.
55911
55912         * modules/fts-lgpl: Depend on openat.
55913         * modules/mkancesdirs: Depend on savewd.
55914         * modules/mkdir-p: Likewise.
55915
55916 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55917
55918         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
55919
55920         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
55921         `gl_have_arbitrary_file_name_length_limit' to
55922         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
55923         actually works between configure runs.
55924
55925 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55926             Bruno Haible  <bruno@clisp.org>
55927
55928         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
55929
55930 2006-09-25  Jim Meyering  <jim@meyering.net>
55931
55932         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
55933         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
55934
55935 2006-09-25  Eric Blake  <ebb9@byu.net>
55936
55937         * gnulib-tool (func_import, func_create_testdir): Fix typos in
55938         exec's in 2006-09-18 patch when shuffling fds.
55939
55940 2006-09-25  Bruno Haible  <bruno@clisp.org>
55941
55942         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
55943         Reported by Jim Meyering.
55944
55945 2006-09-24  Jim Meyering  <jim@meyering.net>
55946
55947         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
55948         compare a pointer against a literal "0".  That caused failures with
55949         at least HP-UX's hpcc.
55950
55951 2006-09-22  Simon Josefsson  <jas@extundo.com>
55952
55953         * modules/gc-sha1:
55954         * modules/gc-md4:
55955         * modules/gc-hmac-sha1:
55956         * modules/gc-hmac-md5:
55957         * modules/gc-des:
55958         * modules/gc-arcfour: Distribute more files.
55959
55960 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55961
55962         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
55963         (gl_linked_iterator_from_to): Initialize struct completely.
55964         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
55965         (gl_tree_iterator_from_to): Likewise
55966         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
55967         * lib/gl_array_list.c [lint] (gl_array_iterator)
55968         (gl_array_iterator_from_to): Likewise.
55969         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
55970         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
55971         (gl_carray_iterator_from_to): Likewise.
55972
55973         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
55974         * lib/md4.c (md4_process_block): Remove unused variable.
55975         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
55976         parentheses for clarity.
55977
55978 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55979
55980         * modules/bison-i18n (Depends-on): Add gettext.
55981
55982 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55983
55984         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
55985         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
55986         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
55987         also add missing comma that caused broken test.
55988         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
55989         stdlib.h, for `abort'.
55990         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
55991         variables.
55992         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
55993         include unistd.h if present, for `rmdir'.
55994         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
55995         variables.
55996         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
55997         in the process include standard headers for prototypes.
55998         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
55999         gets declared on GNU/Linux.
56000         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
56001         unistd.h, for `rmdir'.
56002         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
56003
56004         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
56005         always true.
56006         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
56007
56008         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
56009
56010 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56011
56012         * gnulib-tool (func_version): Create output all at once.  This
56013         may help avoid triggering unnecessary SIGPIPEs, and at any
56014         rate it doesn't hurt.
56015
56016 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56017             Bruno Haible  <bruno@clisp.org>
56018
56019         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
56020         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
56021         * m4/signed.m4 (bh_C_SIGNED): Likewise.
56022
56023         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
56024         (gl_FUNC_VASPRINTF): Invoke it.
56025
56026 2006-09-22  Bruno Haible  <bruno@clisp.org>
56027
56028         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
56029         getloadavg.c as first argument.
56030
56031 2006-09-22  Bruno Haible  <bruno@clisp.org>
56032
56033         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
56034         at the beginning of the gl_INIT macro.
56035         * modules/getloadavg (configure.ac): Pass $gl_source_base to
56036         gl_GETLOADAVG.
56037
56038 2006-09-22  Bruno Haible  <bruno@clisp.org>
56039
56040         * gnulib-tool (func_create_megatestdir): Don't include the config-h
56041         module.
56042         Suggested by Ralf Wildenhues.
56043
56044 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
56045
56046         Import this patch from libc:
56047
56048         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
56049
56050         * lib/regex_internal.c (re_string_reconstruct): Handle
56051         offset < pstr->valid_raw_len && pstr->offsets_needed case.
56052         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
56053         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
56054         re_string_context_at.
56055
56056         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
56057         now requires it.
56058         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
56059         gl_REGEX now does it for us.
56060         (gl_REGEX): Add test taken from
56061         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
56062
56063         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
56064         Check that large offsets work.  Modernize Autoconf usages.
56065         Prefer "yes" to mean a good thing rather than a bad.
56066         Don't put "#define mkstemp" in config.h, as this might interfere
56067         with standard system headers that "#define mkstemp mkstemp64".
56068
56069         * modules/mkstemp (Depends-on): Add extensions, so that
56070         mkstemp is visible on some platforms.
56071         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
56072         (Include): Change to "mkstemp.h" from <stdlib.h>.
56073         (Files): Add mkstemp.h.
56074
56075         * lib/mkstemp.h: New file, since some standard headers
56076         #define mkstemp.
56077         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
56078         Include "mkstemp.h".
56079         Make the _LIBC code resemble glibc original more,
56080         e.g., use K&R style.
56081         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
56082         (mkstemp): Remove, since mkstemp.h does this for us.
56083         * lib/stdlib--.h: Include mkstemp.h.
56084
56085         Import this patch from libc:
56086
56087         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
56088
56089         * lib/tempname.c (__gen_tempname): Change attempts_min
56090         into a macro.  Use preprocessor to decide how to initialize
56091         attempts [Coverity CID 67].
56092
56093 2006-09-20  Bruno Haible  <bruno@clisp.org>
56094
56095         * lib/mkdtemp.c: Import from libc.
56096         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
56097                 * sysdeps/posix/tempname.c (__gen_tempname): Change
56098                 attempts_min into a macro.  Use preprocessor to decide how to
56099                 initialize attempts [Coverity CID 67].
56100         2001-11-27  Paul Eggert  <eggert@twinsun.com>
56101                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
56102                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
56103
56104 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56105
56106         * gnulib-tool (func_exit): New function, to allow to pass the
56107         exit status portably through the trap.  Use everywhere.
56108         (--help, --version): Signal a write error.
56109         (trap): catch SIGPIPE, for write errors.
56110         Exit at the end of the trap, with the correct exit status.
56111
56112 2006-09-19  Karl Berry  <karl@gnu.org>
56113
56114         * doc/gnulib.texi: note about the license texinfo files.
56115
56116 2006-09-19  Eric Blake  <ebb9@byu.net>
56117
56118         * gnulib-tool: Avoid space-tab.
56119
56120 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
56121
56122         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
56123         that prevented coreutils 6.1 from building.  Problem reported
56124         by Petter Reinholdtsen.
56125
56126 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
56127
56128         * gnulib-tool (avoidlist): Fix typo that broke options like
56129         --avoid=lock that are used by coreutils bootstrap.
56130
56131 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
56132
56133         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
56134         more systematically.
56135
56136 2006-09-18  Jim Meyering  <jim@meyering.net>
56137
56138         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
56139
56140 2006-09-18  Bruno Haible  <bruno@clisp.org>
56141
56142         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
56143
56144 2006-09-18  Bruno Haible  <bruno@clisp.org>
56145
56146         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
56147         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
56148         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
56149         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
56150         * m4/gettext.m4: Require autoconf >= 2.52.
56151         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
56152         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
56153         of gl_cv_header_inttypes_h.
56154
56155 2006-09-18  Bruno Haible  <bruno@clisp.org>
56156
56157         * lib/javaversion.c: Include configmake.h.
56158
56159 2006-09-18  Bruno Haible  <bruno@clisp.org>
56160
56161         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
56162         avoid that the while loops be executed in a subshell.
56163
56164 2006-09-18  Bruno Haible  <bruno@clisp.org>
56165
56166         * MODULES.html.sh (func_module): Break long lines.
56167         Suggested by Bruce Korb <bkorb@gnu.org>.
56168
56169 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56170
56171         Speed up by a factor of 1.12.
56172         * gnulib-tool (nl): New variable.
56173         (func_import): Rewrite include directive extraction to only read each
56174         directive once.
56175
56176 2006-09-17  Bruno Haible  <bruno@clisp.org>
56177
56178         * modules/javaversion (Makefile.am): Remove DEFS setting.
56179         (Depends-on): Add configmake, for PKGDATADIR definition.
56180
56181 2006-09-17  Bruno Haible  <bruno@clisp.org>
56182
56183         * gnulib-tool (func_create_testdir): Rewrite all files at once.
56184
56185 2006-09-17  Bruno Haible  <bruno@clisp.org>
56186
56187         * gnulib-tool (func_append): New function, stolen from libtool.m4.
56188         (func_modules_transitive_closure, func_modules_add_dummy,
56189         func_modules_to_filelist, func_import, func_create_testdir,
56190         func_create_megatestdir, ...): Use it wherever possible.
56191         Suggested by Ralf Wildenhues.
56192
56193 2006-09-16  Karl Berry  <karl@gnu.org>
56194
56195         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
56196         to avoid sectioning errors.
56197         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
56198         [ifinfo]: blank line after @center-ed titles.
56199         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
56200         Spell FSF address consistently with others.
56201         (These changes approved by rms.)
56202
56203 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56204
56205         Speed up by a factor of 1.61.
56206         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
56207         already checked module names again.
56208
56209 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56210
56211         Speed up by a factor of 1.13.
56212         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
56213         for new_files, and the input to func_add_or_update.
56214
56215 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56216
56217         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
56218         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
56219
56220 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56221
56222         * modules/mkancesdirs (Depends-on): Add fcntl.
56223         * modules/savewd: New file.
56224         * MODULES.html.sh (File system functions): Add savewd.
56225
56226         * modules/configmake (Makefile.am): Add support for the
56227         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
56228
56229 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56230
56231         * m4/savewd.m4: New file.
56232
56233 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56234
56235         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
56236         (dirchownmod): New arg FD.  All callers changed.
56237         Use FD rather than opening the directory ourself, as opening is
56238         now the caller's responsibility.
56239         * lib/dirchownmod.h: Likewise.
56240         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
56241         hosts that require <sys/types.h> before <sys/stat.h>.  Include
56242         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
56243         (test_dir): Remove.
56244         (mkancesdirs): Return length of prefix of FILE that has already
56245         been made, or -2 if there is a child doing the work.  Redo
56246         algorithm so that it is O(N) rather than O(N**2).  Optimize away
56247         ".", and treat ".." specially since it might stray back into
56248         already-created areas.  Use a subprocess if necessary.  New arg
56249         WD; all users changed.  MAKE_DIR function should now return 1
56250         if it creates a directory that is not readable.  Return -2 if
56251         a child process is spun off.
56252         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
56253         Adjust signature to match code.
56254         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
56255         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
56256         all users changed.
56257         * lib/savewd.c, lib/savewd.h: New files.
56258
56259 2006-09-15  Jim Meyering  <jim@meyering.net>
56260
56261         * modules/rename-dest-slash: New module.
56262         * MODULES.html.sh (posix_compat): Add it here.
56263
56264         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
56265
56266 2006-09-15  Jim Meyering  <jim@meyering.net>
56267
56268         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
56269         file.
56270
56271         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
56272
56273 2006-09-15  Jim Meyering  <jim@meyering.net>
56274
56275         * lib/rename-dest-slash.c (has_trailing_slash): Use
56276         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
56277         (rpl_rename_dest_slash): Perform the cheaper trailing slash
56278         test before testing whether SRC is a directory.
56279         Suggestions from Bruno Haible.
56280
56281         Avoid a warning about an unused variable.
56282         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
56283         into the #ifdef block where it's used.
56284
56285         * lib/rename-dest-slash.c: New file.
56286
56287 2006-09-14  Bruno Haible  <bruno@clisp.org>
56288
56289         * lib/allocsa.c: Include <config.h> unconditionally.
56290         * lib/asnprintf.c: Likewise.
56291         * lib/asprintf.c: Likewise.
56292         * lib/c-strcasecmp.c: Likewise.
56293         * lib/c-strcasestr.c: Likewise.
56294         * lib/c-strncasecmp.c: Likewise.
56295         * lib/c-strstr.c: Likewise.
56296         * lib/classpath.c: Likewise.
56297         * lib/clean-temp.c: Likewise.
56298         * lib/concatpath.c: Likewise.
56299         * lib/copy-file.c: Likewise.
56300         * lib/csharpcomp.c: Likewise.
56301         * lib/csharpexec.c: Likewise.
56302         * lib/execute.c: Likewise.
56303         * lib/fatal-signal.c: Likewise.
56304         * lib/findprog.c: Likewise.
56305         * lib/fwriteerror.c: Likewise.
56306         * lib/gl_array_list.c: Likewise.
56307         * lib/gl_array_oset.c: Likewise.
56308         * lib/gl_avltree_list.c: Likewise.
56309         * lib/gl_avltree_oset.c: Likewise.
56310         * lib/gl_avltreehash_list.c: Likewise.
56311         * lib/gl_carray_list.c: Likewise.
56312         * lib/gl_linked_list.c: Likewise.
56313         * lib/gl_linkedhash_list.c: Likewise.
56314         * lib/gl_list.c: Likewise.
56315         * lib/gl_oset.c: Likewise.
56316         * lib/gl_rbtree_list.c: Likewise.
56317         * lib/gl_rbtree_oset.c: Likewise.
56318         * lib/gl_rbtreehash_list.c: Likewise.
56319         * lib/imaxabs.c: Likewise.
56320         * lib/imaxdiv.c: Likewise.
56321         * lib/javacomp.c: Likewise.
56322         * lib/javaexec.c: Likewise.
56323         * lib/javaversion.c: Likewise.
56324         * lib/linebreak.c: Likewise.
56325         * lib/localcharset.c: Likewise.
56326         * lib/lock.c: Likewise.
56327         * lib/mbchar.c: Likewise.
56328         * lib/mbswidth.c: Likewise.
56329         * lib/mkdtemp.c: Likewise.
56330         * lib/pipe.c: Likewise.
56331         * lib/printf-args.c: Likewise.
56332         * lib/printf-parse.c: Likewise.
56333         * lib/progname.c: Likewise.
56334         * lib/progreloc.c: Likewise.
56335         * lib/readlink.c: Likewise.
56336         * lib/sh-quote.c: Likewise.
56337         * lib/stpcpy.c: Likewise.
56338         * lib/stpncpy.c: Likewise.
56339         * lib/strcasecmp.c: Likewise.
56340         * lib/strcasestr.c: Likewise.
56341         * lib/strcspn.c: Likewise.
56342         * lib/striconv.c: Likewise.
56343         * lib/strncasecmp.c: Likewise.
56344         * lib/strnlen1.c: Likewise.
56345         * lib/strstr.c: Likewise.
56346         * lib/strtok_r.c: Likewise.
56347         * lib/tls.c: Likewise.
56348         * lib/tmpdir.c: Likewise.
56349         * lib/unicodeio.c: Likewise.
56350         * lib/unsetenv.c: Likewise.
56351         * lib/vasnprintf.c: Likewise.
56352         * lib/vasprintf.c: Likewise.
56353         * lib/wait-process.c: Likewise.
56354         * lib/xallocsa.c: Likewise.
56355         * lib/xsetenv.c: Likewise.
56356         * lib/xstriconv.c: Likewise.
56357
56358 2006-09-13  Simon Josefsson  <jas@extundo.com>
56359
56360         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
56361         that internally, suggested by Ralf Wildenhues
56362         <Ralf.Wildenhues@gmx.de>.
56363
56364 2006-09-13  Simon Josefsson  <jas@extundo.com>
56365
56366         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
56367         @LIBOBJS@.
56368         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56369
56370 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
56371
56372         * lib/_fpending.c: Include <config.h> unconditionally, since we no
56373         longer worry about uses that don't define HAVE_CONFIG_H.
56374         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
56375         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
56376         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
56377         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
56378         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
56379         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
56380         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
56381         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
56382         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
56383         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
56384         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
56385         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
56386         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
56387         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
56388         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
56389         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
56390         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
56391         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
56392         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
56393         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
56394         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
56395         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
56396         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
56397         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
56398         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
56399         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
56400         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
56401         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
56402         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
56403         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
56404         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
56405         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
56406         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
56407         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
56408         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
56409         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
56410         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
56411         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
56412         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
56413         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
56414         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
56415         Likewise.
56416
56417 2006-09-13  Eric Blake  <ebb9@byu.net>
56418
56419         * lib/getopt.c: Fix typo in last commit.
56420
56421 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56422
56423         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
56424         dgettext.
56425
56426 2006-09-12  Jim Meyering  <jim@meyering.net>
56427
56428         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
56429         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
56430         Reported by Nelson H. F. Beebe.
56431
56432 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56433
56434         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
56435         program_invocation_name and program_invocation_short_name are
56436         initialized.
56437         * lib/argp-namefrob.h: Move declarations of program_invocation_name
56438         and program_invocation_short_name to argp.h, so they are visible
56439         to user programs.
56440         * lib/argp.h: Likewise
56441
56442 2006-09-10  Bruno Haible  <bruno@clisp.org>
56443
56444         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
56445         m4/inttypes_h.m4, m4/uintmax_t.m4.
56446
56447 2006-09-10  Bruno Haible  <bruno@clisp.org>
56448
56449         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
56450         gl_AC_TYPE_UINTMAX_T.
56451
56452 2006-09-10  Bruno Haible  <bruno@clisp.org>
56453
56454         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
56455
56456 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56457
56458         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
56459         convention.  Text proposed by Bruno Haible.
56460         (struct argp_option): Document the use of N_() wrappers.
56461
56462         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
56463         '\v', and translate the two parts separately, instead of feeding
56464         the whole string to gettext.  This allows to exclude
56465         '\v' from the strings visible to the translator by writing doc
56466         strings as N_("..") "\v" N_("..").
56467
56468 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
56469
56470         * config/srclist.txt: Undo latest change; the bug was fixed.
56471
56472 2006-09-09  Bruno Haible  <bruno@clisp.org>
56473
56474         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
56475         assignments if building a library without libtool.
56476         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
56477         in func_emit_lib_Makefile_am.
56478         (func_import): When building a static library libfoo.a, arrange to
56479         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
56480         (func_create_testdir): Likewise.
56481         * modules/gc (configure.ac, Makefile.am): If building statically,
56482         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
56483         * modules/iconvme (configure.ac, Makefile.am): Likewise.
56484         * modules/striconv (configure.ac, Makefile.am): Likewise.
56485         Based on a suggestion by Ralf Wildenhues.
56486
56487 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56488
56489         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
56490         Check for unistd.h too, since Autoconf doesn't assume POSIX.
56491         Also:
56492
56493         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56494         Add year_2050_test to catch glibc bug 2821
56495         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
56496
56497         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56498         Prefer #ifdef to #if.
56499
56500         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
56501         Return from 'main' instead of calling 'exit'.
56502
56503 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56504
56505         * lib/mktime.c (guess_time_tm): Fix bug where mktime
56506         returned the maximum time_t value rather than (time_t) -1.
56507         Problem originally reported by William Bardwell
56508         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
56509
56510         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
56511         Moved to here ...
56512         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
56513         ... from here.
56514
56515 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56516
56517         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
56518         2821 is fixed.
56519
56520 2006-09-08  Jim Meyering  <jim@meyering.net>
56521
56522         Don't make generated files read-only.  That would bother too many
56523         people.  However, do retain the ability to work when targets are
56524         read-only: remove the destination and temporary files before writing
56525         them (when generated via sed or echo), or by using the -f option for
56526         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
56527         * modules/alloca-opt, modules/argz, modules/arpa_inet:
56528         * modules/byteswap, modules/configmake, modules/fcntl:
56529         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
56530         * modules/localcharset, modules/netinet_in, modules/poll:
56531         * modules/stdbool, modules/stdint, modules/sys_select:
56532         * modules/sys_socket, modules/sys_stat, modules/sysexits:
56533
56534 2006-09-08  Jim Meyering  <jim@meyering.net>
56535
56536         Avoid new build failure on FreeBSD 6.0.
56537         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
56538         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
56539         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
56540
56541 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56542
56543         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
56544
56545 2006-09-07  Jim Meyering  <jim@meyering.net>
56546
56547         Fix global typo in last change: use chmod u-w, not chmod u-x.
56548         Spotted by Paul Eggert and Bruce Korb.
56549         * modules/alloca-opt, modules/argz, modules/arpa_inet:
56550         * modules/byteswap, modules/configmake, modules/fcntl:
56551         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
56552         * modules/localcharset, modules/netinet_in, modules/poll:
56553         * modules/stdbool, modules/stdint, modules/sys_select:
56554         * modules/sys_socket, modules/sys_stat, modules/sysexits:
56555
56556 2006-09-06  Jim Meyering  <jim@meyering.net>
56557
56558         Make generated files be read-only.
56559         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
56560         Ensure that each generated file is now read-only.
56561         * modules/argz: Likewise.
56562         * modules/arpa_inet: Likewise.
56563         * modules/byteswap: Likewise.
56564         * modules/configmake: Likewise.
56565         * modules/fcntl: Likewise.
56566         * modules/fnmatch: Likewise.
56567         * modules/getopt: Likewise.
56568         * modules/glob: Likewise.
56569         * modules/inttypes: Likewise.
56570         * modules/netinet_in: Likewise.
56571         * modules/poll: Likewise.
56572         * modules/stdbool: Likewise.
56573         * modules/stdint: Likewise.
56574         * modules/sys_select: Likewise.
56575         * modules/sys_socket: Likewise.
56576         * modules/sys_stat: Likewise.
56577         * modules/sysexits: Likewise.
56578         * modules/localcharset: Same as above, but continue using temporary
56579         file named "t-$@" (why different?) rather than the "$@-t" used
56580         everywhere else.
56581
56582         * modules/sysexits (Makefile.am): Replace literal occurrences
56583         of "sysexit.h" more readable, and more consistent, "$@".
56584
56585 2006-09-06  Bruno Haible  <bruno@clisp.org>
56586
56587         * modules/striconv: New file.
56588         * modules/xstriconv: New file.
56589         * MODULES.html.sh (Internationalization functions): Add striconv,
56590         xstriconv.
56591
56592 2006-09-06  Bruno Haible  <bruno@clisp.org>
56593
56594         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
56595         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
56596         not using libtool correctly.
56597
56598 2006-09-06  Bruno Haible  <bruno@clisp.org>
56599
56600         * lib/striconv.h: New file.
56601         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
56602         iconvstring.c.
56603         * lib/xstriconv.h: New file.
56604         * lib/xstriconv.c: New file.
56605
56606 2006-09-06  Bruno Haible  <bruno@clisp.org>
56607
56608         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56609         lib_..._LDFLAGS.
56610
56611 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56612
56613         * lib/argz_.h: Sync from Libtool.
56614
56615         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
56616                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
56617
56618         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
56619
56620 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
56621
56622         * modules/trim: New file.
56623
56624 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
56625
56626         * lib/trim.h: New file.
56627         * lib/trim.c: New file.
56628
56629 2006-09-05  Bruno Haible  <bruno@clisp.org>
56630
56631         * MODULES.html.sh (String handling): Add trim.
56632
56633 2006-09-04  Karl Berry  <karl@gnu.org>
56634
56635         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
56636         until next release.
56637
56638 2006-09-03  Bruno Haible  <bruno@clisp.org>
56639
56640         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
56641         correctly.
56642
56643 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56644
56645         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
56646         not gl_GETLOADAVG.  Omit unneeded semicolons.
56647         Problems reported by Ralf Wildenhues in
56648         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
56649         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
56650         at the end, which is the usual gnulib style.
56651
56652         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
56653         of doing all the work ourselves.
56654         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
56655         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
56656
56657 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56658
56659         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
56660         Problem reported by Ralf Wildenhues in
56661         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
56662
56663         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
56664         HAVE_STRUCT_STATFS_F_FSTYPENAME.
56665
56666 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56667
56668         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
56669         yesterday's patch by changing test -n to test -z.
56670
56671 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56672
56673         * modules/getloadavg (Files): Add m4/getloadavg.m4.
56674         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
56675         the former is now obsolescent.
56676
56677         * modules/chdir-long (Depends-on): Add fcntl.
56678
56679 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56680
56681         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
56682         obsolescent, and programs should use gnulib instead.
56683         * m4/getloadavg.m4: New file, with contents taken from Autoconf
56684         but with prefixes changed.
56685
56686 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56687
56688         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
56689         or stdbool.h, because they might not exist while configuring.
56690
56691         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
56692         Don't include unistd.h or limits.h; not needed, since chdir-long.h
56693         does that for us.
56694         (O_DIRECTORY): Remove.
56695
56696 2006-08-31  Eric Blake  <ebb9@byu.net>
56697
56698         * gnulib-tool: Don't let emacs change spaces to TAB.
56699
56700 2006-08-31  Bruno Haible  <bruno@clisp.org>
56701
56702         * gnulib-tool: When calling func_import more than once, do it in a
56703         subshell.
56704         Reported by Eric Blake <ebb9@byu.net>.
56705
56706 2006-08-31  Bruno Haible  <bruno@clisp.org>
56707
56708         * gnulib-tool (nl): Remove variable.
56709         (sed_transform_lib_file): Use more robust test for config-h module.
56710         (func_import): Fix typo in 2006-08-25 patch.
56711
56712 2006-08-31  Bruno Haible  <bruno@clisp.org>
56713
56714         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
56715         specified, augment Makefile.am variables instead of assigning them.
56716
56717 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
56718
56719         Work around a bug in both the Linux and SunOS 64-bit kernels:
56720         nanosleep mishandles sleeps for longer than 2**31 seconds.
56721         Problem reported by Frank v Waveren in
56722         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
56723         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
56724         Check for nanosleep bug.
56725         (LIB_NANOSLEEP): Append clock_gettime library if needed.
56726
56727 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
56728
56729         Work around a bug in both the Linux and SunOS 64-bit kernels:
56730         nanosleep mishandles sleeps for longer than 2**31 seconds.
56731         Problem reported by Frank v Waveren in
56732         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
56733         * lib/nanosleep.c (BILLION): New constant.
56734         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
56735         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
56736         implementation.
56737
56738 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
56739
56740         * modules/nanosleep (Depends-on): Add gettime.
56741
56742 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
56743         and Simon Josefsson  <jas@extundo.com>
56744         and Oskar Liljeblad  <oskar@osk.mine.nu>
56745
56746         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
56747         * gnulib-tool (func_import): New license type 'unmodifiable license
56748         text'.
56749         * modules/fdl: Use it.  Longer description.
56750         * module/gpl, module/lgpl: New files.
56751
56752 2006-08-30  Jim Meyering  <jim@meyering.net>
56753
56754         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
56755         shadowing the parameter.
56756
56757 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56758
56759         Sync from Libtool:
56760
56761         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56762
56763         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
56764         sharing with gnulib.  Report by Eric Blake.
56765
56766 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
56767
56768         * modules/isapipe: New file.
56769         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
56770
56771 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
56772
56773         * modules/configmake (Makefile.am): Add a comment, and omit
56774         the CONFIGMAKE_ prefix from generated macro names.  Suggested
56775         by Bruno Haible.
56776
56777 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
56778
56779         * m4/isapipe.m4: New file.
56780
56781 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
56782
56783         * lib/isapipe.c, lib/isapipe.h: New files.
56784
56785 2006-08-29  Jim Meyering  <jim@meyering.net>
56786
56787         * modules/configmake (Makefile.am): Make configmake.h depend on
56788         Makefile.  Otherwise, a stale configmake.h could hang around.
56789
56790 2006-08-29  Eric Blake  <ebb9@byu.net>
56791
56792         * lib/error.c (error_at_line, print_errno_message): Match libc, after
56793         resolution of upstream bug 3044.
56794
56795 2006-08-29  Bruno Haible  <bruno@clisp.org>
56796
56797         * modules/localcharset (Depends-on): Add configmake.
56798         (Makefile.am): Remove setting of LIBDIR through DEFS.
56799
56800 2006-08-29  Bruno Haible  <bruno@clisp.org>
56801
56802         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
56803         defined.
56804
56805 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
56806
56807         * modules/fcntl: New file.
56808         * modules/chdir-safer (Depends-on): Add fcntl.
56809         * modules/fts: Likewise.
56810         * modules/mkdir-p: Likewise.
56811
56812         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
56813         This undoes the most recent change, since we're now addressing the
56814         problem in a different way.
56815
56816         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
56817         into output, since the output might be called Makefile.am even
56818         if $makefile_name is something different.
56819         (func_import): Use $makefile_am rather than
56820         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
56821         empty.
56822
56823         * modules/inttypes (Files): Add m4/inttypes-h.m4.
56824
56825 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
56826
56827         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
56828         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
56829         recent change to stdint.m4, since we're now addressing the problem in a
56830         different way.
56831
56832 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
56833
56834         * m4/fcntl_h.m4: New file.
56835
56836 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
56837
56838         * lib/fcntl_.h: New file.
56839         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
56840         the fcntl module.
56841         * lib/dirchownmod.c: Likewise.
56842         * lib/fts.c: Likewise.
56843
56844         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
56845         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
56846         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
56847         just before including <inttypes.h>, to avoid circular inclusion.
56848
56849 2006-08-28  Jim Meyering  <jim@meyering.net>
56850
56851         * doc/visibility.texi: Actually read and correct the grammar of the
56852         sentence affected by yesterday's change.
56853
56854 2006-08-28  Eric Blake  <ebb9@byu.net>
56855
56856         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
56857         needs wrapper.
56858
56859 2006-08-28  Eric Blake  <ebb9@byu.net>
56860
56861         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
56862
56863 2006-08-28  Eric Blake  <ebb9@byu.net>
56864
56865         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
56866
56867 2006-08-28  Bruno Haible  <bruno@clisp.org>
56868
56869         * modules/c-strstr: New file, from GNU gettext.
56870         * MODULES.html.sh (String handling): Add c-strstr.
56871
56872 2006-08-28  Bruno Haible  <bruno@clisp.org>
56873
56874         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
56875         macros.
56876         Reported by Eric Blake.
56877
56878 2006-08-28  Bruno Haible  <bruno@clisp.org>
56879
56880         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
56881         (VASNPRINTF): Return a string of length > INT_MAX without failing.
56882         * lib/vasprintf.c: Include errno.h, limits.h.
56883         (EOVERFLOW): New fallback definition.
56884         (vasprintf): Test here whether the string length is > INT_MAX.
56885         * lib/vsnprintf.c: Include errno.h, limits.h.
56886         (EOVERFLOW): New fallback definition.
56887         (vsnprintf): Fix bug when generated string was too long for the buffer.
56888         Test here whether the string length is > INT_MAX.
56889
56890 2006-08-28  Bruno Haible  <bruno@clisp.org>
56891
56892         * lib/inttypes_.h (SCNX*): Remove definitions.
56893         Reported by Eric Blake.
56894
56895 2006-08-28  Bruno Haible  <bruno@clisp.org>
56896
56897         * lib/c-strstr.h: New file, from GNU gettext.
56898         * lib/c-strstr.c: New file, from GNU gettext.
56899
56900 2006-08-28  Bruno Haible  <bruno@clisp.org>
56901
56902         * gnulib-tool: Reorder some statements.
56903
56904 2006-08-28  Bruno Haible  <bruno@clisp.org>
56905
56906         * gnulib-tool: New option --makefile-name.
56907         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
56908         $makefile_name.
56909         (func_import): Write $makefile_name to the cache file, and read it from
56910         there unless explicitly specified. Use $makefile_name as file name
56911         instead of Makefile.am. Adjust the recommendations accordingly.
56912
56913 2006-08-28  Bruno Haible  <bruno@clisp.org>
56914
56915         * gnulib-tool (func_verify_module): Check against misapplying patch.
56916
56917 2006-08-28  Bruno Haible  <bruno@clisp.org>
56918
56919         * gnulib-tool (func_relativize, func_relconcat): New functions.
56920         Give an error if --local-dir is given with --update.
56921         Remove trailing slashes from $local_gnulib_dir.
56922         (func_import): Store the relativized $local_gnulib_dir in
56923         gnulib-cache.m4, and read it from there if not specified explicitly.
56924
56925 2006-08-28  Bruno Haible  <bruno@clisp.org>
56926
56927         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
56928         is the current directory. Respect also $local_gnulib_dir.
56929
56930 2006-08-28  Bruno Haible  <bruno@clisp.org>
56931             Simon Josefsson  <jas@extundo.com>
56932
56933         BeOS portability.
56934         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
56935
56936 2006-08-27  Jim Meyering  <jim@meyering.net>
56937
56938         * doc/visibility.texi: Remove duplicate word: "pointer".
56939
56940 2006-08-26  Bruno Haible  <bruno@clisp.org>
56941
56942         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
56943         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
56944         (Makefile.am): Create inttypes.h from inttypes_.h.
56945         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
56946
56947         * modules/imaxabs: New file.
56948
56949         * modules/imaxdiv: New file.
56950
56951 2006-08-26  Bruno Haible  <bruno@clisp.org>
56952
56953         * m4/inttypes.m4: New file.
56954         * m4/_inttypes_h.m4: Remove file.
56955         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
56956         PRI_MACROS_BROKEN.
56957         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
56958
56959         * m4/imaxabs.m4: New file.
56960
56961         * m4/imaxdiv.m4: New file.
56962
56963 2006-08-26  Bruno Haible  <bruno@clisp.org>
56964
56965         * lib/inttypes_.h: New file.
56966         * lib/inttypes.h: Remove file.
56967         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
56968
56969         * lib/imaxabs.c: New file.
56970
56971         * lib/imaxdiv.c: New file.
56972
56973 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56974
56975         New config-h module, so that "make" output needn't be cluttered
56976         by -DHAVE_CONFIG_H.
56977         * MODULES.html.sh (Support for building libraries and executables):
56978         Add config-h.
56979         * modules/config-h: New file.
56980         * gnulib-tool (nl, sed_transform_lib_file): New vars.
56981         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
56982         the config-h module is used.
56983
56984         New configmake module, so that "make" output needn't be cluttered
56985         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
56986         * MODULES.html.sh (Support for building libraries and executables):
56987         Add configmake.
56988         * modules/configmake: New file.
56989
56990 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56991
56992         * m4/config-h.m4: New file.
56993
56994 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
56995
56996         * config/srclist.txt: Add elisp-comp.
56997
56998 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
56999
57000         * MODULES.html.sh (Support for building libraries and executables):
57001         Add elisp-comp.
57002         * build-aux/elisp-comp: New file.
57003         * modules/elisp-comp: New file.
57004
57005 2006-08-24  Bruno Haible  <bruno@clisp.org>
57006
57007         * gnulib-tool (func_create_testdir): Use non-default values of
57008         sourcebase and m4base.
57009
57010 2006-08-24  Bruno Haible  <bruno@clisp.org>
57011
57012         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
57013         HTML structure.
57014
57015 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57016
57017         * modules/openat (Depends-on): Add lchown.
57018
57019 2006-08-23  Bruno Haible  <bruno@clisp.org>
57020
57021         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
57022         of gl_LOCK_EARLY instead of gl_LOCK.
57023
57024 2006-08-23  Bruno Haible  <bruno@clisp.org>
57025
57026         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
57027         on OSF/1 to no.
57028         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
57029
57030 2006-08-23  Bruno Haible  <bruno@clisp.org>
57031
57032         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
57033         as unusable.
57034
57035         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
57036         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
57037         (gl_LOCK): New macro.
57038
57039 2006-08-22  Simon Josefsson  <jas@extundo.com>
57040
57041         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
57042         to md5 module.
57043
57044 2006-08-22  Simon Josefsson  <jas@extundo.com>
57045
57046         * MODULES.html.sh: Add "Support for maintaining and release
57047         projects".
57048
57049         * build-aux/gnupload: New file, from coreutils.
57050
57051 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
57052
57053         Avoid the need for AC_LIBSOURCES in m4 macros.
57054         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
57055         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
57056         * modules/check-version (EXTRA_DIST): Add check-version.h.
57057         * modules/crc (EXTRA_DIST): Add crc.h.
57058         * modules/des (EXTRA_DIST): Add des.h.
57059         * modules/gc (EXTRA_DIST): Add gc.h.
57060         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
57061         * modules/getline (EXTRA_DIST): Add getline.h.
57062         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
57063         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
57064         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
57065         * modules/md2 (EXTRA_DIST): Add md2.h.
57066         * modules/md4 (EXTRA_DIST): Add md4.h.
57067         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
57068         * modules/read-file (EXTRA_DIST): Add read-file.h.
57069         * modules/readline (EXTRA_DIST): Add readline.h.
57070         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
57071         rijndael-api-fst.h.
57072
57073 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
57074
57075         * m4/rijndael.m4 (gl_ARCFOUR):
57076         * m4/arctwo.m4 (gl_ARCTWO):
57077         * m4/check-version.m4 (gl_CHECK_VERSION):
57078         * m4/crc.m4 (gl_CRC):
57079         * m4/des.m4 (gl_DES):
57080         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
57081         * m4/gc.m4 (gl_GC):
57082         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
57083         * m4/getline.m4 (gl_FUNC_GETLINE):
57084         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
57085         * m4/hmac-md5.m4 (gl_HMAC_MD5):
57086         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
57087         * m4/md2.m4 (gl_MD2):
57088         * m4/md4.m4 (gl_MD4):
57089         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
57090         * m4/read-file.m4 (gl_FUNC_READ_FILE):
57091         * m4/readline.m4 (gl_FUNC_READLINE):
57092         * m4/rijndael.m4 (gl_RIJNDAEL):
57093         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
57094         to get the necessary .h files and whatnot.
57095
57096 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
57097
57098         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
57099         gnulib rather than the other way around.
57100         * config/srclistvars.sh (COREUTILS): Remove.
57101
57102 2006-08-22  Jim Meyering  <jim@meyering.net>
57103
57104         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
57105
57106         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
57107
57108 2006-08-22  Eric Blake  <ebb9@byu.net>
57109
57110         * modules/regexprops-generic: New file.
57111         * MODULES.html.sh (Support for building documentation): List it.
57112
57113 2006-08-22  Eric Blake  <ebb9@byu.net>
57114
57115         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
57116         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
57117         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
57118         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
57119
57120 2006-08-22  Bruno Haible  <bruno@clisp.org>
57121
57122         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
57123         and lib_LTLIBRARIES like the other lib_* variables.
57124
57125 2006-08-22  Bruno Haible  <bruno@clisp.org>
57126
57127         * build-aux/x-to-1.in: New file, from GNU gettext.
57128
57129 2006-08-22  Bruno Haible  <bruno@clisp.org>
57130
57131         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
57132         <utmpx.h> exists.
57133
57134 2006-08-22  Bruno Haible  <bruno@clisp.org>
57135
57136         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
57137         <utmpx.h> exists.
57138
57139 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
57140
57141         BeOS portability.
57142         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
57143         exist.
57144         Problem reported by Bruno Haible.
57145
57146 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
57147
57148         Avoid the need for AC_LIBSOURCES in m4 macros.
57149         * modules/acl (EXTRA_DIST): Add acl.h.
57150         * modules/argmatch (Files): Add m4/argmatch.m4.
57151         (configure.ac): Add gl_ARGMATCH.
57152         (EXTRA_DIST): Renamed from lib_SOURCES, for
57153         consistency with the other modules.  Remove argmatch.c.
57154         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
57155         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
57156         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
57157         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
57158         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
57159         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
57160         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
57161         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
57162         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
57163         * modules/closeout (EXTRA_DIST): Add closeout.h.
57164         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
57165         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
57166         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
57167         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
57168         dirname.h; remove basename.c and stripslash.c.
57169         * modules/exclude (EXTRA_DIST): Add exclude.h.
57170         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
57171         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
57172         * modules/file-type (EXTRA_DIST): Add file-type.h.
57173         * modules/filemode (EXTRA_DIST): Add filemode.h.
57174         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
57175         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
57176         * modules/fpending (EXTRA_DIST): Add __fpending.h.
57177         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
57178         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
57179         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
57180         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
57181         * modules/getdate (EXTRA_DIST): Add getdate.c.
57182         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
57183         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
57184         * modules/getpass (EXTRA_DIST): Add getpass.h.
57185         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
57186         * modules/group-member (EXTRA_DIST): Add group-member.h.
57187         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
57188         * modules/hash (EXTRA_DIST): Add hash.h.
57189         * modules/human (EXTRA_DIST): Add human.h.
57190         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
57191         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
57192         * modules/lchown (EXTRA_DIST): Add lchown.h.
57193         * modules/long-options (EXTRA_DIST): Add long-options.h.
57194         * modules/lstat (EXTRA_DIST): Add lstat.h.
57195         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
57196         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
57197         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
57198         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
57199         * modules/memxor (EXTRA_DIST): Add memxor.h.
57200         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
57201         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
57202         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
57203         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
57204         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
57205         * modules/physmem (EXTRA_DIST): Add physmem.h.
57206         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
57207         * modules/posixver (EXTRA_DIST): Add posixver.h.
57208         * modules/quote (EXTRA_DIST): Add quote.h.
57209         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
57210         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
57211         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
57212         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
57213         regex_internal.h regexec.c.
57214         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
57215         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
57216         * modules/same (EXTRA_DIST): Add same.h.
57217         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
57218         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
57219         * modules/savedir (EXTRA_DIST): Add savedir.h.
57220         * modules/sha1 (EXTRA_DIST): Add sha1.h.
57221         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
57222         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
57223         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
57224         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
57225         * modules/strdup (EXTRA_DIST): Add strdup.h.
57226         * modules/strftime (EXTRA_DIST): Add strftime.h.
57227         * modules/strndup (EXTRA_DIST): Add strndup.h.
57228         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
57229         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
57230         * modules/time_r (EXTRA_DIST): Add time_r.h.
57231         * modules/timespec (EXTRA_DIST): Add timespec.h.
57232         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
57233         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
57234         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
57235         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
57236         * modules/userspec (EXTRA_DIST): Add userspec.h.
57237         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
57238         * modules/utimens (EXTRA_DIST): Add utimens.h.
57239         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
57240         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
57241         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
57242         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
57243         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
57244         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
57245         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
57246         * modules/yesno (EXTRA_DIST): Add yesno.h.
57247
57248 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
57249
57250         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
57251
57252         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
57253         * m4/dev-ino.m4, same-inode.m4: Remove.
57254
57255         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
57256         * m4/acl.m4 (AC_FUNC_ACL):
57257         * m4/backupfile.m4 (gl_BACKUPFILE):
57258         * m4/c-strtod.m4 (gl_C99_STRTOLD):
57259         * m4/canon-host.m4 (gl_CANON_HOST):
57260         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
57261         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
57262         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
57263         * m4/cloexec.m4 (gl_CLOEXEC):
57264         * m4/close-stream.m4 (gl_CLOSE_STREAM):
57265         * m4/closeout.m4 (gl_CLOSEOUT):
57266         * m4/dirfd.m4 (gl_FUNC_DIRFD):
57267         * m4/dirname.m4 (gl_DIRNAME):
57268         * m4/exclude.m4 (gl_EXCLUDE):
57269         * m4/exitfail.m4 (gl_EXITFAIL):
57270         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
57271         * m4/file-type.m4 (gl_FILE_TYPE):
57272         * m4/filemode.m4 (gl_FILEMODE):
57273         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
57274         * m4/fpending.m4 (gl_FUNC_FPENDING):
57275         * m4/fprintftime.m4 (gl_FPRINTFTIME):
57276         * m4/fts.m4 (gl_FUNC_FTS):
57277         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
57278         * m4/getdate.m4 (gl_GETDATE):
57279         * m4/gethrxtime.m4 (gl_GETHRXTIME):
57280         * m4/getpagesize.m4 (gl_GETPAGESIZE):
57281         * m4/getpass.m4 (gl_FUNC_GETPASS):
57282         * m4/gettime.m4 (gl_GETTIME):
57283         * m4/getugroups.m4 (gl_GETUGROUPS):
57284         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
57285         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
57286         * m4/hard-locale.m4 (gl_HARD_LOCALE):
57287         * m4/hash.m4 (gl_HASH):
57288         * m4/idcache.m4 (gl_IDCACHE):
57289         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
57290         * m4/lchown.m4 (gl_FUNC_LCHOWN):
57291         * m4/long-options.m4 (gl_LONG_OPTIONS):
57292         * m4/lstat.m4 (gl_FUNC_LSTAT):
57293         * m4/md5.m4 (gl_MD5):
57294         * m4/memcasecmp.m4 (gl_MEMCASECMP):
57295         * m4/memcoll.m4 (gl_MEMCOLL):
57296         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
57297         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
57298         * m4/memxor.m4 (gl_MEMXOR):
57299         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
57300         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
57301         * m4/modechange.m4 (gl_MODECHANGE):
57302         * m4/mountlist.m4 (gl_MOUNTLIST):
57303         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57304         * m4/openat.m4 (gl_FUNC_OPENAT):
57305         * m4/pathmax.m4 (gl_PATHMAX):
57306         * m4/physmem.m4 (gl_PHYSMEM):
57307         * m4/posixtm.m4 (gl_POSIXTM):
57308         * m4/posixver.m4 (gl_POSIXVER):
57309         * m4/quote.m4 (gl_QUOTE):
57310         * m4/quotearg.m4 (gl_QUOTEARG):
57311         * m4/readtokens.m4 (gl_READTOKENS):
57312         * m4/readutmp.m4 (gl_READUTMP):
57313         * m4/regex.m4 (gl_REGEX):
57314         * m4/safe-read.m4 (gl_SAFE_READ):
57315         * m4/safe-write.m4 (gl_SAFE_WRITE):
57316         * m4/same.m4 (gl_SAME):
57317         * m4/save-cwd.m4 (gl_SAVE_CWD):
57318         * m4/savedir.m4 (gl_SAVEDIR):
57319         * m4/settime.m4 (gl_SETTIME):
57320         * m4/sha1.m4 (gl_SHA1):
57321         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
57322         * m4/stat-macros.m4 (gl_STAT_MACROS):
57323         * m4/stat-time.m4 (gl_STAT_TIME):
57324         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
57325         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
57326         * m4/strdup.m4 (gl_FUNC_STRDUP):
57327         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
57328         * m4/strndup.m4 (gl_FUNC_STRNDUP):
57329         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
57330         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
57331         * m4/time_r.m4 (gl_TIME_R):
57332         * m4/timespec.m4 (gl_TIMESPEC):
57333         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
57334         * m4/unlinkdir.m4 (gl_UNLINKDIR):
57335         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
57336         * m4/userspec.m4 (gl_USERSPEC):
57337         * m4/utimecmp.m4 (gl_UTIMECMP):
57338         * m4/utimens.m4 (gl_UTIMENS):
57339         * m4/xalloc.m4 (gl_XALLOC):
57340         * m4/xgetcwd.m4 (gl_XGETCWD):
57341         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
57342         * m4/xreadlink.m4 (gl_XREADLINK):
57343         * m4/xstrtod.m4 (gl_XSTRTOD):
57344         * m4/yesno.m4 (gl_YESNO):
57345         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
57346         to get the necessary .h files and whatnot.
57347
57348 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
57349             Bruno Haible  <bruno@clisp.org>
57350
57351         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
57352         /bin/sh understanding of '!' conditional negation.
57353
57354 2006-08-21  Jim Meyering  <jim@meyering.net>
57355
57356         * modules/openat (Depends-on): Really alphabetize.
57357
57358         * modules/acl (Depends-on): Add error and quote.
57359
57360         * check-module (find_included_lib_files): Add at-func.c to the
57361         ok-to-include-more-than-once white list.
57362
57363         * modules/openat (Depends-on): Add lstat.  Alphabetize.
57364
57365 2006-08-21  Bruno Haible  <bruno@clisp.org>
57366
57367         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57368         Emit a pkgdata_DATA variable only if some snippets add contents to it.
57369         Reported by Martin Lambers <marlam@marlam.de>.
57370
57371 2006-08-21  Bruno Haible  <bruno@clisp.org>
57372
57373         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
57374         specify an installation location, don't emit a noinst_LIBRARIES or
57375         noinst_LTLIBRARIES assignment.
57376
57377 2006-08-21  Bruno Haible  <bruno@clisp.org>
57378
57379         BeOS portability.
57380         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
57381         BeOS has mbrtowc() but no <wctype.h>.
57382
57383 2006-08-21  Bruno Haible  <bruno@clisp.org>
57384
57385         BeOS portability.
57386         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
57387         exist.
57388
57389 2006-08-21  Bruno Haible  <bruno@clisp.org>
57390
57391         BeOS portability.
57392         * lib/mbchar.h: Include <wctype.h> only if it exists.
57393
57394 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57395
57396         Remove files that are no longer needed by their respective modules.
57397         * m4/obstack.m4: Remove.
57398         * m4/strerror_r.m4: Remove.
57399         * m4/uint32_t.m4: Remove.
57400         * m4/uintptr_t.m4: Remove.
57401         * m4/ullong_max.m4: Remove.
57402         * m4/xstrtoimax.m4: Remove.
57403         * m4/xstrtoumax.m4: Remove.
57404
57405         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
57406         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
57407         dependencies now capture this.
57408
57409         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
57410         Do not use AC_LIBSOURCES, since gnulib modules now do this.
57411         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
57412         * m4/human.m4 (gl_HUMAN): Likewise.
57413         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
57414         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
57415
57416         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
57417
57418         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
57419         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
57420         stdint.
57421         * m4/human.m4 (gl_HUMAN): Likewise.
57422         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
57423         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
57424         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
57425         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
57426         * m4/xstrtol (gl_XSTRTOL): Likewise.
57427
57428         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
57429         AC_TYPE_LONG_LONG_INT.
57430         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
57431         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
57432         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
57433         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
57434
57435         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
57436         on stdbool.
57437
57438         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
57439         (gl_PREREQ_XSTRTOUL): Remove.
57440
57441         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
57442
57443         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
57444         mode.
57445
57446 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57447
57448         Add and change modules to make it easier for coreutils to use
57449         gnulib-tool.
57450         * modules/backupfile (Files): Remove m4/d-ino.m4.
57451         (Depends-on): Add d-ino.
57452         * modules/cycle-check (Depends-on): Add stdint.
57453         (lib_SOURCES): Add cycle-check.h.
57454         * modules/d-ino: New module.
57455         * modules/d-type: New module.
57456         * modules/error (Files): Remove m4/strerror_r.m4.
57457         * modules/filemode (Files): Add m4/st_dm_mode.m4.
57458         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
57459         m4/inttypes_h.m4, m4/uintmax_t.m4.
57460         (Depends-on): Add stdint.
57461         (lib_SOURCES): Add fsusage.h.
57462         * modules/getcwd (Files): Remove d-ino.m4.
57463         (Depends-on): Add d-ino.
57464         * modules/getndelim2 (Depends-on): Add stdint.
57465         * modules/glob (Files): Remove m4/d-type.m4.
57466         (Depends-on): Add d-type.
57467         * modules/host-os: New module.
57468         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
57469         m4/inttypes_h.m4, m4/uintmax_t.m4.
57470         * Depends-on: Add stdint.
57471         (lib_SOURCES): Add human.h.
57472         * modules/inttostr (Files): Remove m4/intmax_t.m4,
57473         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
57474         m4/uintmax_t.m4, m4/ulonglong.m4.
57475         (Depends-on): Add stdint.
57476         (EXTRA_DIST): Add inttostr.h.
57477         * modules/lchmod: New module.
57478         * modules/link-follow: New module.
57479         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
57480         (Depends-on): Add lchmod.
57481         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
57482         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
57483         (Depends-on): Add stdint.
57484         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
57485         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
57486         (Depends-on): Add stdint.
57487         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
57488         * modules/perl: New module.
57489         * modules/regex (Depends-on): Add stdint.
57490         * modules/rmdir-errno: New module.
57491         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
57492         m4/intmax_t.m4.
57493         (Depends-on): Add stdint.
57494         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
57495         m4/uintmax_t.m4.
57496         (Depends-on): Add stdint.
57497         * modules/unlink-busy: New module.
57498         * modules/utimecmp (Depends-on): Add stdint.
57499         * modules/uptime: New module.
57500         * modules/winsz-ioctl: New module.
57501         * modules/winsz-termios: New module.
57502         * modules/xnanosleep (Depends-on): Add nanosleep.
57503         * modules/ullong_max: Remove.
57504         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
57505         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
57506         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
57507         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
57508         (Depends-on): Add inttypes.
57509         (lib_SOURCES): Add xstrtol.h.
57510         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
57511         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
57512         * MODULES.html.sh: Move 'assert' into the assert section.
57513         Move 'dummy' into the linking section.
57514         Remove ullong_max.
57515         Add section for compatibility checks for POSIX:2001 functions,
57516         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
57517         winsz-ioctl, and winsz-termios into it.
57518         Add lchmod.
57519         Add top-level Misc section and put host-os, perl, and uptime
57520         into it.
57521
57522 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57523
57524         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
57525         now assume the stdint module.  Do not include inttypes.h.
57526         * lib/fsusage.h: Likewise.
57527         * lib/getndelim2.c: Likewise.
57528         * lib/human.h: Likewise.
57529         * lib/inttostr.h: Likewise.
57530         * lib/obstack.c: Likewise.
57531         * lib/regex_internal.h: Likewise.
57532         * lib/tempname.c: Likewise.
57533         * lib/utimecmp.c: Likewise.
57534         * lib/xstrtol.h: Likewise.
57535
57536         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
57537
57538         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
57539         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
57540         * lib/xtime.h: Likewise.
57541
57542 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57543
57544         * modules/openat (Files): Add lib/fchmodat.c.
57545         Fixes problem reported by Jay Youngman.
57546
57547 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57548
57549         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
57550         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
57551
57552 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
57553             Bruno Haible  <bruno@clisp.org>
57554
57555         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
57556         and is a script that invokes bison. Tighten the code. Add comments.
57557
57558 2006-08-18  Jim Meyering  <jim@meyering.net>
57559
57560         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
57561         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
57562         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
57563         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
57564
57565 2006-08-18  Bruno Haible  <bruno@clisp.org>
57566
57567         * modules/bison-i18n: New file.
57568         * MODULES.html.sh (Internationalization functions): Add it.
57569
57570 2006-08-18  Bruno Haible  <bruno@clisp.org>
57571
57572         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
57573         sys/statvfs.h. When getmntinfo was found, check its declaration and
57574         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
57575
57576 2006-08-18  Bruno Haible  <bruno@clisp.org>
57577
57578         * m4/bison-i18n.m4: New file, from bison.
57579
57580 2006-08-18  Bruno Haible  <bruno@clisp.org>
57581
57582         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
57583         (ME_DUMMY): Treat "kernfs" as a dummy.
57584         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
57585
57586 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57587
57588         Update from coreutils.
57589
57590         2006-08-15  Jim Meyering  <jim@meyering.net>
57591
57592         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
57593
57594         2006-01-17  Jim Meyering  <jim@meyering.net>
57595
57596         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
57597
57598         2006-01-11  Jim Meyering  <jim@meyering.net>
57599
57600         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
57601         Check for the lchmod function.
57602
57603 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57604
57605         Update from coreutils.
57606
57607         * lib/__fpending.h: Add copyright notice.
57608         * lib/fprintftime.h: Likewise.
57609         * lib/savedir.c: Use (C) in copyright notice.
57610         * lib/savedir.h: Likewise.
57611
57612         2006-08-15  Jim Meyering  <jim@meyering.net>
57613
57614         * lib/at-func.c: New file, with the logic of all emulated at-functions.
57615         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
57616         in support of the EXPECTED_ERRNO macro.
57617         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
57618         definitions.  Instead, define the appropriate symbols and include
57619         "at-func.c".
57620         * lib/mkdirat.c (mkdirat): Likewise.
57621         * lib/fchmodat.c (fchmodat): Likewise.
57622         (ENOSYS): Remove definition.
57623         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
57624         it.  Don't include "unistd--.h" -- it wasn't ever used.
57625
57626         2006-01-17  Jim Meyering  <jim@meyering.net>
57627
57628         Rewrite fts.c not to change the current working directory,
57629         by using openat, fstatat, fdopendir, etc..
57630
57631         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
57632         (HAVE_OPENAT_SUPPORT): Define.
57633         [_LIBC] (fchdir): Don't undef or define; no longer used.
57634         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
57635         Now, this `function' always succeeds, and consumes its file descriptor
57636         parameter -- so callers must not close such FDs.  Update callers.
57637         (diropen_fd, opendirat, cwd_advance_fd): New functions.
57638         (diropen): Add parameter, SP.  Adjust all callers.
57639         Implement using diropen_fd, rather than open.
57640         (fts_open): Initialize new member, fts_cwd_fd.
57641         Remove fts_rft-setting code.
57642         (fts_close): Close fts_cwd_fd, if necessary.
57643         (__opendir2): Define in terms of opendir or opendirat,
57644         depending on whether the FST_NOCHDIR flag is set.
57645         (fts_build): Since fts_safe_changedir consumes its FD, and since
57646         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
57647         and close the dup'd file descriptor upon failure.
57648         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
57649         (fts_safe_changedir): Tweak semantics to reflect that this function
57650         now calls cwd_advance_fd and hence consumes its FD argument.
57651         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
57652         [struct FTS] (fts_rft): Remove now-unused member.
57653         [struct FTS] (fts_cycle.state): Improve comment.
57654
57655         * lib/openat.c (openat_needs_fchdir): New function.
57656         * lib/openat.h (openat_needs_fchdir): Declare it.
57657
57658 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
57659
57660         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
57661         Problem and fix reported by Pádraig Brady in
57662         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
57663
57664 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57665
57666         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
57667
57668 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57669
57670         * lib/memcoll.c (memcoll): Optimize for the common case where the
57671         arguments are bytewise equal.
57672
57673 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57674
57675         * doc/regexprops-generic.texi: Add a copyright notice.
57676
57677 2006-08-15  Bruno Haible  <bruno@clisp.org>
57678
57679         * modules/tmpdir (License): Change to LGPL.
57680
57681 2006-08-15  Bruno Haible  <bruno@clisp.org>
57682
57683         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
57684         module.
57685
57686 2006-08-14  Simon Josefsson  <jas@extundo.com>
57687
57688         * config/srclist.txt: Add gnupload.
57689
57690 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57691
57692         Change copyright notice from LGPL 2 to GPL 2, since that's the
57693         standard form used in the gnulib repository.
57694         * tests/test-lock.c: Likewise.
57695         * tests/test-stdint.c: Likewise.
57696         * tests/test-tls.c: Likewise.
57697
57698         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
57699         prelude-manager.  User shorter URLs for GNU projects, without '?'.
57700         Add copyright notice.
57701
57702         * check-module: Add copyright notice.  Output a copyright
57703         notice if "--version" is specified.
57704         * modules/COPYING: New file.
57705         * tests/test-getaddrinfo.c: Add copyright notice.
57706         * tests/test-verify.c: Likewise.
57707
57708 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57709
57710         Change copyright notice from LGPL 2 to GPL 2, since that's the
57711         standard form used in the gnulib repository.
57712         * lib/lock.c: LGPL -> GPL.
57713         * lib/lock.h: Likewise.
57714         * lib/strnlen1.c: Likewise.
57715         * lib/strnlen1.h: Likewise.
57716         * lib/tls.c: Likewise.
57717         * lib/tls.h: Likewise.
57718         * lib/tmpdir.c: Likewise.
57719
57720         * lib/TODO: Remove; this belongs only in coreutils.
57721
57722 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57723
57724         Add copyright notices to long-enough files that lack them, since
57725         otherwise the files aren't clearly free.  Use the same notice that
57726         getdate.texi already uses.
57727         * doc/alloca-opt.texi: Add copyright notice.
57728         * doc/alloca.texi: Likewise.
57729         * doc/ctime.texi: Likewise.
57730         * doc/functions.texi: Likewise.
57731         * doc/gcd.texi: Likewise.
57732         * doc/gnulib-tool.texi: Likewise.
57733         * doc/inet_ntoa.texi: Likewise.
57734         * doc/visibility.texi: Likewise.
57735
57736         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
57737         * doc/quote.texi: Add copyright notice.
57738
57739         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
57740         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
57741         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
57742         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
57743         is now obsolete, and give a pointer to the Sun list.
57744         Add copyright notice.
57745
57746 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57747
57748         * config/srclistvars.sh: Add copyright notice.
57749
57750 2006-08-14  Eric Blake  <ebb9@byu.net>
57751
57752         Import the following change from libc:
57753
57754         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
57755
57756         Upstream bug 2997.
57757         * lib/misc/error.c: Add space between program name and message if file
57758         name is missing.
57759
57760 2006-08-12  Karl Berry  <karl@gnu.org>
57761
57762         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
57763         remove, these originate in gnulib now.
57764
57765 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57766
57767         * doc/Makefile (standards.info standards.html standards.dvi):
57768         Also depend on make-stds.texi.
57769
57770 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
57771
57772         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
57773         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
57774
57775         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
57776         in wchar_t.  Problem reported by Eric Blake.
57777
57778         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
57779         LEN is smaller than SIZE.  Suggested by Bruno Haible.
57780         Also, help the compiler to keep LEN in a register.
57781
57782 2006-08-11  Eric Blake  <ebb9@byu.net>
57783
57784         * users.txt: Sort.  Add tar.
57785
57786 2006-08-11  Bruno Haible  <bruno@clisp.org>
57787
57788         * users.txt: New file.
57789
57790 2006-08-11  Bruno Haible  <bruno@clisp.org>
57791
57792         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
57793         before <wchar.h>. Needed for OSF/1 and BSD/OS.
57794
57795 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57796
57797         * modules/snprintf (Depends-on): Remove minmax.
57798         (Maintainer): Add self and Bruno.
57799
57800 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57801
57802         * lib/.cppi-disable: Add snprintf.h, socket_.h.
57803         * lib/snprintf.c: Include <errno.h> and <limits.h>.
57804         (EOVERFLOW): Define if the system does not.
57805         Do not include "minmax.h"; it wasn't used.
57806         (snprintf): Don't assume size_t promotes to an unsigned type.
57807         Fix bug when generated string was too long for the buffer: the
57808         buffer's contents are supposed to be the initial prefix of the
57809         output.  Don't assume vasnprintf returns EOVERFLOW if the size
57810         exceeds INT_MAX; do the check ourselves.
57811
57812         Import the following changes from libc:
57813
57814         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
57815
57816         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
57817         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
57818         set wc to the byte which couldn't be converted.
57819         (re_string_reconstruct): Don't clear valid_raw_len before calling
57820         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
57821         tip_context using re_string_context_at.
57822
57823         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
57824
57825         * lib/posix/regex.h: g++ still cannot handled [restrict].
57826
57827         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
57828
57829         * lib/posix/regex.h: Remove special handling for VMS.
57830
57831 2006-08-10  Jim Meyering  <jim@meyering.net>
57832
57833         * modules/same-inode: New module.
57834         * modules/dev-ino: New module.
57835         * modules/cycle-check: Depend on these modules, rather than simply
57836         including their .h files.
57837         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
57838         required via m4/cycle-check.m4.
57839         * modules/same: Depend on new same-inode module, rather than
57840         including same-inode.h.
57841         * modules/chdir-safer: New file.
57842
57843         * modules/chown (Depends-on): Add stat-macros.
57844
57845 2006-08-10  Jim Meyering  <jim@meyering.net>
57846
57847         * m4/cycle-check.m4: New file.
57848         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
57849         * m4/dev-ino.m4, m4/same-inode.m4: New files.
57850
57851 2006-08-10  Eric Blake  <ebb9@byu.net>
57852
57853         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
57854         in from original proposal.
57855
57856 2006-08-10  Eric Blake  <ebb9@byu.net>
57857         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
57858
57859         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
57860         namespace.
57861
57862 2006-08-10  Bruno Haible  <bruno@clisp.org>
57863
57864         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
57865         as well.
57866
57867 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
57868
57869         Sync from coreutils.
57870
57871         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
57872
57873         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
57874         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
57875
57876 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
57877
57878         * modules/restrict: Remove; no longer needed now that we assume
57879         Autoconf 2.59 or later.
57880         * MODULES.html.sh: Remove 'restrict'.
57881         * modules/argp (Depends-on): Remove 'restrict'.
57882         * modules/base64 (Depends-on): Likewise.
57883         * modules/gc (Depends-on): Likewise.
57884         * modules/getaddrinfo (Depends-on): Likewise.
57885         * modules/glob (Depends-on): Likewise.
57886         * modules/inet_ntop (Depends-on): Likewise.
57887         * modules/inet_pton (Depends-on): Likewise.
57888         * modules/memxor (Depends-on): Likewise.
57889         * modules/regex (Depends-on): Likewise.
57890         * modules/strtok_r (Depends-on): Likewise.
57891         * modules/time_r (Depends-on): Likewise.
57892
57893 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
57894
57895         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
57896         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
57897         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57898         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
57899         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
57900         * m4/memxor.m4 (gl_MEMXOR): Likewise.
57901         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
57902         gl_C_RESTRICT replaced by AC_C_RESTRICT.
57903
57904         Merge from coreutils.
57905         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
57906         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
57907         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
57908         * m4/time_r.m4 (gl_TIME_R): Likewise.
57909
57910 2006-08-09  Karl Berry  <karl@gnu.org>
57911
57912         * config/srclist.txt: no more gettext-tools, per Bruno.
57913
57914 2006-08-08  Eric Blake  <ebb9@byu.net>
57915
57916         * modules/verror: New module.
57917         * MODULES.html.sh: Document it.
57918
57919 2006-08-08  Eric Blake  <ebb9@byu.net>
57920
57921         * lib/verror.h, lib/verror.c: New files.
57922
57923 2006-08-08  Eric Blake  <ebb9@byu.net>
57924
57925         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
57926         verror_at_line output complies with GNU Coding Standards even when
57927         file is NULL.
57928
57929 2006-08-07  Bruno Haible  <bruno@clisp.org>
57930
57931         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
57932         versions of AIX.
57933         Reported by Ralf Wildenhues.
57934
57935 2006-08-07  Bruno Haible  <bruno@clisp.org>
57936
57937         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
57938         in an AC_DEFUN. Needed so that the autoconf snippets can use
57939         AC_REQUIRE.
57940
57941 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57942
57943         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57944         Initialize pkgdata_DATA.
57945         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
57946         overriding it.
57947
57948 2006-08-06  Eric Blake  <ebb9@byu.net>
57949
57950         * lib/error.h: Fold in some upstream changes from glibc.
57951         * lib/error.c: Likewise.
57952
57953 2006-08-04  Bruno Haible  <bruno@clisp.org>
57954
57955         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57956         Make the mostlyclean-local rule depend on mostlyclean-generic.
57957         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
57958
57959 2006-07-31  Bruno Haible  <bruno@clisp.org>
57960
57961         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
57962         <stdlib.h>, <string.h>.
57963
57964 2006-07-30  Bruno Haible  <bruno@clisp.org>
57965
57966         * modules/readlink (License): Change to LGPL.
57967
57968 2006-07-30  Bruno Haible  <bruno@clisp.org>
57969
57970         * modules/javaversion (Makefile.am): Distribute javaversion.java and
57971         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
57972         set PKGDATADIR to point to it.
57973
57974 2006-07-30  Bruno Haible  <bruno@clisp.org>
57975
57976         * modules/csharpexec (configure.ac): Comment out macro invocation.
57977         * modules/javaexec (configure.ac): Likewise.
57978         * modules/javacomp-script (configure.ac): Likewise.
57979
57980         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
57981
57982 2006-07-30  Bruno Haible  <bruno@clisp.org>
57983
57984         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
57985         linked-list.
57986
57987 2006-07-30  Bruno Haible  <bruno@clisp.org>
57988
57989         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
57990
57991 2006-07-30  Bruno Haible  <bruno@clisp.org>
57992
57993         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57994         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
57995         get removed.
57996
57997 2006-07-29  Bruno Haible  <bruno@clisp.org>
57998
57999         Make it possible for gnulib-tool to work with locally modified or
58000         augmented gnulib repositories.
58001         * gnulib-tool (func_usage): Document --local-dir option.
58002         (local_gnulib_dir): New variable.
58003         Handle --local-dir option.
58004         (func_lookup_file): New function.
58005         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
58006         (func_get_description, func_get_filelist, func_get_description,
58007         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
58008         func_get_automake_snippet, func_get_include_directive,
58009         func_get_license, func_get_maintainer): Use func_lookup_file.
58010         (func_import, func_create_testdir): Use func_lookup_file.
58011
58012 2006-07-29  Bruno Haible  <bruno@clisp.org>
58013
58014         * modules/setenv (Depends-on): Add unistd.
58015
58016 2006-07-29  Bruno Haible  <bruno@clisp.org>
58017
58018         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
58019
58020 2006-07-29  Bruno Haible  <bruno@clisp.org>
58021
58022         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
58023
58024 2006-07-29  Bruno Haible  <bruno@clisp.org>
58025
58026         * gnulib-tool (import, update): If there is no Makefile.am, look at
58027         aclocal.m4, instead of bailing out.
58028
58029 2006-07-29  Bruno Haible  <bruno@clisp.org>
58030
58031         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
58032         Categorize the options by when they are useful.
58033
58034 2006-07-29  Bruno Haible  <bruno@clisp.org>
58035
58036         * gnulib-tool (func_usage): Document option --no-libtool.
58037         Handle option --no-libtool.
58038         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
58039         for changed semantics of $libtool variable.
58040         (func_import): Likewise. If libtool is not used, show this through
58041         an option --no-libtool.
58042         (func_create_testdir): Update.
58043
58044 2006-07-29  Bruno Haible  <bruno@clisp.org>
58045
58046         * gnulib-tool (func_import): Extend error message about missing
58047         --doc-base.
58048
58049 2006-07-29  Bruno Haible  <bruno@clisp.org>
58050
58051         * gnulib-tool (func_import): Don't create the $docbase directory if
58052         there is no file to store there.
58053
58054 2006-07-29  Bruno Haible  <bruno@clisp.org>
58055
58056         * gnulib-tool (autoconf_minversion): If a --dir option is given and
58057         relevant, look for configure.ac there, not in the current directory.
58058         Also use a simple search for AC_PREREQ, not "autoconf --trace".
58059
58060 2006-07-29  Bruno Haible  <bruno@clisp.org>
58061
58062         * gnulib-tool (SORT): New variable.
58063         (func_usage): Undocument --assume-autoconf option.
58064         Remove --assume-autoconf option handling.
58065         (autoconf_minversion): Determine from the contents of configure.ac.
58066         (func_import): Remove autoconf_minversion handling.
58067         Suggested by Eric Blake.
58068
58069 2006-07-29  Bruno Haible  <bruno@clisp.org>
58070
58071         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
58072
58073 2006-07-29  Bruno Haible  <bruno@clisp.org>
58074
58075         * config/srclist.txt (*setenv.[ch]): Remove rules.
58076
58077 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58078
58079         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
58080
58081 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58082
58083         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
58084         arpa/inet.h.
58085
58086 2006-07-28  Simon Josefsson  <jas@extundo.com>
58087
58088         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
58089         * modules/inet_pton (Depends-on): Likewise.
58090
58091 2006-07-28  Simon Josefsson  <jas@extundo.com>
58092
58093         * m4/netinet_in_h.m4: New file.
58094
58095 2006-07-28  Simon Josefsson  <jas@extundo.com>
58096
58097         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
58098         #include's.
58099
58100 2006-07-28  Simon Josefsson  <jas@extundo.com>
58101
58102         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
58103         #include's.
58104
58105 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
58106
58107         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
58108         setgid on directories only if they set these bits.
58109         * lib/modechange.h: Remove obsolete comment about masks.
58110
58111 2006-07-28  Eric Blake  <ebb9@byu.net>
58112
58113         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
58114         macro expansion.
58115
58116 2006-07-28  Bruno Haible  <bruno@clisp.org>
58117
58118         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
58119
58120 2006-07-28  Bruno Haible  <bruno@clisp.org>
58121
58122         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
58123
58124 2006-07-28  Bruno Haible  <bruno@clisp.org>
58125
58126         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
58127         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
58128         Define fallbacks.
58129         Avoids link error on FreeBSD 4.x.
58130         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58131
58132         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
58133         encoding.
58134         * lib/mbswidth.c (iswcntrl): Likewise.
58135
58136 2006-07-27  Bruno Haible  <bruno@clisp.org>
58137
58138         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
58139         test.
58140
58141 2006-07-27  Bruno Haible  <bruno@clisp.org>
58142
58143         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
58144         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
58145         defined.
58146
58147 2006-07-26  Eric Blake  <ebb9@byu.net>
58148
58149         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
58150
58151 2006-07-26  Eric Blake  <ebb9@byu.net>
58152
58153         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
58154         like mingw that lack mkstemp.
58155         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
58156         avoid compilation warning on mingw.
58157
58158 2006-07-26  Bruno Haible  <bruno@clisp.org>
58159
58160         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
58161         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
58162         INT_FAST*_MIN, INTPTR_MIN.
58163
58164 2006-07-25  Bruno Haible  <bruno@clisp.org>
58165
58166         * modules/version-etc (Depends-on): Add stdarg.
58167
58168 2006-07-25  Bruno Haible  <bruno@clisp.org>
58169
58170         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
58171         complex commands.
58172
58173 2006-07-25  Bruno Haible  <bruno@clisp.org>
58174
58175         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
58176         defined in <stdarg.h> or config.h.
58177
58178 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
58179
58180         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
58181         (gl_STDIO_SAFER): Remove.
58182
58183 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
58184
58185         * MODULES.html.sh (File stream based Input/Output):
58186         Add fopen-safer, tmpfile-safer; remove stdio-safer.
58187         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
58188         * modules/fopen-safer, modules/tmpfile-safer: New files.
58189         * modules/stdio-safer: Remove.
58190
58191 2006-07-24  Bruno Haible  <bruno@clisp.org>
58192
58193         * modules/tmpdir: New file.
58194         * MODULES.html.sh (File system functions): Add it.
58195
58196 2006-07-24  Bruno Haible  <bruno@clisp.org>
58197
58198         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
58199         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
58200
58201 2006-07-24  Bruno Haible  <bruno@clisp.org>
58202
58203         * modules/clean-temp: New file.
58204
58205 2006-07-24  Bruno Haible  <bruno@clisp.org>
58206
58207         * m4/tmpdir.m4: New file, from GNU gettext.
58208
58209 2006-07-24  Bruno Haible  <bruno@clisp.org>
58210
58211         * lib/tmpdir.h: New file, from GNU gettext.
58212         * lib/tmpdir.c: New file, from GNU gettext.
58213
58214 2006-07-24  Bruno Haible  <bruno@clisp.org>
58215
58216         * lib/clean-temp.h: New file, from GNU gettext.
58217         * lib/clean-temp.c: New file, from GNU gettext.
58218
58219 2006-07-23  Eric Blake  <ebb9@byu.net>
58220
58221         * modules/stdio-safer (Files): Add tmpfile-safer.c.
58222         (Depends-on): Add binary-io.
58223
58224 2006-07-23  Eric Blake  <ebb9@byu.net>
58225
58226         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
58227
58228 2006-07-23  Eric Blake  <ebb9@byu.net>
58229
58230         * lib/tmpfile-safer.c: New file.
58231         * lib/stdio-safer.h (fopen_safer): Add prototype.
58232         * lib/stdio--.h (tmpfile): Make safer.
58233
58234 2006-07-23  Bruno Haible  <bruno@clisp.org>
58235
58236         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
58237         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
58238         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
58239         gl_linked_remove_at): Use it.
58240
58241 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58242         and Simon Josefsson <jas@extundo.com>
58243
58244         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
58245
58246         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
58247
58248 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58249
58250         * modules/close-stream: New file.
58251         * modules/closeout (Description): Make it clear that it exits
58252         with a diagnostic on error.
58253         (Depends-on): Add close-stream.  Remove fpending, stdbool.
58254         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
58255
58256 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58257
58258         * m4/close-stream.m4: New file.
58259
58260 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58261
58262         * lib/close-stream.c, lib/close-stream.h: New files.
58263
58264 2006-07-22  Bruno Haible  <bruno@clisp.org>
58265
58266         Merge from GNU gettext 0.15.
58267
58268         2006-05-01  Bruno Haible  <bruno@clisp.org>
58269
58270                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
58271
58272         2006-07-22  Bruno Haible  <bruno@clisp.org>
58273
58274                 * modules/javaversion: New file.
58275                 * MODULES.html.sh (Java): Add javaversion.
58276
58277         2006-03-12  Bruno Haible  <bruno@clisp.org>
58278
58279                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
58280
58281         2005-12-04  Bruno Haible  <bruno@clisp.org>
58282
58283                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
58284                 (untested).
58285
58286         2006-06-21  Bruno Haible  <bruno@clisp.org>
58287
58288                 Avoid warnings from recent versions of mcs.
58289                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
58290                 -o, -L, -r any more. Use options documented since mcs-1.0
58291                 instead. Similarly for -g.
58292
58293         2005-12-04  Bruno Haible  <bruno@clisp.org>
58294
58295                 * build-aux/csharpcomp.sh.in: Suffix for resources is
58296                 .resources, not .resource.
58297
58298         2005-07-09  Bruno Haible  <bruno@clisp.org>
58299
58300                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
58301                 add a .dll suffix.
58302                 Reported by Mark Junker <mjscod@gmx.de>.
58303
58304         2006-07-22  Bruno Haible  <bruno@clisp.org>
58305
58306                 * modules/gettext: Upgrade to gettext-0.15.
58307                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
58308                 m4/visibility.m4.
58309                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
58310
58311 2006-07-22  Bruno Haible  <bruno@clisp.org>
58312
58313         Merge from GNU gettext 0.15.
58314
58315         2006-03-25  Bruno Haible  <bruno@clisp.org>
58316
58317                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
58318
58319         2006-07-21  Bruno Haible  <bruno@clisp.org>
58320
58321                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
58322                 "1.1".
58323
58324         2006-05-09  Bruno Haible  <bruno@clisp.org>
58325
58326                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
58327                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
58328                 for the conftestver execution.
58329
58330         2006-05-01  Bruno Haible  <bruno@clisp.org>
58331
58332                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
58333                 optional target-version argument. Verify that the compiler
58334                 groks source of the specified source-version, or add -source
58335                 option as necessary. Verify that the compiler produces
58336                 bytecode in the specified target-version, or add -target and
58337                 -source options as necessary. Make the result of the test
58338                 available as variable CONF_JAVAC. Also log error output in
58339                 config.log.
58340
58341         2006-03-11  Bruno Haible  <bruno@clisp.org>
58342
58343                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
58344
58345         2006-05-09  Bruno Haible  <bruno@clisp.org>
58346
58347                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
58348                 CLASSPATH_SEPARATOR to a semicolon.
58349
58350         2006-03-12  Bruno Haible  <bruno@clisp.org>
58351
58352                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
58353                 available as variable CONF_JAVA, for subsequent autoconf
58354                 tests. Also log error output in config.log.
58355
58356         2006-07-19  Bruno Haible  <bruno@clisp.org>
58357
58358                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
58359                 that getline works on glibc2 systems. Needed to avoid trouble
58360                 in relocatable.c.
58361                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
58362
58363         2005-12-04  Bruno Haible  <bruno@clisp.org>
58364
58365                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
58366                 launcher (untested).
58367
58368         2005-12-04  Bruno Haible  <bruno@clisp.org>
58369
58370                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
58371
58372         2006-07-22  Bruno Haible  <bruno@clisp.org>
58373
58374                 * gettext.m4: Update from GNU gettext-0.15.
58375                 * nls.m4: Likewise.
58376                 * po.m4: Likewise.
58377                 * inttypes-pri.m4: Likewise.
58378                 * inttypes-h.m4: Renamed from inttypes.m4.
58379                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
58380
58381 2006-07-22  Bruno Haible  <bruno@clisp.org>
58382
58383         Merge from GNU gettext 0.15.
58384
58385         2005-07-05  Bruno Haible  <bruno@clisp.org>
58386
58387                 * printf-args.c (printf_fetchargs): Work around broken
58388                 definition of wint_t on mingw.
58389
58390         2005-02-12  Bruno Haible  <bruno@clisp.org>
58391
58392                 * xallocsa.h: Add extern "C" for C++.
58393
58394         2006-05-17  Bruno Haible  <bruno@clisp.org>
58395
58396                 Cygwin portability.
58397                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
58398
58399         2006-04-30  Bruno Haible  <bruno@clisp.org>
58400
58401                 * progreloc.c: Include <mach-o/dyld.h> if available.
58402                 (find_executable): Use _NSGetExecutablePath when possible.
58403
58404         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58405
58406                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
58407                 function.
58408
58409         2005-12-29  Bruno Haible  <bruno@clisp.org>
58410
58411                 * progreloc.c (set_program_name_and_installdir): Fix
58412                 compilation error.
58413
58414         2005-12-04  Bruno Haible  <bruno@clisp.org>
58415
58416                 Cygwin portability.
58417                 * progreloc.c: Include <windows.h> also on Cygwin.
58418                 (find_executable): Add support for Cygwin.
58419                 (set_program_name_and_installdir): Handle also platforms with
58420                 nonempty EXEEXT.
58421
58422         2006-07-11  Bruno Haible  <bruno@clisp.org>
58423
58424                 * javacomp.c: Fix a comment.
58425                 Reported by Jim Meyering.
58426
58427         2006-04-30  Bruno Haible  <bruno@clisp.org>
58428
58429                 * javacomp.h (compile_java_class): Add source_version,
58430                 target_version arguments.
58431                 * javacomp.c: Rewritten to choose only a compiler that
58432                 respects the specified source_version and target_version.
58433
58434         2006-06-27  Bruno Haible  <bruno@clisp.org>
58435
58436                 Assume correct S_ISDIR macro.
58437                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
58438
58439         2006-07-22  Bruno Haible  <bruno@clisp.org>
58440
58441                 * javaversion.h: New file, from GNU gettext.
58442                 * javaversion.c: New file, from GNU gettext.
58443                 * javaversion.java: New file, from GNU gettext.
58444                 * javaversion.class: New file, from GNU gettext.
58445
58446         2006-05-17  Bruno Haible  <bruno@clisp.org>
58447
58448                 Cygwin portability.
58449                 * javaexec.c (execute_java_class): Test for jview program
58450                 also on Cygwin.
58451
58452         2006-04-09  Bruno Haible  <bruno@clisp.org>
58453
58454                 * fatal-signal.c: Don't include string.h.
58455                 (at_fatal_signal): Use a copying loop instead of memcpy.
58456
58457         2005-12-04  Bruno Haible  <bruno@clisp.org>
58458
58459                 * csharpexec.c: Add support for 'clix' launcher (untested).
58460                 (execute_csharp_using_sscli): New function.
58461                 (execute_csharp_program): Call it.
58462
58463         2006-06-21  Bruno Haible  <bruno@clisp.org>
58464
58465                 Avoid warnings from recent versions of mcs.
58466                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
58467                 -o, -L, -r any more. Use options documented since mcs-1.0
58468                 instead. Similarly for -g.
58469
58470         2005-07-09  Bruno Haible  <bruno@clisp.org>
58471
58472                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
58473                 add a .dll suffix.
58474                 Reported by Mark Junker <mjscod@gmx.de>.
58475
58476         2006-06-17  Bruno Haible  <bruno@clisp.org>
58477
58478                 * config.charset: Update for NetBSD 3.0.
58479
58480         2006-05-17  Bruno Haible  <bruno@clisp.org>
58481
58482                 Cygwin portability.
58483                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
58484
58485         2006-05-16  Bruno Haible  <bruno@clisp.org>
58486
58487                 * localcharset.c [CYGWIN]: Include <windows.h>.
58488                 (get_charset_aliases): For Cygwin, return the same CPxxx
58489                 aliases list as under WIN32.
58490                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
58491                 the environment variables. Fall back to GetACP().
58492
58493         2006-04-05  Bruno Haible  <bruno@clisp.org>
58494
58495                 * config.charset: Update Juan Manuel Guerrero's address.
58496
58497         2005-02-12  Bruno Haible  <bruno@clisp.org>
58498
58499                 * allocsa.h: Add extern "C" for C++.
58500
58501         2005-02-10  Bruno Haible  <bruno@clisp.org>
58502
58503                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
58504                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
58505
58506         2006-07-22  Bruno Haible  <bruno@clisp.org>
58507
58508                 * gettext.h: Update to GNU gettext-0.15.
58509
58510 2006-07-22  Bruno Haible  <bruno@clisp.org>
58511
58512         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
58513         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
58514         lib-prefix.m4, longdouble.m4, ssize_t.m4.
58515
58516 2006-07-21  Eric Blake  <ebb9@byu.net>
58517
58518         * modules/stdlib-safer: New file.
58519         * MODULES.html.sh (File stream based Input/Output): Add
58520         stdlib-safer.
58521
58522 2006-07-21  Eric Blake  <ebb9@byu.net>
58523
58524         * lib/stdlib-safer.h: New file from coreutils, required by
58525         stdlib--.h.
58526
58527 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
58528
58529         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
58530
58531 2006-07-20  Bruno Haible  <bruno@clisp.org>
58532
58533         * gnulib-tool: Recognize new option --assume-autoconf.
58534         (autoconf_minversion): New variable.
58535         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
58536
58537 2006-07-20  Bruno Haible  <bruno@clisp.org>
58538
58539         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
58540
58541 2006-07-19  Derek R. Price  <derek@ximbiot.com>
58542
58543         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
58544         Reindent and repaginate.
58545
58546 2006-07-19  Derek Price  <derek@ximbiot.com>
58547
58548         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
58549         Correct grammar.
58550
58551 2006-07-17  Bruno Haible  <bruno@clisp.org>
58552
58553         * modules/list: New file.
58554         * modules/array-list: New file.
58555         * modules/carray-list, modules/carray-list-tests: New files.
58556         * modules/linked-list, modules/linked-list-tests: New files.
58557         * modules/avltree-list, modules/avltree-list-tests: New files.
58558         * modules/rbtree-list, modules/rbtree-list-tests: New files.
58559         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
58560         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
58561         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
58562         * modules/oset: New file.
58563         * modules/array-oset: New file.
58564         * modules/avltree-oset, modules/avltree-oset-tests: New files.
58565         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
58566         * tests/test-carray_list.c: New file.
58567         * tests/test-linked_list.c: New file.
58568         * tests/test-avltree_list.c: New file.
58569         * tests/test-rbtree_list.c: New file.
58570         * tests/test-linkedhash_list.c: New file.
58571         * tests/test-avltreehash_list.c: New file.
58572         * tests/test-rbtreehash_list.c: New file.
58573         * tests/test-avltree_oset.c: New file.
58574         * tests/test-rbtree_oset.c: New file.
58575         * MODULES.html.sh (Container data structures): New section.
58576
58577 2006-07-17  Bruno Haible  <bruno@clisp.org>
58578
58579         * m4/gl_list.m4: New file.
58580
58581 2006-07-17  Bruno Haible  <bruno@clisp.org>
58582
58583         * lib/gl_list.h: New file.
58584         * lib/gl_list.c: New file.
58585         * lib/gl_array_list.h: New file.
58586         * lib/gl_array_list.c: New file.
58587         * lib/gl_carray_list.h: New file.
58588         * lib/gl_carray_list.c: New file.
58589         * lib/gl_linked_list.h: New file.
58590         * lib/gl_linked_list.c: New file.
58591         * lib/gl_anylinked_list1.h: New file.
58592         * lib/gl_anylinked_list2.h: New file.
58593         * lib/gl_avltree_list.h: New file.
58594         * lib/gl_avltree_list.c: New file.
58595         * lib/gl_anyavltree_list1.h: New file.
58596         * lib/gl_anyavltree_list2.h: New file.
58597         * lib/gl_rbtree_list.h: New file.
58598         * lib/gl_rbtree_list.c: New file.
58599         * lib/gl_anyrbtree_list1.h: New file.
58600         * lib/gl_anyrbtree_list2.h: New file.
58601         * lib/gl_anytree_list1.h: New file.
58602         * lib/gl_anytree_list2.h: New file.
58603         * lib/gl_linkedhash_list.h: New file.
58604         * lib/gl_linkedhash_list.c: New file.
58605         * lib/gl_anyhash_list1.h: New file.
58606         * lib/gl_anyhash_list2.h: New file.
58607         * lib/gl_avltreehash_list.h: New file.
58608         * lib/gl_avltreehash_list.c: New file.
58609         * lib/gl_rbtreehash_list.h: New file.
58610         * lib/gl_rbtreehash_list.c: New file.
58611         * lib/gl_anytreehash_list1.h: New file.
58612         * lib/gl_anytreehash_list2.h: New file.
58613
58614         * lib/gl_oset.h: New file.
58615         * lib/gl_oset.c: New file.
58616         * lib/gl_array_oset.h: New file.
58617         * lib/gl_array_oset.c: New file.
58618         * lib/gl_avltree_oset.h: New file.
58619         * lib/gl_avltree_oset.c: New file.
58620         * lib/gl_rbtree_oset.h: New file.
58621         * lib/gl_rbtree_oset.c: New file.
58622         * lib/gl_anytree_oset.h: New file.
58623
58624 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
58625
58626         * m4/mkancesdirs.m4: New file.
58627         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
58628         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
58629         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
58630         it.
58631
58632 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
58633
58634         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
58635         * lib/mkancesdirs.h: New files.
58636         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
58637         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
58638         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
58639         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
58640         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
58641         callers changed.  Revamp internals significantly, by not
58642         attempting to create directories that are temporarily more
58643         permissive than the final results.  Do not attempt to use
58644         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
58645         This removes some race conditions, fixes some bugs, and simplifies
58646         things.  Use new dirchownmod function to do owner and mode changes.
58647         * lib/mkdir-p.h: Likewise.
58648         * lib/modechange.c (octal_to_mode): New function.
58649         (struct mode_change): New member mentioned.
58650         (make_node_op_equals): New arg mentioned.  All callers changed.
58651         (mode_compile): Keep track of which mode bits the user has explicitly
58652         mentioned.
58653         (mode_adjust): New arg DIR, so that we implement the X op correctly.
58654         New arg PMODE_BITS, to keep track of which mode bits the user
58655         mentioned; it treats S_ISUID and S_ISGID speciall.
58656         All callers changed.
58657         * lib/modechange.h: Likewise.
58658
58659 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
58660
58661         * MODULES.html.sh: Add mkancestors.
58662         * modules/mkancesdirs: New module.
58663         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
58664         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
58665         The chdir-safer and afs files are now orphans; I'll remove them
58666         unless someone speaks up.
58667         Add lib/dirchownmod.c, lib/dirchownmod.h.
58668         (Depends-on): Remove alloca, chown, save-cwd, dirname.
58669         Add lchown, mkancesdirs.
58670         (Maintainer): Add self.
58671
58672 2006-07-15  Karl Berry  <karl@gnu.org>
58673
58674         * gnulib-tool: help message wording/arrangement.
58675
58676 2006-07-14  Simon Josefsson  <jas@extundo.com>
58677
58678         * doc/gnulib.texi (Libtool and Windows): New section.
58679
58680 2006-07-12  Simon Josefsson  <jas@extundo.com>
58681
58682         * modules/gendocs (License): Fix license, approved by Karl.
58683
58684 2006-07-12  Eric Blake  <ebb9@byu.net>
58685
58686         * MODULES.html.sh: Add gendocs.
58687
58688 2006-07-11  Eric Blake  <ebb9@byu.net>
58689
58690         * modules/fdl: New module, to install doc/fdl.texi.
58691         * MODULES.html.sh: Add new section for documentation modules.
58692         * gnulib-tool: Avoid space-tab.
58693         (--doc-base): New option, to manage files from doc.
58694
58695 2006-07-11  Eric Blake  <ebb9@byu.net>
58696
58697         * m4/absolute-header.m4: Fix comments to match recent change.
58698
58699 2006-07-11  Eric Blake  <ebb9@byu.net>
58700
58701         * gnulib-tool: List --doc-base before --tests-base.
58702
58703 2006-07-11  Derek R. Price  <derek@ximbiot.com>
58704
58705         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
58706
58707 2006-07-11  Bruno Haible  <bruno@clisp.org>
58708
58709         * README: Mention where to put documentation.
58710
58711 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58712
58713         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
58714
58715 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
58716
58717         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
58718         to stdint.m4.
58719
58720 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
58721
58722         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
58723         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
58724         "no/such/file/stdint.h" when there is no such file, so that
58725         the resulting C code can be parsed by dodgy compilers.
58726         Problems reported by Bob Proulx.
58727
58728 2006-07-10  Derek R. Price  <derek@ximbiot.com>
58729
58730         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
58731         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
58732         macros into the GNU _D_EXACT_NAMLEN.
58733         * lib/savedir.c:  Likewise.
58734         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
58735
58736 2006-07-10  Derek R. Price  <derek@ximbiot.com>
58737         and Paul Eggert  <eggert@cs.ucla.edu>
58738
58739         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
58740         * m4/savedir.m4:
58741         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
58742         macros into the GNU _D_EXACT_NAMLEN.
58743
58744 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58745
58746         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
58747         around the absolute name, to work around a problem with the HP-UX
58748         11.23 native C compiler, reported by Bob Proulx.
58749
58750 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58751
58752         * doc/maintain.texi, make-stds.texi: Sync from
58753         <http://savannah.gnu.org/projects/gnustandards>.
58754
58755 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58756
58757         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
58758
58759 2006-07-09  Jim Meyering  <jim@meyering.net>
58760
58761         * m4/glob.m4: Remove a doubled word in a comment.
58762
58763 2006-07-09  Jim Meyering  <jim@meyering.net>
58764
58765         * lib/argp-pv.c: Remove a doubled word in a comment.
58766         * lib/check-version.c (check_version): Likewise.
58767         * lib/javacomp.c (compile_java_class): Likewise.
58768
58769 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
58770
58771         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
58772         for the benefit of people using Autoconf 2.60.  If you want to
58773         support older Autoconf versions you can copy m4/onceonly_2_57.m4
58774         (or m4/onceonly.m4, if pre-2.57) manually.
58775
58776 2006-07-08  Jim Meyering  <jim@meyering.net>
58777
58778         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
58779         comment.
58780         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
58781         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
58782         comment.
58783
58784 2006-07-08  Jim Meyering  <jim@meyering.net>
58785
58786         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
58787
58788 2006-07-07  Simon Josefsson  <jas@extundo.com>
58789
58790         * tests/test-crc.c: Change expected crc value, the test vector
58791         were probably computed using the old broken crc.c?
58792
58793 2006-07-06  Simon Josefsson  <jas@extundo.com>
58794
58795         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
58796         now the canonical place for the M4 file).
58797
58798         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
58799         from the sys_socket dependency now.
58800
58801         * modules/inet_pton (Files): Ditto.
58802
58803         * modules/inet_ntop (Files): Ditto.
58804
58805 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
58806
58807         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
58808         not gl_PREREQ_GETUSERSHELL.
58809
58810 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58811
58812         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
58813         with only one argument, for Autoconf 2.60.
58814         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
58815         expand to nothing, so add a shell command to avoid syntax error.
58816         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
58817
58818 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58819
58820         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
58821
58822 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58823
58824         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
58825         no longer needed.  Check for isblank decl.
58826         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
58827         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
58828         of existence.
58829
58830 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58831
58832         * lib/getloadavg.c: Use __VMS, not VMS.
58833         * lib/getopt.c: Likewise.
58834         * lib/getpagesize.h: Likewise.
58835         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
58836         and probably does not work.
58837
58838 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58839
58840         * lib/.cppi-disable: Add wcwidth.
58841         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
58842         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
58843         (ISGRAPH): Remove.  All uses changed to isgraph.
58844         (FOLD) [!defined _LIBC]: Remove special case.
58845         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
58846         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
58847         HAVE_ISBLANK.
58848         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
58849         case.
58850
58851 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
58852
58853         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
58854         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
58855         brackets.  Other minor changes to suppress some compiler
58856         warnings.
58857
58858 2006-07-06  Derek R. Price  <derek@ximbiot.com>
58859         and Paul Eggert  <eggert@cs.ucla.edu>
58860
58861         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
58862         of invoking obsolescent AC_HEADER_DIRENT macro.
58863         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
58864         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
58865         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
58866         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
58867         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
58868         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58869         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
58870         * m4/readdir.m4: Remove; no longer needed.
58871
58872 2006-07-06  Derek R. Price  <derek@ximbiot.com>
58873         and Paul Eggert  <eggert@cs.ucla.edu>
58874
58875         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
58876         Don't worry about this obsolete case any more.
58877         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
58878         directories.
58879         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
58880         worry about this obsolete case any more.
58881         * lib/fts.c: Likewise.
58882         * lib/getcwd.c: Likewise.
58883         * lib/glob.h: Likewise.
58884         * lib/savedir.c: Likewise.
58885
58886 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
58887
58888         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
58889         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
58890         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
58891         needed.
58892         All uses removed.
58893         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
58894         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
58895         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
58896         needed.
58897         * m4/getdate.m4 (gl_GETDATE): Likewise.
58898         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
58899         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
58900         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
58901         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
58902         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
58903         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58904         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
58905         needed.
58906
58907 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
58908
58909         * lib/memcasecmp.c: Include <limits.h>.
58910         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
58911         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
58912         Don't assume isdigit succeeds only on '0' through '9'.
58913
58914 2006-07-05  Eric Blake  <ebb9@byu.net>
58915
58916         * modules/getaddrinfo (Depends-on): Add snprintf.
58917
58918 2006-07-05  Eric Blake  <ebb9@byu.net>
58919
58920         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
58921         to avoid 'header present but could not be compiled' on cygwin.
58922
58923 2006-07-05  Eric Blake  <ebb9@byu.net>
58924
58925         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
58926         missing from netdb.h.
58927         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
58928
58929 2006-07-05  Derek R. Price  <derek@ximbiot.com>
58930
58931         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
58932         no longer needed.
58933         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
58934         * m4/getdate.m4 (gl_GETDATE): Likewise.
58935         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
58936         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
58937         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
58938         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
58939         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58940
58941 2006-07-05  Derek R. Price  <derek@ximbiot.com>
58942
58943         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
58944         All uses of is_space replaced by isspace.
58945         * lib/exit.h: Don't talk about STDC_HEADERS.
58946         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
58947         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
58948         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
58949         replaced by isprint etc.
58950         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
58951         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
58952         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
58953         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
58954         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
58955         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
58956
58957 2006-07-05  Bruno Haible  <bruno@clisp.org>
58958
58959         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
58960         the function exists, before testing against AIX.
58961         Reported by Martin Lambers <marlam@marlam.de>.
58962
58963 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
58964
58965         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
58966         From Mark D. Baushke.
58967
58968 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
58969
58970         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
58971         to the absolute name, not just one, to bypass Sun C 5.8's
58972         "warning: #include of /usr/include/... may be non-portable".
58973
58974 2006-07-04  Eric Blake  <ebb9@byu.net>
58975
58976         * modules/dirname-tests: New test module.
58977         * tests/test-dirname.c: New file, replacing dirname.c
58978         TEST_DIRNAME section that was recently deleted.
58979
58980 2006-07-04  Bruno Haible  <bruno@clisp.org>
58981
58982         Assume ANSI C header files and <ctype.h> functions.
58983         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
58984         (mbsnwidth): Use isprint, iscntrl instead.
58985
58986 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58987
58988         Merge from coreutils.
58989         * MODULES.html.sh: Add xstrtold.
58990         * modules/xstrtold: New file.
58991         * modules/cycle-check (Files): Add lib/same-inode.h.
58992         * modules/dirname (Files): Add m4/double-slash-root.m4.
58993         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
58994         * modules/mkdir-p (Files): Add lib/same-inode.h.
58995         * modules/same (Files): Add lib/same-inode.h.
58996
58997 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58998
58999         * m4/absolute-header.m4: Renamed from full-header-path.m4.
59000         This is to keep the terminology clean; POSIX talks about
59001         "absolute pathnames", not "full pathnames", but the GNU
59002         Coding Standards say to use "path" for something else;
59003         so use "absolute" to keep both sides happy.
59004         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
59005         Set gl_absolute_header, not gl_full_header_path.
59006         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
59007         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
59008         All uses changed.
59009
59010         Merge from coreutils.
59011
59012         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
59013
59014         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
59015         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
59016         want to require the building of c-strtod.o.
59017         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
59018         needs -lm directly.
59019         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
59020
59021         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
59022
59023         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
59024         --as-needed option if available.  Problem reported by Albert Chin in
59025         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
59026         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
59027         cc merely issues a bunch of annoying warnings for --as-needed
59028         (this problem was reported by Bob Proulx).  Also, try linking with
59029         -lm to detect a bug in binutils 2.16 (this problem was reported
59030         by Ralf Wildenhues).
59031
59032         2006-06-18  Jim Meyering  <jim@meyering.net>
59033
59034         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
59035         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
59036         macro.
59037         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
59038         also check for glibc-2.4's abort-inducing bug.
59039
59040         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
59041         Low-probability clean-up should be to use rmdir to get rid of
59042         the just-created directory, not unlink.
59043
59044         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
59045         configure fail, and request a bug report to inform us about it.
59046         Add a comment that, barring reports to the contrary, in 2007 we'll
59047         assume ftruncate is universally available.
59048
59049         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
59050
59051         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
59052
59053         2006-03-12  Jim Meyering  <jim@meyering.net>
59054
59055         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
59056         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
59057         * m4/same.m4 (gl_SAME): Likewise.
59058         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
59059
59060         2006-03-11  Eric Blake  <ebb9@byu.net>
59061
59062         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
59063         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
59064         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
59065         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
59066
59067 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59068
59069         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
59070         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
59071         reported by Mark D. Baushke, one in
59072         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
59073
59074         Merge from coreutils.
59075
59076         * lib/.cppi-disable: Add stdint_.h.
59077         * lib/.cvsignore: Add stdint.h.
59078
59079         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
59080
59081         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
59082         both double and long double versions.
59083         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
59084         * lib/xstrtold.c: New file.
59085         * lib/xstrtod.h (xstrtold): New decl.
59086
59087         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
59088
59089         * lib/filemode.c (setst): Remove.
59090         (strmode): Rewrite to avoid setst.  This makes the code shorter,
59091         (arguably) clearer, and the generated code is a bit smaller on my
59092         Debian GNU/Linux stable x86 host.
59093
59094         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
59095
59096         * lib/filemode.c: Include "filemode.h" first, to test the interface.
59097         Assume that filemode.h includes sys/types.h and sys/stat.h.
59098         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
59099         (ftypelet): Reorder to put common cases first, for efficiency.
59100         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
59101         to do 'M'.
59102         (strmode): Renamed from mode_string, and now stores 12 bytes instead
59103         of 10, for compatibility with FreeBSD.  All callers changed.
59104         (filemodestring): Now stores 12 bytes instead of 10, and sets file
59105         types that can't be deduced solely from st_mode.  First arg is now a
59106         const pointer.
59107         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
59108         (strmode): Renamed from mode_string.
59109         (filemodestring): New decl.
59110         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
59111         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
59112         needed.
59113         (S_ISPORT, S_ISWHT): New macros, if not already defined.
59114
59115         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
59116
59117         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
59118         fsusage.h now does that.  Include fsusage.h first, to test interface.
59119         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
59120         at most one method (the old code could have generated decls that
59121         didn't conform to C89, not that this was ever exercised).
59122         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
59123
59124         2006-03-19  Jim Meyering  <jim@meyering.net>
59125
59126         Work even in a chroot where d_ino values for entries in "/"
59127         don't match the stat.st_ino values for the same names.
59128         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
59129         number, iterate through all entries again, using lstat instead.
59130         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
59131         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
59132
59133         * lib/getcwd.c (__getcwd): Clarify a comment.
59134         Use memcpy in place of a call to strcpy.
59135
59136         2006-03-12  Jim Meyering  <jim@meyering.net>
59137
59138         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
59139         matches that of the current directory (which we're about to chdir ".."
59140         out of), then save the dev-ino of the parent, instead.
59141
59142         * lib/same-inode.h (SAME_INODE): New file/macro.
59143         * lib/chdir-safer.c (SAME_INODE): Remove definition.
59144         Include "same-inode.h", instead.
59145         * lib/same.c: Likewise.
59146         * lib/cycle-check.h: Include "same-inode.h".
59147         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
59148         * lib/cycle-check.c (SAME_INODE): Remove definition.
59149         * lib/root-dev-ino.h: Include "same-inode.h".
59150
59151         2006-03-11  Eric Blake  <ebb9@byu.net>
59152
59153         * lib/same.c (same_name): s/base_name/last_component/
59154         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
59155         * lib/filenamecat.c (file_name_concat): Likewise.
59156
59157         2006-03-11  Eric Blake  <ebb9@byu.net>,
59158                     Paul Eggert  <eggert@cs.ucla.edu>
59159
59160         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
59161         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
59162         drive prefix.
59163         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
59164         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
59165         (last_component): New method.
59166         * lib/dirname.c (dir_len): Determine when drive letters need a
59167         subsequent slash.  Preserve // when it is special.
59168         (dir_name): Don't append dot when drive letter is absolute.
59169         [TEST_DIRNAME]: Move into a full-blown gnulib test.
59170         * lib/basename.c (base_name): New semantics - malloc the result.
59171         Preserve // when it is special.  Preserve relative files that look
59172         like drive letters.
59173         (base_len): Preserve // when it is special.
59174         (last_component): New method, similar to old base_name semantics.
59175         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
59176         base_name.  Strip redundant slashes from ///.
59177
59178 2006-07-03  Jim Meyering  <jim@meyering.net>
59179
59180         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
59181         macro is used before the first cycle_check call.
59182
59183 2006-07-03  Eric Blake  <ebb9@byu.net>
59184
59185         * modules/dirname (Depends-on): Add xstrndup.
59186
59187 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59188
59189         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
59190         test cases, so that config.log is a bit easier to follow.
59191
59192 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59193
59194         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
59195         both are 64 bits, since this seems to be the tradition, and this
59196         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
59197         we ever run into a host that prefers long long to long in this
59198         case, we'll need another configure-time test.  Problem reported by
59199         Jim Meyering.
59200
59201 2006-07-02  Eric Blake  <ebb9@byu.net>
59202
59203         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
59204
59205 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59206
59207         * modules/inttypes (Depends-on): No longer depends on stdint.
59208         * modules/stdint (Description): Say more about assumptions.
59209         Say that the fast types might differ.  Say macros are used.
59210         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
59211         (Makefile.am): Revise list of substituted symbols to match
59212         new stdint.m4.
59213         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
59214         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
59215         * tests/test-stdint.c (verify_same_types)
59216         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
59217         the code conforms to C99/C89.
59218         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
59219         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
59220
59221 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59222
59223         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
59224         but fix a bug, by requiring at least 64 bits.
59225         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
59226         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
59227         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
59228         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
59229
59230         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
59231         changes.  Make 2.59 a prerequisite.  Check and substitute for
59232         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
59233         inttypes.h.  Do not use special include files; just use the
59234         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
59235         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
59236         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
59237         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
59238         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
59239         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
59240         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
59241         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
59242         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
59243         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
59244         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
59245         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
59246         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
59247         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
59248         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
59249         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
59250         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
59251         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
59252         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
59253         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
59254         WINT_MAX.  Check for C99 conformance more strictly, by detecting
59255         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
59256         not check for things that C99 does not require, e.g., int8_t.  If
59257         a test isn't needed unless <stdint.h> isn't working, and is
59258         unlikely to be needed for any other reason, then don't do it
59259         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
59260         size_t, since we assume C89 freestanding at least.  Do not check
59261         for sig_atomic_t, wchar_t, or wint_t, since the code now does
59262         the right thing even if the types are not defined.  Instead use:
59263         (gl_STDINT_TYPE_PROPERTIES): New macro.
59264         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
59265         testing whether <sys/types.h> clashes, as Autoconf does this for
59266         us now.  All uses removed.
59267         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
59268         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
59269         (gl_CHECK_TYPE_SAME):
59270         Remove; no longer needed.
59271         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
59272         exists, since we'll return 0 anyway in that case.
59273         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
59274
59275 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59276
59277         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
59278         possible collision with system files.
59279         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
59280         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
59281         WCHAR_MIN and WCHAR_MAX in this case.
59282         (<stddef.h>): Do not include; no longer needed.
59283         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
59284         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
59285         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
59286         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
59287         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
59288         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
59289         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
59290         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
59291         !defined(__c99))]: Include in this case too, since it's harmless
59292         now.
59293         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
59294         dangerous to do so.
59295         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
59296         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
59297         (_STDINT_MIN, _STDINT_MAX): New macros.
59298         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
59299         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
59300         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
59301         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
59302         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
59303         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
59304         macros, not typedefs; this simplifies things quite a bit.
59305         Use long int for all types narrower than int64_t.
59306         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
59307         Define in terms of long long int or int64_t or long int,
59308         not int64_t or int32_t.  This saves some compile-time testing.
59309         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
59310         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
59311         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
59312         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
59313         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
59314         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
59315         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
59316         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
59317         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
59318         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
59319         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
59320         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
59321         undef any previous version and define our own version, for
59322         simplicity and consistency with the new macros for types.
59323         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
59324         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
59325         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
59326         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
59327         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
59328         @WINT_T_SUFFIX@ to keep things simple here.
59329         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
59330         Simplify by assuming typical 8/16/32/64 host, since we're
59331         already doing that elsewhere anyway.
59332         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
59333         and assume long long int is 64 bits if available.  This
59334         speeds up 'configure'.
59335
59336 2006-07-01  Eric Blake  <ebb9@byu.net>
59337
59338         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
59339         Reported by Andreas Buening.
59340
59341 2006-07-01  Eric Blake  <ebb9@byu.net>
59342
59343         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
59344
59345 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
59346
59347         * lib/getaddrinfo.c: fixed typo
59348
59349 2006-06-29  Jim Meyering  <jim@meyering.net>
59350
59351         * modules/strftime (Maintainer): Add my name, since with the
59352         FPRINTFTIME changes strftime.c has forked from glibc.
59353
59354 2006-06-29  Eric Blake  <ebb9@byu.net>
59355
59356         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
59357
59358 2006-06-29  Eric Blake  <ebb9@byu.net>
59359
59360         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
59361
59362 2006-06-29  Eric Blake  <ebb9@byu.net>
59363
59364         * lib/stat_.h: New file.
59365
59366 2006-06-29  Eric Blake  <ebb9@byu.net>
59367
59368         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
59369         unused static function.
59370
59371 2006-06-29  Eric Blake  <ebb9@byu.net>
59372
59373         * doc/functions.texi (Function Portability): Document missing lstat
59374         on mingw.
59375
59376 2006-06-29  Eric Blake  <ebb9@byu.net>
59377
59378         * MODULES.html.sh: Add sys_stat.
59379         * modules/sys_stat: New module.
59380         * modules/mkstemp (Depends-on): Add sys_stat.
59381
59382 2006-06-29  Derek R. Price  <derek@ximbiot.com>
59383
59384         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
59385
59386 2006-06-29  Derek R. Price  <derek@ximbiot.com>
59387
59388         * m4/c-bs-a.m4: Removed.
59389
59390 2006-06-29  Derek R. Price  <derek@ximbiot.com>
59391
59392         * lib/strftime.c: Assume strftime() exists.
59393
59394 2006-06-29  Derek Price  <derek@ximbiot.com>
59395
59396         * modules/c-bs-a: Removed - \a is C89.
59397         * MODULES.html.sh: Remove c-bs-a.
59398
59399 2006-06-29  Bruno Haible  <bruno@clisp.org>
59400
59401         * modules/wcwidth (License): Change to LGPL.
59402
59403 2006-06-28  Simon Josefsson  <jas@extundo.com>
59404
59405         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
59406         on _WIN32.
59407
59408         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
59409         getnameinfo.
59410
59411 2006-06-28  Simon Josefsson  <jas@extundo.com>
59412
59413         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
59414
59415 2006-06-28  Simon Josefsson  <jas@extundo.com>
59416
59417         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
59418         functions there.  It will succeed on Windows XP, but on Windows
59419         2000 and (presumably) earlier, it will fail, and use the internal
59420         re-implementation.
59421         (use_win32_p): New function.
59422         (getaddrinfo): Use strtoul on servname, to support numeric ports.
59423         Support AI_NUMERICSERV to disable getservbyname.
59424         (getnameinfo): New function, only supports
59425         NI_NUMERICHOST|NI_NUMERICSERV for now.
59426
59427         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
59428         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
59429         getnameinfo.
59430
59431 2006-06-28  Eric Blake  <ebb9@byu.net>
59432
59433         * modules/wcwidth: New file.
59434         * modules/mbchar (Depends-on): Add wcwidth.
59435         * modules/mbswidth (Depends-on): Add wcwidth.
59436         * MODULES.html.sh: Add wcwidth.
59437
59438 2006-06-28  Eric Blake  <ebb9@byu.net>
59439
59440         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
59441         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
59442
59443 2006-06-28  Eric Blake  <ebb9@byu.net>
59444
59445         * lib/xvasprintf.h: Fix comments.
59446
59447 2006-06-28  Eric Blake  <ebb9@byu.net>
59448
59449         * lib/mbchar.h (wcwidth): Include wcwidth.h.
59450         * lib/mbswidth.c (wcwidth): Move from here...
59451         * lib/wcwidth.h: ...to this new file.
59452
59453 2006-06-28  Derek R. Price  <derek@ximbiot.com>
59454
59455         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
59456
59457         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
59458         it's obsolete.
59459         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
59460
59461 2006-06-28  Derek R. Price  <derek@ximbiot.com>
59462
59463         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
59464         Autoconf 2.60 says this stuff was obsolete.
59465
59466 2006-06-28  Bruno Haible  <bruno@clisp.org>
59467
59468         * modules/wcwidth (Files): Add m4/wchar_t.m4.
59469
59470 2006-06-28  Bruno Haible  <bruno@clisp.org>
59471
59472         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
59473         gt_TYPE_WCHAR_T.
59474
59475 2006-06-28  Bruno Haible  <bruno@clisp.org>
59476
59477         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
59478         declaration for wcwidth.
59479         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
59480
59481 2006-06-28  Bruno Haible  <bruno@clisp.org>
59482
59483         * lib/mkdtemp.c [MINGW]: Include <io.h>.
59484         (mkdir): Define using _mkdir.
59485
59486 2006-06-28  Bruno Haible  <bruno@clisp.org>
59487
59488         * lib/getaddrinfo.h: Fix POSIX URL.
59489         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
59490         _WIN32.
59491         (use_win32_p): Make static.
59492         (getaddrinfo): Reject service name if it is empty or does not consist
59493         solely of decimal digits, or if its value is > 65535.
59494         (getnameinfo): Remove useless casts.
59495
59496 2006-06-27  Simon Josefsson  <jas@extundo.com>
59497
59498         * modules/sys_select: New file, suggested by Bruno Haible, Paul
59499         Eggert and Martin Lambers.
59500
59501 2006-06-27  Simon Josefsson  <jas@extundo.com>
59502
59503         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
59504         Eggert and Martin Lambers.
59505
59506 2006-06-27  Bruno Haible  <bruno@clisp.org>
59507
59508         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
59509         result to 0, not to empty.
59510         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
59511
59512 2006-06-27  Bruno Haible  <bruno@clisp.org>
59513
59514         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
59515
59516 2006-06-26  Simon Josefsson  <jas@extundo.com>
59517
59518         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
59519         present.
59520
59521 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
59522
59523         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
59524         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
59525         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
59526
59527 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
59528
59529         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
59530
59531 2006-06-26  Bruno Haible  <bruno@clisp.org>
59532
59533         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
59534
59535 2006-06-26  Bruno Haible  <bruno@clisp.org>
59536
59537         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
59538
59539 2006-06-26  Bruno Haible  <bruno@clisp.org>
59540
59541         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
59542         SGI C compiler in pre-C99 mode.
59543         Suggested by Mark D. Baushke and Larry Jones.
59544
59545 2006-06-26  Bruno Haible  <bruno@clisp.org>
59546
59547         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
59548         WCHAR_MAX.
59549         Reported by Mark D. Baushke and Larry Jones.
59550
59551 2006-06-26  Bruno Haible  <bruno@clisp.org>
59552
59553         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
59554         in pre-C99 mode.
59555         Suggested by Mark D. Baushke and Larry Jones.
59556
59557 2006-06-23  Simon Josefsson  <jas@extundo.com>
59558             Bruno Haible  <bruno@clisp.org>
59559
59560         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
59561         Emit mostlyclean-local rule.
59562         (func_emit_tests_Makefile_am): Likewise.
59563         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
59564
59565 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
59566
59567         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
59568
59569 2006-06-23  Bruno Haible  <bruno@clisp.org>
59570
59571         * tests/test-stdint.c: Update to match ISO C 99 Technical
59572         Corrigendum 1.
59573
59574 2006-06-23  Bruno Haible  <bruno@clisp.org>
59575
59576         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
59577
59578 2006-06-23  Bruno Haible  <bruno@clisp.org>
59579
59580         * lib/stdint_.h: Treat IRIX like OpenBSD.
59581
59582 2006-06-23  Bruno Haible  <bruno@clisp.org>
59583
59584         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
59585         ISO C 99 Technical Corrigendum 1.
59586
59587 2006-06-22  Simon Josefsson  <jas@extundo.com>
59588
59589         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
59590         MinGW.
59591
59592 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59593
59594         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
59595         needed.  Some compiler complained about some of them.  Problem reported
59596         by Larry Jones in
59597         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
59598
59599 2006-06-21  Simon Josefsson  <jas@extundo.com>
59600
59601         * tests/test-getaddrinfo.c: New file.
59602
59603         * modules/getaddrinfo-tests: New file.
59604
59605         * MODULES.html.sh: Add inet_pton.
59606
59607         * modules/inet_pton: New file.
59608
59609 2006-06-21  Simon Josefsson  <jas@extundo.com>
59610
59611         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
59612         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
59613         of using the (limited) gnulib implementation on Windows XP.
59614
59615         * m4/inet_pton.m4: New file.
59616
59617 2006-06-21  Simon Josefsson  <jas@extundo.com>
59618
59619         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
59620         variable.
59621
59622         * lib/socket_.h: Don't define WINVER.
59623
59624         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
59625         slightly modified to work in gnulib.
59626
59627 2006-06-21  Simon Josefsson  <jas@extundo.com>
59628
59629         * doc/gnulib.texi (Windows sockets): Add.
59630
59631 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
59632
59633         * lib/read-file.c (fread_file): Start with buffer allocation of
59634         0 bytes rather than 1 byte; this simplifies the code.
59635         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
59636         code to free buffer and save/restore errno.
59637         (internal_read_file): Remove unused local.
59638
59639 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
59640
59641         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
59642         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
59643         Problem reported by Denis Excoffier in
59644         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
59645
59646 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59647
59648         * modules/sys_socket, modules/socklen: Include sys/types since
59649         FreeBSD 4.x's sys/socket.h needs it.
59650
59651 2006-06-19  Simon Josefsson  <jas@extundo.com>
59652
59653         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
59654
59655 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
59656
59657         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
59658
59659 2006-06-19  Bruno Haible  <bruno@clisp.org>
59660
59661         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
59662         and FULL_PATH_INTTYPES_H in angle brackets.
59663         Reported by Mark D. Baushke <mdb@gnu.org>.
59664
59665 2006-06-17  Eric Blake  <ebb9@byu.net>
59666
59667         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
59668         errno.
59669
59670 2006-06-17  Bruno Haible  <bruno@clisp.org>
59671
59672         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
59673         <sys/inttypes.h>.
59674
59675 2006-06-17  Bruno Haible  <bruno@clisp.org>
59676
59677         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
59678         whether errno is declared. Assume <errno.h> declares errno.
59679
59680 2006-06-17  Bruno Haible  <bruno@clisp.org>
59681
59682         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
59683
59684 2006-06-17  Bruno Haible  <bruno@clisp.org>
59685
59686         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
59687         problem on Solaris 2.5.1.
59688
59689 2006-06-16  Eric Blake  <ebb9@byu.net>
59690
59691         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
59692         * lib/unicodeio.c [!defined errno]: Likewise.
59693         * lib/strtol.c [!defined errno]: Likewise.
59694         * lib/strtod.c [!defined errno]: Likewise.
59695
59696 2006-06-15  Eric Blake  <ebb9@byu.net>
59697
59698         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
59699
59700 2006-06-15  Eric Blake  <ebb9@byu.net>
59701
59702         * config/srclist.txt (ssize_t.m4): Lose sync.
59703
59704 2006-06-15  Bruno Haible  <bruno@clisp.org>
59705
59706         * modules/stdint (Files): Include m4/full-header-path.m4,
59707         m4/size_max.m4, m4/wchar_t.m4.
59708         (Makefile.am): Many more substitutions.
59709         * modules/stdint-tests: New file.
59710         * tests/test-stdint.c: New file.
59711
59712 2006-06-15  Bruno Haible  <bruno@clisp.org>
59713
59714         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
59715         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
59716         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
59717         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
59718         gl_CHECK_TYPE_SAME): New macros.
59719
59720 2006-06-15  Bruno Haible  <bruno@clisp.org>
59721
59722         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
59723
59724 2006-06-15  Bruno Haible  <bruno@clisp.org>
59725
59726         * lib/stdint_.h: Rewritten to be fully auto-configured.
59727         Fixes bug on HP-UX/IA64.
59728
59729 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
59730
59731         * lib/getdate.y (__attribute__): Don't define if already defined.
59732         Problem reported by Larry Jones.
59733         * lib/utimens.c (__attribute__): Likewise.
59734
59735 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
59736
59737         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
59738         reported by Andreas Schwab.
59739
59740 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59741             Bruno Haible  <bruno@clisp.org>
59742
59743         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
59744         check for the declaration of strnlen and a run test that exposes the
59745         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
59746         rpl_strndup.
59747
59748 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59749             Bruno Haible  <bruno@clisp.org>
59750
59751         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
59752
59753 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59754
59755         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
59756         compile test, for Tru64 4.0D.
59757
59758 2006-05-28  Karl Berry  <karl@gnu.org>
59759
59760         * config/srclist.txt (printf-args.c): lose sync.
59761
59762 2006-05-26  Martin Lambers  <marlam@marlam.de>
59763
59764         * lib/getpass.c: Updates the test for the native W32 API, and adds
59765         missing includes, thus fixing compilation warnings.
59766
59767 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
59768
59769         * lib/exclude.c (exclude_fnmatch): New function.
59770         (excluded_file_name): Call exclude_fnmatch.
59771         * lib/exclude.h (excluded_file_name): New prototype
59772
59773 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
59774
59775         * lib/tempname.c (small_open, large_open): New macros.
59776         (__open, __open64) [!_LIBC]: Remove.
59777         (__gen_tempname): Use small_open and large_open instead of __open
59778         and __open64.  This fixes a portability bug on HP-UX 11.11i
59779         reported by Simon Wing-Tang in
59780         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
59781
59782 2006-05-24  Bruno Haible  <bruno@clisp.org>
59783
59784         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
59785         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
59786         Reported by Thorsten Maerz <torte@netztorte.de> via
59787         Aaron Stone <aaron@serendipity.cx>.
59788
59789 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
59790
59791         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
59792         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
59793         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
59794         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
59795         not really conditional on the cache.
59796         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
59797
59798 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
59799
59800         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
59801         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
59802         (my_usleep): Don't mishandle maximum value.
59803
59804 2006-05-19  Jim Meyering  <jim@meyering.net>
59805
59806         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
59807
59808 2006-05-17  Bruno Haible  <bruno@clisp.org>
59809
59810         Cygwin portability.
59811         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
59812
59813 2006-05-17  Bruno Haible  <bruno@clisp.org>
59814
59815         * lib/stdint_.h: Fix recognition of Cygwin.
59816
59817 2006-05-15  Bruno Haible  <bruno@clisp.org>
59818
59819         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
59820         on libtool patch by Ralf Wildenhues.
59821
59822 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
59823
59824         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
59825         test for C99 conformance; (bool) 0.5 is an integer constant
59826         expression, but (bool) -0.5 is not.  Problem reported by Fedor
59827         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
59828
59829 2006-05-11  Simon Josefsson  <jas@extundo.com>
59830
59831         * m4/xvasprintf.m4: Fix obvious typo.
59832
59833 2006-05-11  Jim Meyering  <jim@meyering.net>
59834
59835         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
59836         James Lemley.
59837
59838 2006-05-10  Simon Josefsson  <jas@extundo.com>
59839
59840         * lib/md4.c: Typo fix, update copyright years.
59841         (K1, K2): Don't use L because it turn computations into 64-bit on
59842         64-bit platforms.
59843
59844 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
59845
59846         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
59847         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
59848         unwanted sign propagation, e.g., on hosts with 64-bit int.
59849         There still are some problems with reeelly weird theoretical hosts
59850         (e.g., 33-bit int) but it's not worth worrying about now.
59851         * lib/sha1.c (rol): Likewise.
59852         (K1, K2, K3, K4): Remove unnecessary L suffix.
59853
59854 2006-05-10  Bruno Haible  <bruno@clisp.org>
59855
59856         * lib/des.c: Cast to avoid warnings.
59857
59858 2006-05-09  Bruno Haible  <bruno@clisp.org>
59859
59860         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
59861         (Depends-on): Depend also on xsize, stdarg.
59862         (configure.ac): Add gl_XVASPRINTF.
59863
59864 2006-05-09  Bruno Haible  <bruno@clisp.org>
59865
59866         * m4/xvasprintf.m4: New file.
59867
59868 2006-05-09  Bruno Haible  <bruno@clisp.org>
59869
59870         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
59871         (EOVERFLOW): Define fallback value.
59872         (xstrcat): New function.
59873         (xvasprintf): Recognize the special case of a string concatenation.
59874
59875 2006-05-08  Eric Blake  <ebb9@byu.net>
59876
59877         * gnulib-tool (func_version): Base copyright year on CVS date.
59878         (func_emit_copyright_notice): New function.
59879         (func_emit_lib_Makefile_am): Use it.
59880         (func_emit_tests_Makefile_am): Likewise.
59881         (func_import): Likewise.
59882
59883 2006-05-08  Bruno Haible  <bruno@clisp.org>
59884
59885         * modules/stdarg: New file.
59886         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
59887
59888 2006-05-08  Bruno Haible  <bruno@clisp.org>
59889
59890         * m4/stdarg.m4: New file, from GNU gettext.
59891
59892 2006-05-08  Bruno Haible  <bruno@clisp.org>
59893
59894         * config/srclist.txt (build-aux/config.rpath): different from latest
59895         release.
59896
59897 2006-05-08  Bruno Haible  <bruno@clisp.org>
59898
59899         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
59900
59901 2006-05-05  Jim Meyering  <jim@meyering.net>
59902
59903         * m4/warning.m4: New file, derived from bison's file by the same name.
59904
59905 2006-05-03  Bruno Haible  <bruno@clisp.org>
59906
59907         * lib/stdint_.h: Shorter URL.
59908         * lib/inttypes.h: Likewise.
59909
59910 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59911
59912         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
59913
59914 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59915
59916         * lib/verify.h: Document the internals better.  Most of this change
59917         was written by Bruno Haible.
59918
59919 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59920
59921         * doc/verify.texi: New file, partly based on a proposal by
59922         Bruno Haible.
59923
59924 2006-05-02  Bruno Haible  <bruno@clisp.org>
59925
59926         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
59927         test from here...
59928         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
59929
59930 2006-04-29  Bruno Haible  <bruno@clisp.org>
59931
59932         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
59933         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
59934
59935 2006-04-29  Bruno Haible  <bruno@clisp.org>
59936
59937         * gnulib-tool: Make --update option actually work.
59938
59939 2006-04-29  Bruno Haible  <bruno@clisp.org>
59940
59941         * doc/gcd.texi: New file.
59942         * doc/gnulib.texi: Include it.
59943
59944 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
59945
59946         * lib/getdate.y (get_date): When adding relative date, start with the
59947         initial time, not with the result of the first mktime call.
59948
59949 2006-04-25  Bruno Haible  <bruno@clisp.org>
59950
59951         * gnulib-tool (func_import): Output the include directives in three
59952         blocks, sorted separately.
59953         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59954
59955 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
59956
59957         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
59958         to define main with arguments, for C++.  Reported by Eric Blake.
59959         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
59960         Prefer 'int main ()' to 'int main (void)', for C++.
59961         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
59962         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
59963         for 'main', for C99 and C++.
59964
59965 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
59966
59967         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
59968         Don't assume that exit status -1 is valid.
59969         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59970         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59971         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
59972         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
59973         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
59974         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
59975         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
59976         functions can be used without declaring them, or that you can
59977         exit with status -1.
59978         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
59979
59980 2006-04-24  Karl Berry  <karl@gnu.org>
59981
59982         * config/srclist.txt (longdouble.m4): sync lost.
59983
59984 2006-04-24  Eric Blake  <ebb9@byu.net>
59985
59986         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
59987
59988 2006-04-24  Bruno Haible  <bruno@clisp.org>
59989
59990         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
59991         poll() implementation in AIX.
59992         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59993
59994 2006-04-24  Bruno Haible  <bruno@clisp.org>
59995
59996         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
59997         assigned exactly once.
59998
59999 2006-04-23  Claudio Fontana  <claudio@gnu.org>
60000             Bruno Haible  <bruno@clisp.org>
60001
60002         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
60003         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
60004         for AM_CPPFLAGS.
60005
60006 2006-04-23  Bruno Haible  <bruno@clisp.org>
60007
60008         * modules/copy-file: Depend on unistd.
60009         * modules/execute: Likewise.
60010         * modules/fatal-signal: Likewise.
60011         * modules/findprog: Likewise.
60012         * modules/mkdtemp : Likewise.
60013         * modules/pipe: Likewise.
60014         * modules/wait-process: Likewise.
60015
60016 2006-04-23  Bruno Haible  <bruno@clisp.org>
60017
60018         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
60019         condition was already detected.
60020         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60021
60022 2006-04-23  Bruno Haible  <bruno@clisp.org>
60023
60024         * lib/copy-file.c: Include <unistd.h> unconditionally.
60025         * lib/execute.c: Likewise.
60026         * lib/fatal-signal.c: Likewise.
60027         * lib/findprog.c: Likewise.
60028         * lib/mkdtemp.c: Likewise.
60029         * lib/pipe.h: Likewise.
60030         * lib/pipe.c: Likewise.
60031         * lib/wait-process.h: Likewise.
60032
60033 2006-04-23  Bruno Haible  <bruno@clisp.org>
60034
60035         * gnulib-tool (func_usage): Fix --import description. Document
60036         --update.
60037         (func_import): Create temporary file in a temporary directory, if
60038         --dry-run is specified. Silence errors from 'grep' when there are no
60039         m4 files in $m4dir.
60040         (func_create_testdir): Silence errors from 'grep' when there are no
60041         m4 files in $m4dir.
60042         Reported by Karl Berry <karl@freefriends.org>.
60043
60044 2006-04-20  Bruno Haible  <bruno@clisp.org>
60045
60046         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
60047         one argument, so that the code will be portable to Autoconf 2.60.
60048         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
60049         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
60050         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
60051
60052 2006-04-19  Derek Price  <derek@ximbiot.com>
60053             Eric Blake  <ebb9@byu.net>
60054
60055         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
60056         rather than "/full/path.h".  Update comment to match.  Shorten &
60057         generalize m4_translit call via AS_TR_CPP.
60058
60059 2006-04-19  Derek Price  <derek@ximbiot.com>
60060             Eric Blake  <ebb9@byu.net>
60061
60062         * lib/inttypes.h: Correct grammar in comment.
60063
60064 2006-04-18  Derek Price  <derek@ximbiot.com>
60065             Paul Eggert  <eggert@cs.ucla.edu>
60066
60067         * modules/inttypes: New file.
60068         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
60069
60070 2006-04-18  Derek Price  <derek@ximbiot.com>
60071             Paul Eggert  <eggert@cs.ucla.edu>
60072
60073         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
60074         New files.
60075
60076 2006-04-18  Derek Price  <derek@ximbiot.com>
60077             Paul Eggert  <eggert@cs.ucla.edu>
60078
60079         * lib/inttypes.h: New file.
60080         * lib/strtoimax.c: Assume <inttypes.h>.
60081
60082 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
60083
60084         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
60085         isn't mounted.  Problem reported by Kir Kolyshkin.
60086
60087 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60088
60089         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
60090         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
60091         Derek R. Price.
60092         * lib/regex.h (RE_DUP_MAX): Update comment to match current
60093         implementation.
60094
60095 2006-04-12  Eric Blake  <ebb9@byu.net>
60096
60097         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
60098         is now done automatically by the corresponding Autoconf macro.
60099
60100 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
60101
60102         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
60103         time_r.h.
60104
60105 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60106
60107         Merge regex changes from libc, removing some of our
60108         POSIX-conformance changes that were rejected and redoing them in a
60109         less-intrusive way.
60110
60111         * lib/regcomp.c (re_compile_internal, init_dfa):
60112         Length arg is now size_t, not Idx.  All uses changed.
60113         (peek_token): Forward decl now says internal_function.
60114         (__re_error_msgid, __re_error_msgid_idx):
60115         Now static rather than extern with attribute_hidden.
60116         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
60117         For some reason libc prefers K&R style defns for external functions.
60118         (regerror) [!defined _LIBC]: Likewise.
60119         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
60120         (seek_collating_symbol_entry, lookup_collation_sequence_value):
60121         (build_range_exp, build_collating_symbol):
60122         Use K&R-style defn.
60123         (re_compile_fastmap): Use '\0' to memset, not 0.
60124         (utf8_sb_map): Make the calculations more obvious.
60125         (init_dfa, parse_bracket_exp, build_charclass_op):
60126         Call calloc and cast result, as glibc does.
60127         (init_word_char, fetch_token, peek_token, peek_token_bracket):
60128         (build_range_exp, build_collating_symbol):
60129         Now internal functions.
60130
60131         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
60132
60133         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
60134         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
60135         Don't depend on VMS; depend on __VMS instead, for POSIX
60136         namespace cleanness.
60137         (regoff_t): Define to ssize_t, not long int.
60138
60139         Remove the REG_ macros named below.  Instead, make the old names
60140         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
60141         __USE_GNU_REGEX.
60142         (REG_BACKSLASH_ESCAPE_IN_LISTS):
60143         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
60144         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
60145         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
60146         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
60147         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
60148         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
60149         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
60150         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
60151         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
60152         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
60153         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
60154         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
60155         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
60156         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
60157         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
60158         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
60159         (REG_NREGS):
60160         Remove.  All uses replaced by the old RE_* names.
60161         (RE_BACKSLASH_ESCAPE_IN_LISTS):
60162         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
60163         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
60164         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
60165         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
60166         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
60167         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
60168         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
60169         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
60170         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
60171         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
60172         Don't bother having these macros be independent of each others'
60173         values, since they no longer exist in the POSIX name space.
60174
60175         Rename the following member names back to their old names,
60176         unless !__USE_GNU_REGEX.  All uses changed back.
60177         (buffer): Renamed from re_buffer.
60178         (allocated): Renamed from re_allocated.
60179         (used): Renamed from re_used.
60180         (syntax): Renamed from re_syntax.
60181         (fastmap): Renamed from re_fastmap.
60182         (translate): Renamed from re_translate.
60183         (can_be_null): Renamed from re_can_be_null.
60184         (regs_allocated): Renamed from re_regs_allocated.
60185         (fastmap_accurate): Renamed from re_fastmap_accurate.
60186         (no_sub): Renamed from re_no_sub.
60187         (not_bol): Renamed from re_not_bol.
60188         (not_eol): Renamed from re_not_eol.
60189         (newline_anchor): Renamed from re_newline_anchor.
60190         (num_regs): Renamed from rm_num_regs.
60191         (start): Renamed from rm_start.
60192         (end): Renamed from rm_end.
60193
60194         (free_state): Move up a bit.
60195
60196         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
60197         #define to be empty.
60198         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
60199         when that is what is intended.
60200         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
60201         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
60202         (MAX): New macro.
60203         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
60204         All uses changed back to re_malloc, etc.  It's now the caller's
60205         responsibility to check for overflow; all callers changed.
60206         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
60207         (re_x2nrealloc): Remove.
60208         (free_state): Remove decl.
60209
60210         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
60211         (re_set_registers, re_exec):
60212         Use K&R-style defn.
60213
60214         2006-01-31  Roland McGrath  <roland@redhat.com>
60215
60216         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
60217         Reported by Mike Frysinger <vapier@gentoo.org>.
60218
60219         2006-01-15  Andreas Jaeger  <aj@suse.de>
60220
60221         [BZ #1950]
60222         * lib/regex_internal.c (re_string_reconstruct): Adjust for
60223         build_wcs_upper_buffer change.
60224         (build_wcs_upper_buffer): Change return type.
60225
60226         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
60227
60228         * lib/regex_internal.h: Include <stdint.h> if available.
60229
60230         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
60231
60232         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
60233
60234         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
60235
60236         * lib/regcomp.c: Adjust for changed secondary hash function.
60237
60238         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
60239
60240         * lib/regex.h: Pretty printing.
60241         Clean up namespace a bit.
60242
60243         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
60244
60245         * lib/regexec.c (update_cur_sifted_state, check_arrival,
60246         check_arrival_add_next_nodes): Avoid using uninitialized variable.
60247
60248         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
60249                     Ulrich Drepper  <drepper@redhat.com>
60250
60251         [BZ #1302]
60252         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
60253         changed.
60254         (bitset_word_t): Renamed from bitset_word.  All uses changed.
60255
60256         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
60257
60258         [BZ #281]
60259         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
60260         * lib/regcomp.c: Remove unnecessary uses of
60261         unsigned RE_TRANSLATE_TYPE.
60262         * lib/regex_internal.h: Likewise.
60263         * lib/regex_internal.c: Likewise.
60264         * lib/regexec.c: Likewise.
60265         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
60266
60267         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
60268
60269         * lib/regexec.c (find_recover_state): Remove unnecessary
60270         initialization.
60271         (transit_state_bkref): Make DFA a const pointer.
60272         (get_subexp): Likewise.
60273         (check_arrival): Likewise.
60274         (update_cur_sifted_state): Likewise.
60275         (re_search_internal): Likewise.
60276         (prune_impossible_nodes): Likewise.
60277         (acquire_init_state_context): Likewise.
60278         (proceed_next_node): Likewise.
60279         (set_regs): Likewise.
60280         (free_fail_stack_return): Likewise.
60281         (check_arrival_expand_ecl): Mark DFA parameter as const.
60282         (check_arrival_expand_ecl_sub): Likewise.
60283         (check_subexp_limits): Likewise.
60284         (sub_epsilon_src_nodes):  Likewise.
60285         (add_epsilon_src_nodes):  Likewise.
60286         (merge_state_array): Likewise.
60287         (update_regs): Likewise.
60288         (build_trtable): Likewise.
60289         (sift_states_backward): Mark MCTX parameter as const.
60290         (build_sifted_states): Likewise.
60291         (update_cur_sifted_state): Likewise.
60292         (sift_states_mkref): Likewise.
60293         (check_arrival_expand_ecl): Mark eclosure as const.
60294         (check_dst_limits_calc_pos_1): Likewise.
60295         * lib/regex_internal.h (re_match_context_t): Make dfa a const
60296         pointer.
60297
60298         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
60299
60300         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
60301         (transit_state_sb): Likewise.
60302         (transit_state_mb): Likewise.
60303         (sift_states_iter_mb): Likewise.
60304         (check_arrival_add_next_nodes): Likewise.
60305         (check_node_accept_bytes): Change first parameter to pointer-to-const.
60306         [_LIBC] (re_search_2_stub): Use mempcpy.
60307
60308         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
60309         mbrtowc for very simple UTF-8 case.
60310
60311         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
60312         a pointer-to-const.
60313         (re_acquire_state_context): Likewise.
60314         * lib/regex_internal.h: Adjust prototypes.
60315
60316         * lib/regex.c: Prevent using C++ compilers.
60317
60318         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
60319         (re_acquire_state_context): Likewise.
60320
60321 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60322
60323         * modules/regex (Depends-on): Add ssize_t.
60324
60325 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60326
60327         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
60328         translation table.
60329
60330 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60331
60332         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
60333
60334 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
60335             Bruno Haible  <bruno@clisp.org>
60336
60337         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
60338         <sys/types.h> and <inttypes.h>.
60339
60340 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60341
60342         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
60343         `__error_t_defined', so argp.h will not typedef the former.
60344
60345 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
60346
60347         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
60348         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
60349         glibc names.  Even if glibc is changed to conform to POSIX, the
60350         traditional names will be available anyway, since regex depends on
60351         the extensions module.  Also, fix a longstanding typo in the
60352         implementation of Spencer ERE test #75 from grep 2.3.  Problems
60353         reported by Emanuele Giaquinta.  Also, change sense of cached
60354         variable, so that the message makes sense.
60355
60356 2006-03-24  Simon Josefsson  <jas@extundo.com>
60357
60358         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
60359         including some doc fixes.
60360         (base64_encode_alloc): Fix +1 bug on allocation failures.
60361
60362 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60363
60364         * lib/base64.c (base64_encode): Do not read past end of array with
60365         unsanitized input on systems with CHAR_BIT > 8.
60366
60367 2006-03-24  Eric Blake  <ebb9@byu.net>
60368
60369         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
60370
60371 2006-03-22  Karl Berry  <karl@gnu.org>
60372
60373         * config/srclist.txt (*setenv.[ch]): get from coreutils.
60374         * config/srclistvars.sh (COREUTILS): new var.
60375
60376 2006-03-17  Jim Meyering  <jim@meyering.net>
60377
60378         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
60379         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
60380
60381 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
60382
60383         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
60384         no longer needs it.  Instead, check that regoff_t is as least
60385         as wide as ptrdiff_t.
60386
60387         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
60388         so that our regex.h stays compatible with the installed regex.
60389         This is helpful for installers who configure --without-included-regex.
60390         Problem reported by Emanuele Giaquinta.
60391
60392 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
60393
60394         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
60395         Typedef to long int, not to off_, as POSIX will likely change
60396         in that direction.
60397
60398 2006-03-15  Eric Blake  <ebb9@byu.net>
60399
60400         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
60401
60402 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
60403
60404         * lib/argp-help.c (validate_uparams): Fix typo
60405         * lib/argp-parse.c (argp_default_options): Consistently begin help
60406         messages with a lowercase letter.
60407
60408 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
60409
60410         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
60411         overrun buffers and shouldn't be used (much as gets shouldn't be
60412         used).
60413         * lib/time_r.c (asctime_r, ctime_r): Likewise.
60414
60415 2006-03-08  Simon Josefsson  <jas@extundo.com>
60416
60417         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
60418         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60419
60420 2006-03-08  Simon Josefsson  <jas@extundo.com>
60421
60422         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
60423         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60424
60425 2006-03-08  Simon Josefsson  <jas@extundo.com>
60426
60427         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
60428         signal that configure disabled the device.
60429
60430 2006-03-08  Simon Josefsson  <jas@extundo.com>
60431
60432         * build-aux/maint.mk: Fix refresh-po, to handle no translated
60433         languages.
60434
60435 2006-03-07  Simon Josefsson  <jas@extundo.com>
60436
60437         * modules/getopt (Depends-on): Add unistd.
60438
60439         * modules/unistd: New file.
60440
60441 2006-03-07  Simon Josefsson  <jas@extundo.com>
60442
60443         * modules/gc-random: New file.
60444
60445 2006-03-07  Simon Josefsson  <jas@extundo.com>
60446
60447         * m4/unistd_h.m4: New file.
60448
60449 2006-03-07  Simon Josefsson  <jas@extundo.com>
60450
60451         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
60452         test to be side-effect free by storing the result in the cache
60453         variable gl_cv_lib_readline, and moving the assignment of
60454         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
60455         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60456
60457 2006-03-07  Simon Josefsson  <jas@extundo.com>
60458
60459         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
60460         error on missing devices (the functions will return an error).
60461
60462         * m4/gc.m4: Move random stuff to gc-random.m4
60463
60464 2006-03-07  Simon Josefsson  <jas@extundo.com>
60465
60466         * lib/unistd_.h: New file.
60467
60468 2006-03-07  Simon Josefsson  <jas@extundo.com>
60469
60470         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
60471
60472 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
60473
60474         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
60475         Problem reported by Juan Manuel Guerrero.
60476
60477 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
60478
60479         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
60480         the unistd module.
60481         * lib/getlogin_r.c: Likewise.
60482         * lib/getlogin_r.h: Likewise.
60483         * lib/glob.c: Likewise.
60484         * lib/pagealign_alloc.c: Likewise.
60485         * lib/unistd_.h: Remove; no longer needed.
60486
60487 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
60488
60489         * MODULES.html.sh (Support for systems lacking POSIX:2001):
60490         Add unistd.
60491         * modules/c-stack (Depends-on): Add unistd.
60492         * modules/getlogin_r: Likewise.
60493         * modules/glob: Likewise.
60494         * modules/pagealign_alloc: Likewise.
60495         * modules/unistd (Files): Remove lib/unistd_.h.
60496         (EXTRA_DIST): Remove.
60497         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
60498         need unistd_.h.
60499         (MOSTLYCLEANFILES): Remove unistd.h-t.
60500
60501 2006-03-03  Simon Josefsson  <jas@extundo.com>
60502
60503         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
60504
60505 2006-03-03  Simon Josefsson  <jas@extundo.com>
60506
60507         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
60508         libidn and bison.
60509
60510 2006-03-03  Simon Josefsson  <jas@extundo.com>
60511
60512         * build-aux/maint.mk: Add indent target.
60513
60514 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
60515
60516         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
60517         our replacement poll.h in any case, to avoid a differing
60518         declaration from a system header.  Seen on AIX.
60519
60520 2006-03-01  Simon Josefsson  <jas@extundo.com>
60521
60522         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
60523         <kasal@ucw.cz>.
60524
60525 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60526
60527         * modules/gettime (Depends-on): Add extensions module.
60528         * modules/nanosleep (Depends-on): Likewise.
60529         * modules/settime (Depends-on): Likewise.
60530
60531 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60532
60533         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
60534         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
60535         pedantically.
60536         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60537         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
60538
60539         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
60540         not "==".  Reported by Ralf Wildenhues.
60541
60542 2006-03-01  Karl Berry  <karl@gnu.org>
60543
60544         * doc/Copyright/request-*: new files, synced from gnuorg.
60545
60546 2006-03-01  Karl Berry  <karl@gnu.org>
60547
60548         * config/srclist.txt (Copyright/*): new entries.
60549
60550 2006-02-28  Simon Josefsson  <jas@extundo.com>
60551
60552         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
60553
60554 2006-02-27  Simon Josefsson  <jas@extundo.com>
60555
60556         * lib/base64.h: Indent #define's.  From Jim Meyering
60557         <jim@meyering.net>.
60558
60559 2006-02-27  Jim Meyering  <jim@meyering.net>
60560
60561         Revert the change of 2006-02-24, so these files can continue
60562         to be sync'd from gettext.
60563         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
60564         of `config.h'.
60565
60566 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
60567
60568         * modules/intprops: New file.
60569         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
60570         Add intprops.
60571         * modules/getloadavg (Files): Remove lib/intprops.h.
60572         (Depends-on): Add intprops.
60573         * modules/human: Likewise.
60574         * modules/inttostr: Likewise.
60575         * modules/openat: Likewise.
60576         * modules/sig2str: Likewise.
60577         * modules/userspec: Likewise.
60578         * modules/utimecmp: Likewise.
60579         * modules/xnanosleep: Likewise.
60580         * modules/xstrtol: Likewise.
60581
60582 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
60583
60584         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
60585         * modules/lock-tests (TESTS): Use $(EXEEXT).
60586         * modules/tls-tests: Likewise.
60587         * modules/argp-tests: Likewise.
60588         (check_PROGRAMS): New var, replacing...
60589         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
60590
60591 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60592
60593         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
60594         `config.h'.
60595
60596 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
60597
60598         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
60599
60600 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60601
60602         Sync from coreutils.
60603         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
60604         gl_CHDIR_SAFER.
60605
60606 2006-02-22  Jim Meyering  <jim@meyering.net>
60607
60608         Sync from coreutils.
60609         * m4/chdir-safer.m4: New file.
60610
60611 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
60612
60613         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
60614         AT_FDCWD exceeds INT_MAX.
60615         * lib/openat.h (AT_FDCWD): Likewise.
60616
60617 2006-02-17  Eric Blake  <address@hidden>
60618
60619         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
60620
60621 2006-02-16  Simon Josefsson  <jas@extundo.com>
60622
60623         * modules/getaddrinfo (Depends-on): Add sys_socket.
60624
60625 2006-02-15  Simon Josefsson  <jas@extundo.com>
60626
60627         * build-aux/maint.mk: Add dsyntax-check rule.
60628
60629 2006-02-15  Eric Blake  <ebb9@byu.net>
60630
60631         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
60632         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
60633         'present but cannot compile' warnings on cygwin.
60634         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
60635         use ws2tcpip.h if sys/socket.h works.
60636         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
60637         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
60638
60639 2006-02-14  Simon Josefsson  <jas@extundo.com>
60640
60641         * modules/maintainer-makefile (Files): Rename.
60642
60643         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
60644         and (the local) Makefile.cfg to maint-cfg.mk.
60645
60646         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
60647         to the latter.
60648
60649         * modules/maintainer-makefile: New module.
60650
60651         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
60652         severaly stripped to make it possible to build it up from scratch
60653         with reliable tests.
60654
60655         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
60656         fixes to permit overriding the default actions when configure and
60657         makefile are not available.
60658
60659 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
60660
60661         Sync from coreutils.
60662         * modules/lstat (Depends-on): Don't depend on xalloc.
60663         (License): Change from GPL to LGPL, since this is now simply a
60664         replacement for a libc function.
60665
60666 2006-02-14  Jim Meyering  <jim@meyering.net>
60667
60668         Sync from coreutils.
60669
60670         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
60671         failure on deficient systems, and simplify gnulib lgpl dependencies.
60672         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
60673         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
60674
60675         * lib/xalloc-die.c: Remove unused definition of N_.
60676
60677 2006-02-14  Jim Meyering  <jim@meyering.net>
60678
60679         Sync from coreutils.
60680         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
60681         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
60682         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
60683         double-quote uses of that variable, to accommodate the rare case in
60684         which getmntent is available in none of the libraries checked.  This
60685         happens at least on FreeBSD 5.0.
60686
60687 2006-02-13  Simon Josefsson  <jas@extundo.com>
60688
60689         * gnulib-tool (Usage): Fix --import, from
60690         karl@freefriends.org (Karl Berry).
60691
60692 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
60693
60694         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
60695
60696 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
60697
60698         * lib/argp-namefrob.h: Restore changes accidentally lost during the
60699         "autoupdate" on 2005-12-12.
60700
60701 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
60702
60703         * modules/closeout (Depends-on): Remove atexit.
60704
60705 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
60706
60707         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
60708         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
60709
60710 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
60711
60712         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
60713         __EXTENSIONS__ if this causes compilation to fail.  Problem
60714         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
60715         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
60716
60717 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
60718
60719         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
60720         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
60721         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
60722         All uses changed.
60723
60724 2006-01-26  Simon Josefsson  <jas@extundo.com>
60725
60726         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
60727         prototype is visible on mingw32.
60728
60729         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
60730         for mingw32.
60731
60732         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
60733         mingw32).
60734
60735 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
60736
60737         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
60738         attempt to open for write; this always fails, at least on POSIX
60739         hosts.  This reinstates the 2006-01-09 change, which was
60740         inadvertently removed.
60741
60742 2006-01-26  Bruno Haible  <bruno@clisp.org>
60743
60744         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
60745         Reported by Paul Eggert.
60746
60747 2006-01-26  Bruno Haible  <bruno@clisp.org>
60748             Paul Eggert  <eggert@cs.ucla.edu>
60749
60750         * lib/stdbool_.h (_Bool)
60751         [(! (defined __cplusplus || defined __BEOS__)
60752           && !defined __GNUC__
60753           && !(defined __HP_cc || defined __xlc__
60754                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
60755                || defined __sgi))]:
60756         #define to signed char in these cases too; this simplifies
60757         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
60758         etc., separately) and makes it more conservative.
60759
60760 2006-01-25  Simon Josefsson  <jas@extundo.com>
60761
60762         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
60763         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
60764         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
60765
60766 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
60767
60768         * lib/argp-namefrob.h: Bugfix. Remove stray #
60769
60770 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
60771
60772         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
60773         so that we test the test.
60774         Check for yet another HP-UX cc bug involving *bool |= bool.
60775
60776 2006-01-25  Karl Berry  <karl@gnu.org>
60777
60778         * config/srclist.txt (vasnprintf.c): sync lost.
60779
60780 2006-01-25  Jim Meyering  <jim@meyering.net>
60781
60782         Sync from the stable (b5) branch of coreutils:
60783
60784         * lib/fts.c (fts_children): Don't let close() clobber errno from
60785         failed fchdir().
60786
60787         * lib/fts.c (fts_stat): When following a symlink-to-directory,
60788         don't necessarily interpret stat-fails+lstat-succeeds as indicating
60789         a dangling symlink.  That can also happen at least for ELOOP.
60790         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
60791         FYI, this bug predates the inclusion of fts.c in coreutils.
60792
60793         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
60794         in their own block, so pre-c99 compilers don't object.
60795
60796         Avoid the double-free (first in fts_read, second in fts_close) that
60797         would occur when an `active' directory is made inaccessible (e.g.,
60798         via chmod a-x) during a traversal.
60799         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
60800         before returning.  Reproduce this failure by
60801         mkdir -p a/b; cd a; chmod a-x . b
60802         Reported by Stavros Passas.
60803
60804 2006-01-25  Jim Meyering  <jim@meyering.net>
60805
60806         * lib/fileblocks.c: Remove more useless parentheses.
60807         * lib/readutmp.h: Likewise.
60808
60809 2006-01-25  Bruno Haible  <bruno@clisp.org>
60810
60811         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
60812         warnings.
60813         Reported by Paul Eggert.
60814
60815 2006-01-25  Bruno Haible  <bruno@clisp.org>
60816
60817         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
60818         rid of a trap command. For Solaris sh.
60819         Reported by Mark D. Baushke <mdb@gnu.org>.
60820
60821 2006-01-24  Simon Josefsson  <jas@extundo.com>
60822
60823         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
60824         Bruno.
60825
60826 2006-01-24  Karl Berry  <karl@gnu.org>
60827
60828         * config/srclist.txt (argp-namefrob.h): sync lost.
60829
60830 2006-01-24  Jim Meyering  <jim@meyering.net>
60831
60832         * modules/openat (Files): Add lib/intprops.h.
60833         From Mark D. Baushke.
60834
60835 2006-01-24  Jim Meyering  <jim@meyering.net>
60836
60837         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
60838         Reported by Mark D. Baushke.
60839
60840 2006-01-24  Jim Meyering  <jim@meyering.net>
60841
60842         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
60843
60844 2006-01-24  Bruno Haible  <bruno@clisp.org>
60845
60846         * modules/strnlen (Maintainer): Change from glibc to all.
60847
60848 2006-01-24  Bruno Haible  <bruno@clisp.org>
60849
60850         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
60851         Patch by Paul Eggert.
60852
60853 2006-01-24  Bruno Haible  <bruno@clisp.org>
60854
60855         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
60856         already has it.
60857         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
60858         2005-11-26.
60859
60860         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
60861         'signed char' to avoid problems with the built-in _Bool type.
60862         Reported by Paul Eggert on 2005-11-26.
60863
60864 2006-01-24  Bruno Haible  <bruno@clisp.org>
60865
60866         * gnulib-tool (func_import): Avoid constructing complicated sed
60867         expressions inside backquote.
60868         Report and solution by Mark D. Baushke <mdb@gnu.org>.
60869
60870 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
60871
60872         These changes imported from libc.
60873         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
60874         test and two separate function calls.
60875         * lib/strndup.c (__strndup): Add libc_hidden_def.
60876
60877 2006-01-23  Simon Josefsson  <jas@extundo.com>
60878
60879         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
60880         Remove the test_*_SOURCES variable: automake infers it by default.
60881         * modules/tls-tests: Likewise.
60882
60883 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60884
60885         Work around porting bugs reported by Dieter in
60886         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
60887         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
60888         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
60889         Include "getopt.h" first, to check interface.
60890         (getenv): Declare only if defined HAVE_DECL_GETENV &&
60891         !HAVE_DECL_GETENV.
60892         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
60893         (__strndup): Revert to K&R-style function dfns, the glibc style.
60894         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
60895         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
60896         Include strnlen.h first, to get prototype properly.
60897         (strnlen): Renamed from __strnlen.
60898         Remove weak alias.
60899
60900 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60901
60902         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
60903
60904 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60905
60906         * config/srclist.txt: Adjust to reflect glibc reorganization.
60907         This affects only comments.
60908
60909 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60910
60911          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
60912          Reported by Bruce Korb <bkorb@gnu.org>.
60913
60914 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
60915
60916         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
60917         to pacify gcc -Wswitch-default.
60918
60919 2006-01-22  Bruno Haible  <bruno@clisp.org>
60920
60921         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
60922         temporary buffer for sprintf, take into account the precision also
60923         for 'd', 'i', 'u', 'o', 'x', 'X'.
60924
60925 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
60926
60927         * modules/argp-tests: New module
60928         * tests/test-argp.c: New file
60929         * tests/test-argp-2.sh: New file
60930
60931 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
60932
60933         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
60934         (__argp_base_name): Removed
60935         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
60936         typo.
60937         (__argp_base_name): Provide macro definition or extern declaration
60938         depending on the configuration
60939
60940 2006-01-20  Simon Josefsson  <jas@extundo.com>
60941
60942         * modules/inet_ntop (Depends-on): Depend on sys_socket.
60943
60944 2006-01-20  Simon Josefsson  <jas@extundo.com>
60945
60946         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
60947
60948 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
60949
60950         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
60951         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
60952         Suggested by Bruno Haible.
60953
60954 2006-01-20  Karl Berry  <karl@gnu.org>
60955
60956         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
60957         until changes propagate, I guess.
60958
60959 2006-01-19  Simon Josefsson  <jas@extundo.com>
60960
60961         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
60962
60963 2006-01-19  Simon Josefsson  <jas@extundo.com>
60964
60965         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
60966
60967 2006-01-19  Simon Josefsson  <jas@extundo.com>
60968
60969         * gnulib-tool: Set check_PROGRAMS.
60970
60971         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
60972         modules/des-tests, modules/gc-arcfour-tests,
60973         modules/gc-arctwo-tests, modules/gc-des-tests,
60974         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
60975         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
60976         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
60977         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
60978         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
60979         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
60980         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
60981         test_*_SOURCES.
60982
60983 2006-01-18  Simon Josefsson  <jas@extundo.com>
60984
60985         * modules/socklen (Depends-on): Depend on sys_socket.
60986
60987 2006-01-18  Simon Josefsson  <jas@extundo.com>
60988
60989         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
60990         modules/des-tests, modules/gc-arcfour-tests,
60991         modules/gc-arctwo-tests, modules/gc-des-tests,
60992         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
60993         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
60994         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
60995         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
60996         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
60997         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
60998         $(EXEEXT) to automake TESTS variable, for mingw32.
60999
61000 2006-01-17  Simon Josefsson  <jas@extundo.com>
61001
61002         * modules/socklen (Include): Need sys/socket.h.
61003
61004 2006-01-17  Bruno Haible  <bruno@clisp.org>
61005
61006         * modules/ssize_t (Include): Add <sys/types.h>.
61007
61008 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
61009
61010         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
61011         it's not portable and it doesn't work with cross-compiles.
61012         Problem reported by Bruno Haible.  Fix missing-$ typo in
61013         'test "gl_cv_ignore_unused_libraries" ...' that prevented
61014         -zignore from being used with Sun's C compiler.
61015
61016 2006-01-12  Simon Josefsson  <jas@extundo.com>
61017
61018         * lib/base64.c: Fix warning, reported by Bruno Haible
61019         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
61020
61021 2006-01-12  Bruno Haible  <bruno@clisp.org>
61022
61023         * modules/ldd: New file.
61024         * build-aux/ldd.sh.in: New file.
61025         * MODULES.html.sh (Support for building libraries and executables): Add
61026         ldd.
61027
61028 2006-01-12  Bruno Haible  <bruno@clisp.org>
61029
61030         * m4/ldd.m4: New file.
61031
61032 2006-01-12  Bruno Haible  <bruno@clisp.org>
61033
61034         * gnulib-tool (func_import, func_create_testdir): Don't go into an
61035         endless loop while replacing $auxdir with build-aux.
61036
61037 2006-01-11  Simon Josefsson  <jas@extundo.com>
61038
61039         * lib/stdint_.h (SIZE_MAX): Add missing (.
61040
61041 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
61042
61043         Sync from coreutils.
61044         * lib/md5.c: Fix commentary typos.
61045         (alignof, UNALIGNED_P): No need for a GCC-specific version.
61046         * lib/md5.h (__attribute__): Remove; unused.
61047         * lib/sha1.c: Fix commentary to match md5 better.
61048         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
61049         so that we don't need to worry about alignment.  All uses changed.
61050         This merges the 2005-10-28 md5 change into sha1.
61051
61052 2006-01-11  Jim Meyering  <jim@meyering.net>
61053
61054         Sync from coreutils.
61055         * lib/md5.c (OP): Fix spacing.
61056
61057 2006-01-11  Bruno Haible  <bruno@clisp.org>
61058
61059         Ensure automatic ordering between gl_LOCK and gl_ARGP.
61060         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
61061         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
61062
61063 2006-01-11  Bruno Haible  <bruno@clisp.org>
61064
61065         Ensure automatic ordering between gl_LOCK and gl_ARGP.
61066         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
61067         the "early" section as well.
61068
61069 2006-01-11  Bruno Haible  <bruno@clisp.org>
61070
61071         Avoid "ar: no archive members specified" error on MacOS X.
61072         * gnulib-tool (func_modules_add_dummy): New function.
61073         (func_import, func_create_testdir): Invoke it.
61074
61075 2006-01-11  Bruno Haible  <bruno@clisp.org>
61076
61077         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
61078         with $auxdir in AC_CONFIG_FILES statements.
61079
61080 2006-01-11  Bruno Haible  <bruno@clisp.org>
61081
61082         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61083         Initialize also noinst_HEADERS to empty.
61084
61085 2006-01-11  Bruno Haible  <bruno@clisp.org>
61086
61087         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
61088         variables.
61089         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
61090         autoreconf.
61091
61092 2006-01-11  Bruno Haible  <bruno@clisp.org>
61093
61094         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
61095         overridable by the user.
61096         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61097
61098 2006-01-10  Simon Josefsson  <jas@extundo.com>
61099
61100         * modules/sys_socket: New file.
61101
61102 2006-01-10  Simon Josefsson  <jas@extundo.com>
61103
61104         * m4/sys_socket_h.m4: New file.
61105
61106 2006-01-10  Simon Josefsson  <jas@extundo.com>
61107
61108         * lib/socket_.h: New file.
61109
61110 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61111
61112         * modules/readutmp (Maintainer): Add myself.
61113
61114 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61115
61116         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
61117         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
61118         People who are still concerned with buggy memcmp implementations
61119         can invoke gl_FUNC_MEMCMP themselves.
61120
61121 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61122
61123         * lib/regex_internal.h (BITSET_WORD_BITS):
61124         Work around a bug in 64-bit PGC (before version 6.1-2), where the
61125         preprocessor mishandles large unsigned values as if they were signed.
61126         Problem reported by Claudio Fontana in
61127         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
61128
61129 2006-01-10  Jim Meyering  <jim@meyering.net>
61130
61131         Avoid the double-free (first in fts_read, second in fts_close) that
61132         would occur when an `active' directory is made inaccessible (e.g.,
61133         via chmod a-x) during a traversal.
61134         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
61135         before returning.  Reproduce this failure by
61136         mkdir -p a/b; cd a; chmod a-x . b
61137         Reported by Stavros Passas.
61138
61139         Sync from coreutils.
61140         * lib/sha1.c: Tweak grammar in a comment.
61141
61142 2006-01-10  Jim Meyering  <jim@meyering.net>
61143
61144         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
61145         Patch by Joerg Sonnenberger.
61146
61147 2006-01-10  Bruno Haible  <bruno@clisp.org>
61148
61149         * modules/readutmp: Depend on module free.
61150         * modules/strtok_r: Depend on module restrict.
61151
61152 2006-01-10  Bruno Haible  <bruno@clisp.org>
61153
61154         * modules/gettext (configure.ac): Add an invocation of
61155         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
61156
61157 2006-01-10  Bruno Haible  <bruno@clisp.org>
61158
61159         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
61160         Reported by Werner Lemberg <wl@gnu.org>.
61161
61162 2006-01-10  Bruno Haible  <bruno@clisp.org>
61163
61164         * lib/localcharset.c: Update from GNU gettext.
61165
61166 2006-01-10  Bruno Haible  <bruno@clisp.org>
61167
61168         * lib/argp.h (__const): Remove macro. Use const instead.
61169         * lib/argp-fmtstream.h (__const): Likewise.
61170         * lib/glob_.h (__const): Remove macro.
61171         * lib/glob-libc.h: Use const instead of __const.
61172
61173 2006-01-10  Bruno Haible  <bruno@clisp.org>
61174
61175         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
61176         variable.
61177         Needed to avoid an automake error regarding the 'gettext' module.
61178
61179 2006-01-09  Simon Josefsson  <jas@extundo.com>
61180
61181         * modules/inet_ntop (Depends-on): Add restrict.
61182
61183 2006-01-09  Simon Josefsson  <jas@extundo.com>
61184
61185         * modules/gc-rijndael-tests (License): Put under LGPL.
61186
61187         * modules/gc-des-tests (License): Likewise.
61188
61189         * modules/gc-arcfour-tests (License): Likewise.
61190
61191         * modules/gc-arctwo-tests (License): Likewise.
61192
61193         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
61194
61195         * modules/gc-hmac-sha1-tests (Files): Likewise.
61196
61197         * modules/gc-hmac-md5-tests (License): Likewise.
61198
61199         * modules/gc-sha1-tests (License): Likewise.
61200
61201         * modules/gc-md5-tests (License): Likewise.
61202
61203         * modules/gc-md4-tests (License): Likewise.
61204
61205         * modules/gc-md2-tests (License): Likewise.
61206
61207         * modules/gc-tests (License): Likewise.
61208
61209         * modules/des-tests (License): Likewise.
61210
61211         * modules/md4-tests (License): Likewise.
61212
61213         * modules/md2-tests (License): Likewise.
61214
61215 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61216
61217         Sync from coreutils:
61218
61219         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
61220         * modules/lib-ignore: New file.
61221         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
61222         chdir-safer.m4, lchmod.m4.
61223         * modules/openat: Add mkdirat.c, openat-priv.h.
61224
61225 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61226
61227         Sync from coreutils.
61228         * m4/lib-ignore.m4: New file.
61229         * m4/lchmod.m4: New file.
61230
61231 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61232
61233         Sync from coreutils.
61234         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
61235         for write access: POSIX says that must fail.
61236         * lib/fts.c (diropen): Likewise.
61237         * lib/save-cwd.c (save_cwd): Likewise.
61238         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
61239         well, for minor improvements on hosts that lack O_DIRECTORY.
61240         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
61241         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
61242         Fall back on chown if open failed with EACCES.
61243
61244         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
61245         Report an error at compile-time if only a 1-second nominal clock
61246         resolution is found.
61247
61248         * lib/lchmod.h: New file.
61249         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
61250         (make_dir_parents): Use lchown rather than chown, and
61251         lchmod rather than chmod.
61252
61253         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
61254         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
61255         "proc" reported by n0dalus.
61256
61257         * lib/mountlist.c: Include <limits.h>.
61258         (dev_from_mount_options)
61259         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
61260         New function.  It no longer assumes "dev=" has the System V meaning
61261         on Linux (since it doesn't).  It also parses "dev=" more carefully.
61262         (read_file_system_list)
61263         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
61264         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
61265         dev= in that case.
61266
61267         * lib/posixtm.h (PDS_PRE_2000): New macro.
61268         * lib/posixtm.c (year): Arg is now syntax_bits rather than
61269         allow_century.  All usages changed.  Reject dates outside the range
61270         1969-1999 if PDS_PRE_2000 is used.
61271
61272 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61273
61274         Sync from coreutils.
61275         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
61276         (Time of day items): Mention the possibility of leap seconds.
61277         Problem reported by Dr. David Alan Gilbert.
61278
61279 2006-01-09  Jim Meyering  <jim@meyering.net>
61280
61281         Sync from coreutils.
61282
61283         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
61284
61285         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
61286
61287         * lib/modechange.c (mode_compile): Reject an invalid mode string
61288         that starts with an octal digit.  From Andreas Gruenbacher.
61289
61290         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
61291         and dup to open_safer and dup_safer, respectively.
61292         (openat_permissive): Fix typo in comment.
61293
61294         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
61295         "gettext.h"; either no longer needed or are guaranteed by openat.h.
61296         (_): Remove; no longer needed.
61297         (openat): Renamed from rpl_openat; no need for rpl_openat
61298         since openat.h renames openat for us.
61299         Replace most of the body with a call to openat_permissive,
61300         to avoid duplicate code.
61301         Port to (probably hypothetical) environments were mode_t is
61302         wider than int.
61303         (openat_permissive): Require mode arg, so that we can check
61304         types better.  Put it just after flags.  Change cwd failure
61305         indicator from pointer-to-bool to pointer-to-errno-value.
61306         All callers changed.
61307         Invoke openat_save_fail and/or openat_restore_fail if
61308         cwd_errno is null, so that openat can call us.
61309         (openat_permissive, fdopendir, fstatat, unlinkat):
61310         Simplify errno handling to avoid some duplicate code,
61311         as it's OK to set errno on success.
61312         * lib/openat.h: Revamp code so that function macros depend on
61313         __OPENAT_PREFIX only, not also on AT_FDCWD.
61314         (openat_ro): Remove.  Caller changed to use openat_permissive.
61315         (openat_permissive): Now a macro, if not a function.
61316         (openat_restore_fail, openat_save_fail): Now always functions,
61317         since mkdirat needs them even if __OPENAT_PREFIX is defined.
61318
61319         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
61320         and openat.c.
61321         * lib/mkdirat.c: Include openat-priv.h.
61322         Remove definitions of macros defined therein.
61323         * lib/openat.c: Likewise.
61324
61325         * lib/mkdirat.c (mkdirat): New file and function.
61326         * lib/openat.h (mkdirat): Declare.
61327
61328         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
61329
61330         * lib/openat.h (openat_permissive): Declare.
61331         (openat_ro): Define.
61332
61333         * lib/openat.c (EXPECTED_ERRNO): New macro.
61334         (openat_permissive): New function -- used in remove.c rewrite.
61335         (all functions): Set errno just before returning, only if there
61336         was an actual failure.
61337         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
61338
61339         Emulate openat-family functions using Linux's procfs, if possible.
61340         Idea and some code based on Ulrich Drepper's glibc changes.
61341
61342         * lib/openat.c: (BUILD_PROC_NAME): New macro.
61343         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
61344         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
61345         before falling back on save_cwd and restore_cwd.
61346         (fdopendir, fstatat, unlinkat): Likewise.
61347
61348         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
61349         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
61350
61351         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
61352         as second argument to va_arg.  Otherwise, some versions of gcc
61353         warn that `if this code is reached, the program will abort'.
61354
61355 2006-01-09  Jim Meyering  <jim@meyering.net>
61356
61357         Sync from coreutils.
61358         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
61359         Require openat-priv.h.
61360
61361 2006-01-09  Bruno Haible  <bruno@clisp.org>
61362
61363         * modules/strnlen (Include): Use strnlen.h.
61364
61365 2006-01-09  Bruno Haible  <bruno@clisp.org>
61366
61367         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
61368
61369 2006-01-09  Bruno Haible  <bruno@clisp.org>
61370
61371         * lib/sysexit_.h (EX_OK): New macro.
61372         Suggested by Martin Lambers <marlam@marlam.de>.
61373
61374 2006-01-09  Bruno Haible  <bruno@clisp.org>
61375
61376         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
61377         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
61378
61379 2006-01-09  Bruno Haible  <bruno@clisp.org>
61380
61381         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
61382         numbers.
61383
61384 2006-01-09  Bruno Haible  <bruno@clisp.org>
61385
61386         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
61387         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
61388         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
61389         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
61390
61391 2006-01-09  Bruno Haible  <bruno@clisp.org>
61392
61393         * build-aux/javacomp.sh.in: New file, moved from lib/.
61394         * modules/javacomp-script (Files): Update.
61395         (configure.ac): Add AC_CONFIG_FILES invocation.
61396         (EXTRA_DIST): Remove variable.
61397
61398         * build-aux/javaexec.sh.in: New file, moved from lib/.
61399         * modules/javaexec (Files): Update.
61400         (configure.ac): Add AC_CONFIG_FILES invocation.
61401         (EXTRA_DIST): Remove javaexec.sh.in.
61402
61403         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
61404         * modules/csharpcomp-script (Files): Update.
61405         (configure.ac): Add AC_CONFIG_FILES invocation.
61406         (EXTRA_DIST): Remove variable.
61407
61408         * build-aux/csharpexec.sh.in: New file, moved from lib/.
61409         * modules/csharpexec (Files): Update.
61410         (configure.ac): Add AC_CONFIG_FILES invocation.
61411         (EXTRA_DIST): Remove csharpexec.sh.in.
61412
61413 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
61414
61415         Sync from coreutils.
61416
61417         Add POSIX ACL support
61418         * lib/acl.h (copy_acl, set_acl): Add declarations.
61419         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
61420         systems other than Linux.
61421         (chmod_or_fchmod): New function: use fchmod when possible,
61422         and chmod otherwise.
61423         (file_has_acl): Add a POSIX ACL implementation, with a
61424         Linux-specific subcase.
61425         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
61426         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
61427         acls are unsupported.
61428         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
61429         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
61430         are unsupported.
61431
61432 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
61433
61434         Sync from coreutils.
61435         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
61436
61437 2006-01-07  Bruno Haible  <bruno@clisp.org>
61438
61439         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
61440         gl_EARLY.
61441
61442 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61443
61444         * lib/strftime.c (tzname): Don't declare if it is already #defined.
61445         Problem reported for Mingw by Mark Junker.
61446
61447 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61448
61449         * README: Gnulib normally doesn't generate a tarball.
61450
61451 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
61452
61453         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
61454         long int, not int, for nanosecond counts, so that people who are
61455         used to POSIX struct timespec won't be surprised.  Reported by Jim
61456         Meyering.
61457
61458 2005-12-28  Bruno Haible  <bruno@clisp.org>
61459
61460         * build-aux/config.rpath: Update from GNU gettext.
61461
61462 2005-12-16  Jim Meyering  <jim@meyering.net>
61463
61464         * modules/fprintftime: New module.
61465         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
61466
61467 2005-12-16  Jim Meyering  <jim@meyering.net>
61468
61469         * m4/fprintftime.m4: New file.
61470
61471 2005-12-16  Jim Meyering  <jim@meyering.net>
61472
61473         * lib/fprintftime.c, lib/fprintftime.h: New files.
61474
61475 2005-12-15  Simon Josefsson  <jas@extundo.com>
61476
61477         * modules/socklen (configure.ac): Fix M4 macro name, to align with
61478         new m4/socklen.m4.
61479
61480 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61481
61482         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
61483         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
61484
61485 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61486
61487         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
61488         * lib/argp-help.c (fill_in_uparams): Check if the constructed
61489         struct uparams is valid. Fall back to the default values if it is
61490         not.
61491
61492 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61493
61494         * modules/argp (Files): Add argp-pin.c
61495         (Depends-on): dirname
61496         (lib_SOURCES): Add argp-pin.c
61497
61498 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61499
61500         * m4/argp.m4:  Check if program_invocation_name and
61501         program_invocation_short_name are declared and define appropriate
61502         macros if they are not.
61503
61504 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61505
61506         * lib/argp-help.c (__argp_base_name): New function
61507         (__argp_short_program_name): Rewrite using __argp_base_name
61508         * lib/argp-namefrob.h: Define program_invocation_name and
61509         program_invocation_short_name if requested
61510         (__argp_base_name): Add prototype
61511         * lib/argp-parse.c (argp_def): Use gettext wrappers
61512         (argp_default_parser): Use __argp_base_name
61513         * lib/argp-pin.c: New file. Defines program_invocation_name and
61514         program_invocation_short_name on systems that lack them.
61515
61516 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
61517
61518         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
61519         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
61520         porting problem reported by Georg Schwarz in
61521         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
61522
61523 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
61524
61525         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
61526         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
61527         porting problem reported by Georg Schwarz in
61528         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
61529
61530 2005-12-05  Bruno Haible  <bruno@clisp.org>
61531
61532         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
61533         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
61534         Reported by Mark Junker <mjscod@gmx.de>.
61535
61536 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
61537
61538         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
61539         Use implementation from Albert Chin, with some
61540         comments/corrections by Stepan Kasal and myself.
61541
61542 2005-12-02  Bruno Haible  <bruno@clisp.org>
61543
61544         * gnulib-tool (func_import): Accept GPLed build tool modules when
61545         --lgpl is given.
61546         * modules/csharpcomp-script: New file.
61547         * modules/csharpcomp: Depend on it.
61548         * modules/javacomp-script: New file.
61549         * modules/javacomp: Depend on it.
61550         Suggested by Simon Josefsson.
61551
61552 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
61553
61554         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
61555         statement, to work around an HP-UX 10.20 compiler bug reported by
61556         Peter O'Gorman.
61557
61558 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
61559
61560         * modules/savedir (Depends-on): Add openat.
61561
61562 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
61563
61564         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
61565         (uintmax_t) [defined uintmax_t]: Do not declare.
61566         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
61567         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
61568         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
61569         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
61570         sake of portability to weird hosts that C allows (though we don't
61571         know of any practical examples).
61572
61573         * lib/savedir.h (fdsavedir): New decl.
61574         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
61575         contains most of the former guts of savedir.
61576         (savedir): Use savedirstream.
61577         Include "openat.h".
61578
61579 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
61580
61581         * modules/obstack (Files): Add m4/ulonglong.m4.
61582         Problem reported by Davide Angelocola.
61583
61584 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
61585
61586         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
61587         coreutils no longer futzes with rounding modes.
61588
61589 2005-11-14  Jim Meyering  <jim@meyering.net>
61590
61591         * lib/mkstemp-safer.c: Include <config.h>, required for possible
61592         replacement of mkstemp.
61593
61594 2005-11-10  Simon Josefsson  <jas@extundo.com>
61595
61596         * lib/readline.c: Remove EOL.
61597
61598 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61599
61600         * modules/gethrxtime (Depends-on): Add gettime.
61601
61602 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61603
61604         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
61605         or gettimeofday; no longer needed.
61606
61607 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61608
61609         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
61610         time business.
61611         (gethrxtime) [! (HAVE_NANOUPTIME
61612         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
61613         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
61614         our own approximation.
61615
61616 2005-11-08  Eric Blake  <ebb9@byu.net>
61617
61618         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
61619
61620 2005-11-08  Eric Blake  <ebb9@byu.net>
61621
61622         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
61623
61624 2005-11-04  Bruno Haible  <bruno@clisp.org>
61625
61626         * gnulib-tool: Implement --update mode.
61627
61628 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
61629
61630         Fix porting problem reported by Theodoros V. Kalamatianos.
61631         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
61632         Don't assume that futimes failing means we must fail.
61633
61634 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
61635
61636         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
61637         variables to suggest the intended function of the PATH_MAX check.
61638
61639 2005-10-30  Kean Johnston  <jkj@sco.com>
61640
61641         Trivial changes to support SCO systems.
61642         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
61643         as PATH_MAX.
61644         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
61645         where __ptr is null when no I/O is pending.
61646
61647 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
61648
61649         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
61650         leave errno alone.  Problem reported by Dmitry V. Levin.
61651
61652 2005-10-28  Simon Josefsson  <jas@extundo.com>
61653
61654         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
61655         Test more.
61656
61657         * tests/test-gc-md2.c, tests/test-md2.c: New files.
61658
61659         * modules/md2, modules/md2-tests: New files.
61660
61661 2005-10-28  Simon Josefsson  <jas@extundo.com>
61662
61663         * m4/inet_ntop.m4: More tests.
61664
61665         * m4/gc-md2.m4, md2.m4: New file.
61666
61667 2005-10-28  Simon Josefsson  <jas@extundo.com>
61668
61669         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
61670         "restrict" keywords, as per POSIX.  Protect the function
61671         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
61672         Don't use K&R prototypes.  Check the sprintf return values.
61673         Re-define EAFNOSUPPORT if not present.  Indent.
61674
61675         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
61676         suggested by Bruno Haible <bruno@clisp.org>.
61677
61678         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
61679
61680         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
61681
61682         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
61683         libgcrypt).
61684
61685         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
61686
61687         * lib/md2.h, lib/md2.c: New files.
61688
61689 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
61690
61691         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
61692         errno alone.  Problem reported by Frederic Jolliton.
61693
61694 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
61695
61696         * modules/verify (License): Change from GPL to LGPL.  This is a
61697         tiny module and there are apparently near-equivalents that are
61698         under the BSD license.
61699
61700 2005-10-24  Simon Josefsson  <jas@extundo.com>
61701
61702         * modules/sha1: Relicense to LGPL.
61703
61704 2005-10-24  Simon Josefsson  <jas@extundo.com>
61705
61706         * lib/md4.h: Shrink buffer size, now that we changed the type.
61707
61708 2005-10-23  Simon Josefsson  <jas@extundo.com>
61709
61710         * gnulib-tool (func_import): Fix --tests-base.
61711
61712 2005-10-22  Simon Josefsson  <jas@extundo.com>
61713
61714         * modules/arcfour (Depends-on): Need stdint.
61715
61716 2005-10-22  Simon Josefsson  <jas@extundo.com>
61717
61718         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
61719         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
61720
61721 2005-10-22  Simon Josefsson  <jas@extundo.com>
61722
61723         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
61724         suggested by Bruno Haible <bruno@clisp.org>.
61725
61726 2005-10-22  Simon Josefsson  <jas@extundo.com>
61727
61728         * lib/crc.h: Include stddef.h, for size_t.
61729
61730 2005-10-22  Simon Josefsson  <jas@extundo.com>
61731
61732         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
61733         arcfour_context struct (simplify test vector testing in GNU
61734         Shishi).
61735
61736 2005-10-21  Simon Josefsson  <jas@extundo.com>
61737
61738         * modules/des, modules/des-tests: New files.
61739
61740         * modules/gc-des, modules/gc-des-tests: New files.
61741
61742         * tests/test-des.c, tests/test-gc-des.c: New file.
61743
61744 2005-10-21  Simon Josefsson  <jas@extundo.com>
61745
61746         * modules/arctwo, modules/arctwo-tests: New files.
61747
61748         * tests/test-arctwo.c: New file.
61749
61750         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
61751
61752         * tests/test-gc-arctwo.c: New file.
61753
61754 2005-10-21  Simon Josefsson  <jas@extundo.com>
61755
61756         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
61757         Bruno Haible <bruno@clisp.org>.
61758
61759         * m4/gc-des.m4: New file.
61760
61761 2005-10-21  Simon Josefsson  <jas@extundo.com>
61762
61763         * m4/arctwo.m4: New file.
61764
61765         * m4/gc-arctwo.m4: New file.
61766
61767 2005-10-21  Simon Josefsson  <jas@extundo.com>
61768
61769         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
61770         block.
61771
61772 2005-10-21  Simon Josefsson  <jas@extundo.com>
61773
61774         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
61775         <bruno@clisp.org>.
61776
61777         * lib/hmac-sha1.c (hmac_sha1): Likewise.
61778
61779         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
61780         Bruno Haible <bruno@clisp.org>.
61781
61782         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
61783         <bruno@clisp.org>.
61784
61785 2005-10-21  Simon Josefsson  <jas@extundo.com>
61786
61787         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
61788
61789 2005-10-21  Simon Josefsson  <jas@extundo.com>
61790
61791         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
61792
61793 2005-10-21  Simon Josefsson  <jas@extundo.com>
61794
61795         * lib/des.h, lib/des.c: New files.
61796
61797         * lib/gc-gnulib.c: Support DES.c
61798
61799 2005-10-21  Simon Josefsson  <jas@extundo.com>
61800
61801         * lib/arctwo.h, lib/arctwo.c: New files.
61802
61803         * lib/gc-gnulib.c: Support ARCTWO.
61804
61805 2005-10-21  Simon Josefsson  <jas@extundo.com>
61806
61807         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
61808         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61809
61810 2005-10-21  Simon Josefsson  <jas@extundo.com>
61811
61812         * gnulib-tool (func_import, func_create_testdir): Define automake
61813         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
61814         Makefile.am snippet),
61815         suggested by Bruno Haible <bruno@clisp.org>.
61816
61817         * modules/gc (Makefile.am): Use it.
61818
61819 2005-10-21  Bruno Haible  <bruno@clisp.org>
61820
61821         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
61822         patch.
61823
61824 2005-10-19  Simon Josefsson  <jas@extundo.com>
61825
61826         * tests/test-gc-rijndael.c: New file.
61827
61828         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
61829
61830 2005-10-19  Simon Josefsson  <jas@extundo.com>
61831
61832         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
61833         interface too.
61834
61835 2005-10-19  Simon Josefsson  <jas@extundo.com>
61836
61837         * tests/test-gc-arcfour.c: New file.
61838
61839         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
61840
61841 2005-10-19  Simon Josefsson  <jas@extundo.com>
61842
61843         * modules/gc-md4, modules/gc-md4-tests: New file.
61844
61845         * tests/test-gc-md4.c: New file.
61846
61847 2005-10-19  Simon Josefsson  <jas@extundo.com>
61848
61849         * m4/gc-md4.m4: New file.
61850
61851 2005-10-19  Simon Josefsson  <jas@extundo.com>
61852
61853         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
61854         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
61855         <kasal@ucw.cz>.
61856
61857 2005-10-19  Simon Josefsson  <jas@extundo.com>
61858
61859         * m4/gc-arcfour.m4: New file.
61860
61861         * m4/gc-rijndael.m4: New file.
61862
61863 2005-10-19  Simon Josefsson  <jas@extundo.com>
61864
61865         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
61866
61867 2005-10-19  Simon Josefsson  <jas@extundo.com>
61868
61869         * lib/gc-gnulib.c: Support ARCFOUR.
61870
61871 2005-10-19  Simon Josefsson  <jas@extundo.com>
61872
61873         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
61874         support.
61875
61876         * lib/gc.h: Add ECB enum type.
61877
61878         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
61879
61880 2005-10-18  Simon Josefsson  <jas@extundo.com>
61881
61882         * tests/test-md5.c: New file.
61883
61884         * modules/md5-tests: New file.
61885
61886 2005-10-18  Simon Josefsson  <jas@extundo.com>
61887
61888         * tests/test-md4.c: New file.
61889
61890         * modules/md4, modules/md4-tests: New files.
61891
61892 2005-10-18  Simon Josefsson  <jas@extundo.com>
61893
61894         * m4/md4.m4: New file.
61895
61896 2005-10-18  Simon Josefsson  <jas@extundo.com>
61897
61898         * lib/md4.h, lib/md4.c: New files, based on md5.?.
61899
61900 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
61901
61902         * gnulib-tool (func_create_testdir): Omit the second check whether
61903         BUILT_SOURCES in nonempty.
61904
61905 2005-10-17  Simon Josefsson  <jas@extundo.com>
61906
61907         * tests/test-rijndael.c: New file.
61908
61909 2005-10-17  Simon Josefsson  <jas@extundo.com>
61910
61911         * modules/sha1: Depend on stdint instead of md5.
61912
61913         * modules/md5: Depend on stdint, remove uint32_t.
61914
61915 2005-10-17  Simon Josefsson  <jas@extundo.com>
61916
61917         * modules/gc-sha1-tests: New file.
61918
61919         * tests/test-gc-sha1.c: New file.
61920
61921 2005-10-17  Simon Josefsson  <jas@extundo.com>
61922
61923         * m4/md5.m4: Remove call to uint32_t.m4.
61924
61925 2005-10-17  Simon Josefsson  <jas@extundo.com>
61926
61927         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
61928
61929         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
61930         md5.h.
61931
61932         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
61933
61934         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
61935
61936 2005-10-17  Simon Josefsson  <jas@extundo.com>
61937
61938         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
61939
61940 2005-10-17  Simon Josefsson  <jas@extundo.com>
61941
61942         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
61943
61944 2005-10-17  Simon Josefsson  <jas@extundo.com>
61945
61946         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
61947
61948         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
61949
61950 2005-10-17  Bruno Haible  <bruno@clisp.org>
61951
61952         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
61953         that it can also be used in a test.
61954
61955 2005-10-16  Bruno Haible  <bruno@clisp.org>
61956
61957         * gnulib-tool (func_emit_tests_Makefile_am): Also define
61958         TESTS_ENVIRONMENT, so that individual tests can augment it.
61959
61960         * gnulib-tool (func_create_testdir): Use an intermediate target for
61961         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
61962         macros, like $(ALLOCA_H), which cannot be passed through the command
61963         line.
61964
61965 2005-10-15  Simon Josefsson  <jas@extundo.com>
61966
61967         * modules/rijndael-tests: New file.
61968
61969         * modules/rijndael: New file.
61970
61971 2005-10-15  Simon Josefsson  <jas@extundo.com>
61972
61973         * m4/rijndael.m4: New file.
61974
61975 2005-10-15  Simon Josefsson  <jas@extundo.com>
61976
61977         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
61978
61979         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
61980
61981 2005-10-14  Simon Josefsson  <jas@extundo.com>
61982
61983         * tests/test-arcfour.c: New file.
61984
61985         * modules/arcfour, modules/arcfour-tests: New files.
61986
61987 2005-10-14  Simon Josefsson  <jas@extundo.com>
61988
61989         * m4/arcfour.m4: New file.
61990
61991 2005-10-14  Simon Josefsson  <jas@extundo.com>
61992
61993         * lib/arcfour.h, lib/arcfour.c: New files.
61994
61995 2005-10-14  Roland McGrath  <roland@redhat.com>
61996
61997         Import from libc.  [BZ #1331]
61998         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
61999         macro argument.
62000         Reported by Matej Vela <vela@debian.org>.
62001
62002 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62003
62004         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
62005         include <wchar.h>; no longer needed.
62006
62007 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62008
62009         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
62010
62011 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
62012         and  Ulrich Drepper  <drepper@redhat.com>
62013
62014         Import from libc.
62015         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
62016         instead of inline stream orientation test and two separate
62017         function calls.  Pay no attention to USE_IN_LIBIO.
62018
62019 2005-10-13  Simon Josefsson  <jas@extundo.com>
62020
62021         * modules/gc-hmac-md5-tests: New file.
62022
62023         * tests/test-gc-hmac-sha1.c: New file.
62024
62025         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
62026
62027         * modules/gc-hmac-md5-tests: New file.
62028
62029         * tests/test-gc-md5.c: New file.
62030
62031         * modules/gc-md5-tests: New file.
62032
62033 2005-10-13  Simon Josefsson  <jas@extundo.com>
62034
62035         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
62036         Move memory allocation outside of loop.
62037
62038 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
62039
62040         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
62041         intermediate directory is in a read-only file system.  Problem
62042         reported by Eric Blake.
62043
62044 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
62045
62046         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
62047
62048 2005-10-12  Simon Josefsson  <jas@extundo.com>
62049
62050         * tests/test-hmac-sha1.c: New file.
62051
62052         * modules/hmac-sha1-tests: New file.
62053
62054         * modules/hmac-sha1: New file.
62055
62056 2005-10-12  Simon Josefsson  <jas@extundo.com>
62057
62058         * modules/gc-sha1: New file.
62059
62060 2005-10-12  Simon Josefsson  <jas@extundo.com>
62061
62062         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
62063
62064         * tests/test-gc-pbkdf2-sha1.c: New file.
62065
62066 2005-10-12  Simon Josefsson  <jas@extundo.com>
62067
62068         * modules/gc-md5, modules/gc-hmac-md5: New files.
62069
62070         * modules/gc (Files): Remove md5, memxor and hmac files.
62071
62072 2005-10-12  Simon Josefsson  <jas@extundo.com>
62073
62074         * m4/gc-pbkdf2-sha1.m4: New file.
62075
62076         * m4/gc-hmac-sha1.m4: New file.
62077
62078         * m4/gc-sha1: New file.
62079
62080         * m4/hmac-sha1.m4: New file.
62081
62082 2005-10-12  Simon Josefsson  <jas@extundo.com>
62083
62084         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
62085
62086         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
62087
62088 2005-10-12  Simon Josefsson  <jas@extundo.com>
62089
62090         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
62091         suggested by Bruno Haible <bruno@clisp.org>.
62092
62093 2005-10-12  Simon Josefsson  <jas@extundo.com>
62094
62095         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
62096
62097 2005-10-12  Simon Josefsson  <jas@extundo.com>
62098
62099         * lib/gc-pbkdf2-sha1.c: New file.
62100
62101         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
62102
62103 2005-10-12  Simon Josefsson  <jas@extundo.com>
62104
62105         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
62106
62107         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
62108
62109 2005-10-12  Simon Josefsson  <jas@extundo.com>
62110
62111         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
62112         GC_USE_HMAC_MD5, respectively.
62113
62114         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
62115         (gc_md5): Fix typo.
62116
62117         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
62118
62119         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
62120
62121         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
62122
62123 2005-10-12  Bruno Haible  <bruno@clisp.org>
62124
62125         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
62126         Reported by Stepan Kasal <kasal@ucw.cz>.
62127
62128 2005-10-11  Simon Josefsson  <jas@extundo.com>
62129
62130         * tests/test-crc.c: New file.
62131
62132         * modules/crc, modules/crc-tests: New files.
62133
62134 2005-10-11  Simon Josefsson  <jas@extundo.com>
62135
62136         * m4/crc.m4: New file.
62137
62138 2005-10-11  Simon Josefsson  <jas@extundo.com>
62139
62140         * lib/gc.h: Add gc_hash and gc_hash_buffer.
62141
62142         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
62143
62144         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
62145
62146 2005-10-11  Simon Josefsson  <jas@extundo.com>
62147
62148         * lib/crc.h, lib/crc.c: New files.
62149
62150         * lib/gc.h (gc_hash_buffer): Add doc.
62151
62152 2005-10-11  Bruno Haible  <bruno@clisp.org>
62153
62154         * modules/c-strcasestr: New file.
62155         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
62156
62157 2005-10-11  Bruno Haible  <bruno@clisp.org>
62158
62159         * modules/c-strcase: New file.
62160         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
62161
62162 2005-10-11  Bruno Haible  <bruno@clisp.org>
62163
62164         * lib/strcasecmp.c: Include limits.h.
62165         (strcasecmp): Avoid integer overflow on exotic platforms.
62166         * lib/strncasecmp.c: Include limits.h.
62167         (strncasecmp): Avoid integer overflow on exotic platforms.
62168         Reported by Paul Eggert.
62169
62170 2005-10-11  Bruno Haible  <bruno@clisp.org>
62171
62172         * lib/c-strcasestr.h: New file, from GNU gettext.
62173         * lib/c-strcasestr.c: New file, from GNU gettext.
62174
62175 2005-10-11  Bruno Haible  <bruno@clisp.org>
62176
62177         * lib/c-strcase.h: New file, from GNU gettext.
62178         * lib/c-strcasecmp.c: New file, from GNU gettext.
62179         * lib/c-strncasecmp.c: New file, from GNU gettext.
62180
62181 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
62182
62183         * modules/mempcpy (License): GPL -> LGPL.
62184         * modules/strchrnul (License): Likewise.
62185         * modules/sysexits (License): Likewise.
62186
62187 2005-10-08  Simon Josefsson  <jas@extundo.com>
62188
62189         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
62190
62191 2005-10-07  Simon Josefsson  <jas@extundo.com>
62192
62193         * m4/memxor.m4: Remove gl_C_RESTRICT call.
62194
62195 2005-10-06  Simon Josefsson  <jas@extundo.com>
62196
62197         * tests/test-hmac-md5.c: New file.
62198
62199         * modules/hmac-md5-tests: New file.
62200
62201         * modules/hmac-md5: New file.
62202
62203 2005-10-06  Simon Josefsson  <jas@extundo.com>
62204
62205         * m4/hmac-md5.m4: New file.
62206
62207         * m4/memxor.m4: Require gl_C_RESTRICT.
62208
62209 2005-10-06  Simon Josefsson  <jas@extundo.com>
62210
62211         * lib/memxor.c (memxor): Avoid casts and warnings.
62212
62213 2005-10-06  Simon Josefsson  <jas@extundo.com>
62214
62215         * lib/hmac-md5.c: New file.
62216
62217         * lib/hmac.h: New file.
62218
62219 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
62220
62221         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
62222         promotes to int, not unsigned int, to catch the AIX 5.3
62223         compiler bug.
62224
62225 2005-10-05  Simon Josefsson  <jas@extundo.com>
62226
62227         * modules/memxor: New file.
62228
62229         * modules/iconv (Files): Move config.rpath to havelib, it is used
62230         there.
62231
62232         * modules/havelib (Files): Add config.rpath.
62233
62234 2005-10-05  Simon Josefsson  <jas@extundo.com>
62235
62236         * m4/memxor.m4: New file.
62237
62238 2005-10-05  Simon Josefsson  <jas@extundo.com>
62239
62240         * lib/memxor.c (memxor): Fix compiler error.
62241
62242         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
62243         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
62244
62245         * lib/memxor.h, lib/memxor.c: New files.
62246
62247         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
62248         we assume all systems have it, suggested by Jim Meyering
62249         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
62250         any systems lack sys/socket.h; mingw32 is known to lack it, but we
62251         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
62252         same reasons.
62253
62254 2005-10-05  Simon Josefsson  <jas@extundo.com>
62255
62256         * config/srclist.txt: Add glibc bug 1423 for md5.h.
62257
62258 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
62259
62260         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
62261         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
62262         needed, since the source code now assumes these .h files.
62263
62264 2005-10-05  Derek Price  <derek@ximbiot.com>
62265
62266         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
62267
62268 2005-10-05  Bruno Haible  <bruno@clisp.org>
62269
62270         * modules/stdint (License): Change to LGPL.
62271
62272 2005-10-04  Simon Josefsson  <jas@extundo.com>
62273
62274         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
62275         D. Baushke" <mdb@gnu.org>.
62276
62277 2005-10-04  Bruno Haible  <bruno@clisp.org>
62278
62279         * lib/verify.h (verify_true): Provide alternative definition for C++.
62280
62281 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
62282
62283         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
62284         (SSIZE_MAX): New macro, if not already defined.
62285         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
62286         than 2 GiB.
62287
62288 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
62289
62290         Sync from coreutils.
62291         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
62292         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
62293         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
62294         ULLONG_MAX doesn't work with 2.7.2.1.
62295
62296 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
62297
62298         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
62299         From Ben Pfaff.
62300
62301         * modules/exclude (Depends-on): Depend on verify.
62302         * modules/strtoimax (Depends-on): Likewise.
62303         * modules/utimecmp (Depends-on): Likewise.
62304
62305 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
62306
62307         * lib/exclude.c: Include verify.h.
62308         (verify): Remove.  All callers changed to use verify.h's version.
62309         * lib/strtoimax.c: Likewise.
62310         * lib/utimecmp.c: Likewis.e
62311
62312         Sync from coreutils.
62313         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
62314         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
62315         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
62316         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
62317         bother returning ENOSYS if settimeofday or stime fails; just let
62318         them return whatever errno they want to return.
62319         * lib/utimens.c: Include unistd.h, for dup2.
62320         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
62321         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
62322
62323 2005-10-02  Jim Meyering  <jim@meyering.net>
62324
62325         Sync from coreutils.
62326         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
62327         from glibc-2.2.5 that fails for read-only files.
62328
62329 2005-10-02  Jim Meyering  <jim@meyering.net>
62330
62331         Sync from coreutils.
62332         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
62333         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
62334         `#if HAVE_CONFIG_H'.
62335         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
62336         Remove AT_FDCWD test.
62337         Do not consume the fd unless successful.
62338         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
62339         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
62340         block, so that we don't even try to compile it if settimeofday is
62341         available.  This works around a compilation failure on OSF1 V5.1,
62342         due to stime requiring a `long int*' while tv_sec is `int'.
62343
62344 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
62345
62346         Sync from coreutils.
62347         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
62348         against `yes', rather than just testing for nonempty.
62349
62350 2005-10-01  Simon Josefsson  <jas@extundo.com>
62351
62352         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
62353         and Darwin.
62354
62355         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
62356         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
62357         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
62358         freeaddrinfo and gai_strerror are declared by the POSIX headers.
62359         Check if struct addrinfo is declared.
62360
62361 2005-10-01  Simon Josefsson  <jas@extundo.com>
62362
62363         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
62364         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
62365         AI_* and EAI_* definitions.  Protect function declarations.
62366
62367 2005-10-01  Jim Meyering  <jim@meyering.net>
62368
62369         Sync from coreutils.
62370
62371         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
62372         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
62373         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
62374         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
62375         in the inet and nsl libraries.  Required on Solaris 5.7.
62376
62377 2005-10-01  Jim Meyering  <jim@meyering.net>
62378
62379         Sync from coreutils.
62380         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
62381         in the inet and nsl libraries.  Required on Solaris 5.7.
62382
62383 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
62384
62385         * lib/getdelim.c (getdelim): Remove unused variables.
62386
62387 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
62388
62389         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
62390         so that the code works even with ancient cpp.  Portability problem
62391         with GCC 2.7.2.1 reported by Thomas M.Ott.
62392
62393 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
62394
62395         * modules/regex (Depends-on): Add strcase.
62396
62397         * modules/gethostname (Licence): Change from GPL to LGPL, since
62398         gethostname.c is a trivial implementation of a standard library
62399         function.
62400         * modules/poll (License): Change from GPL to LGPL, since it's
62401         derived from LGPL code.
62402
62403 2005-09-27  Jim Meyering  <jim@meyering.net>
62404
62405         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
62406         HAVE_CONFIG_H.
62407
62408         * lib/intprops.h (signed_type_or_expr__): Define.
62409         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
62410         for unsigned types.
62411
62412 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
62413
62414         * lib/verify.h (verify_expr): Remove, replacing with:
62415         (verify_true): New macro that returns true instead of void.
62416         (verify_type__): Remove.
62417         (verify): Use verify_true rather than verify_type__.
62418
62419 2005-09-26  Bruno Haible  <bruno@clisp.org>
62420
62421         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
62422         is necessary.
62423         (lib_SOURCES): Remove mbchar.c.
62424         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
62425         (Files): Add m4/mbrtowc.m4.
62426         * modules/mbiter: Likewise.
62427         * modules/mbuiter: Likewise.
62428
62429 2005-09-26  Bruno Haible  <bruno@clisp.org>
62430
62431         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
62432         compile mbchar.c if they are not both present.
62433         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
62434         * m4/mbiter.m4 (gl_MBITER): Likewise.
62435         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
62436         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
62437         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
62438
62439 2005-09-25  Jim Meyering  <jim@meyering.net>
62440
62441         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
62442         also uses socklen_t.
62443
62444 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
62445
62446         * lib/utimens.c (ENOSYS): Define if not already defined.
62447         (futimens): Support having a null PATH if the file descriptor
62448         is nonnegative.
62449
62450         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
62451         Remove.
62452         (__attribute): Define to empty unless GCC 3.1 or later.
62453         This works around a core dump on OpenBSD 3.4, which has GCC
62454         2.95.3, which dumps core when given __attribute__(()).  It also
62455         simplifies other tests, since we really don't want to bother with
62456         worrying about which ancient version of GCC supported what.
62457         Original problem reported by Yoann Vandoorselaere, with part of
62458         the fix suggested by Derek Price.
62459
62460 2005-09-24  Jim Meyering  <jim@meyering.net>
62461
62462         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
62463         so we can once again use a positive bitfield width of 1 -- now we
62464         don't have to explain why we were using a bitfield width of 2.
62465
62466 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
62467
62468         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
62469         and similarly for the other external symbols.  Problem reported
62470         by James Gallager.
62471
62472         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
62473         bug reported by Jim Meyering.
62474
62475         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
62476         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
62477         not needed, since socklen is a prerequisite module.
62478
62479 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
62480
62481         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
62482         Problem reported by Eric Blake.
62483         (getaddrinfo): Initialize se so that it's not garbage.
62484         Redo internal storage allocation so that it doesn't make unportable
62485         assumptions about alignment.
62486         Fix a memory leak.
62487
62488         * lib/utimens.c (futimens): Use futimesat if available.
62489         Prefer it to futimes since it doesn't have the futimes bug.
62490
62491         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
62492         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
62493         Instead, declare a function that returns a pointer to an array,
62494         and use verify_type__ to declare the size of the array.
62495         Problem and germ of a solution reported by Bruno Haible.
62496         (verify_type__): Use 2, not 1, for bitfield size, to avoid
62497         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
62498
62499 2005-09-23  Jim Meyering  <jim@meyering.net>
62500
62501         Sync from coreutils.
62502         Correct build failure (socklen_t not defined) on at least
62503         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
62504         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
62505
62506 2005-09-23  Jim Meyering  <jim@meyering.net>
62507
62508         * modules/getaddrinfo (Depends-on): Add socklen.
62509
62510 2005-09-23  Bruno Haible  <bruno@clisp.org>
62511
62512         * tests/test-verify.c: New file.
62513
62514 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62515
62516         Sync from coreutils.
62517
62518         * modules/argmatch (Depends-on): Add verify.
62519         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
62520         unistd-safer.
62521         * modules/save-cwd (Depends-on): Likewise.
62522
62523         * modules/openat (Files): Add lib/openat-die.c.
62524         (Depends-on): Remove error, exitfail.
62525         Add dirname.
62526
62527         * modules/verify: New file.
62528         * MODULES.html.sh (Diagnostics <assert.h>): New section,
62529         with "verify" module.
62530
62531 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62532
62533         Sync from coreutils.
62534
62535         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
62536         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
62537         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
62538         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
62539         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
62540         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
62541         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
62542         Don't bother checking for string.h, stdlib.h, unistd.h.
62543         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
62544         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
62545         module's job.
62546         * m4/jm-macros.m4 (gl_MACROS): Likewise.
62547         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
62548
62549         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
62550         (gl_GETDATE): Use it.
62551
62552         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
62553
62554 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62555
62556         Sync from coreutils.
62557
62558         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
62559         stat-time.h.
62560         * lib/argmatch.h: Include verify.h
62561         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
62562         (ARGMATCH_ASSERT): Remove; unused.
62563         * lib/canonicalize.c: Assume STDC_HEADERS.
62564         * lib/exclude.c: Include "strcase.h".
62565         * lib/regex_internal.h [!defined _LIBC]: Likewise.
62566         * lib/getusershell.c: Include stdio--.h rather than stdio.h
62567         and stdio-safer.h.
62568         (getusershell): Call fopen, not fopen_safer.
62569         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
62570         Do not include unistd-safer.h.
62571         (save_cwd): Don't call fd_safer; no longer needed
62572         now that we include fcntl--.h.
62573
62574         * lib/getdate.y (relative_time): New type.
62575         (RELATIVE_TIME_0): New constant.
62576         (parser_control): Use relative_time instead of doing it ourselves.
62577         (%union): Add new relative_time rel member.
62578         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
62579         Now typeless.
62580         (relunit, relunit_snumber): Now of type rel.
62581         (zone, rel, relunit, get_date): Adjust to above changes.
62582
62583         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
62584         Do not include unistd-safer.h.
62585         (getloadavg): Don't call fd_safer; no longer needed
62586         now that we include fcntl--.h.
62587
62588         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
62589         (make_dir_parents): Treat ENOSYS like EEXIST.
62590
62591         Improve quality of diagnostics on restore_cwd failure.
62592         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
62593         (make_dir_parents): Last arg is now int * (for errno), not bool *.
62594         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
62595         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
62596         each time through the loop.  Do not diagnose restore_cwd failure;
62597         that is the caller's job (and perhaps the caller does not care).
62598
62599         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
62600         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
62601         If the file already exists but is not a directory, don't bother
62602         to try to make its parents.
62603         Close potential file descriptor leak if we can't chdir("/") (!).
62604         Don't always return true if chdir($PWD) fails; return true only
62605         if the requested action was done successfully (except for the
62606         chdir($PWD)).
62607         Don't log final directory unless we actually made it.
62608         Refactor to avoid duplicate code to fix up permissions.
62609         Don't attempt to fix up parent permissions if chdir($PWD) fails.
62610
62611         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
62612         to make it a bit faster and (I hope) clearer.
62613         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
62614         Fix bug in formats like %2N.
62615
62616         * lib/verify.h: New file.
62617
62618 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62619
62620         Sync from coreutils.
62621         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
62622
62623 2005-09-22  Jim Meyering  <jim@meyering.net>
62624
62625         Sync from coreutils.
62626
62627         * m4/lstat.m4 (gl_FUNC_LSTAT):
62628         Use AC_LIBSOURCES to require lstat.c and lstat.h.
62629         Remove obsolete comment.
62630         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
62631         * m4/xstrtod.m4: Likewise.
62632
62633         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
62634
62635 2005-09-22  Jim Meyering  <jim@meyering.net>
62636
62637         Sync from coreutils.
62638
62639         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
62640
62641         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
62642         the .tm_year member, since otherwise gcc-4.0 would now warn about
62643         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
62644
62645         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
62646         order to avoid an unsuppressible warning from gcc on 64-bit systems.
62647
62648         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
62649         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
62650         when run in a time zone for which daylight savings time is in effect
62651         for the starting date.
62652
62653         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
62654         stop us from restricting permissions of just-created absolute-named
62655         directories.
62656         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
62657         to restore initial working directory.
62658         * lib/mkdir-p.c (make_dir_parents): New parameter:
62659         different_working_dir, to tell caller if/when we change the working
62660         directory and are unable to return to the initial one.
62661         * lib/mkdir-p.h (make_dir_parents): Update prototype.
62662         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
62663         `return false'.  This fixes a bug introduced on 2004-07-30.
62664
62665         * lib/openat.c (fdopendir): Be sure to close the supplied
62666         file descriptor before returning.  This makes our replacement
62667         implementation a little closer to Solaris's, where fdopendir
62668         ties the file descriptor to the returned DIR* pointer.
62669         * lib/openat.c (unlinkat): New function.
62670         * lib/openat.h (unlinkat): Add prototype.
62671         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
62672         (openat_restore_fail): Rename from openat_restore_die.
62673         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
62674
62675         Provide an alternative to exiting immediately upon save_cwd or
62676         restore_cwd failure.  Now, an application can arrange e.g.,
62677         to perform a longjump in that case.
62678         * lib/openat.c: Include dirname.h.
62679         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
62680         (rpl_openat, fdopendir, fstatat): Call openat_save_die
62681         and openat_restore_die rather than calling error directly.
62682         Don't include "error.h" or "exitfail.h"; they're no longer needed.
62683
62684         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
62685         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
62686         define.
62687
62688         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
62689         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
62690                             int utc, int nanoseconds);
62691         Background:
62692         date should not have to allocate a megabyte of virtual memory to
62693         handle a format argument like +%1048575T.  When implemented with
62694         strftime, it must allocate such a buffer, use strftime to fill it
62695         in, print it, then free it.
62696         With fprintftime, it simply prints everything and exits.
62697         With no need for memory allocation, that's one fewer way to fail.
62698         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
62699         optional field width, not before, so we accept %9:z, not %:9z.
62700         (my_strftime): Be sure to use L_('x') for literals.
62701
62702         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
62703         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
62704         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
62705         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
62706         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
62707         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
62708         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
62709         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
62710         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
62711         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
62712         * lib/xgethostname.c, lib/xreadlink.c:
62713         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
62714
62715         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
62716         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
62717         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
62718         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
62719         and don't include <sys/file.h>).
62720
62721 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
62722
62723         Sync from coreutils.
62724
62725         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
62726         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
62727         [!LDAV_DONE]: Avoid unused variable warning.
62728
62729 2005-09-21  Bruno Haible  <bruno@clisp.org>
62730
62731         * lib/unicodeio.h (unicode_to_mb): New declaration.
62732
62733 2005-09-20  Derek Price  <derek@ximbiot.com>
62734
62735         * lib/getaddrinfo.c: Don't include <netdb.h> included from
62736         getaddrinfo.h.
62737
62738 2005-09-20  Bruno Haible  <bruno@clisp.org>
62739
62740         * gnulib-tool: Remove trailing slashes from the values specified for
62741         --source-base, --m4-base, --tests-base, --aux-dir.
62742         Suggested by Simon Josefsson <jas@extundo.com>.
62743
62744 2005-09-20  Bruno Haible  <bruno@clisp.org>
62745
62746         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
62747         func_modules_to_filelist, func_import, func_create_testdir): Make all
62748         sorting results locale-independent, so that gnulib-cache.m4 doesn't
62749         change when gnulib-tool is invoked in a different locale.
62750
62751 2005-09-19  Simon Josefsson  <jas@extundo.com>
62752
62753         * m4/socklen.m4: Fix typo.
62754
62755 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62756
62757         Use a consistent style for including <config.h>.
62758         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
62759         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
62760         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
62761         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
62762         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
62763         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
62764         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
62765         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
62766         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
62767         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
62768         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
62769         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
62770         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
62771         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
62772         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
62773         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
62774         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
62775         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
62776         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
62777         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
62778         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
62779         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
62780         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
62781         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
62782         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
62783         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
62784         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
62785         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
62786         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
62787         lib/xstrtoumax.c, lib/yesno.c:
62788         Standardize inclusion of config.h.
62789         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
62790         lib/inttostr.h:  Removed inclusion of config.h from header files.
62791         * lib/inttostr.c:  Adjusted in-tree users.
62792         * lib/timespec.h: Remove superfluous warning to include config.h.
62793         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
62794         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
62795         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
62796         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
62797         config.h with HAVE_CONFIG_H.
62798
62799 2005-09-19  Jim Meyering  <jim@meyering.net>
62800
62801         * modules/pathmax (License): Change to LGPL.
62802
62803 2005-09-19  Derek Price  <derek@ximbiot.com>
62804
62805         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
62806
62807 2005-09-19  Bruno Haible  <bruno@clisp.org>
62808
62809         * gnulib-tool (import): Provide default for --tests-base.
62810
62811 2005-09-19  Bruno Haible  <bruno@clisp.org>
62812
62813         * doc/quote.texi: New file, extracted from gnulib.texi.
62814         * doc/ctime.texi: New file, extracted from gnulib.texi.
62815         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
62816         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
62817         * doc/gnulib.texi: Include them.
62818
62819 2005-09-18  Bruno Haible  <bruno@clisp.org>
62820
62821         Portability fix.
62822         * gnulib-tool (func_readlink): New function.
62823         (func_ln_if_changed): Use it.
62824
62825 2005-09-18  Bruno Haible  <bruno@clisp.org>
62826
62827         * gnulib-tool: Support --with-tests also with --import.
62828         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
62829         (func_import): Use variables $testsbase and $inctests. Emit a
62830         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
62831         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
62832         SUBDIRS += $testsdir.
62833         (func_create_testdir): Update.
62834
62835 2005-09-18  Bruno Haible  <bruno@clisp.org>
62836
62837         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
62838         instead of $dry_run.
62839         (func_cp_if_changed, func_mv_if_changed): Remove functions.
62840         (func_ln_if_changed): Don't handle dry-run here.
62841         (func_import): In dry-run mode, detect more precisely which actions
62842         would be performed, and don't use "...ing" verbs.
62843
62844 2005-09-18  Bruno Haible  <bruno@clisp.org>
62845
62846         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
62847         (func_import): Use join on two temporary files instead of three nested
62848         loops, in order to determine which files are new or old.
62849
62850 2005-09-18  Bruno Haible  <bruno@clisp.org>
62851
62852         * gnulib-tool (func_import): Comment out code that spits out the
62853         new files with --dry-run.
62854
62855 2005-09-18  Bruno Haible  <bruno@clisp.org>
62856
62857         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
62858
62859 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
62860
62861         * lib/stat-time.h: New file.
62862         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
62863         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
62864         in a different way.
62865         (timespec_cmp): New function.
62866         * lib/utimecmp.c: Include stat-time.h.
62867         (SYSCALL_RESOLUTION): Depend on whether various struct stat
62868         members exist, not on the obsolescent ST_MTIM_NSEC.
62869         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
62870
62871 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
62872
62873         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
62874
62875 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
62876
62877         * MODULES.html.sh (File system functions): Add stat-time.
62878         * modules/stat-time: New file.
62879         * modules/timespec (Files): Remove m4/st_mtim.m4; this
62880         is now done in a different way, by the stat-time module.
62881         * modules/utimecmp (Depends-on): Add stat-time.
62882
62883 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62884
62885         * m4/st_mtim.m4: Remove.  Superseded by...
62886         * m4/stat-time.m4: New file.
62887         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
62888         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
62889
62890 2005-09-15  Derek Price  <derek@ximbiot.com>
62891
62892         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
62893
62894 2005-09-15  Derek Price  <derek@ximbiot.com>
62895
62896         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
62897         * lib/regex_internal.c: Ditto, using this...
62898         (__GNUC_PREREQ): ...new macro.
62899         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
62900         using...
62901         (__GNUC_PREREQ): ...this new macro.
62902
62903         * lib/strstr.h: Include string.h. Define strstr as a macro here.
62904
62905 2005-09-15  Derek Price  <derek@ximbiot.com>
62906             Paul Eggert  <eggert@cs.ucla.edu>
62907
62908         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
62909         changes, consolidating in...
62910         * lib/regex_internal.h: ...this file.
62911
62912 2005-09-13  Jim Meyering  <jim@meyering.net>
62913
62914         * lib/canon-host.c: Filter through gnu indent and reword comments
62915         slightly.
62916         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
62917
62918 2005-09-13  Derek Price  <derek@ximbiot.com>
62919
62920         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
62921         failure.
62922         Reported by Jim Meyering  <jim@meyering.net>.
62923
62924 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62925
62926         * lib/base64.c: Typo.
62927         (base64_encode): Put b64str in initialized data section.
62928
62929 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
62930
62931         Merge glibc and coreutils changes into gnulib, plus a few
62932         extra fixes.
62933         * lib/md5.c: Use #error rather than a string.
62934         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
62935         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
62936         (__attribute__): Define to empty for non recent-GCC.
62937         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
62938         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
62939         Renamed from their non-__ counterparts, with new macros replacing
62940         them if not _LIBC.  Add __THROW attribute.
62941         (rol): Remove.
62942         (struct md5_ctx): Align buffer if using GCC.
62943         * lib/sha1.h (struct sha1_ctx): Likewise.
62944         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
62945         The old name was backwards.
62946         (NOTSWAP): Remove; not used.
62947         (rol): New macro, moved here from md5.h.
62948         (sha1_process_block): Remove a FIXME that doesn't make sense.
62949
62950 2005-09-12  Derek Price  <derek@ximbiot.com>
62951
62952         Return usable errors from canon-host.
62953         * lib/canon-host.h: New file.
62954         * lib/canon-host.c (canon_host): Wrap...
62955         (canon_host_r): ...this new function, which now relies exclusively on
62956         getaddrinfo.
62957         (ch_strerror): New function.
62958         (last_cherror): New global.
62959         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
62960         interface.
62961         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
62962         void *.
62963         (freeaddrinfo): Free ai->ai_canonname when set.
62964
62965 2005-09-12  Derek Price  <derek@ximbiot.com>
62966
62967         Make canon-host require getaddrinfo.
62968         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
62969         AC_LIBSOURCE canon-host.h.  Call...
62970         (gl_PREREQ_CANON_HOST): ...this new function, which requires
62971         gl_GETADDRINFO.
62972         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
62973
62974 2005-09-12  Derek Price  <derek@ximbiot.com>
62975
62976         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
62977         LGPL.
62978         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
62979
62980 2005-09-12  Derek Price  <derek@ximbiot.com>
62981
62982         * lib/gai_strerror.c: Include config.h when available.  Include
62983         getaddrinfo.h before other headers to test interface.
62984         Reported by Larry Jones <lawrence.jones@ugs.com>.
62985
62986 2005-09-12  Derek Price  <derek@ximbiot.com>
62987             Paul Eggert  <eggert@cs.ucla.edu>
62988
62989         * modules/glob (Files): Add glob-libc.h.
62990
62991 2005-09-12  Derek Price  <derek@ximbiot.com>
62992             Paul Eggert  <eggert@cs.ucla.edu>
62993
62994         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
62995         glob_.h, glob-libc.h.
62996         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
62997
62998 2005-09-12  Derek Price  <derek@ximbiot.com>
62999             Paul Eggert  <eggert@cs.ucla.edu>
63000
63001         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
63002         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
63003         protecting things that should be done only in gnulib contexts.
63004         * lib/glob_.h: New file, containing only the glob things needed for
63005         gnulib.
63006         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
63007         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
63008         (glob, globfree, glob_pattern_p): Now defined simply in terms of
63009         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
63010         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
63011         and to respect the namespace rules better.
63012
63013 2005-09-08  Simon Josefsson  <jas@extundo.com>
63014
63015         * modules/socklen: New file.
63016
63017 2005-09-08  Simon Josefsson  <jas@extundo.com>
63018
63019         * m4/socklen.m4: New file.
63020
63021 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63022
63023         * modules/utimens (Files): Add m4/utimbuf.m4, since
63024         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
63025         Reported by Sergey Poznyakoff.
63026
63027 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63028
63029         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
63030         definitions, since that's the preferred style in glibc.
63031         Fix a minor spacing issue, and update copyright notice to match
63032         glibc's.
63033
63034 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63035
63036         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
63037
63038 2005-09-06  Simon Josefsson  <jas@extundo.com>
63039
63040         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
63041         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
63042
63043 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63044
63045         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
63046         warning.
63047
63048 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63049
63050         * config/srclist.txt: Add glibc bug 1302.
63051
63052 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
63053
63054         Change bitset word type from unsigned int to unsigned long int,
63055         as this has better performance on typical 64-bit hosts.
63056         Port bitset code to hosts with unusual word sizes.
63057         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
63058         (build_collating_symbol):
63059         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
63060         argument is a bitset.  This is merely a style issue, but it makes
63061         it clearer that an entire array is expected.
63062         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
63063         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
63064         Port to the case where bitset_word is not the same as unsigned int.
63065         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
63066         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
63067         Likewise.
63068         * lib/regexec.c (check_dst_limits_calc_pos_1,
63069         check_subexp_matching_top):
63070         (build_trtable, group_nodes_into_DFAstates):
63071         Likewise.
63072         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
63073         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
63074         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
63075         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
63076         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
63077         * lib/regcomp.c (optimize_subexps, lower_subexp):
63078         Work even if bitset_word has holes in its bitwise representation.
63079         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
63080         * lib/regexec.c (check_dst_limits_calc_pos_1,
63081         check_subexp_matching_top):
63082         Likewise.
63083         * lib/regex_internal.c (re_string_reconstruct):
63084         Don't assume UCHAR_MAX == 255.
63085         * lib/regex_internal.h (bitset_set_all): Likewise.
63086         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
63087         All uses changed.
63088         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
63089         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
63090         All uses changed.
63091         (BITSET_WORD_MAX): New macro.
63092         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
63093         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
63094         (bitset_empty, bitset_copy):
63095         Prefer sizeof (bitset) to multiplying it out ourselves.
63096         (bitset_not_merge): Remove; unused.
63097         (bitset_contain): Return bool, not unsigned int with one bit on.
63098         All callers changed.
63099         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
63100         alignment than re_node_set; do this by defining a new internal
63101         type struct dests_alloc and using it to allocate memory.
63102
63103 2005-09-05  Bruno Haible  <bruno@clisp.org>
63104
63105         * gnulib-tool (func_import): Fix comparison in handling of symbolic
63106         links.
63107
63108 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
63109
63110         * modules/size_max (Makefile.am): Add size_max.h
63111
63112 2005-09-04  Derek Price  <derek@ximbiot.com>
63113
63114         * gnulib-tool (func_import): Fix reversed $symbolic logic.
63115
63116 2005-09-03  Simon Josefsson  <jas@extundo.com>
63117
63118         * gnulib-tool: Fix typo.
63119
63120 2005-09-03  Simon Josefsson  <jas@extundo.com>
63121
63122         * config/srclist.txt: Add glibc bug 1293.
63123
63124 2005-09-03  Derek Price  <derek@ximbiot.com>
63125
63126         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
63127         From Larry Jones <lawrence.jones@ugs.com>.
63128
63129 2005-09-02  Simon Josefsson  <jas@extundo.com>
63130
63131         * modules/socklen: New file.
63132
63133 2005-09-02  Simon Josefsson  <jas@extundo.com>
63134
63135         * modules/havelib: New module.
63136
63137         * modules/gettext, modules/iconv, modules/lock, modules/readline:
63138         Use havelib.
63139
63140 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
63141
63142         Check for arithmetic overflow when calculating sizes, to prevent
63143         some buffer-overflow issues.  These patches are conservative, in the
63144         sense that when I couldn't determine whether an overflow was possible,
63145         I inserted a run-time check.
63146         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
63147         macros.
63148         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
63149         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
63150         (re_xnrealloc, re_x2nrealloc): New inline functions.
63151         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
63152         parse_bracket_exp):
63153         (build_equiv_class, build_charclass): Check for arithmetic overflow
63154         in size expression calculations.
63155         * lib/regex_internal.c (re_string_realloc_buffers):
63156         (build_wcs_upper_buffer, re_node_set_add_intersect):
63157         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
63158         (re_dfa_add_node, register_state): Likewise.
63159         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
63160         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
63161         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
63162         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
63163
63164 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
63165
63166         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
63167         m4/ulonglong.m4.  Problem reported by Martin Lambers.
63168
63169 2005-09-02  Bruno Haible  <bruno@clisp.org>
63170
63171         Support for lib vs. lib64 distinction on biarch platforms.
63172         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
63173         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
63174         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
63175
63176 2005-09-02  Bruno Haible  <bruno@clisp.org>
63177
63178         * gnulib-tool (import): In the other first-use case, provide defaults
63179         as well.
63180
63181 2005-09-02  Bruno Haible  <bruno@clisp.org>
63182
63183         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
63184         patches not yet found in the latest gettext release.
63185
63186 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63187
63188         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
63189         to avoid a collision with bits/local_lim.h in glibc.
63190         All uses changed.  Problem reported by Dmitry V. Levin in
63191         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
63192
63193         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
63194         bugs in int versus size_t comparisons.
63195         (re_string_context_at): Fix bug where the code assumed that
63196         Idx is signed.
63197
63198         Use bool where appropriate.
63199         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
63200         All callers changed.
63201         (calc_eclosure_iter): Likewise, for ROOT arg.
63202         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
63203         (build_charclass_op): Likewise, for NON_MATCH arg.
63204         * lib/regex_internal.c (re_string_allocate, re_string_construct):
63205         (re_string_construct_common): Likewise, for ICASE arg.
63206         * lib/regexec.c (re_search_2_stub, re_search_stub):
63207         Likewise, for RET_LEN arg.
63208         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
63209         (set_regs): Likewise, for FL_BACKTRACK arg.
63210         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
63211         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
63212         (calc_eclosure_iter, parse_bracket_exp):
63213         Use bool for internal variables that are booleans.
63214         * lib/regexec.c (re_search_internal, check_matching,
63215         proceed_next_node):
63216         (set_regs, build_sifted_states, sift_states_bkref):
63217         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
63218         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
63219         (find_collation_sequence_value):
63220         Likewise.
63221         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
63222         (re_node_set_compare):
63223         Return bool, not int. All callers changed.
63224         * lib/regexec.c (check_halt_node_context, check_dst_limits):
63225         (build_trtable, check_node_accept): Likewise.
63226         * lib/regex_internal.h: Include stdbool.h.
63227
63228         Fix bugs uncovered when converting to bool.
63229         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
63230         failure instead of charging ahead blindly.
63231         * lib/regex_internal.c (register_state): Likewise.
63232         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
63233         for freeing internal storage.
63234         (group_nodes_into_DFA_states): Use unsigned int, not int, for
63235         bitset pieces used as boolean, to avoid undefined behavior
63236         on hosts that do int overflow checking.
63237
63238 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63239
63240         * config/srclist.txt: Add glibc bugs 1285-1287.
63241
63242 2005-09-01  Jim Meyering  <jim@meyering.net>
63243
63244         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
63245         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
63246         Require gl_STAT_MACROS, too.
63247
63248 2005-09-01  Bruno Haible  <bruno@clisp.org>
63249
63250         * gnulib-tool (import): In the first-use case, provide defaults.
63251
63252 2005-09-01  Bruno Haible  <bruno@clisp.org>
63253
63254         * gnulib-tool (func_import): Remove the .tmp files.
63255
63256 2005-09-01  Bruno Haible  <bruno@clisp.org>
63257
63258         * gnulib-tool (func_import): Fix handling of symbolic links.
63259
63260 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63261
63262         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
63263         old glibc regex code mishandles strings longer than 2**31 bytes.
63264         This patch fixes this when the regex code is used in gnulib
63265         (i.e., outside glibc).
63266
63267         This patch should not affect the use of the regex code inside
63268         glibc.  No doubt this problem also needs to be handled for glibc
63269         as well, but the result will be an incompatible change to the
63270         glibc ABI, and the old ABI will have to be supported too.  That
63271         can be the the subject for another patch.
63272
63273         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
63274         governing whether the rest of this patch is active.  By default,
63275         the macro is disabled and the patch has no effect.
63276         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
63277         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
63278         (struct re_pattern_buffer, re_search, re_search_2, re_match):
63279         (re_match_2, re_set_registers): Use the new types.
63280         * lib/regex_internal.h (Idx, re_hashval_t): New types.
63281         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
63282         New macros.
63283         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
63284         (re_string_context_at, bin_tree_t, re_dfastate_t):
63285         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
63286         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
63287         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
63288         (re_string_char_size_at, re_string_wchar_at):
63289         (re_string_elem_size_at):
63290         Use the new types and macros to port to 64-bit hosts.
63291         Use unsigned types for internal values, so that the code
63292         mostly works even for arrays larger than SSIZE_MAX.
63293         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
63294         (search_duplicated_node, calc_eclosure_iter, fetch_number):
63295         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
63296         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
63297         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
63298         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
63299         (calc_inveclosure, parse_dup_op, build_range_exp):
63300         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
63301         (fetch_number, create_token_tree, mark_opt_subexp):
63302         Likewise.
63303         * lib/regex_internal.c (re_string_construct_common,
63304         create_ci_newstate):
63305         (create_cd_newstate, re_string_allocate, re_string_construct):
63306         (re_string_realloc_buffers, build_wcs_upper_buffer):
63307         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
63308         (re_string_reconstruct, re_string_peek_byte_case):
63309         (re_string_fetch_byte_case, re_string_context_at):
63310         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
63311         (re_node_set_init_copy, re_node_set_add_intersect):
63312         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
63313         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
63314         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
63315         (re_acquire_state, re_acquire_state_context, register_state):
63316         Likewise.
63317         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
63318         search_cur_bkref_entry):
63319         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
63320         (re_search_internal, re_search_2_stub, re_search_stub)
63321         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
63322         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
63323         (update_cur_sifted_state, check_dst_limits):
63324         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
63325         (check_subexp_limits, sift_states_bkref, merge_state_array):
63326         (check_subexp_matching_top, get_subexp, get_subexp_sub):
63327         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
63328         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
63329         (expand_bkref_cache, check_node_accept_bytes):
63330         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
63331         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
63332         (acquire_init_state_context, check_halt_node_context):
63333         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
63334         (sift_states_backward, clean_state_log_if_needed):
63335         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
63336         (find_recover_state, transit_state_sb, transit_state_mb):
63337         (transit_state_bkref, build_trtable, match_ctx_clean):
63338         Likewise.
63339         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
63340         to work around an assumption that REG_MISSING is negative.
63341
63342         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
63343         (seek_collating_symbol_entry) [defined _LIBC]:
63344         (lookup_collation_sequence_value) [defined _LIBC]:
63345         (build_range_exp, build_collating_symbol) [defined _LIBC]:
63346         Use prototypes rather than old-style function definitions.
63347         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
63348         (transit_state_sb) [0]:
63349         (find_collation_sequence_value) [defined _LIBC]: Likewise.
63350
63351         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
63352         rm_eo.
63353
63354         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
63355         (optimize_subexps, lower_subexp):
63356         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
63357         since the signed shift might overflow.  Use 1u<<31 instead.
63358         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
63359         Likewise.
63360         * lib/regexec.c (check_dst_limits_calc_pos_1,
63361         check_subexp_matching_top): Likewise.
63362
63363         * lib/regcomp.c (optimize_subexps, lower_subexp):
63364         Use CHAR_BIT rather than 8, for clarity.
63365         * lib/regexec.c (check_dst_limits_calc_pos_1):
63366         (check_subexp_matching_top): Likewise.
63367         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
63368         have to worry about portability issues when shifting it left.
63369         Remove no-longer-needed test for table_size > 0.
63370         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
63371         in a word, as the resulting behavior is undefined.
63372         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
63373         in one case, a <= should have been an <, and in another case the
63374         whole test was missing.
63375         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
63376         the standard name CHAR_BIT.
63377         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
63378         this is not true on one's complement and signed-magnitude hosts.
63379
63380         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
63381         next_last_offset.
63382         (struct re_dfa_t): Remove unused member states_alloc.
63383         * lib/regcomp.c (init_dfa): Don't initialize unused members.
63384
63385 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63386
63387         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
63388         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
63389         and large-file glibc and in 32-bit large-file Solaris.
63390
63391 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63392
63393         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
63394         lengths fit in regoff_t; this isn't true if regoff_t is the same
63395         width as size_t.
63396         * lib/regex.c (re_search_internal): 5th arg is LAST_START
63397         (= START + RANGE) instead of RANGE.  This avoids overflow
63398         problems when regoff_t is the same width as size_t.
63399         All callers changed.
63400         (re_search_2_stub): Check for overflow when adding the
63401         sizes of the two strings.
63402         (re_search_stub): Check for overflow when adding START
63403         to RANGE; if it occurs, substitute the extreme value.
63404
63405 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63406
63407         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
63408
63409 2005-08-31  Jim Meyering  <jim@meyering.net>
63410
63411         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
63412         a pointer-to-const.
63413         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
63414         (register_state): Likewise.
63415         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
63416         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
63417         (group_nodes_into_DFAstates): Likewise.
63418
63419 2005-08-31  Jim Meyering  <jim@meyering.net>
63420
63421         * check-module: Add a FIXME comment.
63422
63423 2005-08-31  Eric Blake  <ebb9@byu.net>
63424
63425         * modules/unistd-safer (Files): Add unistd--.h.
63426         * modules/stdio-safer (Files): Add stdio--.h.
63427
63428 2005-08-31  Derek Price  <derek@ximbiot.com>
63429
63430         * lib/getdelim.c (getdelim): Return EOF on EOF.
63431         Reported by Larry Jones <lawrence.jones@ugs.com>.
63432
63433 2005-08-31  Bruno Haible  <bruno@clisp.org>
63434
63435         Avoid unnecessary diffs in the generated lib/Makefile.am.
63436         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
63437         the generated files.
63438         (func_import): Don't set cmd.
63439
63440 2005-08-31  Bruno Haible  <bruno@clisp.org>
63441
63442         * lib/strstr.c: Include <stddef.h>, for NULL.
63443         * lib/strcasestr.c: Likewise.
63444         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63445
63446 2005-08-31  Bruno Haible  <bruno@clisp.org>
63447
63448         * gnulib-tool: New option --macro-prefix.
63449         (func_import): Use macro_prefix.
63450         (import): Handle option --macro-prefix.
63451
63452 2005-08-31  Bruno Haible  <bruno@clisp.org>
63453
63454         * gnulib-tool (import): Rename most ac_* variables to cached_*.
63455         Also use new variables cached_lgpl, cached_libtool.
63456
63457 2005-08-31  Bruno Haible  <bruno@clisp.org>
63458
63459         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
63460         always instantiating them.
63461
63462 2005-08-31  Bruno Haible  <bruno@clisp.org>
63463
63464         * gnulib-tool (func_import): Read the previous cached settings
63465         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
63466         earlier added by gnulib but are now dropped. Warn when a gnulib file
63467         overwrites a non-gnulib file.
63468
63469 2005-08-31  Bruno Haible  <bruno@clisp.org>
63470
63471         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
63472         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
63473         projects that don't keep autogenerated files in CVS. Put into
63474         actioncmd only the specified modules, not the transitive closure.
63475
63476 2005-08-31  Bruno Haible  <bruno@clisp.org>
63477
63478         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
63479         Create directories that shall be filled.
63480         (import): Don't look for gl_* macros in configure.ac. Recurse across
63481         all directories containing a gnulib-cache.m4 files, if meaningful.
63482
63483 2005-08-31  Bruno Haible  <bruno@clisp.org>
63484
63485         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
63486         (import): Set seen_libtool when we see gl_LIBTOOL.
63487
63488 2005-08-31  Bruno Haible  <bruno@clisp.org>
63489
63490         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
63491         declaration macro definitions from generated gnulib.m4.
63492
63493 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
63494
63495         * lib/iconvme.h: Add prototype for iconv_alloc.
63496
63497 2005-08-29  Simon Josefsson  <jas@extundo.com>
63498
63499         * lib/iconvme.c: Fix errno.
63500
63501 2005-08-29  Bruno Haible  <bruno@clisp.org>
63502
63503         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
63504         that it works when the directory contains spaces.
63505
63506 2005-08-29  Bruno Haible  <bruno@clisp.org>
63507
63508         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
63509
63510 2005-08-29  Bruno Haible  <bruno@clisp.org>
63511
63512         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
63513         Emit more advice.
63514
63515 2005-08-29  Bruno Haible  <bruno@clisp.org>
63516         and Stepan Kasal  <kasal@ucw.cz>
63517
63518         * check-module: If more parameters are given, check each of them
63519         separately; add more exceptions, as noted by Jim Meyering.
63520         (check_module): New procedure.
63521         (%exempt_header): Now contains all exceptions.
63522
63523 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
63524
63525         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
63526
63527 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
63528
63529         * lib/iconvme.c: Split iconv_string into iconv_alloc.
63530
63531 2005-08-28  Bruno Haible  <bruno@clisp.org>
63532
63533         * m4/gnulib-tool.m4: New file.
63534
63535 2005-08-27  Jim Meyering  <jim@meyering.net>
63536
63537         * modules/unistd-safer (Files): Add pipe-safer.c.
63538         * modules/fcntl-safer (Files): Add creat-safer.c.
63539
63540 2005-08-27  Jim Meyering  <jim@meyering.net>
63541
63542         * m4/stdlib-safer.m4: New file.  From coreutils.
63543         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
63544         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
63545         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
63546         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
63547         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
63548
63549 2005-08-27  Jim Meyering  <jim@meyering.net>
63550
63551         * lib/fopen-safer.c: Merge minor changes from coreutils.
63552         * lib/dup-safer.c: Likewise.
63553         * lib/fd-safer.c: Likewise.
63554
63555         Merge from coreutils.
63556         * lib/stdio--.h: New file.
63557         * lib/stdlib--.h: New file.
63558         * lib/mkstemp-safer.c: New file.
63559
63560         GNU tar needs these.
63561         * lib/pipe-safer.c: New file.
63562         * lib/creat-safer.c: New file.
63563         * lib/fcntl--.h (creat): Define to creat_safer.
63564         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
63565         * lib/unistd--.h (pipe): Define to pipe_safer.
63566         * lib/unistd-safer.h: Declare pipe_safer.
63567
63568 2005-08-26  Simon Josefsson  <jas@extundo.com>
63569
63570         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
63571         Haible <bruno@clisp.org>.
63572
63573 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
63574
63575         * lib/regex_internal.h: Remove all references to
63576         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
63577         or better.
63578         (bitset_not, bitset_merge, bitset_not_merge):
63579         (bitset_mask, re_string_allocate, re_string_construct):
63580         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
63581         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
63582         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
63583         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
63584         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
63585         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
63586         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
63587         (re_acquire_state_context):
63588         Remove unnecessary forward decls.
63589         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
63590         Put __attribute at function definition,
63591         now that the function decl has been removed.
63592         * lib/regex_internal.c (re_string_peek_byte_case):
63593         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
63594         Likewise.
63595
63596 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
63597
63598         * m4/regex.m4: Add AC_PREREQ(2.50).
63599         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
63600
63601 2005-08-25  Simon Josefsson  <jas@extundo.com>
63602
63603         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
63604         __fsetlocking.
63605
63606 2005-08-25  Simon Josefsson  <jas@extundo.com>
63607
63608         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
63609         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
63610         GLIBC specific code.
63611
63612 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63613
63614         Make regex safe for g++.  This fixes one real bug (an "err"
63615         that should have been "*err").  g++ problem reported by
63616         Sam Steingold.
63617         * lib/regex_internal.h (re_calloc): New macro, consistent with
63618         re_malloc etc.  All callers of calloc changed to use re_calloc.
63619         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
63620         not int.  All callers changed.
63621         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
63622         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
63623         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
63624         (find_recover_state): Change "err" to "*err"; this fixes what
63625         appears to be a real bug.
63626         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
63627         versus int.
63628
63629 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63630
63631         * modules/regex (Depends-on): Add malloc, since the code
63632         assumes that !malloc(0) means failure.
63633
63634 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63635
63636         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
63637
63638         alloca modernization/simplification for regex.
63639         * lib/regex.c: Remove portability cruft for alloca.  This no longer
63640         needs to be at the start of the file, and can be moved into
63641         regex_internal.h and simplified.
63642         * lib/regex_internal.h: Include <alloca.h>.
63643         (__libc_use_alloca) [!defined _LIBC]: New macro.
63644         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
63645         now works outside glibc.
63646
63647 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63648
63649         * config/srclist.txt: Add glibc bugs 1241, 1245.
63650
63651 2005-08-25  Jim Meyering  <jim@meyering.net>
63652
63653         * lib/open-safer.c: Include <config.h>.
63654         Otherwise, we'd lose LARGEFILE support in any file using
63655         e.g. "fcntl--.h"
63656
63657 2005-08-25  Bruno Haible  <bruno@clisp.org>
63658
63659         * m4/minmax.m4: Require autoconf 2.52.
63660         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
63661         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
63662         alternatives of translit over the alphabet.
63663         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
63664
63665 2005-08-24  Simon Josefsson  <jas@extundo.com>
63666
63667         * tests/test-getpass.c: New file.
63668
63669 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63670
63671         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
63672         for GNU regex features.
63673
63674 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63675
63676         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
63677         * lib/regex.h (regerror): Likewise.
63678
63679         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
63680         requires this.  (The code never needed it.)
63681
63682         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
63683         All uses of recently-renamed identifiers changed to use the new,
63684         POSIX-compliant names.  The code will build and run just fine
63685         without these changes, but it's better to eat our own dog food
63686         and use the standard-conforming names.
63687
63688         * lib/regex.h: Fix a multitude of POSIX name space violations.
63689         These changes have an effect only for programs that define
63690         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
63691         do not change anything for programs compiled in the normal way.
63692         Also, there is no effect on the ABI.
63693
63694         (_REGEX_SOURCE): New macro.
63695         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
63696         defined and _GNU_SOURCE is not; this fixes a name space violation.
63697
63698         Rename the following macros to obey POSIX requirements.
63699         The old names are still visible as macros if _REGEX_SOURCE is defined.
63700         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
63701         RE_BACKSLASH_ESCAPE_IN_LISTS.
63702         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
63703         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
63704         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
63705         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
63706         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
63707         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
63708         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
63709         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
63710         (REG_INTERVALS): renamed from RE_INTERVALS.
63711         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
63712         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
63713         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
63714         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
63715         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
63716         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
63717         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
63718         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
63719         RE_UNMATCHED_RIGHT_PAREN_ORD.
63720         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
63721         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
63722         (REG_DEBUG): renamed from RE_DEBUG.
63723         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
63724         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
63725         unusual, since we can't clash with the POSIX REG_ICASE.
63726         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
63727         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
63728         (REG_NO_SUB): renamed from RE_NO_SUB.
63729         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
63730         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
63731         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
63732         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
63733         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
63734         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
63735         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
63736         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
63737         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
63738         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
63739         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
63740         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
63741         RE_SYNTAX_POSIX_MINIMAL_BASIC.
63742         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
63743         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
63744         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
63745         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
63746         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
63747         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
63748         (REG_FIXED): Renamed from REGS_FIXED.
63749         (REG_NREGS): Renamed from RE_NREGS.
63750
63751         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
63752         of other REG_* macros, since POSIX says the user is allowed to
63753         #undef these macros selectively.
63754
63755         (reg_errcode_t): Update comment stating what other tables need
63756         to be consistent.
63757
63758         Rename the following enum values to obey POSIX requirements.
63759         The old names are still visible as macros.
63760         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
63761         is not defined, since GNU is supposed to be a superset of POSIX as
63762         much as possible, and since we want reg_errcode_t to be a signed
63763         type for implementation consistency.
63764         (_REG_NOERROR): Renamed from REG_NOERROR.
63765         (_REG_NOMATCH): Renamed from REG_NOMATCH.
63766         (_REG_BADPAT): Renamed from REG_BADPAT.
63767         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
63768         (_REG_ECTYPE): Renamed from REG_ECTYPE.
63769         (_REG_EESCAPE): Renamed from REG_EESCAPE.
63770         (_REG_ESUBREG): Renamed from REG_ESUBREG.
63771         (_REG_EBRACK): Renamed from REG_EBRACK.
63772         (_REG_EPAREN): Renamed from REG_EPAREN.
63773         (_REG_EBRACE): Renamed from REG_EBRACE.
63774         (_REG_BADBR): Renamed from REG_BADBR.
63775         (_REG_ERANGE): Renamed from REG_ERANGE.
63776         (_REG_ESPACE): Renamed from REG_ESPACE.
63777         (_REG_BADRPT): Renamed from REG_BADRPT.
63778         (_REG_EEND): Renamed from REG_EEND.
63779         (_REG_ESIZE): Renamed from REG_ESIZE.
63780         (_REG_ERPAREN): Renamed from REG_ERPAREN.
63781         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
63782         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
63783         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
63784         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
63785
63786         (_REG_RE_NAME, _REG_RM_NAME): New macros.
63787         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
63788         changed.  But support the old name if the new one is not defined
63789         and if _REGEX_SOURCE.
63790
63791         Change the following member names in struct re_pattern_buffer.
63792         The old names are still supported if !_REGEX_SOURCE.
63793         The new names are always supported, regardless of _REGEX_SOURCE.
63794         (re_buffer): Renamed from buffer.
63795         (re_allocated): Renamed from allocated.
63796         (re_used): Renamed from used.
63797         (re_syntax): Renamed from syntax.
63798         (re_fastmap): Renamed from fastmap.
63799         (re_translate): Renamed from translate.
63800         (re_can_be_null): Renamed from can_be_null.
63801         (re_regs_allocated): Renamed from regs_allocated.
63802         (re_fastmap_accurate): Renamed from fastmap_accurate.
63803         (re_no_sub): Renamed from no_sub.
63804         (re_not_bol): Renamed from not_bol.
63805         (re_not_eol): Renamed from not_eol.
63806         (re_newline_anchor): Renamed from newline_anchor.
63807
63808         Change the following member names in struct re_registers.
63809         The old names are still supported if !_REGEX_SOURCE.
63810         The new names are always supported, regardless of _REGEX_SOURCE.
63811         (rm_num_regs): Renamed from num_regs.
63812         (rm_start): Renamed from start.
63813         (rm_end): Renamed from end.
63814
63815         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
63816         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
63817         Prepend __ to parameter names.
63818
63819         Undo yesterday's changes.
63820
63821 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63822
63823         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
63824         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
63825         lib/regex.c.
63826
63827 2005-08-24  Jim Meyering  <jim@meyering.net>
63828
63829         Sync from coreutils.
63830         * m4/fcntl-safer.m4: New file.
63831
63832         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
63833         and object files for this module.
63834
63835 2005-08-24  Jim Meyering  <jim@meyering.net>
63836
63837         Sync from coreutils.
63838         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
63839
63840 2005-08-24  Jim Meyering  <jim@meyering.net>
63841
63842         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
63843         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
63844
63845 2005-08-24  Jim Meyering  <jim@meyering.net>
63846
63847         * modules/fcntl-safer: New module.
63848         * modules/fts (Depends-on): Add fcntl-safer.
63849         * MODULES.html.sh (File descriptor based Input/Output):
63850         Add fcntl-safer.
63851
63852 2005-08-24  Bruno Haible  <bruno@clisp.org>
63853
63854         Support for unit test modules.
63855         * modules/README: Mention tests modules.
63856         * modules/TEMPLATE-TESTS: New file.
63857         * gnulib-tool: New options --extract-tests-module, --with-tests and
63858         --tests-base (unused for the moment).
63859         (testsbase, inctests): New variables.
63860         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
63861         (func_verify_module): Exclude TEMPLATE-TESTS.
63862         (func_verify_nontests_module, func_verify_tests_module): New functions.
63863         (func_get_dependencies): Add implicit dependency for tests modules.
63864         (func_get_tests_module): New function.
63865         (func_modules_transitive_closure): When --with-tests was specified,
63866         include the unit tests as well, unless explicitly avoided.
63867         (func_emit_lib_Makefile_am): Ignore the tests modules here.
63868         (func_emit_tests_Makefile_am): New function.
63869         (func_create_testdir): When --with-tests was specified, emit a
63870         tests/ directory.
63871         * MODULES.html.sh (Future developments): Update.
63872
63873 2005-08-24  Bruno Haible  <bruno@clisp.org>
63874
63875         * modules/tls-tests: New file.
63876         * tests/test-tls.c: New file, from GNU gettext.
63877
63878 2005-08-24  Bruno Haible  <bruno@clisp.org>
63879
63880         * modules/lock-tests: New file.
63881         * tests/test-lock.c: New file, from GNU gettext.
63882
63883 2005-08-24  Bruno Haible  <bruno@clisp.org>
63884
63885         * lib/lock.h: Add multiple inclusion guard.
63886         * lib/tls.h: Add multiple inclusion guard.
63887
63888 2005-08-24  Bruno Haible  <bruno@clisp.org>
63889
63890         * gnulib-tool: Add support for the --aux-dir option to
63891         --create-testdir, --create-megatestdir, --test, --megatest.
63892         (func_create_testdir, func_create_megatestdir): Optionally emit a
63893         AC_CONFIG_AUX_DIR directive.
63894         (create-testdir, create-megatestdir, test, megatest): Provide a
63895         default value for $auxdir.
63896
63897 2005-08-24  Bruno Haible  <bruno@clisp.org>
63898
63899         * gnulib-tool (import): Use compound statement instead of subshell
63900         where possible.
63901
63902 2005-08-24  Bruno Haible  <bruno@clisp.org>
63903
63904         * gnulib-tool (import): Change --aux-dir default to "build-aux".
63905
63906 2005-08-24  Bruno Haible  <bruno@clisp.org>
63907
63908         * gnulib-tool (func_version): Update.
63909
63910 2005-08-24  Bruno Haible  <bruno@clisp.org>
63911
63912         * gnulib-tool (func_import, func_create_testdir,
63913         func_create_megatestdir): Quote all autoconf macro arguments.
63914
63915 2005-08-24  Bruno Haible  <bruno@clisp.org>
63916
63917         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
63918         option --force, because --force causes the aclocal.m4 of each
63919         subdirectory to be newer than the corresponding config.h.in.
63920
63921 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63922
63923         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
63924         All contents moved to gl_REGEX.
63925         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
63926         assume that it does.
63927
63928 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63929
63930         * lib/regex.h (REG_NOSYS)
63931         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
63932         Define, since POSIX requires it as of 2001.
63933         (_REG_ENOSYS)
63934         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
63935         New private symbol, used to keep the enum signed in all cases.
63936         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
63937         Youngman in
63938         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
63939
63940         * lib/regex_internal.c (re_string_skip_chars, register_state):
63941         (calc_state_hash):
63942         Remove forward decls; no longer needed now that we use prototypes.
63943         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
63944         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
63945         (clean_state_log_if_needed): Likewise.
63946
63947 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63948
63949         * config/srclist.txt: Add glibc bugs 1231-1233.
63950
63951 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63952
63953         Fix problems reported by Sam Steingold in
63954         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
63955         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
63956         assumed that reg_errcode_t is a signed type, which is not
63957         necessarily true if _XOPEN_SOURCE is not defined.
63958         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
63959         since some compilers warn about it otherwise.
63960
63961 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63962
63963         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
63964         (init_word_char, create_initial_state, duplicate_node_closure):
63965         (fetch_token, peek_token_bracket, build_range_exp):
63966         (build_collating_symbol): Remove forward decls; no longer needed
63967         now that we use prototypes.
63968
63969         * lib/regcomp.c:
63970         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
63971         (re_compile_fastmap_iter, regcomp, regerror, regfree):
63972         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
63973         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
63974         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
63975         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
63976         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
63977         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
63978         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
63979         (build_range_exp, build_collating_symbol, parse_bracket_exp):
63980         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
63981         (build_charclass, build_charclass_op, fetch_number, create_tree):
63982         (create_token_tree, mark_opt_subexp, duplicate_tree):
63983         Use prototypes rather than old-style definitions.
63984
63985         * lib/regex_internal.c:
63986         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
63987         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
63988         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
63989         (re_string_reconstruct, re_string_peek_byte_case):
63990         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
63991         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
63992         (re_node_set_init_copy, re_node_set_add_intersect):
63993         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
63994         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
63995         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
63996         (re_acquire_state, re_acquire_state_context, register_state):
63997         (create_ci_newstate, create_cd_newstate, free_state):
63998         Likewise.
63999         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
64000         re_search_2):
64001         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
64002         (re_search_internal, prune_impossible_nodes):
64003         (acquire_init_state_context, check_matching, static):
64004         (check_halt_node_context, check_halt_state_context, proceed_next_node):
64005         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
64006         (update_regs, sift_states_backward, build_sifted_states):
64007         (clean_state_log_if_needed, merge_state_array):
64008         (update_cur_sifted_state, add_epsilon_src_nodes):
64009         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
64010         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
64011         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
64012         (find_recover_state, check_subexp_matching_top, transit_state_mb):
64013         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
64014         (check_arrival, check_arrival_add_next_nodes):
64015         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
64016         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
64017         (check_node_accept_bytes, check_node_accept, extend_buffers):
64018         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
64019         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
64020         (sift_ctx_init):
64021         Likewise.
64022
64023         * lib/regex_internal.h:
64024         (re_string_allocate, re_string_construct, re_string_reconstruct):
64025         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
64026         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
64027         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
64028         (re_string_context_at, re_string_peek_byte_case):
64029         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
64030         is defined, since we now use prototypes always.
64031
64032         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
64033         C89 or better.  All uses removed.
64034
64035 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64036
64037         * config/srclist.txt: Add glibc bugs 1220-1227.
64038
64039 2005-08-20  Jim Meyering  <jim@meyering.net>
64040
64041         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
64042         of unused local, dfa.
64043
64044 2005-08-20  Bruno Haible  <bruno@clisp.org>
64045
64046         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
64047
64048 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64049
64050         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
64051         (re_node_set_insert_last, re_dfa_add_node):
64052         Rename local variables to avoid GCC shadowing warnings.
64053
64054 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64055
64056         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
64057         [defined lint]: Suppress bogus uninitialized-variable warnings.
64058
64059         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
64060         and let the caller return REG_ESPACE if out of space.  This
64061         removes an uninitialied-variable warning with GCC 4.0.1, and also
64062         avoids taking the address of a local variable.  All callers
64063         changed.
64064
64065 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64066
64067         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
64068         $LIBCSRC/posix/regexec.c.
64069         Add glibc bug 1217 for regcomp.c.
64070
64071 2005-08-19  Jim Meyering  <jim@meyering.net>
64072
64073         * lib/regexec.c (proceed_next_node): Redo local variables to
64074         avoid GCC shadowing warnings.
64075
64076 2005-08-18  Bruno Haible  <bruno@clisp.org>
64077
64078         * lib/strstr.c (strstr): Fix return value in multibyte case.
64079         * lib/strcasestr.c (strcasestr): Likewise.
64080
64081 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64082
64083         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
64084
64085 2005-08-17  Jim Meyering  <jim@meyering.net>
64086
64087         Make the %s format (seconds since the epoch) work for a negative
64088         number and when used with a zero-padded field width, e.g. %015s.
64089
64090         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
64091         label so that it precedes the code to set `digits'.  Otherwise,
64092         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
64093         print `00-22'.  Now, it prints `-0022', as it should.
64094
64095 2005-08-17  Bruno Haible  <bruno@clisp.org>
64096
64097         * modules/strstr (Files): Add m4/mbrtowc.m4.
64098         (Depends-on): Add mbuiter.
64099
64100 2005-08-17  Bruno Haible  <bruno@clisp.org>
64101
64102         * modules/strcasestr: New file.
64103         * MODULES.html.sh (String handling, based on ANSI C 89): Add
64104         strcasestr.
64105
64106 2005-08-17  Bruno Haible  <bruno@clisp.org>
64107
64108         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
64109
64110 2005-08-17  Bruno Haible  <bruno@clisp.org>
64111
64112         * modules/mbuiter: New file.
64113         * MODULES.html.sh (Extended multibyte and wide character utilities):
64114         Add mbuiter.
64115
64116 2005-08-17  Bruno Haible  <bruno@clisp.org>
64117
64118         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
64119         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
64120
64121 2005-08-17  Bruno Haible  <bruno@clisp.org>
64122
64123         * m4/strcasestr.m4: New file.
64124
64125 2005-08-17  Bruno Haible  <bruno@clisp.org>
64126
64127         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
64128         * lib/strstr.c: Completely rewritten, with multibyte locale support.
64129
64130 2005-08-17  Bruno Haible  <bruno@clisp.org>
64131
64132         * lib/strcasestr.h: New file.
64133         * lib/strcasestr.c: New file.
64134
64135 2005-08-17  Bruno Haible  <bruno@clisp.org>
64136
64137         * lib/strcasecmp.c: Use mbuiter.h.
64138
64139 2005-08-17  Bruno Haible  <bruno@clisp.org>
64140
64141         * lib/mbuiter.h: New file.
64142
64143 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
64144
64145         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
64146         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
64147         and gl_GETOPT are both invoked via different paths (as happens
64148         with GNU tar CVS because it uses both argp and getopt), the former
64149         wins.
64150
64151 2005-08-16  Bruno Haible  <bruno@clisp.org>
64152
64153         * modules/tls: New file.
64154         * MODULES.html.sh (Multithreading): Add tls.
64155
64156 2005-08-16  Bruno Haible  <bruno@clisp.org>
64157
64158         * modules/strnlen1: New file.
64159         * MODULES.html.sh (String handling): Add strnlen1.
64160
64161 2005-08-16  Bruno Haible  <bruno@clisp.org>
64162
64163         * modules/strcase (Files): Add m4/mbrtowc.m4.
64164         (Depends-on): Add strnlen1, mbchar.
64165
64166 2005-08-16  Bruno Haible  <bruno@clisp.org>
64167
64168         * modules/mbiter: New file.
64169         * MODULES.html.sh (Extended multibyte and wide character utilities):
64170         Add mbiter.
64171
64172 2005-08-16  Bruno Haible  <bruno@clisp.org>
64173
64174         * modules/mbfile: New file.
64175         * MODULES.html.sh (Extended multibyte and wide character utilities):
64176         Add mbfile.
64177
64178 2005-08-16  Bruno Haible  <bruno@clisp.org>
64179
64180         * modules/mbchar: New file.
64181         * MODULES.html.sh (Extended multibyte and wide character utilities):
64182         New section.
64183
64184 2005-08-16  Bruno Haible  <bruno@clisp.org>
64185
64186         * m4/tls.m4: New file, from GNU gettext.
64187
64188 2005-08-16  Bruno Haible  <bruno@clisp.org>
64189
64190         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
64191         always.
64192         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
64193
64194 2005-08-16  Bruno Haible  <bruno@clisp.org>
64195
64196         * m4/mbiter.m4: New file.
64197
64198 2005-08-16  Bruno Haible  <bruno@clisp.org>
64199
64200         * m4/mbfile.m4: New file.
64201
64202 2005-08-16  Bruno Haible  <bruno@clisp.org>
64203
64204         * m4/mbchar.m4: New file.
64205
64206 2005-08-16  Bruno Haible  <bruno@clisp.org>
64207
64208         * lib/tls.h: New file, from GNU gettext.
64209         * lib/tls.c: New file, from GNU gettext.
64210
64211 2005-08-16  Bruno Haible  <bruno@clisp.org>
64212
64213         * lib/strnlen1.h: New file.
64214         * lib/strnlen1.c: New file.
64215
64216 2005-08-16  Bruno Haible  <bruno@clisp.org>
64217
64218         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
64219         (mbi_init): Update.
64220         (mbi_avail, mbi_advance): Let the iteration end before the terminating
64221         NUL byte, not after it.
64222
64223 2005-08-16  Bruno Haible  <bruno@clisp.org>
64224
64225         * lib/strcase.h (strcasecmp): Add note in comments.
64226         * lib/strncasecmp.c: Use code from strcasecmp.c.
64227         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
64228         (strcasecmp): Work correctly in multibyte locales.
64229
64230 2005-08-16  Bruno Haible  <bruno@clisp.org>
64231
64232         * lib/mbiter.h: New file.
64233
64234 2005-08-16  Bruno Haible  <bruno@clisp.org>
64235
64236         * lib/mbfile.h: New file.
64237
64238 2005-08-16  Bruno Haible  <bruno@clisp.org>
64239
64240         * lib/mbchar.h: New file.
64241         * lib/mbchar.c: New file.
64242
64243 2005-08-16  Bruno Haible  <bruno@clisp.org>
64244
64245         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
64246         the valid ones. Makes the comparison operations transitive:
64247         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
64248         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
64249
64250 2005-08-15  Simon Josefsson  <jas@extundo.com>
64251
64252         * modules/ssize_t (License): Change to 'unlimited'.
64253
64254         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
64255
64256 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64257
64258         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
64259         Add comments for each pending glibc patch.
64260
64261 2005-08-15  Bruno Haible  <bruno@clisp.org>
64262
64263         * lib/regex.h (__restrict_arr): Don't define to __restrict if
64264         __cplusplus is defined.
64265
64266 2005-08-14  Jim Meyering  <jim@meyering.net>
64267
64268         Sync from coreutils.
64269
64270         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
64271         Use the hash-table-based cycle-detection code not just when
64272         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
64273         Reported by James Youngman in
64274         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
64275         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
64276         FTS_TIGHT_CYCLE_CHECK.
64277         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
64278         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
64279         once again.
64280         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
64281         * lib/fts.c (fd_safer): Remove decl.
64282         Include fcntl--.h rather than unistd-safer.h
64283         (fts_safe_changedir): Don't call fd_safer; no longer needed
64284         now that we include fcntl--.h.
64285
64286 2005-08-12  Simon Josefsson  <jas@extundo.com>
64287
64288         * modules/getndelim2: Use ssize_t module.
64289         * modules/getnline: Likewise.
64290         * modules/safe-read: Likewise.
64291         * modules/xreadlink: Likewise.
64292
64293         * modules/ssize_t: New file.
64294
64295 2005-08-12  Simon Josefsson  <jas@extundo.com>
64296
64297         * m4/readline.m4: Look for termcap, curses or ncurses if required.
64298
64299 2005-08-12  Simon Josefsson  <jas@extundo.com>
64300
64301         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64302         ssize_t.
64303
64304 2005-08-12  Simon Josefsson  <jas@extundo.com>
64305
64306         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
64307         readline, getdelim and check_version.
64308         (Support for systems lacking ISO C 99: Sizes of integer types):
64309         Add size_max.
64310
64311 2005-08-12  Bruno Haible  <bruno@clisp.org>
64312
64313         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
64314
64315 2005-08-11  Simon Josefsson  <jas@extundo.com>
64316
64317         * modules/readline: New file.
64318
64319         * modules/strnlen (Files): Add strnlen.h.
64320
64321 2005-08-11  Simon Josefsson  <jas@extundo.com>
64322
64323         * m4/readline.m4: New file.
64324
64325 2005-08-11  Simon Josefsson  <jas@extundo.com>
64326
64327         * lib/readline.h, readline.c: New file.
64328
64329 2005-08-11  Simon Josefsson  <jas@extundo.com>
64330
64331         * doc/gnulib.texi (Initial import, Finishing touches): Mention
64332         gl_AVOID.
64333
64334 2005-08-11  Bruno Haible  <bruno@clisp.org>
64335
64336         * lib/strnlen.h (strnlen): Change parameter name to match comment.
64337
64338 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
64339
64340         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
64341
64342 2005-08-10  Simon Josefsson  <jas@extundo.com>
64343
64344         * tests/test-iconvme.c: New file.
64345
64346 2005-08-10  Simon Josefsson  <jas@extundo.com>
64347
64348         * m4/strnlen.m4: New file.
64349
64350         * m4/strndup.m4: Don't check for strnlen declaration, done in
64351         strnlen.m4.
64352
64353 2005-08-10  Simon Josefsson  <jas@extundo.com>
64354
64355         * lib/strndup.c: Use strnlen.h.
64356
64357         * lib/strnlen.h: New file.
64358
64359 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64360
64361         * README: Typos.
64362
64363 2005-08-02  Simon Josefsson  <jas@extundo.com>
64364
64365         * modules/readline: New file.
64366
64367 2005-08-02  Simon Josefsson  <jas@extundo.com>
64368
64369         * modules/getdelim: New file.
64370
64371         * modules/getline: Rewrite, don't use getndelim2.
64372
64373 2005-08-02  Simon Josefsson  <jas@extundo.com>
64374
64375         * m4/getline.m4: Separate out getdelim stuff into separate module.
64376
64377         * m4/getdelim.m4: New file.
64378
64379 2005-08-02  Simon Josefsson  <jas@extundo.com>
64380
64381         * lib/getline.h, getline.c: Rewrite.
64382
64383         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
64384
64385 2005-07-31  Bruno Haible  <bruno@clisp.org>
64386
64387         * lib/lock.h (gl_lock_initializer): New macro.
64388         (gl_lock_define_initialized): Use it.
64389         (gl_rwlock_initializer): New macro.
64390         (gl_rwlock_define_initialized): Use it.
64391         (gl_recursive_lock_initializer): New macro.
64392         (gl_recursive_lock_define_initialized): Use it.
64393
64394 2005-07-30  Karl Berry  <karl@gnu.org>
64395
64396         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
64397         Report from Ben Pfaff, regarding getopt.
64398
64399 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
64400
64401         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
64402         normal way.
64403         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
64404         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
64405         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
64406         (gl_GETOPT): Use the new macros.  Most of the implementation
64407         is moved to the new macros.  This is for programs like Emacs
64408         that don't want all the functionality of gl_GETOPT.
64409
64410 2005-07-26  Bruno Haible  <bruno@clisp.org>
64411
64412         * m4/lock.m4: Update from GNU gettext.
64413
64414 2005-07-26  Bruno Haible  <bruno@clisp.org>
64415
64416         * lib/lock.h: Update from GNU gettext.
64417         * lib/lock.c: Update from GNU gettext.
64418
64419 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
64420
64421         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
64422         obsolescent AC_TRY_RUN.  Include the default includes files, for
64423         'exit'.
64424
64425 2005-07-24  Bruno Haible  <bruno@clisp.org>
64426
64427         * modules/visibility: New file.
64428         * MODULES.html.sh (Misc): Add visibility.
64429
64430 2005-07-24  Bruno Haible  <bruno@clisp.org>
64431
64432         * m4/visibility.m4: New file.
64433
64434 2005-07-24  Bruno Haible  <bruno@clisp.org>
64435
64436         * doc/visibility.texi: New file.
64437
64438 2005-07-22  Bruno Haible  <bruno@clisp.org>
64439
64440         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
64441         $(ALLOCA_H), redundant through BUILT_SOURCES.
64442         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
64443         redundant through BUILT_SOURCES.
64444         * modules/byteswap (Makefile.am): Remove explicit dependency on
64445         $(BYTESWAP_H), redundant through BUILT_SOURCES.
64446         * modules/fnmatch (Makefile.am): Remove explicit dependency on
64447         $(FNMATCH_H), redundant through BUILT_SOURCES.
64448         * modules/getopt (Makefile.am): Remove explicit dependency on
64449         $(GETOPT_H), redundant through BUILT_SOURCES.
64450         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
64451         redundant through BUILT_SOURCES.
64452         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
64453         redundant through BUILT_SOURCES.
64454         * modules/stdbool (Makefile.am): Remove explicit dependency on
64455         $(STDBOOL_H), redundant through BUILT_SOURCES.
64456         * modules/stdint (Makefile.am): Remove explicit dependency on
64457         $(STDINT_H), redundant through BUILT_SOURCES.
64458         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
64459         Remove explicit dependency on $(SYSEXITS_H).
64460         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
64461
64462 2005-07-18  Simon Josefsson  <jas@extundo.com>
64463
64464         * lib/check-version.c (check_version): Accept identical versions too.
64465
64466 2005-07-18  Bruno Haible  <bruno@clisp.org>
64467
64468         * modules/lock: New file.
64469         * MODULES.html.sh (Multithreading): New section.
64470
64471 2005-07-18  Bruno Haible  <bruno@clisp.org>
64472
64473         * m4/lock.m4: New file, from GNU gettext.
64474
64475 2005-07-18  Bruno Haible  <bruno@clisp.org>
64476
64477         * lib/lock.h: New file, from GNU gettext.
64478         * lib/lock.c: New file, from GNU gettext.
64479
64480 2005-07-18  Bruno Haible  <bruno@clisp.org>
64481
64482         * lib/lock.h (gl_once_t): New type.
64483         (gl_once_define, gl_once): New macros.
64484         * lib/lock.c (fresh_once): New variable.
64485         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
64486         functions.
64487
64488 2005-07-16  Simon Josefsson  <jas@extundo.com>
64489
64490         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
64491         workaround, suggested by Bruno.
64492
64493 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
64494
64495         * modules/xalloc (Depends-on): Add xalloc-die.
64496         * modules/xvasprintf (Depends-on): Add xalloc-die.
64497
64498 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
64499
64500         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
64501         with a minor change.
64502
64503 2005-07-15  Bruno Haible  <bruno@clisp.org>
64504
64505         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
64506         When using lib/poll.c, define poll as rpl_poll.
64507
64508 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
64509
64510         * modules/argp (Depends-on): Remove unlocked-io.
64511
64512 2005-07-14  Derek Price  <derek@ximbiot.com>
64513
64514         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
64515         for glob symlink bug.
64516
64517 2005-07-14  Bruno Haible  <bruno@clisp.org>
64518
64519         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
64520         Instead, test for *_unlocked function declarations directly.
64521
64522 2005-07-11  Simon Josefsson  <jas@extundo.com>
64523
64524         * modules/size_max: New file.
64525
64526         * modules/xsize: Depend on size_max module for size_max.m4.
64527
64528 2005-07-11  Simon Josefsson  <jas@extundo.com>
64529
64530         * lib/size_max.h: New file.
64531
64532 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
64533
64534         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
64535         copyright symbol and the year.
64536         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
64537         (version_etc_va): Use parameterized copyright notice.
64538         Reword to conform to the current GNU coding standards.
64539
64540 2005-07-11  Karl Berry  <karl@gnu.org>
64541
64542         * doc/gnulib.texi (Quoting): new node.
64543         (Initial import): more info, from Patrice.
64544
64545 2005-07-11  Bruno Haible  <bruno@clisp.org>
64546
64547         * gnulib-tool (func_usage): Document option --avoid.
64548         (Command line options): Handle --avoid.
64549         (func_acceptable): New function.
64550         (func_modules_transitive_closure): Use it.
64551
64552 2005-07-11  Bruno Haible  <bruno@clisp.org>
64553
64554         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
64555         Reported by Jim Meyering.
64556
64557 2005-07-10  Bruno Haible  <bruno@clisp.org>
64558
64559         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
64560         Needed when size_t is smaller than 'unsigned int'.
64561         Reported by Paul Eggert.
64562
64563 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64564
64565         * modules/argp (Depends-on): Add unlocked-io
64566
64567 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64568
64569         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
64570         block of defines.
64571
64572 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
64573
64574         * config/srclist.txt: Comment out regcomp.c, since we have a porting
64575         fix now.
64576
64577 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
64578         and Paul Eggert  <eggert@cs.ucla.edu>
64579
64580         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
64581         in wint_t, not wchar_t.  Remove now-unnecessary cast.
64582
64583 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64584
64585         * modules/regex (Files): Add lib/regex_internal.c,
64586         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
64587         (Depends-on): Add extensions.
64588         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
64589
64590 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64591
64592         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
64593         pathconf.
64594         * m4/same.m4 (gl_SAME): Likewise.
64595         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
64596
64597         * m4/regex.m4: Adjust to new libc regex implementation.
64598         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
64599         all the .c and .h parts of (the new) regex.
64600         Quote the m4 stuff better.
64601         Check for RE_ICASE bug of old gnulib.
64602         Check for REG_STARTEND of recent libc.
64603         Rename local variables from jm_* to gl_*.
64604         Quote operand of "test -f".
64605         Say "recent enough" version of libc, not "version 2".
64606         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
64607         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
64608         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
64609         Remove check for btowc, isascii.
64610         Require AM_LANGINFO_CODESET.
64611
64612 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64613
64614         * lib/regex.c, regex.h: Sync from libc.
64615         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
64616         * lib/regexec.c:
64617         New files, synced from libc, except that regex_internal.h
64618         currently has a small porting fix.
64619
64620 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64621
64622         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
64623         regex_internal.c, regexec.c.
64624         Add regex_internal.h too, but as a comment, since the libc version
64625         is currently broken in gnulib mode.
64626
64627 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64628
64629         Support programs like Emacs that use gnulib but not gettext.
64630         * MODULES.html.sh (Internationalization functions): Add gettext-h.
64631         * modules/gettext-h: New file.
64632         * modules/gettext (Files): Remove lib/gettext.h.
64633         (Depends-on): Add gettext-h.
64634         (Makefile.am): Remove lib_SOURCES.
64635         * modules/argmatch, modules/c-stack, modules/closeout:
64636         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
64637         * modules/execute, modules/file-type, modules/getaddrinfo:
64638         * modules/getopt, modules/human, modules/javacomp:
64639         * modules/javaexec, modules/mkdir-p, modules/obstack:
64640         * modules/openat, modules/pagealign_alloc, modules/pipe:
64641         * modules/quotearg, modules/regex, modules/rpmatch:
64642         * modules/unicodeio, modules/userspec, modules/version-etc:
64643         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
64644         * modules/xsetenv:
64645         Depend on gettext-h, not gettext.
64646
64647 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
64648
64649         * gnulib-tool (func_import): Add support for 'public domain' license.
64650         * modules/alloca, modules/atexit, modules/memmove:
64651         Now public domain, not GPL.
64652         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
64653         * modules/realloc, modules/strerror, modules/strtod:
64654         Now LGPL, not GPL.
64655
64656 2005-07-05  Bruno Haible  <bruno@clisp.org>
64657
64658         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
64659         autoconf CVS. Needed for mingw.
64660
64661 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64662
64663         Remove the dependency of the strftime module on the tzset module.
64664         * modules/strftime (Depends-on): Remove dependency on tzset.
64665
64666 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64667
64668         Remove the dependency of the strftime module on the tzset module.
64669         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
64670         gl_FUNC_TZSET_CLOBBER.
64671
64672 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64673
64674         Remove the dependency of the strftime module on the tzset module.
64675         * lib/strftime.c (my_strftime)
64676         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
64677         Copy the input structure, to work around some of the bug with
64678         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
64679         Solaris releases, you should also use the tzset module, but we won't
64680         require it as a dependency any more since we don't want LGPLed code
64681         to depend on GPLed code.
64682
64683 2005-07-02  Jim Meyering  <jim@meyering.net>
64684
64685         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
64686         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
64687         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
64688         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
64689
64690 2005-07-02  Jim Meyering  <jim@meyering.net>
64691
64692         * lib/backupfile.c (backup_args): Change a `0' to NULL.
64693
64694 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64695
64696         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
64697         declares only 'struct timespec;' (!).
64698
64699 2005-07-01  Jim Meyering  <jim@meyering.net>
64700
64701         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
64702         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
64703         * lib/save-cwd.c, tempname.c:
64704         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
64705         and don't include <sys/file.h>).
64706
64707 2005-06-29  Jim Meyering  <jim@meyering.net>
64708
64709         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
64710         type name.  Use the variable name instead.
64711         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
64712         Likewise.
64713
64714 2005-06-28  Simon Josefsson  <jas@extundo.com>
64715
64716         * modules/check-version (Files): Add check-version.m4.
64717
64718 2005-06-28  Simon Josefsson  <jas@extundo.com>
64719
64720         * m4/check-version.m4: New file, suggested by Jim Meyering
64721         <jim@meyering.net>.
64722
64723 2005-06-28  Simon Josefsson  <jas@extundo.com>
64724
64725         * lib/check-version.h, lib/check-version.c: New files.
64726
64727 2005-06-28  Simon Josefsson  <jas@extundo.com>
64728
64729         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
64730         collision with global variable.  Better indentation.  Don't
64731         increment buffer pointer beyond buffer end.  Based on comments
64732         from Paul Eggert <eggert@cs.ucla.edu>.
64733
64734         * lib/base64.h: Indent.
64735
64736 2005-06-28  Simon Josefsson  <jas@extundo.com>
64737
64738         * doc/gnulib.texi (Library version handling): New section.
64739
64740 2005-06-28  Jim Meyering  <jim@meyering.net>
64741
64742         * check-module (find_included_lib_files): Hard-code another
64743         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
64744         but modules/fts-lgpl (correctly) does not list those files.
64745
64746         * modules/canonicalize (Files): Add lib/pathmax.h.
64747
64748 2005-06-25  Simon Josefsson  <jas@extundo.com>
64749
64750         * modules/check-version: New file.
64751
64752 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
64753
64754         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
64755         initializer of struct addrinfo, as an indication that we don't
64756         care how many members the structure has.
64757
64758 2005-06-24  Derek Price  <derek@ximbiot.com>
64759         and Bruno Haible  <bruno@clisp.org>
64760
64761         Remove stat module & update lstat.
64762         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
64763         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64764         * m4/stat.m4: Remove this file.
64765
64766 2005-06-24  Derek Price  <derek@ximbiot.com>
64767         and Bruno Haible  <bruno@clisp.org>
64768
64769         Remove stat module & update lstat.
64770         * lib/stat.c: Remove this file...
64771         (slash_aware_lstat): ...moving this content and its support...
64772         * lib/lstat.c (rpl_lstat): ...into here.
64773         * lib/lstat.h: New file.
64774
64775 2005-06-24  Derek Price  <derek@ximbiot.com>
64776         and Bruno Haible  <bruno@clisp.org>
64777
64778         Remove stat module & update lstat.
64779         * config/srclist.txt (libc sources): Remove stat.
64780
64781 2005-06-24  Derek Price  <derek@ximbiot.com>
64782         and Bruno Haible  <bruno@clisp.org>
64783
64784         Remove stat module & update lstat.
64785         * MODULES.html.sh (stat): Remove.
64786         * MODULES.html: Regenerated.
64787         * modules/lstat (Description): Correct function name.
64788         (Files): Add "lstat.h".
64789         (Depends-on): Remove stat, add xalloc, stat-macros.
64790         * modules/stat: Remove this file.
64791         (Include): Add "lstat.h", remove <sys/stat.h>.
64792
64793 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64794
64795         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
64796         (ranged_convert): Don't save conversion in a temporary struct.
64797         This causes a warning with GCC 4.0.0, and anyway in the typical
64798         case it's not worth the extra 100 bytes or so of code.
64799         (ranged_convert, __mktime_internal): When calling a function via a
64800         pointer P, use P () rather than (*P) (), as we now assume C89 or
64801         better.
64802
64803 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64804
64805         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
64806         "who -r" failed to give output.  Problem reported by Tim Waugh.
64807
64808         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
64809         (xcalloc): Use it to avoid needless tests.
64810         Problem reported by Jim Meyering.
64811
64812 2005-06-20  Derek Price  <derek@ximbiot.com>
64813
64814         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
64815         unnecessary for Autoconfs > 2.59c.
64816
64817 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64818
64819         * lib/argp.h (__option_is_short): Check upper limit of
64820         __key. Isprint() requires its argument to have the value
64821         of an unsigned char or EOF.
64822
64823 2005-06-16  Jim Meyering  <jim@meyering.net>
64824
64825         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
64826         when either N or S is zero.
64827
64828 2005-06-16  Derek Price  <derek@ximbiot.com>
64829
64830         * m4/bison.m4: Declare YACC & YFLAGS precious.
64831
64832 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
64833
64834         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
64835         multibyte string or pattern, fall back on unibyte matching.
64836         Problem reported by James Youngman.
64837
64838 2005-06-08  Bruno Haible  <bruno@clisp.org>
64839
64840         * modules/csharpcomp: New file.
64841         * MODULES.html.sh (C#): Add csharpcomp.
64842
64843 2005-06-08  Bruno Haible  <bruno@clisp.org>
64844
64845         * m4/csharpcomp.m4: New file, from GNU gettext.
64846
64847 2005-06-08  Bruno Haible  <bruno@clisp.org>
64848
64849         * lib/csharpcomp.h: New file, from GNU gettext.
64850         * lib/csharpcomp.c: New file, from GNU gettext.
64851         * lib/csharpcomp.sh.in: New file, from GNU gettext.
64852
64853 2005-06-08  Bruno Haible  <bruno@clisp.org>
64854
64855         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
64856         warning on mingw.
64857
64858 2005-06-07  Derek Price  <derek@ximbiot.com>
64859
64860         Sync from CVS.
64861         * lib/glob_.h: Indent nested #ifdef.
64862
64863 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
64864
64865         Sync from coreutils.
64866         Use "file name" when talking about file names, instead of "filename"
64867         or "path", as per the GNU coding standards.
64868         * lib/mkdir-p.c: Renamed from makepath.c.
64869         (make_dir_parents): Renamed from make_path.  All callers changed.
64870         * lib/mkdir-p.h: Likewise.  All includers changed.
64871         * lib/filenamecat.c: Renamed from path-concat.c.
64872         (file_name_concat): Renamed from path_concat.  All callers changed.
64873         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
64874         * lib/filenamecat.h: Likewise.  All includers changed.
64875         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
64876         in comments or local variable names.
64877         * lib/basename.c: Likewise.
64878         * lib/canonicalize.c, canonicalize.h: Likewise.
64879         * lib/dirname.c, dirname.h: Likewise.
64880         * lib/euidaccess.c: Likewise.
64881         * lib/exclude.c: Likewise
64882         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
64883         * lib/fsusage.c, fsuage.h: Likewise.
64884         * lib/fts.c, fts_.h: Likewise.
64885         * lib/getcwd.c: Likewise.
64886         * lib/getloadavg.c: Likewise.
64887         * lib/mkstemp.c: Likewise.
64888         * lib/mountlist.c, mountlist.h: Likewise.
64889         * lib/openat.c, openat.h: Likewise.
64890         * lib/readlink-stub.c: Likewise.
64891         * lib/readutmp.c, readutmp.h: Likewise.
64892         * lib/rename.c: Likewise.
64893         * lib/rmdir.c: Likewise.
64894         * lib/same.c: Likewise.
64895         * lib/savedir.c: Likewise.
64896         * lib/stripslash.c: Likewise.
64897         * lib/tempname.c: Likewise.
64898         * lib/xreadlink.c: Likewise.
64899         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
64900         All uses changed.
64901         * lib/exclude.h: Likewise.
64902
64903         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
64904         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
64905         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
64906         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
64907         * lib/pathmax.h: Include <limits.h> unconditionally, since other
64908         files have been getting away with it for years (MORE/BSD 4.3
64909         is extinct now).
64910         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
64911         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
64912
64913         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
64914         Define to 256, not 255, as per modern POSIX.
64915
64916 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
64917
64918         Sync from coreutils.
64919         Use "file name" when talking about file names, instead of "filename"
64920         or "path", as per the GNU coding standards.
64921         * MODULES.html.sh: mkdir-p renamed from makepath.
64922         filenamecat renamed from path-concat.
64923         * modules/filenamecat: Renamed from modules/path-concat.
64924         (Files): filenamecat.h and filenamecat.c renamed from
64925         path-concat.h and path-concat.c.
64926         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
64927         (Include): filenamecat.h, not path-concat.h.
64928         * modules/mkdir-p: Renamed from modules/makepath.
64929         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
64930         makepath.c.
64931         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
64932         (Include): mkdir-p.h, not makepath.h.
64933
64934 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
64935
64936         Sync from coreutils.
64937         * m4/mkdir-p.m4: Renamed from makepath.m4.
64938         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
64939         Rename files from makepath.c to mkdir-p.c, and from
64940         makepath.h to mkdir-p.h.
64941         * m4/filenamecat.m4: Renamed from path-concat.m4.
64942         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
64943         Rename files from path-concat.c to filenamecat.c,
64944         and from path-concat.h to filenamecat.h.
64945         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
64946         "file name" in local variables or comments.
64947         * m4/rename.m4: Likewise.
64948
64949 2005-06-01  Bruno Haible  <bruno@clisp.org>
64950
64951         * modules/csharpexec: New file.
64952         * MODULES.html.sh (C#): New section.
64953
64954 2005-06-01  Bruno Haible  <bruno@clisp.org>
64955
64956         * m4/csharp.m4: New file, from GNU gettext.
64957         * m4/csharpexec.m4: New file, from GNU gettext.
64958
64959 2005-06-01  Bruno Haible  <bruno@clisp.org>
64960
64961         * lib/csharpexec.h: New file, from GNU gettext.
64962         * lib/csharpexec.c: New file, from GNU gettext.
64963         * lib/csharpexec.sh.in: New file, from GNU gettext.
64964
64965 2005-05-31  Derek Price  <derek@ximbiot.com>
64966             Paul Eggert  <eggert@cs.ucla.edu>
64967
64968         Sync from cvs.
64969         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
64970
64971 2005-05-31  Derek Price  <derek@ximbiot.com>
64972             Paul Eggert  <eggert@cs.ucla.edu>
64973
64974         Sync from cvs.
64975         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
64976
64977 2005-05-29  Derek Price  <derek@ximbiot.com>
64978
64979         * config/srclist.txt (glob_.h, glob.c): Add these files.
64980
64981 2005-05-29  Derek Price  <derek@ximbiot.com>
64982
64983         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
64984         * modules/glob: New file.
64985         * modules/getlogin_r: Add link to POSIX spec in description.
64986
64987 2005-05-29  Derek Price  <derek@ximbiot.com>
64988             Paul Eggert  <eggert@cs.ucla.edu>
64989
64990         * m4/glob.m4: New file.
64991
64992 2005-05-29  Derek Price  <derek@ximbiot.com>
64993             Paul Eggert  <eggert@cs.ucla.edu>
64994
64995         * lib/glob_.h, lib/glob.c: New files.
64996
64997 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
64998
64999         * modules/fts (Files): Remove m4/inttypes-pri.m4.
65000         * modules/fts-lgpl (Depends-on): Remove gettext.
65001
65002 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65003
65004         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
65005         and don't require gt_INTTYPES_PRI.
65006
65007 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65008
65009         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
65010
65011         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
65012         the configuration hassle isn't worth it.
65013         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
65014         (LONGEST_MODIFIER, PRIuMAX): Remove.
65015
65016 2005-05-27  Bruno Haible  <bruno@clisp.org>
65017
65018         * lib/getlogin_r.h: Remove second include of <stddef.h>.
65019
65020 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
65021
65022         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
65023         _POSIX_PTHREAD_SEMANTICS for Solaris.
65024
65025 2005-05-25  Derek Price  <derek@ximbiot.com>
65026
65027         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
65028
65029 2005-05-25  Derek Price  <derek@ximbiot.com>
65030             Paul Eggert  <eggert@cs.ucla.edu>
65031
65032         * modules/getlogin_r, m4/getlogin_r.m4: New files.
65033         * lib/getlogin_r.c, getlogin_r.h: New files.
65034
65035 2005-05-25  Bruno Haible  <bruno@clisp.org>
65036             Derek Price  <derek@ximbiot.com>
65037
65038         * lib/getlogin_r.h: Simplify API documentation.
65039
65040 2005-05-23  Derek Price  <derek@ximbiot.com>
65041
65042         * modules/minmax (Files): Add m4/minmax.m4.
65043         (configure.ac): Add gl_MINMAX.
65044
65045 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
65046
65047         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
65048         so that unistd-safer.h (GPL'ed code) need not be included.
65049
65050 2005-05-22  Bruno Haible  <bruno@clisp.org>
65051
65052         * m4/minmax.m4: New file.
65053         Based on a patch by Derek Price <derek@ximbiot.com>.
65054
65055 2005-05-22  Bruno Haible  <bruno@clisp.org>
65056
65057         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
65058         (INT64_MIN): Fix definition.
65059         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
65060
65061         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
65062         NEED_SIGNED_INT_TYPES.
65063
65064         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
65065         HAVE_SYSTEM_INTTYPES.
65066
65067 2005-05-22  Bruno Haible  <bruno@clisp.org>
65068
65069         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
65070         Also include <sys/param.h> if it defines MIN, MAX.
65071         Based on a patch by Derek Price <derek@ximbiot.com>.
65072
65073 2005-05-21  Jim Meyering  <jim@meyering.net>
65074
65075         * modules/fts (Files): Add m4/inttypes-pri.m4.
65076         (Depends-on): Add lstat and remove gettext.  Alphabetize.
65077
65078 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65079
65080         New fts module.
65081         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
65082         (setup_dir, free_dir): New functions.
65083         (enter_dir, leave_dir): Define trivial
65084         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
65085         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
65086         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
65087         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
65088         Move to fts-cycle.c.
65089         (fts_open): Use setup_dir.
65090         (fts_close): Use free_dir.
65091         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
65092         This adds a label and some gotos, but the alternatives were messier.
65093         Check for memory allocation failure when entering a dir.
65094         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
65095         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
65096         (FTS): New member fts_cycle, that is a union that contains the
65097         old active_dir_ht and cycle_state.  All uses changed to mention
65098         fts_cycle.ht and fts_cycle.state.
65099         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
65100         fts.c, with the following changes:
65101         (setup_dir, free_dir): New functions.
65102         (enter_dir): Now returns bool.  Return true if successful, false
65103         if memory exhausted.  All callers changed.
65104         Do not bother partly cleaning up on
65105         memory allocation failure; that is free_dir's job.
65106         However, free ad if hash_insert fails, to avoid memory leak.
65107         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
65108         fts->fts_options to see which union member to use.
65109
65110 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65111
65112         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
65113         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
65114
65115 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65116
65117         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
65118
65119 2005-05-20  Jim Meyering  <jim@meyering.net>
65120
65121         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
65122         Now a macro, to pacify GCC.
65123
65124 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
65125
65126         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
65127         of -1.
65128
65129 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
65130
65131         * lib/chown.c (rpl_chown): Return -1 on failure.
65132
65133 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
65134
65135         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
65136         Don't check for stddef.h.
65137         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
65138         don't use its results.
65139         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
65140         since we include them unconditionally.  Don't require
65141         AM_STDBOOL_H, since stdbool is a prerequisite.
65142         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
65143         since we assume C89 or better.
65144         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
65145         as we don't use their results.
65146         Don't check for fchdir, memmove, memset, strrchr, as we use
65147         them unconditionally.
65148         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
65149         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
65150
65151 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
65152
65153         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
65154         Include <stddef.h> unconditionally, since we assume C89 now.
65155         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
65156         * lib/fts.c: Include fts_.h first, to check interface.
65157         Do not include intprops.h; no longer needed.
65158         Include cycle-check.h and hash.h, since fts_.h no longer does.
65159         Remove unnecessary casts of closedir to void.
65160         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
65161         decide whether to decrement nlinks.
65162         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
65163         (FTS): Use struct hash_table * instead of Hash_table, so that
65164         we no longer need to include hash.h here.
65165
65166 2005-05-18  Jim Meyering  <jim@meyering.net>
65167
65168         * modules/dirfd (License): Change to LGPL.  Most of the code
65169         is already in the public domain.
65170
65171 2005-05-18  Jim Meyering  <jim@meyering.net>
65172
65173         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
65174         Reported by Yoann Vandoorselaere.
65175
65176 2005-05-17  Jim Meyering  <jim@meyering.net>
65177
65178         * m4/fts.m4: New file, from coreutils.
65179
65180 2005-05-17  Jim Meyering  <jim@meyering.net>
65181
65182         * lib/fts.c, lib/fts_.h: New files, from coreutils.
65183
65184 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65185
65186         Sync from coreutils.
65187         * m4/unlinkdir.m4: New file.
65188
65189 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65190
65191         Sync from coreutils.
65192         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
65193         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
65194         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
65195         White space changes only.
65196         * lib/makepath.c (make_path): Port to hosts where leading "//" is
65197         special.
65198         * lib/yesno.c: Include getline.h, not ctype.h.
65199         (yesno): Don't remove leading white space; POSIX doesn't allow it.
65200         Use getline to remove arbitrary restriction on response length.
65201
65202 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65203
65204         * config/srclist-update: Spell out "Street" in FSF postal
65205         mail address; this is the style the FSF seems to prefer.
65206
65207         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
65208         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
65209         this updates FSF postal mail address.
65210
65211         Sync from coreutils.
65212         * modules/unlinkdir: New file.
65213         * modules/yesno (Depends-on): Add getline.
65214         * MODULES.html.sh (File system functions): Add unlinkdir.
65215
65216 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65217
65218         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
65219         lib/strsep.h:
65220         Change the initial comment to refer to GPL, not LGPL.
65221         gnulib-tool will change it to LGPL as needed.
65222
65223         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
65224         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
65225         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
65226         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
65227         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
65228         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
65229         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
65230         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
65231         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
65232         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
65233         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
65234         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
65235         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
65236         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
65237         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
65238         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
65239         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
65240         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
65241         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
65242         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
65243         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
65244         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
65245         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
65246         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
65247         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
65248         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
65249         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
65250         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
65251         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
65252         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
65253         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
65254         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
65255         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
65256         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
65257         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
65258         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
65259         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
65260         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
65261         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
65262         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
65263         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
65264         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
65265         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
65266         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
65267         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
65268         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
65269         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
65270         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
65271         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
65272         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
65273         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
65274         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
65275         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
65276         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
65277         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
65278         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
65279         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
65280         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
65281         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
65282         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
65283         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
65284         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
65285         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
65286         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
65287         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
65288         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
65289         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
65290         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
65291         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
65292         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
65293         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
65294         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
65295         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
65296         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
65297         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
65298         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
65299         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
65300         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
65301         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
65302         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
65303         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
65304         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
65305         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
65306         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
65307         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
65308         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
65309         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
65310         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
65311         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
65312         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
65313         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
65314         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
65315         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
65316         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
65317         lib/yesno.c, lib/yesno.h:
65318         Update FSF postal mail address.
65319
65320 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65321
65322         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
65323         tests/test-memmem.c, tests/test-stpncpy.c:
65324         Update FSF postal mail address.
65325
65326 2005-05-13  Bruno Haible  <bruno@clisp.org>
65327
65328         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
65329         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
65330         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
65331         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
65332         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
65333         Add support for 64-bit integers in the MSVC compiler.
65334
65335 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65336
65337         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
65338
65339 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
65340
65341         * gnulib-tool (func_import): Sort and uniquify recommended includes.
65342
65343 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
65344
65345         * doc/getdate.texi (General date syntax): Don't say that date
65346         date --iso-8601=ns generates acceptable dates; it doesn't yet.
65347         Problem reported by Nic Ferrier.
65348
65349 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65350
65351         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
65352         specified in ai_socktype. Fix invalid ai_protocol
65353         check. ai_protocol is usually set to 0 or depending on
65354         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
65355         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
65356         ai_socktype / ai_protocol in the returned addrinfo structure.
65357
65358 2005-05-10  Simon Josefsson  <jas@extundo.com>
65359
65360         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
65361         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65362
65363 2005-05-10  Karl Berry  <karl@gnu.org>
65364
65365         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
65366         (from http://www.gnu.org/licenses).
65367         * doc/COPYING.LIB: also rename to COPYING.LESSER.
65368         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
65369         fdl.texi suffices.
65370
65371 2005-05-10  Karl Berry  <karl@gnu.org>
65372
65373         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
65374         (COPYING.DOC): remove.
65375
65376         * config/srclist-update: new FSF address.
65377
65378 2005-05-10  Derek Price  <derek@ximbiot.com>
65379
65380         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
65381         possible.
65382
65383 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65384             Bruno Haible  <bruno@clisp.org>
65385
65386         * modules/inet_ntop: New file.
65387         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65388         inet_ntop.
65389
65390 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65391             Bruno Haible  <bruno@clisp.org>
65392
65393         * m4/inet_ntop.m4: New file.
65394
65395 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65396             Bruno Haible  <bruno@clisp.org>
65397
65398         * lib/inet_ntop.h: New file.
65399         * lib/inet_ntop.c: New file, from glibc with modifications.
65400
65401 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
65402
65403         * modules/time_r (License): Change to LGPL.
65404         * modules/extensions (License): Change to LGPL.  Actually,
65405         the license is more permissive than that, but currently gnulib-tool
65406         doesn't know how to handle more-permissive licenses.
65407
65408         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
65409         Problem reported by Dave Love.
65410
65411 2005-05-08  Jim Meyering  <jim@meyering.net>
65412
65413         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
65414         blank.
65415
65416 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
65417
65418         * modules/argmatch (Depends-on): Add stdbool.
65419         * modules/backupfile (Depends-on): Likewise.
65420         * modules/chdir-long (Depends-on): Likewise.
65421         * modules/closeout (Depends-on): Likewise.
65422         * modules/cycle-check (Depends-on): Likewise.
65423         * modules/dirname (Depends-on): Likewise.
65424         * modules/fnmatch (Depends-on): Likewise.
65425         * modules/fsusage (Depends-on): Likewise.
65426         * modules/fwriteerror (Depends-on): Likewise.
65427         * modules/getcwd (Depends-on): Likewise.
65428         * modules/getloadavg (Depends-on): Likewise.
65429         * modules/hard-locale (Depends-on): Likewise.
65430         * modules/makepath (Depends-on): Likewise.
65431         * modules/mountlist (Depends-on): Likewise.
65432         * modules/nanosleep (Depends-on): Likewise.
65433         * modules/posixtm (Depends-on): Likewise.
65434         * modules/quotearg (Depends-on): Likewise.
65435         * modules/readtokens (Depends-on): Likewise.
65436         * modules/readtokens0 (Depends-on): Likewise.
65437         * modules/readutmp (Depends-on): Likewise.
65438         * modules/save-cwd (Depends-on): Likewise.
65439         * modules/strftime (Depends-on): Likewise.
65440         * modules/userspec (Depends-on): Likewise.
65441         * modules/utimecmp (Depends-on): Likewise.
65442         * modules/xgetcwd (Depends-on): Likewise.
65443         * modules/xnanosleep (Depends-on): Likewise.
65444         * modules/xstrtod (Depends-on): Likewise.
65445         * modules/yesno (Depends-on): Likewise.
65446
65447 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
65448
65449         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
65450         needless checks.
65451
65452 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65453
65454         Merge from coreutils.  Among other things,
65455         add bulletproofing for cases where stdin, stdout, or stderr are closed.
65456         * lib/fd-safer.c: New file.
65457         * lib/fcntl-safer.h, open-safer.c: Remove.
65458         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
65459         * lib/dup-safer.c: Include unistd-safer.h first.
65460         Don't include errno.h.
65461         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
65462         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
65463         * lib/file-type.c: Rely on file-type.h change.
65464         * lib/getloadavg.c: Include unistd-safer.h.
65465         (getloadavg): Use safer open.
65466         * lib/getusershell.c: Include "stdio-safer.h".
65467         (getusershell): Use safer fopen.
65468         * lib/long-options.c (long_options): Use NULL rather than 0.
65469         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
65470         'free'.
65471         * lib/modechange.c: Likewise.
65472         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
65473         (MODE_DONE): New constant.
65474         (struct mode_change): Remove 'next' member.
65475         (make_node_op_equals): New function; like the old one of the
65476         same name, except it allocates an array.
65477         (mode_compile, mode_create_from_ref): Use it.
65478         (mode_compile): Allocate result as an array, not a linked list.
65479         Parse octal string ourself, so that we catch mistakes like "+0".
65480         (mode_adjust): Arg is an array, not a linked list.
65481         * lib/modechange.c: Include stat-macros.h, xalloc.h.
65482         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
65483         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
65484         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
65485         Remove.  This is now stat-macros.h's job.
65486         (talloc): Remove.  All callers replaced by xalloc, so that
65487         our invokers don't have to worry about reporting memory failures.
65488         (make_node_op_equals): Remove.
65489         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
65490         New constants.
65491         (struct mode_change): Moved here from modechange.h.
65492         (mode_append_entry): Remove.
65493         (mode_compile): Remove MASKED_OPS arg, since it encouraged
65494         apps to have incorrect behavior.  Use simpler algorithm for head
65495         and tail.  Don't futz with umask; that's now the job of mode_adjust.
65496         Detect more invalid usages rather than having somewhat-random behavior.
65497         Don't insert an "a=" action, as that leads to incorrect behavior.
65498         (mode_compile, mode_create_from_ref): Return NULL on error instead
65499         of an enum, since now there's only one way to have an error.  All
65500         callers changed.
65501         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
65502         at the correct time.  Simplify calculation of "+u" and its ilk.
65503         Don't mishandle "+X".
65504         (mode_free): Remove "register" and localize decls.
65505         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
65506         (struct mode_change): Move to modechange.c; callers don't
65507         need to see this stuff.
65508         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
65509         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
65510         (mode_change, mode_adjust): Reflect the new signatures noted above.
65511         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
65512         that might redefine system include files.
65513         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
65514         (my_usleep): Use NULL rather than (void *) 0.
65515         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
65516         Use siginterrupt to specify that system calls should be interrupted.
65517         (rpl_nanosleep): Move initialization of suspended closer to call of
65518         my_usleep.
65519         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
65520         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
65521         (desirable_utmp_entry): New function.
65522         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
65523         using x2nrealloc, to simplify logic.
65524         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
65525         size calculation.  Do not assume utmp file is a regular file.
65526         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
65527         (READ_UTMP_CHECK_PIDS): New constant.
65528         * lib/save-cwd.c: Include unistd-safer.h.
65529         (save_cwd): Use fd_safer.
65530         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
65531         [!_LIBC] Include "stat-macros.h" instead.
65532         * lib/unistd-safer.h (fd_safer): New decl.
65533
65534 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65535
65536         * modules/getloadavg (Depends-on): Add unistd-safer.
65537         * modules/getusershell (Depends-on): Add stdio-safer.
65538         * modules/lstat (Depends-on): Remove xalloc.
65539         * modules/mkstemp (Depends-on): Add stat-macros.
65540         * modules/modechange (Depends-on): Remove xstrtol.
65541         Add stat-macros, xalloc.
65542         * modules/save-cwd (Depends-on): Add unistd-safer.
65543         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
65544         * modules/unistd-safer (Files): Add lib/fd-safer.c
65545         (Makefile.am): Remove lib_SOURCES.
65546
65547         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
65548         Remove fcntl-safer; unistd-safer supersedes it.
65549
65550 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65551
65552         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
65553         AC_HEADER_STAT.
65554         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
65555         (gl_PREREQ_CHOWN): Remove.
65556         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
65557         it.  Don't require AC_HEADER_STAT.
65558         (gl_PREREQ_LSTAT): Remove.
65559         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
65560         Don't require AC_HEADER_STAT.
65561         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
65562         (gl_PREREQ_RMDIR): Remove.
65563         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
65564         mention stat-macros.h or AC_HEADER_STAT, since we'll make
65565         the stat-macros module a prerequisite.
65566         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
65567         * m4/filemode.m4 (gl_FILEMODE): Likewise.
65568         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
65569         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
65570         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
65571         variable names.
65572         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
65573         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
65574         variable prefixes.
65575         * m4/fcntl-safer.m4: Remove.
65576         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
65577         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
65578         Invoke gl_PREREQ_FD_SAFER.
65579         (gl_PREREQ_FD_SAFER): New macro.
65580         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
65581         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
65582         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
65583         Remove duplicate call to AC_LIBOBJ(readutmp).
65584         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
65585
65586         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
65587         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
65588
65589 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65590
65591         * MODULES.html.sh (Misc): Add byteswap.
65592
65593 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65594
65595         * modules/getcwd (Depends-on): Add extensions.
65596         * modules/openat (Depends-on): Likewise.
65597
65598 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65599
65600         * modules/byteswap: New file.
65601
65602 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65603
65604         * m4/byteswap.m4: New file.
65605
65606 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65607
65608         * lib/byteswap_.h: New file.
65609
65610 2005-04-25  Karl Berry  <karl@gnu.org>
65611
65612         * m4/gettext.m4: Update from GNU gettext 0.14.4.
65613
65614 2005-04-25  Albert Chin  <china@thewrittenword.com>
65615
65616         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
65617         Toolkit C bug.
65618
65619 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
65620
65621         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
65622         (func_ln_if_changed) Remove forcibly for no error message
65623         in case file does not exist.
65624
65625 2005-04-19  Simon Josefsson  <jas@extundo.com>
65626
65627         * gnulib-tool (Options): Make --symlink mean --symbolic.
65628
65629 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
65630
65631         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
65632
65633 2005-04-16  Simon Josefsson  <jas@extundo.com>
65634
65635         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
65636
65637 2005-04-15  Simon Josefsson  <jas@extundo.com>
65638
65639         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
65640
65641 2005-04-15  Simon Josefsson  <jas@extundo.com>
65642
65643         * gnulib-tool: Rename --symlink to --symbolic.
65644
65645 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
65646
65647         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
65648         symbolic links to files instead of copying/moving.  Add --aux-dir,
65649         specifying directory relative --dir where auxiliary build tools
65650         are placed.
65651
65652 2005-04-14  Bruno Haible  <bruno@clisp.org>
65653
65654         * modules/allocsa (License): Change to LGPL.
65655         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
65656
65657 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65658
65659         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
65660         that "UTC +1 second" continues to work.  Problem reported
65661         by Dmitry V. Levin.
65662         (relunit_snumber): New rule.
65663         (relunit): Use it.
65664
65665 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
65666
65667         * lib/getdate.y (universal_time_zone_table): New constant.
65668         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
65669         universal_time_zone_table.
65670         (lookup_zone): Prefer universal_time_zone_table to
65671         local_time_zone_table, so that "GMT" time stamps are allowed in
65672         London during the summer.  Problem reported by Ian Abbott.
65673
65674 2005-04-12  Jim Meyering  <jim@meyering.net>
65675
65676         * lib/human.c (humblock): Set *options even when returning due to
65677         xstrtoumax conversion failure.  Thanks to a used-uninitialized
65678         warning from gcc-4.
65679
65680 2005-04-09  Jim Meyering  <jim@meyering.net>
65681
65682         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
65683         -Wuninitialized: initialize tm0.tm_year.
65684
65685 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
65686
65687         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
65688         count, since there's no maximum.  All uses changed.
65689         Add member dsts_seen.
65690         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
65691         not being INT_MAX.
65692         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
65693         Use pc_rels_seen to decide whther a date is absolute.
65694
65695         * lib/getdate.y (number): Don't overwrite year.
65696         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
65697         check.
65698
65699 2005-04-02  Simon Josefsson  <jas@extundo.com>
65700
65701         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
65702         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
65703
65704 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
65705
65706         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
65707         where no absolute path name can be longer than PATH_MAX.
65708
65709 2005-03-27  Jim Meyering  <jim@meyering.net>
65710
65711         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
65712
65713 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
65714
65715         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
65716         "one's complement" -> "ones' complement" in comment, as per Knuth.
65717         "value of type" -> "type or expression" in comment.
65718         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
65719
65720 2005-03-26  Jim Meyering  <jim@meyering.net>
65721
65722         Comment nits.
65723         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
65724         Correct typos: s/or/of/.
65725
65726 2005-03-26  Jim Meyering  <jim@meyering.net>
65727
65728         * modules/check-include-files: Move to ../ and rename to...
65729         * check-module: ...this.
65730
65731 2005-03-25  Jim Meyering  <jim@meyering.net>
65732
65733         * modules/xvasprintf (Files): Add xalloc.h.
65734
65735 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
65736
65737         * modules/gettext (Files): config/config.rpath ->
65738         build-aux/config.rpath
65739         * modules/iconv (Files): Likewise.
65740         Problem reported by Oskar Liljeblad.
65741
65742 2005-03-23  Jim Meyering  <jim@meyering.net>
65743
65744         * modules/check-include-files: New script to check for
65745         missing dependencies, multiple includes, etc.
65746
65747         * modules/c-strtold (Depends-on): Add xalloc.
65748         * modules/c-strtod (Depends-on): Add xalloc.
65749         * modules/hash (Depends-on): Add xalloc.
65750         (Files): Remove lib/xalloc.h.
65751
65752         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
65753         * modules/userspec (Files): Add lib/inttostr.h.
65754
65755 2005-03-23  Jim Meyering  <jim@meyering.net>
65756
65757         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
65758
65759 2005-03-22  Jim Meyering  <jim@meyering.net>
65760
65761         * modules/stat-macros: New module.
65762         * modules/canonicalize, modules/euidaccess, modules/file-type,
65763         * modules/filemode, modules/lchown, modules/makepath,
65764         * modules/rmdir, modules/stat: Depend on new stat-macros module
65765         rather than listing lib/stat-macros.h manually.
65766         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
65767
65768 2005-03-22  Jim Meyering  <jim@meyering.net>
65769
65770         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
65771
65772 2005-03-22  Bruno Haible  <bruno@clisp.org>
65773
65774         * config/srclist.txt: Replace target directory 'config' with
65775         'build-aux'.
65776         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
65777         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
65778         ../build-aux/.
65779
65780 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
65781
65782         * modules/chdir-long (Depends-on): Add mempcpy.
65783
65784         * modules/acl, modules/backupfile, modules/c-strtod,
65785         modules/c-strtold, modules/canon-host, modules/canonicalize,
65786         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
65787         modules/exclude, modules/exitfail, modules/file-type,
65788         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
65789         modules/getdate, modules/getline, modules/getpagesize,
65790         modules/getpass, modules/getugroups, modules/group-member,
65791         modules/hard-locale, modules/hash, modules/human, modules/idcache,
65792         modules/inttostr, modules/long-options, modules/makepath,
65793         modules/md5, modules/memcasecmp, modules/memcoll,
65794         modules/modechange, modules/mountlist, modules/path-concat,
65795         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
65796         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
65797         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
65798         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
65799         modules/strftime, modules/strndup, modules/strverscmp,
65800         modules/timespec, modules/unlocked-io, modules/userspec,
65801         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
65802         modules/yesno:
65803         Remove lib_SOURCES line from Makefile.am section, as this is now
65804         done automatically by the corresponding Autoconf macro.
65805
65806 2005-03-21  Jim Meyering  <jim@meyering.net>
65807
65808         Changes imported from coreutils.
65809
65810         * lib/cycle-check.c: Don't include xalloc.h.
65811
65812         * lib/path-concat.c: Don't include assert.h.
65813         (path_concat): Remove assertion that would have triggered
65814         for ABASE starting with more than one slash.
65815         Reported by Andreas Schwab.
65816
65817         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
65818         properly when ABASE is an absolute file name.
65819         Correct the description of this function.
65820         Include <assert.h>.
65821         Add an assertion and a test driver.
65822         This fixes a bug introduced on 2004-07-02.
65823         Andreas Schwab reported the resulting failure of cp --parents:
65824         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
65825
65826 2005-03-21  Jim Meyering  <jim@meyering.net>
65827
65828         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
65829         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
65830
65831 2005-03-21  Jim Meyering  <jim@meyering.net>
65832         and  Paul Eggert  <eggert@cs.ucla.edu>
65833
65834         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
65835         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
65836         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
65837         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
65838         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
65839         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
65840         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
65841         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
65842         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
65843         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
65844         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
65845         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
65846         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
65847         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
65848         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
65849         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
65850         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
65851         for these modules.
65852
65853 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
65854
65855         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
65856         (which shouldn't happen), generate nothing instead of returning 0
65857         immediately, so that nstrftime (NULL, ...) doesn't return 0.
65858
65859 2005-03-16  Bruno Haible  <bruno@clisp.org>
65860
65861         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
65862         HAVE_LONGLONG_64BIT.
65863
65864 2005-03-16  Bruno Haible  <bruno@clisp.org>
65865
65866         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
65867         HAVE_LONGLONG_64BIT.
65868
65869 2005-03-16  Bruno Haible  <bruno@clisp.org>
65870
65871         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
65872         HAVE_LONGLONG_64BIT.
65873
65874 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
65875
65876         * lib/strftime.c (my_strftime): Prepend space to format so that we can
65877         reliably distinguish strftime failure from empty output on POSIX
65878         hosts.
65879
65880 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
65881
65882         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
65883         (iconv_string): Don't guess a size-zero buffer, as that might cause
65884         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
65885         result would be 'too large', where 'too large' is (heuristically)
65886         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
65887         overflow concerns.  This will prevent some unwanted malloc failures
65888         when the inputs are very large.
65889
65890 2005-03-15  Karl Berry  <karl@gnu.org>
65891
65892         * config/srclist.txt (config.rpath): from gettext.
65893         * config/config.rpath: update.
65894
65895 2005-03-15  Bruno Haible  <bruno@clisp.org>
65896
65897         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
65898         to 'negate'.
65899
65900         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
65901         variable.
65902
65903         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
65904         results.
65905
65906 2005-03-14  Simon Josefsson  <jas@extundo.com>
65907
65908         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
65909         <fx@gnu.org>.
65910
65911 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
65912
65913         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
65914         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
65915         intprops.h.
65916         * lib/strtol.c: Likewise.
65917
65918 2005-03-14  Jim Meyering  <jim@meyering.net>
65919
65920         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
65921         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
65922         to be nonzero so that we (and caller) can detect the difference
65923         between a valid zero-length expansion and an error return, even
65924         when the underlying strftime fails before writing anything into
65925         that location.
65926
65927 2005-03-14  Bruno Haible  <bruno@clisp.org>
65928
65929         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
65930         Update from GNU gettext 0.14.3.
65931
65932 2005-03-10  Jim Meyering  <jim@meyering.net>
65933
65934         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
65935
65936 2005-03-10  Jim Meyering  <jim@meyering.net>
65937
65938         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
65939         so that this module works on systems without fchdir.
65940
65941 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
65942
65943         Factor int-properties macros into a single file, except for
65944         glibc-related files.
65945         * lib/intprops.h: New file.
65946         * lib/getloadavg.c: Include it instead of limits.h.
65947         (INT_STRLEN_BOUND): Remove.
65948         * lib/human.c: Include intprops.h.
65949         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
65950         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
65951         302/1000.
65952         * lib/inttostr.h: Include intprops.h instead of limits.h.
65953         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
65954         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
65955         for consistency with intprops.h.
65956         (time_t_is_integer, twos_complement_arithmetic): Use them.
65957         * lib/sig2str.h: Include <signal.h>, intprops.h.
65958         (INT_STRLEN_BOUND): Remove.
65959         * lib/strftime.c (TYPE_SIGNED): Remove.
65960         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
65961         * lib/strtol.c: Adjust comments to match intprops.h.
65962         * lib/userspec.c: Include intprops.h.
65963         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
65964         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
65965         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
65966         instead of rolling our own expressions.
65967         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
65968
65969         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
65970         instead of int.
65971         (my_strftime): Do not mishandle years close to INT_MAX, by doing
65972         the right thing even if adding 1900 would overflow.  Similarly
65973         for tm_mon + 1 and tm_yday + 1.
65974         Make %Y always equivalent to %C%y, and similarly for %G and %g.
65975         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
65976         (DO_SIGNED_NUMBER): New macro.
65977         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
65978
65979 2005-03-07  Bruno Haible  <bruno@clisp.org>
65980
65981         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
65982
65983 2005-03-07  Bruno Haible  <bruno@clisp.org>
65984
65985         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
65986
65987 2005-03-04  Derek R. Price  <derek@ximbiot.com>
65988
65989         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
65990         (func_import): Only replace files via --import when they have actually
65991         changed.
65992
65993 2005-03-03  Derek R. Price  <derek@ximbiot.com>
65994
65995         * m4/mmap-anon.m4: New file.
65996         * m4/pagealign_alloc.m4: New file.
65997
65998 2005-03-03  Derek R. Price  <derek@ximbiot.com>
65999             Bruno Haible  <bruno@clisp.org>
66000
66001         * modules/pagealign_alloc: New file.
66002         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
66003
66004 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66005             Bruno Haible  <bruno@clisp.org>
66006
66007         * lib/pagealign_alloc.h: New file.
66008         * lib/pagealign_alloc.c: New file.
66009
66010 2005-03-03  Bruno Haible  <bruno@clisp.org>
66011
66012         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
66013         Use an all-permissive copyright notice, recommended by RMS.
66014
66015 2005-03-02  Bruno Haible  <bruno@clisp.org>
66016
66017         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
66018         of AIX, the replacement has to be done only after <string.h> is
66019         included, therefore not in config.h. stpncpy.h does the replacement,
66020         and stpncpy.c uses it.
66021
66022 2005-03-02  Bruno Haible  <bruno@clisp.org>
66023
66024         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
66025         stpncpy.c uses it.
66026
66027 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66028
66029         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
66030         The workaround isn't strictly needed for POSIX conformance, and
66031         it's too much of a pain to configure and maintain.  We'll ask
66032         people to fix their kernels instead.
66033         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
66034         (NANOSLEEP_BUG_WORKAROUND): Remove.
66035         (xnanosleep): Remove the workaround.
66036
66037 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66038
66039         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
66040         Reported by Derek Price.
66041         (Include): Add "timespec.h".
66042
66043         * modules/xnanosleep (Depends-on): Remove gethrxtime.
66044
66045 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66046
66047         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
66048         to detect nanosleep bug.
66049
66050 2005-03-01  Bruno Haible  <bruno@clisp.org>
66051
66052         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
66053
66054 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
66055
66056         * modules/gethrxtime: New file.
66057         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
66058         (Depends-on): Add gethrxtime.
66059         (configure.ac): Add gl_XNANOSLEEP.
66060         (Makefile.am): Remove lib_SOURCES line.
66061
66062 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
66063
66064         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
66065         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
66066
66067 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
66068
66069         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
66070         * lib/timespec.h (gettime): Return void, since it always
66071         succeeds now.  All uses changed.
66072         * lib/gettime.c (gettime) Likewise.
66073         [HAVE_NANOTIME]: Prefer nanotime.
66074         Assume gettimeofday succeeds, as POSIX requires.
66075         Assime time () succeeds, since other code already does.
66076         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
66077         (timespec_subtract): Remove.
66078         (NANOSLEEP_BUG_WORKAROUND): New constant.
66079         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
66080         things considerably.  Use it only on GNU/Linux hosts, since the
66081         workaround shouldn't be needed elsewhere.
66082
66083 2005-02-24  Bruno Haible  <bruno@clisp.org>
66084
66085         * modules/gettext (Files): Add m4/glibc2.m4.
66086
66087 2005-02-24  Bruno Haible  <bruno@clisp.org>
66088
66089         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
66090         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
66091         * m4/progtest.m4:
66092         Update from GNU gettext 0.14.2.
66093         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
66094
66095 2005-02-24  Bruno Haible  <bruno@clisp.org>
66096
66097         * lib/localcharset.c: Update from GNU gettext 0.14.2.
66098         * lib/config.charset: Update from GNU gettext 0.14.2.
66099
66100 2005-02-24  Bruno Haible  <bruno@clisp.org>
66101
66102         * lib/gettext.h: Update from GNU gettext 0.14.2.
66103
66104 2005-02-23  Simon Josefsson  <jas@extundo.com>
66105
66106         * m4/iconvme.m4: New file.
66107
66108 2005-02-23  Jim Meyering  <jim@meyering.net>
66109
66110         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
66111         change.
66112         Thanks to Bruno Haible for catching it.
66113
66114 2005-02-22  Simon Josefsson  <jas@extundo.com>
66115
66116         * modules/iconvme: New file.
66117
66118         * MODULES.html.sh: Add iconvme.
66119
66120 2005-02-22  Simon Josefsson  <jas@extundo.com>
66121
66122         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
66123
66124 2005-02-22  Simon Josefsson  <jas@extundo.com>
66125
66126         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
66127
66128 2005-02-22  Jim Meyering  <jim@meyering.net>
66129
66130         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
66131         s/ifndef/ifdef/.
66132
66133 2005-02-20  Neil Conway  <neilc@samurai.com>
66134
66135         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
66136         returned by OSX/Darwin if the specified buffer is not large
66137         enough for the hostname.
66138
66139 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66140
66141         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
66142         pass it to _help, otherwise the latter coredumps trying to
66143         dereference state.root_argp.
66144
66145 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66146
66147         * modules/chdir-long (Depends-on): Add memrchr.
66148         * modules/memrchr (Files): Add lib/memrchr.h.
66149         (Include): "memrchr.h".
66150
66151 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66152
66153         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
66154
66155 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66156
66157         * lib/memrchr.h: New file.
66158         * lib/chdir-long.c: Include it.
66159         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
66160         Don't bother including stddef.h.
66161
66162 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
66163
66164         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
66165         inclusion.
66166         Include <sys/types.h>, for dev_t.
66167         (ME_DUMMY, ME_REMOTE): Move from here....
66168         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
66169         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
66170         Dmitry V. Levin.
66171         Include mountlist.h first, to test the interface.
66172
66173 2005-01-29  Bruno Haible  <bruno@clisp.org>
66174
66175         * lib/progname.c (program_name): Initialize.
66176         Needed when linking statically on MacOS X.
66177
66178 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
66179
66180         Sync from coreutils.
66181         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
66182         (Depends-on): Add c-strtod.
66183         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
66184
66185 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
66186
66187         Sync from coreutils.
66188         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
66189
66190         Remove files that are specific to coreutils.
66191         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
66192
66193 2005-01-28  Bruno Haible  <bruno@clisp.org>
66194
66195         * modules/javacomp: New file.
66196         * MODULES.html.sh (Java): Add javacomp.
66197
66198 2005-01-28  Bruno Haible  <bruno@clisp.org>
66199
66200         * m4/javacomp.m4: New file, from GNU gettext.
66201
66202 2005-01-28  Bruno Haible  <bruno@clisp.org>
66203
66204         * lib/javacomp.sh.in: New file, from GNU gettext.
66205         * lib/javacomp.h: New file, from GNU gettext.
66206         * lib/javacomp.c: New file, from GNU gettext.
66207
66208 2005-01-26  Simon Josefsson  <jas@extundo.com>
66209
66210         * lib/gai_strerror.c: Use GPL in header.
66211
66212 2005-01-26  Bruno Haible  <bruno@clisp.org>
66213
66214         * modules/javaexec: New file.
66215         * MODULES.html.sh (Java): Add javaexec.
66216
66217 2005-01-26  Bruno Haible  <bruno@clisp.org>
66218
66219         * m4/javaexec.m4: New file, from GNU gettext.
66220
66221 2005-01-26  Bruno Haible  <bruno@clisp.org>
66222
66223         * lib/javaexec.sh.in: New file, from GNU gettext.
66224         * lib/javaexec.h: New file, from GNU gettext.
66225         * lib/javaexec.c: New file, from GNU gettext.
66226
66227 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66228
66229         * modules/lchown (Depends-on): Remove lchown.h
66230
66231 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66232
66233         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
66234         must be defined if the header file was not found, in order
66235         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
66236
66237 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66238
66239         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
66240         initializers for struct pentry_state.
66241         (__argp_error): Check return value of __asprintf
66242         (__argp_failure): Translate error message
66243
66244         * lib/argp-parse.c: Removed braces around the expansion of N_()
66245
66246 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66247
66248         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
66249         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
66250         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
66251         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
66252         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
66253         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
66254         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
66255         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
66256         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
66257         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
66258         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
66259         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
66260         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
66261         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
66262         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
66263         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
66264         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
66265         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
66266         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
66267         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
66268         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
66269         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
66270         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
66271         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
66272         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
66273         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
66274         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
66275         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
66276         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
66277         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
66278         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
66279         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
66280         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
66281         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
66282         xstrtol.m4, xstrtoumax.m4, yesno.m4:
66283         Use an all-permissive copyright notice, recommended by RMS.
66284
66285 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
66286
66287         * modules/chdir-long (Depends-on): Remove mempcpy.
66288
66289 2005-01-21  Jim Meyering  <jim@meyering.net>
66290
66291         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
66292         same value as for Solaris 9.
66293
66294         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
66295         component length.  This included changing the parameter to be
66296         of type `char *' rather than `char const *'.
66297         * lib/chdir-long.h (chdir_long): Update prototype.
66298
66299         * lib/openat.c (fdopendir, fstatat): New functions.
66300         * lib/openat.h: Include headers required for use of DIR and struct
66301         stat.
66302         [AT_SYMLINK_NOFOLLOW]: Define.
66303         (fdopendir, fstatat): Add prototypes.
66304
66305 2005-01-21  Bruno Haible  <bruno@clisp.org>
66306
66307         * modules/classpath: New file.
66308         * MODULES.html.sh (Java): Add classpath.
66309
66310 2005-01-21  Bruno Haible  <bruno@clisp.org>
66311
66312         * lib/classpath.h: New file, from GNU gettext.
66313         * lib/classpath.c: New file, from GNU gettext.
66314
66315 2005-01-20  Simon Josefsson  <jas@extundo.com>
66316
66317         * modules/version-etc-fsf: New file.
66318
66319 2005-01-20  Simon Josefsson  <jas@extundo.com>
66320
66321         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
66322         * lib/version-etc.c: Remove version_etc_copyright.
66323         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
66324         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
66325
66326 2005-01-20  Simon Josefsson  <jas@extundo.com>
66327
66328         * lib/base64.h (isbase64): Add.
66329
66330         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
66331         using a unsigned prototype, don't inline.
66332         (base64_decode): Use it.
66333
66334 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66335
66336         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
66337         it.
66338
66339 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66340
66341         * lib/save-cwd.c (save_cwd): Remove code to support the case
66342         where fchdir is missing or flaky.
66343
66344 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66345
66346         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
66347
66348 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
66349
66350         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
66351         AC_LIBSOURCES now does this.
66352         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
66353         with new ullong_max module.
66354
66355 2005-01-19  Bruno Haible  <bruno@clisp.org>
66356
66357         * modules/sh-quote: New file.
66358         * MODULES.html.sh (Executing programs): Add sh-quote.
66359
66360 2005-01-19  Bruno Haible  <bruno@clisp.org>
66361
66362         * lib/sh-quote.h: New file, from GNU gettext.
66363         * lib/sh-quote.c: New file, from GNU gettext.
66364
66365 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
66366
66367         Merge from coreutils.
66368         * m4/ullong_max.m4: New file.
66369         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
66370         (gl_MACROS): Assume localeconv exists.
66371
66372 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
66373
66374         Merge changes from coreutils, as described below in several
66375         changelogs dated today.
66376
66377         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
66378         (O_DIRECTORY): Remove; not needed here, since "." must be
66379         a directory.  All uses removed.
66380         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
66381         universal on Suns, and we also need to test for IRIX.
66382         Revamp code to use 'if' rather than '#if'.
66383         Avoid unnecessary comparison of cwd->desc to 0.
66384
66385         * lib/utimens.c (futimens): Robustify the previous patch, by checking
66386         for known valid error numbers rather than observed invalid ones.
66387
66388 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
66389
66390         * modules/ullong_max: New file.
66391
66392         * modules/chdir-long, modules/openat: New files.
66393         * modules/save-cwd (Depends-on): Depend on chdir-long.
66394         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
66395
66396 2005-01-18  Jim Meyering  <jim@meyering.net>
66397
66398         Merge from coreutils.
66399         * m4/chdir-long.m4, m4/openat.m4: New files.
66400         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
66401         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
66402         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
66403         is sane and DOES follow symlinks.  Besides, testing 20 different
66404         systems found no broken chown implementations.
66405         Prompted by a change in rsync's copy of this macro.
66406         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
66407
66408         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
66409
66410         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
66411         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
66412         NULL-means-set-to-current-time semantics.
66413         Remove temporary file immediately, rather than waiting
66414         for configure's at-exit trap code to do it.
66415
66416 2005-01-18  Jim Meyering  <jim@meyering.net>
66417
66418         * lib/version-etc.c (version_etc_copyright): Update copyright date.
66419
66420         * lib/utimens.c (futimens): Account for the fact that futimes
66421         can also fail with errno == ENOSYS or errno == ENOENT.
66422         Patch from Dmitry V. Levin.
66423
66424         Change the name of the robust chdir function from chdir to chdir_long.
66425         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
66426         (restore_cwd): Use chdir_long, not chdir.
66427         * lib/chdir-long.c: Renamed from chdir.c.
66428         * lib/chdir-long.h: Renamed from chdir.h.
66429         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
66430         Hurd.
66431
66432 2005-01-18  Bruno Haible  <bruno@clisp.org>
66433
66434         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
66435         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
66436         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
66437         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
66438         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
66439         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
66440         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
66441         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
66442         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
66443         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
66444         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
66445         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
66446         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
66447         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
66448         Use an all-permissive copyright notice, recommended by RMS.
66449
66450 2005-01-18  Bob Proulx  <bob@proulx.com>
66451
66452         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
66453         simplify offsetof() macro construct to avoid compile failure with
66454         native HP-UX 11.0 ANSI C compiler.
66455
66456 2005-01-17  Bruno Haible  <bruno@clisp.org>
66457
66458         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
66459         redundant because stpncpy.m4 takes care of it.
66460
66461 2005-01-17  Bruno Haible  <bruno@clisp.org>
66462
66463         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
66464
66465 2005-01-17  Bruno Haible  <bruno@clisp.org>
66466
66467         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
66468         used.
66469
66470 2005-01-17  Bruno Haible  <bruno@clisp.org>
66471
66472         * lib/fwriteerror.h (fwriteerror): Change specification to include
66473         fclose.
66474         * lib/fwriteerror.c: Include <stdbool.h>.
66475         (fwriteerror): At the end, close the file stream. Record whether
66476         stdout was already closed.
66477
66478 2005-01-17  Bruno Haible  <bruno@clisp.org>
66479
66480         * lib/execute.c (environ): Declare if needed.
66481         * lib/pipe.c (environ): Likewise.
66482         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
66483
66484 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66485
66486         * modules/argp: Depend on vsnprintf
66487
66488 2005-01-10  Jim Meyering  <jim@meyering.net>
66489
66490         * modules/closeout (Depends-on): Add atexit.
66491
66492 2005-01-06  Bruno Haible  <bruno@clisp.org>
66493
66494         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
66495
66496 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66497
66498         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
66499         definitions to be after all include files, to avoid collisions.
66500         Problem reported by Bob Proulx.
66501
66502 2005-01-04  Jim Meyering  <jim@meyering.net>
66503
66504         Changes imported from coreutils.
66505         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
66506         as the mkstemp template, use a temporary directory and an
66507         8.3-friendly template to avoid trouble on systems like DJGPP.
66508         Reported by Juan M. Guerrero via Stepan Kasal.
66509         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
66510         close. Remove the temporary directory right away, rather than waiting
66511         for configure's at-exit trap code to do it.
66512         Suggestion from Stepan Kasal.
66513
66514 2005-01-01  Simon Josefsson  <jas@extundo.com>
66515
66516         * gnulib-tool: Print #include directives when --import'ing.
66517
66518 2004-12-28  Simon Josefsson  <jas@extundo.com>
66519
66520         * tests/test-base64.c: Include required header files.  Remove
66521         unused variables.
66522
66523 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66524
66525         * modules/error (Depends-on): Remove gettext.
66526
66527 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66528
66529         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
66530         not needed.  This removes a dependency on the gettext module.
66531         [defined _LIBC]: Do not include <libintl.h>; not needed.
66532
66533 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
66534
66535         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
66536         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
66537
66538 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
66539
66540         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
66541         HAVE_DECL_STRTOLD.
66542
66543 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66544
66545         * modules/getdate (Depends-on): Remove alloca-opt.
66546
66547 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66548
66549         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
66550
66551 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66552
66553         * lib/argp-parse.c: Include <stddef.h>.
66554         (alignof, alignto): New macros.
66555         (parser_init): Don't assume that void * is aligned sufficiently
66556         for struct option.
66557
66558         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
66559         need to extend the stack.
66560         (YYINITDEPTH): New macro, so that the initial stack isn't overly
66561         large.
66562
66563 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66564
66565         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
66566
66567 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
66568
66569         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
66570         (2004-10-24) change.  Apparently this was a false alarm.
66571
66572         * modules/getdate: Depend on alloca-opt, not alloca.
66573
66574 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
66575
66576         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
66577         Remove now-obsolete comment about AIX.
66578         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
66579         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
66580         (YYMAXDEPTH): New macro.
66581
66582 2004-12-18  Simon Josefsson  <jas@extundo.com>
66583
66584         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
66585
66586 2004-12-18  Bruno Haible  <bruno@clisp.org>
66587
66588         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
66589
66590 2004-12-18  Bruno Haible  <bruno@clisp.org>
66591
66592         * lib/fatal-signal.c (fatal_signals): Make non-const.
66593         (init_fatal_signals): New function.
66594         (uninstall_handlers, install_handlers): Ignore signals that were set to
66595         SIG_IGN.
66596         (at_fatal_signal): Call init_fatal_signals.
66597         (init_fatal_signal_set): Likewise. Ignore signals that were set to
66598         SIG_IGN.
66599         Reported by Paul Eggert.
66600
66601 2004-12-18  Bruno Haible  <bruno@clisp.org>
66602
66603         * doc/alloca.texi: New file.
66604         * doc/alloca-opt.texi: New file.
66605
66606 2004-12-17  Jim Meyering  <jim@meyering.net>
66607
66608         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
66609         Otherwise, install-sh could exit with improper exit status when
66610         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
66611
66612 2004-12-16  Simon Josefsson  <jas@extundo.com>
66613
66614         * tests/test-base64.c: Add license.
66615
66616 2004-12-15  Stepan Kasal  <address@hidden>
66617
66618         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
66619
66620 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
66621
66622         * modules/getcwd (Files): Add m4/d-ino.m4.
66623         Suggested by Mark D. Baushke.
66624
66625 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
66626
66627         * lib/getdate.y (textint): New member "negative".
66628         (time_zone_hhmm): New function.
66629         Expect 14 shift-reduce conflicts, not 13.
66630         (o_colon_minutes): New rule.
66631         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
66632         (yylex): Set the "negative" member of signed numbers.
66633
66634 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
66635
66636         * doc/getdate.texi (Time of day items, Time zone items):
66637         Describe new formats +00:00, UTC+00:00.
66638
66639 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66640
66641         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
66642         spurious "-l"s.  Problem reported by Stepan Kasal.
66643
66644 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
66645
66646         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
66647         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
66648
66649 2004-12-04  Simon Josefsson  <jas@extundo.com>
66650
66651         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
66652         Vandoorselaere <yoann@prelude-ids.org>.
66653
66654 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
66655
66656         Changes imported from coreutils.
66657         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
66658         exist.
66659         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
66660
66661 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
66662
66663         Changes imported from coreutils.
66664         * lib/hard-locale.c: Assume <locale.h> exists.
66665         Include "strdup.h".
66666         (GLIBC_VERSION): New macro.
66667         (hard_locale): Assume setlocale exists.
66668         Rewrite to avoid #ifdef.
66669         Use strdup rather than malloc + strcpy.
66670         * lib/human.c: Assume <locale.h> exists.
66671         (human_readable): Assume localeconv exists.
66672
66673 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
66674
66675         * modules/hard-locale (Depends-on): Add strdup.
66676
66677 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
66678
66679         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
66680         convert T2, not T.  (Imported from libc.)
66681
66682 2004-11-30  Simon Josefsson  <jas@extundo.com>
66683
66684         * modules/restrict (License): Change to LGPL.
66685
66686 2004-11-30  Simon Josefsson  <jas@extundo.com>
66687
66688         * m4/restrict.m4: Add copyright and copying conditions.
66689
66690 2004-11-30  Simon Josefsson  <jas@extundo.com>
66691
66692         * m4/base64.m4: New file.
66693
66694 2004-11-30  Simon Josefsson  <jas@extundo.com>
66695
66696         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
66697         base64.
66698
66699         * tests/test-base64.c: New file.
66700
66701         * modules/base64: New file.
66702
66703 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
66704
66705         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
66706         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
66707
66708         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
66709
66710 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
66711
66712         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
66713         (__getcwd.c): Don't restore errno; glibc doesn't.
66714         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
66715         first, falling back to our code only if its results look suspicious.
66716         Ensure that the resulting buffer is only as large as necessary.
66717
66718         * lib/readutmp.c: Include readutmp.h first.
66719         Include <errno.h>, since readutmp.h no longer does that.
66720         * lib/readutmp.h: Don't include <errno.h>,
66721         <sys/param.h>, <time.h>; not needed to establish interface.
66722         (errno): Remove decl.
66723         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
66724         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
66725         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
66726
66727 2004-11-28  Simon Josefsson  <jas@extundo.com>
66728
66729         * lib/base64.h, base64.c: New file.
66730
66731 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
66732
66733         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
66734
66735 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
66736
66737         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
66738         (Depends-on): Remove pathmax, same.  Add mempcpy.
66739         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
66740         (Makefile.am): Append getcwd.h to lib_SOURCES.
66741         (Include): Add getcwd.h.
66742         (Maintainer): Change from Jim Meyering to "all, glibc",
66743         since getdate now uses intended-for-glibc code.
66744         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
66745         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
66746
66747 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
66748
66749         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
66750         HP's ANSI C compiler.
66751         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
66752         Declaring int functions causes warnings on some modern systems and
66753         shouldn't be needed to compile on ancient ones.
66754         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
66755         defined.
66756
66757         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
66758         with the following changes.
66759         (__set_errno): Parenthesize properly.
66760         Include <stdbool.h>.
66761         (MIN, MAX, MATCHING_INO): New macros.
66762         (__getcwd): Define with prototype, not K&R form.
66763         Use heuristics to allocate default buffer on stack if possible.
66764         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
66765         behavior, and to avoid the PATH_MAX limit when computing
66766         ../../../../...
66767         Use MATCHING_INO to compare inode number to file.
66768         Check for arithmetic overflow in size calculations.
66769         Fix bug in reallocation of dot array that caused getcwd to fail
66770         on directories nested deeper than 75.
66771         Be more careful about saving errno on error.
66772         Do not use realloc; use only free+malloc, as this is a bit
66773         more flexible and avoids a needless copy operation.
66774         Do not inspect st_dev and st_ino for symbolic links; POSIX
66775         doesn't specify the latter.
66776         Check for closedir errors.
66777         Avoid needless casts.
66778         Use "#ifdef weak_alias" around weak_alias, to be like other
66779         glibc code.
66780         The following changes to getcwd.c have effect only when used in
66781         gnulib; they have no effect inside glibc proper.
66782         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
66783         as alloca isn't used.
66784         (alloca, __alloca): Likewise.
66785         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
66786         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
66787         unconditionally, as gnulib assumes C89 or better.
66788         Do not include <sys/param.h>.
66789         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
66790         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
66791         better.
66792         (NULL) [!defined NULL]: Remove; we assume C89 or better.
66793         Include <dirent.h> in a way that is compatible with modern Autoconf.
66794         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
66795         New macros, if not already defined.
66796         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
66797         Use "_LIBC", not "defined _LIBC", for consistency.
66798         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
66799         a mempcpy module.
66800         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
66801         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
66802         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
66803         credit only to Jim Meyering and adjust the copyright dates.
66804         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
66805         <stdlib.h>, <unistd.h>, "pathmax.h".
66806         Instead, include "xgetcwd.h" (first) and "getcwd.h".
66807         (INITIAL_BUFFER_SIZE): Remove.
66808         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
66809
66810 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
66811
66812         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
66813         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
66814         Use the _ONCE methods, for efficiency.
66815         Check for fcntl.h.  In test program, include <errno.h>
66816         and <fcntl.h> if available.  Remove old K&R cruft from
66817         test program.  Check for common errors in GNU/Linux,
66818         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
66819         don't do AC_LIBOBJ, as that's getcwd.m4's job.
66820         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
66821         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
66822         name accordingly.
66823         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
66824         accommodate new getcwd.c.
66825         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
66826         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
66827         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
66828         that's all we need now.
66829
66830 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66831
66832         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
66833         argp-parse.c depends on getopt internals, that means we should
66834         always use our getopt, to be on the safe side.
66835         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
66836         order not to spoil the result of an eventual previous invocation
66837         of gl_GETOPT_SUBSTITUTE.
66838
66839 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66840
66841         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
66842         redefinition warnings. To avoid them, include the defines
66843         in `#if !defined __need_getopt ... #endif'. The only place
66844         where __getopt_argv_const is used is in definitions
66845         of getopt_long and getopt_long_only below, which are as well
66846         protected by `#ifndef __need_getopt'.
66847         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
66848         __need_getopt after including <stdio.h> and <unistd.h> These
66849         headers might have defined it.
66850
66851 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
66852
66853         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
66854
66855 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
66856
66857         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
66858         (futimens): New function, which uses futimes if available.
66859         (futimens, utimens): Support timespec==NULL, with same semantics
66860         as utime and utimens.
66861         * lib/utimens.h (futimens): New decl.
66862
66863 2004-11-23  Jim Meyering  <jim@meyering.net>
66864
66865         * lib/getopt_.h: Remove trailing blanks.
66866
66867 2004-11-23  Jim Meyering  <jim@meyering.net>
66868
66869         * lib/__fpending.c: Add comment.
66870
66871 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
66872
66873         * modules/canonicalize (Depends-on): Add xreadlink.
66874         Problem reported by James Youngman.
66875
66876 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66877
66878         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
66879         New macros.
66880         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
66881         optopt): Use them instead of invoking ## directly; otherwise, the
66882         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
66883
66884 2004-11-19  Bruno Haible  <bruno@clisp.org>
66885
66886         * lib/strtok_r.c: Move comments from here...
66887         * lib/strtok_r.h: ... to here.
66888
66889 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66890
66891         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
66892         implementations that mishandle size_t overflow.
66893
66894 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66895
66896         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
66897         might fail.  Problem reported by Yoann Vandoorselaere.
66898         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
66899         implementations that mishandle size_t overflow.
66900
66901 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66902
66903         * modules/canon-host (Depends-on): Add strdup.
66904
66905 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66906
66907         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
66908
66909 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66910
66911         * lib/canon-host.c: Include "strdup.h".
66912         (canon_host): Use getaddrinfo if available, so that IPv6 works.
66913         Use strdup instead of malloc/strcpy to duplicate strings.
66914
66915         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
66916         (human_space_before_unit): New constant.
66917         * lib/human.c (human_readable): Support it.
66918
66919         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
66920         (xgetcwd): Set errno correctly when failing.
66921         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
66922         the failure is actually due to a PATH_MAX problem.
66923
66924         Further getopt changes to make it more likely that glibc will
66925         buy the changes back.
66926         * lib/getopt.c (POSIXLY_CORRECT): New constant.
66927         (getopt): Use it, so to preserve glibc semantic
66928         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
66929         when compiling for libc.
66930         * lib/getopt_.h (__getopt_argv_const): Bring it back.
66931         (getopt_long, getopt_long_only): Use it.
66932
66933         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
66934         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
66935         (getopt): Argv is now char * const *, as per standard.
66936         (_getopt_internal_r, _getopt_internal): Argv is now char **,
66937         not char *__getopt_argv_const *.
66938         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
66939         _getopt_long_only_r): Likewise.
66940         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
66941         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
66942         _getopt_long_r, _getopt_long_only_r): Likewise.
66943         * lib/getopt_.h (__getopt_argv_const): Remove.
66944         (getopt): Argv is now char * const *, as per standard.
66945
66946         * lib/getdate.y (tORDINAL): New token.
66947         (day, relunit): Allow it for relative times.
66948         (relative_time_table): Use tORDINAL for ordinals.
66949
66950 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66951
66952         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
66953         Document that "second" isn't allowed as an ordinal number.
66954
66955 2004-11-16  Jim Meyering  <jim@meyering.net>
66956
66957         * modules/closeout (Depends-on): Add fpending.
66958
66959 2004-11-15  Jim Meyering  <jim@meyering.net>
66960
66961         * lib/closeout.c: Include "__fpending.h" once again.
66962         Include <stdbool.h>.
66963         (close_stdout): Don't fail just because stdout was closed initially,
66964         since some programs don't write to stdout in the normal course of
66965         operation (other than --version and --help), and we don't want this
66966         function to make e.g. `touch file >&-' fail.
66967         But do fail if it was closed and someone has tried to write to it.
66968         E.g., `printf foo >&-' must fail.
66969
66970 2004-11-13  Jim Meyering  <jim@meyering.net>
66971
66972         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
66973
66974 2004-11-12  Simon Josefsson  <jas@extundo.com>
66975
66976         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
66977         small doc fix is still pending.
66978
66979 2004-11-11  Simon Josefsson  <jas@extundo.com>
66980
66981         * modules/strtok_r: New file.
66982
66983         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66984         strtok_r.
66985
66986 2004-11-11  Simon Josefsson  <jas@extundo.com>
66987
66988         * m4/strtok_r.m4: New file.
66989
66990         * m4/getopt.m4: Replace opterr.
66991
66992 2004-11-11  Simon Josefsson  <jas@extundo.com>
66993
66994         * lib/strtok_r.h, strtok_r.c: New file.
66995
66996 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
66997
66998         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
66999         of replacing opterr, getopt, etc.  This should handle the
67000         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
67001
67002 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
67003
67004         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
67005         we can stop lying to compilers about the constness of argv when we
67006         are compiled outside glibc.
67007         (getopt, getopt_long, getopt_long_only): Use it.
67008         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
67009         _getopt_internal, getopt): Likewise.
67010         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
67011         _getopt_long_only_r): Likewise.
67012         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
67013         _getopt_long_r, _getopt_long_only_r): Likewise.
67014
67015         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
67016         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
67017         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
67018         the other external symbols.
67019         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
67020         declaration, since the above renaming now works around collisions.
67021
67022 2004-11-11  Jim Meyering  <jim@meyering.net>
67023
67024         * lib/linebreak.c: Remove trailing blanks.
67025         * lib/alloca_.h: Likewise.
67026         * lib/acosl.c: Likewise.
67027         * lib/euidaccess.c: Likewise.
67028         * lib/allocsa.h: Likewise.
67029
67030 2004-11-10  Simon Josefsson  <jas@extundo.com>
67031
67032         * m4/getaddrinfo.m4: New file.
67033
67034 2004-11-10  Simon Josefsson  <jas@extundo.com>
67035
67036         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
67037
67038 2004-11-10  Simon Josefsson  <jas@extundo.com>
67039
67040         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67041         getaddrinfo.
67042
67043         * modules/getaddrinfo: New file.
67044
67045 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67046
67047         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
67048
67049 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67050
67051         * lib/mktime.c (SHR): New macro, which is a portable
67052         substitute for >> that should work even on Crays.
67053         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
67054         Problem reported by Mark D. Baushke in
67055         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
67056         * lib/getdate.y (SHR): Likewise.
67057         (tm_diff): Use it.
67058         * lib/strftime.c (SHR): Likewise.
67059         (tm_diff): Use it.
67060         * lib/quotearg.c (struct quoting_options): Use unsigned int for
67061         quote_these_too, so that right shifts are well defined.  All uses
67062         changed.
67063
67064 2004-11-10  Jim Meyering  <jim@meyering.net>
67065
67066         Ensure that no close failure goes unreported.
67067         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
67068         return early when it seems there's nothing to flush.
67069         Don't include __fpending.h.
67070
67071 2004-11-10  Jim Meyering  <jim@meyering.net>
67072
67073         * modules/closeout (Depends-on): Remove fpending.
67074
67075 2004-11-10  Jim Meyering  <jim@meyering.net>
67076
67077         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
67078
67079 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67080
67081         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
67082         gl_FUNC_STRFTIME.
67083         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
67084         and AC_REQUIRE when possible, to avoid duplicate checks.
67085         Check for <wchar.h>.
67086
67087 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67088
67089         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
67090
67091 2004-11-09  Bruno Haible  <bruno@clisp.org>
67092
67093         * m4/sockpfaf.m4: New file.
67094
67095 2004-11-05  Bruno Haible  <bruno@clisp.org>
67096
67097         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
67098         Reported by Mark D. Baushke <mdb@cvshome.org>.
67099
67100 2004-11-04  Bruno Haible  <bruno@clisp.org>
67101
67102         2004-09-11  Bruno Haible  <bruno@clisp.org>
67103                 * allocsa.valgrind: New file.
67104         2004-02-06  Bruno Haible  <bruno@clisp.org>
67105                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
67106                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
67107                 Reported by Christopher Seip <chris.seip@hp.com>.
67108
67109 2004-11-04  Bruno Haible  <bruno@clisp.org>
67110
67111         * modules/allocsa (Files): Add lib/allocsa.valgrind.
67112         (Makefile.am): Distribute it.
67113
67114 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
67115
67116         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
67117         with errno == ERANGE if the buffer is too small.
67118         Problem reported by Mark D. Baushke.
67119
67120 2004-11-03  Albert Chin  <china@thewrittenword.com>
67121             Paul Eggert  <eggert@cs.ucla.edu>
67122
67123         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
67124         equivalent, substitute $ac_type for equivalent type rather than
67125         blindly using uint32_t *always* which won't work if uint32_t is not
67126         available.  Define _UINT32_T to work around typedef of uint32_t if
67127         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
67128         2.5.1.
67129
67130 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
67131
67132         * m4/jm-macros.m4: Sync from coreutils.
67133         (gl_MACROS): Check for mbrlen, for pathchk.
67134         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
67135
67136 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
67137
67138         * lib/xreadlink.c (MAXSIZE): New macro.
67139         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
67140         size does not exceed MAXSIZE.  Avoid cast.
67141         As suggested by Mark D. Baushke in
67142         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
67143         if readlink fails with buffer size just under MAXSIZE, try again
67144         with MAXSIZE.
67145
67146 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
67147
67148         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
67149
67150 2004-11-02  Derek R. Price  <derek@ximbiot.com>
67151         and  Paul Eggert  <eggert@cs.ucla.edu>
67152
67153         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
67154         (get_date): Overparenthesize to avoid GCC warning.
67155
67156 2004-11-02  Bruno Haible  <bruno@clisp.org>
67157
67158         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
67159         returns void.
67160
67161 2004-11-02  Bruno Haible  <bruno@clisp.org>
67162
67163         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
67164         function returns void.
67165
67166 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
67167
67168         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
67169         fflush_unlocked, flockfile, funlockfile, funlockfile,
67170         fputs_unlocked, putc_unlocked.
67171
67172 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
67173
67174         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
67175         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
67176         already declared.
67177
67178 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67179
67180         * modules/getdate (Files): Add doc/getdate.texi.
67181         (Depends-on): Add setenv, xalloc.
67182
67183 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67184
67185         * lib/getdate.y: Add support for TZ="foo" within a date string.
67186         Fix some bugs near time_t boundaries.  Reject dates with
67187         out-of-range components, e.g., "Sept 31".
67188         Include <stdlib.h>, "setenv.h", "xalloc.h".
67189         (ISDIGIT_LOCALE): Remove; unused.
67190         Note that the TZ and time functions used here are not reentrant.
67191         (mktime_ok, get_tz): New functions.
67192         (TZBUFSIZE): New constant.
67193         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
67194         This requires that we sometimes generate our own TZ="XXX..." setting.
67195
67196 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67197
67198         * doc/getdate.texi: New file, from coreutils with modifications for
67199         the new TZ parsing.
67200
67201 2004-10-27  Derek R. Price  <derek@ximbiot.com>
67202
67203         * lib/mktime.c (not_equal_tm): Remove redundant check.
67204
67205 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67206
67207         * modules/regex (lib_SOURCES): Add regex.c.
67208         Reported by James Youngman in
67209         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
67210
67211 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67212
67213         * lib/getdate.y: Use Bison 1.875 features, and some minor
67214         code cleanups.  This change does not affect semantics.
67215         Don't include <stdlib.h>; no longer needed.
67216         Don't include unlocked-io.h; only the "#if TEST" code uses
67217         stdio, and performance isn't crucial there.
67218         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
67219         Bison 1.875 features as described below.
67220         All uses of "PC." replaced by "pc->".
67221         (YYSTYPE): Add a forward declaration.
67222         (yylex, yyerror): Use full prototypes in forward decls.
67223         Use "%pure-parser" rather than obsolescent "%pure_parser".
67224         Use %parse-param and %lex-param instead of obsolescent
67225         YYPARSE_PARAM and YYLEX_PARAM.
67226         (meridian_table, month_and_day_table, time_units_table,
67227         relative_time_table, time_zone_table, military_table,
67228         lookup_zone, lookup_word, get_date):
67229         Use NULL instead of 0 where appropriate.
67230         (to_hour): Avoid abort (), to avoid a dependency on
67231         stdlib.h.
67232         (yyerror, yylex): Now accepts parser_control * arg.
67233         (main) [TEST]: Use '\0' rather than 0 for char.
67234
67235 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
67236
67237         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
67238
67239 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
67240
67241         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
67242         It's now the caller's responsibility to handle the case where
67243         !HAVE_GETPAGESIZE && !defined getpagesize.
67244
67245         * lib/mktime.c (leapyear): Arg is long int, not int.
67246
67247 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
67248
67249         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
67250
67251 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
67252
67253         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
67254         missing.  Problem reported by James Youngman.
67255
67256 2004-10-16  Simon Josefsson  <jas@extundo.com>
67257
67258         * gnulib-tool: Fix comments.  Fix parse problem.
67259         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
67260
67261 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
67262
67263         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
67264         implementation of getopt_long.  Problem reported by Alexander Taler in:
67265         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
67266
67267 2004-10-15  Bruno Haible  <bruno@clisp.org>
67268
67269         * gnulib-tool: Untabify. Initialize supplied_libname.
67270         (func_usage): More homogenous output.
67271         (func_modules_transitive_closure, func_modules_to_filelist,
67272         func_emit_lib_Makefile_am): New functions.
67273         (func_import): New function, extracted from big case statement. Use
67274         func_get_license, func_modules_transitive_closure,
67275         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
67276         opt_lgpl. Don't use test -a, as it's not portable.
67277         (func_create_testdir): Use func_modules_transitive_closure,
67278         func_modules_to_filelist, func_emit_lib_Makefile_am.
67279
67280 2004-10-15  Bruno Haible  <bruno@clisp.org>
67281
67282         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
67283
67284 2004-10-15  Bruno Haible  <bruno@clisp.org>
67285
67286         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
67287         the portions belonging to each module.
67288         Suggested by Derek Robert Price <derek@ximbiot.com>.
67289
67290 2004-10-12  Simon Josefsson  <jas@extundo.com>
67291
67292         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
67293         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
67294         to real functions.
67295
67296 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67297
67298         * modules/vsnprintf: New file.
67299
67300 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67301
67302         * m4/vsnprintf.m4: New file.
67303
67304 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67305
67306         * lib/vsnprintf.h: New file.
67307         * lib/vsnprintf.c: New file.
67308
67309 2004-10-11  Bruno Haible  <bruno@clisp.org>
67310
67311         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
67312         vsnprintf.
67313
67314 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67315
67316         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
67317
67318 2004-10-07  Bruno Haible  <bruno@clisp.org>
67319
67320         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
67321         fits into the provided buffer.
67322
67323 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67324
67325         * lib/diacrit.c, diacrit.h: Add GPL notice.
67326
67327         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
67328         notice.
67329         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
67330         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
67331         This avoids a potential constant-folding bug.
67332
67333 2004-10-05  Bruno Haible  <bruno@clisp.org>
67334
67335         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
67336         for the declaration of strsep.
67337
67338 2004-10-05  Bruno Haible  <bruno@clisp.org>
67339
67340         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
67341
67342 2004-10-04  Simon Josefsson  <jas@extundo.com>
67343
67344         * modules/memmem: New file.
67345         * tests/test-memmem.c: New file.
67346         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
67347
67348 2004-10-04  Simon Josefsson  <jas@extundo.com>
67349
67350         * m4/memmem.m4: New file.
67351
67352 2004-10-04  Simon Josefsson  <jas@extundo.com>
67353
67354         * lib/memmem.h: New file.
67355         * lib/memmem.c: New file, taken from glibc.
67356
67357 2004-10-04  Simon Josefsson  <jas@extundo.com>
67358
67359         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
67360         '#ifdef USE_UNLOCKED_IO'.
67361
67362 2004-10-04  Simon Josefsson  <jas@extundo.com>
67363
67364         * config/srclist.txt: Add memmem from glibc.
67365
67366 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67367
67368         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
67369
67370         * modules/argmatch, modules/argp, modules/closeout, modules/error,
67371         modules/exclude, modules/getdate, modules/getline,
67372         modules/getndelim2, modules/getpass, modules/getpass-gnu,
67373         modules/getusershell, modules/linebuffer, modules/md5,
67374         modules/mountlist, modules/posixtm, modules/readtokens,
67375         modules/readutmp, modules/regex, modules/sha1,
67376         modules/version-etc, modules/yesno:
67377         Remove dependency on unlocked-io.
67378
67379 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67380
67381         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
67382
67383         * m4/unlocked-io.m4: Add copyright notice.
67384         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
67385
67386 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67387
67388         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
67389         * lib/xmalloc.c (xmemdup): Likewise.
67390         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
67391         XFREE): Remove these long-obsolescent macros.
67392         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
67393         * lib/xstrdup.c: Remove.
67394
67395         * lib/regex.c (re_comp): Cast gettext return value to char *,
67396         Problem reported by Martin Neitzel via Mark D. Baushke.
67397
67398 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67399
67400         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
67401         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
67402         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
67403         regex.c, sha1.c, version-etc.c, yesno.c:
67404         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
67405         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
67406         the includer's responsibility.
67407
67408         Sync from coreutils.
67409
67410         * lib/modechange.c (mode_compile): Don't decrement a pointer that
67411         points to the start of a string, as the C Standard says the
67412         resulting behavior is undefined.
67413
67414         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
67415         simple -> simple_backups, numbered_existing ->
67416         numbered_existing_backups, numbered -> numbered_backups
67417         to avoid shadowing problems.  All uses changed.
67418         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
67419         * lib/backupfile.c (check_extension, numbered_backup):
67420         Rename locals to avoid shadowing 'basename'.
67421         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
67422         once.
67423
67424         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
67425         * lib/.cvsignore: Add getopt.h.
67426
67427 2004-10-04  Bruno Haible  <bruno@clisp.org>
67428
67429         * modules/README: New file.
67430         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
67431         not a module.
67432
67433 2004-10-02  Jim Meyering  <jim@meyering.net>
67434
67435         * lib/dirfd.h, getpagesize.h: Add copyright notice.
67436
67437 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67438
67439         * modules/strsep: New file.
67440
67441 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67442
67443         * m4/strsep.m4: New file.
67444
67445 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67446
67447         * lib/strsep.h: New file.
67448         * lib/strsep.c: New file.
67449
67450 2004-10-01  Simon Josefsson  <jas@extundo.com>
67451
67452         * lib/snprintf.c (snprintf): Handle size==0.
67453
67454 2004-10-01  Simon Josefsson  <jas@extundo.com>
67455             Bruno Haible  <bruno@clisp.org>
67456
67457         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
67458         (snprintf): Declare 'args'.
67459
67460 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
67461
67462         * lib/snprintf.c: Remove comments as to why each header is needed.
67463
67464 2004-10-01  Bruno Haible  <bruno@clisp.org>
67465
67466         * MODULES.html.sh: Add strsep.
67467
67468 2004-09-30  Simon Josefsson  <jas@extundo.com>
67469
67470         * modules/snprintf: New file.
67471
67472 2004-09-30  Simon Josefsson  <jas@extundo.com>
67473
67474         * m4/snprintf.m4: New file.
67475
67476 2004-09-30  Simon Josefsson  <jas@extundo.com>
67477
67478         * lib/snprintf.h, lib/snprintf.c: New files.
67479
67480 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67481
67482         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
67483         (hol_entry_help): Never translate an empty string.
67484         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
67485         * lib/argp.h (OPTION_NO_TRANS): New option.
67486
67487 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
67488
67489         * modules/argp (Maintainer): Replace Simon Josefsson
67490         by Sergey Poznyakoff.
67491
67492 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
67493
67494         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
67495         changes merged back into glibc.
67496
67497 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
67498
67499         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
67500
67501 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
67502
67503         * lib/xvasprintf.c: Include xalloc.h.
67504         (xvasprintf): Use xalloc_die, not xmalloc_die.
67505
67506 2004-09-29  Bruno Haible  <bruno@clisp.org>
67507
67508         * modules/alloca-opt: New file, derived from modules/alloca.
67509         * modules/allocsa: Depend on alloca-opt instead of alloca.
67510         * modules/setenv: Likewise.
67511         * modules/vasnprintf: Likewise.
67512         * MODULES.html.sh: Add alloca-opt.
67513
67514 2004-09-28  Simon Josefsson  <jas@extundo.com>
67515
67516         * gnulib-tool: New parameter --lgpl, to asseert that modules are
67517         LGPL, and to replace license template from GPL to LGPL.
67518
67519 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
67520
67521         * modules/dummy: Change license to LGPL.
67522
67523 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
67524
67525         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
67526
67527 2004-09-24  Simon Josefsson  <jas@extundo.com>
67528
67529         * modules/minmax (License): Change from GPL to LGPL.
67530
67531 2004-09-23  Simon Josefsson  <jas@extundo.com>
67532
67533         * gnulib-tool (--import): Typo.
67534
67535 2004-09-23  Simon Josefsson  <jas@extundo.com>
67536
67537         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
67538
67539 2004-09-22  Bruno Haible  <bruno@clisp.org>
67540
67541         * modules/*: Add 'License' field.
67542         * gnulib-tool: Accept --extract-license option.
67543         (func_get_license): New function.
67544
67545 2004-09-21  Bruno Haible  <bruno@clisp.org>
67546
67547         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
67548         Reported by Simon Josefsson.
67549
67550 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67551
67552         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
67553         gl_AC_TYPE_LONG_LONG.
67554
67555 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67556
67557         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
67558
67559 2004-09-18  Simon Josefsson  <jas@extundo.com>
67560         and  Paul Eggert  <eggert@cs.ucla.edu>
67561
67562         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
67563         calls with autoreconf.  Define GL_LIB.
67564
67565 2004-09-14  Karl Berry  <karl@gnu.org>
67566
67567         * config/srclist.txt: unsync setenv.c, sigh.
67568
67569 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67570
67571         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
67572         Problem reported by Bruno Haible in:
67573         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
67574
67575 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67576
67577         * config/srclist.txt: Comment out argp-pvh.c.
67578
67579 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
67580
67581         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
67582         in case some system header has #define'd it.  Problem reported by
67583         Soeren D. Schulze in
67584         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
67585
67586 2004-09-09  Karl Berry  <karl@gnu.org>
67587
67588         * regex.[ch]: delete from the root.  These were supposed to be
67589                 synced with emacs cvs, but this has not happened for about
67590                 a year, and anyway nothing else uses emacs regex.[ch].
67591                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
67592                 lib/regex[.ch] is untouched.
67593
67594 2004-09-09  Bruno Haible  <bruno@clisp.org>
67595
67596         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
67597
67598 2004-09-09  Bruno Haible  <bruno@clisp.org>
67599
67600         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
67601         modifications.
67602         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
67603
67604 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
67605
67606         * modules/xvasprintf: New file.
67607         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
67608
67609 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
67610
67611         * lib/xvasprintf.h: New file.
67612         * lib/xvasprintf.c: New file.
67613         * lib/xasprintf.c: New file.
67614
67615 2004-09-08  Bruno Haible  <bruno@clisp.org>
67616
67617         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
67618
67619 2004-09-08  Bruno Haible  <bruno@clisp.org>
67620
67621         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
67622         length is > INT_MAX.
67623         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
67624         more.
67625
67626 2004-09-08  Bruno Haible  <bruno@clisp.org>
67627
67628         * lib/stdint_.h: New file, taken from GNU clisp.
67629
67630 2004-09-08  Bruno Haible  <bruno@clisp.org>
67631             Oskar Liljeblad  <oskar@osk.mine.nu>
67632
67633         * modules/stdint: New file.
67634         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
67635
67636 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67637
67638         Import from coreutils.
67639         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
67640         strings on unbounded length.  alloca's performance benefits aren't
67641         that important here.
67642         (V_STRDUP): Remove.
67643         (parse_with_separator): New function, with most of the internals
67644         of the old parse_user_spec.  Allow user to omit both user and group,
67645         for compatibility with FreeBSD.
67646         Clone only the user name, not the entire spec.
67647         Do not set *uid, *gid unless entirely successful.
67648         Avoid memory leak in some failing cases.
67649         Fix regression for USER.GROUP reported by Dmitry V. Levin in
67650         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
67651         (parse_user_spec): Rewrite to use parse_with_separator.
67652
67653 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67654
67655         * modules/userspec: Don't depend on alloca.
67656
67657 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67658
67659         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
67660
67661 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67662
67663         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
67664         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
67665         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
67666
67667 2004-08-16  Simon Josefsson  <jas@extundo.com>
67668
67669         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
67670         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
67671         Add --dry-run for --import.
67672         Let user provided command line parameters override configure.ac
67673         settings.
67674
67675 2004-08-12  Simon Josefsson  <jas@extundo.com>
67676
67677         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
67678         as discussed with Paul Eggert in threads rooted at
67679         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
67680         and
67681         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
67682         Before, the test was empty, and relied on ELIDE_CODE in source
67683         code.)
67684         (gl_PREREQ_GETOPT): New macro.
67685         (gl_GETOPT): Use them.
67686
67687 2004-08-12  Simon Josefsson  <jas@extundo.com>
67688
67689         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
67690         * lib/getopt_.h: Renamed from getopt.h.
67691
67692 2004-08-12  Simon Josefsson  <jas@extundo.com>
67693
67694         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
67695         Change default library name from libfoo to libgnu.
67696         Now, if you have a configure.ac that says:
67697                 gl_SOURCE_BASE(gl)
67698                 gl_M4_BASE(gl/m4)
67699                 gl_MODULES(error getopt etcetera)
67700                 gl_INIT
67701         you can import all you need by running:
67702                 ../gnulib/gnulib-tool --import
67703
67704         * modules/getopt (Files): Rename getopt.h to getopt_.h.
67705         (Makefile.am): Rewrite, use logic from argz.
67706         (Include): Use <getopt.h> instead of "getopt.h".
67707
67708 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
67709
67710         * modules/argp (Files): Add m4/unlocked-io.m4.
67711         (Depends-on): Add extensions.
67712
67713 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
67714
67715         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
67716         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
67717         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
67718         Check for program_invocation_name, program_invocation_short_name,
67719         flockfile, funlockfile, features.h, _getopt_long_only_r.
67720
67721 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
67722
67723         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
67724         its complicated substitute.
67725         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
67726         and program_invocation_name.
67727         (__argp_basename) [!_LIBC]: Remove; the only use was
67728         replaced by its body.
67729         (__argp_short_program_name): Change condition from
67730         !defined __argp_short_program_name to
67731         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
67732         to match argp-namefrob.h.
67733         (__argp_failure): Don't assume strerror_r returns char *.
67734         * lib/argp-parse.c (N_): Define unconditionally.
67735         (argp_default_options): Fill out initializers with 0 to avoid
67736         gcc warnings.
67737
67738 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
67739
67740         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
67741         getopt1.c.
67742
67743 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
67744
67745         Merge from coreutils.
67746
67747         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
67748
67749         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
67750         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
67751
67752 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
67753
67754         Merge from coreutils.
67755
67756         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
67757         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
67758         for Reliant Unix 5.43.
67759
67760         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
67761         (union fooround): Use uintmax_t, not long int.
67762         The rest is a merge from libc:
67763         [defined _LIBC]: Include <shlib-compat.h>.
67764         (_obstack) [defined _LIBC]: Remove after 2.3.4.
67765
67766         * lib/settime.c (settime): Recode to avoid warning with
67767         Sun Forte C 6U2.
67768
67769         * lib/strverscmp.c: Convert to UTF-8.
67770
67771 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
67772
67773         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
67774         m4/uintmax_t.m4.
67775
67776 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67777
67778         * modules/xalloc-die: New file.
67779         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
67780
67781         * modules/md5 (Files): Add m4/uint32_t.m4.
67782         * modules/sha1: Renamed from modules/sha.
67783         (Files):
67784         Rename lib/sha.h to lib/sha1.h.
67785         Rename lib/sha.c to lib/sha1.c.
67786         Rename m4/sha.m4 to m4/sha1.m4.
67787         (lib_SOURCES): Likewise.
67788         (configure.ac): Rename gl_SHA to gl_SHA1.
67789         (Include): sha.h -> sha1.h.
67790
67791 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67792
67793         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
67794         * m4/sha1.m4: Renamed from sha.m4.
67795         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
67796
67797 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67798
67799         * lib/obstack.h (obstack_empty_p):
67800         Don't assume that chunk->contents is suitably aligned.
67801         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
67802         Likewise. Problem reported by Benno in
67803         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
67804
67805         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
67806         readable.  This could be improved further but it'd take some work.
67807
67808 2004-08-08  Simon Josefsson  <jas@extundo.com>
67809
67810         * modules/xgethostname (Depends-on): Remove exit and error (not
67811         used).
67812
67813         * modules/getpass-gnu: Add getpass.h.
67814         (Depends-on): Add stdbool.
67815         * modules/getpass: Add getpass.h.
67816
67817 2004-08-08  Simon Josefsson  <jas@extundo.com>
67818
67819         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
67820         Check getpass declaration.
67821
67822 2004-08-08  Simon Josefsson  <jas@extundo.com>
67823
67824         * lib/xgethostname.c: Don't include error.h (not used).
67825
67826         * lib/getpass.h: Add.
67827         * lib/getpass.c: Include getpass.h first.
67828
67829 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
67830
67831         * lib/xalloc-die.c: New file.
67832         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
67833         All uses removed.
67834         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
67835         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
67836         xalloc-die.c.
67837         (_, N_, xalloc_die): Move to xalloc-die.c.
67838         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
67839         so that we needn't mess with xalloc_msg_memory_exhausted.
67840
67841         * lib/sha1.h: Renamed from sha.h.
67842         (SHA1_H): Renamed from _SHA_H.
67843         (sha1_ctx): Renamed from sha_ctx.
67844         (sha1_init_ctx): Renamed from sha_init_ctx.
67845         (sha1_process_block): Renamed from sha_process_block.
67846         (sha1_process_bytes): Renamed from sha_process_bytes.
67847         (sha1_finish_ctx): Renamed from sha_finish_ctx.
67848         (sha1_read_ctx): Renamed from sha_read_ctx.
67849         (sha1_stream): Renamed from sha_stream.
67850         (sha1_buffer): Renamed from sha_buffer.
67851         * lib/sha1.c: Likewise; renamed from sha.c.
67852         Do not include <sys/types.h>.
67853         Include <stddef.h> rather than <stdlib.h>.
67854
67855 2004-08-08  Bruno Haible  <bruno@clisp.org>
67856
67857         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
67858         FILESYSTEM_PREFIX_LEN.
67859         * lib/progreloc.c: Likewise.
67860         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
67861
67862 2004-08-06  Simon Josefsson  <jas@extundo.com>
67863
67864         * modules/progname (Depends-on): Don't depend on stdbool.
67865
67866 2004-08-06  Simon Josefsson  <jas@extundo.com>
67867
67868         * modules/getsubopt: New file.
67869         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67870         getsubopt.
67871
67872 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67873
67874         More merge from coreutils.
67875
67876         * m4/utimens.m4, m4/utimecmp.m4: New files.
67877         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
67878         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
67879         prereq.m4, sha.m4: Import changes from coreutils.
67880
67881 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67882
67883         More merge from coreutils.
67884         * modules/raise, modules/readtokens0, modules/utimens:
67885         * modules/utimecmp, module/xnanosleep: New files.
67886         * modules/strftime: Add lib/strftime.h.
67887         Change include from <time.h> to "strftime.h".
67888         * modules/yesno: Add lib/yesno.h.
67889         * modules/backupfile: Remove lib/addext.c.
67890         * modules/euidaccess: Add stat-macros.h.
67891         * modules/canonicalize, modules/euidaccess,
67892         modules/filemode, modules/lchown, modules/makepath,
67893         modules/rmdir, modules/stat: Likewise.
67894
67895 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67896
67897         Merge from tar.
67898         * lib/argp-help.c (make_hol, hol_append): Don't assume that
67899         SIZE_MAX is a valid preprocessor constant.
67900         (__argp_basename): Change from "#ifndef _LIBC"
67901         to "#ifndef __argp_short_program_name", so that
67902         we don't compile these functions for tar.
67903
67904         More merges from coreutils.
67905         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
67906         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
67907         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
67908         * lib/addext.c: Remove; no longer needed.
67909         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
67910         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
67911         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
67912         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
67913         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
67914         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
67915         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
67916         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
67917         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
67918         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
67919         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
67920         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
67921         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
67922         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
67923         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
67924         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
67925         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
67926         Import changes from coreutils.
67927
67928 2004-08-05  Simon Josefsson  <jas@extundo.com>
67929
67930         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
67931
67932 2004-08-05  Simon Josefsson  <jas@extundo.com>
67933
67934         * m4/getsubopt.m4: New file.
67935
67936 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
67937
67938         Merge from coreutils.
67939
67940         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
67941         * m4/getcwd-path-max.m4: New files.
67942
67943         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
67944         FILESYSTEM_PREFIX_LEN ->
67945         FILE_SYSTEM_PREFIX_LEN.
67946         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
67947         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
67948         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
67949         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
67950
67951         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
67952         prerequisite modules now handle the DOS stuff.
67953         Don't check for unistd.h.
67954
67955 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
67956
67957         Merge from coreutils.
67958
67959         * lib/.gdb-history: Remove; this doesn't belong here.
67960
67961         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
67962         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
67963         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
67964         * lib/getcwd.c: New files.
67965
67966         * lib/dirname.h: Include <stdbool.h>.
67967         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
67968         for consistency with POSIX terminology.  All uses changed.
67969         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
67970         (strip_trailing_slashes): Use bool for booleans.
67971         * lib/stripslash.c (strip_trailing_slashes): Likewise.
67972
67973         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
67974         sometimes returns a positive errno value even when it succeeds.
67975         (print_errno_message) [!LIBC]: Fall back on strerror if
67976         __strerror_r fails.
67977
67978         * lib/path-concat.c (mempcpy): Don't define if a system header defines
67979         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
67980         (longest_relative_suffix): New function.
67981         (path_concat): Use it.  Assume first argument is not NULL.
67982         Port to DOS.  Omit redundant separators.
67983         Report an error instead of returning NULL.
67984         Use mempcpy instead of memcpy.
67985         (xpath_concat): Remove: not declared or used.
67986
67987         * lib/same.h: Include <stdbool.h>
67988         (same_name): Return bool, not int.
67989         * lib/same.c (same_name): Likewise.
67990         (errno): Don't declare; we assume C89 or better now.
67991
67992         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
67993         if not already defined.
67994
67995         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
67996         * lib/dup-safer.c (errno): Likewise.
67997
67998 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
67999
68000         Merge from coreutils.
68001         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
68002         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
68003         * modules/path-concat: Don't depend on strdup.
68004
68005 2004-08-03  Simon Josefsson  <jas@extundo.com>
68006
68007         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
68008         * lib/progname.h: Don't include stdbool.h.
68009
68010 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68011
68012         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
68013         * MODULES.html.sh (func_all_modules): Remove fatal.
68014
68015 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68016
68017         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
68018
68019 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68020
68021         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
68022         working.
68023
68024 2004-08-02  Simon Josefsson  <jas@extundo.com>
68025
68026         * lib/getsubopt.h: New file, with comments from Bruno Haible.
68027         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
68028         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
68029
68030 2004-08-01  Simon Josefsson  <jas@extundo.com>
68031
68032         * lib/xgetdomainname.c: Include stdlib.h, for free().
68033
68034 2004-07-19  Bruno Haible  <bruno@clisp.org>
68035
68036         * MODULES.html.sh (func_all_modules): Add dummy.
68037
68038 2004-07-16  Simon Josefsson  <jas@extundo.com>
68039
68040         * modules/dummy: New file.
68041
68042 2004-07-16  Simon Josefsson  <jas@extundo.com>
68043
68044         * lib/dummy.c: New file.
68045
68046 2004-07-16  Bruno Haible  <bruno@clisp.org>
68047
68048         * lib/backupfile.h: Add extern "C" for C++.
68049         * lib/closeout.h: Likewise.
68050         * lib/copy-file.h: Likewise.
68051         * lib/findprog.h: Likewise.
68052         * lib/full-write.h: Likewise.
68053         * lib/pathname.h: Likewise.
68054         * lib/progname.h: Likewise.
68055         * lib/stpcpy.h: Likewise.
68056         * lib/stpncpy.h: Likewise.
68057         * lib/strcase.h: Likewise.
68058         * lib/strstr.h: Likewise.
68059         * lib/xalloc.h: Likewise.
68060
68061         * lib/mbswidth.h: Add extern "C" for C++.
68062         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
68063
68064 2004-07-13  Robert Millan  <robertmh@gnu.org>
68065
68066         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
68067
68068 2004-07-09  Simon Josefsson  <jas@extundo.com>
68069
68070         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
68071         failed without this.)
68072
68073 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68074
68075         * modules/chown (Files): Add lib/fchown-stub.c, since
68076         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
68077
68078 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68079
68080         * lib/fchown-stub.c: New file.
68081
68082 2004-06-24  Jim Meyering  <jim@meyering.net>
68083
68084         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
68085
68086 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68087
68088         * modules/argz: Omit "#include".
68089
68090         * MODULES.html.sh (func_all_modules): Add calloc, to match
68091         2004-06-01 addition of calloc module.
68092
68093 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68094
68095         * m4/argz.m4: New file, which is autoupdated from libtool.
68096
68097 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68098
68099         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
68100         libtool.
68101
68102 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68103
68104         * config/srclist-update: Don't insist on "USA." before the
68105         close-comment, as libtool omits the period and puts the */ on a
68106         separate line.
68107         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
68108         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
68109
68110 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
68111
68112         * modules/argz: New file.
68113         * MODULES.html.sh (func_all_modules): Add argz.
68114
68115 2004-06-12  Jim Meyering  <jim@meyering.net>
68116         and  Paul Eggert  <eggert@cs.ucla.edu>
68117
68118         * modules/hash (Files): Add lib/xalloc.h.
68119         * modules/pipe (Depends-on): Add wait-process.
68120         * modules/stat (Depends-on): Add xalloc.
68121         * modules/userspec (Files): Add lib/userspec.h.
68122         * modules/xstrto
68123
68124         Upgrade from gettext-0.13.
68125         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
68126         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
68127         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
68128
68129 2004-06-10  Jim Meyering  <jim@meyering.net>
68130
68131         * lib/calloc.c: New file.
68132
68133 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
68134
68135         * lib/getdate.y (yylex): Allow space between sign and number.
68136         Problem reported by Dan Jacobson.
68137
68138 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
68139
68140         Merge from coreutils CVS.
68141
68142         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
68143         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
68144         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
68145         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
68146         xstrtol.m4: Fix copyright date and/or serial number.
68147
68148         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
68149         See if we need an fchown replacement.
68150         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
68151         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
68152         and use the replacement function if we detect either defect.
68153
68154         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
68155         gl_UTIMECMP.
68156
68157 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
68158         and  Jim Meyering  <jim@meyering.net>
68159
68160         Merge from coreutils CVS.
68161
68162         * lib/stat-macros.h: New file, with contents from file-type.h
68163         and coreutils' system.h.
68164         * lib/file-type.c: Include "stat-macros.h".
68165         * lib/file-type.h (file_type): Move all macro definitions to new file,
68166         stat-macros.h.
68167
68168         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
68169         Wrap old code with this conditional.
68170         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
68171         function that does not dereference symlinks.
68172         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
68173
68174         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
68175         dependency problems.
68176         (xreadlink): Accept new arg SIZE, for efficiency.
68177         All decls and uses changed.
68178         * lib/xreadlink.h: Include <stddef.h>, for size_t.
68179
68180         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
68181         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
68182
68183         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
68184         sysexits.h.
68185
68186 2004-06-01  Jim Meyering  <jim@meyering.net>
68187
68188         * m4/calloc.m4: New file.
68189
68190 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
68191
68192         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
68193         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
68194         Also, fix a typo in a diagnostic.
68195
68196 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
68197
68198         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
68199         or AC_FUNC_REALLOC.
68200
68201 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
68202
68203         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
68204         macros to be defined.
68205         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
68206         the allocator returns NULL because the requested size is zero.
68207
68208 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68209
68210         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
68211         var.  Add comment explaining why libc still defines it.  This
68212         merges the following patch from glibc:
68213         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
68214
68215 2004-05-20  Andreas Schwab  <schwab@suse.de>
68216
68217         * m4/free.m4: Replace free if it not known to work, not the other
68218         way round.
68219
68220 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68221
68222         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
68223         present in glibc since revision 1.1 of this file.
68224         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
68225         obstack_alignment_mask, obstack_alloc, obstack_base,
68226         obstack_blank, obstack_blank_fast, obstack_chunk_size,
68227         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
68228         obstack_grow0, obstack_init, obstack_int_grow,
68229         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
68230         obstack_next_free, obstack_object_size, obstack_ptr_grow,
68231         obstack_ptr_grow_fast, obstack_room): Remove declarations of
68232         nonexistent functions.
68233
68234 2004-05-18  Karl Berry  <karl@gnu.org>
68235
68236         * config/srclist.txt: break link for vasnprintf.c.
68237
68238 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68239
68240         Port obstack to the AS/400, where pointers are 16 bytes wide and
68241         you cannot cast an integer to a valid pointer.  This patch is
68242         currently waiting to be integrated into glibc; see
68243         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
68244
68245         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
68246         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
68247         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
68248         (struct obstack): temp member is now a union of a pointer and
68249         an integer, instead of an integer.  All integer uses changed.
68250         This does not affect the physical layout of struct obstack,
68251         except on hosts (like the AS/400) where the size or alignment of
68252         void * is greater than that of ptrdiff_t.
68253         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
68254         __STDC__)]: Store temporary in pointer member of union, not
68255         integer member.
68256         * lib/obstack.c: Include <stddef.h>, for offsetof.
68257         (struct fooalign): Remove; it doesn't need a name.
68258         (union fooround): Change double to long double, and add void *.
68259         (DEFAULT_ALIGNMENT): Use offsetof to compute.
68260         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
68261         not a macro.  Hence the values are always int; so remove all
68262         casts-to-int in uses.
68263
68264 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68265
68266         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
68267         we can get this patch merged into glibc.
68268
68269 2004-05-17  Derek R. Price  <derek@ximbiot.com>
68270             Paul Eggert  <eggert@cs.ucla.edu>
68271
68272         * m4/argp: Depend on alloca.
68273
68274 2004-05-17  Derek R. Price  <derek@ximbiot.com>
68275             Paul Eggert  <eggert@cs.ucla.edu>
68276
68277         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
68278         freecoding.
68279
68280 2004-05-17  Bruno Haible  <bruno@clisp.org>
68281
68282         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
68283         precision that consists of a '.' followed by an empty digit string.
68284         Patch by Tor Lillqvist <tml@iki.fi>.
68285
68286 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68287
68288         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
68289         for backward compatibility with older code.  We need our own
68290         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
68291         it under some other name, and our alloca.h will define it.
68292
68293 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68294             Derek Price  <derek@ximbiot.com>
68295
68296         * lib/alloca.c: Include <alloca.h>, to get our interface.
68297         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
68298         include <alloca.h> first.  Use C89 prototype for alloca; this
68299         requires including <stddef.h> for size_t.  Use extern "C" if C++.
68300         Use #elif for simplicity, since we can assume C89 now.
68301         Don't try to source the system alloca.h since it will not be found
68302         and to prevent recursively including its replacement.
68303         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
68304         * lib/regex.c: Likewise.
68305
68306 2004-05-16  Derek Price  <derek@ximbiot.com>
68307             Paul Eggert  <eggert@cs.ucla.edu>
68308
68309         getline cleanup.  This changes the getndelim2 API: both order of
68310         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
68311         no delimiter).
68312
68313         * lib/getline.c: Don't include stddef.h or stdio.h, since our
68314         interface does that.
68315         (getline): Always use getdelim, so that we don't have two
68316         copies of this code.
68317         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
68318         if available.
68319         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
68320         (GETNDELIM2_MAXIMUM): New macro.
68321         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
68322         instead of the old practice of delim2==0.  All callers changed.
68323         Return -1 on overflow, instead of returning junk.
68324         Do not set *linesize unless allocation succeeds.
68325         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
68326         that we include sys/types.h.
68327         * lib/getnline.h: Likewise.
68328         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
68329         (getndelim2): Reorder arguments.
68330         * lib/getnline.c (getnline, getndelim):
68331         Don't discard the NMAX argument.
68332         (getnline): Invoke getndelim, to avoid code duplication.
68333         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
68334         of (size_t) -1 by callers of the getnline family.
68335
68336 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68337
68338         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
68339         Check for gettimeofday.
68340         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
68341         Check for settimeofday, stime.
68342
68343 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68344
68345         * lib/nanosleep.c (suspended): Change its type from int to
68346         sig_atomic_t volatile.
68347         (first_call): Make it private to rpl_nanosleep, and have it
68348         be zero initially as that's a bit faster.
68349         (my_usleep): Round up fractional times instead of truncating them,
68350         as this is the usual meaning for 'sleep'.
68351
68352         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
68353         doesn't work.
68354         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
68355         (ENOSYS): Define if not defined.
68356         (settime): Fall back on stime if it exists and settimeofday fails.
68357         But don't bother with fallbacks if a method fails with errno == EPERM.
68358
68359 2004-05-11  Jim Meyering  <jim@meyering.net>
68360
68361         Prior to this change, the save_cwd caller required read access to the
68362         current directory on most systems (ones with the fchdir function).
68363
68364         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
68365         fails, try write-only, and finally, resort to using xgetcwd.
68366
68367 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
68368
68369         * lib/obstack.c, obstack.h: Import changes from libc.
68370
68371 2004-04-28  Bruno Haible  <bruno@clisp.org>
68372
68373         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
68374         also implicitly appends .exe to executables.
68375         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
68376         accepts Windows pathnames.
68377         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
68378         Treat Cygwin like Windows, since it now accepts Windows pathnames.
68379         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
68380         Treat Cygwin like Windows, since it now accepts Windows pathnames.
68381         Reported by Derek Robert Price <derek@ximbiot.com>.
68382
68383 2004-04-21  Karl Berry  <karl@gnu.org>
68384
68385         * config/srclist.txt (localcharset.c): break sync.
68386
68387 2004-04-20  Paul Eggert  <eggert@twinsun.com>
68388
68389         * m4/host-os.m4: Add a copyright notice.
68390
68391 2004-04-20  Jim Meyering  <jim@meyering.net>
68392
68393         Change UTILS_ to gl_ in AC_DEFINE'd names.
68394         Change utils_- and jm_-prefixed variables, too.
68395         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
68396         UTILS_FUNC_MKDIR_TRAILING_SLASH.
68397         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
68398
68399         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
68400         Don't emit trailing blanks.
68401         Also rename jm_-prefixed variables to have gl_ prefix.
68402
68403         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
68404         Also rename jm_-prefixed variables to have gl_ prefix.
68405
68406         * m4/jm-macros.m4: Reflect the renamings.
68407         * m4/prereq.m4: Likewise.
68408
68409 2004-04-20  Jim Meyering  <jim@meyering.net>
68410
68411         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
68412         memory.
68413
68414 2004-04-20  Jim Meyering  <jim@meyering.net>
68415             Bruno Haible  <bruno@clisp.org>
68416
68417         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
68418         memory when realloc fails.
68419
68420 2004-04-19  Jim Meyering  <jim@meyering.net>
68421
68422         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
68423         now that readutmp.c may call `free (0)'.
68424
68425 2004-04-19  Bruno Haible  <bruno@clisp.org>
68426
68427         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
68428         * m4/inttypes_h.m4: Likewise.
68429         * m4/stdint_h.m4: Likewise.
68430         * m4/intmax_t.m4: Likewise.
68431         * m4/uintmax_t.m4: Likewise.
68432
68433 2004-04-18  Jim Meyering  <jim@meyering.net>
68434
68435         * m4/prereq.m4: Don't forbid jm_ prefix.
68436
68437         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
68438         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
68439         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
68440         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
68441         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
68442         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
68443         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
68444         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
68445         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
68446         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
68447         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
68448         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
68449         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
68450         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
68451         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
68452         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
68453         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
68454         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
68455         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
68456
68457 2004-04-18  Jim Meyering  <jim@meyering.net>
68458
68459         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
68460         failure, don't leak memory and do call END_UTMP_ENT.
68461
68462 2004-04-16  Jim Meyering  <jim@meyering.net>
68463
68464         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
68465         coreutils' stat program.
68466         (gl_PREREQ): Don't require jm_PREREQ_STAT.
68467
68468 2004-04-11  Paul Eggert  <eggert@twinsun.com>
68469
68470         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
68471         C89.
68472         (CHAR_BIT): Remove, since we assume C89.
68473         Include <stdint.h> if available, as per current Autoconf CVS advice.
68474
68475 2004-03-31  Jim Meyering  <jim@meyering.net>
68476
68477         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
68478         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
68479         * m4/xalloc.m4: Likewise.
68480
68481 2004-03-30  Paul Eggert  <eggert@twinsun.com>
68482
68483         Merge from coreutils.
68484
68485         * m4/inttostr.m4: New file.
68486         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
68487         Require AM_STDBOOL_H and gl_TIMESPEC instead.
68488         Require gl_CLOCK_TIME.
68489         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
68490
68491 2004-03-30  Paul Eggert  <eggert@twinsun.com>
68492
68493         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
68494         not bool, to be more consistent with Unix conventions.
68495         Suggested by Bruno Haible.
68496
68497         Merge from coreutils.
68498
68499         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
68500         * lib/umaxtostr.c: New files.
68501
68502         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
68503         the usual <time.h> dance.
68504         (get_date): Change signature to support fractional time stamps.
68505         All callers changed.
68506         * lib/getdate.y: Include "getdate.h" first, as we can now
68507         assume C89 and don't need to worry about 'const'.
68508         Similarly, include "unlocked-io.h" near start, not in middle.
68509         Include <limits.h>.
68510         (textint.value): Use long int rather than int.
68511         (textint.digits): Use size_t rather than int.
68512         (BILLION, LOG10_BILLION): New constants.
68513         (parser_control): New member rel_ns.  Members day_ordinal,
68514         time_zone, month, day, hour, minutes, rel_year, rel_month,
68515         rel_day, rel_hour, rel_minutes, rel_seconds
68516         are now long int, not int.  Member seconds is now struct timespec,
68517         not int.  New member timespec_seen.  Members dates_seen, days_seen,
68518         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
68519         not int.
68520         (%union.intval): Now long int, not int.
68521         New member timespec.
68522         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
68523         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
68524         (spec): Now is a timespec or an item list.
68525         (timespec, items): New nonterminals.
68526         (time, rel, relunit, number, get_date):
68527         Add support for fractional seconds.
68528         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
68529         (gmtime, localtime, mktime): Remove decls; not needed with C89.
68530         (to_hour): First arg is now long int, not int.
68531         (to_year): Returns long int, not int.
68532         Don't treat year -70 like 70.
68533         (tm_diff): Returns long int, not int.
68534         (lookup_word): Use bool instead of int when appropriate.
68535         (yylex): Use size_t for count, not int.
68536         Detect overflow when parsing large integer constants.
68537         Add support for fractions.
68538         (get_date): Make pointers 'const' if possible.
68539         Use more-portable code to detect integer overflow.
68540         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
68541         Don't use ctime; it's not reliable if the year has >4 digits.
68542
68543         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
68544         This is for compatibility with BSD.
68545
68546         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
68547         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
68548         From coreutils' system.h.
68549
68550         * lib/userspec.c: Don't include "posixver.h".
68551         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
68552         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
68553         compatible extension.  Simplify code by removing a boolean int
68554         that was always nonzero if a string was nonnull.
68555
68556 2004-03-30  Jim Meyering  <jim@meyering.net>
68557
68558         Merge from coreutils.
68559
68560         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
68561         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
68562         on some systems one must include <grp.h> before it.
68563         Reported by Christian Krackowizer.
68564
68565 2004-03-30  Jim Meyering  <jim@meyering.net>
68566
68567         Merge from coreutils.
68568
68569         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
68570
68571         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
68572         an empty input stream.
68573
68574         * lib/readtokens.c: Include <stdbool.h>.
68575         (readtoken): Use `size_t' rather than int/long.
68576         All callers adjusted.
68577         Use `bool' rather than `int' where appropriate.
68578         Use memset rather than an explicit loop.
68579         Use x2nrealloc rather than xrealloc.
68580         Allow the use of `\0' as a delimiter.
68581         (readtokens): Likewise.
68582         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
68583
68584 2004-03-30  Jim Meyering  <jim@meyering.net>
68585
68586         * m4/realloc.m4: Remove file, since now it does no more than
68587         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
68588         the `configure.ac' section of module/realloc.
68589         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
68590
68591 2004-03-30  Bruno Haible  <bruno@clisp.org>
68592
68593         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
68594         nonnull.
68595
68596 2004-03-29  Paul Eggert  <eggert@twinsun.com>
68597
68598         Merge changes to getloadavg.c from coreutils and Emacs.
68599
68600         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
68601         Define to an expression, not to the empty string.
68602         Include cloexec.h and xalloc.h.
68603         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
68604         Use set_cloexec_flag rather than rolling our own.
68605         * lib/cloexec.c, lib/cloexec.h: New files.
68606
68607 2004-03-29  Paul Eggert  <eggert@twinsun.com>
68608
68609         * m4/cloexec.m4: New file.
68610
68611 2004-03-18  Paul Eggert  <eggert@twinsun.com>
68612
68613         * lib/getopt.h: Sync with libc CVS.
68614
68615 2004-03-18  Paul Eggert  <eggert@twinsun.com>
68616             Bruno Haible  <bruno@clisp.org>
68617
68618         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
68619         mbswidth.
68620
68621 2004-03-18  Paul Eggert  <eggert@twinsun.com>
68622             Bruno Haible  <bruno@clisp.org>
68623
68624         * lib/mbswidth.h: Include <wchar.h> only if
68625         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
68626         <wchar.h>.
68627         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
68628
68629 2004-03-09  Paul Eggert  <eggert@twinsun.com>
68630
68631         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
68632         Sync with libc CVS.
68633         * lib/getopt_int.h: New file, also synced from libc.
68634
68635 2004-03-09  Paul Eggert  <eggert@twinsun.com>
68636
68637         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
68638         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
68639         Bring back getopt.c, getopt.h, getopt1.c.
68640
68641 2004-03-07  Paul Eggert  <eggert@twinsun.com>
68642
68643         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
68644         All uses changed.  Check for sa_sigaction member; this fixes
68645         a bug first reported by Jason Andrade in
68646         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
68647
68648 2004-03-07  Paul Eggert  <eggert@twinsun.com>
68649
68650         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
68651         '#if' expressions.  Unlike the code it replaces, it does not
68652         depend on (defined _SC_PAGESIZE).  However, it does depend on
68653         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
68654         first reported by Jason Andrade in
68655         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
68656
68657 2004-02-25  Simon Josefsson  <jas@extundo.com>
68658
68659         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
68660
68661 2004-02-25  Simon Josefsson  <jas@extundo.com>
68662
68663         * lib/strdup.h: New file.
68664         * lib/strdup.c: Include it.
68665         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
68666         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
68667
68668 2004-02-23  Karl Berry  <karl@gnu.org>
68669
68670         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
68671         (from fencepost.gnu.org:/gd/gnuorg).
68672
68673 2004-02-23  Karl Berry  <karl@gnu.org>
68674
68675         * config/srclistvars.sh (GNUORG) [karl]: redefine.
68676         * config/srclist.txt: add maintain/standards documents.
68677
68678 2004-02-18  Bruno Haible  <bruno@clisp.org>
68679
68680         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
68681         Reported by Derek Robert Price <derek@ximbiot.com>.
68682
68683 2004-02-16  Karl Berry  <karl@gnu.org>
68684
68685         * config/mkinstalldirs, install-sh: update from automake.
68686
68687 2004-02-06  Karl Berry  <karl@gnu.org>
68688
68689         * m4/po.m4: update from gettext 0.14.1.
68690
68691 2004-02-06  Karl Berry  <karl@gnu.org>
68692
68693         * lib/config.charset: update from gettext 0.14.1.
68694
68695 2004-02-05  Paul Eggert  <eggert@twinsun.com>
68696
68697         Add comments and code, prompted by suggestions from Bruno Haible
68698         for sh-quote.
68699         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
68700         describing the enum quoting_style values.
68701         * lib/quotearg.c (quotearg_alloc): New function.
68702         (quotearg_buffer_restyled): Treat lone { and } as special.
68703         Treat = as special.  Work around bug with older shells
68704         that "see" a '\' that is really the 2nd byte of a multibyte char.
68705         Quote empty string with shell_quoting_style.
68706
68707 2004-02-03  Bruno Haible  <bruno@clisp.org>
68708
68709         * m4/pipe.m4: New file, from GNU gettext.
68710
68711 2004-02-03  Bruno Haible  <bruno@clisp.org>
68712
68713         * lib/pipe.h: New file, from GNU gettext.
68714         * lib/pipe.c: New file, from GNU gettext.
68715
68716 2004-01-27  Bruno Haible  <bruno@clisp.org>
68717
68718         * m4/execute.m4: New file, from GNU gettext.
68719
68720 2004-01-27  Bruno Haible  <bruno@clisp.org>
68721
68722         * lib/execute.h: New file, from GNU gettext.
68723         * lib/execute.c: New file, from GNU gettext.
68724         * lib/w32spawn.h: New file, from GNU gettext.
68725
68726 2004-01-24  Paul Eggert  <eggert@twinsun.com>
68727
68728         Merge from diffutils.
68729
68730         * lib/file-type.c (file_type): Add typed memory objects.
68731         * lib/file-type.h (S_TYPEISTMO): New macro.
68732
68733         * lib/c-stack.h (c_stack_action): Remove argv argument.
68734         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
68735         (die): Don't calculate message unless segv_action returns.
68736         (get_stack_location, min_address_from_argv, max_address_from_argv,
68737         volatile stack_base, volatile_stack_size): Remove.
68738         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
68739         that every segmentation violation is a stack overflow.  (Ouch!)
68740         See Debian bug 136249 (still outstanding) for more info about why
68741         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
68742
68743 2004-01-24  Paul Eggert  <eggert@twinsun.com>
68744
68745         Exit-status fix from coreutils.
68746
68747         Use exit_failure consistently in place of EXIT_FAILURE,
68748         so that program exit statuses are consistent on failure.
68749
68750         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
68751         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
68752         * lib/argmatch.h: Comment fix to match the above.
68753         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
68754         Now a macro referring to exit_failure, instead of a separate
68755         variable.  Include "exitfail.h" to get it.
68756         * lib/xstrtol.h: Include "exitfail.h".
68757         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
68758
68759         * lib/long-options.c (parse_long_options): Use prototype
68760         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
68761         for clarity.
68762
68763 2004-01-21  Jim Meyering  <jim@meyering.net>
68764
68765         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
68766         so as not to conflict with a different-sized __mktime_internal
68767         function in GNU libc.
68768         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
68769         Problem building statically-linked `ls' reported by Michael Brunnbauer.
68770
68771 2004-01-20  Karl Berry  <karl@gnu.org>
68772
68773         * config/config.guess: update from config.
68774
68775         * config/srclistvars.sh: GNUWWWLICENSES for karl.
68776
68777 2004-01-20  Bruno Haible  <bruno@clisp.org>
68778
68779         Safer stack allocation.
68780         * lib/setenv.c: Include allocsa.h.
68781         (alloca): Remove fallback definition.
68782         (freea): Remove macro.
68783         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
68784         instead of freea.
68785
68786 2004-01-20  Bruno Haible  <bruno@clisp.org>
68787
68788         * m4/eealloc.m4: New file, from GNU gettext.
68789
68790 2004-01-20  Bruno Haible  <bruno@clisp.org>
68791
68792         * m4/allocsa.m4: New file, from GNU gettext.
68793
68794 2004-01-20  Bruno Haible  <bruno@clisp.org>
68795
68796         * lib/xallocsa.h: New file, from GNU gettext.
68797         * lib/xallocsa.c: New file, from GNU gettext.
68798
68799 2004-01-20  Bruno Haible  <bruno@clisp.org>
68800
68801         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
68802
68803 2004-01-20  Bruno Haible  <bruno@clisp.org>
68804
68805         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
68806         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
68807         specially.
68808
68809 2004-01-20  Bruno Haible  <bruno@clisp.org>
68810
68811         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
68812         patch.
68813
68814 2004-01-20  Bruno Haible  <bruno@clisp.org>
68815
68816         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
68817
68818 2004-01-20  Bruno Haible  <bruno@clisp.org>
68819
68820         * lib/eealloc.h: New file.
68821
68822 2004-01-20  Bruno Haible  <bruno@clisp.org>
68823
68824         * lib/binary-io.h: Avoid warnings on Cygwin.
68825
68826 2004-01-20  Bruno Haible  <bruno@clisp.org>
68827
68828         * lib/allocsa.h: New file, from GNU gettext.
68829         * lib/allocsa.c: New file, from GNU gettext.
68830
68831 2004-01-18  Karl Berry  <karl@gnu.org>
68832
68833         * doc/gpl.texi, doc/lgpl.texi: new files.
68834
68835 2004-01-18  Karl Berry  <karl@gnu.org>
68836
68837         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
68838         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
68839
68840 2004-01-15  Paul Eggert  <eggert@twinsun.com>
68841
68842         Merge from coreutils.
68843
68844         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
68845         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
68846         (gl_DEFAULT_POSIX2_VERSION): Move
68847         the documentation from 'configure' into 'config.hin',
68848         so that 'configure --help' isn't burdened by it and
68849         we don't have to worry about its formatting there.
68850         Reword the documentation so that it's more succinct
68851         and can be run together into a single paragraph.
68852         * m4/same.m4 (gl_SAME): Check for pathconf.
68853
68854 2004-01-15  Paul Eggert  <eggert@twinsun.com>
68855
68856         Merge from coreutils.
68857
68858         * lib/posixver.c: Include posixver.h.
68859
68860         * lib/same.c: Include <stdbool.h>, <limits.h>.
68861         (_POSIX_NAME_MAX): Define if not defined.
68862         (MIN): New macro.
68863         (same_name): If file names are silently truncated, report
68864         that the file names are the same if they are the same after
68865         the silent truncation.
68866
68867         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
68868         conversion function.
68869         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
68870         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
68871         longer needed.
68872
68873 2004-01-15  Jim Meyering  <jim@meyering.net>
68874
68875         Merge from coreutils.
68876
68877         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
68878         if no library is required.
68879         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
68880         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
68881         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
68882         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
68883         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
68884         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
68885         value, $ac_cv_search_crypt, if it's "none required".
68886         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
68887         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
68888         not gl_FUNC_GETLOADAVG.
68889         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
68890         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
68891
68892 2004-01-15  Jim Meyering  <jim@meyering.net>
68893
68894         Merge from coreutils.
68895
68896         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
68897         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
68898         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
68899
68900         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
68901         optional configure-time default.
68902
68903         * lib/version-etc.c (version_etc_copyright): Update copyright date.
68904
68905         * lib/xreadlink.c (xreadlink): Correct outdated comment.
68906
68907 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
68908
68909         Merge from coreutils.
68910
68911         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
68912         value, $ac_cv_search_nanosleep, if it's "none required".
68913
68914 2004-01-14  Paul Eggert  <eggert@twinsun.com>
68915
68916         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
68917         with like-named macro in fnmatch.c.
68918         (EXT): Use an internal constant instead.
68919
68920         Merge fnmatch patches from glibc.
68921         * lib/fnmatch.c (mbsinit): Remove define.
68922         Add libc_hidden_ver (__fnmatch, fnmatch).
68923         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
68924         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
68925
68926 2004-01-14  Karl Berry  <karl@gnu.org>
68927
68928         * config/install-sh: update from automake.
68929
68930 2004-01-13  Karl Berry  <karl@gnu.org>
68931
68932         * config/install-sh: update from automake.
68933
68934 2004-01-09  Karl Berry  <karl@gnu.org>
68935
68936         * config/install-sh: update from automake.
68937
68938 2004-01-05  Karl Berry  <karl@gnu.org>
68939
68940         * config/config.{sub,guess}: update from config.
68941
68942 2003-12-31  Karl Berry  <karl@gnu.org>
68943
68944         * config/depcomp: update from automake.
68945
68946 2003-12-14  Karl Berry  <karl@gnu.org>
68947
68948         * lib/config.charset: update from gettext-runtime.
68949
68950 2003-12-03  Paul Eggert  <eggert@twinsun.com>
68951
68952         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
68953         Bug reported by Alfred M. Szmidt.
68954
68955 2003-12-03  Bruno Haible  <bruno@clisp.org>
68956
68957         * m4/gettext.m4: Upgrade from gettext-0.13.
68958         * m4/po.m4: Upgrade from gettext-0.13.
68959         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
68960         * m4/intmax.m4: New file, from gettext-0.13.
68961         * m4/printf-posix.m4: New file, from gettext-0.13.
68962
68963 2003-11-29  Karl Berry  <karl@gnu.org>
68964
68965         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
68966
68967 2003-11-25  Paul Eggert  <eggert@twinsun.com>
68968             Bruno Haible  <bruno@clisp.org>
68969
68970         * lib/printf-parse.h: Don't include sys/types.h.
68971         (ARG_NONE): New macro.
68972         (char_directive): Change type of *arg_index fields to size_t.
68973         * lib/printf-parse.c: Don't include sys/types.h.
68974         (SSIZE_MAX): Remove macro.
68975         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
68976         Remove unnecessary overflow check.
68977         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
68978         fields.
68979
68980 2003-11-25  Bruno Haible  <bruno@clisp.org>
68981
68982         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
68983
68984 2003-11-25  Bruno Haible  <bruno@clisp.org>
68985
68986         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
68987         gt_TYPE_SSIZE_T.
68988
68989 2003-11-24  Paul Eggert  <eggert@twinsun.com>
68990
68991         * modules/alloca: Remove dependency on xalloc.
68992
68993 2003-11-24  Paul Eggert  <eggert@twinsun.com>
68994
68995         * lib/alloca.c: Remove dependency on xalloc module.
68996         (xalloc_die): Remove.
68997         (memory_full) [!defined emacs]: New macro.
68998         [!defined emacs]: Don't include xalloc.h.
68999         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
69000         address arithmetic overflows.  Change datatypes a bit to avoid
69001         unnecessary casts.
69002
69003 2003-11-22  Jim Meyering  <jim@meyering.net>
69004
69005         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
69006         s/size/size_t/.
69007
69008 2003-11-21  Karl Berry  <karl@gnu.org>
69009
69010         * config/config.{sub,guess}: update from config.
69011
69012 2003-11-18  Karl Berry  <karl@gnu.org>
69013
69014         * config/config.{sub,guess}: update from config.
69015
69016         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
69017
69018 2003-11-17  Paul Eggert  <eggert@twinsun.com>
69019
69020         * README: Mention that S+T cannot overflow if S is the size of
69021         an existing object and T is sufficiently small.
69022
69023 2003-11-17  Jim Meyering  <jim@meyering.net>
69024
69025         On systems without utime and without a utimes function capable of
69026         dealing with a NULL struct utimbuf* argument, this utime replacement
69027         could -- in unusual circumstances -- leak a file descriptor.
69028         * lib/utime.c: Include <unistd.h> and <errno.h>.
69029         (utime_null): Be sure to close `fd' and to preserve errno.
69030         Reported by Geoff Collyer via Arnold Robbins.
69031
69032 2003-11-17  Bruno Haible  <bruno@clisp.org>
69033
69034         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
69035         (Depends-on): Add xsize.
69036
69037 2003-11-17  Bruno Haible  <bruno@clisp.org>
69038
69039         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
69040
69041 2003-11-17  Bruno Haible  <bruno@clisp.org>
69042
69043         * lib/vasnprintf.c (alloca): Remove fallback definition.
69044         (freea): Remove definition.
69045         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
69046         Reported by Paul Eggert.
69047
69048 2003-11-16  Paul Eggert  <eggert@twinsun.com>
69049             Bruno Haible  <bruno@clisp.org>
69050
69051         Protect against address arithmetic overflow.
69052         * lib/printf-args.h: Include stddef.h.
69053         (arguments): Change type of field 'count' to size_t.
69054         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
69055         'unsigned int' where appropriate.
69056         * lib/printf-parse.h: Include sys/types.h.
69057         (char_directive): Change type of *arg_index fields to ssize_t.
69058         (char_directives): Change type of fields 'count', max_*_length to
69059         size_t.
69060         * lib/printf-parse.c: Include sys/types.h and xsize.h.
69061         (SSIZE_MAX): Define fallback value.
69062         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
69063         instead of 'int' where appropriate. Check a_allocated, d_allocated
69064         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
69065         * lib/vasnprintf.c: Include xsize.h.
69066         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
69067         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
69068         overflow. Avoid wraparound when converting a width or precision from
69069         decimal to binary.
69070
69071 2003-11-16  Bruno Haible  <bruno@clisp.org>
69072
69073         Update from GNU gettext.
69074         * lib/printf-parse.c: Generalize to it can be compiled for wide
69075         strings.
69076         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
69077         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
69078         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
69079         SNPRINTF): New macros.
69080         Don't include <alloca.h> if the file is used inside libintl.
69081         (local_wcslen): New function, for Solaris 2.5.1.
69082         (VASNPRINTF): Use it instead of wcslen.
69083
69084 2003-11-16  Bruno Haible  <bruno@clisp.org>
69085
69086         * lib/xsize.h (xmax): New function.
69087         (xsum, xsum3, xsum4): Declare as "pure" functions.
69088
69089 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69090
69091         * modules/xalloc (Files): Undo latest change, since xalloc.h
69092         no longer needs SIZE_MAX or PTRDIFF_MAX.
69093
69094 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69095
69096         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
69097         gl_PTRDIFF_MAX.
69098
69099 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69100
69101         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
69102         "return", to pacify some unknown compiler.  Problem reported
69103         by Joerg Schilling.
69104
69105 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69106
69107         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
69108         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
69109         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
69110         heuristic is just as accurate as far as we know, and it removes a
69111         dependency on size_max.m4 and ptrdiff_max.m4.
69112
69113 2003-11-11  Bruno Haible  <bruno@clisp.org>
69114
69115         * modules/xsize (Files): Add m4/size_max.m4.
69116         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
69117
69118 2003-11-11  Bruno Haible  <bruno@clisp.org>
69119
69120         * m4/size_max.m4: New file.
69121         * m4/ptrdiff_max.m4: New file.
69122         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
69123         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
69124         (gl_XALLOC): Invoke it.
69125
69126 2003-11-11  Bruno Haible  <bruno@clisp.org>
69127
69128         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
69129         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
69130         defined.
69131
69132 2003-11-10  Paul Eggert  <eggert@twinsun.com>
69133
69134         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
69135         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
69136         rejected some allocations of exactly SIZE_MAX - 2 bytes.
69137         From Bruno Haible.
69138         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
69139         not (size_t) -1, since it's defined here.
69140
69141 2003-11-09  Karl Berry  <karl@gnu.org>
69142
69143         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
69144
69145 2003-11-06  Paul Eggert  <eggert@twinsun.com>
69146
69147         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
69148         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
69149         Reject sizes of exactly SIZE_MAX bytes.
69150         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
69151         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
69152
69153 2003-11-05  Bruno Haible  <bruno@clisp.org>
69154
69155         * lib/xsize.h: Include limits.h, to avoid a possible collision with
69156         SIZE_MAX defined in <limits.h> on Solaris.
69157
69158 2003-11-04  Jim Meyering  <jim@meyering.net>
69159
69160         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
69161         variable names, rather than @VAR@.
69162         * modules/poll: Likewise.
69163
69164 2003-11-04  Bruno Haible  <bruno@clisp.org>
69165
69166         * modules/xsize: New file.
69167         * modules/linebreak: Depend on xsize.
69168         * MODULES.html.sh (func_all_modules): Add xsize.
69169
69170 2003-11-04  Bruno Haible  <bruno@clisp.org>
69171
69172         * m4/xsize.m4: New file.
69173
69174 2003-11-04  Bruno Haible  <bruno@clisp.org>
69175
69176         * lib/xsize.h: New file.
69177         * lib/linebreak.c: Include xsize.h.
69178         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
69179         argument for overflow.
69180         Suggested by Paul Eggert.
69181
69182 2003-11-03  Karl Berry  <karl@gnu.org>
69183
69184         * config/config.{guess,sub}: update from config.
69185
69186 2003-11-03  Jim Meyering  <jim@meyering.net>
69187
69188         * modules/userspec (lib_SOURCES): Add userspec.h.
69189         (Include): Add "userspec.h".
69190         Improve description.
69191
69192 2003-11-03  Jim Meyering  <jim@meyering.net>
69193
69194         * lib/userspec.c: Include "userspec.h".
69195         * lib/userspec.h: New file.
69196
69197 2003-11-03  Bruno Haible  <bruno@clisp.org>
69198
69199         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
69200
69201 2003-11-03  Bruno Haible  <bruno@clisp.org>
69202
69203         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
69204         available, to avoid (extremely rare) race condition.
69205         Suggested by Paul Eggert.
69206
69207 2003-11-02  Karl Berry  <karl@gnu.org>
69208
69209         * config/srclist.txt (vasprintf.c): sync broken, sigh.
69210
69211 2003-10-31  Paul Eggert  <eggert@twinsun.com>
69212
69213         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
69214         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
69215         (read_filesystem_list): Set and use me_type_malloced.
69216         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
69217         whatever the type happens to be), for brevity and consistency.
69218         Check for size calculation overflow on Alphas running OSF/1.
69219
69220 2003-10-31  Jim Meyering  <jim@meyering.net>
69221
69222         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
69223
69224         * lib/linebuffer.c: Include <string.h> for declaration of memset.
69225
69226 2003-10-30  Paul Eggert  <eggert@twinsun.com>
69227             Bruno Haible  <bruno@clisp.org>
69228
69229         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
69230         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
69231
69232 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69233
69234         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
69235         netbsd*-gnu*.  Suggested by Robert Millan.
69236
69237 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69238
69239         * modules/group-member: Depend on stdbool.
69240
69241 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69242
69243         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
69244
69245 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69246
69247         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
69248         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
69249         after the 'gnu' in these cases.  This fixes some bugs in the
69250         previous change, and is based on suggestions by Robert Millan.
69251
69252 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69253
69254         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
69255         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
69256         no longer needed.
69257         * lib/quotearg.c (quotearg_n_options): Use it.
69258         * lib/group-member.c: Include <stdbool.h>.
69259         (free_group_info): Arg is now const *; don't free arg.
69260         (get_group_info): Now returns bool and accepts struct group_info *,
69261         rather than returning a malloc'ed struct group_info *.
69262         All uses changed.  Check for overflow in internal size calculation.
69263
69264         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
69265         rather than xmalloc/xrealloc.
69266         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
69267         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
69268         conformance bug: the old code used a pointer after freeing the
69269         storage that it addressed.
69270         * lib/hash.c (hash_initialize): Simplify the code by using
69271         xalloc_oversized rather than doing it by hand.
69272         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
69273         the buffer preserved.  Use free and xmalloc instead.
69274         * lib/quotearg.c (quotearg_n_options): Likewise.
69275         Use a simpler test for size overflow.  Don't use xalloc_oversized
69276         because unsigned int might be wider than size_t (!); this suggests
69277         that we should switch from unsigned int to size_t for slot numbers.
69278
69279 2003-10-28  Paul Eggert  <eggert@twinsun.com>
69280
69281         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
69282         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
69283         NetBSD kernels.  Requested by Richard Stallman.
69284
69285 2003-10-27  Paul Eggert  <eggert@twinsun.com>
69286
69287         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
69288         to allocate the returned structure.  Do not allocate a subarray,
69289         as x2nrealloc will do that.
69290         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
69291         instead of xnrealloc.
69292         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
69293
69294 2003-10-27  Bruno Haible  <bruno@clisp.org>
69295
69296         * lib/stdbool_.h: Better support for BeOS.
69297
69298 2003-10-26  Paul Eggert  <eggert@twinsun.com>
69299
69300         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
69301         now uses inline.
69302
69303 2003-10-26  Paul Eggert  <eggert@twinsun.com>
69304
69305         * lib/xalloc.h (xalloc_oversized): New static inline function, for
69306         callers that want to do their own size-overflow checking.  Include
69307         <stdbool.h>, since xalloc_oversized returns bool.
69308         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
69309         to use xalloc_oversized.
69310
69311         Add two functions x2realloc, x2nrealloc, for programs that grow
69312         arrays dynamically by doubling their sizes.
69313         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
69314         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
69315         New functions.
69316
69317         Port to C99 semantics for 'inline' of external functions.
69318         Bug reported by Bruno Haible.
69319         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
69320         with the old contents of xnmalloc.
69321         (xnmalloc, xmalloc): Use it.
69322         (xnrealloc_inline): New static inline function,
69323         with the old contents of xnrealloc.
69324         (xnrealloc, xrealloc): Use it.
69325
69326         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
69327         that.
69328
69329 2003-10-26  Karl Berry  <karl@gnu.org>
69330
69331         * config/srclist.txt (COPYING.DOC): no longer available from
69332         /gd/gnuorg; don't know where the ultimate source is.
69333
69334 2003-10-25  Paul Eggert  <eggert@twinsun.com>
69335
69336         Fix several address-calculation bugs in the hash modules,
69337         plus some minor code cleanup.
69338
69339         * lib/hash.h: Include <stdbool.h>, for bool.
69340         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
69341         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
69342         hash_get_n_entries, hash_get_max_bucket_length,
69343         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
69344         hash_rehash): Use size_t rather than unsigned.
69345         * lib/hash.c (struct hash_table, hash_get_n_buckets,
69346         hash_get_n_buckets_used, hash_get_n_entries,
69347         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
69348         hash_get_entries, hash_do_for_each, hash_string, is_prime,
69349         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
69350         Likewise.
69351         (SIZE_MAX): Define if not defined.
69352         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
69353         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
69354         hash_print):
69355         Use const * when possible.
69356         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
69357         (check_tuning): Fix bug: if tuning parameters were very close to
69358         0 or 1, rounding errors could have caused subscript violations.
69359         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
69360         (hash_initialize): Add 'fail:' label
69361         to free table and return NULL, and use it to simplify code.
69362         Use calloc rather than clearing the storage ourself.
69363         (hash_initialize, hash_rehash): Check for arithmetic overflow in
69364         buffer size calculations.
69365         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
69366         Include <stddef.h>, for size_t.
69367         * lib/hash-pjw.c (hash_pjw): Likewise.
69368         Switch to method described by Bruno Haible.
69369         Include <limits.h>, for CHAR_BIT.
69370         (SIZE_BITS): New macro.
69371
69372 2003-10-23  Paul Eggert  <eggert@twinsun.com>
69373
69374         * m4/getline.m4 (AM_FUNC_GETLINE):
69375         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
69376         hosts.  Problem reported by Derek Robert Price in
69377         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
69378         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
69379         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
69380
69381 2003-10-21  Paul Eggert  <eggert@twinsun.com>
69382
69383         * lib/getndelim2.c (getndelim2): When size calculation overflows,
69384         ceiling the allocation at NMAX bytes rather than silently
69385         discarding input bytes before NMAX is reached.  This makes
69386         a difference only if NMAX exceeds SIZE_MAX / 2.
69387
69388         * lib/obstack.c: Merge from glibc.
69389         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
69390         Add libc_hidden_def (_obstack_newchunk).
69391         (_obstack_free) [! defined _LIBC]: Remove.
69392         [defined _LIBC]: Make a strong alias from obstack_free, rather than
69393         a clone of the function body.
69394         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
69395         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
69396
69397         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
69398         glibc.
69399         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
69400         arg to memcpy.
69401
69402         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
69403         (obstack_ptr_grow_fast, obstack_int_grow_fast):
69404         Don't use lvalue casts, as GCC plans to remove support for them
69405         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
69406         was also present in the non-GCC version, indicating that this
69407         code had always been buggy and had never been widely used.
69408         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
69409         Use the fast variant of each macro, rather than copying the
69410         definiens of the fast variant; that way, we'll be more likely to
69411         catch future bugs in the fast variants.
69412
69413 2003-10-20  Bruno Haible  <bruno@clisp.org>
69414
69415         * modules/wait-process: New file.
69416         * MODULES.html.sh (func_all_modules): Add wait-process.
69417
69418 2003-10-20  Bruno Haible  <bruno@clisp.org>
69419
69420         * m4/wait-process.m4: New file.
69421
69422 2003-10-20  Bruno Haible  <bruno@clisp.org>
69423
69424         * lib/wait-process.h: New file, from GNU gettext.
69425         * lib/wait-process.c: New file, from GNU gettext.
69426
69427 2003-10-19  Jim Meyering  <jim@meyering.net>
69428
69429         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
69430         HPUX 10.20.
69431
69432 2003-10-18  Karl Berry  <karl@gnu.org>
69433
69434         * config/config.guess: update from config.
69435
69436 2003-10-16  Paul Eggert  <eggert@twinsun.com>
69437
69438         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
69439         (getgroups): First arg is int, not size_t.
69440         Don't let 'free' mangle errno.
69441
69442 2003-10-16  Paul Eggert  <eggert@twinsun.com>
69443
69444         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
69445
69446 2003-10-16  Karl Berry  <karl@gnu.org>
69447
69448         * config/config.{guess,sub}: update from config.
69449
69450 2003-10-16  Jim Meyering  <jim@meyering.net>
69451
69452         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
69453         memcpy.
69454
69455 2003-10-15  Paul Eggert  <eggert@twinsun.com>
69456
69457         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
69458         (SIZE_MAX): Remove.
69459         (new_exclude, add_exclude_file): Initial size no longer needs to
69460         be a power of 2.
69461         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
69462         our own address arithmetic overflow checking.
69463
69464         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
69465         (fnmatch): Do not alloca more than 2000 wide characters;
69466         instead, use malloc for large buffers.
69467         Check for address arithmetic overflow, and return -1
69468         with errno set to ENOMEM in that case.
69469         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
69470         (NEW_PATTERN): Do not alloca more than 8000 bytes;
69471         instead, return -1.  Check for address arithmetic overflow.
69472
69473 2003-10-14  Paul Eggert  <eggert@twinsun.com>
69474
69475         Handle invalid suffixes and overflow independently, so that
69476         callers can treat them independently as needed.  Fix some bugs in
69477         suffix handling, e.g., "100k@" was not diagnosed as an invalid
69478         suffix for a human-readable blocksize.  The major caller-visible
69479         change is the addition of a new
69480         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
69481         that both overflow and suffix chars were found.
69482
69483         * lib/human.c (humblock): Don't check separately for invalid suffix
69484         char; that is xstrtoumax's job (now that its bug is fixed).
69485         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
69486         INTMAX_MAX]: New macros.
69487         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
69488         TYPE_MAXIMUM): New macros.
69489         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
69490         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
69491         if overflow occurs, as it's what __strtol does and it's more useful
69492         in practice.
69493         (__xstrtol): If __strtol reports some error other than ERANGE,
69494         reflect it to the caller as LONGINT_INVALID.  If it reports
69495         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
69496         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
69497         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
69498         value.
69499         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
69500         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
69501         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
69502         [defined UINTMAX_MAX]: New macros.
69503
69504 2003-10-14  Bruno Haible  <bruno@clisp.org>
69505
69506         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
69507
69508 2003-10-14  Bruno Haible  <bruno@clisp.org>
69509
69510         * m4/sig_atomic_t: New file, from GNU gettext.
69511         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
69512
69513 2003-10-14  Bruno Haible  <bruno@clisp.org>
69514
69515         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
69516         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
69517         Also use volatile where needed.
69518
69519 2003-10-12  Paul Eggert  <eggert@twinsun.com>
69520
69521         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
69522         Change maintainer from Bruno Haible to 'all'.
69523
69524 2003-10-12  Paul Eggert  <eggert@twinsun.com>
69525
69526         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
69527
69528 2003-10-12  Paul Eggert  <eggert@twinsun.com>
69529
69530         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
69531         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
69532         and define in terms of the other primitives.
69533         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
69534         (SIZE_MAX): Define if not already defined.
69535         (array_size_overflow): New function.
69536         (xalloc_die): Abort instead of exiting if 'error' returns.
69537         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
69538         (xmalloc, xrealloc): Use them.
69539         (xcalloc): Check for address arithmetic overflow.
69540         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
69541         a bit faster than strcpy.
69542
69543 2003-10-10  Simon Josefsson  <jas@extundo.com>
69544
69545         * modules/argp (Depends-on): Add restrict and strcase.
69546
69547 2003-10-10  Simon Josefsson  <jas@extundo.com>
69548
69549         * m4/argp.m4: Add AC_C_INLINE.
69550
69551 2003-10-08  Paul Eggert  <eggert@twinsun.com>
69552
69553         Merge getpass from libc, plus a few fixes.
69554
69555         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
69556         Include <stdbool.h>.
69557         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
69558         __fsetlocking to empty.
69559         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
69560         do include <bits/libc-lock.h>.
69561         Do not include <fcntl.h>; not needed.
69562         [_LIBC]: Include <wchar.h>.
69563         (NOTCANCEL_MODE): New macro.
69564         (flockfile, funlockfile) [_LIBC]: New macros.
69565         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
69566         [!_LIBC]: New macros.
69567         (call_fclose): New function.
69568         (getpass): Use it.  Save tty stream separately; this simplifies the
69569         code and makes it more reliable if stdin happens to equal stdout.
69570         Invoke __fsetlocking on tty.
69571         Handle thread cancellation if needed.
69572         Namespace cleanup (use __tcgetattr, __getline).
69573         Use bool for Booleans.
69574         [USE_IN_LIBIO]: Handle wide streams.
69575         [!_LIBC]: Unconditionally do the fseek, since we don't know what
69576         stream might go where.
69577
69578         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
69579         doesn't have to include <stdio.h> before us.
69580         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
69581         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
69582         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
69583         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
69584         if not declared, so that we can use getpass.c code from libc without
69585         rewriting it.
69586         (flockfile, ftrylockfile, funlockfile): New macros.
69587
69588 2003-10-08  Paul Eggert  <eggert@twinsun.com>
69589
69590         * modules/getpass: Depend on stdbool.
69591
69592 2003-10-08  Paul Eggert  <eggert@twinsun.com>
69593
69594         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
69595
69596 2003-10-07  Karl Berry  <karl@gnu.org>
69597
69598         * config/config.{guess,sub}: update from config.
69599
69600 2003-10-06  Jim Meyering  <jim@meyering.net>
69601             Bruno Haible  <bruno@clisp.org>
69602
69603         This lets translators provide better translations for the
69604         "Written by ..." part of --version output.
69605         * lib/version-etc.h: Include stdarg.h.
69606         (version_etc_copyright): Declare as readonly.
69607         (version_etc): Make this function variadic with a NULL-terminated list
69608         of author name strings.
69609         (version_etc_va): New declaration.
69610         * lib/version-etc.c: Include stdarg.h, stdlib.h.
69611         (version_etc_copyright): Declare as readonly.
69612         (version_etc_va): New function. Provide a different translatable string
69613         for each possible number of authors < 10. Abbreviate when there are 10
69614         authors or more.
69615         (version_etc): Make this function variadic. Call version_etc_va.
69616         Suggestion from Gary V. Vaughan.
69617
69618         * lib/long-options.h (parse_long_options): Change prototype: the
69619         authors string is moved to the end and becomes variadic.
69620         * lib/long-options.c: Include stdarg.h.
69621         (parse_long_options): Make this function variadic, too.
69622         Call version_etc_va, not version_etc.
69623
69624 2003-10-06  Bruno Haible  <bruno@clisp.org>
69625
69626         * modules/version-etc-2: Remove file.
69627         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
69628
69629 2003-10-06  Bruno Haible  <bruno@clisp.org>
69630
69631         * modules/fatal-signal: New file.
69632         * MODULES.html.sh (func_all_modules): Add fatal-signal.
69633
69634 2003-10-06  Bruno Haible  <bruno@clisp.org>
69635
69636         * m4/fatal-signal.m4: New file.
69637         * m4/signalblocking.m4: New file, from GNU gettext.
69638
69639 2003-10-06  Bruno Haible  <bruno@clisp.org>
69640
69641         * lib/version-etc-2.h: Remove file.
69642         * lib/version-etc-2.c: Remove file.
69643
69644 2003-10-06  Bruno Haible  <bruno@clisp.org>
69645
69646         * lib/fatal-signal.h: New file, from GNU gettext.
69647         * lib/fatal-signal.c: New file, from GNU gettext.
69648
69649 2003-10-05  Paul Eggert  <eggert@twinsun.com>
69650
69651         * README: Rework advice for preventing empty .o files.
69652         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
69653         not <sys/types.h>.
69654
69655 2003-10-04  Karl Berry  <karl@gnu.org>
69656
69657         * lib/argp*: update from libc.
69658
69659 2003-10-04  Karl Berry  <karl@gnu.org>
69660
69661         * config/config.{guess,sub}: update from config.
69662
69663 2003-10-02  Bruno Haible  <bruno@clisp.org>
69664
69665         * modules/lchown (Include): Add lchown.h.
69666         * modules/time_r (Include): Use "..." syntax.
69667         * modules/xgetdomainname (Include): Add xgetdomainname.h.
69668
69669 2003-10-01  Simon Josefsson  <jas@extundo.com>
69670
69671         * MODULES.html.sh (func_all_modules): Move gethostname from section
69672         'based on' to section 'lacking' POSIX:2001.
69673
69674 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
69675
69676         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
69677         to output mode on the same stream.
69678
69679 2003-09-29  Paul Eggert  <eggert@twinsun.com>
69680
69681         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
69682         Fix arg typo in previous patch.
69683
69684 2003-09-28  Jim Meyering  <jim@meyering.net>
69685
69686         * lib/error.c: Correct cpp indentation.
69687
69688 2003-09-27  Paul Eggert  <eggert@twinsun.com>
69689
69690         * modules/free: New file.
69691
69692 2003-09-27  Paul Eggert  <eggert@twinsun.com>
69693
69694         * m4/free.m4: New file.
69695
69696 2003-09-27  Paul Eggert  <eggert@twinsun.com>
69697
69698         * lib/minmax.h (MIN, MAX)
69699         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
69700         Omit the special code that used __typeof__, since we worry that
69701         it could be more trouble than it's worth.  See:
69702         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
69703         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
69704
69705         * lib/free.c: New file.
69706
69707 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
69708
69709         Trivial fixes to Makefile.am parts of module listings.
69710         * modules/strstr: Append strstr.h to lib_SOURCES.
69711         * modules/strcase: Likewise, for strcase.h.
69712
69713 2003-09-27  Karl Berry  <karl@gnu.org>
69714
69715         * config/mkinstalldirs: update from automake.
69716
69717 2003-09-26  Paul Eggert  <eggert@twinsun.com>
69718
69719         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
69720         (error_tail): Do not loop, reallocating temporary buffer, since
69721         the output cannot contain more wide characters than the input
69722         contains bytes, the size must be big enough already.  This avoids
69723         one potential size overflow calculation.  Check for size overflow
69724         when calculating temporary buffer size.  Free temporary buffer
69725         when done, if it was allocated with malloc; this plugs a memory
69726         leak.  Remove casts from void * to pointers, that are no longer
69727         needed now that we're assuming C89 or better.
69728
69729         Merge error changes from glibc.
69730
69731         * lib/error.c, error.h: Update copyright notice header to match glibc.
69732         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
69733         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
69734         Disable cancellation while printing error.
69735         * lib/error.h: Prepend __ to parameter names.
69736
69737 2003-09-26  Jim Meyering  <jim@meyering.net>
69738
69739         * lib/error.c (error_tail): Move some declarations
69740         into inner scope where the local variables are used.
69741
69742 2003-09-26  Bruno Haible  <bruno@clisp.org>
69743
69744         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
69745         stpncpy().
69746         Don't define stpncpy through config.h; it's now done through stpncpy.h.
69747
69748 2003-09-26  Bruno Haible  <bruno@clisp.org>
69749
69750         * lib/stpncpy.h (gnu_stpncpy): New declaration.
69751         (stpncpy): Define as alias for gnu_stpncpy.
69752         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
69753
69754 2003-09-25  Simon Josefsson  <jas@extundo.com>
69755
69756         * lib/xgetdomainname.h: New file.
69757         * lib/xgetdomainname.c: New file.
69758
69759 2003-09-25  Simon Josefsson  <jas@extundo.com>
69760             Bruno Haible  <bruno@clisp.org>
69761
69762         * modules/getdomainname: New file.
69763         * modules/xgetdomainname: New file.
69764         * MODULES.html.sh (func_all_modules): Add getdomainname,
69765         xgetdomainname.
69766
69767 2003-09-25  Simon Josefsson  <jas@extundo.com>
69768             Bruno Haible  <bruno@clisp.org>
69769
69770         * m4/getdomainname.m4: New file.
69771
69772 2003-09-25  Simon Josefsson  <jas@extundo.com>
69773             Bruno Haible  <bruno@clisp.org>
69774
69775         * lib/getdomainname.h: New file.
69776         * lib/getdomainname.c: New file.
69777
69778 2003-09-25  Karl Berry  <karl@gnu.org>
69779
69780         * lib/argp-fmtstream.c, argp-help.c: update from libc.
69781
69782 2003-09-25  Karl Berry  <karl@gnu.org>
69783
69784         * config/install-sh: update from automake.
69785
69786 2003-09-25  Bruno Haible  <bruno@clisp.org>
69787
69788         * modules/version-etc-2: New file, from modules/version-etc with
69789         modifications.
69790         * MODULES.html.sh (func_all_modules): Add version-etc-2.
69791
69792 2003-09-25  Bruno Haible  <bruno@clisp.org>
69793
69794         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
69795         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
69796
69797 2003-09-24  Simon Josefsson  <jas@extundo.com>
69798
69799         * modules/xgethostname: Add xgethostname.h.
69800
69801 2003-09-24  Paul Eggert  <eggert@twinsun.com>
69802
69803         * lib/linebuffer.c (freebuffer): Don't free the argument, just
69804         the buffer associated with the argument.  Bug reported by
69805         Simon Josefsson.
69806
69807 2003-09-24  Paul Eggert  <eggert@twinsun.com>
69808
69809         * README: Document assumptions that 'int' is at least 32 bits
69810         wide, that integer arithmetic is 2's complement without overflow,
69811         that there are no holes in integer values, that adding sizes of
69812         two nonoverlapping objects can't overflow, and that all-bits-zero
69813         yields scalar zero.  Fix spelling and capitalization typos.
69814
69815 2003-09-19  Karl Berry  <karl@gnu.org>
69816
69817         * lib/argp.h: update from libc.
69818
69819 2003-09-17  Paul Eggert  <eggert@twinsun.com>
69820
69821         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
69822         to avoid spurious warnings like "AC_RUN_IFELSE was called before
69823         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
69824
69825 2003-09-17  Paul Eggert  <eggert@twinsun.com>
69826
69827         * gnulib-tool: Use "test -h", not "test -L", for portability
69828         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
69829         (tags_regexp): Remove, since \| doesn't conform to POSIX.
69830         (sed_extract_prog): Issue s commands one-by-one, rather than
69831         using \| in one s command.
69832
69833 2003-09-16  Paul Eggert  <eggert@twinsun.com>
69834
69835         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
69836         input error, instead of returning NULL the next time we are called
69837         (and therefore losing track of errno).
69838
69839 2003-09-16  Bruno Haible  <bruno@clisp.org>
69840
69841         * gnulib-tool (func_create_testdir): Warn about duplicated
69842         dependencies.
69843
69844 2003-09-15  Paul Eggert  <eggert@twinsun.com>
69845
69846         * modules/argmatch, modules/fatal, modules/obstack,
69847         modules/xalloc, modules/xgethostname: Sort dependencies by
69848         importance, not alphabetically.
69849
69850 2003-09-15  Paul Eggert  <eggert@twinsun.com>
69851
69852         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
69853         fails, so that the caller gets the proper errno.
69854
69855         * lib/readutmp.c (read_utmp): Likewise.
69856         Check for fstat error.  Close stream and free storage
69857         when failing.
69858
69859 2003-09-14  Karl Berry  <karl@gnu.org>
69860
69861         * config/srclist.txt (strdup.c): disable for c89 changes.
69862
69863 2003-09-14  Jim Meyering  <jim@meyering.net>
69864
69865         * lib/getloadavg.c: Correct cpp indentation.
69866         * lib/strdup.c: Likewise.
69867         * lib/vasnprintf.c: Likewise.
69868
69869 2003-09-14  Bruno Haible  <bruno@clisp.org>
69870
69871         * modules/fwriteerror: New file.
69872         * MODULES.html.sh (func_all_modules): Add fwriteerror.
69873
69874 2003-09-14  Bruno Haible  <bruno@clisp.org>
69875
69876         * lib/fwriteerror.h: New file.
69877         * lib/fwriteerror.c: New file.
69878
69879 2003-09-12  Paul Eggert  <eggert@twinsun.com>
69880
69881         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
69882         modules/xgethostname, modules/xalloc: Depend on exit.
69883
69884 2003-09-12  Paul Eggert  <eggert@twinsun.com>
69885
69886         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
69887
69888         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
69889         and AC_MINIX, too, so that their extensions are available.
69890
69891         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
69892         This macro has been superseded by gl_BACKUPFILE.
69893
69894         More patches to assume C89 or better.
69895
69896         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
69897
69898         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
69899         unconditionally.
69900         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
69901         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
69902         Include <string.h>, <stdlib.h> unconditionally.
69903         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
69904         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
69905         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
69906         headers or for string.h.
69907         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
69908         or strtoul.
69909
69910         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
69911         headers.
69912         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
69913         * m4/userspec.m4 (gl_USERSPEC): Likewise.
69914         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
69915         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
69916         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69917         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
69918         memcpy, memset.
69919         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
69920         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
69921         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
69922         strtol.
69923         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
69924         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
69925         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
69926         strtoul.
69927
69928 2003-09-12  Paul Eggert  <eggert@twinsun.com>
69929
69930         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
69931         * lib/obstack.c [!defined _LIBC]: Likewise.
69932         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
69933         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
69934         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
69935
69936         More changes to assume C89 or better.
69937
69938         * lib/error.c (error_tail): Assume vprintf.
69939
69940         * lib/argmatch.c (getenv): Remove decl.
69941         * lib/progreloc.c (get_full_program_name): Define via prototype.
69942         * lib/setenv.c (clearenv): Likewise.
69943         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
69944         needed.
69945         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
69946         (malloc, memcpy): Remove decls.
69947         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
69948         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
69949         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
69950         (memcpy): Remove macro.
69951         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
69952         (__P): Remove.  All uses removed.
69953         (PTR): Remove.  All uses changed to void *.
69954         (CHAR_BIT, NULL): Remove.
69955         (spaces, zeros, memset_space, memset_zero)
69956         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
69957         Remove.
69958         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
69959         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
69960         Define with prototype.
69961         Remove now-unnecessary prototype decl.
69962         (extra_args_spec): Assume ANSI C.  All uses changed.
69963         (extra_args_spec_iso): Remove.
69964         (my_strftime, emacs_strftimeu): Define via prototype.
69965         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
69966         unconditionally.
69967         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
69968         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
69969         (strtoul, strtol): Remove decls.
69970         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
69971         LONG_MAX): Remove.
69972         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
69973         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
69974         (LOCALE_PARAM_PROTO): New macro.
69975         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
69976         (INTERNAL (strtol), strtol): Define with a prototype.
69977         (PARAMS): Remove.  All uses removed.
69978         * lib/tempname.c: Include <string.h> unconditionally.
69979         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
69980         * lib/xgethostname.c (main): Define with a prototype.
69981         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
69982         Include <stdlib.h> unconditionally.
69983         (calloc, malloc, realloc, free): Remove decls.
69984         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
69985         Include <stdlib.h> unconditionally.  Sort include file names.
69986         (strtod): Remove.
69987         (xstrtod): Define with a prototype.
69988         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
69989         (strtol, strtoul): Remove decls.
69990
69991 2003-09-11  Paul Eggert  <eggert@twinsun.com>
69992
69993         More patches to assume C89 or better.
69994         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
69995         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
69996         string.h, memchr, STDC_HEADERS.
69997
69998 2003-09-11  Paul Eggert  <eggert@twinsun.com>
69999
70000         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
70001         Include <stdlib.h>, <string.h> unconditionally.
70002         Remove now-unnecessary cast to char *.
70003         * lib/strnlen.c: Include <string.h> unconditionally.
70004         * lib/yesno.c (yesno): Define with a prototype.
70005
70006 2003-09-11  Bruno Haible  <bruno@clisp.org>
70007
70008         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
70009
70010 2003-09-10  Jim Meyering  <jim@meyering.net>
70011
70012         * lib/error.c: Correct indentation of cpp directives.
70013
70014 2003-09-10  Bruno Haible  <bruno@clisp.org>
70015
70016         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
70017         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
70018         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
70019         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
70020         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
70021         <stdlib.h> and <string.h> checks.
70022         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
70023         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
70024
70025 2003-09-10  Bruno Haible  <bruno@clisp.org>
70026
70027         * lib/strcspn.c: Include <string.h> unconditionally.
70028         * lib/strpbrk.c: Include <string.h> unconditionally.
70029         * lib/strstr.c: Include <string.h> unconditionally.
70030         * lib/unicodeio.c: Include <string.h> unconditionally.
70031         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
70032         * lib/unsetenv.c: Likewise.
70033         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
70034         * lib/yesno.c: Include <stdlib.h> unconditionally.
70035         (rpmatch): Add prototype.
70036
70037 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70038
70039         More patches to assume C89 or better.
70040         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
70041         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
70042         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
70043         or for string.h.
70044         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
70045         stdlib.h.
70046         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
70047         C headers.
70048         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
70049         string.h.
70050         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
70051         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
70052         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
70053         or for string.h.
70054         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
70055         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
70056         C headers.
70057         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
70058         memcpy.
70059         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
70060         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
70061         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
70062         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
70063         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
70064         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
70065         string.h, free.
70066         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
70067         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
70068         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
70069         C headers, or for string.h.
70070         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
70071         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
70072         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
70073         headers, memory.h, stdlib.h, string.h, strings.h.
70074         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
70075         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
70076         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
70077         strchr.
70078         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
70079         headers, memory.h, string.h.
70080         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
70081         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
70082         free.
70083         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
70084         headers.
70085         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
70086         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
70087         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
70088         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
70089         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
70090
70091 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70092
70093         More K&R removal.
70094
70095         * lib/acosl.c (main): Use a prototype.
70096         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
70097         tanl.c: Likewise.
70098
70099         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
70100
70101         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
70102         (getopt, etopt_long, getopt_long_only, _getopt_internal)
70103         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
70104         with a prototype.
70105         * lib/getopt.c (const): Remove macro.
70106         Include <string.h> unconditionally.
70107         (my_index): Remove; all uses changed to strchr.
70108         (strlen): Remove decl.
70109         (exchange): Remove forward decl; no longer needed.
70110         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
70111         Define with prototype.
70112         * lib/getopt1.c (const): Remove macro.
70113         (getopt_long, getopt_long_only, main): Define with prototype.
70114
70115         * lib/getugroups.c: Include <string.h> unconditionally.
70116
70117         * lib/getusershell.c: Include <stdlib.h> unconditionally.
70118         (getusershell, setusershell, endusershell, readname, main):
70119         Define with prototypes.
70120
70121         * lib/group-member.c: Include group-member.h first.
70122         Include <stdlib.h> unconditionally.
70123
70124         * lib/hard-locale.c: Include hard-locale.h first.
70125         Include <stdlib.h>, <string.h> unconditionally.
70126
70127         * lib/hash.c (free, malloc): Remove decls.
70128         Include <stdlib.h> unconditionally.
70129
70130         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
70131         (getenv): Do not declare.
70132
70133         * lib/idcache.c: Include <string.h> unconditionally.
70134
70135         * lib/long-options.c: Include long-options.h first, to test interface.
70136         Include <stdlib.h> unconditionally.
70137
70138         * lib/makepath.c: Include makepath.h first, to test interface.
70139         Include <stdlib.h> and <string.h> unconditionally.
70140
70141         * lib/linebuffer.c: Include <stdlib.h>.
70142         (free): Remove decl.
70143
70144         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
70145         stddef.h. rpl_malloc returns void *, not char *.
70146         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
70147         prototype.
70148
70149         * lib/md5.h: Include <limits.h> unconditionally.
70150         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
70151         (__P): Remove; all uses removed.
70152         * lib/md5.c: Include "md5.h" first.
70153         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
70154         md5_buffer, md5_process_bytes, md5_process_block):
70155         Define with prototypes.
70156         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
70157         * lib/sha.c: Include "sha.h" first.
70158         Include <stdlib.h>, <string.h> unconditionally.
70159
70160         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
70161         * lib/memcmp.c (__ptr_t): Likewise.
70162         * lib/memrchr.c (__ptr_t): Likewise.
70163         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
70164         Include <string.h> unconditionally.
70165         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
70166         * lib/memchr.c: Include <stdlib.h> unconditionally.
70167         * lib/memchr.c (LONG_MAX): Remove.
70168         * lib/memrchr.c (LONG_MAX): Likewise.
70169         * lib/memchr.c (__memchr): Define via a prototype.
70170         * lib/memrchr.c (__memrchr): Likewise.
70171         * lib/memcmp.c (__P): Remove, and remove all uses.
70172         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
70173         Remove forward decls; no longer needed.
70174         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
70175         Use types required by C89 in prototype.
70176
70177         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
70178         * lib/savedir.c: Likewise.
70179         * lib/mkdir.c (free): Remove decl.
70180         * lib/rmdir.c (rmdir): Define with a prototype.
70181         * lib/savedir.c: Include savedir.h first, to test interface.
70182
70183         * lib/mktime.c (STDC_HEADERS): Remove.
70184         Include <stdlib.h>, <string.h> unconditionally.
70185
70186         * lib/modechange.c: Include <stdlib.h> unconditionally.
70187         (malloc): Remove decl.
70188
70189         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
70190         (free): Remove decl.
70191
70192         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
70193         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
70194         (This type really should be intptr_t, but that's a C99ism.)
70195         (_obstack_memcpy): Remove: all uses changed to memcpy.
70196         Include <string.h> unconditionally.
70197         (struct obstack): Assume __STDC__ for types of members
70198         chunkfun, freefun, extra_arg.
70199         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
70200         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
70201         obstack_begin, obstack_specify_allocation,
70202         obstack_specify_allocation_with_arg, obstack_chunkfun,
70203         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
70204         Remove unprototyped decls and the macros that use them.
70205         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
70206         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
70207         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
70208         (defined __STDC__ && __STDC__)]:
70209         Remove nonprototyped code.
70210         Include <stdlib.h> unconditionally.
70211         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
70212         _obstack_allocated_p, _obstack_free, obstack_free,
70213         _obstack_memory_used, print_and_abort):
70214         Define using prototypes.
70215         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
70216         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
70217         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
70218         obstack_next_free, obstack_object_size, obstack_room) [0]:
70219         Remove unused, unprototyped code.
70220
70221         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
70222
70223         * lib/physmem.c (physmem_total, physmem_available, main): Define
70224         with prototypes.
70225
70226         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
70227         (main): Define with a prototype.
70228
70229         * lib/posixver.c (getenv): Remove decl.
70230
70231         * lib/putenv.c (malloc): Returns void *, not char *.
70232         Include <string.h> unconditionally.
70233         (strchr, memcpy, NULL): Do not define.
70234
70235         * lib/readtokens.c: Include readtokens.h first, to test interface.
70236         Include <stdlib.h>, <string.h> unconditionally.
70237         (init_tokenbuffer): Define with a prototype.
70238
70239         * lib/regex.c (PARAMS): Remove.  All uses removed.
70240         All uses of _RE_ARGS removed, too.
70241         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
70242         unconditionally.
70243         (bzero): Assume memset exists.
70244         (memcmp, memcpy, NULL): Remove.
70245         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
70246         char, or assignments to local vars of type signed char.
70247         (init_syntax_once, PREFIX(extract_number_and_incr),
70248         PREFIX(print_partial_compiled_pattern),
70249         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
70250         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
70251         PREFIX(regex_grow_registers), PREFIX(regex_compile),
70252         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
70253         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
70254         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
70255         wcs_compile_range, byte_compile_range, truncate_wchar,
70256         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
70257         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
70258         count_mbs_length, wcs_re_match_2_internal,
70259         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
70260         PREFIX(alt_match_null_string_p),
70261         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
70262         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
70263         regfree, PREFIX(extract_number)): Define with prototype.  Remove
70264         now-unnecessary declaration, if any.
70265         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
70266         regcomp, regexec):
70267         Remove now-unnecessary casts among pointer types.
70268         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
70269
70270         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
70271         (free): Remove decl.
70272
70273         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
70274
70275         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
70276         (free): Remove decl.
70277
70278         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
70279         * lib/xgetcwd.c: Likewise.
70280
70281         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
70282         (free): Remove decl.
70283
70284         * lib/strchrnul.c (strchrnul): Define with a prototype.
70285         Fix bug: c_in was not converted to char before searching.
70286
70287         The following changes are not K&R related:
70288
70289         * lib/group-member.h: Include <sys/types.h>, so that this file is
70290         self-contained.
70291         * lib/makepath.h: Likewise.
70292
70293         * lib/getusershell.c (readname, default_index, line_size, readname):
70294         Use size_t, not int, for sizes.
70295         (readname): If the size overflows, report an error instead of
70296         looping forever.
70297
70298 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70299
70300         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
70301         libc.
70302
70303 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70304
70305         * README: New section: portability guidelines.
70306
70307 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
70308
70309         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
70310         C89 spec.
70311
70312 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
70313
70314         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
70315
70316 2003-09-08  Paul Eggert  <eggert@twinsun.com>
70317
70318         Assume C89 or better; remove K&R cruft.
70319         A few of these changes were first proposed by Derek Robert Price
70320         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
70321
70322         * lib/addext.c: Include <string.h> unconditionally.
70323         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
70324         Don't declare getenv or malloc.
70325
70326         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
70327         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
70328         (NULL): Remove.
70329         (find_stack_direction, alloca): Use prototypes.
70330
70331         * lib/atexit.c (atexit): Define using a prototype.
70332
70333         * lib/basename.c, dirname.c, stripslash.c:
70334         Include <string.h> unconditionally.
70335
70336         * lib/bcopy.c: Include <stddef.h>.
70337         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
70338
70339         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
70340
70341         * lib/error.h (error, error_at_line, error_print_progname)
70342         [! (defined (__STDC__) && __STDC__)]: Remove decls.
70343         * lib/error.c: Include error.h first, to check interface.
70344         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
70345         (VA_START): Remove; all uses changeed to va_start.
70346         (exit, strerror): Remove decls.
70347         (error_print_progname): Prototype uncondionally.
70348         Don't include <errno.h>; no longer needed.
70349         (private_strerror): Remove.
70350         (error_tail): Always define.
70351         (error, error_at_line): Assume C89 or better; always use prototypes.
70352         * lib/fatal.c: Include "fatal.h" first, to test interface.
70353         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
70354         (VA_START): Remove; all uses changed to va_start.
70355         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
70356         this case.
70357         (exit): Remove decl.
70358         (fatal): Prototype unconditionally.  Assume va_start works.
70359         Abort at end, to pacify gcc.
70360
70361         * lib/euidaccess.c (main): Define with a prototype.
70362
70363         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
70364
70365         * lib/exitfail.c: Include <stdlib.h> unconditionally.
70366
70367         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
70368         prototypes.
70369         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
70370         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
70371         (getenv): Remove decl.
70372         (fnmatch): Define using a prototype.
70373         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
70374         (FCT): Define using a prototype.
70375
70376         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
70377
70378         * lib/gethostname.c: Include <stddef.h>.
70379         (gethostname): Define with prototype.  Length is size_t, not int.
70380
70381 2003-09-08  Paul Eggert  <eggert@twinsun.com>
70382
70383         Assume C89 or better; remove K&R cruft.
70384         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
70385         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
70386         string.h, getenv, malloc.
70387         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
70388         headers.
70389         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
70390         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
70391         do not check for strerror.
70392         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
70393         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
70394         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
70395         do not check for doprnt or vprintf.
70396         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
70397         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
70398
70399 2003-09-08  Paul Eggert  <eggert@twinsun.com>
70400
70401         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
70402         getversion.c should have been removed then, but was accidentally
70403         preserved.
70404
70405         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
70406         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
70407
70408 2003-09-08  Karl Berry  <karl@gnu.org>
70409
70410         * config/config.sub, config.guess, srclistvars.sh: update from savannah
70411                 config, forget about prep.
70412
70413         * config/depcomp, missing: update from automake.
70414
70415 2003-09-07  Paul Eggert  <eggert@twinsun.com>
70416
70417         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
70418         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
70419
70420 2003-09-07  Paul Eggert  <eggert@twinsun.com>
70421
70422         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
70423         copy_tm_result.  Bug reported by Simon Josefsson in
70424         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
70425
70426 2003-09-06  Paul Eggert  <eggert@twinsun.com>
70427
70428         * m4/time_r.m4: New file.
70429         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
70430         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
70431         is. Check for timegm declaration.
70432         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
70433         Do not check for gmtime_r.
70434         Replace mktime if __mktime_internal does not exist and if mktime
70435         hasn't been replaced already.
70436
70437 2003-09-06  Paul Eggert  <eggert@twinsun.com>
70438
70439         * lib/time_r.c, lib/time_r.h: New files.
70440
70441         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
70442         __localtime_r.
70443         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
70444         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
70445
70446         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
70447         __gmtime_r.
70448         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
70449         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
70450         Include <time_r.h>.
70451
70452         * lib/timegm.c: Switch to glibc implementation, with the following
70453         changes:
70454         [defined HAVE_CONFIG_H]: Include <config.h>.
70455         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
70456         (__mktime_internal) [!defined _LIBC]: New decl.
70457         (__gmtime_r) [!defined _LIBC]: New macro and function.
70458         (timegm): Use a prototype, since gnulib assumes C89.
70459         Do not bother declaring tmp to be const, as it's not really usefu.
70460         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
70461         (timegm): Declare only if HAVE_DECL_TIMEGM.
70462
70463 2003-09-06  Paul Eggert  <eggert@twinsun.com>
70464
70465         * MODULES.html.sh (func_all_modules): Add time_r.
70466         * modules/time_r: New file.
70467         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
70468         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
70469
70470 2003-09-03  Paul Eggert  <eggert@twinsun.com>
70471
70472         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
70473         Bug reported by Lute Kamstra in
70474         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
70475
70476         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
70477         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
70478         course with correspondingly smaller numbers for tomorrow and
70479         yesterday.  From Tadayoshi Funaba.  Originally installed into
70480         sh-utils on 1999-08-07, but the patch got lost (I guess during the
70481         coreutils merge?).
70482
70483 2003-08-31  Simon Josefsson  <jas@extundo.com>
70484
70485         * modules/timegm: New file.
70486         * MODULES.html.sh (func_all_modules): Add timegm.
70487
70488 2003-08-31  Simon Josefsson  <jas@extundo.com>
70489
70490         * m4/timegm.m4: New file.
70491
70492 2003-08-31  Simon Josefsson  <jas@extundo.com>
70493
70494         * lib/timegm.h: New file.
70495         * lib/timegm.c: New file.  Based on
70496         wget-1.8.2/src/http.c:mktime_from_utc.
70497
70498 2003-08-31  Karl Berry  <karl@gnu.org>
70499
70500         * lib/argp.h: update from libc.
70501
70502 2003-08-28  Bruno Haible  <bruno@clisp.org>
70503
70504         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
70505         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
70506         followed by '#define fnmatch fnmatch_posix' gives an error.
70507
70508 2003-08-28  Bruno Haible  <bruno@clisp.org>
70509
70510         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
70511         warning on QNX, which defines O_BINARY to 000000.
70512
70513 2003-08-27  Jim Meyering  <jim@meyering.net>
70514
70515         * m4/mkstemp.m4: Require that the system mkstemp be able to create
70516         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
70517         would fail after 32.  Reported by Danny Levinson.  Details here:
70518         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
70519
70520 2003-08-24  Bruno Haible  <bruno@clisp.org>
70521
70522         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
70523         MSVC7 <stdio.h> is included later.
70524
70525 2003-08-22  Simon Josefsson  <jas@extundo.com>
70526
70527         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
70528
70529 2003-08-20  Karl Berry  <karl@gnu.org>
70530
70531         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
70532
70533 2003-08-20  Bruno Haible  <bruno@clisp.org>
70534
70535         * modules/progname: New file.
70536         * MODULES.html.sh (func_all_modules): Add progname.
70537
70538 2003-08-20  Bruno Haible  <bruno@clisp.org>
70539
70540         * lib/progname.h: New file, from GNU gettext.
70541         * lib/progname.c: New file, from GNU gettext.
70542         * lib/progreloc.c: New file, from GNU gettext.
70543
70544 2003-08-19  Jim Meyering  <jim@meyering.net>
70545
70546         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
70547         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
70548
70549 2003-08-19  Bruno Haible  <bruno@clisp.org>
70550
70551         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
70552         more.
70553
70554 2003-08-19  Bruno Haible  <bruno@clisp.org>
70555
70556         * lib/xstrdup.c: Assume <string.h> exists.
70557
70558 2003-08-18  Paul Eggert  <eggert@twinsun.com>
70559
70560         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
70561         in makefile rules.
70562
70563 2003-08-18  Jim Meyering  <jim@meyering.net>
70564
70565         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
70566         * m4/lib-ld.m4: Likewise.
70567
70568 2003-08-18  Jim Meyering  <jim@meyering.net>
70569
70570         * lib/setenv.h: Indent nested cpp directive.
70571         * lib/vasnprintf.c: Remove trailing blanks.
70572
70573 2003-08-17  Simon Josefsson  <jas@extundo.com>
70574
70575         * modules/xstrndup: New file.
70576         * MODULES.html.sh (func_all_modules): Add xstrndup.
70577
70578 2003-08-17  Simon Josefsson  <jas@extundo.com>
70579
70580         * modules/argp: Fix autoconf macro name. Add more dependencies.
70581
70582 2003-08-17  Simon Josefsson  <jas@extundo.com>
70583
70584         * m4/xstrndup.m4: New file.
70585
70586 2003-08-17  Simon Josefsson  <jas@extundo.com>
70587
70588         * m4/argp.m4: New file.
70589
70590 2003-08-17  Simon Josefsson  <jas@extundo.com>
70591             Bruno Haible  <bruno@clisp.org>
70592
70593         * lib/xstrndup.h: New file.
70594         * lib/xstrndup.c: New file.
70595
70596 2003-08-17  Bruno Haible  <bruno@clisp.org>
70597
70598         * modules/strndup (Files, Include): Add lib/strndup.h.
70599
70600 2003-08-17  Bruno Haible  <bruno@clisp.org>
70601
70602         * modules/euidaccess (Files): Add lib/euidaccess.h.
70603
70604 2003-08-17  Bruno Haible  <bruno@clisp.org>
70605
70606         * lib/strndup.h: New file.
70607
70608 2003-08-17  Bruno Haible  <bruno@clisp.org>
70609
70610         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
70611         like AC_GNU_SOURCE.
70612         * modules/extensions (configure.ac): Comment out the invocation of
70613         gl_USE_SYSTEM_EXTENSIONS.
70614
70615 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70616
70617         Merges from coreutils, etc.
70618         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
70619         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
70620         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
70621         fixing a typo.
70622         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
70623         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
70624
70625 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70626
70627         Document merge from coreutils.
70628         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
70629         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
70630         * modules/utime: Add m4/utimes-null.m4.
70631
70632 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70633
70634         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
70635         space, undoing this 2003-08-12 change:
70636         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
70637
70638 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70639
70640         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
70641         strtoul.c from libc, undoing this 2003-08-12 change:
70642         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
70643
70644 2003-08-16  Jim Meyering  <jim@meyering.net>
70645
70646         Merges from coreutils.
70647         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
70648         prefix.  Adjust cache variables similarly.  Create 500 rather than
70649         just 300 files, to exercise bug on Darwin6.5, too.
70650         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
70651         $missing_dir.
70652         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
70653         AM_SYS_POSIX_TERMIOS.
70654         Reported by mkc@mathdogs.com.
70655         Also change use of $am_cv_sys_posix_termios
70656         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
70657         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
70658         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
70659         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
70660         in /proc/mounts until it finds one with matching device number.  This
70661         is unnecessary when the FILE argument *is* a mount point.  No stat call
70662         is necessary in that case.  So, disable the statvfs-testing code on
70663         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
70664         as RedHat bug# 84846.
70665         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
70666         to 1MB, so as not to render systems with no stack size limit (e.g.,
70667         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
70668         Include <unistd.h>.  On some systems,
70669         it is required for the definition of _SC_PAGESIZE.
70670
70671 2003-08-16  Jim Meyering  <jim@meyering.net>
70672
70673         Merge from coreutils.
70674         * lib/xstrtoimax.c: #else #if -> #elif.
70675         * lib/xstrtoumax.c: Likewise.
70676
70677 2003-08-16  Jim Meyering  <jim@meyering.net>
70678
70679         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
70680         * m4/utimes.m4: Removed.
70681         * m4/utimes-null.m4: Renamed from utimes.m4.
70682
70683         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
70684         to 1MB, so as not to render systems with no stack size limit (e.g.,
70685         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
70686         Include <unistd.h>.  On some systems,
70687         it is required for the definition of _SC_PAGESIZE.
70688
70689 2003-08-16  Jim Meyering  <jim@meyering.net>
70690         and Paul Eggert  <eggert@cs.ucla.edu>
70691
70692         Merges from coreutils, etc.
70693
70694         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
70695         using the latest version from cvs.  This avoids problems with #line
70696         directives using a vendor (Sun) compiler.
70697         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
70698         Don't set GETGROUPS_LIB here; now it's
70699         done via getgroups.m4's wrapper function.
70700         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
70701         rather than just in sh-util/configure.in, so that the
70702         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
70703         same.
70704         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
70705         AC_FUNC_GETLOADAVG where to find getloadavg.c.
70706         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
70707         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
70708         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
70709         Remove code that is now done by the newly-required macros.
70710         Append $(EXEEXT) to DF_PROG.
70711         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
70712         Do not invoke or require the following here,
70713         since prereq.m4 or some gnulib .m4 now does this for us:
70714         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
70715         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
70716         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
70717         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
70718         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
70719         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
70720         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
70721         AC_FUNC_OBSTACK.
70722         Do not replace the following functions, as this is now the job
70723         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
70724         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
70725         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
70726         atexit getpass, strdup, getpagesize.
70727         Replace 'raise'.
70728         Do not check for the following functions, as this is now the job
70729         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
70730         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
70731         setregid.
70732         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
70733         Check for sys/sysctl.h.
70734         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
70735         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
70736         of checking for ssize_t ourselves.
70737
70738         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
70739         Require every macro that gnulib/modules/* suggests for us.
70740         (jm_PREREQ_ADDEXT): New macro.
70741         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
70742         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
70743
70744         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
70745         (gl_PHYSMEM): Use it.
70746         Also check for `table' function.
70747         Check for new headers and functions.
70748         Add check for sys/sysmp.h.
70749         With suggestions from Kaveh Ghazi.
70750         Ignore headers that are present but cannot be compiled.  This
70751         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
70752         C 5.4.
70753
70754 2003-08-15  Paul Eggert  <eggert@twinsun.com>
70755
70756         Document merge from coreutils.
70757         * modules/userspec: Depend on posixver.
70758         * modules/strftime: Depend on tzset.
70759
70760 2003-08-15  Paul Eggert  <eggert@twinsun.com>
70761
70762         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
70763         rather than tab, after '#' in shell-script copyright notices.
70764         Suggested by Bruno Haible.
70765
70766 2003-08-15  Paul Eggert  <eggert@twinsun.com>
70767
70768         * config/srclist-update: Use three spaces, rather than tab, after '#'
70769         in shell-script copyright notices.  Suggested by Bruno Haible.
70770         Remove unnecessary parenthesization in regular expression.
70771
70772 2003-08-15  Jim Meyering  <jim@meyering.net>
70773
70774         Merge from coreutils.
70775         * lib/xgethostname.c: Include <stdlib.h>.
70776         (xghostname): Don't exit for anything other than memory-related
70777         failure; just return NULL.
70778         * lib/userspec.c: Include "posixver.h".
70779         (parse_user_spec): Accept `.' as a separator only
70780         in pre-POSIX-200112 mode.
70781         * lib/strtoimax.c: Use #elif rather than #else #if.
70782         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
70783         Remove function, now that we can rely on a working tzset function.
70784         [!_LIBC]: Ensure that the required autoconf test has been run.
70785         [!defined _NL_CURRENT && HAVE_STRFTIME]:
70786         Use underlying_strftime for %r.
70787         * lib/sha.c: Merge in some clean-up and optimization changes from
70788         glibc.
70789         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
70790         Ensure that it is a multiple of 64.
70791         Rearrange loop exit tests so as to avoid performing an
70792         additional fread after encountering an error or EOF.
70793         * lib/realloc.c: Update copyright date.
70794
70795 2003-08-15  Jim Meyering  <jim@meyering.net>
70796         and Paul Eggert  <eggert@twinsun.com>
70797
70798         Merge from coreutils.
70799         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
70800         member but strut utmpx does not.  Needed for AIX 4.3.3.
70801         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
70802
70803 2003-08-15  Jim Meyering  <jim@meyering.net>
70804         and Paul Eggert  <eggert@cs.ucla.edu>
70805
70806         Merges from coreutils, etc.
70807         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
70808         Require gl_FUNC_TZSET_CLOBBER.
70809         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
70810         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
70811         members.
70812
70813 2003-08-14  Paul Eggert  <eggert@twinsun.com>
70814
70815         Help the merge from coreutils.
70816         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
70817         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
70818         * m4/tzset.m4: Use it too.
70819
70820 2003-08-14  Paul Eggert  <eggert@twinsun.com>
70821
70822         * modules/tzset: New file.
70823
70824 2003-08-14  Jim Meyering  <jim@meyering.net>
70825
70826         Merges from coreutils.
70827         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
70828         variable names, rather than @FNMATCH_H@.
70829         * modules/alloca: Likewise for $(ALLOCA_H).
70830
70831         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
70832         the three copies of the literal target, `fnmatch.h'.
70833         * modules/alloca (alloca.h): Likewise.
70834
70835 2003-08-14  Jim Meyering  <jim@meyering.net>
70836
70837         Merge from coreutils.
70838         * m4/tzset.m4: New file.
70839         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
70840         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
70841         otherwise, AIX 5.1 systems would end up using the latter.
70842         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
70843         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
70844         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
70845         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
70846
70847 2003-08-14  Jim Meyering  <jim@meyering.net>
70848
70849         Merge from coreutils.
70850         * lib/obstack.h: Whitespace changes.
70851         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
70852         and xcalloc return values.
70853         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
70854         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
70855         hang on OSF/1 5.1 for DIR on both local and remote file systems.
70856         Reported by (and fix confirmed by) Nelson H. F. Beebe.
70857         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
70858         error from mntctl.
70859         Use mntctl's return value to drive the entry-processing loop, since
70860         we can't rely on the value of the vmt_length member in the last
70861         entry.  On some systems doing so could result in exhausting
70862         virtual memory.  Based in part on a patch from Mike Jetzer.
70863
70864 2003-08-14  Jim Meyering  <jim@meyering.net>
70865         and Paul Eggert  <eggert@twinsun.com>
70866
70867         Merges from coreutils, plus other fixes.
70868         * lib/physmem.c: Merge in portability changes from gcc/libiberty
70869         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
70870         for credits and details.  Thanks to Kaveh Ghazi for helping
70871         to keep these files in sync.
70872         (ARRAY_SIZE): Define it.
70873         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
70874         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
70875         (memcasecmp): Don't assume size_t fits in unsigned int.
70876         Remove casts and duplicate code.
70877         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
70878         (memcpy): Remove definition.
70879         Merge in some clean-up and optimization changes from glibc.
70880         [BLOCKSIZE]: Move definition to top of file.
70881         Ensure that it is a multiple of 64.
70882         Rearrange loop exit tests so as to avoid performing an
70883         additional fread after encountering an error or EOF.
70884         * lib/md5.h (md5_uintptr): Define.
70885         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
70886         return to the initial working directory.  Preserve errno
70887         for caller.
70888         * lib/idcache.c: Include "xalloc.h".
70889         (xmalloc, xrealloc): Remove decls.
70890         (getuser): Remove casts no longer required in C89.
70891         * lib/human.c: Include stdio.h, for sprintf.
70892         * lib/group-member.c: Include "xalloc.h".
70893         (xmalloc, xrealloc): Remove decls.
70894         (get_group_info): Remove casts no longer required in C89.
70895         * lib/getusershell.c (readname): Remove casts no longer required in
70896         C89.
70897         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
70898         * lib/getline.c: Whitespace fix, from coreutils.
70899
70900 2003-08-13  Paul Eggert  <eggert@twinsun.com>
70901
70902         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
70903         Check for isascii.
70904
70905         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
70906         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
70907         Undo previous (whitespace-only) change.
70908
70909 2003-08-13  Paul Eggert  <eggert@twinsun.com>
70910
70911         * lib/exclude.c: Include <ctype.h>
70912         (IN_CTYPE_DOMAIN): New macro.
70913         (is_space): New fn.
70914         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
70915         and empty lines.
70916
70917         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
70918         Undo previous (whitespace-only) change.
70919
70920 2003-08-13  Paul Eggert  <eggert@twinsun.com>
70921
70922         * config/srclist-update: Change update back to the old behavior,
70923         leaving whitespace alone.  Use one 'sed' command rather than a
70924         pipeline.
70925         (fixlicense): Now a variable, not a function.
70926         (remove_trailing_blanks): Remove.
70927         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
70928         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
70929         Undo previous (whitespace-only) change.
70930
70931 2003-08-12  Paul Eggert  <eggert@twinsun.com>
70932
70933         Merge from coreutils.
70934         * modules/euidaccess: Add lib_SOURCES, include for new
70935         file euidaccess.h
70936
70937 2003-08-12  Paul Eggert  <eggert@twinsun.com>
70938
70939         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
70940         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
70941         Normalize leading white space and remove trailing white space.
70942
70943         Merge from coreutils
70944         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
70945
70946         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
70947         0.12.1.  These files are now being upgraded automatically by
70948         ../config/srclist-update.
70949
70950 2003-08-12  Paul Eggert  <eggert@twinsun.com>
70951
70952         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
70953         Normalize leading white space and remove trailing white space.
70954         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
70955         notice, as per ../config/srclist-update.
70956
70957         Merge from coreutils.
70958         * lib/euidaccess.h: New file.
70959         * lib/euidaccess.c: Include it.
70960         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
70961         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
70962         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
70963
70964 2003-08-12  Paul Eggert  <eggert@twinsun.com>
70965
70966         * config/srclist-update: Add copyright notice.
70967         (remove_id_lines, remove_trailing_blanks): New constants.
70968         (fixfile): Use them to normalize spacing a bit in copied files.
70969         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
70970         Normalize leading white space and remove trailing white space.
70971
70972         * config/texinfo.tex: Sync with texinfo.
70973
70974         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
70975         strtoul.c from libc, to merge coreutils whitespace changes.
70976
70977         * config/srclist.txt: Get the following m4 files from gettext:
70978         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
70979         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
70980         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
70981         wint_t.m4.
70982
70983 2003-08-12  Karl Berry  <karl@gnu.org>
70984
70985         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
70986         been made.
70987
70988 2003-08-11  Paul Eggert  <eggert@twinsun.com>
70989
70990         * modules/gnu-source, m4/gnu-source.m4:
70991         Remove; we're assuming Autoconf 2.54 or later now.
70992         Suggested by Bruno Haible.
70993         * MODULES.html.sh (func_all_modules): Remove gnu-source.
70994
70995 2003-08-11  Bruno Haible  <bruno@clisp.org>
70996
70997         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
70998
70999 2003-08-11  Bruno Haible  <bruno@clisp.org>
71000
71001         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
71002         (vasnprintf): Use it instead of wcslen.
71003
71004 2003-08-11  Bruno Haible  <bruno@clisp.org>
71005
71006         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
71007         value to ensure that _Bool promotes to int. Use #define for _Bool when
71008         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
71009
71010 2003-08-10  Karl Berry  <karl@gnu.org>
71011
71012         * lib/regex.h: update from libc (whitespace fix).
71013
71014 2003-08-09  Paul Eggert  <eggert@twinsun.com>
71015
71016         Merge some files from coreutils.  These changes were
71017         originally made by Jim Meyering.
71018         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
71019         many older Unixes require this.
71020         * lib/alloca.c (alloca): Remove cast to argument of free;
71021         no longer needed in C89.
71022         * lib/alloca_.h, regex.h: Fix white space to match
71023         what GNU indent does.
71024
71025 2003-08-09  Paul Eggert  <eggert@twinsun.com>
71026
71027         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
71028         apparently Emacs's Unicode mode got confused before my 2003-08-05
71029         checkin.
71030
71031 2003-08-08  Paul Eggert  <eggert@twinsun.com>
71032
71033         * m4/extensions.m4: New file.
71034         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
71035         Require gl_USE_SYSTEM_EXTENSIONS.
71036         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
71037         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
71038
71039 2003-08-08  Paul Eggert  <eggert@twinsun.com>
71040
71041         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
71042         * modules/extensions, modules/gnu-source: New files.
71043         * modules/timespec, modules/unlocked-io: Depend on extensions.
71044
71045 2003-08-07  Paul Eggert  <eggert@twinsun.com>
71046
71047         * modules/restrict: New file.
71048         * MODULES.html.sh (func_all_modules): Add restrict.
71049         * modules/regex: Depend on restrict.
71050
71051 2003-08-07  Paul Eggert  <eggert@twinsun.com>
71052
71053         * m4/restrict.m4: New file.
71054         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
71055
71056 2003-08-07  Bruno Haible  <bruno@clisp.org>
71057
71058         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
71059         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
71060
71061 2003-08-07  Bruno Haible  <bruno@clisp.org>
71062
71063         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
71064         makes the module 'getndelim2' compatible with the module 'getline'.
71065
71066 2003-08-05  Paul Eggert  <eggert@twinsun.com>
71067
71068         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
71069         byte with "\201" to avoid glitches when editing that source file
71070         with multi-gnome-terminal.
71071
71072 2003-08-05  Paul Eggert  <eggert@twinsun.com>
71073
71074         * lib/bumpalloc.h: Remove.
71075
71076 2003-08-05  Paul Eggert  <eggert@twinsun.com>
71077
71078         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
71079         * modules/bumpalloc: Remove.
71080
71081 2003-08-04  Paul Eggert  <eggert@twinsun.com>
71082
71083         * lib/getloadavg.c: Change copyright notice and spacing to conform to
71084         GNU coding style.
71085
71086         Merge from coreutils.
71087         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
71088         1. From glibc.
71089         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
71090         from Karl Berry, implemented by Jim Meyering.
71091         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
71092         from Dmitry V. Levin.
71093         Remove anachronistic cast of xrealloc.
71094         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
71095         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
71096         type. Otherwise, it wouldn't compile with at least /bin/cc on
71097         ymp-cray-unicos9.0.2.X.
71098         Combine two mostly-identical uses of alloca into one.
71099         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
71100
71101 2003-08-04  Dave Love  <d.love@dl.ac.uk>
71102
71103         [From Emacs.]
71104
71105         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
71106         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
71107         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
71108         obsolete NLIST_NAME_UNION.
71109         [__GNU__]: Undef BSD and FSCALE.
71110         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
71111
71112 2003-08-03  Paul Eggert  <eggert@twinsun.com>
71113
71114         * lib/stdbool_.h (_Bool): Make it signed char, instead of
71115         an enum type, so that it's guaranteed to promote to int.  See:
71116         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
71117
71118 2003-08-03  Karl Berry  <karl@gnu.org>
71119
71120         * config/depcomp: update from automake.
71121
71122 2003-07-31  Paul Eggert  <eggert@twinsun.com>
71123
71124         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
71125         (strerror): Don't assume that a printable int fits in 14 bytes.
71126
71127 2003-07-31  Bruno Haible  <bruno@clisp.org>
71128
71129         * modules/getpass-gnu: New file.
71130         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
71131
71132 2003-07-31  Bruno Haible  <bruno@clisp.org>
71133
71134         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
71135
71136 2003-07-24  Karl Berry  <karl@gnu.org>
71137
71138         * config/missing: update from automake.
71139
71140 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
71141             Bruno Haible  <bruno@clisp.org>
71142
71143         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
71144         * lib/getline.c (getline, getdelim): Likewise.
71145         Remove _GNU_SOURCE define; now it's defined in config.h through
71146         m4/getline.m4.
71147
71148 2003-07-23  Karl Berry  <karl@gnu.org>
71149
71150         * config/config.sub: update from prep.
71151
71152 2003-07-22  Paul Eggert  <eggert@twinsun.com>
71153
71154         * modules/xalloc (Depends-on): Add exitfail.
71155         * modules/xmemcoll: Likewise.
71156
71157 2003-07-22  Paul Eggert  <eggert@twinsun.com>
71158
71159         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
71160         over-parenthesization in macros.
71161
71162         Sync with coreutils.
71163
71164         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
71165         required by C99.
71166
71167         Use `exit_failure' for xalloc and xmemcoll instead of their own
71168         private exit-failure variables.
71169         * lib/xalloc.h (xalloc_exit_failure): Remove.
71170         * lib/xmalloc.c: Likewise.  Include exitfail.h.
71171         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
71172         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
71173         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
71174         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
71175
71176 2003-07-20  Jim Meyering  <jim@meyering.net>
71177
71178         * modules/closeout (Depends-on): Add exitfail.
71179         Suggestion from Bruno Haible.
71180
71181 2003-07-19  Karl Berry  <karl@gnu.org>
71182
71183         * config/config.sub: update from prep.
71184
71185 2003-07-18  Paul Eggert  <eggert@twinsun.com>
71186
71187         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
71188         Remove.
71189         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
71190         to test that it can stand by itself.  Include "exitfail.h".
71191         Clients should set exit_failure instead.
71192         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
71193
71194 2003-07-18  Bruno Haible  <bruno@clisp.org>
71195
71196         * modules/getndelim2: New file.
71197         * modules/getline: Share files with module getndelim2.
71198         * modules/getnline: Depend on getndelim2 instead of sharing files with
71199         it. Add getnline.c to lib_SOURCES.
71200         * MODULES.html.sh (func_all_modules): Add getndelim2.
71201
71202 2003-07-18  Bruno Haible  <bruno@clisp.org>
71203
71204         * m4/getndelim2.m4: New file.
71205         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
71206         invoke gl_PREREQ_GETNDELIM2.
71207         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
71208         gl_PREREQ_GETNDELIM2.
71209         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
71210         gl_GETNDELIM2.
71211
71212 2003-07-18  Bruno Haible  <bruno@clisp.org>
71213
71214         * lib/getndelim2.h: New file.
71215         * lib/getndelim2.c: Make into a module of its own. Include config.h,
71216         getndelim2.h.
71217         (getndelim2): Make non-static. Change return type to ssize_t.
71218         * lib/getline.h: Change argument names.
71219         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
71220         * lib/getnline.c: Include getndelim2.h.
71221
71222 2003-07-18  Andreas Schwab  <schwab@suse.de>
71223
71224         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
71225
71226 2003-07-17  Karl Berry  <karl@gnu.org>
71227
71228         * config/config.sub: update from prep.
71229
71230 2003-07-17  Bruno Haible  <bruno@clisp.org>
71231
71232         * modules/getnline: New file.
71233         * modules/getline: Add lib/getndelim2.c to source file list.
71234         * MODULES.html.sh (func_all_modules): Add getnline.
71235
71236 2003-07-17  Bruno Haible  <bruno@clisp.org>
71237
71238         * m4/getnline.m4: New file.
71239
71240 2003-07-17  Bruno Haible  <bruno@clisp.org>
71241
71242         * m4/Makefile.am.in: Remove file.
71243         * m4/Makefile.am: Remove file.
71244         * m4/Makefile.in: Remove file.
71245
71246 2003-07-17  Bruno Haible  <bruno@clisp.org>
71247
71248         * lib/getnline.h: New file.
71249         * lib/getnline.c: New file.
71250         * lib/getndelim2.c: New file, extracted from getline.c.
71251         (getndelim2): Renamed from getdelim2, with added nmax argument.
71252         * lib/getline.c: Include getndelim2.c.
71253         (getdelim2): Moved out to getndelim2.c.
71254         (getline, getdelim): Update.
71255
71256 2003-07-17  Bruno Haible  <bruno@clisp.org>
71257
71258         * lib/Makefile.am: Remove file.
71259         * lib/Makefile.in: Remove file.
71260
71261 2003-07-17  Bruno Haible  <bruno@clisp.org>
71262
71263         * configure.in: Remove file.
71264         * Makefile.in: Remove file.
71265
71266 2003-07-17  Bruno Haible  <bruno@clisp.org>
71267
71268         * MODULES.html.sh: Put the </BODY> right before </HTML>.
71269
71270 2003-07-16  Karl Berry  <karl@gnu.org>
71271
71272         * config/srclist-update: was running fixlicense twice, which caused
71273                 texinfo.tex to be nullified for some reason.  Simplify,
71274                 $gplsrc is no longer needed as far as I can see?
71275
71276 2003-07-16  Jim Meyering  <jim@meyering.net>
71277
71278         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
71279
71280 2003-07-15  Paul Eggert  <eggert@twinsun.com>
71281
71282         * config/srclist.txt: Get the following files from gettext-runtime/intl
71283         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
71284         ref-del.sin.  From Bruno Haible.
71285         * config/srclist-update (fixfile): Change grep pattern again, since the
71286         previous fix didn't work (there was another trailing $).  Use
71287         '[$]' to escape the $s.
71288
71289 2003-07-15  Karl Berry  <karl@gnu.org>
71290
71291         * lib/vasnprintf.c: update from gettext.
71292
71293 2003-07-15  Karl Berry  <karl@gnu.org>
71294
71295         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
71296         gets expanded when surrounded by '$'.
71297
71298 2003-07-15  Jim Meyering  <jim@meyering.net>
71299
71300         * modules/save-cwd: Don't depend on error.  From Derek Price.
71301
71302 2003-07-15  Jim Meyering  <jim@meyering.net>
71303
71304         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
71305
71306 2003-07-14  Simon Josefsson  <jas@extundo.com>
71307
71308         * modules/mempcpy: New file.
71309         * MODULES.html.sh (func_all_modules): Add mempcpy.
71310
71311 2003-07-14  Simon Josefsson  <jas@extundo.com>
71312
71313         * m4/mempcpy.m4: New file.
71314
71315 2003-07-14  Simon Josefsson  <jas@extundo.com>
71316
71317         * lib/mempcpy.h: New file.
71318         * lib/mempcpy.c: New file.
71319
71320 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71321
71322         * modules/getdate, modules/posixtm: Depend on mktime.
71323
71324 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71325
71326         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
71327         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
71328         unicodeio.c, unicodeio.h, unlocked-io.h:
71329         Switch from LGPL to GPL.
71330
71331 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71332
71333         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
71334         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
71335         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
71336         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
71337         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
71338         updated automatically by ../config/srclist-update.  This changes
71339         their license from LPGL to GPL.
71340
71341 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71342
71343         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
71344         assumed to refer to the root of the most recent stable gettext version.
71345         * config/srclistvars.sh: Add defaults for eggert.
71346         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
71347         Match "This program" as well as "The program".  This is needed
71348         for gettext.
71349
71350 2003-07-14  Jim Meyering  <jim@meyering.net>
71351
71352         Don't emit diagnostics.  Let callers do that.
71353         * lib/save-cwd.c: Don't include "error.h".
71354         (save_cwd): Don't call error.  Ensure that errno is valid
71355         when returning nonzero.
71356
71357         * lib/save-cwd.h (restore_cwd): Update prototype.
71358         * lib/save-cwd.c (restore_cwd): Remove two parameters.
71359         Simplify.  Don't call error upon failure.  Let callers do that.
71360         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
71361         when auditing is enabled.  But don't bother updating the #if.
71362
71363 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
71364
71365         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
71366         it breaks C++ compilation.
71367         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
71368
71369 2003-07-10  Simon Josefsson  <jas@extundo.com>
71370
71371         * modules/strchrnul (Makefile.am): Add strchrnul.h.
71372
71373 2003-07-10  Jim Meyering  <jim@meyering.net>
71374
71375         * m4/clock_time.m4: Remove trailing blank.
71376         * m4/intmax_t.m4: Likewise.
71377
71378 2003-07-10  Jim Meyering  <jim@meyering.net>
71379
71380         * lib/vasnprintf.c: Remove trailing blanks.
71381         Make cpp indentation consistent.
71382
71383 2003-07-09  Paul Eggert  <eggert@twinsun.com>
71384
71385         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
71386         posixver.c, strftime.c, strnlen.c, strverscmp.c:
71387         Switch from LGPL to GPL.
71388
71389 2003-07-09  Paul Eggert  <eggert@twinsun.com>
71390
71391         * config/srclist.txt: Sort sublists.  Add
71392         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
71393         that differ from gnulib for one reason or another; we'd like this list
71394         to be smaller but for now let's document what we have.
71395
71396 2003-07-08  Paul Eggert  <eggert@twinsun.com>
71397
71398         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
71399         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
71400         and sweeter "eval x=$x".
71401         * config/srclist.txt: Get lib/argp* from glibc.
71402
71403 2003-07-07  Paul Eggert  <eggert@twinsun.com>
71404
71405         * lib/mktime.c: Fix some boundary cases and remove need for floating
71406         point.
71407
71408         Issue a compile-time diagnostic if time_t is floating point, or if
71409         two's complement arithmetic is not in effect, or if arithmetic
71410         right shift does not propagate the sign.  These assumptions were
71411         all in the original code but they weren't checked.
71412
71413         (TIME_T_MIDPOINT, verify): New macros.
71414         (__isleap): Remove; it has integer overflow problems.
71415         (leapyear): New function, without those problems.
71416         (ydhms_tm_diff): Remove; splitting into two parts.
71417         (ydhms_diff): New function, containing the arithmetic part of
71418         the old ydhms_tm_diff function.  Issue a compile-time
71419         diagnostic if we are not using C99 integer division.
71420         Avoid casts when possible.
71421         (guess_time_tm): New function, containing the checking part of
71422         the old ydhms_tm_diff function.  Return the new value, rather than
71423         the difference between it and the old.  Accept a new argument T
71424         so that *T specifies the old value.  Check for overflow in the result.
71425
71426         (__mktime_internal): Use a time_t offset, not a long int offset.
71427         This undoes the 2003-06-04 change, which is no longer needed now
71428         that we have better overflow checking.
71429         (localtime_offset): Likewise.
71430
71431         (__mktime_internal): Avoid harmful overflow on hosts where time_t
71432         and long are 64-bit but int is only 32-bit.
71433         (ydhms_diff): Use long int to store year1 and yday1.
71434         Issue a compile-time diagnostic if long int is not wide enough.
71435
71436         (__mktime_internal): Use long int to store adjusted year and yday.
71437         Use plain C rather than preprocessor commands, if that doesn't
71438         affect efficiency.
71439         Check for overflow (and try to repair) after each probe
71440         rather than checking only at the very end.  This avoids some bugs
71441         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
71442         does not equal GMT offset at maximum time).
71443         Use integer to check for overflow rather than floating point; this
71444         is more portable to non-IEEE hosts, and is a tad faster.
71445         When we detect that we are oscillating between two values,
71446         don't check whether tm_isdst has the requested value, since
71447         we already know the answer.  When tm_isdst has the wrong value,
71448         use a different heuristic to find the right one, based on the
71449         extreme values actually observed in practice in tz2003a,
71450         rather than the (overly optimistic) "previous 3 calendar quarters".
71451
71452         (not_equal_tm, print_tm, check_result): Use "const T" rather than
71453         "T const" to accommodate glibc style.
71454         (check_result): Use less-confusing report format.  "long" -> "long int.
71455         (main): Likewise.
71456         Don't loop if the iteration overflows time_t.
71457         Allow a negative step in the iteration.
71458
71459 2003-07-06  Karl Berry  <karl@gnu.org>
71460
71461         * config/depcomp: update from automake.
71462         * config/config.sub: update from prep.
71463
71464 2003-07-03  Karl Berry  <karl@gnu.org>
71465
71466         * config/config.guess: update from prep.
71467
71468 2003-07-01  Paul Eggert  <eggert@twinsun.com>
71469
71470         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
71471         xreadlink.c now includes it unconditionally.
71472
71473 2003-07-01  Paul Eggert  <eggert@twinsun.com>
71474
71475         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
71476         having it depend on HAVE_SYS_TYPES_H.
71477
71478 2003-07-01  Bruno Haible  <bruno@clisp.org>
71479
71480         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
71481         <sys/types.h> should be sufficient.
71482         Reported by Paul Eggert.
71483
71484 2003-06-26  Karl Berry  <karl@gnu.org>
71485
71486         * config/depcomp: update from automake.
71487
71488 2003-06-26  Bruno Haible  <bruno@clisp.org>
71489
71490         * modules/human: Depend on module stdbool.
71491
71492 2003-06-25  Bruno Haible  <bruno@clisp.org>
71493
71494         * modules/readlink: New file.
71495         * modules/xreadlink: Depend on it.
71496         * MODULES.html.sh (func_all_modules): Add readlink.
71497
71498 2003-06-25  Bruno Haible  <bruno@clisp.org>
71499
71500         * m4/readlink.m4: New file.
71501
71502 2003-06-25  Bruno Haible  <bruno@clisp.org>
71503
71504         * lib/readlink.c: New file.
71505
71506 2003-06-22  Karl Berry  <karl@gnu.org>
71507
71508         * config/srclist.txt: update mkinstalldirs from automake.
71509         * config/mkinstalldirs: update.
71510
71511 2003-06-22  Bruno Haible  <bruno@clisp.org>
71512
71513         Portability to mingw32.
71514         * m4/ssize_t.m4: New file, from GNU gettext.
71515         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
71516         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
71517
71518 2003-06-22  Bruno Haible  <bruno@clisp.org>
71519
71520         * modules/safe-read: Add m4/ssize_t.m4.
71521         * modules/xreadlink: Add m4/ssize_t.m4.
71522
71523 2003-06-20  Bruno Haible  <bruno@clisp.org>
71524
71525         Assume C89, so PARAMS isn't needed.
71526         * lib/unicodeio.h (PARAMS): Remove.
71527         * lib/unicodeio.c: Don't use PARAMS.
71528
71529 2003-06-18  Karl Berry  <karl@gnu.org>
71530
71531         * config/config.{guess,sub}: update from prep.
71532
71533 2003-06-18  Jim Meyering  <jim@meyering.net>
71534
71535         Merge changes from coreutils.
71536         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
71537         Remove explicit declarations of xmalloc and realloc.
71538         Include xalloc.h.
71539         (read_utmp): Remove anachronistic cast of xmalloc.
71540
71541 2003-06-17  Paul Eggert  <eggert@twinsun.com>
71542
71543         Assume C89, so PARAMS isn't needed.
71544         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
71545         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
71546         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
71547         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
71548         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
71549         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
71550         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
71551         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
71552         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
71553         lib/xstrtod.h, lib/xstrtol.h: Likewise.
71554         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
71555         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
71556         no longer needed. Anyway, config.h should always be included before any
71557         other file.
71558
71559 2003-06-11  Simon Josefsson  <jas@extundo.com>
71560
71561         * modules/sysexits: New file.
71562         * MODULES.html.sh (func_all_modules): Add sysexits.
71563
71564 2003-06-11  Simon Josefsson  <jas@extundo.com>
71565
71566         * lib/sysexit_.h: New file.
71567
71568 2003-06-11  Derek Price  <derek@ximbiot.com>
71569
71570         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
71571         necessary.
71572
71573 2003-06-11  Bruno Haible  <bruno@clisp.org>
71574
71575         * m4/sysexits.m4: New file.
71576
71577 2003-06-10  Simon Josefsson  <jas@extundo.com>
71578
71579         * lib/argp.h: New file, from glibc.
71580         * lib/argp-ba.c: New file, from glibc.
71581         * lib/argp-eexst.c: New file, from glibc.
71582         * lib/argp-fmtstream.c: New file, from glibc.
71583         * lib/argp-fmtstream.h: New file, from glibc.
71584         * lib/argp-fs-xinl.c: New file, from glibc.
71585         * lib/argp-help.c: New file, from glibc.
71586         * lib/argp-namefrob.h: New file, from glibc.
71587         * lib/argp-parse.c: New file, from glibc.
71588         * lib/argp-pv.c: New file, from glibc.
71589         * lib/argp-pvh.c: New file, from glibc.
71590         * lib/argp-xinl.c: New file, from glibc.
71591
71592 2003-06-10  Simon Josefsson  <jas@extundo.com>
71593
71594         * modules/strchrnul: New file.
71595
71596 2003-06-10  Simon Josefsson  <jas@extundo.com>
71597
71598         * modules/argp: New file.
71599
71600 2003-06-10  Simon Josefsson  <jas@extundo.com>
71601
71602         * m4/strchrnul.m4: New file.
71603
71604 2003-06-10  Simon Josefsson  <jas@extundo.com>
71605
71606         * lib/strchrnul.h: New file.
71607         * lib/strchrnul.c: New file.
71608
71609 2003-06-10  Bruno Haible  <bruno@clisp.org>
71610
71611         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
71612
71613 2003-06-07  Karl Berry  <karl@gnu.org>
71614
71615         * config/config.{guess,sub}: update from prep.
71616
71617 2003-06-07  Jim Meyering  <jim@meyering.net>
71618
71619         * modules/strtod: Use $(...) notation, not @...@ for
71620         AC_REPLACE'd variables.
71621         * modules/localcharset: Likewise.
71622
71623 2003-06-07  Jim Meyering  <jim@meyering.net>
71624
71625         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
71626         in place of my name in the copyright comment.
71627         Remove definition and uses of __P.
71628
71629         From coreutils.
71630         * lib/stat.c: Don't declare xmalloc explicitly.
71631         Instead, include "xalloc.h".
71632         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
71633         xrealloc, and xcalloc return values.
71634         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
71635         Improve comment.
71636         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
71637
71638 2003-06-07  Bruno Haible  <bruno@clisp.org>
71639
71640         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
71641         avoid AC_CONFIG_LINKS.
71642         * modules/fnmatch (Makefile.am): Use explicit creation rule for
71643         fnmatch.h, to avoid AC_CONFIG_LINKS.
71644         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
71645
71646 2003-06-07  Bruno Haible  <bruno@clisp.org>
71647
71648         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
71649         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
71650         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
71651         directory.
71652         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
71653         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
71654         directory.
71655
71656 2003-06-06  Jim Meyering  <jim@meyering.net>
71657
71658         Merge from coreutils.
71659         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
71660         Consolidate declarations and initializations of *_base* locals.
71661
71662         Merge from coreutils.
71663         This avoids a core dump on systems without GNU putenv,
71664         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
71665         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
71666         (unsetenv): New static function, from GNU libc.
71667         (rpl_putenv): Use it.
71668
71669         * lib/modechange.c: Remove trailing blanks.
71670
71671         Merge from coreutils.
71672         * lib/fsusage.c: Remove declaration of statfs.
71673         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
71674
71675         * lib/posixtm.c: Include <stdbool.h> unconditionally.
71676
71677 2003-06-06  Jim Meyering  <jim@meyering.net>
71678
71679         * lib/stdbool_.h: Renamed from stdbool.h.in.
71680
71681 2003-06-06  Jim Meyering  <jim@meyering.net>
71682             Bruno Haible  <bruno@clisp.org>
71683
71684         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
71685         Adjust Makefile.am snippet not to redirect directly to target.
71686         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
71687
71688 2003-06-05  Paul Eggert  <eggert@twinsun.com>
71689
71690         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
71691         mismatch, look in future quarters as well as past.  This fixes a
71692         bug when processing fall-backwards gaps immediately after a long
71693         period of daylight-saving time.
71694
71695         * lib/mktime.c: Assume freestanding C89 or better.
71696         (HAVE_LIMITS_H): Remove.  Assume it's 1.
71697         (__P): Remove; not used.
71698         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
71699         (mktime, not_equal_tm, print_tm, check_result,
71700         main): Use prototypes.  Use const * where appropriate.
71701         (main): Fix typo in testing code that uncovered by above changes.
71702         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
71703
71704 2003-06-04  Paul Eggert  <eggert@twinsun.com>
71705
71706         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
71707         locale.h, localeconv.  This merges changes from coreutils.
71708
71709         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
71710         It can be removed after the next Autoconf is released.
71711         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
71712         needed.
71713
71714 2003-06-04  Paul Eggert  <eggert@twinsun.com>
71715
71716         * lib/mktime.c: Fix Debian bug 177940
71717         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
71718         (localtime_offset): Now long int, not time_t, because we want it
71719         to be guaranteed to be signed.  All uses changed.
71720         (__mktime_internal): If overflow would occur when adding offset,
71721         don't add it.
71722
71723         Merge 'human' changes from coreutils.  Rewrite to support
71724         locale-specific notations like thousands separators.
71725         * lib/human.c: Simplify authorship notice.
71726         Include human.h immediately after config.h.
71727         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
71728         <limits.h>: Do not include, since human.h does.
71729         (SIZE_MAX, UINTMAX_MAX): New macros.
71730         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
71731         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
71732         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
71733         (power_letter): Renamed from suffixes.
71734         (generate_suffix_backwards): Remove.
71735         (adjust_value): Now takes int style (because of human.h changes)
71736         and long double value (for greater precision on some platforms).
71737         (group_number): New function.
71738         (human_readable): Use it.  Use integer options, not enum.
71739         Put the options before the sizes in the arg list.
71740         Support all the new options.
71741         The old human_readable function has been removed;
71742         use inttostr.h instead.
71743         (human_readable, default_block_size, humblock):
71744         Use uintmax_t, not int, for block sizes.
71745         (human_readable_inexact, block_size_types): Remove.
71746         (block_size_opts): New constant.
71747         (human_options): Renamed from human_block_size, with new signature
71748         that allows block sizes up to UINTMAX_MAX.  All callers changed.
71749         * lib/human.h: Add copyright and authorship notice.
71750         Include <limits.h> and <stdbool.h> unconditionally.
71751         (PARAMS): Remove.  All uses removed.
71752         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
71753         (enum human_inexact_style): Remove tag; now a nameless enum.
71754         (human_floor, human_ceiling, human_round_to_even): Now have
71755         values 2, 0, 1 rather than -1, 1, 0.
71756         (human_group_digits, human_suppress_point_zero, human_autoscale,
71757         human_base_1024, human_SI, human_B): New constants.
71758         (human_readable_inexact, human_block_size): Remove.
71759         (human_readable): Size args are now uintmax_t, not int.
71760         (human_options): New decl.
71761
71762         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
71763         unnecessary now that we assume C89 or better.  This change
71764         imported from coreutils.
71765
71766         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
71767         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
71768         in the 2003-05-30 sync from glibc.
71769
71770         .h files should stand alone, but we shouldn't include <sys/types.h>
71771         if we can get away with just <stddef.h>.
71772
71773         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
71774         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
71775         rather than <sys/types.h>, as we merely need size_t.
71776         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
71777         to get size_t.
71778         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
71779         Include <stdio.h>, to get FILE.
71780         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
71781         memcasecmp.h has included <stddef.h> and all we need is size_t.
71782         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
71783         our interface, instead of including <sys/types.h>
71784
71785 2003-06-04  Paul Eggert  <eggert@twinsun.com>
71786
71787         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
71788         now, as glibc mktime is buggy on non-glibc systems.
71789
71790 2003-06-03  Karl Berry  <karl@gnu.org>
71791
71792         * config/config.sub: update from prep.
71793
71794 2003-06-02  Paul Eggert  <eggert@twinsun.com>
71795
71796         [from coreutils]
71797         Fix some minor time-related bugs with POSIX time arguments.
71798         Some valid time stamps were being rejected (notably -1, and
71799         time stamps before 1900 on 64-bit hosts).  And some invalid
71800         time stamps were being accepted, e.g. September 31.
71801
71802         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
71803         that we can return (time_t) -1 successfully.
71804         * lib/posixtm.c: Likewise.
71805         [HAVE_STDBOOL_H]: Include <stdbool.h>.
71806         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
71807         (t): Remove static var.
71808         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
71809         of static var.  All uses changed.
71810         (year): Do not reject years before 1900; they can occur with
71811         64-bit time_t.
71812         (posix_time_parse): Do not check for out-of-range components;
71813         that is now the caller's responsibility, since our checks were
71814         only approximations.
71815         (posixtime): Use mktime to check for out-of-range components,
71816         since it knows them exactly.
71817         If mktime returns (time_t) -1, check whether an error actually occurred
71818         by invoking localtime on -1.
71819         (main) [TEST_POSIXTIME]: Check for input data errors, and report
71820         posixtime failures better.
71821         Improve the test data (in comments only).
71822
71823 2003-06-02  Karl Berry  <karl@gnu.org>
71824
71825         * config/mkinstalldirs (version): new variable.
71826         (--version): new option.
71827         (usage): improve message.
71828
71829 2003-05-30  Karl Berry  <karl@gnu.org>
71830
71831         * lib/mktime.c: update from libc.
71832
71833 2003-05-30  Bruno Haible  <bruno@clisp.org>
71834
71835         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
71836         * config/config.rpath: Upgrade to gettext-0.12.1.
71837
71838 2003-05-30  Bruno Haible  <bruno@clisp.org>
71839
71840         * m4/gettext.m4: Upgrade to gettext-0.12.1.
71841         * m4/nls.m4: New file, from gettext-0.12.1.
71842         * m4/po.m4: New file, from gettext-0.12.1.
71843         * m4/progtest.m4: Upgrade to gettext-0.12.1.
71844
71845 2003-05-30  Bruno Haible  <bruno@clisp.org>
71846
71847         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
71848         * lib/localcharset.h: Likewise.
71849         * lib/localcharset.c: Likewise.
71850
71851 2003-05-29  Karl Berry  <karl@gnu.org>
71852
71853         * config/config.rpath: update from gettext.
71854
71855 2003-05-28  Paul Eggert  <eggert@twinsun.com>
71856
71857         Assume the headers required for C89 freestanding compilers.
71858         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
71859         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
71860         * m4/human.m4 (gl_HUMAN): Likewise.
71861         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
71862         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
71863         * m4/userspec.m4 (gl_USERSPEC): Likewise.
71864         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
71865         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71866         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
71867
71868 2003-05-28  Paul Eggert  <eggert@twinsun.com>
71869
71870         Assume the headers required for C89 freestanding compilers.
71871         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
71872         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
71873         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
71874         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
71875         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
71876         define, since <limits.h> is guaranteed to do that.
71877         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
71878         * lib/exclude.c: Include <stdbool.h> unconditionally.
71879         * lib/tempname.c: Include <stddef.h> unconditionally.
71880         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
71881         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
71882         <stddef.h> does that.
71883         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
71884         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
71885         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
71886         needed.
71887         * lib/xstrtol.c: Likewise.
71888         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
71889         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
71890
71891         * lib/addext.c (addext): Use assignment rather than cast, to avoid
71892         warnings on some platforms.
71893
71894         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
71895         arbitrarily.
71896
71897 2003-05-26  Jim Meyering  <jim@meyering.net>
71898
71899         Merge in a change from coreutils:
71900         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
71901         that is guaranteed to be `no'.  Use `no_such_member' to indicate
71902         that condition, rather than `-1' which is slightly misleading.
71903         Change the name of the cache variable to have the gl_ prefix.
71904         Prompted by a patch from Richard Dawe for DJGPP.
71905
71906 2003-05-24  Karl Berry  <karl@gnu.org>
71907
71908         * config/config.guess: update from prep.
71909
71910 2003-05-22  Karl Berry  <karl@gnu.org>
71911
71912         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
71913
71914 2003-05-20  Karl Berry  <karl@gnu.org>
71915
71916         * config/config.guess: update from prep.
71917
71918 2003-05-18  Karl Berry  <karl@gnu.org>
71919
71920         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
71921         might actually be set by the user.
71922
71923         * config/depcomp, install-sh, mdate-sh: update from automake.
71924
71925 2003-05-17  Bruno Haible  <bruno@clisp.org>
71926
71927         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
71928         invalid expansion for AC_EGREP_CPP.
71929         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
71930         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
71931         Suggested by Akim Demaille <akim@epita.fr> in
71932         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
71933
71934 2003-05-12  Jim Meyering  <jim@meyering.net>
71935
71936         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
71937         the space-padded-by-default conversion specifiers, %e, %k, %l.
71938
71939 2003-05-12  Bruno Haible  <bruno@clisp.org>
71940
71941         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
71942         the string is longer than 4 KB.
71943
71944 2003-05-11  Karl Berry  <karl@gnu.org>
71945
71946         * config/config.{guess,sub}: update from prep.
71947
71948 2003-05-09  Bruno Haible  <bruno@clisp.org>
71949
71950         * modules/error: Add m4/strerror_r.m4 to file list.
71951
71952 2003-05-03  Bruno Haible  <bruno@clisp.org>
71953
71954         Upgrade to Unicode-4.0.
71955         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
71956         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
71957         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
71958         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
71959         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
71960         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
71961         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
71962         Change width of U+E0100..U+E01EF from 1 to 0.
71963
71964 2003-04-25  Jim Meyering  <jim@meyering.net>
71965
71966         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
71967         of type size_t, not int.
71968
71969 2003-04-25  Bruno Haible  <bruno@clisp.org>
71970
71971         * lib/copy-file.c: Include <stddef.h>, for size_t.
71972
71973 2003-04-21  Paul Eggert  <eggert@twinsun.com>
71974
71975         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
71976         code which expansion is under static control.  Patch imported from
71977         Akim Demaille's patch to Bison; see
71978         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
71979
71980 2003-04-14  Bruno Haible  <bruno@clisp.org>
71981
71982         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
71983
71984 2003-04-11  Jim Meyering  <jim@meyering.net>
71985
71986         Merge changes from Coreutils.
71987
71988         2003-03-22  Jim Meyering  <jim@meyering.net>
71989
71990         * lib/strftime.c (widen): Cast alloca return value to proper type.
71991
71992         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
71993
71994         From GNU libc.
71995         * lib/strftime.c (my_strftime): Handle very large width
71996         specifications for numeric values correctly.  Improve checks for
71997         overflow.
71998
71999         2003-01-19  Jim Meyering  <jim@meyering.net>
72000
72001         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
72002         definitions.
72003         (nl_get_alt_digit) [! defined my_strftime]: Define.
72004         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
72005         _nl_get_alt_digit and _nl_get_walt_digit.
72006
72007         * lib/strftime.c (my_strftime): Merge in locale-related changes from
72008         libc. These changes have no effect outside of _LIBC.
72009
72010 2003-04-10  Bruno Haible  <bruno@clisp.org>
72011
72012         * modules/findprog: New file.
72013         * MODULES.html.sh (func_all_modules): Add it.
72014
72015 2003-04-10  Bruno Haible  <bruno@clisp.org>
72016
72017         * m4/findprog.m4: New file.
72018         * m4/eaccess.m4: New file.
72019
72020 2003-04-10  Bruno Haible  <bruno@clisp.org>
72021
72022         * lib/findprog.h: New file, from GNU gettext.
72023         * lib/findprog.c: New file, from GNU gettext.
72024
72025 2003-04-05  Jim Meyering  <jim@meyering.net>
72026
72027         Merge changes from Coreutils.
72028
72029         * lib/exclude.h (PARAMS): Remove definition and uses.
72030         * lib/exclude.c: Remove uses of `PARAMS'.
72031
72032         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
72033         Add test-cases for DOS filenames. Declare program_name.
72034         (main): Set up program_name.  Patch by Rich Dawe.
72035
72036         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
72037         error from mntctl.
72038         Use mntctl's return value to drive the entry-processing loop, since
72039         we can't rely on the value of the vmt_length member in the last
72040         entry.  On some systems doing so could result in exhausting
72041         virtual memory.  Based in part on a patch from Mike Jetzer.
72042
72043 2003-04-04  Bruno Haible  <bruno@clisp.org>
72044
72045         * modules/linebreak: New file.
72046         * MODULES.html.sh (func_all_modules): Add it.
72047
72048 2003-04-04  Bruno Haible  <bruno@clisp.org>
72049
72050         * m4/linebreak.m4: New file.
72051
72052 2003-04-04  Bruno Haible  <bruno@clisp.org>
72053
72054         * lib/linebreak.h: New file, from GNU gettext.
72055         * lib/linebreak.c: New file, from GNU gettext with slight
72056         modifications.
72057         * lib/lbrkprop.h: New file, from GNU gettext.
72058
72059 2003-04-03  Bruno Haible  <bruno@clisp.org>
72060
72061         * modules/utf8-ucs4: New file.
72062         * modules/utf16-ucs4: New file.
72063         * modules/ucs4-utf8: New file.
72064         * modules/ucs4-utf16: New file.
72065         * MODULES.html.sh (func_all_modules): Add them.
72066
72067 2003-04-03  Bruno Haible  <bruno@clisp.org>
72068
72069         * m4/utf-ucs4.m4: New file.
72070         * m4/ucs4-utf.m4: New file.
72071
72072 2003-04-03  Bruno Haible  <bruno@clisp.org>
72073
72074         * lib/utf8-ucs4.h: New file, from GNU gettext.
72075         * lib/utf16-ucs4.h: New file, from GNU gettext.
72076         * lib/ucs4-utf8.h: New file, from GNU gettext.
72077         * lib/ucs4-utf16.h: New file, from GNU gettext.
72078
72079 2003-04-02  Bruno Haible  <bruno@clisp.org>
72080
72081         * modules/binary-io: New file.
72082         * MODULES.html.sh (func_all_modules): Add it.
72083
72084 2003-04-02  Bruno Haible  <bruno@clisp.org>
72085
72086         * lib/binary-io.h: New file, from GNU gettext.
72087
72088 2003-04-01  Bruno Haible  <bruno@clisp.org>
72089
72090         * modules/pathname: New file.
72091         * MODULES.html.sh (func_all_modules): Add it.
72092
72093 2003-04-01  Bruno Haible  <bruno@clisp.org>
72094
72095         * lib/pathname.h: New file, from GNU gettext.
72096         * lib/concatpath.c: New file, from GNU gettext.
72097
72098 2003-03-30  Bruno Haible  <bruno@clisp.org>
72099
72100         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
72101
72102 2003-03-30  Bruno Haible  <bruno@clisp.org>
72103
72104         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
72105         function chown() doesn't exist.
72106
72107 2003-03-28  Bruno Haible  <bruno@clisp.org>
72108
72109         * modules/copy-file: New file.
72110         * MODULES.html.sh (func_all_modules): Add it.
72111
72112 2003-03-28  Bruno Haible  <bruno@clisp.org>
72113
72114         * m4/copy-file.m4: New file.
72115
72116 2003-03-28  Bruno Haible  <bruno@clisp.org>
72117
72118         * lib/copy-file.h: New file, from GNU gettext.
72119         * lib/copy-file.c: New file, from GNU gettext.
72120
72121 2003-03-18  Jim Meyering  <jim@meyering.net>
72122
72123         * lib/quote.c (quote_n): Fix typo in comment.
72124
72125 2003-03-18  Bruno Haible  <bruno@clisp.org>
72126
72127         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
72128         checking.
72129         * m4/onceonly_2_57.m4: Likewise.
72130
72131 2003-03-17  Bruno Haible  <bruno@clisp.org>
72132
72133         * m4/onceonly.m4: Require autoconf 2.54 or newer.
72134         (m4_quote): Remove macro.
72135         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
72136
72137 2003-03-14  Jim Meyering  <jim@meyering.net>
72138
72139         Merge changes from Coreutils.
72140         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
72141         to be const, in order to avoid warnings.
72142         (obstack_room): Likewise.
72143         (obstack_empty_p): Likewise.
72144
72145 2003-03-14  Bruno Haible  <bruno@clisp.org>
72146
72147         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
72148         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
72149
72150 2003-03-13  Paul Eggert  <eggert@twinsun.com>
72151
72152         Merge changes from Bison.
72153         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
72154         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
72155         when compiling Bison 1.875's `bitset bset = obstack_alloc
72156         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
72157         * lib/hash.c: Include <stdbool.h> unconditionally.
72158
72159 2003-03-13  Paul Eggert  <eggert@twinsun.com>
72160
72161         * m4/onceonly.m4 (m4_quote): New macro.
72162         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
72163         Quote AC_FOREACH variable-expansions properly.
72164
72165 2003-03-13  Paul Eggert  <eggert@twinsun.com>
72166
72167         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
72168
72169 2003-03-09  Paul Eggert  <eggert@twinsun.com>
72170
72171         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
72172         Reported by Bruce Becker; see:
72173         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
72174
72175 2003-03-03  Paul Eggert  <eggert@twinsun.com>
72176             Bruno Haible  <bruno@clisp.org>
72177
72178         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
72179         Reported by John Hughes, see
72180         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
72181
72182 2003-02-20  Bruno Haible  <bruno@clisp.org>
72183
72184         * MODULES.html.sh (func_all_modules): Add poll.
72185
72186 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
72187
72188         * modules/poll: New file.
72189
72190 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
72191
72192         * lib/poll_.h: New file.
72193         * lib/poll.c: New file.
72194
72195 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
72196
72197         * m4/poll.m4: New file.
72198
72199 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
72200
72201         * modules/mathl: New file.
72202
72203 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
72204
72205         * lib/mathl.h: New file.
72206         * lib/acosl.c: New file.
72207         * lib/asinl.c: New file.
72208         * lib/atanl.c: New file.
72209         * lib/ceill.c: New file.
72210         * lib/cosl.c: New file.
72211         * lib/expl.c: New file.
72212         * lib/floorl.c: New file.
72213         * lib/frexpl.c: New file.
72214         * lib/ldexpl.c: New file.
72215         * lib/logl.c: New file.
72216         * lib/sincosl.c: New file.
72217         * lib/sinl.c: New file.
72218         * lib/sqrtl.c: New file.
72219         * lib/tanl.c: New file.
72220         * lib/trigl.c: New file.
72221         * lib/trigl.h: New file.
72222
72223 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
72224
72225         * m4/mathl.m4: New file.
72226
72227 2003-02-18  Bruno Haible  <bruno@clisp.org>
72228
72229         * MODULES.html.sh (func_all_modules): Add mathl.
72230
72231 2003-02-17  Bruno Haible  <bruno@clisp.org>
72232
72233         * modules/mkdtemp: New module.
72234         * MODULES.html.sh (func_all_modules): Add it.
72235
72236 2003-02-17  Bruno Haible  <bruno@clisp.org>
72237
72238         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
72239
72240 2003-02-17  Bruno Haible  <bruno@clisp.org>
72241
72242         * lib/mkdtemp.h: New file, from GNU gettext.
72243         * lib/mkdtemp.c: New file, from GNU gettext.
72244
72245 2003-02-02  Jim Meyering  <jim@meyering.net>
72246
72247         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
72248         e.g. glibc-2.2.93.
72249
72250 2003-01-31  Bruno Haible  <bruno@clisp.org>
72251
72252         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
72253         'rpl_rename'.
72254         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
72255         'rpl_strnlen'.
72256         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
72257         'rpl_strtod'.
72258         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
72259         'rpl_utime'.
72260
72261 2003-01-31  Bruno Haible  <bruno@clisp.org>
72262
72263         * lib/rename.c: #undef rename before defining rpl_rename.
72264         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
72265
72266 2003-01-30  Bruno Haible  <bruno@clisp.org>
72267
72268         * modules/vasnprintf, modules/vasprintf: New modules.
72269         * MODULES.html.sh (func_all_modules): Add them.
72270
72271 2003-01-30  Bruno Haible  <bruno@clisp.org>
72272
72273         * m4/signed.m4: New file, from GNU gettext.
72274         * m4/longdouble.m4: New file, from GNU gettext.
72275         * m4/wchar_t.m4: New file, from GNU gettext.
72276         * m4/wint_t.m4: New file, from GNU gettext.
72277         * m4/vasnprintf.m4: New file.
72278         * m4/vasprintf.m4: New file.
72279
72280 2003-01-30  Bruno Haible  <bruno@clisp.org>
72281
72282         * lib/printf-args.h: New file, from GNU gettext.
72283         * lib/printf-args.c: New file, from GNU gettext.
72284         * lib/printf-parse.h: New file, from GNU gettext.
72285         * lib/printf-parse.c: New file, from GNU gettext.
72286         * lib/vasnprintf.h: New file, from GNU gettext.
72287         * lib/vasnprintf.c: New file, from GNU gettext.
72288         * lib/asnprintf.c: New file, from GNU gettext.
72289         * lib/vasprintf.h: New file, from GNU gettext with modifications.
72290         * lib/vasprintf.c: New file, from GNU gettext.
72291         * lib/asprintf.c: New file, from GNU gettext.
72292
72293 2003-01-29  Bruno Haible  <bruno@clisp.org>
72294
72295         * modules/stpncpy: New module.
72296         * MODULES.html.sh (func_all_modules): Add it.
72297
72298 2003-01-29  Bruno Haible  <bruno@clisp.org>
72299
72300         * m4/stpncpy.m4: New file.
72301
72302 2003-01-29  Bruno Haible  <bruno@clisp.org>
72303
72304         * lib/stpncpy.h: New file, from GNU gettext with modifications.
72305         * lib/stpncpy.c: New file, from GNU gettext with modifications.
72306
72307 2003-01-28  Bruno Haible  <bruno@clisp.org>
72308
72309         * modules/c-ctype: New module.
72310         * MODULES.html.sh (func_all_modules): Add it.
72311
72312 2003-01-28  Bruno Haible  <bruno@clisp.org>
72313
72314         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
72315         Paul Eggert.
72316         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
72317         Paul Eggert.
72318
72319 2003-01-27  Bruno Haible  <bruno@clisp.org>
72320
72321         * modules/xsetenv: New module.
72322         * MODULES.html.sh (func_all_modules): Add it.
72323
72324 2003-01-27  Bruno Haible  <bruno@clisp.org>
72325
72326         * lib/xsetenv.h: New file, from GNU gettext.
72327         * lib/xsetenv.c: New file, from GNU gettext.
72328
72329 2003-01-23  Jim Meyering  <jim@meyering.net>
72330
72331         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
72332         from working on systems without dirfd (at least Irix and OSF1/Tru64).
72333
72334 2003-01-23  Bruno Haible  <bruno@clisp.org>
72335
72336         * modules/minmax: New module.
72337         * MODULES.html.sh (func_all_modules): Add it.
72338
72339 2003-01-23  Bruno Haible  <bruno@clisp.org>
72340
72341         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
72342         Eggert.
72343
72344 2003-01-22  Bruno Haible  <bruno@clisp.org>
72345
72346         * modules/exit: New module.
72347         * MODULES.html.sh (func_all_modules): Add it.
72348
72349 2003-01-22  Bruno Haible  <bruno@clisp.org>
72350
72351         * lib/exit.h: New file, from GNU gettext.
72352
72353 2003-01-19  Bruno Haible  <bruno@clisp.org>
72354
72355         * gnulib-tool: Recognize option --extract-maintainer.
72356         (func_get_maintainer): New function.
72357         * modules/*: Add Maintainer entry.
72358
72359 2003-01-16  Jim Meyering  <jim@meyering.net>
72360
72361         * m4/regex.m4: The `regex' struct is both input and output.
72362         Initialize it before each use.  Patch by Tim Waugh.
72363
72364 2003-01-16  Bruno Haible  <bruno@clisp.org>
72365
72366         * MODULES.html.sh: Add a table of contents. Add the module name as
72367         leftmost column. Add hyperlinks.
72368
72369 2003-01-15  Bruno Haible  <bruno@clisp.org>
72370
72371         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
72372
72373 2003-01-15  Bruno Haible  <bruno@clisp.org>
72374
72375         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
72376         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
72377         suffix.
72378
72379 2003-01-15  Bruno Haible  <bruno@clisp.org>
72380
72381         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
72382
72383 2003-01-15  Bruno Haible  <bruno@clisp.org>
72384
72385         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
72386         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
72387
72388 2003-01-14  Jim Meyering  <jim@meyering.net>
72389
72390         * lib/same.c (same_name): Tweak a comment.
72391
72392 2003-01-14  Bruno Haible  <bruno@clisp.org>
72393
72394         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
72395         when a string comparison is sufficient.
72396
72397 2003-01-14  Bruno Haible  <bruno@clisp.org>
72398
72399         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
72400         'unsigned int'.
72401
72402 2003-01-14  Bruno Haible  <bruno@clisp.org>
72403
72404         * lib/hash-pjw.c: Add comment about low quality of this function.
72405
72406 2003-01-13  Bruno Haible  <bruno@clisp.org>
72407
72408         * modules/stpcpy: Distribute lib/stpcpy.h.
72409         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
72410
72411 2003-01-13  Bruno Haible  <bruno@clisp.org>
72412
72413         * modules/*: Add a description.
72414         * modules/strpbrk: Fix Makefile.am snippet.
72415         * modules/strtoimax: Fix dependencies.
72416         * modules/strtoumax: Likewise.
72417
72418 2003-01-13  Bruno Haible  <bruno@clisp.org>
72419
72420         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
72421         * modules/alloca (Makefile.am): All object files depend on alloca.h.
72422         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
72423
72424 2003-01-13  Bruno Haible  <bruno@clisp.org>
72425
72426         * gnulib-tool (func_create_testdir): Store config/* files in the main
72427         directory.
72428         * config.rpath: Move to ...
72429         * config/config.rpath: ... here.
72430         * modules/gettext: Contains config/config.rpath, not config.rpath.
72431         * modules/iconv: Likewise.
72432
72433 2003-01-12  Paul Eggert  <eggert@twinsun.com>
72434
72435         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
72436         to avoid collisions with libcurses and libreadline.
72437
72438         * m4/getstr.m4: Remove.
72439         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
72440
72441 2003-01-12  Paul Eggert  <eggert@twinsun.com>
72442
72443         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
72444         to avoid collisions with libcurses and libreadline.
72445
72446         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
72447         * lib/getstr.h, getstr.c: Remove.
72448         * lib/getline.c: Include "getline.h", to check interface.
72449         Move body of old getstr.c here: this defines MIN_CHUNK and
72450         declares getdelim2, which is renamed from getstr.
72451         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
72452
72453         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
72454         All uses changed.
72455         * lib/linebuffer.h: Likewise.
72456         (readline): Remove backward-compatibility macro.
72457
72458 2003-01-12  Paul Eggert  <eggert@twinsun.com>
72459
72460         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
72461         to avoid collisions with libcurses and libreadline.
72462         * getstr: Remove.
72463         * MODULES.html.sh: Remove getstr.
72464         * modules/getline: Depend on unlocked-io, not getstr.
72465
72466 2003-01-12  Jim Meyering  <jim@meyering.net>
72467
72468         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
72469
72470 2003-01-10  Bruno Haible  <bruno@clisp.org>
72471
72472         * modules/alloca: Change Makefile.am requirements. Simplify Include
72473         requirements. Add lib/alloca_.h to file list.
72474
72475 2003-01-10  Bruno Haible  <bruno@clisp.org>
72476
72477         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
72478
72479 2003-01-10  Bruno Haible  <bruno@clisp.org>
72480
72481         * lib/alloca_.h: New file.
72482         * lib/getdate.y: Unconditionally include alloca.h.
72483         * lib/makepath.c: Likewise.
72484         * lib/setenv.c: Likewise.
72485         * lib/userspec.c: Likewise.
72486
72487 2003-01-09  Karl Berry  <karl@gnu.org>
72488
72489         * MODULES.html.sh: include `dirname $0` in PATH, to find
72490         gnulib-tool.
72491
72492 2003-01-09  Bruno Haible  <bruno@clisp.org>
72493
72494         * modules/stdbool: Change configure.ac, Makefile.am requirements.
72495         Simplify Include requirements. Add lib/stdbool.h.in to file list.
72496
72497 2003-01-09  Bruno Haible  <bruno@clisp.org>
72498
72499         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
72500
72501 2003-01-09  Bruno Haible  <bruno@clisp.org>
72502
72503         * lib/stdbool.h.in: New file.
72504
72505 2003-01-09  Bruno Haible  <bruno@clisp.org>
72506
72507         * gnulib-tool (func_all_modules): Ignore files ending in ~.
72508         * MODULES.html.sh: Likewise.
72509
72510 2003-01-08  Jim Meyering  <jim@meyering.net>
72511
72512         * lib/full-write.c: Undefine and define-away `const' after inclusion
72513         of errno.h, not before.  Suggestion from Bruno Haible.
72514
72515 2003-01-08  Bruno Haible  <bruno@clisp.org>
72516
72517         * modules/full-read: Depend on full-write.
72518
72519 2003-01-08  Bruno Haible  <bruno@clisp.org>
72520
72521         * lib/safe-read.c: Include specification header first, to ensure its
72522         selfcontainedness.
72523         * lib/full-write.c: Likewise.
72524
72525 2003-01-07  Jim Meyering  <jim@meyering.net>
72526
72527         * lib/full-write.c: Rework so that it may serve to define full_read,
72528         too.
72529         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
72530
72531 2003-01-07  Bruno Haible  <bruno@clisp.org>
72532
72533         * lib/strtoimax.c: Include <stdint.h> as an alternative to
72534         <inttypes.h>.
72535         * lib/xstrtol.h: Likewise.
72536         * lib/xstrtoimax.c: Likewise.
72537         * lib/xstrtoumax.c: Likewise.
72538         * lib/human.h: Likewise.
72539
72540         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
72541         on systems that have <inttypes.h> but not <stdint.h>.
72542
72543 2003-01-07  Bruno Haible  <bruno@clisp.org>
72544
72545         * MODULES.html.sh: Add copyright notice.
72546         (missed_files): Omit CVS directory entries.
72547         (func_module): Make it work with sed-3.02.
72548         * MODULES.txt: Remove file.
72549
72550 2003-01-06  Jim Meyering  <jim@meyering.net>
72551
72552         * lib/version-etc.c: Update year in translatable copyright string.
72553
72554 2003-01-03  Karl Berry  <karl@gnu.org>
72555
72556         * config/config.{guess,sub}: update from prep.
72557
72558 2003-01-02  Karl Berry  <karl@gnu.org>
72559
72560         * doc/COPYING.DOC: belatedly updated to 1.2.
72561
72562 2003-01-01  Karl Berry  <karl@gnu.org>
72563
72564         * gnulib-tool (func_verify_module): report module name $module in
72565         error message, not $1.
72566         * gnulib-tool (create-testdir): don't complain if destdir couldn't
72567         be created, only if it doesn't exist.
72568         * gnulib-tool (last_checkin_date): don't expand the $Date here.
72569
72570 2002-12-31  Paul Eggert  <eggert@twinsun.com>
72571
72572         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
72573
72574 2002-12-31  Paul Eggert  <eggert@twinsun.com>
72575
72576         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
72577         memcmp if strcoll doesn't work.
72578
72579 2002-12-31  Bruno Haible  <bruno@clisp.org>
72580
72581         * lib/utime.c (utime_null): No need to call ftruncate if the file was
72582         nonempty.
72583
72584 2002-12-31  Bruno Haible  <bruno@clisp.org>
72585
72586         * lib/memcoll.c (STRCOLL): New macro.
72587         (memcoll): Use it.
72588
72589 2002-12-31  Bruno Haible  <bruno@clisp.org>
72590
72591         * lib/localcharset.h: New file.
72592         * lib/localcharset.c: Include it.
72593         * lib/unicodeio.c: Likewise.
72594
72595 2002-12-31  Bruno Haible  <bruno@clisp.org>
72596
72597         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
72598         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
72599
72600 2002-12-31  Bruno Haible  <bruno@clisp.org>
72601
72602         * lib/getline.h: Include <stddef.h>, for size_t.
72603
72604         * lib/unicodeio.h: Include <stddef.h>, for size_t.
72605         * lib/unicodeio.c: Don't include <stddef.h>.
72606
72607 2002-12-31  Bruno Haible  <bruno@clisp.org>
72608
72609         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
72610         HAVE_TM_ZONE.
72611
72612 2002-12-24  Karl Berry  <karl@gnu.org>
72613
72614         * config/config.guess: update from prep.
72615
72616 2002-12-24  Bruno Haible  <bruno@clisp.org>
72617
72618         General infrasructure.
72619         * m4/README: Rewritten.
72620         * m4/onceonly.m4: New file.
72621         * m4/onceonly_2_57.m4: New file.
72622
72623         Module atexit.
72624         * m4/atexit.m4: New file.
72625
72626         Module strtod.
72627         * m4/strtod.m4: New file.
72628
72629         Module strtol.
72630         * m4/strtol.m4: New file.
72631
72632         Module strtoul.
72633         * m4/strtoul.m4: New file.
72634
72635         Module memchr.
72636         * m4/memchr.m4: New file.
72637
72638         Module memcmp.
72639         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
72640         (jm_FUNC_MEMCMP): Invoke it.
72641
72642         Module memcpy.
72643         * m4/memcpy.m4: New file.
72644
72645         Module memmove.
72646         * m4/memmove.m4: New file.
72647
72648         Module memset.
72649         * m4/memset.m4: New file.
72650
72651         Module strcspn.
72652         * m4/strcspn.m4: New file.
72653
72654         Module strpbrk.
72655         * m4/strpbrk.m4: New file.
72656
72657         Module strstr.
72658         * m4/strstr.m4: New file.
72659
72660         Module strerror.
72661         * m4/strerror.m4: New file.
72662
72663         Module mktime.
72664         * m4/mktime.m4: Renamed from jm-mktime.m4.
72665         (gl_PREREQ_MKTIME): New macro.
72666         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
72667
72668         Module malloc.
72669         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
72670         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
72671         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
72672
72673         Module realloc.
72674         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
72675         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
72676         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
72677
72678         Module strftime.
72679         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
72680         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
72681         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
72682         gl_TM_GMTOFF.
72683         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
72684
72685         Module xalloc.
72686         * m4/xalloc.m4: New file.
72687
72688         Module alloca.
72689         * m4/alloca.m4: New file.
72690
72691         Module putenv.
72692         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
72693         (jm_FUNC_PUTENV): Invoke it.
72694
72695         Module setenv.
72696         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
72697         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
72698         when invoked twice.
72699         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
72700         gt_FUNC_SETENV.
72701
72702         Module memrchr.
72703         * m4/memrchr.m4: New file.
72704
72705         Module stpcpy.
72706         * m4/stpcpy.m4: New file.
72707
72708         Module strcase.
72709         * m4/strcase.m4: New file.
72710
72711         Module strdup.
72712         * m4/strdup.m4: New file.
72713
72714         Module strnlen.
72715         * m4/strnlen.m4: New file.
72716
72717         Module strndup.
72718         * m4/strndup.m4: New file.
72719
72720         Module xstrtod.
72721         * m4/xstrtod.m4: New file.
72722
72723         Module xstrtol.
72724         * m4/xstrtol.m4: New file.
72725
72726         Module getdate.
72727         * m4/getdate.m4: New file.
72728
72729         Module unlocked-io.
72730         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
72731         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
72732         * m4/jm-glibc-io.m4n: Remove file.
72733
72734         Module long-options.
72735         * m4/long-options.m4: New file.
72736
72737         Module md5.
72738         * m4/md5.m4: New file.
72739
72740         Module sha.
72741         * m4/sha.m4: New file.
72742
72743         Module getstr.
72744         * m4/getstr.m4: New file.
72745
72746         Module getline.
72747         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
72748         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
72749         <sys/types.h>, for size_t. Use the function name gnu_getline, not
72750         simply getline. Infoke gl_PREREQ_GETLINE.
72751
72752         Module obstack.
72753         * m4/obstack.m4: New file.
72754
72755         Module hash.
72756         * m4/hash.m4: New file.
72757
72758         Module readtokens.
72759         * m4/readtokens.m4: New file.
72760
72761         Module strverscmp.
72762         * m4/strverscmp.m4: New file.
72763
72764         Module stdbool.
72765         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
72766         OSF/1.
72767
72768         Module strtoll.
72769         * m4/strtoll.m4: New file.
72770
72771         Module strtoull.
72772         * m4/strtoull.m4: New file.
72773
72774         Module strtoimax.
72775         * m4/strtoimax.m4: New file.
72776
72777         Module strtoumax.
72778         * m4/strtoumax.m4: New file.
72779
72780         Module xstrtoimax.
72781         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
72782         jm_AC_PREREQ_XSTRTOIMAX.
72783         Moved the strtol prerequisites to strtol.m4.
72784         Moved the strtoll prerequisites to strtoll.m4.
72785         Moved the strtoimax prerequisites to strtoimax.m4.
72786
72787         Module xstrtoumax.
72788         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
72789         jm_AC_PREREQ_XSTRTOUMAX.
72790         Moved the strtoul prerequisites to strtoul.m4.
72791         Moved the strtoull prerequisites to strtoull.m4.
72792         Moved the strtoumax prerequisites to strtoumax.m4.
72793
72794         Module chown.
72795         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
72796         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
72797
72798         Module dup2.
72799         * m4/dup2.m4: New file.
72800
72801         Module ftruncate.
72802         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
72803         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
72804
72805         Module getgroups.
72806         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
72807         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
72808
72809         Module gettimeofday.
72810         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
72811         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
72812         gl_PREREQ_GETTIMEOFDAY.
72813
72814         Module mkdir.
72815         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
72816         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
72817
72818         Module mkstemp.
72819         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
72820         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
72821         jm_AC_TYPE_UINTMAX_T.
72822         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
72823
72824         Module stat.
72825         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
72826         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
72827
72828         Module lstat.
72829         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
72830         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
72831
72832         Module timespec.
72833         * m4/timespec.m4 (gl_TIMESPEC): New macro.
72834         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
72835         * m4/st_mtim.m4: Indentation.
72836
72837         Module nanosleep.
72838         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
72839         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
72840         gl_PREREQ_NANOSLEEP.
72841
72842         Module regex.
72843         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
72844         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
72845         (gl_REGEX): New macro.
72846
72847         Module rename.
72848         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
72849         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
72850
72851         Module rmdir.
72852         * m4/rmdir.m4: New file.
72853
72854         Module utime.
72855         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
72856         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
72857         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
72858
72859         Module dirname.
72860         * m4/dirname.m4: New file.
72861
72862         Module getopt.
72863         * m4/getopt.m4: New file.
72864
72865         Module unistd-safer.
72866         * m4/unistd-safer.m4: New file.
72867
72868         Module fnmatch.
72869         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
72870         declaration.
72871         (gl_PREREQ_FNMATCH_EXTRA): New macro.
72872         (gl_FUNC_FNMATCH_POSIX): New macro.
72873         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
72874         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
72875         simply fnmatch.
72876
72877         Module exclude.
72878         * m4/exclude.m4: New file.
72879
72880         Module human.
72881         * m4/human.m4: New file.
72882
72883         Module acl.
72884         * m4/acl.m4: Nop.
72885
72886         Module backupfile.
72887         * m4/backupfile.m4: New file.
72888         * m4/d-ino.m4: Indentation.
72889
72890         Module fsusage.
72891         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
72892         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
72893         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
72894
72895         Module dirfd.
72896         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
72897         requirements.
72898
72899         Module euidaccess.
72900         * m4/euidaccess.m4: New file.
72901
72902         Module file-type.
72903         * m4/file-type.m4: New file.
72904
72905         Module fileblocks.
72906         * m4/fileblocks.m4: New file.
72907
72908         Module filemode.
72909         * m4/filemode.m4: New file.
72910
72911         Module isdir.
72912         * m4/isdir.m4: New file.
72913
72914         Module lchown.
72915         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
72916         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
72917
72918         Module makepath.
72919         * m4/makepath.m4: New file.
72920
72921         Module modechange.
72922         * m4/modechange.m4: New file.
72923
72924         Module mountlist.
72925         * m4/mountlist.m4: New file.
72926         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
72927         Indentation.
72928
72929         Module path-concat.
72930         * m4/path-concat.m4: New file.
72931
72932         Module pathmax.
72933         * m4/pathmax.m4: New file.
72934
72935         Module same.
72936         * m4/same.m4: New file.
72937
72938         Module save-cwd.
72939         * m4/save-cwd.m4: New file.
72940
72941         Module savedir.
72942         * m4/savedir.m4: New file.
72943
72944         Module xgetcwd.
72945         * m4/xgetcwd.m4: New file.
72946         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
72947
72948         Module xreadlink.
72949         * m4/xreadlink.m4: New file.
72950
72951         Module safe-read.
72952         * m4/safe-read.m4: New file.
72953
72954         Module safe-write.
72955         * m4/safe-write.m4: New file.
72956
72957         Module closeout.
72958         * m4/closeout.m4: New file.
72959
72960         Module stdio-safer.
72961         * m4/stdio-safer.m4: New file.
72962
72963         Module getpass.
72964         * m4/getpass.m4: New file.
72965
72966         Module getugroups.
72967         * m4/getugroups.m4: New file.
72968
72969         Module group-member.
72970         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
72971         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
72972
72973         Module idcache.
72974         * m4/idcache.m4: New file.
72975
72976         Module userspec.
72977         * m4/userspec.m4: New file.
72978
72979         Module gettime.
72980         * m4/clock_time.m4: New file.
72981         * m4/gettime.m4: New file.
72982
72983         Module settime.
72984         * m4/settime.m4: New file.
72985
72986         Module posixtm.
72987         * m4/posixtm.m4: New file.
72988
72989         Module gethostname.
72990         * m4/gethostname.m4: New file.
72991
72992         Module canon-host.
72993         * m4/canon-host.m4: New file.
72994
72995         Module gettext.
72996         * m4/codeset.m4: New file, from gettext-0.11.5.
72997         * m4/gettext.m4: New file, from gettext-0.11.5.
72998         * m4/glibc21.m4: New file, from gettext-0.11.5.
72999         * m4/iconv.m4: New file, from gettext-0.11.5.
73000         * m4/intdiv0.m4: New file, from gettext-0.11.5.
73001         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
73002         * m4/inttypes.m4: New file, from gettext-0.11.5.
73003         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
73004         * m4/isc-posix.m4: New file, from gettext-0.11.5.
73005         * m4/lcmessage.m4: New file, from gettext-0.11.5.
73006         * m4/lib-ld.m4: New file, from gettext-0.11.5.
73007         * m4/lib-link.m4: New file, from gettext-0.11.5.
73008         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
73009         * m4/progtest.m4: New file, from gettext-0.11.5.
73010         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
73011         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
73012         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
73013
73014         Module localcharset.
73015         * m4/localcharset.m4: New file.
73016
73017         Module hard-locale.
73018         * m4/hard-locale.m4: New file.
73019
73020         Module mbswidth.
73021         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
73022         onceonly macros.
73023         * m4/mbrtowc.m4: Add comment.
73024
73025         Module memcasecmp.
73026         * m4/memcasecmp.m4: New file.
73027
73028         Module memcoll.
73029         * m4/memcoll.m4: New file.
73030
73031         Module unicodeio.
73032         * m4/unicodeio.m4: New file.
73033
73034         Module rpmatch.
73035         * m4/rpmatch.m4: New file.
73036
73037         Module yesno.
73038         * m4/yesno.m4: New file.
73039
73040         Module exitfail.
73041         * m4/exitfail.m4: New file.
73042
73043         Module c-stack.
73044         * m4/c-stack.m4 (gl_C_STACK): New macro.
73045         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
73046
73047         Module error.
73048         * m4/error.m4 (gl_ERROR): New macro.
73049         (jm_PREREQ_ERROR): Use onceonly macros.
73050
73051         Module fatal.
73052         * m4/fatal.m4: New file.
73053
73054         Module getloadavg.
73055         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
73056         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
73057
73058         Module getpagesize.
73059         * m4/getpagesize.m4: New file.
73060
73061         Module getusershell.
73062         * m4/getusershell.m4: New file.
73063
73064         Module physmem.
73065         * m4/physmem.m4: New file.
73066
73067         Module posixver.
73068         * m4/posixver.m4: New file.
73069
73070         Module quotearg.
73071         * m4/quotearg.m4: New file.
73072
73073         Module quote.
73074         * m4/quote.m4: New file.
73075
73076         Module readutmp.
73077         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
73078
73079         Module sig2str.
73080         * m4/sig2str.m4: New file.
73081
73082         Other.
73083         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
73084         ulonglong.m4.
73085         * m4/intmax_t.m4: New file.
73086         * m4/d-type.m4: Indentation.
73087         * m4/jm-macros.m4: Update.
73088         * m4/prereq.m4 (jm_PREREQ): Update.
73089         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
73090         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
73091         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
73092         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
73093         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
73094         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
73095         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
73096         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
73097         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
73098         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
73099         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
73100         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
73101         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
73102         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
73103         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
73104         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
73105         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
73106         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
73107         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
73108
73109 2002-12-24  Bruno Haible  <bruno@clisp.org>
73110
73111         * MODULES.txt: Update according to m4/ changes.
73112
73113         Module gettext.
73114         * config.rpath: New file, from gettext-0.11.5.
73115
73116         * modules/*: New module descriptions.
73117         * gnulib-tool: New file.
73118         * MODULES.html.sh: New file.
73119
73120 2002-12-21  Karl Berry  <karl@gnu.org>
73121
73122         * doc/fdl.texi: update to version 1.2.
73123
73124 2002-12-19  Karl Berry  <karl@gnu.org>
73125
73126         * config/config.guess: update from prep.
73127
73128 2002-12-18  Bruno Haible  <bruno@clisp.org>
73129
73130         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
73131         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
73132
73133 2002-12-17  Bruno Haible  <bruno@clisp.org>
73134
73135         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
73136         stdlib.h, string.h.
73137
73138 2002-12-17  Bruno Haible  <bruno@clisp.org>
73139
73140         * lib/canon-host.c (strdup): Remove unused declaration.
73141
73142         * lib/fsusage.c: Include full_read.h.
73143         (get_fs_usage): Use full_read instead of safe_read.
73144
73145         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
73146
73147 2002-12-12  Karl Berry  <karl@gnu.org>
73148
73149         * config/config.guess: update from prep.
73150
73151 2002-12-11  Bruno Haible  <bruno@clisp.org>
73152
73153         * m4/setenv.m4: New file, from gettext-0.11.5.
73154
73155 2002-12-11  Bruno Haible  <bruno@clisp.org>
73156
73157         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
73158         not unsetenv().
73159         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
73160         modifications:
73161
73162         2002-12-11  Bruno Haible  <bruno@clisp.org>
73163
73164                 * setenv.c (alloca): Fall back to malloc.
73165                 (freea): New macro.
73166                 (setenv): Use freea() to free memory allocated with alloca().
73167
73168         2002-11-13  Bruno Haible  <bruno@clisp.org>
73169
73170                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
73171                 function declarations.
73172                 * unsetenv.c (unsetenv): Likewise.
73173
73174         2002-03-04  Bruno Haible  <bruno@clisp.org>
73175
73176                 Portability to AIX 4.3.3.
73177                 * unsetenv.c: New file, extracted from setenv.c.
73178                 * setenv.c: Move the unsetenv() function to unsetenv.c.
73179
73180         2001-12-20  Bruno Haible  <bruno@clisp.org>
73181
73182                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
73183                 use malloc instead. For SunOS 4.
73184
73185         2001-12-11  Bruno Haible  <bruno@clisp.org>
73186
73187                 * setenv.c: Declare alloca.
73188                 (compar_fn_t): New typedef.
73189                 (KNOWN_VALUE, STORE_VALUE): Use it.
73190
73191         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
73192         setenv.h.
73193
73194 2002-12-10  Paul Eggert  <eggert@twinsun.com>
73195
73196         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
73197         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
73198         Choose values that are less likely to collide with system fnmatch
73199         options.
73200         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
73201         defined (e.g., a pure POSIX system).
73202         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
73203         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
73204
73205 2002-12-06  Paul Eggert  <eggert@twinsun.com>
73206
73207         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
73208         a pain in practice to deal with generated m4 files.  This change
73209         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
73210
73211         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
73212         and jm-glibc-io.m4, as they are no longer a special case.
73213         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
73214         kludge and the auto-generation stuff.  Check only whether the
73215         functions are declared, not whether they exist, since older hosts
73216         that don't declare the functions can't use the optimization anyway.
73217
73218 2002-12-06  Jim Meyering  <jim@meyering.net>
73219
73220         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
73221
73222         Merge in changes from libc's misc/error.c, in preparation
73223         for the merge of gnulib's changes back into libc.
73224
73225         * lib/error.c (_): Define only if not already defined.
73226         Move definition to follow all #include directives.
73227         Include unlocked-io.h only if !_LIBC.
73228         [_LIBC]: Include <libio/libioP.h>.
73229         [USE_IN_LIBIO]: Include <libio/iolibio.h>
73230         (fflush): Tweak definition to use INTUSE.
73231         (putc): Define.
73232
73233 2002-12-05  Paul Eggert  <eggert@twinsun.com>
73234
73235         * lib/alloca.c [defined emacs]: Include "lisp.h".
73236         (xalloc_die) [defined emacs]: New macro.
73237         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
73238         [! defined emacs]: Include <xalloc.h>.
73239         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
73240         (pointer): Typedef to POINTER_TYPE *.
73241         (malloc): Remove decl; we now always use xmalloc.
73242         (alloca): Use old-style definition, since Emacs needs this.
73243         Check for arithmetic overflow when computing combined size.
73244
73245 2002-12-04  Paul Eggert  <eggert@twinsun.com>
73246
73247         Do not generate unlocked-io.h automatically, since it's easier to
73248         maintain it by hand.
73249
73250         * lib/unlocked-io.h: New file, from GNU diffutils,
73251         but with proper copyright notice and attribution.
73252         * lib/gen-uio: Remove.
73253         * lib/Makefile.am: Add copyright notice.
73254         (libfetish_a_SOURCES): Add unlocked-io.h.
73255         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
73256         (DISTCLEANFILES, io_functions): Remove macros.
73257         (EXTRA_DIST): Remove gen_uio.
73258         (unlocked-io.h): Remove rule.
73259
73260 2002-12-04  Jim Meyering  <jim@meyering.net>
73261
73262         Reflect the fact that stat.c and lstat.c are no longer generated.
73263         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
73264         (DISTCLEANFILES): Likewise.
73265         (EXTRA_DIST): Likewise.
73266         (all_local): Don't depend on stat.c or lstat.c.
73267         (stat.c, lstat.c): Remove rules.
73268         (EXTRA_DIST): Remove xstat.in.
73269
73270         * lib/xstat.in: Remove file.  Contents moved into stat.c.
73271         * lib/stat.c: New file.  Contents mostly from xstat.in.
73272         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
73273         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
73274
73275         * lib/safe-read.c: Rework so that it may serve to define safe_write,
73276         too.
73277         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
73278
73279 2002-12-03  Jim Meyering  <jim@meyering.net>
73280
73281         * lib/safe-read.c, safe-write.c: Change variable names and comments,
73282         but not semantics, to minimize the differences between these two files.
73283         (safe_read): Change comment to mention SAFE_READ_ERROR.
73284
73285         * lib/safe-read.c (IS_EINTR): Define.
73286         (safe_read): Use IS_EINTR in place of in-function cpp directives.
73287
73288 2002-12-02  Jim Meyering  <jim@meyering.net>
73289
73290         * lib/safe-read.c (EINTR): Define.
73291         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
73292         (INT_MAX): Provide fallback.
73293         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
73294
73295         * lib/safe-read.h (SAFE_READ_ERROR): Define.
73296
73297 2002-12-02  Bruno Haible  <bruno@clisp.org>
73298
73299         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
73300         Define, taken from safe-read.c.
73301         (INT_MAX): Provide fallback.
73302         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
73303         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
73304
73305         * lib/safe-read.c (EINTR): Remove definition.
73306         (safe_read): Don't use EINTR if it is absent.
73307
73308 2002-12-01  Jim Meyering  <jim@meyering.net>
73309
73310         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
73311         zero.
73312         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
73313
73314 2002-11-27  Paul Eggert  <eggert@twinsun.com>
73315
73316         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
73317         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
73318         with `if (! (value < limit)) abort ();', for readability.
73319
73320 2002-11-26  Karl Berry  <karl@gnu.org>
73321
73322         * lib/strdup.c: copy from libc again, with jim's ok.
73323         * lib/.cppi-disable: re-add strdup.c
73324
73325 2002-11-25  Karl Berry  <karl@gnu.org>
73326
73327         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
73328         instead of "strtol.c".
73329
73330 2002-11-25  Karl Berry  <karl@gnu.org>
73331
73332         * config/install-sh: update from automake for variable quoting, $0 in
73333         error msgs, etc.
73334
73335         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
73336         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
73337         entry.
73338
73339 2002-11-25  Jim Meyering  <jim@meyering.net>
73340
73341         * lib/mktime.c: Sync from libc, now that it has the latest fix.
73342
73343 2002-11-24  Karl Berry  <karl@gnu.org>
73344
73345         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
73346         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
73347
73348 2002-11-24  Jim Meyering  <jim@meyering.net>
73349
73350         Update from coreutils:
73351
73352         * lib/mktime.c: Merge in changes from libc.
73353
73354         Avoid a link-time failure on some Linux systems.
73355         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
73356         (otherwise).
73357         (__mon_yday): Declare with the STATIC attribute.
73358         (__mktime_internal): Likewise.
73359         Based on a report from Greg Schafer.
73360
73361 2002-11-23  Jim Meyering  <jim@meyering.net>
73362
73363         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
73364         Use `unsigned', not `int', as type of index.
73365
73366         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
73367
73368         * lib/fsusage.c: Remove unneeded parentheses around operands of
73369         `defined'.
73370
73371 2002-11-22  Paul Eggert  <eggert@twinsun.com>
73372
73373         * lib/quotearg.h: Allow multiple inclusion by surrounding with
73374         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
73375         so that we can be included first.
73376         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
73377         * lib/quotearg.c: Include quotearg.h immediately after config.h.
73378         No need to include stddef.h or sys/types.h any more.
73379         Surround local include files with "", not "<>".
73380         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
73381         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
73382         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
73383         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
73384         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
73385         (ISPRINT): Remove; no longer needed now that we assume C89.
73386
73387         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
73388         Preserve errno.
73389
73390         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
73391         quotearg_char): Use SIZE_MAX rather than
73392         (size_t) -1 when we are talking about "infinity".
73393
73394         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
73395
73396 2002-11-22  Paul Eggert  <eggert@twinsun.com>
73397
73398         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
73399         hint that one should use `if (! x) abort ();' rather than `assert
73400         (x);', and anyway it's one less thing to worry about configuring.
73401         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
73402         hash_rehash, hash_insert): Use abort rather than assert.
73403
73404 2002-11-22  Bruno Haible  <bruno@clisp.org>
73405
73406         * lib/safe-read.h: Assume C89. Add comments.
73407         (safe_read): Change return type to size_t.
73408         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
73409         byte counts > SSIZE_MAX correctly.
73410         * lib/safe-write.h: New file.
73411         * lib/safe-write.c: New file.
73412         * lib/full-read.h: New file.
73413         * lib/full-read.c: New file.
73414         * lib/full-write.h: Assume C89. Add comments.
73415         * lib/full-write.c: Include safe-write.h.
73416         (full_write): Rewritten to use safe_write.
73417         Suggested by Jim Meyering and Paul Eggert.
73418
73419 2002-11-21  Jim Meyering  <jim@meyering.net>
73420
73421         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
73422
73423         Merge in changes from the coreutils.
73424
73425         2002-09-25  Paul Eggert  <eggert@twinsun.com>
73426         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
73427         <stdint.h>.
73428         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
73429         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
73430         int.  Work more efficiently if X is the same width as uintmax_t.
73431         Do not compare X to -1, to avoid bogus compiler warning.
73432         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
73433         Don't assume that f_frsize and f_bsize are the same type.
73434
73435         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
73436         warning on FreeBSD.
73437
73438         * lib/makepath.c (make_path): Restore umask *before* creating the final
73439         component.
73440         (make_path): Minor reformatting.
73441
73442         * lib/xmalloc.c: Adjust to work with new autoconf macros,
73443         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
73444         HAVE_MALLOC/HAVE_REALLOC.
73445
73446         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
73447         dummy ones.  At least on GNU/Linux systems, `auto' means something
73448         else.
73449         From Michael Stone.
73450
73451 2002-11-21  Bruno Haible  <bruno@clisp.org>
73452
73453         Remove case insensitive option matching.
73454         * lib/argmatch.h (argcasematch): Remove declaration.
73455         (ARGCASEMATCH): Remove macro.
73456         (__xargmatch_internal): Remove case_sensitive argument.
73457         (XARGMATCH): Update.
73458         (XARGCASEMATCH): Remove macro.
73459         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
73460         case_sensitive argument.
73461         (argcasematch): Remove function.
73462         (__xargmatch_internal): Remove case_sensitive argument.
73463         (main): Use XARGMATCH instead of XARGCASEMATCH.
73464
73465         * lib/xmalloc.c: Change compile-time error message. Add comment about
73466         required autoconf version.
73467
73468 2002-11-20  Paul Eggert  <eggert@twinsun.com>
73469
73470         Merge argmatch cleanups from Bison.  Assume C89.
73471
73472         * lib/argmatch.c: Include config.h here, not in argmatch.h.
73473         Include stdlib.h, for EXIT_FAILURE.
73474         Always include <string.h>, since we assume C89.
73475         (EXIT_FAILURE): Remove pre-C89 bug workaround.
73476         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
73477         Include <stddef.h> instead, since it's all we need for size_t.
73478         (PARAMS): Remove.  All uses removed.
73479         (ARRAY_CARDINALITY): Do not bother to #undef.
73480         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
73481         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
73482         Remove unnecessary parentheses.
73483         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
73484         Insert necessary parentheses.
73485         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
73486         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
73487
73488 2002-11-19  Bruno Haible  <bruno@clisp.org>
73489
73490         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
73491         * lib/mbswidth.h: Include <stddef.h>, for size_t.
73492
73493         * lib/mbswidth.h (PARAMS): Remove macro.
73494         (mbswidth, mbsnwidth): Use ANSI C function declarations.
73495         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
73496
73497         * lib/gcd.h (PARAMS): Remove macro.
73498         (gcd): Use ANSI C function declarations.
73499         * lib/gcd.c (gcd): Likewise.
73500
73501 2002-11-15  Bruno Haible  <bruno@clisp.org>
73502
73503         * lib/strcspn.c: Include <stddef.h>.
73504         (strcspn): Use ANSI C function declaration. Change return type to
73505         size_t. Use NULL.
73506         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
73507         (strpbrk): Use NULL.
73508         * lib/strpbrk.h (PARAMS): Remove macro.
73509         (strpbrk): Use ANSI C function declaration.
73510         * lib/strstr.c: Don't include <sys/types.h>.
73511         * lib/strstr.h (PARAMS): Remove macro.
73512         (strstr): Use ANSI C function declarations.
73513
73514 2002-11-14  Karl Berry  <karl@gnu.org>
73515
73516         * config/mkinstalldirs: `do' on separate line, instead of
73517         `for var; do'.
73518
73519 2002-11-06  Bruno Haible  <bruno@clisp.org>
73520
73521         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
73522         * lib/gcd.c (gcd): Likewise.
73523
73524 2002-11-05  Bruno Haible  <bruno@clisp.org>
73525
73526         * lib/gcd.h: New file, from gettext-0.11.5.
73527         * lib/gcd.c: New file, from gettext-0.11.5.
73528
73529 2002-11-05  Bruno Haible  <bruno@clisp.org>
73530
73531         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73532         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73533         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73534         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73535
73536         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
73537         <libintl.h>.
73538         * lib/makepath.c: Include gettext.h instead of <locale.h> and
73539         <libintl.h>.
73540
73541         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
73542         * lib/human.c: Include gettext.h instead of <libintl.h>.
73543         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
73544         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
73545         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
73546         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
73547         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
73548         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
73549         (textdomain): Remove definition.
73550         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
73551
73552         * lib/long-options.c: Remove include of <libintl.h> and definition of
73553         _.
73554         * lib/same.c: Remove include of <libintl.h> and definition of _.
73555
73556 2002-11-04  Owen Taylor  <otaylor@redhat.com>
73557
73558         * lib/config.charset: A few additions for Solaris.
73559
73560 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
73561
73562         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
73563         * lib/localcharset.c (locale_charset): Declare as extern "C".
73564
73565 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
73566
73567         * lib/config.charset: msdos in uk_UA uses CP1125.
73568
73569 2002-11-04  Bruno Haible  <bruno@clisp.org>
73570
73571         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
73572         * lib/strcase.h: New file, from GNU gettext-0.11.5.
73573         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
73574         * lib/strstr.h: New file, from GNU gettext-0.11.5.
73575         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
73576
73577 2002-11-04  Bruno Haible  <bruno@clisp.org>
73578
73579         * lib/localcharset.c (locale_charset): Don't return an empty string.
73580
73581 2002-11-04  Bruno Haible  <bruno@clisp.org>
73582
73583         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
73584         aliases.
73585
73586 2002-11-04  Bruno Haible  <bruno@clisp.org>
73587
73588         * lib/config.charset: Update for newest glibc. Add canonical names
73589         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
73590
73591 2002-11-04  Bruno Haible  <bruno@clisp.org>
73592
73593         * lib/config.charset: Add support for NetBSD.
73594
73595 2002-11-04  Bruno Haible  <bruno@clisp.org>
73596
73597         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
73598
73599 2002-11-01  Bruno Haible  <bruno@clisp.org>
73600
73601         * configure.in: Add AC_CONFIG_AUX_DIR call.
73602         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
73603         test/Makefile.
73604         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
73605
73606 2002-09-28  Karl Berry  <karl@gnu.org>
73607
73608         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
73609         installed automake until the next release, since changes have been
73610         made.
73611
73612 2002-09-25  Karl Berry  <karl@gnu.org>
73613
73614         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
73615         * lib/getopt*: copy from libc/posix.
73616         * lib/gettext.h: copy from gettext.
73617         * lib/.cppi-disable: add strdup.c, gettext.h.
73618
73619 2002-09-25  Karl Berry  <karl@gnu.org>
73620
73621         * config/srclist.txt: enable gettext.h check.
73622         * config/config.{guess,sub}: update from prep.
73623         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
73624                 from automake 1.6.3.
73625         See srclist*.
73626
73627 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
73628
73629         * regex.c (PATFETCH): Remove the translating fetch.
73630         (PATFETCH_RAW): Rename to PATFETCH.
73631         (set_image_of_range): New fun.
73632         (SET_RANGE_TABLE_WORK_AREA): Use it.
73633         (regex_compile): Don't translate the pattern chars so eagerly.
73634         Only do it when inserting an `exactn' bytecode or when handling
73635         a char-range.
73636         (mutually_exclusive_p): Avoid empty statement.
73637
73638 2002-07-06  Jim Meyering  <meyering@lucent.com>
73639
73640         * m4/README: Don't mention Makefile.am.in.
73641         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
73642
73643 2002-07-01  Jim Meyering  <meyering@lucent.com>
73644
73645         * lib/c-stack.c: Include sys/time.h.
73646         From Volker Borchert.
73647
73648 2002-06-26  Paul Eggert  <eggert@twinsun.com>
73649
73650         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
73651
73652 2002-06-26  Paul Eggert  <eggert@twinsun.com>
73653
73654         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
73655         New macro.  Use it uniformly instead of
73656         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
73657         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
73658         reported by Vin Shelton.
73659
73660 2002-06-22  Paul Eggert  <eggert@twinsun.com>
73661
73662         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
73663         Do not assume SA_SIGINFO behavior.
73664         Bug reported by Jim Meyering on NetBSD 1.5.2.
73665
73666 2002-06-22  Jim Meyering  <meyering@lucent.com>
73667
73668         * m4/c-stack.m4: New file, from diffutils-2.8.2.
73669         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
73670
73671         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
73672         now that configure.ac uses AC_GNU_SOURCE.
73673         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
73674         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
73675
73676         Update to latest tools.  Suggestions from Paul Eggert.
73677         * m4/stdbool.m4: New file, from diffutils-2.8.2.
73678         * m4/gnu-source.m4: Update from diffutils-2.8.2.
73679         * m4/fnmatch.m4: Likewise.
73680         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
73681         to AC_HEADER_STDBOOL
73682
73683 2002-06-22  Jim Meyering  <meyering@lucent.com>
73684
73685         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
73686         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
73687
73688 2002-06-22  Jim Meyering  <meyering@lucent.com>
73689
73690         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
73691
73692         * lib/exitfail.c, exitfail.h: Likewise.
73693         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
73694
73695         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
73696         of fnmatch.h.
73697         (EXTRA_DIST): Add fnmatch_loop.c.
73698         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
73699
73700         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
73701         * lib/fnmatch.c: Update from diffutils-2.8.2.
73702         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
73703         * lib/fnmatch.h: Remove file.
73704
73705 2002-06-21  Jim Meyering  <meyering@lucent.com>
73706
73707         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
73708         * m4/mbrtowc.m4: Likewise.
73709
73710         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
73711         * m4/mbswidth.m4: Reflect name change:
73712         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
73713         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
73714
73715         * m4/lib-link.m4: Update from gettext-0.11.2.
73716         * m4/gettext.m4: Likewise.
73717
73718         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
73719         From Alfred M. Szmidt.
73720
73721 2002-06-18  Paul Eggert  <eggert@twinsun.com>
73722
73723         * lib/file-type.h: Report an error if neither S_ISREG nor
73724         S_IFREG is defined, instead of using a test specific to glibc
73725         2.2.  This should be safe, since POSIX requires S_ISREG and
73726         Unix Version 7 had S_IFREG.  We don't need to check for
73727         <sys/types.h> since we don't use any symbols that it defines.
73728
73729 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
73730
73731         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
73732         $@-t, so that each temporary file name is unique and valid in the first
73733         8 characters, for operation under DOS.
73734
73735 2002-06-15  Paul Eggert  <eggert@twinsun.com>
73736
73737         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
73738
73739 2002-06-15  Jim Meyering  <meyering@lucent.com>
73740
73741         Work even with DJGPP 2.03, which lacks support for symlinks.
73742         From Richard Dawe.
73743         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
73744         is defined.
73745         * lib/lchown.c (S_ISLNK): Likewise.
73746
73747 2002-06-15  Jim Meyering  <meyering@lucent.com>
73748
73749         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
73750         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
73751         have been included before this file.
73752
73753 2002-06-14  Jim Meyering  <meyering@lucent.com>
73754
73755         * lib/file-type.h: Use the version from diffutils-2.8.2.
73756         * lib/file-type.c: Likewise.
73757
73758 2002-06-07  Jim Meyering  <meyering@lucent.com>
73759
73760         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
73761         They're needed at least for NetBSD 1.5.2.
73762         ($statxfs_includes): Include those same headers.
73763         ($statxfs_includes): Include sys/vfs.h if available.
73764         ($statxfs_includes): Likewise for sys/statvfs.h.
73765         Check for the following members in both structs statfs and statvfs:
73766         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
73767
73768 2002-06-01  Jim Meyering  <meyering@lucent.com>
73769
73770         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
73771         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
73772
73773 2002-05-28  Jim Meyering  <meyering@lucent.com>
73774
73775         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
73776         Reported by Volker Borchert.
73777
73778 2002-05-27  Jim Meyering  <meyering@lucent.com>
73779
73780         Fix a problem seen only on nonconforming systems whereby ls.c's
73781         use of localtime, and then of gettimeofday would cause trouble:
73782         the localtime call used to initialize rpl_gettimeofday's save
73783         mechanism would clobber ls's current local time information so
73784         that in any long listing the first file would always be listed
73785         with date 1970-01-01.  Analysis by Volker Borchert.
73786
73787         * lib/gettimeofday.c (localtime): Undefine.
73788         (rpl_localtime): New function.
73789
73790 2002-05-27  Jim Meyering  <meyering@lucent.com>
73791
73792         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
73793         localtime.
73794
73795         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
73796         use the replacement function; it wouldn't resolve at link time.
73797         Reported by Volker Borchert.
73798
73799 2002-05-22  Jim Meyering  <meyering@lucent.com>
73800
73801         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
73802         file-type.h.
73803         * lib/file-type.h: New file.
73804         * lib/file-type.c (file_type): New file/function.  Extracted from
73805         diffutils.
73806
73807 2002-04-30  Jim Meyering  <meyering@lucent.com>
73808
73809         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
73810
73811 2002-04-29  Paul Eggert  <eggert@twinsun.com>
73812
73813         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
73814
73815 2002-04-29  Paul Eggert  <eggert@twinsun.com>
73816
73817         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
73818         Do not check for alloca.h (no longer used) or stdbool.h (was never
73819         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
73820
73821 2002-04-29  Paul Eggert  <eggert@twinsun.com>
73822
73823         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
73824
73825 2002-04-29  Jim Meyering  <meyering@lucent.com>
73826
73827         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
73828         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
73829         Use AC_FUNC_STRNLEN here instead.
73830
73831         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
73832         With autoconf-2.53a, it's part of AC_PROG_CC.
73833
73834 2002-04-28  Paul Eggert  <eggert@twinsun.com>
73835
73836         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
73837         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
73838
73839 2002-04-28  Paul Eggert  <eggert@twinsun.com>
73840
73841         * lib/sig2str.h, lib/sig2str.c: New files.
73842         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
73843
73844 2002-04-28  Paul Eggert  <eggert@twinsun.com>
73845
73846         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
73847         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
73848         of 127, since 64 is the largest conceivable number for ancient
73849         nonstandard hosts.
73850         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
73851
73852 2002-04-28  Jim Meyering  <meyering@lucent.com>
73853
73854         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
73855
73856 2002-04-24  Jim Meyering  <meyering@lucent.com>
73857
73858         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
73859         (jm_PREREQ): Use it.
73860
73861         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
73862         mach/mach.h fcntl.h.
73863         Check for this function: setlocale.
73864
73865 2002-04-24  Jim Meyering  <meyering@lucent.com>
73866
73867         * lib/gettext.h: New file, from Gettext.
73868         * lib/Makefile.am (INCLUDES): Remove -I../intl.
73869         (libfetish_a_SOURCES): Add gettext.h.
73870
73871 2002-04-16  Jim Meyering  <meyering@lucent.com>
73872
73873         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
73874         ut_pid, ut_id, ut_exit.
73875
73876 2002-04-16  Jim Meyering  <meyering@lucent.com>
73877
73878         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
73879         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
73880         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
73881
73882 2002-04-12  Jim Meyering  <meyering@lucent.com>
73883
73884         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
73885         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
73886         existence of the getmntinfo function.  Needed for Darwin 5.3.
73887
73888         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
73889         This is necessary at least on Darwin 5.3.
73890
73891         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
73892         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
73893         strnlen.o in the library, and that makes some versions of ranlib
73894         object.
73895
73896 2002-04-12  Jim Meyering  <meyering@lucent.com>
73897
73898         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
73899
73900 2002-04-09  Jim Meyering  <meyering@lucent.com>
73901
73902         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
73903         to be more precise.  Rather than saying we're checking whether the
73904         function `works', say what we're testing.
73905         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
73906         Reported by Bruno Haible.
73907
73908 2002-03-10  Jim Meyering  <meyering@lucent.com>
73909
73910         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
73911         Suggestion from Santiago Vila.
73912
73913 2002-03-08  Jim Meyering  <meyering@lucent.com>
73914
73915         * lib/rename.c: Mention that this wrapper is needed also on
73916         mips-dec-ultrix4.4 systems.
73917
73918 2002-03-02  Jim Meyering  <meyering@lucent.com>
73919
73920         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
73921         not HAVE_CLOCK_SETTIME.
73922
73923 2002-02-27  Paul Eggert  <eggert@twinsun.com>
73924
73925         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
73926         Check for clock_settime.
73927
73928 2002-02-27  Paul Eggert  <eggert@twinsun.com>
73929
73930         * lib/nanosleep.h: Rename to....
73931         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
73932
73933         * lib/gettime.c: New file.
73934         * lib/settime.c: New file.
73935         * lib/stime.c: Remove.
73936
73937         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
73938         timespec.h.  Remove nanosleep.h.
73939
73940 2002-02-25  Paul Eggert  <eggert@twinsun.com>
73941
73942         * m4/acl.m4: New file.
73943         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
73944         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
73945
73946 2002-02-25  Paul Eggert  <eggert@twinsun.com>
73947
73948         * lib/acl.c, lib/acl.h: New files.
73949         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
73950
73951 2002-02-24  Jim Meyering  <meyering@lucent.com>
73952
73953         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
73954         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
73955         cause trouble.  Reported by Nelson Beebe.
73956
73957 2002-02-23  Paul Eggert  <eggert@twinsun.com>
73958
73959         * lib/path-concat.c (xpath_concat): Reorder code to pacify
73960         compilers that don't know that xalloc_die never returns.
73961
73962 2002-02-20  Jim Meyering  <meyering@lucent.com>
73963
73964         * lib/getdate.c: Regenerate using bison-1.33.
73965
73966 2002-02-17  Jim Meyering  <meyering@lucent.com>
73967
73968         * config/config.guess (main): Don't use `head -1'; it's no longer
73969         portable. Use `sed 1q' instead.
73970
73971 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
73972
73973         * m4/codeset.m4: Upgrade to gettext-0.11.
73974         * m4/gettext.m4: Upgrade to gettext-0.11.
73975         * m4/glibc21.m4: Upgrade to gettext-0.11.
73976         * m4/iconv.m4: Upgrade to gettext-0.11.
73977         * m4/isc-posix.m4: Upgrade to gettext-0.11.
73978         * m4/lcmessage.m4: Upgrade to gettext-0.11.
73979         * m4/lib-ld.m4: New file, from gettext-0.11.
73980         * m4/lib-link.m4: New file, from gettext-0.11.
73981         * m4/lib-prefix.m4: New file, from gettext-0.11.
73982         * m4/progtest.m4: Upgrade to gettext-0.11.
73983
73984 2002-02-15  Paul Eggert  <eggert@twinsun.com>
73985
73986         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
73987         (jm_PREREQ): Use it.
73988
73989 2002-02-15  Paul Eggert  <eggert@twinsun.com>
73990
73991         * lib/posixver.c, lib/posixver.h: New files.
73992         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
73993
73994 2002-02-02  Paul Eggert  <eggert@twinsun.com>
73995             Bruno Haible  <bruno@clisp.org>
73996
73997         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
73998         (fwrite_success_callback): New declaration.
73999         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
74000         print_unicode_char. Call failure callback instead of error.
74001         (fwrite_success_callback): New function.
74002         (exit_failure_callback): New function.
74003         (fallback_failure_callback): New function.
74004         (print_unicode_char): Call unicode_to_mb.
74005
74006 2002-01-26  Jim Meyering  <meyering@lucent.com>
74007
74008         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
74009         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
74010
74011 2002-01-26  Jim Meyering  <meyering@lucent.com>
74012
74013         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
74014
74015 2002-01-22  Paul Eggert  <eggert@twinsun.com>
74016
74017         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
74018
74019 2002-01-22  Jim Meyering  <meyering@lucent.com>
74020
74021         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
74022         Otherwise, some versions of automake would omit the rule that makes
74023         Makefile from Makefile.in.
74024
74025 2002-01-21  Paul Eggert  <eggert@twinsun.com>
74026
74027         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
74028         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
74029         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
74030         (memcoll): Set errno to zero if there is no error.
74031
74032         * lib/quotearg.c (quotearg_buffer_restyled):
74033         Fix bug with quoting buffers containing NUL when backslashing escapes.
74034         This bug was exposed by the other changes in this patch.
74035         (quotearg_n_options): New arg ARGSIZE.
74036         All callers changed.
74037         (quoting_options_from_style): New function.
74038         (quotearg_n_style): Use it.
74039         (quotearg_n_style_mem): New function.
74040
74041         * lib/quotearg.h (quotearg_n_style_mem): New function.
74042
74043 2002-01-19  Jim Meyering  <meyering@lucent.com>
74044
74045         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
74046         Remove useless quotes: DF_PROG="df".
74047         * m4/strnlen.m4: New file.
74048
74049 2002-01-16  Paul Eggert  <eggert@twinsun.com>
74050
74051         * lib/backupfile.c (ISDIGIT): Comment fix.
74052         * lib/getdate.y (ISDIGIT): Likewise.
74053         * lib/posixtm.c (ISDIGIT, year): Likewise.
74054         * lib/strverscmp.c (ISDIGIT): Likewise.
74055         * lib/userspec.c (ISDIGIT): Likewise.
74056
74057 2002-01-16  Jim Meyering  <meyering@lucent.com>
74058
74059         * lib/getdate.y: Add three semicolons, each just before a closing
74060         brace. Bison (as of version 1.31) no longer papers over that mistake.
74061
74062 2002-01-05  Jim Meyering  <meyering@lucent.com>
74063
74064         * lib/version-etc.c (version_etc_copyright): Update copyright year.
74065
74066 2001-12-19  Paul Eggert  <eggert@twinsun.com>
74067
74068         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
74069         not silently exit merely because the output buffer happens to
74070         have nothing pending.
74071
74072 2001-12-18  Paul Eggert  <eggert@twinsun.com>
74073
74074         See the big note in ../ChangeLog.
74075         * lib/human.c (suffixes): Prefer K to k for 1024.
74076         (generate_suffix_backwards): New function.
74077         (human_readable_inexact): Use it.
74078         * lib/xstrtol.c (__xstrtol): If there is no number but there
74079         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
74080         Accept 'K' as well as 'k'.
74081
74082 2001-12-15  Jim Meyering  <meyering@lucent.com>
74083
74084         * lib/regex.h (__restrict_arr): Update from libc.
74085
74086         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
74087         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
74088         (STREQ): Define.
74089
74090 2001-12-14  Jim Meyering  <meyering@lucent.com>
74091
74092         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
74093         Suggestion from Bruno Haible.
74094
74095 2001-12-10  Jim Meyering  <meyering@lucent.com>
74096
74097         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
74098         xrealloc, Instead, include "xalloc.h".
74099         (initbuffer): Don't cast xmalloc return value to char*.
74100         (readline): Reword comment.
74101         Don't cast xrealloc return value to char*
74102         Return NULL, not 0.
74103
74104 2001-12-09  Jim Meyering  <meyering@lucent.com>
74105
74106         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
74107         about `signed and unsigned type in conditional expression'.
74108         * lib/posixtm.c (posix_time_parse): Likewise.
74109
74110         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
74111
74112         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
74113         to avoid a pedantic warning.
74114
74115         * lib/getstr.c: Don't include assert.h.
74116         (getstr): Remove warning-evoking assertions.
74117         Return -1 if offset parameter is out of bounds.
74118         Change the type of a local from int to size_t.
74119
74120         * lib/strftime.c (my_strftime_localtime_r): Include this function
74121         definition in the `#if ! HAVE_TM_GMTOFF' block.
74122
74123         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
74124         Include xalloc.h instead.
74125
74126 2001-12-02  Jim Meyering  <meyering@lucent.com>
74127
74128         * lib/tempname.c: Don't declare getenv, thus reverting the change of
74129         2001-11-18.  It's no longer necessary, now that stdlib.h is always
74130         included.
74131
74132         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
74133         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
74134
74135 2001-11-30  Akim Demaille  <akim@epita.fr>
74136
74137         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
74138         before being defined.
74139
74140 2001-11-27  Paul Eggert  <eggert@twinsun.com>
74141
74142         * lib/quotearg.h (quotearg_n, quotearg_n_style):
74143         First arg is int, not unsigned.
74144         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
74145         (SIZE_MAX, UINT_MAX): New macros.
74146         (quotearg_n_options): Abort if N is negative.
74147         Avoid overflow check on hosts where size_t is 64 bits and int
74148         is 32 bits, as overflow is impossible there.
74149         Fix off-by-one typo that caused unnecessary reallocation.
74150
74151 2001-11-27  Jim Meyering  <meyering@lucent.com>
74152
74153         * lib/tempname.c: Merge with version from libc.
74154         * lib/regex.c: Likewise.
74155
74156         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
74157         systems for which STDC_HEADERS is 0, it was not included, resulting in
74158         a warning about an integer-to-pointer conversion problem with getenv.
74159         Reported by Volker Borchert.
74160
74161 2001-11-26  Jim Meyering  <meyering@lucent.com>
74162
74163         * lib/gtod.h: Remove file.
74164         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
74165         * lib/gettimeofday.c: Don't include gtod.h.
74166         (GTOD_init): Remove function.
74167         (rpl_gettimeofday): Do its job here instead, rather than aborting.
74168         Suggestion from Volker Borchert.
74169
74170 2001-11-23  Jim Meyering  <meyering@lucent.com>
74171
74172         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
74173         it.
74174         * lib/hash.c (struct hash_table): Define it here instead.
74175
74176 2001-11-22  Jim Meyering  <meyering@lucent.com>
74177
74178         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
74179
74180 2001-11-20  Jim Meyering  <meyering@lucent.com>
74181
74182         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
74183         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
74184
74185 2001-11-19  Jim Meyering  <meyering@lucent.com>
74186
74187         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
74188         directory.  Use "conftestXXXXXX" as the template.
74189         Suggestion from Paul Eggert.
74190
74191         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
74192         immediately, so the test doesn't mistakenly hit the max-open-files
74193         limit.
74194
74195 2001-11-18  Paul Eggert  <eggert@twinsun.com>
74196
74197         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
74198         (TEMPORARIES): New macro.
74199         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
74200         removes an artificial limitation (e.g. HP-UX 10.20, where
74201         TMP_MAX is 17576).
74202
74203 2001-11-18  Jim Meyering  <meyering@lucent.com>
74204
74205         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
74206
74207 2001-11-18  Jim Meyering  <meyering@lucent.com>
74208
74209         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
74210         on SunOS 4.
74211
74212         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
74213         files will be created before anything else.
74214
74215 2001-11-17  Paul Eggert  <eggert@twinsun.com>
74216
74217         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
74218         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
74219
74220 2001-11-17  Jim Meyering  <meyering@lucent.com>
74221
74222         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
74223         Prompted by a report from Bob Proulx.
74224
74225         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
74226         Instead, require UTILS_FUNC_MKSTEMP.
74227
74228 2001-11-17  Jim Meyering  <meyering@lucent.com>
74229
74230         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
74231         Now, that's done as part of AC_FUNC_STRTOD.
74232
74233 2001-11-17  Jim Meyering  <meyering@lucent.com>
74234
74235         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
74236         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
74237         rather than group writable.  Patch by Juan F. Codagnone.
74238
74239         * lib/readtokens.c: Remove explicit declarations of xmalloc and
74240         xrealloc, Instead, include "xalloc.h".
74241
74242         * lib/mountlist.c: Include unlocked-io.h after all system headers.
74243         Remove explicit declarations of xmalloc, xrealloc,
74244         and xstrdup.  Instead, include "xalloc.h".
74245
74246         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
74247         unlocked-io.h.
74248         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
74249         Likewise.
74250         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
74251
74252         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
74253         Reported by Padraig Brady.
74254
74255         * lib/mkstemp.c: #undef mkstemp.
74256         Include config.h.
74257         (rpl_mkstemp): Rename from mkstemp.
74258         Protoize.
74259
74260 2001-11-16  Jim Meyering  <meyering@lucent.com>
74261
74262         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
74263         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
74264         determine the amount of total physical memory, use pstat_getstatic.
74265         HPUX-11 doesn't define _SC_PHYS_PAGES.
74266         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
74267         If sysconf couldn't be used to determine the amount of available
74268         physical memory, use both pstat_getstatic and pstat_getdynamic.
74269         Based on a patch from Bob Proulx.
74270
74271 2001-11-10  Jim Meyering  <meyering@lucent.com>
74272
74273         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
74274         (jm_PREREQ): Use it.
74275
74276 2001-11-09  Jim Meyering  <meyering@lucent.com>
74277
74278         * m4/jm-macros.m4: Require autoconf-2.52f.
74279         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
74280         Use these AC_-prefixed names, not the AM_-prefixed ones.
74281
74282         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
74283
74284 2001-11-05  Jim Meyering  <meyering@lucent.com>
74285
74286         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
74287
74288 2001-11-04  Jim Meyering  <meyering@lucent.com>
74289
74290         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
74291         $DEFS.
74292
74293 2001-11-03  Jim Meyering  <meyering@lucent.com>
74294
74295         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
74296         of AC_DEFUN.
74297
74298         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
74299         know the name of the variable in the macro definition.
74300
74301 2001-11-03  Jim Meyering  <meyering@lucent.com>
74302
74303         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
74304         in argmatch_to_argument call.
74305
74306         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
74307         argument.
74308
74309         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
74310         e.g., a fault due to an attempt to free a NULL pointer.
74311
74312 2001-11-01  Jim Meyering  <meyering@lucent.com>
74313
74314         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
74315         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
74316
74317 2001-11-01  Jim Meyering  <meyering@lucent.com>
74318
74319         * lib/dirfd.c, lib/dirfd.h: New files.
74320         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
74321
74322         * lib/hash.c (hash_print) [TESTING]: Clean up.
74323
74324 2001-10-22  Paul Eggert  <eggert@twinsun.com>
74325
74326         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
74327         to avoid a warning if -Wall.
74328
74329 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
74330
74331         * README: New file
74332         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
74333         (per RMS's instructions, this is now the canonical source)
74334         * lgpl/, gpl/: New directories.
74335
74336 2001-10-21  Paul Eggert  <eggert@twinsun.com>
74337
74338         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
74339
74340 2001-10-21  Jim Meyering  <meyering@lucent.com>
74341
74342         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
74343         this code would end up calling gettext even in packages built
74344         with --disable-nls.
74345         * lib/getopt.c (_): Likewise.
74346         * lib/regex.c (_): Likewise.
74347
74348 2001-10-20  Paul Eggert  <eggert@twinsun.com>
74349
74350         * m4/error.m4 (jm_PREREQ_ERROR):
74351         Do not invoke AC_CHECK_FUNCS with strerror_r, as
74352         AC_FUNC_STRERROR_R does that.
74353         Check for strerror declaration.
74354
74355         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
74356         are supposed to have them these days.
74357         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
74358         Merge changes from latest Autoconf CVS.
74359         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
74360         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
74361         POSIX decided to standardize on the int flavor of strerror_r.
74362
74363 2001-10-20  Paul Eggert  <eggert@twinsun.com>
74364
74365         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
74366         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
74367         Use strerror_r that is only a macro, even if it is not a function.
74368         (strerror): Check for HAVE_DECL_STRERROR before declaring.
74369         (private_strerror): Use prototypes, not old-style function definition.
74370         (print_errno_message): New function.
74371         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
74372         char*-flavored one.
74373         (error_tail, error, error_at_line): Use it.
74374
74375 2001-10-11  Jim Meyering  <meyering@lucent.com>
74376
74377         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
74378         and quote_n (1, ... to avoid clobbering a buffer.
74379
74380 2001-10-05  Jim Meyering  <meyering@lucent.com>
74381
74382         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
74383         hash-pjw.h.
74384         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
74385         * lib/hash-pjw.h: New file.
74386
74387 2001-09-30  Jim Meyering  <meyering@lucent.com>
74388
74389         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
74390         `struct fsstat' has the `f_fstypename' member.
74391         Use that to define FS_TYPE, which is now used to make
74392         the getfsstat link test tighter.
74393
74394 2001-09-30  Jim Meyering  <meyering@lucent.com>
74395
74396         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
74397         Include <sys/ucred.h>, for Apple Darwin.
74398         Include sys/mount.h and sys/fs_types.h only if available.
74399         (FS_TYPE): Define.
74400         (read_filesystem_list): Use FS_TYPE.
74401
74402 2001-09-29  Paul Eggert  <eggert@twinsun.com>
74403
74404         * lib/exclude.c (excluded_filename): 0 -> false, since it's
74405         a boolean context.
74406
74407 2001-09-29  Jim Meyering  <meyering@lucent.com>
74408
74409         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
74410         [one-argument getmntent function]): Include stdio.h before mntent.h.
74411         SunOS 4.1.x needs it for the declaration of `FILE'.
74412         Patch by Volker Borchert.
74413
74414         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
74415         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
74416         sys/fs_types.h, and make the link-test for getfsstat guard #include
74417         directives with appropriate #if HAVE_*_H tests so that we can
74418         detect getfsstat on Apple Darwin1.3.7 systems.
74419         Reported by Nelson Beebe.
74420         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
74421
74422 2001-09-28  Paul Eggert  <eggert@twinsun.com>
74423
74424         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
74425         #defines strtoimax.  Also treat the other strto* functions
74426         like strtoimax.
74427
74428         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
74429         Check for strtoul and strtoumax,
74430         as those declarations are made even in the signed case.
74431         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
74432         Likewise, for strtol and strtoimax.
74433
74434 2001-09-28  Paul Eggert  <eggert@twinsun.com>
74435
74436         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
74437         #defines strtoimax.  Also treat the other strto* functions
74438         like strtoimax.
74439
74440         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
74441         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
74442         (strtoimax, strtoumax): Do not declare if already defined as a macro.
74443
74444 2001-09-26  Jim Meyering  <meyering@lucent.com>
74445
74446         Most macros in unlocked-io.h had the wrong number of arguments.
74447         * lib/gen-uio: New script.
74448         (USE_UNLOCKED_IO): Define to 1 if not already defined.
74449         * lib/unlocked-io.hin: Remove file.
74450         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
74451         rather than trying to embed it here.
74452         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
74453         Reported by Padraig Brady.
74454
74455 2001-09-25  Volker Borchert  <bt@teknon.de>
74456
74457         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
74458         `result'.
74459
74460 2001-09-24  Jim Meyering  <meyering@lucent.com>
74461
74462         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
74463
74464 2001-09-23  Jim Meyering  <meyering@lucent.com>
74465
74466         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
74467         instead of the mere test for existence of mntent.h.  The latter
74468         would get a false-positive on AIX 3.4 systems.
74469         In the outer getmntent if-block, don't die if neither of the getmntent
74470         tests succeeds.  Instead, just fall through and continue with the
74471         remaining tests.
74472
74473 2001-09-23  Jim Meyering  <meyering@lucent.com>
74474
74475         * lib/mountlist.c: Remove useless parentheses in #if directives.
74476         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
74477         the deprecated MOUNTED symbol is no longer defined in mntent.h.
74478
74479 2001-09-22  Jim Meyering  <meyering@lucent.com>
74480
74481         * m4/gettext.m4: New file.  From gettext.
74482         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
74483         * m4/progtest.m4: Likewise
74484         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
74485         * m4/glibc21.m4: Likewise.
74486
74487         * m4/libintl.m4: Remove.  No longer used.
74488
74489 2001-09-22  Jim Meyering  <meyering@lucent.com>
74490
74491         * lib/localcharset.c: Update from latest gettext.
74492         * lib/config.charset: Likewise.
74493
74494 2001-09-20  Jim Meyering  <meyering@lucent.com>
74495
74496         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
74497         strtoimax.
74498         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
74499         strtoumax.
74500
74501 2001-09-20  Jim Meyering  <meyering@lucent.com>
74502
74503         * lib/xstrtol.c (strtoimax): Guard declaration with
74504         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
74505         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
74506         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
74507         (strtoumax): Likewise, for completeness (it wasn't necessary).
74508
74509 2001-09-17  Paul Eggert  <eggert@twinsun.com>
74510
74511         * lib/strtoimax.c (HAVE_LONG_LONG):
74512         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
74513         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
74514         to work around bug in IBM C compiler.
74515
74516 2001-09-17  Jim Meyering  <meyering@lucent.com>
74517
74518         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
74519         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
74520         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
74521         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
74522         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
74523         whenever the right hand side need not be expanded by the shell.
74524
74525 2001-09-16  Paul Eggert  <eggert@twinsun.com>
74526
74527         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
74528         library.  It's not correct, as some older glibcs are buggy.
74529         fnmatch wasn't fixed until glibc 2.2.
74530
74531         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
74532         special shell magic here.
74533
74534 2001-09-16  Jim Meyering  <meyering@lucent.com>
74535
74536         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
74537         * m4/jm-macros.m4: Require it.
74538
74539 2001-09-16  Jim Meyering  <meyering@lucent.com>
74540
74541         * lib/mkdir.c: New file.
74542
74543 2001-09-15  Jim Meyering  <meyering@lucent.com>
74544
74545         * m4/jm-macros.m4: Check for help2man.
74546
74547 2001-09-11  Jim Meyering  <meyering@lucent.com>
74548
74549         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
74550         The body, by Paul Eggert, was moved here from configure.in.
74551         * m4/jm-macros.m4: Require UTILS_HOST_OS.
74552
74553 2001-09-04  Paul Eggert  <eggert@twinsun.com>
74554
74555         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
74556         (jm_PREREQ): Use it.
74557
74558 2001-09-04  Paul Eggert  <eggert@twinsun.com>
74559
74560         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
74561         Use ssize_t, not int, to store result of readlink.
74562         Check for ssize_t overflow as well as size_t overflow,
74563         as POSIX says the result of readlink is implementation-defined
74564         when ssize_t overflows.
74565         Remove unnecessary cast to char*.
74566         Use free+malloc instead of realloc, as the storage doesn't need
74567         to be preserved and it's clearer and can be more efficient that way.
74568         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
74569         * lib/xreadlink.h (xreadlink): Update prototype.
74570
74571 2001-09-04  Paul Eggert  <eggert@twinsun.com>
74572
74573         * lib/xgetcwd.c: Revert some of the previous change; intead,
74574         fix the HAVE_GETCWD_NULL code to behave more like the
74575         !HAVE_GETCWD_NULL code used to.
74576
74577         Include "xalloc.h".
74578         (xgetcwd): Do not return NULL when memory is exhausted; instead,
74579         invoke xalloc_die.
74580
74581 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74582
74583         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
74584         sys/param.h, as pathmax.h includes them.
74585
74586 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74587
74588         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
74589         (jm_PREREQ_XGETCWD): New macro.
74590
74591         * m4/getcwd.m4: New file.
74592
74593 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74594
74595         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
74596         like the HAVE_GETCWD_NULL code.
74597         Include pathmax.h if not HAVE_GETCWD.
74598         Do not include xalloc.h.
74599         (INITIAL_BUFFER_SIZE): New symbol.
74600         Do not use xmalloc / xrealloc, since the caller is responsible for
74601         handling errors.  Preserve errno around `free' during failure.
74602         Do not overrun buffer when using getwd.
74603
74604 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74605
74606         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
74607         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
74608         getcwd (NULL, 0).
74609
74610 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74611
74612         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
74613         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
74614         spotted by Jim Meyering.
74615
74616 2001-09-03  Jim Meyering  <meyering@lucent.com>
74617
74618         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
74619         failure.
74620
74621 2001-09-02  Jim Meyering  <meyering@lucent.com>
74622
74623         * lib/error.c: Update from GNU libc.
74624
74625 2001-09-01  Jim Meyering  <meyering@lucent.com>
74626
74627         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
74628         Used by df.
74629
74630 2001-09-01  Jim Meyering  <meyering@lucent.com>
74631
74632         * lib/xreadlink.c: New file.
74633         * lib/xreadlink.h: New file.
74634         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
74635         xreadlink.h.
74636
74637         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
74638         doesn't conflict with sparc Solaris 7's definition in
74639         /usr/include/sys/int_types.h.
74640
74641         * lib/exclude.c: Use `""', not `<>' to #include non-system header
74642         files.
74643         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
74644         and strncasecmp as r-values.  Unixware didn't have declarations.
74645
74646 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74647
74648         * lib/xstrtol.h: Add copyright notice.
74649         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
74650         LONGINT_INVALID_SUFFIX_CHAR.
74651
74652 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74653
74654         * lib/xstrtol.c (strtoimax): New decl.
74655
74656 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74657
74658         * lib/xgetcwd.c: Don't include pathmax.h.
74659         Include stdlib.h and unistd.h if available.
74660         Include xalloc.h.
74661         (xmalloc, xstrdup, free): Remove decls.
74662         (xgetcwd): Don't assume sizes fit in unsigned.
74663         Check for overflow when computing sizes.
74664         Simplify reallocation code.
74665
74666 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74667
74668         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
74669         a directory's st_size can have an arbitrary value, so the old
74670         usage could waste an arbitrary amount of memory.  All uses
74671         changed.
74672         * lib/savedir.h: Update prototype.
74673
74674 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74675
74676         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
74677
74678         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
74679         old strtoimax.c.
74680
74681         Also, make the following further changes to make this file's
74682         configuration more similar to that of strtol.c:
74683         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
74684         (strtoumax, uintmax_t, strtoull, strtol): Remove.
74685         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
74686         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
74687         changed to signed values.
74688
74689         And make the following changes as well:
74690         Fix copyright notice, as 1999 was missing.
74691         (verify): New macro.
74692         (strtoimax): Check sizes at compile-time, not run-time.
74693         Prefer strtol to strtoll if both work.
74694         (main): Remove; it was not that useful and was a pain to maintain.
74695
74696         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
74697
74698 2001-08-31  Jim Meyering  <meyering@lucent.com>
74699
74700         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
74701         Use an initial, malloc'd, buffer of length 128 rather than
74702         a statically allocated one of length 1024.
74703
74704 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74705
74706         Simplify code, partly by assuming autoconf 2.52 semantics.
74707
74708         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
74709
74710         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
74711         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
74712         All uses removed.
74713         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
74714         Move AC_REQUIRE to next-to-top level, to avoid confusion.
74715         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
74716         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
74717         jm_AC_HEADER_INTTYPES_H.
74718         * m4/jm-macros.m4 (jm_MACROS): Likewise.
74719
74720         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
74721
74722         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
74723         Quote first arg of AC_DEFUN.
74724         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
74725         since they are needed to parse the include file even if we need
74726         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
74727         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
74728         but with opposite signedness.
74729
74730 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74731
74732         Merge 'exclude' changes from tar 1.13.22.
74733         This fixes one or two unlikely storage allocation overflow bugs,
74734         but doesn't change user-visible behavior otherwise.
74735
74736 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74737
74738         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
74739         (jm_PREREQ_EXCLUDE): New macro.
74740
74741 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74742
74743         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
74744         tm to be declared.
74745
74746 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74747
74748         * lib/hash.c: Remove '2001' from copyright notice.
74749
74750 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74751
74752         * lib/full-write.h: New file.
74753         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
74754         * lib/full-write.c: Correct credits, as cccp.c no longer
74755         exists and anyway it was so heavily changed from the old cccp
74756         code as to be unrecognizable.  Include full-write.h.
74757         (full_write) Return size_t, with short writes meaning failure.
74758         All callers changed.  This fixes a bug with large buffers
74759         on 64-bit hosts.
74760         * lib/utime.c: Include full-write.h.
74761
74762 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74763
74764         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
74765         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
74766         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
74767         Include if available.
74768         (<xalloc.h>): Include
74769         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
74770         (verify): New macro.  Use it to verify that EXCLUDE macros do not
74771         collide with FNM macros.
74772         (struct patopts): New struct.
74773         (struct exclude): Use it, as exclude patterns now come with options.
74774         (new_exclude): Support above changes.
74775         (new_exclude, add_exclude_file):
74776         Initial size must now be a power of two to simplify overflow checking.
74777         (free_exclude, fnmatch_no_wildcards): New function.
74778         (excluded_filename): No longer requires options arg, as the options
74779         are determined by add_exclude.  Now returns bool, not int.
74780         (excluded_filename, add_exclude):
74781         Add support for the fancy new exclusion options.
74782         (add_exclude, add_exclude_file): Now takes int options arg.
74783         Check for arithmetic overflow when computing sizes.
74784         (add_exclude_file): xrealloc might modify errno, so don't
74785         realloc until after errno might be used.
74786
74787         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
74788         New macros.
74789         (free_exclude): New decl.
74790         (add_exclude, add_exclude_file): Now takes int options arg.
74791         (excluded_filename): No longer requires options arg, as the options
74792         are determined by add_exclude.  Now returns bool, not int.
74793
74794 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74795
74796         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
74797
74798 2001-08-27  Jim Meyering  <meyering@lucent.com>
74799
74800         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
74801
74802         * lib/version-etc.c (N_): Remove definition.
74803         Revert most of last change.
74804         Instead, simply don't mark the `Copyright...' string for translation.
74805         Based on advice from Paul Eggert.
74806
74807         * lib/strtoxmax.c: Tweak comment.
74808
74809 2001-08-26  Jim Meyering  <meyering@lucent.com>
74810
74811         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
74812
74813         * m4/xstrtoimax.m4: New file.
74814         * m4/xstrtoumax.m4: Add comments explaining why we
74815         AC_REPLACE_FUNCS(strtol).
74816
74817 2001-08-26  Jim Meyering  <meyering@lucent.com>
74818
74819         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
74820         of copyright with `%s' so translators don't get an untranslated
74821         message in 2002.
74822         (COPYRIGHT_YEAR): Define.
74823         (version_etc): Use fprintf rather than fputs.
74824         Suggestion from Ulrich Drepper.
74825
74826         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
74827
74828         * lib/strtoll.c: New file, from GNU libc.
74829         * lib/xstrtoimax.c: New file.
74830
74831         * lib/xstrtol.h: Add xstrtoimax.
74832         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
74833         * lib/strtoimax.c: New file.  Likewise, but first define
74834         STRTOUXMAX_SIGNED.
74835
74836         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
74837         ...
74838         * lib/strtoxmax.c: ... then renamed to this.
74839
74840 2001-08-18  Paul Eggert  <eggert@twinsun.com>
74841
74842         * m4/inttypes.m4: Add AC_PREREQ(2.13).
74843         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
74844         (jm_AC_TYPE_INTMAX_T): New macro.
74845         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
74846
74847         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
74848
74849         * m4/longlong.m4: Renamed from ulonglong.m4.
74850         * m4/inttypes.m4: Renamed from inttypes_h.m4.
74851         * m4/uintmax_t.m4: Removed.
74852
74853 2001-08-13  Paul Eggert  <eggert@twinsun.com>
74854
74855         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
74856         Port to Solaris 8, where 'sed' requires a space after the 'r'
74857         command, and where sh dislikes "$/".  Clean up the spacing a bit.
74858         Redirect output to $tmp just once.
74859
74860 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
74861
74862         * lib/addext.c (<errno.h>): Include.
74863         (errno): Declare if not defined.
74864         (addext): Work correctly when pathconf returns -1 and leaves
74865         errno alone because there is no limit.  Also, work even if
74866         pathconf returns a value greater than SIZE_MAX.
74867
74868 2001-08-12  Jim Meyering  <meyering@lucent.com>
74869
74870         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
74871         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
74872         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
74873         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
74874         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
74875         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
74876         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
74877         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
74878         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
74879         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
74880         utime.m4, utimes.m4, xstrtoumax.m4:
74881         Quote the first argument in each use of AC_DEFUN.
74882
74883 2001-08-12  Jim Meyering  <meyering@lucent.com>
74884
74885         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
74886         Simply `return getcwd (NULL, 0);'.
74887         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
74888         Use 1300 as initial value for length, not PATH_MAX.
74889
74890         * lib/pathmax.h: Clean up cpp syntax.
74891
74892 2001-08-12  Jim Meyering  <meyering@lucent.com>
74893
74894         * lib/gettimeofday.c: New file.
74895         * lib/gtod.h: New file.
74896         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
74897
74898 2001-08-05  Jim Meyering  <meyering@lucent.com>
74899
74900         * m4/jm-macros.m4: Require autoconf-2.52.
74901
74902 2001-08-04  Jim Meyering  <meyering@lucent.com>
74903
74904         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
74905         stmt, to get in sync with glibc.
74906
74907 2001-08-03  Paul Eggert  <eggert@twinsun.com>
74908
74909         The following changes are from gettext 0.10.39 as maintained by
74910         Bruno Haible.
74911
74912         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
74913         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
74914         with inverted sense.  All uses changed.
74915
74916         * lib/mbswidth.c: Don't include <limits.h>.
74917         Include <stdlib.h> and <string.h> unconditionally.
74918         (iswcntrl, mbsinit, ISCNTRL): New macros.
74919         (mbsnwidth): Use K&R style function declarations.
74920         Don't bother checking for MB_LEN_MAX == 1, since the compiler
74921         can optimize it when MB_CUR_MAX == 1.
74922         The width of control characters is zero, not 1.
74923
74924 2001-08-03  Paul Eggert  <eggert@twinsun.com>
74925
74926         The following changes are from gettext 0.10.39 as maintained by
74927         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
74928
74929         * m4/codeset.m4: Upgrade to serial AM1.
74930         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
74931         all uses changed.  Quote first arg of AC_DEFUN.
74932         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
74933
74934         * m4/iconv.m4: Upgrade to serial AM2.
74935         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
74936         Add --with-libconv-prefix.
74937         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
74938         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
74939         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
74940         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
74941         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
74942
74943         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
74944         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
74945         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
74946         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
74947         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
74948         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
74949         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
74950         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
74951         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
74952
74953         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
74954         string.h any more.
74955
74956         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
74957         not the default value.
74958
74959         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
74960         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
74961         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
74962         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
74963         Also check for iswcntrl, used for wcwidth fallback.
74964         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
74965         to Autoconf 2.13.
74966
74967 2001-08-03  Jim Meyering  <meyering@lucent.com>
74968
74969         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
74970         as it was in the original.  Reported by Paul Eggert.
74971
74972 2001-07-16  Jim Meyering  <meyering@lucent.com>
74973
74974         * m4/gettimeofday.m4: New file.
74975         Prompted by a report from Bernhard Baehr.
74976
74977 2001-07-15  Jim Meyering  <meyering@lucent.com>
74978
74979         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
74980         stuff. Now it's in ../Makefile.cfg.
74981
74982 2001-07-15  Jim Meyering  <meyering@lucent.com>
74983
74984         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
74985         (BUILT_SOURCES): Add unlocked-io.h.
74986         (io_functions): Define.
74987         (unlocked-io.h): New rule.
74988         (DISTCLEANFILES): Add unlocked-io.h.
74989         (all-local): Depend on unlocked-io.h, to ensure it is created.
74990
74991         * lib/unlocked-io.hin: New file
74992
74993         * lib/regex.c: Update from glibc.
74994
74995 2001-07-05  Jim Meyering  <meyering@lucent.com>
74996
74997         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
74998         recommendation.
74999         (libfetish_a_SOURCES): Put all .h files here instead.
75000         Remove a thus-exposed (better checks in automake) duplicate and
75001         two unnecessary .h files.
75002
75003 2001-07-04  Jim Meyering  <meyering@lucent.com>
75004
75005         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
75006         that generates jm-glibc-io.m4 so that it doesn't trigger any make
75007         distcheck failure.
75008
75009 2001-07-02  Jim Meyering  <meyering@lucent.com>
75010
75011         The following changes were prompted by suggestions from Bruno Haible.
75012
75013         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
75014         is now generated.
75015         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
75016         definition of EXTRA_DIST.
75017         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
75018         ensure that the generated file is created/updated whenever the list
75019         of $(unlocked_functions) is changed.
75020         (jm-glibc-io.m4): New rule.
75021         (unlocked-io.h): New rule -- currently unused.
75022
75023 2001-06-24  Jim Meyering  <meyering@lucent.com>
75024
75025         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
75026         unmatched right bracket, rather than kludging it with an extra,
75027         falsely-matching quote in a comment.  Patch by Akim Demaille.
75028
75029 2001-06-11  Jim Meyering  <meyering@lucent.com>
75030
75031         * lib/regex.c: Update from GNU libc.
75032
75033 2001-05-27  Jim Meyering  <meyering@lucent.com>
75034
75035         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
75036         Check for ut_type in struct utmp.
75037
75038 2001-05-27  Jim Meyering  <meyering@lucent.com>
75039
75040         * lib/readutmp.h (UT_TYPE): Define.
75041
75042 2001-05-24  Jim Meyering  <meyering@lucent.com>
75043
75044         * lib/argmatch.c: Include "quote.h".
75045         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
75046         quote function.  Reported by Göran Uddeborg.
75047
75048 2001-05-22  Jim Meyering  <meyering@lucent.com>
75049
75050         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
75051         now that we use the package-supplied version unconditionally.
75052         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
75053
75054 2001-05-21  Jim Meyering  <meyering@lucent.com>
75055
75056         * m4/regex.m4: Change a couple backticks to single quotes to avoid
75057         shell syntax errors.
75058
75059 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
75060
75061         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
75062
75063 2001-05-20  Paul Eggert  <eggert@twinsun.com>
75064
75065         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
75066         Don't bother to check library strftime, since
75067         we'll be using our own my_strftime function anyway.
75068         Define my_strftime instead of strftime.
75069
75070 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
75071
75072         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
75073         which is not yet declared.
75074
75075 2001-05-15  Jim Meyering  <meyering@lucent.com>
75076
75077         * m4/regex.m4: Use proper quoting so brackets appear in the test
75078         program.
75079         Reported by, and with help from, Bruno Haible.
75080
75081 2001-05-13  Jim Meyering  <meyering@lucent.com>
75082
75083         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
75084         undefined.
75085
75086 2001-05-11  Paul Eggert  <eggert@twinsun.com>
75087
75088         dirname code cleanup.  base_name now behaves more compatibly
75089         with POSIX basename when given file names that have trailing
75090         slashes, and similarly for dir_name.  Add new primitives
75091         base_len and dir_len.  Put the directory-name-related decls
75092         into dirname.h.
75093
75094         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
75095         * lib/backupfile.c (base_name): Likewise.
75096         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
75097         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
75098         * lib/makepath.c (strip_trailing_slashes): Likewise.
75099         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
75100         ISSLASH): Likewise.
75101         * lib/rename.c (strip_trailing_slashes): Likewise.
75102         * lib/same.c (base_name): Likewise.
75103         * lib/stripslash.c (ISSLASH): Likewise.
75104
75105         * lib/addext.c: Include <dirname.h> after size_t is defined.
75106         * lib/backupfile.c: Likewise.
75107
75108         * lib/addext.c (addext): Use base_len to trim redundant
75109         trailing slashes instead of doing it ourselves.
75110         But do not trim the last slash if it is not redundant.
75111
75112         * lib/backupfile.c (find_backup_file_name,
75113         max_backup_version): Use base_len instead of rolling it ourselves.
75114         Handle the case of "" and (on DOS) "C:" correctly.
75115
75116         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
75117         needed. Include <string.h>, <dirname.h>.
75118         (base_name): Allow file names ending in slashes, other than names
75119         that are all slashes.  In this case, return the basename followed
75120         by the slashes.  This is more general, and can be used in places
75121         where the original base_name purposely had an assertion failure.
75122         (base_len): New function.
75123
75124         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
75125         Do not include <assert.h>; no longer needed.
75126         Include xalloc.h.
75127         (memrchr): Remove decl.
75128         (dir_name_r): Remove.
75129         (dir_len): Renamed from dirlen.  All callers changed.
75130         Rewrite in terms of base_name, for simplicity and consistency.
75131         (dir_name): Never return NULL.  All callers changed.
75132         Do not include <stdlib.h> in test program; no longer needed.
75133         return 0; is fine for test program.
75134
75135         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
75136         New macros.
75137         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
75138
75139         * lib/path-concat.c (path_concat): Use base_len to compute
75140         base length, not strlen; this means we cannot rely on memcpy
75141         to null-terminate.
75142
75143         * lib/same.c (STREQ): Remove.
75144         (same_name): Handle the case where the basename ends in trailing '/'.
75145
75146         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
75147         a slash was stripped.  Do not strip the last slash after a
75148         file system prefix.
75149
75150 2001-05-11  Paul Eggert  <eggert@twinsun.com>
75151
75152         * lib/Makefile.am (libfetish_a_SOURCES):
75153         Add strftime.c, since we now compile it on all hosts.
75154
75155         * lib/strftime.c (my_strftime):
75156         Define to nstrftime if emacs, but only if my_strftime is not defined.
75157         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
75158         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
75159         Add one more extra argument: a nanoseconds value.
75160         All uses changed.
75161         (ns): New macro.
75162         (my_strftime function): Add %N format.
75163         (emacs_strftimeu): Renamed from emacs_strftime,
75164         with extra ut argument.
75165
75166 2001-05-09  Paul Eggert  <eggert@twinsun.com>
75167
75168         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
75169
75170 2001-04-21  Jim Meyering  <meyering@lucent.com>
75171
75172         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
75173         doesn't interfere.
75174
75175 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
75176
75177         * m4/ftruncate.m4: Check for chsize.
75178         Link with ftruncate.o unconditionally if ftruncate is missing.
75179         This was required when cross-compiling to i586-mingw32msvc.
75180
75181 2001-04-08  Jim Meyering  <meyering@lucent.com>
75182
75183         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
75184         recomputed; that's necessary when the offset spans a DST transition.
75185         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
75186
75187 2001-04-02  Jim Meyering  <meyering@lucent.com>
75188
75189         * lib/regex.h, regex.c: Update from GNU libc.
75190
75191 2001-03-24  Jim Meyering  <meyering@lucent.com>
75192
75193         * m4/jm-macros.m4: Require autoconf-2.49d.
75194
75195 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
75196
75197         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
75198
75199 2001-03-19  Paul Eggert  <eggert@twinsun.com>
75200
75201         * lib/version-etc.c (version_etc_copyright): Update to 2001.
75202
75203 2001-03-17  Jim Meyering  <meyering@lucent.com>
75204
75205         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
75206         now that the version in autoconf is equivalent.
75207         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
75208
75209         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
75210         Suggestion from Akim Demaille.
75211
75212         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
75213         (jm_PREREQ_TEMPNAME): New function.
75214
75215 2001-03-16  Paul Eggert  <eggert@twinsun.com>
75216
75217         * lib/tempname.c (uint64_t): Define to uintmax_t if
75218         not defined, and if UINT64_MAX is not defined.
75219         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
75220         Reported by John David Anglin.
75221
75222 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
75223
75224         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
75225         resolve alias if codeset is empty.
75226         * lib/config.charset (BeOS): Use wildcard syntax.
75227
75228 2001-03-13  Jim Meyering  <meyering@lucent.com>
75229
75230         * lib/path-concat.c (path_concat)
75231         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
75232         concatenating e.g., `C:' and `foo'.
75233         From Bruno Haible.
75234
75235 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
75236
75237         * lib/localcharset.c (locale_charset): Don't use
75238         setlocale(LC_CTYPE,NULL). Don't return NULL.
75239         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
75240
75241 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
75242
75243         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
75244         support for DOS/DJGPP.
75245
75246 2001-03-01  Paul Eggert  <eggert@twinsun.com>
75247
75248         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
75249         lacks mkstemp.  Compile our own tempname.c if we compile our own
75250         mkstemp.c, as mkstemp relies on tempname.
75251
75252 2001-03-01  Jim Meyering  <meyering@lucent.com>
75253
75254         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
75255         AH_VERBATIM really does output its argument verbatim.
75256
75257 2001-02-28  Paul Eggert  <eggert@twinsun.com>
75258
75259         * lib/Makefile.am (libfetish_a_SOURCES):
75260         Add dup-safer.c, fopen-safer.c.
75261         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
75262
75263         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
75264         * lib/unistd-safer.h: New files.
75265
75266 2001-02-25  Paul Eggert  <eggert@twinsun.com>
75267
75268         The mkstemp replacement is taken from glibc 2.2.2, with some
75269         portability fixes for use outside glibc, as follows:
75270
75271         * lib/tempname.c (struct_stat64): New macro.
75272         (direxists, __gen_tempname): Use it.
75273         This avoids a portability problem with Solaris 8.
75274
75275         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
75276         (<stddef.h>, <stdint.h>, <string.h>):
75277         Include only if STDC_HEADERS || _LIBC.
75278         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
75279         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
75280         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
75281         (__set_errno): Define this macro if <errno.h> doesn't.
75282         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
75283         Define these macros if <stdio.h> doesn't.
75284         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
75285         Define these macros if <sys/stat.h>
75286         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
75287         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
75288         __xstat64): Define if not _LIBC.
75289         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
75290         (__gen_tempname): Invoke gettimeofday only if
75291         HAVE_GETTIMEOFDAY || _LIBC;
75292         otherwise, fall back on plain "time".
75293         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
75294
75295         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
75296
75297         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
75298
75299 2001-02-18  Paul Eggert  <eggert@twinsun.com>
75300
75301         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
75302
75303 2001-02-17  Paul Eggert  <eggert@twinsun.com>
75304
75305         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
75306         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
75307         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
75308         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
75309
75310 2001-02-17  Paul Eggert  <eggert@twinsun.com>
75311
75312         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
75313         Remove workaround macros for hosts that have mbrtowc but not
75314         mbstate_t, as we now insist on proper declarations for both
75315         before using mbrtowc.
75316
75317 2001-02-17  Jim Meyering  <meyering@lucent.com>
75318
75319         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
75320         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
75321         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
75322         UnixWare 7.1.1.
75323
75324         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
75325         rather than AC_CACHE_VAL.
75326
75327 2001-02-17  Jim Meyering  <meyering@lucent.com>
75328
75329         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
75330         around included file name.
75331
75332         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
75333
75334         * lib/strftime.c: Update from GNU libc (the only changes were to
75335         comments).
75336
75337 2001-02-17  Jim Meyering  <meyering@lucent.com>
75338
75339         * lib/regex.c: Update from libc.
75340
75341 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
75342
75343         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
75344         clash.
75345
75346 2001-02-16  Paul Eggert  <eggert@twinsun.com>
75347
75348         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
75349         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
75350         Reported by Mark Hounschell via Paul Eggert.
75351
75352 2001-02-07  Jim Meyering  <meyering@lucent.com>
75353
75354         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
75355
75356 2001-02-05  Jim Meyering  <meyering@lucent.com>
75357
75358         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
75359         it includes the patch required for `large file' support with at least
75360         HP-UX's 10.20 /bin/cc.
75361
75362 2001-02-03  Jim Meyering  <meyering@lucent.com>
75363
75364         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
75365         AS_IF, now that it works once again (mysteriously).
75366         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
75367
75368 2001-01-30  Jim Meyering  <meyering@lucent.com>
75369
75370         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
75371         * m4/chown.m4: Rename conftestchown to conftest.chown.
75372         * m4/rename.m4: s/conftestdir/conftest.d1/ and
75373         s/conftestdir2/conftest.d2/.
75374         * m4/utimes.m4: s/conftestdata/conftest.data/
75375         Inspired by Pavel Roskin's change in autoconf.
75376
75377 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
75378
75379         * lib/config.charset: Update for FreeBSD 4.2.
75380
75381 2001-01-27  Jim Meyering  <meyering@lucent.com>
75382
75383         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
75384         a use of AS_IF.
75385         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
75386
75387 2001-01-26  Jim Meyering  <meyering@lucent.com>
75388
75389         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
75390         quotearg.c includes it.
75391
75392 2001-01-26  Jim Meyering  <meyering@lucent.com>
75393
75394         * lib/quotearg.c: Include stddef.h.
75395         * lib/quote.c: Include stddef.h.
75396         Reported by Axel Kittenberger.
75397
75398         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
75399         line in double quotes so that it evokes a better diagnostic.
75400         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
75401         Reported by Axel Kittenberger.
75402
75403 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
75404
75405         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
75406         as if it was a `charset'.
75407
75408 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
75409
75410         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
75411         has const.
75412
75413 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
75414
75415         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
75416         to avoid a warning.  Add back 'const' to inptr.
75417
75418 2001-01-20  Jim Meyering  <meyering@lucent.com>
75419
75420         Be sure that headers are checked before used in code compiled
75421         for the type checks.
75422         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
75423         In place of that, invoke jm_CHECK_ALL_TYPES.
75424         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
75425         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
75426         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
75427         The check for ssize_t was mistakenly run before the test for unistd.h.
75428
75429         The configure-time check for stdbool.h was missing.
75430         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
75431         (jm_PREREQ_HASH): New function.
75432
75433 2001-01-17  Jim Meyering  <meyering@lucent.com>
75434
75435         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
75436         for autoconf-2.49c.
75437         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
75438
75439 2001-01-16  Jim Meyering  <meyering@lucent.com>
75440
75441         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
75442         From Bruno Haible.
75443
75444 2001-01-14  Jim Meyering  <meyering@lucent.com>
75445
75446         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
75447         foo and bar.  Create conftestdir/ in the script, not in the C code.
75448         Remove directories in the script, not in the C code.
75449         Remove conftestdir{,2} before trying to create the directory.
75450         Make the entire configure script fail if the mkdir fails.
75451
75452 2001-01-14  Jim Meyering  <meyering@lucent.com>
75453
75454         * lib/rename.c: New file.  From Volker Borchert.
75455         Include stdlib.h, string.h or strings.h, and xalloc.h.
75456         Use strip_trailing_slashes rather than open-coding it.
75457
75458 2001-01-03  Paul Eggert  <eggert@twinsun.com>
75459
75460         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
75461
75462 2001-01-03  Jim Meyering  <meyering@lucent.com>
75463
75464         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
75465         of local `inptr' to avoid warning with some system declarations of
75466         iconv.
75467
75468 2001-01-02  Volker Borchert  <bt@teknon.de>
75469
75470         * m4/rename.m4: New file.
75471         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
75472
75473 2001-01-01  Jim Meyering  <meyering@lucent.com>
75474
75475         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
75476         even on systems with utmpx.h.  It's necessary for the declaration of
75477         utmp's ut_user member.  Reported by Andreas Jaeger.
75478
75479         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
75480         available. They are required for the declarations of getgrgid and
75481         getpwuid resp.
75482         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
75483         Reported by Andreas Jaeger.
75484
75485 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
75486
75487         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
75488         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
75489         so `make install' also works in VPATH builds.
75490
75491 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
75492
75493         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
75494         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
75495         can be used in subdirectories.
75496
75497 2000-12-29  Paul Eggert  <eggert@twinsun.com>
75498
75499         * lib/modechange.c: Do not assume that mode_t uses the
75500         traditional octal encoding.  E.g. "chmod 1 FOO" should set
75501         the other-execute bit of FOO even if S_IXOTH != 1.
75502
75503         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
75504         WOTH, XOTH, ALLM): New macros.
75505         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
75506          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
75507         Use them.
75508         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
75509         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
75510         (mode_compile):
75511         No need to use uintmax_t; unsigned long is long enough.
75512         Don't bother to get suffix since we don't use it.
75513
75514 2000-12-26  Jim Meyering  <meyering@lucent.com>
75515
75516         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
75517         better with autoheader.
75518
75519 2000-12-24  Jim Meyering  <meyering@lucent.com>
75520
75521         * lib/hash.c (is_prime): Return explicit boolean values.
75522         (hash_get_first): Return NULL to appease Irix5.6's 89.
75523         Reported by Nelson Beebe.
75524
75525 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
75526
75527         * lib/localcharset.c (locale_charset): Add support for Win32.
75528
75529 2000-12-18  Paul Eggert  <eggert@twinsun.com>
75530
75531         * lib/physmem.h, lib/physmem.c: New files.
75532
75533         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
75534         (noinst_HEADERS): Add physmem.h.
75535
75536         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
75537         't' for compatibility with Solaris 8 sort.
75538
75539 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
75540
75541         * lib/config.charset: Add support for BeOS.
75542
75543 2000-12-17  Jim Meyering  <meyering@lucent.com>
75544
75545         * m4/dos.m4 (jm_AC_DOS): New file and macro.
75546         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
75547
75548 2000-12-16  Jim Meyering  <meyering@lucent.com>
75549
75550         This bug had a serious impact on chown: `chown N:M FILE' (for integer
75551         N and M) would have treated it like `chown N:N FILE'.
75552
75553         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
75554
75555 2000-12-16  Jim Meyering  <meyering@lucent.com>
75556
75557         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
75558         SHELLS_FILE to a file name that's useful on djgpp systems.
75559         Include stdlib.h.
75560         (ADDITIONAL_DEFAULT_SHELLS): Define.
75561         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
75562         Based mostly on a patch from Prashant TR.
75563
75564 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
75565
75566         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
75567         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
75568         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
75569
75570 2000-12-08  Andreas Schwab  <schwab@suse.de>
75571
75572         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
75573         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
75574
75575 2000-12-07  Jim Meyering  <meyering@lucent.com>
75576
75577         * lib/stripslash.c (ISSLASH): Define.
75578         (strip_trailing_slashes): Use ISSLASH rather than comparing against
75579         `/'.
75580         From Prashant TR.
75581
75582         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
75583         (dir_name_r): Declare this function as static.
75584         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
75585         manifest itself on a name containing a mix of slashes and
75586         backslashes.
75587         Make this function work with names starting with a DOS-style
75588         drive letter and colon prefix.
75589         (dir_name): Append `.' if necessary.
75590         Based mostly on patches from Prashant TR and Eli Zaretskii.
75591
75592         * lib/dirname.h (dir_name_r): Remove prototype.
75593
75594 2000-12-06  Paul Eggert  <eggert@twinsun.com>
75595
75596         * m4/off_t-format.m4: Remove this file.
75597         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
75598
75599 2000-12-06  Jim Meyering  <meyering@lucent.com>
75600
75601         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
75602         replacement strtoull, we may well need the replacement strtoul, too.
75603         Check for declarations of strtoul and strtoull.
75604         Check for strtol.  Mainly as a cue to cause automake to include
75605         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
75606         Check for limits.h -- strtol.c needs it.
75607
75608 2000-12-05  Jim Meyering  <meyering@lucent.com>
75609
75610         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
75611
75612 2000-12-04  Jim Meyering  <meyering@lucent.com>
75613
75614         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
75615         Also include memory.h, stdlib.h, unistd.h if appropriate.
75616         Reported by Andreas Jaeger (conflicting declaration of malloc).
75617
75618 2000-12-02  Jim Meyering  <meyering@lucent.com>
75619
75620         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
75621         * m4/jm-macros.m4 (jm_MACROS): require it.
75622
75623 2000-12-02  Jim Meyering  <meyering@lucent.com>
75624
75625         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
75626
75627 2000-12-01  Paul Eggert  <eggert@twinsun.com>
75628
75629         * lib/memrchr.c: Include <config.h> before any system include file.
75630
75631 2000-11-30  Jim Meyering  <meyering@lucent.com>
75632
75633         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
75634
75635 2000-11-30  Jim Meyering  <meyering@lucent.com>
75636
75637         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
75638
75639 2000-11-29  Paul Eggert  <eggert@twinsun.com>
75640
75641         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
75642
75643 2000-11-26  Jim Meyering  <meyering@lucent.com>
75644
75645         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
75646
75647 2000-11-22  Paul Eggert  <eggert@twinsun.com>
75648
75649         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
75650         size of (size_t) -1; it's not portable.
75651
75652 2000-11-17  Jim Meyering  <meyering@lucent.com>
75653
75654         * lib/strstr.c: Update from GNU libc.
75655
75656 2000-11-17  Akim Demaille  <akim@epita.fr>
75657
75658         * lib/obstack.h: Formatting changes.
75659         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
75660         prevent type checking.
75661         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
75662         cast the value to (void *): assigning a `foo *' to a `void *'
75663         variable is valid.
75664         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
75665
75666 2000-11-16  Jim Meyering  <meyering@lucent.com>
75667
75668         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
75669
75670 2000-11-11  Jim Meyering  <meyering@lucent.com>
75671
75672         * lib/error.c: Add a couple #includes, merging from GNU libc version.
75673
75674 2000-11-10  Jim Meyering  <meyering@lucent.com>
75675
75676         * lib/obstack.h: Update from GNU libc.
75677         * lib/obstack.c: Likewise.
75678
75679 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
75680
75681         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
75682
75683 2000-11-06  Paul Eggert  <eggert@twinsun.com>
75684
75685         * lib/getusershell.c (setusershell): Use rewind rather than
75686         fseek/fseeko, to avoid configuration hassles with fseeko.
75687         Don't bother opening SHELLS_FILE if shellstream is NULL;
75688         it's not necessary.
75689
75690 2000-11-05  Jim Meyering  <meyering@lucent.com>
75691
75692         * lib/makepath.h (make_dir): Declare.
75693         * lib/makepath.c (make_dir): Remove `static' attribute.
75694         Tweak a comment.
75695
75696 2000-11-04  Jim Meyering  <meyering@lucent.com>
75697
75698         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
75699
75700 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
75701
75702         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
75703         last one in a bucket, advance to the next bucket.
75704
75705 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
75706
75707         * lib/fnmatch.c: Do not comment out all the code if we are using
75708         the GNU C library, because in some cases we are replacing buggy
75709         code in the GNU C library itself.
75710
75711 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
75712
75713         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
75714         (regex_compile): Catch bogus \(\1\).
75715
75716 2000-10-30  Paul Eggert  <eggert@twinsun.com>
75717
75718         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
75719         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
75720         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
75721
75722 2000-10-30  Paul Eggert  <eggert@twinsun.com>
75723
75724         * lib/error.h, getline.h, modechange.h:
75725         Remove "2000" from Copyright line, as the file hasn't been
75726         changed this year other than in the copyright notice.
75727
75728         * lib/xalloc.h: Add "2000" to Copyright line, as this file
75729         was changed this year.
75730
75731 2000-10-29  Jim Meyering  <meyering@lucent.com>
75732
75733         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
75734         renaming.
75735         * m4/ls-mntd-fs.m4: Likewise
75736
75737 2000-10-29  Jim Meyering  <meyering@lucent.com>
75738
75739         * lib/xstat.in: Fix grammar in comment.
75740
75741 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
75742
75743         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
75744         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
75745         doesn't define __restrict_arr.
75746
75747 2000-10-28  Jim Meyering  <meyering@lucent.com>
75748
75749         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
75750         (jm_PREREQ_MEMCHR): New function.
75751
75752 2000-10-28  Jim Meyering  <meyering@lucent.com>
75753
75754         * lib/memchr.c: Update from libc.
75755         Adjust for portability:
75756         [HAVE_STDLIB_H]: Include stdlib.h.
75757         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
75758         Undef __memchr, too.
75759         [!weak_alias]: Define __memchr to memchr.
75760
75761         * lib/regex.c: Update from libc.
75762         * lib/regex.h: Likewise.
75763         * lib/getopt1.c: Likewise.
75764         * lib/memcmp.c: Likewise.
75765
75766         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
75767         Avoid using fseek, when possible -- it's broken by design.
75768         Patch by Ulrich Drepper.
75769
75770 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
75771
75772         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
75773         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
75774         Giving in to popular pressure to shut up the compiler with casts.
75775
75776 2000-10-26  Jim Meyering  <meyering@lucent.com>
75777
75778         * lib/strftime.c: Update from libc.
75779
75780 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
75781
75782         * regex.c: More `unsigned char' -> `re_char' changes.
75783         Also change several `int' into `re_wchar_t'.
75784         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
75785         (PUSH_FAILURE_POINTER): Don't cast any more.
75786         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
75787         We want GCC to complain, since this piece of code makes
75788         re_match non-reentrant, which *should* be fixed.
75789         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
75790         (EXTEND_BUFFER): Use RETALLOC.
75791         (SET_LIST_BIT): Don't cast.
75792         (re_wchar_t): New type.
75793         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
75794         that those two functions will always properly return.
75795         (IMMEDIATE_QUIT_CHECK): Cast to void.
75796         (analyse_first): Use recursion rather than an explicit stack.
75797         (re_compile_fastmap): Can't fail anymore.
75798         (re_search_2): Don't check re_compile_fastmap for failure.
75799         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
75800         Now also sets the new value (passed in a new argument).
75801         (re_match_2_internal): Use it.
75802         Also, use a new var `reg' of type size_t when looping through regs
75803         rather than reuse the inappropriate `mcnt'.
75804
75805 2000-10-25  Jim Meyering  <meyering@lucent.com>
75806
75807         * lib/obstack.c: Update from libc.
75808
75809 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
75810
75811         * regex.c (regex_compile): Change the way of handling a range from
75812         a char less than 256 to a char not less than 256.
75813
75814 2000-10-24  Andrew Innes  <andrewi@gnu.org>
75815
75816         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
75817         NT-Emacs only.
75818         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
75819         so that re_search functions only quit when callers expect them to.
75820
75821 2000-10-23  Jim Meyering  <meyering@lucent.com>
75822
75823         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
75824         wrong.  That set_locale call must not have any side effects.
75825         From Paul Eggert.
75826
75827 2000-10-22  Jim Meyering  <meyering@lucent.com>
75828
75829         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
75830         [CYCLIC]: Remove now-unused definition.
75831
75832         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
75833         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
75834         Suggestion from Ulrich Drepper.
75835
75836 2000-10-21  Jim Meyering  <meyering@lucent.com>
75837
75838         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
75839         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
75840         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
75841
75842 2000-10-21  Jim Meyering  <meyering@lucent.com>
75843
75844         * lib/dirname.c (memrchr): Declare if necessary.
75845         (dir_name): Remove the restriction that there be no
75846         trailing slashes.  Now, this code skips past them, effectively
75847         ignoring them.
75848         [TEST_DIRNAME] (main): New unit tests.
75849
75850         * lib/memrchr.c: New file from GNU libc.
75851         Undef __memrchr, too.
75852         [!weak_alias]: Define __memrchr to memrchr.
75853         Guard weak_alias use with `#ifdef weak_alias'.
75854
75855 2000-10-21  Jim Meyering  <meyering@lucent.com>
75856
75857         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
75858         (dir_name): Use dir_name_r.
75859         * lib/dirname.h (dir_name_r): Declare it.
75860
75861 2000-10-17  Jim Meyering  <meyering@lucent.com>
75862
75863         * lib/quote.h (PARAMS): Define and use.
75864         Reported by Akim Demaille.
75865
75866         * lib/getopt.c: Update from libc.
75867
75868 2000-10-16  Jim Meyering  <meyering@lucent.com>
75869
75870         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
75871         setlocale.
75872         From Jan Fedak.
75873
75874 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
75875
75876         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
75877
75878 2000-09-25  Jim Meyering  <meyering@lucent.com>
75879
75880         * lib/md5.h (rol): Define (from GnuPG).
75881
75882         * lib/sha.c: Give credit (GnuPG) where due.
75883         (M): Use rol rather than open-coding it.
75884         Add a FIXME comment.
75885
75886 2000-09-21  Jim Meyering  <meyering@lucent.com>
75887
75888         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
75889         Reported by Michael Stone.
75890
75891 2000-09-20  Jim Meyering  <meyering@lucent.com>
75892
75893         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
75894         (noinst_HEADERS): Add sha.h.
75895         Based on code from Scott G. Miller and from GnuPG.
75896
75897 2000-09-18  Jim Meyering  <meyering@lucent.com>
75898
75899         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
75900         LIBS. Otherwise, everyone ends up linking with -lelf for some
75901         configurations.
75902         Reported by Mike Stone.
75903
75904 2000-09-15  Jim Meyering  <meyering@lucent.com>
75905
75906         * lib/regex.c: Update from libc.
75907
75908 2000-09-10  Jim Meyering  <meyering@lucent.com>
75909
75910         * lib/getopt.c (_getopt_internal): Update from glibc.
75911
75912 2000-09-09  Jim Meyering  <meyering@lucent.com>
75913
75914         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
75915         think it should be used as a general replacement for isascii.
75916         * lib/fnmatch.c: Likewise.
75917         * lib/mbswidth.c: Likewise
75918         * lib/regex.c: Likewise.
75919
75920         Don't use atoi.
75921         * lib/userspec.c: Include sys/param.h and limits.h.
75922         Include xstrtol.h.
75923         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
75924         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
75925         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
75926         UID, GID.  Check range.
75927
75928 2000-09-06  Jim Meyering  <meyering@lucent.com>
75929
75930         * lib/getopt.c (_getopt_internal): Update from glibc.
75931
75932 2000-08-30  Jim Meyering  <meyering@lucent.com>
75933
75934         * lib/strftime.c: Merge in changes from GNU libc.
75935
75936 2000-08-26  Jim Meyering  <meyering@lucent.com>
75937
75938         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
75939         * m4/fpending.m4: New file.
75940
75941 2000-08-26  Jim Meyering  <meyering@lucent.com>
75942
75943         * lib/closeout.c: Include "__fpending.h".
75944         (close_stdout_status): Return right away if there's nothing to flush.
75945
75946         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
75947         * lib/__fpending.c: New file.
75948         * lib/__fpending.h: New file.
75949
75950 2000-08-20  Jim Meyering  <meyering@lucent.com>
75951
75952         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
75953         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
75954         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
75955
75956 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
75957
75958         Improve fileutils installation on systems where running
75959         programs (like install) can't be unlinked.
75960         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
75961         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
75962
75963 2000-08-07  Paul Eggert  <eggert@twinsun.com>
75964
75965         Standardize on "memory exhausted" instead of "Memory exhausted"
75966         or "virtual memory exhausted".
75967         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
75968         "virtual memory exhausted".
75969         * lib/same.c (same_name): Invoke xalloc_die instead of printing
75970         our own message.
75971         * lib/userspec.c (parse_user_spec): Likewise.
75972         * lib/bumpalloc.h: comment fix
75973         * lib/same.c, userspec.c: Include xalloc.h.
75974
75975         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
75976         not char *const and pointing to a constant array.
75977         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
75978         (xrealloc): Comment fix.
75979
75980         * lib/userspec.c (parse_user_spec):
75981         Don't translate a message until just before returning,
75982         to avoid unnecessary translation.
75983
75984 2000-08-07  Jim Meyering  <meyering@lucent.com>
75985
75986         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
75987         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
75988         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
75989         getgroups.c, gethostname.c, getopt.h, group-member.c,
75990         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
75991         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
75992         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
75993         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
75994         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
75995         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
75996         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
75997         yesno.c: Back out Copyright date changes for each file with no change
75998         this year.  This eases coordination with other programs using the same
75999         source code modules.  From Paul Eggert.
76000
76001 2000-08-06  Paul Eggert  <eggert@twinsun.com>
76002
76003         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
76004         not char, for compatibility with glibc 2.1.3 strftime.c.
76005
76006 2000-08-03  Greg McGary  <greg@mcgary.org>
76007
76008         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
76009         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
76010         (EXTEND_BUFFER): Use them.
76011
76012 2000-08-01  Jim Meyering  <meyering@lucent.com>
76013
76014         * lib/dirname.c (ISSLASH): Define.
76015         (BACKSLASH_IS_PATH_SEPARATOR): Define.
76016         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
76017         both `\' and `/' may be use as path separators.
76018         Based on a patch from Prashant TR.
76019
76020 2000-07-31  Paul Eggert  <eggert@twinsun.com>
76021
76022         * lib/quotearg.c (quotearg_n_options): Don't make the initial
76023         slot vector a constant, since it might get modified.
76024
76025 2000-07-31  Jim Meyering  <meyering@lucent.com>
76026
76027         * lib/xmalloc.c: Use `virtual memory exhausted', not
76028         `Memory exhausted'.
76029         * lib/obstack.c (print_and_abort): Likewise.
76030
76031 2000-07-30  Paul Eggert  <eggert@twinsun.com>
76032
76033         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
76034         buffer, so that the caller can always quote one small
76035         component of a "memory exhausted" message in slot 0.
76036         From a suggestion by Jim Meyering.
76037
76038 2000-07-30  Jim Meyering  <meyering@lucent.com>
76039
76040         * lib/makepath.c (make_path): Quote the other instance, too.
76041
76042         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
76043         (STATIC_BUF_SIZE): Define.
76044         (quotearg_n_options): Use only statically allocated storage when
76045         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
76046         than STATIC_BUF_SIZE.
76047
76048 2000-07-29  Jim Meyering  <meyering@lucent.com>
76049
76050         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
76051         * lib/dirname.c (dir_name): Likewise.
76052
76053         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
76054         `/'.
76055
76056         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
76057         (dir_name): Assert that there are no trailing slashes.
76058
76059 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
76060
76061         * lib/mbswidth.h (mbswidth): Add a flags argument.
76062         (mbswidth): New declaration.
76063         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
76064         * lib/mbswidth.c (mbswidth): Add a flags argument.
76065         (mbsnwidth): New function.
76066
76067 2000-07-24  Jim Meyering  <meyering@lucent.com>
76068
76069         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
76070
76071 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76072
76073         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
76074
76075 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76076
76077         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
76078         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
76079         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
76080         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
76081         invoke multibyte primitives.
76082
76083 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76084
76085         * lib/quotearg.c:
76086         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
76087         so that mbstate_t is always defined.
76088
76089         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
76090         be 1 in at least one GCC installation, and this configuration
76091         error is likely to be common.  Ignoring MB_LEN_MAX hurts
76092         performance on hosts that have mbrtowc but have only unibyte
76093         locales, but I assume these hosts are rare.
76094
76095 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76096
76097         * lib/mbswidth.c (_XOPEN_SOURCE):
76098         Don't define; this causes problems on Solaris 7.
76099         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
76100
76101 2000-07-23  Jim Meyering  <meyering@lucent.com>
76102
76103         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
76104         too: getgrgid, getpwuid, getuid.
76105
76106 2000-07-23  Jim Meyering  <meyering@lucent.com>
76107
76108         * lib/basename.c (base_name): Add an assertion.
76109
76110 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
76111
76112         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
76113         shadow its mbsinit function.
76114
76115 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
76116
76117         * lib/mbswidth.h: New file.
76118         * lib/mbswidth.c: New file.
76119         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
76120         (noinst_HEADERS): Add mbswidth.h.
76121
76122 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
76123
76124         * lib/config.charset: Add support for FreeBSD. Improve support for
76125         HP-UX and IRIX 6.
76126
76127 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
76128
76129         * m4/mbswidth.m4: New file.
76130         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
76131
76132 2000-07-15  Jim Meyering  <meyering@lucent.com>
76133
76134         * lib/makepath.c: Include quote.h.
76135         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
76136         corresponding argument in a `quote (...)' call.
76137         Give better diagnostics.
76138
76139         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
76140         (noinst_HEADERS): Add quote.h.
76141
76142         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
76143         from tar's src/misc.c.
76144         * lib/quote.h: New file.  Prototypes for same.
76145
76146 2000-07-14  Paul Eggert  <eggert@twinsun.com>
76147
76148         From a suggestion by Bruno Haible.
76149         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
76150         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
76151         to decide whether to define the BeOS workaround macro;
76152         this adjusts to the change to AC_MBSTATE_T.
76153
76154 2000-07-14  Jim Meyering  <meyering@lucent.com>
76155
76156         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
76157         jm_AC_TYPE_UINTMAX_T.
76158
76159 2000-07-13  Paul Eggert  <eggert@twinsun.com>
76160
76161         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
76162
76163         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
76164         quotearg_buffer_restyled): Add support for
76165         clocale_quoting_style.  Undo previous change to
76166         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
76167         and "{RIGHT QUOTATION MARK}" msgids.
76168
76169 2000-07-10  Paul Eggert  <eggert@twinsun.com>
76170
76171         From a suggestion by Bruno Haible.
76172         * m4/mbstate_t.m4 (AC_MBSTATE_T):
76173         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
76174         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
76175         and mbstate_t, to a single-part test that simply defines mbstate_t.
76176         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
76177         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
76178
76179 2000-07-10  Jim Meyering  <meyering@lucent.com>
76180
76181         * m4/strerror_r.m4: Mirror the correction made in autoconf.
76182
76183         * m4/gnu-source.m4: Output to confdefs.h directly.
76184         Suggestion from Akim Demaille.
76185
76186 2000-07-09  Paul Eggert  <eggert@twinsun.com>
76187
76188         The old behavior of quoting `like this' doesn't look good with
76189         newer, ISO-style fonts.  See:
76190         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
76191
76192         Instead, quote "like this" by default.  Let the translator
76193         tailor the locale-specific quoting behavior by providing
76194         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
76195
76196         * lib/quotearg.c (N_): New macro.
76197         (gettext_default): New function.
76198         (quotearg_buffer_restyled): Use
76199         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
76200         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
76201
76202 2000-07-09  Jim Meyering  <meyering@lucent.com>
76203
76204         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
76205         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
76206
76207         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
76208         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
76209
76210 2000-07-09  Jim Meyering  <meyering@lucent.com>
76211
76212         * lib/Most files: Update copyright dates to include 2000.
76213
76214 2000-07-08  Jim Meyering  <meyering@lucent.com>
76215
76216         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
76217         if not defined.
76218         (xgethostname): Remove now-unnecessary #ifdef.
76219         Move declaration of `err' into loop where it's used.
76220
76221 2000-07-05  Paul Eggert  <eggert@twinsun.com>
76222         and Bruno Haible  <haible@clisp.cons.org>
76223
76224         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
76225         only if the test for an object-type mbstate_t fails.  This
76226         prevents us from mistakenly reporting that mbstate_t is a
76227         system object type after we "#define mbstate_t int" to work
76228         around its lack.
76229
76230 2000-07-05  Paul Eggert  <eggert@twinsun.com>
76231         and Bruno Haible  <haible@clisp.cons.org>
76232
76233         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
76234
76235 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
76236
76237         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
76238         to strerror_r.
76239         Include <ctype.h> for use of isalpha.
76240
76241 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
76242
76243         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
76244         by allocating a larger buffer. Test the gethostname return value for
76245         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
76246         returns an error and ENAMETOOLONG isn't defined.
76247
76248 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
76249
76250         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
76251         dimension.
76252
76253 2000-07-04  Jim Meyering  <meyering@lucent.com>
76254
76255         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
76256         of the deprecated AC_CHECKING.
76257
76258 2000-07-04  Jim Meyering  <meyering@lucent.com>
76259
76260         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
76261         Reported by Bruno Haible.
76262
76263 2000-07-04  Jim Meyering  <meyering@lucent.com>
76264
76265         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
76266         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
76267         lacks mbrtowc.
76268
76269 2000-07-03  Paul Eggert  <eggert@twinsun.com>
76270
76271         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
76272         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
76273
76274 2000-07-03  Paul Eggert  <eggert@twinsun.com>
76275         and Bruno Haible  <haible@clisp.cons.org>
76276
76277         * lib/quotearg.c (mbrtowc):
76278         Assign to *pwc, and return 1 only if result is nonzero.
76279         (iswprint): Use ISPRINT when substituting our own mbrtowc.
76280
76281 2000-07-03  Jim Meyering  <meyering@lucent.com>
76282
76283         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
76284
76285 2000-07-03  Jim Meyering  <meyering@lucent.com>
76286
76287         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
76288         This is necessary to get a definition of e.g., UTMP_FILE on
76289         HP-UX 10.20.
76290         From Bob Proulx.
76291
76292 2000-07-02  Jim Meyering  <meyering@lucent.com>
76293
76294         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
76295
76296         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
76297         AC_LIBOBJ(function_name).
76298         * m4/chown.m4: Likewise.
76299         * m4/fnmatch.m4: Likewise.
76300         * m4/ftruncate.m4: Likewise.
76301         * m4/getgroups.m4: Likewise.
76302         * m4/getline.m4: Likewise.
76303         * m4/group-member.m4: Likewise.
76304         * m4/jm-macros.m4: Likewise.
76305         * m4/lstat.m4: Likewise.
76306         * m4/malloc.m4: Likewise.
76307         * m4/memcmp.m4: Likewise.
76308         * m4/nanosleep.m4: Likewise.
76309         * m4/putenv.m4: Likewise.
76310         * m4/realloc.m4: Likewise.
76311         * m4/regex.m4: Likewise.
76312         * m4/stat.m4: Likewise.
76313         * m4/strftime.m4: Likewise.
76314
76315 2000-07-02  Jim Meyering  <meyering@lucent.com>
76316
76317         * lib/quotearg.c (mbstate_t): Don't define here.
76318
76319 2000-07-02  Jim Meyering  <meyering@lucent.com>
76320
76321         * lib/nanosleep.c (SIGCONT): Define if not already defined.
76322
76323 2000-07-01  Jim Meyering  <meyering@lucent.com>
76324
76325         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
76326
76327 2000-07-01  Jim Meyering  <meyering@lucent.com>
76328
76329         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
76330         problem.
76331
76332 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
76333
76334         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
76335         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
76336
76337 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
76338
76339         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
76340         per change in ../m4/ls-mntd-fs.m4.
76341         (read_filesystem_list): Ignore symbolic links.
76342
76343 2000-06-29  Jim Meyering  <meyering@lucent.com>
76344
76345         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
76346         for declaration of strcmp.
76347
76348         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
76349
76350         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
76351         Avoid warning by casting result to `char *' to remove `const'.
76352
76353 2000-06-28  Jim Meyering  <meyering@lucent.com>
76354
76355         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
76356         included by quotearg.c, for which we perform this test.  From
76357         Bruno Haible.
76358
76359 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
76360
76361         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
76362         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
76363         <utmpx.h> exists, put readutmp.o into LIBOBJS.
76364
76365 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
76366
76367         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
76368
76369 2000-06-26  Paul Eggert  <eggert@twinsun.com>
76370
76371         savedir now sets errno on failure and invokes xmalloc to get memory.
76372         Fix a couple of other minor bugs while we're at it.
76373
76374         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
76375         (NAMLEN): Remove macro.
76376         (malloc, realloc): Remove decls.
76377         (stpcpy): Likewise.
76378         ("xalloc.h"): Include.
76379         (NAME_SIZE_DEFAULT): New macro.
76380         (savedir): Use xmalloc / xrealloc to allocate memory.
76381         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
76382         Skip "" directory entries.
76383         Use strlen to calculate directory entry length, since the old method
76384         is rarely used these days and isn't worth supporting.
76385         Don't use a pointer after freeing it.
76386         Check for integer overflow when calculating allocation size.
76387         Use memcpy to copy entries, instead of stpcpy.
76388         Set errno properly when returning NULL.
76389         Check for readdir error.
76390
76391 2000-06-26  Jim Meyering  <meyering@lucent.com>
76392
76393         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
76394
76395 2000-06-25  Jim Meyering  <meyering@lucent.com>
76396
76397         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
76398         Linux header bug when _XOPEN_SOURCE is defined to 500.
76399
76400 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
76401
76402         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
76403         deficiency.
76404
76405 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
76406
76407         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
76408         Include xalloc.h.
76409         Don't include <stdlib.h>.  Don't declare malloc, realloc.
76410
76411 2000-06-24  Jim Meyering  <meyering@lucent.com>
76412
76413         * m4/strerror_r.m4: Revive this file -- to try out an experimental
76414         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
76415         for which strerror does return char*, but which lacks a conveniently
76416         accessible declaration of the function.  If the compile-test says
76417         strerror_r doesn't work, then resort to a `run'-test that works on
76418         BeOS and segfaults on DEC Unix.
76419
76420 2000-06-24  Jim Meyering  <meyering@lucent.com>
76421
76422         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
76423
76424 2000-06-23  Paul Eggert  <eggert@twinsun.com>
76425
76426         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
76427         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
76428
76429 2000-06-23  Paul Eggert  <eggert@twinsun.com>
76430
76431         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
76432         (mbrtowc, mbstate_t): Define substitutes if
76433         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
76434         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
76435         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
76436
76437 2000-06-23  Jim Meyering  <meyering@lucent.com>
76438
76439         * m4/afs.m4: Add missing AC_MSG_RESULT.
76440         Reported by Bruno Haible.
76441
76442         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
76443         Suggestion from Bruno Haible.
76444
76445 2000-06-23  Jim Meyering  <meyering@lucent.com>
76446
76447         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
76448
76449 2000-06-21  Jim Meyering  <meyering@lucent.com>
76450
76451         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
76452
76453 2000-06-21  Jim Meyering  <meyering@lucent.com>
76454
76455         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
76456         (noinst_HEADERS): Add getstr.h.
76457
76458         * lib/getline.c (getstr): Move into a separate file.
76459         * lib/getstr.c (getstr): New file, extracted from getline.c, with
76460         the following changes: new parameter, delim2; both delim[12]
76461         parameters have type `int', not `char'.  The latter would lose
76462         with 8-bit delimiters.
76463         * lib/getstr.h: New file.
76464
76465 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
76466
76467         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
76468         than 1024, return a memory chunk of least possible size, instead
76469         of size PATH_MAX + 2. In the loop, increment the size proportionally.
76470         Use free/xmalloc instead of xrealloc to avoid copying for very long
76471         paths.
76472
76473 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
76474
76475         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
76476         the empty string.
76477
76478 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
76479
76480         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
76481         address, not strdup.  Include <stdlib.h> and don't declare free().
76482
76483 2000-06-19  Jim Meyering  <meyering@lucent.com>
76484
76485         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
76486
76487 2000-06-18  Jim Meyering  <meyering@lucent.com>
76488
76489         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
76490
76491         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
76492         `checking whether...' message to be consistent with that of the
76493         lstat test.
76494
76495 2000-06-18  Jim Meyering  <meyering@lucent.com>
76496
76497         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
76498         Besides, these days every porting target provides a mkdir function.
76499
76500         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
76501         needed. (this snippet comes from src/system.h).
76502
76503 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
76504
76505         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
76506
76507 2000-06-15  Paul Eggert  <eggert@twinsun.com>
76508
76509         * lib/human.c (adjust_value): New function.
76510         (human_readable_inexact): Apply rounding style even when
76511         printing approximate values.
76512
76513 2000-06-14  Paul Eggert  <eggert@twinsun.com>
76514
76515         * lib/human.c (human_readable_inexact): Allow an input block
76516         size that is not a multiple of the output block size, and vice versa.
76517         Reported by Piergiorgio Sartor.
76518
76519 2000-06-14  Paul Eggert  <eggert@twinsun.com>
76520
76521         * lib/getdate.y (get_date): Apply relative times after time
76522         zone indicator, not before.  Reported by Todd A. Jacobs.
76523
76524 2000-06-13  Jim Meyering  <meyering@lucent.com>
76525
76526         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
76527
76528         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
76529
76530 2000-06-12  Paul Eggert  <eggert@twinsun.com>
76531
76532         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
76533
76534 2000-06-12  Jim Meyering  <meyering@lucent.com>
76535
76536         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
76537         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
76538         optional argument.
76539         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
76540         the optional argument, `lib'.
76541
76542 2000-06-08  Jim Meyering  <meyering@lucent.com>
76543
76544         * m4/largefile.m4: Remove file (now that it's part of autoconf).
76545
76546 2000-06-04  Paul Eggert  <eggert@twinsun.com>
76547
76548         Rewrite largefile configuration so that we don't need to run
76549         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
76550         AC_CANONICAL_HOST in configure.in -- jmm]
76551
76552         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
76553         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
76554         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
76555         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
76556         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
76557         All uses changed.
76558         Instead of inspecting the output of getconf, try to compile the
76559         test program without and with the macro definition.
76560         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
76561         for getconf.  Instead, check for the needed flags by compiling
76562         test programs.
76563
76564 2000-06-04  Paul Eggert  <eggert@twinsun.com>
76565
76566         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
76567
76568 2000-06-04  Jim Meyering  <meyering@lucent.com>
76569
76570         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
76571         SunOS 4.1.4 for which gid_t is an unsigned type.
76572
76573 2000-06-03  Jim Meyering  <meyering@lucent.com>
76574
76575         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
76576         now that autoconf requires that.
76577
76578         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
76579         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
76580         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
76581
76582 2000-06-03  Jim Meyering  <meyering@lucent.com>
76583
76584         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
76585
76586 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
76587
76588         * m4/glibc21.m4: New file.
76589         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
76590
76591 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
76592
76593         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
76594         newer, don't install charset.alias.
76595         * lib/config.charset: Change the Linux/glibc rules so they become empty
76596         on glibc-2.1 or newer.
76597
76598 2000-06-02  Jim Meyering  <meyering@lucent.com>
76599
76600         * lib/mountlist.c: Back out last change.  Instead, do this...
76601         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
76602         me_dummy member using the same `ignore'-testing code.
76603         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
76604         fs_type strings.
76605         From Mark D. Roth.
76606
76607 2000-05-29  Jim Meyering  <meyering@lucent.com>
76608
76609         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
76610         mounts with the `ignore' attribute.  Based on a patch from
76611         Mark D. Roth.
76612
76613 2000-05-28  Jim Meyering  <meyering@lucent.com>
76614
76615         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
76616         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76617         * m4/stat.m4: Likewise.
76618         * m4/lstat.m4: Likewise.
76619         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
76620
76621         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
76622         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
76623
76624 2000-05-26  Jim Meyering  <meyering@lucent.com>
76625
76626         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
76627
76628 2000-05-24  Jim Meyering  <meyering@lucent.com>
76629
76630         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
76631         autoconf requires that.
76632         * m4/lib-check.m4: Likewise.
76633         * m4/jm-macros.m4: Likewise.
76634         * m4/strftime.m4: Likewise.
76635
76636         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
76637         AC_CHECK_DECLS, now that autoconf requires that.
76638
76639 2000-05-22  Jim Meyering  <meyering@lucent.com>
76640
76641         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76642         * m4/lstat.m4: Likewise.
76643
76644 2000-05-22  Jim Meyering  <meyering@lucent.com>
76645
76646         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
76647
76648 2000-05-20  Jim Meyering  <meyering@lucent.com>
76649
76650         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
76651         (jm_PREREQ): Use it.
76652
76653 2000-05-18  Jim Meyering  <meyering@lucent.com>
76654
76655         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
76656         back, too, since it may have been modified by allocate_entry.
76657         (hash_delete): Rewrite to use neither the assignment operator
76658         nor the comma operator in an if-expression.
76659
76660 2000-05-15  Paul Eggert  <eggert@twinsun.com>
76661
76662         * lib/closeout.c:
76663         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
76664         Remove; no longer needed.
76665         "quotearg.h": Add include.
76666         (file_name): Do not bother to explicitly initialize to NULL; it's less
76667         efficient on some hosts.
76668         (close_stdout_status): Remove test as to whether stdout was already
76669         closed; it breaks for the case "echo x | sort >&-".
76670         Quote file name colons.
76671         Do not assume that _("write error") lacks format strings.
76672
76673 2000-05-15  Jim Meyering  <meyering@lucent.com>
76674
76675         * lib/version-etc.c (version_etc_copyright): Update the copyright
76676         string used in all --version output.
76677
76678 2000-05-14  Jim Meyering  <meyering@lucent.com>
76679
76680         * lib/closeout.c (close_stdout_set_file_name): New function.
76681         (close_stdout_status): Use new file-scoped global.
76682         Return right away if fstat says the stdout file descriptor is invalid.
76683         * lib/closeout.h (close_stdout_set_file_name): Declare.
76684
76685 2000-05-10  Jim Meyering  <meyering@lucent.com>
76686
76687         * lib/closeout.c [default_exit_status]: New file-scoped variable.
76688         (close_stdout_set_status): New function.
76689         * lib/closeout.h (close_stdout_set_status): Declare.
76690
76691 2000-05-09  Jim Meyering  <meyering@lucent.com>
76692
76693         * m4/gettext.m4: Rename this...
76694         * m4/libintl.m4: ...to this.
76695
76696 2000-05-08  Jim Meyering  <meyering@lucent.com>
76697
76698         * lib/long-options.c: Don't include closeout.h.
76699         (parse_long_options): Don't call close_stdout for --version.
76700
76701 2000-05-06  Paul Eggert  <eggert@twinsun.com>
76702
76703         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
76704         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
76705         2.1.3 bug.  This avoids a clash when files like regex.c define
76706         _GNU_SOURCE.
76707
76708 2000-05-06  Jim Meyering  <meyering@lucent.com>
76709
76710         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
76711         (AC_REPLACE_FUNCS): Add strnlen.
76712
76713         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
76714         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
76715
76716         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
76717         AC_SEARCH_LIBS call for nanosleep.
76718         (LIB_NANOSLEEP): Set and AC_SUBST.
76719
76720 2000-05-06  Jim Meyering  <meyering@lucent.com>
76721
76722         * lib/strnlen.c: Undefine __strnlen and strnlen.
76723         [!weak_alias]: Define __strnlen to strnlen.
76724
76725         * lib/atexit.c: New file, from libiberty.
76726
76727 2000-05-06  Jim Meyering  <meyering@lucent.com>
76728
76729         * lib/closeout.c (close_stdout_status): Also check for errors on the
76730         stderr stream.
76731
76732 2000-05-05  Jim Meyering  <meyering@lucent.com>
76733
76734         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
76735         AC_SEARCH_LIBS call for clock_gettime.
76736         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
76737
76738         * m4/search-libs.m4: Update from autoconf.
76739
76740         su doesn't work on Solaris 2.6.
76741         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
76742         <shadow.h>.  Reported by Dragos Harabor.
76743
76744 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
76745
76746         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
76747         memcpy instead of xmalloc, xrealloc, path_concat.
76748         (locale_charset): Treat empty environment variables as absent.
76749         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
76750
76751 2000-05-04  Jim Meyering  <meyering@lucent.com>
76752
76753         * lib/getopt.c: Update from glibc.
76754         * lib/obstack.c: Likewise.
76755         * lib/obstack.h: Likewise.
76756         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
76757         file
76758
76759         * lib/regex.h: Likewise.
76760         * lib/strndup.c: Likewise.
76761         * lib/strnlen.c: New file, from glibc.
76762
76763 2000-05-03  Jim Meyering  <meyering@lucent.com>
76764
76765         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
76766
76767 2000-05-02  Paul Eggert  <eggert@twinsun.com>
76768
76769         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
76770         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
76771         compile-time test, rather than inspecting host and OS, to
76772         decide whether to define _LARGEFILE_SOURCE.
76773
76774 2000-05-01  Jim Meyering  <meyering@lucent.com>
76775
76776         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
76777
76778         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
76779         Based on a patch from Bruno Haible.
76780
76781 2000-05-01  Jim Meyering  <meyering@lucent.com>
76782
76783         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
76784
76785 2000-04-29  Jim Meyering  <meyering@lucent.com>
76786
76787         * lib/path-concat.c: Declare strdup only if it's not defined.
76788         * lib/canon-host.c: Likewise.
76789
76790 2000-04-28  Jim Meyering  <meyering@lucent.com>
76791
76792         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
76793         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
76794         is included first, then limits.h is included by locale.h by libintl.h.
76795         From John David Anglin.
76796
76797 2000-04-25  Jim Meyering  <meyering@lucent.com>
76798
76799         * lib/makepath.c (S_IRWXUGO): Define.
76800         (make_path): Always perform explicit chmod if MODE specifies any
76801         of the `special' permission bits.  Prompted by a bug report against
76802         install from Mate Wierdl and Joost van Baal.
76803
76804 2000-04-18  Jim Meyering  <meyering@lucent.com>
76805
76806         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
76807         (jm_PREREQ): Use it.
76808
76809 2000-04-18  Jim Meyering  <meyering@lucent.com>
76810
76811         * lib/README: New file.
76812
76813         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
76814         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
76815
76816 2000-04-17  Jim Meyering  <meyering@lucent.com>
76817
76818         Get it right :-)
76819         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
76820         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
76821         Suggestion from Akim Demaille.
76822
76823 2000-04-17  Jim Meyering  <meyering@lucent.com>
76824
76825         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
76826         the definition of it to rpl_strftime also defined-away the system's
76827         declaration.
76828
76829 2000-04-15  Jim Meyering  <meyering@lucent.com>
76830
76831         Use `C' to denote so-called `contiguous' files, the same way
76832         that tar does.
76833         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
76834         (ftypelet): Use S_ISCTG.
76835         From Michael Deutschmann.
76836
76837 2000-04-14  Jim Meyering  <meyering@lucent.com>
76838
76839         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
76840         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
76841         clobbered.
76842
76843 2000-04-14  Jim Meyering  <meyering@lucent.com>
76844
76845         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
76846
76847 2000-04-13  Jim Meyering  <meyering@lucent.com>
76848
76849         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
76850         AH_VERBATIM to insert required #ifndef into config.h.in.
76851         Suggestion from Akim Demaille.
76852
76853 2000-04-12  Jim Meyering  <meyering@lucent.com>
76854
76855         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
76856         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
76857         Christian Krackowizer.
76858
76859         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
76860         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
76861         (AC_SYS_LARGEFILE): Require.
76862         (AM_C_PROTOTYPES): Require.
76863
76864 2000-04-08  Jim Meyering  <meyering@lucent.com>
76865
76866         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
76867         names don't conflict.  Reported by Eli Zaretskii.
76868
76869 2000-04-07  Jim Meyering  <meyering@lucent.com>
76870
76871         * lib/putenv.c: Move inclusion of errno.h so it follows that of
76872         sys/types.h, to work around system header problems on AIX 3.2.5.
76873         From Bruno Haible.
76874
76875 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
76876
76877         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
76878         bug.  Deal with the different error behavior of Irix iconv.
76879
76880 2000-04-05  Paul Eggert  <eggert@twinsun.com>
76881
76882         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
76883         IRIX if the installer said otherwise.
76884
76885 2000-04-05  Jim Meyering  <meyering@lucent.com>
76886
76887         Portability tweaks required for ultrix4.3.
76888         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
76889         (jm_CHECK_DECLS): Add getutent to the list of functions.
76890         (_jm_DECL_HEADERS): Add utmpx.h.
76891         From John David Anglin.
76892
76893         * m4/strftime.m4: Back out the 2000-04-02 change.
76894         Instead of that change, simply undefine putenv in the test program.
76895
76896 2000-04-05  Jim Meyering  <meyering@lucent.com>
76897
76898         Portability tweaks required for ultrix4.3.
76899         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
76900         getutent.
76901         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
76902         * lib/canon-host.c: Declare strdup.
76903         * lib/path-concat.c: Likewise.
76904         From John David Anglin.
76905
76906 2000-04-04  Jim Meyering  <meyering@lucent.com>
76907
76908         Be more DOS 8.3-friendly.
76909         * lib/ref-add.sin: Renamed from ref-add.sed.in.
76910         * lib/ref-del.sin: Renamed from ref-del.sed.in.
76911         * lib/Makefile.am: Reflect renaming.
76912         Reported by Eli Zaretskii.
76913
76914         Use a temporary file name that won't clash with `charset.alias'
76915         in the DOS 8.3 name space.
76916         * lib/Makefile.am (charset_tmp): Define.
76917         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
76918         (uninstall-local): Likewise.
76919         Reported by Eli Zaretskii.
76920
76921 2000-04-03  Jim Meyering  <meyering@lucent.com>
76922
76923         * m4/gettext.m4: Fix typo in comment.
76924
76925         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
76926         textutils/configure.in).  Suggestion from Paul Eggert.
76927         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
76928
76929 2000-04-02  Paul Eggert  <eggert@twinsun.com>
76930
76931         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
76932         variable in the shell rather than using putenv, which isn't
76933         portable.  This avoids the configure-time inter-test dependency
76934         on the potentially-renamed putenv function.
76935
76936 2000-03-30  Paul Eggert  <eggert@twinsun.com>
76937
76938         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
76939         before checking struct stat.st_blksize, so that
76940         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
76941
76942 2000-03-29  Paul Eggert  <eggert@twinsun.com>
76943
76944         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
76945         since strftime.c uses HAVE_STRFTIME to decide whether to use
76946         the underlying strftime.
76947
76948 2000-03-29  Paul Eggert  <eggert@twinsun.com>
76949
76950         * lib/time/strftime.c (my_strftime): Make sure we call the system
76951         strftime, not ourselves, when invoking the underlying strftime.
76952
76953 2000-03-24  Jim Meyering  <meyering@lucent.com>
76954
76955         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
76956         (charset_alias): Define.
76957         (install-exec-local): Factor out common code.
76958         (uninstall-local): Split lines longer than 80.
76959         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
76960         (SUFFIXES): Define.
76961         (.sed.in.sed): New rule.  Don't redirect directly to $@.
76962         (CLEANFILES): Add ref-add.sed and ref-del.sed.
76963
76964 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
76965
76966         * lib/config.charset: Output a line containing "Packages using this
76967         file".
76968         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
76969         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
76970         ref-del.sed): New rules.
76971
76972 2000-03-17  Jim Meyering  <meyering@lucent.com>
76973
76974         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
76975         Otherwise, include <strings.h>
76976
76977 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
76978
76979         * lib/unicodeio.c (utf8_wctomb): New function.
76980         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
76981         format instead of in UCS-4 with platform dependent endianness.
76982
76983 2000-03-10  Jim Meyering  <meyering@lucent.com>
76984
76985         * m4/lib-check.m4: Look for getspnam in -lgen, too.
76986         From Marco Franzen.
76987
76988 2000-03-07  Paul Eggert  <eggert@twinsun.com>
76989
76990         * lib/savedir.c (savedir): Work even if directory size is
76991         negative; this can happen with some screwy NFS configurations.
76992
76993 2000-03-06  Jim Meyering  <meyering@lucent.com>
76994
76995         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
76996         if it's NULL (because we ran out of memory).  From Bruno Haible.
76997
76998 2000-03-05  Jim Meyering  <meyering@lucent.com>
76999
77000         * lib/localcharset.c ("path-concat.h"): Include.
77001         (get_charset_aliases): Use path_concat instead of ANSI string
77002         concatenation.
77003
77004         * lib/unicodeio.h (PARAMS): Define.
77005         Use it to guard prototype.
77006
77007 2000-03-04  Jim Meyering  <meyering@lucent.com>
77008
77009         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
77010         for lib/localcharset.c.
77011
77012 2000-03-04  Jim Meyering  <meyering@lucent.com>
77013
77014         * lib/Makefile.am (install-exec-local): Create $(libdir) before
77015         installing into it.
77016         (uninstall-local): Uncomment this rule so `make distcheck' works
77017         once again.
77018
77019         * lib/unicodeio.c (<errno.h>): Include it.
77020         (errno): Declare if not defined.
77021
77022         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
77023
77024         * lib/config.charset: New version, incorporating remarks from a linux
77025         i18n mailing list.  From Bruno Haible.
77026
77027 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
77028
77029         * m4/codeset.m4: New file.
77030         * m4/iconv.m4: New file.
77031         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
77032
77033 2000-03-03  Jim Meyering  <meyering@lucent.com>
77034
77035         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
77036
77037 2000-03-02  Jim Meyering  <meyering@lucent.com>
77038
77039         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
77040         the messages come out on separate lines.
77041
77042         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
77043         rather than jm_CHECK_DECLARATIONS.
77044         * m4/decl.m4: Remove now-unused file.
77045
77046         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
77047         geteuid.
77048
77049 2000-03-02  Jim Meyering  <meyering@lucent.com>
77050
77051         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
77052
77053 2000-03-01  Jim Meyering  <meyering@lucent.com>
77054
77055         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
77056         * lib/unicodeio.c: Likewise.
77057
77058 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
77059
77060         * lib/config.charset: New file.
77061         * lib/localcharset.c: New file.
77062         * lib/unicodeio.h, lib/unicodeio.c: New files.
77063         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
77064         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
77065         (noinst_HEADERS): Add unicodeio.h.
77066         (all-local, install-exec-local, charset.alias): New targets.
77067
77068 2000-02-28  Paul Eggert  <eggert@twinsun.com>
77069
77070         * lib/quotearg.c (ALERT_CHAR): New macro.
77071         (quotearg_buffer_restyled): Use it.
77072
77073 2000-02-27  Jim Meyering  <meyering@lucent.com>
77074
77075         * m4/check-decl.m4: Add getenv to the list.
77076
77077 2000-02-27  Jim Meyering  <meyering@lucent.com>
77078
77079         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
77080         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
77081
77082         * lib/backupfile.c: Guard inclusion of stdlib.h with
77083         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
77084         Declare malloc if needed.
77085
77086         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
77087         `#ifndef HAVE_DECL..'
77088         now that autoconf always defines the HAVE_DECL_ symbols.
77089         * lib/human.c: Likewise.
77090         * lib/same.c: Likewise.
77091         * lib/strtoumax.c: Likewise.
77092
77093         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
77094         declaration check was not run.
77095         * lib/hash.c: Likewise.
77096         * lib/human.c: Likewise.
77097         * lib/same.c: Likewise.
77098         * lib/strtoumax.c: Likewise.
77099
77100         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
77101         `.', then first look up the entire `.'-containing string as a login
77102         name.
77103
77104 2000-02-23  Jim Meyering  <meyering@lucent.com>
77105
77106         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
77107         in place of my hack.
77108
77109 2000-02-18  Paul Eggert  <eggert@twinsun.com>
77110
77111         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
77112         (textint): New typedef.
77113         (parser_control): Member year changed from int to textint.
77114         All uses changed.
77115         (YYSTYPE): Removed; replaced by %union with int and textint members.
77116         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
77117         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
77118         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
77119         (tSNUMBER, tUNUMBER): Now of type <textintval>.
77120         (date, number, to_year): Use width of number in digits, not its value,
77121         to determine whether it's a 2-digit year, or a 2-digit time.
77122         (yylex): Store number of digits of numeric tokens.
77123         Reported by John Kendall.
77124
77125         (parser_control): Changed from struct parser_control to typedef (for
77126         consistency).  All uses changed.
77127
77128         (tID): Removed; not used.
77129         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
77130
77131 2000-02-14  Paul Eggert  <eggert@twinsun.com>
77132
77133         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
77134         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
77135
77136 2000-02-12  Jim Meyering  <meyering@lucent.com>
77137
77138         * lib/userspec.c (ISDIGIT): Define it.
77139         (isdigit): Remove definition.
77140         (is_number): Use ISDIGIT, not isdigit.
77141         <libintl.h>: Include.
77142         (_ and N_): Define.
77143         (parse_user_spec): Mark translatable strings.
77144
77145 2000-02-10  Jim Meyering  <meyering@lucent.com>
77146
77147         With these changes, nanosleep.[ch] are finally enough like the other
77148         lib/* replacement files to compile on a few more losing systems.
77149
77150         * lib/nanosleep.h: Don't include config.h.
77151         Remove prototype from declaration of nanosleep.
77152         (PARAMS): Remove now-unneeded definition.
77153         * lib/nanosleep.c: #undef nanosleep.
77154         (rpl_nanosleep): Rename from nanosleep.
77155
77156 2000-02-10  Jim Meyering  <meyering@lucent.com>
77157
77158         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
77159         gnu_nanosleep to rpl_nanosleep.
77160
77161 2000-02-09  Jim Meyering  <meyering@lucent.com>
77162
77163         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
77164         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
77165
77166 2000-02-08  Akim Demaille  <akim@epita.fr>
77167
77168         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
77169         `[' and `]' and remove uses of `changequote'.
77170         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
77171         (AC_SYS_LARGEFILE): Likewise.
77172         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
77173         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
77174         of changequote.
77175         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
77176         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
77177         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
77178         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
77179
77180 2000-02-05  Jim Meyering  <meyering@lucent.com>
77181
77182         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
77183         Remove explicit use of AC_HEADER_TIME.  It is required by
77184         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
77185         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
77186         in autoconf whereby the expansion of the latter ended up preceding
77187         the expansion of its prerequisite, AC_HEADER_TIME.
77188         Reported by Volker Borchert.
77189
77190 2000-02-03  Jim Meyering  <meyering@lucent.com>
77191
77192         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
77193
77194 2000-02-03  Jim Meyering  <meyering@lucent.com>
77195
77196         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
77197         rather than with `#if HAVE_UTMPNAME'.
77198
77199 2000-02-02  Jim Meyering  <meyering@lucent.com>
77200
77201         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
77202         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
77203         Reported by Eli Zaretskii.
77204
77205 2000-02-01  Jim Meyering  <meyering@lucent.com>
77206
77207         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
77208
77209 2000-01-31  Jim Meyering  <meyering@lucent.com>
77210
77211         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
77212         functions.  Add the time.h and sys/time.h headers along with the
77213         AC_REQUIRE'ment of AC_HEADER_TIME.
77214
77215 2000-01-31  Jim Meyering  <meyering@lucent.com>
77216
77217         * lib/nanosleep.h (nanosleep): Guard declaration with
77218         `#if ! HAVE_DECL_NANOSLEEP'.
77219         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
77220         the declaration in that vendor's sys/timers.h.
77221         Reported by Christian Krackowizer.
77222
77223         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
77224         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
77225         (ISPRINT): Likewise.
77226         Reported by Tom Tromey.
77227
77228 2000-01-30  Jim Meyering  <meyering@lucent.com>
77229
77230         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
77231
77232         * m4/prereq.m4 (utmp_includes): Define.
77233         Check for ut_user and ut_name members in both struct utmpx
77234         and struct utmp.
77235
77236 2000-01-30  Jim Meyering  <meyering@lucent.com>
77237
77238         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
77239         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
77240         header files where only utmpx.ut_user is declared.
77241
77242         * lib/readutmp.h (UT_USER): Define.
77243
77244 2000-01-29  Jim Meyering  <meyering@lucent.com>
77245
77246         * m4/lib-check.m4: New file containing library-related checks from
77247         fileutils and sh-utils (textutils had none).
77248
77249 2000-01-28  Jim Meyering  <meyering@lucent.com>
77250
77251         * m4/perl.m4: Change format of warning message to look more like that
77252         from the missing script.  Suggestion from François Pinard.
77253
77254 2000-01-25  Jim Meyering  <meyering@lucent.com>
77255
77256         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
77257         well as time.h in the compile check.
77258         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
77259         Fix typo in cross-compiling case: s/yes/no/.
77260
77261 2000-01-23  Jim Meyering  <meyering@lucent.com>
77262
77263         * m4/jm-macros.m4: Move df-related tests here from
77264         fileutils/configure.in
77265
77266         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
77267         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
77268
77269         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
77270         s/space/ac_fsusage_space/.
77271         (jm_FILE_SYSTEM_USAGE): Take two parameters.
77272
77273         * m4/ftruncate.m4: New file (derived from part of
77274         fileutils/configure.in).
77275         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
77276         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
77277
77278         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
77279         AC_SUBST these here, rather than just in sh-util/configure.in, so
77280         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
77281         all the same.
77282         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
77283         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
77284         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
77285         (AC_SUBST(POW_LIBM)): Likewise.
77286         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
77287
77288 2000-01-23  Jim Meyering  <meyering@lucent.com>
77289
77290         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
77291         obstack.c.
77292
77293 2000-01-22  Jim Meyering  <meyering@lucent.com>
77294
77295         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
77296
77297         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
77298
77299         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
77300         configure.in
77301         (AC_CHECK_HEADERS): Likewise for sh-utils.
77302         (AC_CHECK_HEADERS): Likewise for textutils.
77303         Merge the three lists of headers.
77304
77305         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
77306         from fileutils' configure.in.
77307
77308         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
77309         code. Moved tests into their own function (_jm_DECL_HEADERS) in
77310         check-decl.m4.
77311
77312         * m4/check-decl.m4: Use #if rather than #ifdef.
77313         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
77314         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
77315         (_jm_DECL_HEADERS): Define new function.
77316         (jm_CHECK_DECLARATIONS): Require it.
77317
77318 2000-01-22  Jim Meyering  <meyering@lucent.com>
77319
77320         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
77321         [! HAVE_DECL_STRTOULL]: Declare strtoull.
77322         Required for some AIX systems.  Reported by Christian Krackowizer.
77323         [TESTING] (main): New function.
77324
77325         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
77326         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
77327         letters.
77328
77329         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
77330         iswprint.
77331
77332         * lib/strverscmp.c (ISDIGIT): Define.
77333         (strverscmp): Use ISDIGIT, not isdigit.
77334
77335 2000-01-19  Jim Meyering  <meyering@lucent.com>
77336
77337         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
77338         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
77339         defines `struct timespec' in <sys/time.h>
77340
77341         * m4/c-bs-a.m4: Remove uses of changequote altogether.
77342         Thanks to Akim for explaining.
77343
77344 2000-01-17  Paul Eggert  <eggert@twinsun.com>
77345
77346         * lib/nanosleep.c (nanosleep):
77347         Don't use SA_INTERRUPT to decide whether to call sigaction, as
77348         POSIX.1 doesn't require SA_INTERRUPT and some systems
77349         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
77350         it's been part of POSIX.1 since day 1 (in 1988).
77351
77352 2000-01-17  Jim Meyering  <meyering@lucent.com>
77353
77354         * lib/interlock: Remove unused file.  Reported by François Pinard.
77355
77356 2000-01-16  Paul Eggert  <eggert@twinsun.com>
77357
77358         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
77359         alert, backslash, formfeed, and vertical tab unnecessarily in
77360         shell quoting style.
77361
77362 2000-01-16  Jim Meyering  <meyering@lucent.com>
77363
77364         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
77365         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
77366         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
77367         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
77368
77369 2000-01-16  Jim Meyering  <meyering@lucent.com>
77370
77371         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
77372         because the latter didn't work.
77373
77374 2000-01-15  Jim Meyering  <meyering@lucent.com>
77375
77376         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
77377         (AC_REPLACE_FUNCS): Add memcpy and memset.
77378         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
77379         Add strpbrk.
77380         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
77381
77382 2000-01-12  Jim Meyering  <meyering@lucent.com>
77383
77384         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
77385         (jm_PREREQ): Use it.
77386         (jm_PREREQ_READUTMP): New macro.
77387         (jm_PREREQ): Use it.
77388
77389 2000-01-11  Paul Eggert  <eggert@twinsun.com>
77390
77391         Quote multibyte characters correctly.
77392         * m4/c-bs-a.m4: New file.
77393         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
77394         (jm_PREREQ): Use it.
77395
77396 2000-01-11  Paul Eggert  <eggert@twinsun.com>
77397
77398         * m4/uintmax_t.m4: Port to autoconf 2.13.
77399
77400 2000-01-08  Jim Meyering  <meyering@ascend.com>
77401
77402         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
77403         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
77404
77405 2000-01-04  Jim Meyering  <meyering@ascend.com>
77406
77407         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
77408         jm_STRUCT_DIRENT_D_TYPE.
77409         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
77410         jm_STRUCT_DIRENT_D_INO.
77411         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
77412         jm_STRUCT_UTIMBUF.
77413         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
77414         renamings.
77415         * m4/utime.m4: Likewise.
77416
77417         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
77418         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
77419
77420 2000-01-03  Paul Eggert  <eggert@twinsun.com>
77421
77422         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
77423         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
77424
77425 2000-01-02  Jim Meyering  <meyering@ascend.com>
77426
77427         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
77428         remember if this is necessary.
77429
77430 1999-12-26  Jim Meyering  <meyering@ascend.com>
77431
77432         * m4/jm-macros.m4: Use it here.
77433         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
77434
77435 1999-12-23  Jim Meyering  <meyering@ascend.com>
77436
77437         * m4/jm-macros.m4: Check for clock_gettime (moved from
77438         fileutils/configure.in)
77439         Check for gettimeofday.
77440
77441 1999-12-20  Jim Meyering  <meyering@ascend.com>
77442
77443         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
77444         autoconf-2.14a-1999-12-20.
77445
77446 1999-12-19  Jim Meyering  <meyering@ascend.com>
77447
77448         * m4/lstat-slash.m4: New file.
77449         * m4/jm-macros.m4: Use the new macro:
77450         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77451
77452 1999-12-07  Jim Meyering  <meyering@ascend.com>
77453
77454         * m4/perl.m4: Require that File::Compare be available, too.
77455         Too many systems seem to lack it.
77456
77457         * m4/strftime.m4: Add checks for most of the cpp macros tested in
77458         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
77459
77460 1999-11-18  Paul Eggert  <eggert@twinsun.com>
77461
77462         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
77463         problem with the QNX 4.25 shell, which doesn't propagate exit
77464         status of failed commands inside shell assignments.
77465
77466 1999-11-17  Jim Meyering  <meyering@ascend.com>
77467
77468         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
77469
77470 1999-11-07  Jim Meyering  <meyering@ascend.com>
77471
77472         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
77473
77474 1999-11-06  Jim Meyering  <meyering@ascend.com>
77475
77476         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
77477         * m4/jm-macros.m4 (jm_MACROS): Use it here.
77478
77479 1999-11-05  Jim Meyering  <meyering@ascend.com>
77480
77481         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
77482         configure.in of textutils, fileutils, and sh-utils into this one
77483         (shared between those packages) file.
77484         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
77485         AC_STRUCT_ST_BLKSIZE.
77486
77487 1999-11-03  Jim Meyering  <meyering@ascend.com>
77488
77489         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
77490         of AC_CHECK_TYPE checks includes unistd.h.
77491         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
77492         Suggestion from Akim Demaille.
77493
77494 1999-10-30  Jim Meyering  <meyering@ascend.com>
77495
77496         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
77497         m4-quoted string.
77498         * m4/ls-mntd-fs.m4: Likewise.
77499         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
77500         * m4/jm-winsz1.m4: Likewise.
77501
77502         * m4/const.m4: Remove file, since the fix made it into the experimental
77503         version of autoconf.
77504         * m4/mktime.m4: Likewise.
77505
77506         * m4/check-type.m4: Remove file, now that the latest version of
77507         AC_CHECK_TYPE takes a third arg to specify additional #includes.
77508
77509         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
77510         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
77511         AC_CHECK_TYPE.
77512
77513 1999-10-04  Jim Meyering  <meyering@ascend.com>
77514
77515         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
77516
77517 1999-09-22  Paul Eggert  <eggert@twinsun.com>
77518
77519         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
77520         2.95.1 bug with HP-UX 10.20.
77521
77522 1999-09-17  Jim Meyering  <meyering@ascend.com>
77523
77524         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
77525         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
77526         due to missing strdup (against sh-utils-2.0).
77527
77528 1999-08-29  Jim Meyering  <meyering@ascend.com>
77529
77530         * m4/jm-macros.m4: Require jm_BISON.
77531         * m4/bison.m4: New file.
77532
77533 1999-08-17  Paul Eggert  <eggert@twinsun.com>
77534
77535         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
77536         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
77537
77538 1999-08-05  Jim Meyering  <meyering@ascend.com>
77539
77540         * m4/getline.m4: Rename test file from conftestdata to conftest.data
77541         to avoid conflicts with `conftest' on 8+3 filesystems.
77542         Suggestion from Eli Zaretskii.
77543
77544 1999-08-04  Jim Meyering  <meyering@ascend.com>
77545
77546         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
77547         fileutils and sh-utils (textutils's getline test was inadequate).
77548         (AM_FUNC_GETLINE): Run this test.
77549         (AC_CHECK_FUNCS): Check for getdelim.
77550         Reported by Bob Proulx.
77551
77552 1999-08-02  Jim Meyering  <meyering@ascend.com>
77553
77554         * m4/jm-macros.m4: Add a comment.
77555
77556 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77557
77558         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
77559         <inttypes.h> defines strtoumax as a macro (and not as a
77560         function).
77561
77562 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77563
77564         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
77565         that we can shift, multiply and divide unsigned long long
77566         values; Ultrix cc can't do it.
77567
77568 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77569
77570         * m4/mktime.m4: New file, which is a preview of what should appear
77571         in the next public autoconf release.
77572
77573 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77574
77575         * m4/lfs.m4: Remove this file.
77576         * m4/largefile.m4: New file.  It contains the old contents of
77577         lfs.m4, except that all names with prefix AC_LFS have been
77578         changed to use the prefix AC_SYS_LARGEFILE instead, to be
77579         compatible with future autoconf versions.  Also, some minor m4
77580         quoting problems have been fixed.
77581
77582 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77583
77584         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
77585         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
77586         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
77587         and simplify the shell code.
77588
77589 1999-08-01  Jim Meyering  <meyering@ascend.com>
77590
77591         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
77592         m4.
77593
77594 1999-07-20  Jim Meyering  <meyering@ascend.com>
77595
77596         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
77597
77598 1999-07-15  Jim Meyering  <meyering@ascend.com>
77599
77600         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
77601
77602 1999-05-22  Jim Meyering  <meyering@ascend.com>
77603
77604         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
77605
77606 1999-05-20  Jim Meyering  <meyering@ascend.com>
77607
77608         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
77609         Add a colon after each `then' in case $4 is empty.
77610
77611 1999-05-16  Jim Meyering  <meyering@ascend.com>
77612
77613         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
77614
77615 1999-05-10  Jim Meyering  <meyering@ascend.com>
77616
77617         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
77618
77619         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
77620         AC_FUNC_MKTIME.
77621
77622 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
77623
77624         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
77625
77626 1999-05-04  Paul Eggert  <eggert@twinsun.com>
77627
77628         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
77629         not CPPFLAGS, so that linking works correctly in IRIX.
77630
77631 1999-04-30  Paul Eggert  <eggert@twinsun.com>
77632
77633         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
77634
77635 1999-04-20  Paul Eggert  <eggert@twinsun.com>
77636
77637         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
77638         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
77639         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
77640         jm_AC_TYPE_UNSIGNED_LONG_LONG.
77641         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
77642
77643         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
77644
77645 1999-04-20  Jim Meyering  <meyering@ascend.com>
77646
77647         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
77648         AC_REPLACE xstroull if necessary.  From Paul Eggert.
77649         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
77650
77651 1999-04-18  Jim Meyering  <meyering@ascend.com>
77652
77653         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
77654         * m4/jm-macros.m4: Use it.
77655
77656 1999-04-06  Jim Meyering  <meyering@ascend.com>
77657
77658         * m4/strftime.m4: Remove test for %f.
77659
77660 1999-03-29  Jim Meyering  <meyering@ascend.com>
77661
77662         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
77663         superset of the AC_TYPE_* checks in the textutils, fileutils,
77664         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
77665         AC_TYPE_PID_T.
77666
77667 1999-03-28  Jim Meyering  <meyering@ascend.com>
77668
77669         * m4/jm-macros.m4: Define GNU_PACKAGE here.
77670         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
77671         replaced e.g., in the *.sh files of the sh-utils.
77672
77673 1999-03-20  Jim Meyering  <meyering@ascend.com>
77674
77675         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
77676         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
77677         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
77678
77679 1999-03-19  Jim Meyering  <meyering@ascend.com>
77680
77681         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
77682
77683 1999-03-12  Jim Meyering  <meyering@ascend.com>
77684
77685         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
77686
77687 1999-03-07  Jim Meyering  <meyering@ascend.com>
77688
77689         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
77690         declared.
77691
77692 1999-02-17  Jim Meyering  <meyering@ascend.com>
77693
77694         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
77695         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
77696
77697 1999-02-07  Jim Meyering  <meyering@ascend.com>
77698
77699         * m4/group-member.m4: New file -- extracted from sh-utils'
77700         configure.in.
77701
77702         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
77703         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
77704
77705 1999-02-06  Jim Meyering  <meyering@ascend.com>
77706
77707         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
77708         * m4/fnmatch.m4: Likewise.
77709         * m4/getgroups.m4: Likewise.
77710         * m4/lstat.m4: Likewise.
77711         * m4/malloc.m4: Likewise.
77712         * m4/putenv.m4: Likewise.
77713         * m4/realloc.m4: Likewise.
77714         * m4/regex.m4: Likewise.
77715         * m4/stat.m4: Likewise.
77716         * m4/strftime.m4: Likewise.
77717         Suggestion from Alain Magloire.
77718
77719         * m4/chown.m4: Use `.$ac_objext', not `.o'.
77720         * m4/fnmatch.m4: Likewise.
77721         * m4/getgroups.m4: Likewise.
77722         * m4/getline.m4: Likewise.
77723         * m4/lstat.m4: Likewise.
77724         * m4/malloc.m4: Likewise.
77725         * m4/memcmp.m4: Likewise.
77726         * m4/putenv.m4: Likewise.
77727         * m4/realloc.m4: Likewise.
77728         * m4/regex.m4: Likewise.
77729         * m4/stat.m4: Likewise.
77730         * m4/strftime.m4: Likewise.
77731         Suggestion from Alain Magloire.
77732
77733         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
77734         an argument.
77735
77736         * m4/regex.m4: Add a run-time Test for proper operation of
77737         re_compile_pattern.
77738
77739 1999-01-31  Jim Meyering  <meyering@ascend.com>
77740
77741         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
77742
77743 1999-01-30  Jim Meyering  <meyering@ascend.com>
77744
77745         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
77746
77747         * m4/jm-mktime.m4: Make this a wrapper around the official
77748         AM_FUNC_MKTIME rather than my private copy, now that the official one
77749         is up to date.
77750         * m4/mktime.m4: Remove file.
77751
77752         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
77753         * m4/uptime.m4: Likewise.
77754         * m4/uintmax_t.m4: Likewise.
77755
77756 1999-01-28  Jim Meyering  <meyering@ascend.com>
77757
77758         * m4/jm-macros.m4: Use jm_AFS.
77759         * m4/afs.m4: New file (from fileutils' configure.in).
77760
77761         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
77762         * m4/chown.m4: Likewise.
77763         * m4/d-ino.m4: Likewise.
77764         * m4/d-type.m4: Likewise.
77765         * m4/fnmatch.m4: Likewise.
77766         * m4/getgroups.m4: Likewise.
77767         * m4/gettext.m4: Likewise.
77768         * m4/jm-mktime.m4: Likewise.
77769         * m4/jm-winsz2.m4: Likewise.
77770         * m4/lcmessage.m4: Likewise.
77771         * m4/ls-mntd-fs.m4: Likewise.
77772         * m4/malloc.m4: Likewise.
77773         * m4/memcmp.m4: Likewise.
77774         * m4/putenv.m4: Likewise.
77775         * m4/realloc.m4: Likewise.
77776         * m4/st_mtim.m4: Likewise.
77777         * m4/strftime.m4: Likewise.
77778
77779 1999-01-16  Jim Meyering  <meyering@ascend.com>
77780
77781         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
77782         (ARGMATCH_DIE_DECL): Define.
77783
77784 1999-01-12  Jim Meyering  <meyering@ascend.com>
77785
77786         * m4/Makefile.am.in: Rewrite to avoid using fmt.
77787         Reported by Lars Hecking.
77788
77789 1999-01-10  Jim Meyering  <meyering@ascend.com>
77790
77791         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
77792         gross kludge.
77793         * m4/inttypes_h.m4: Likewise.
77794         * m4/lstat.m4: Likewise.
77795         * m4/malloc.m4: Likewise.
77796         * m4/readdir.m4: Likewise.
77797         * m4/realloc.m4: Likewise.
77798         * m4/st_dm_mode.m4: Likewise.
77799         * m4/stat.m4: Likewise.
77800         * m4/utimbuf.m4: Likewise.
77801         * m4/utimes.m4: Likewise.
77802
77803         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
77804         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
77805         comments in config.h.in are meaningful.
77806
77807         * m4/jm-macros.m4: Require autoconf-2.13 here.
77808
77809         * m4/regex.m4: By default, don't use the included regex.c on systems
77810         with glibc 2.  Suggestion from Uli Drepper.
77811
77812 1999-01-02  Jim Meyering  <meyering@ascend.com>
77813
77814         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
77815
77816 1998-12-18  Jim Meyering  <meyering@ascend.com>
77817
77818         * m4/Makefile.am.in (Makefile.am): Simplify rule.
77819         Based on a suggestion from Lars Hecking.
77820
77821 1998-11-16  Paul Eggert  <eggert@twinsun.com>
77822
77823         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
77824
77825 1998-11-16  Jim Meyering  <meyering@ascend.com>
77826
77827         * m4/lfs.m4: Double-quote the `uname...` expression.
77828
77829 1998-11-14  Jim Meyering  <meyering@ascend.com>
77830
77831         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
77832         * m4/stat.m4: Likewise.
77833
77834 1998-11-03  Jim Meyering  <meyering@ascend.com>
77835
77836         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
77837         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
77838
77839 1998-10-18  Jim Meyering  <meyering@ascend.com>
77840
77841         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
77842
77843 1998-10-17  Jim Meyering  <meyering@ascend.com>
77844
77845         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
77846         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
77847         calls for those previously hard-coded headers.  Instead, take a new
77848         parameter.
77849         (jm_CHECK_DECLARATIONS): Reflect interface change.
77850         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
77851         (jm_CHECK_DECL_LOCALTIME_R): New macro.
77852
77853         * m4/mktime.m4: Test for spring-forward gap before long-running test.
77854
77855 1998-10-14  Jim Meyering  <meyering@ascend.com>
77856
77857         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
77858         instead of "TZ=America/Vancouver".  From Paul Eggert.
77859
77860 1998-10-11  Jim Meyering  <meyering@ascend.com>
77861
77862         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
77863         This adds a test for a recently added compatibility fix for mktime.c.
77864         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
77865
77866 1998-09-27  Jim Meyering  <meyering@ascend.com>
77867
77868         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
77869
77870         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
77871         ../configure.in, including a change from Gordon Matzigkeit to allow
77872         cross-compiling for the Hurd.
77873
77874         * m4/glibc.m4: New file/macro to test for the GNU C Library
77875         versions 1 and 2.  From Gordon Matzigkeit.
77876         Indent.
77877
77878 1998-09-21  Jim Meyering  <meyering@ascend.com>
77879
77880         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
77881
77882 1998-08-18  Paul Eggert  <eggert@twinsun.com>
77883
77884         Port nanosecond-resolution times to UnixWare 2.1.2 and
77885         pedantic Solaris 2.6.
77886
77887         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
77888         AC_STRUCT_ST_MTIM.
77889         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
77890         Generate name of ns member, instead of just 1 or undef.
77891         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
77892
77893 1998-08-15  Jim Meyering  <meyering@ascend.com>
77894
77895         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
77896         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
77897         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
77898         instead of jm_TYPE_SSIZE_T.
77899
77900 1998-08-12  Jim Meyering  <meyering@ascend.com>
77901
77902         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
77903
77904 1998-08-02  Jim Meyering  <meyering@ascend.com>
77905
77906         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
77907         in acconfig.h manually.
77908
77909 1998-07-31  Paul Eggert  <eggert@twinsun.com>
77910
77911         * m4/st_mtim.m4: New file.
77912
77913 1998-07-28  Jim Meyering  <meyering@ascend.com>
77914
77915         * m4/utimes.m4: Undef stat.
77916
77917 1998-07-25  Jim Meyering  <meyering@ascend.com>
77918
77919         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
77920         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
77921
77922 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
77923
77924         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
77925         uid and gid actually remain unchanged.
77926
77927 1998-07-07  Jim Meyering  <meyering@ascend.com>
77928
77929         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
77930
77931 1998-07-04  Jim Meyering  <meyering@ascend.com>
77932
77933         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
77934         to prove that this macro can be used in packages without regex.c.
77935
77936 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
77937
77938         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
77939         is to be used.
77940
77941 1998-07-03  Jim Meyering  <meyering@ascend.com>
77942
77943         * m4/gettext.m4: Add -lintl if it's found to be necessary.
77944
77945         * m4/gettext.m4: New file -- from gettext-0.10.35.
77946         * m4/lcmessage.m4: Likewise.
77947         * m4/progtest.m4: Likewise.
77948
77949         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
77950         * m4/jm-macros.m4: Require the new macro.
77951
77952 1998-06-29  Jim Meyering  <meyering@ascend.com>
77953
77954         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
77955         for the definition of NGROUPS (used in a system header included
77956         by sys/mount.h).
77957
77958 1998-06-28  Jim Meyering  <meyering@ascend.com>
77959
77960         * m4/ls-mntd-fs.m4: New file.
77961         * m4/fstypename.m4: New file.
77962
77963         * m4/jm-macros.m4: Require the new macro.
77964         * m4/jm-glibc-io.m4: New file.
77965
77966 1998-05-19  Jim Meyering  <meyering@ascend.com>
77967
77968         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
77969         * m4/lchown.m4: New file.
77970
77971         * m4/Makefile.am.in: New file.
77972         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
77973
77974 1998-05-14  Jim Meyering  <meyering@ascend.com>
77975
77976         * m4/Makefile.am (EXTRA_DIST): Add them.
77977         * m4/jm-macros.m4: New file.
77978         * m4/utimbuf.m4: New file.
77979
77980 1998-05-12  Jim Meyering  <meyering@ascend.com>
77981
77982         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
77983
77984 1998-05-11  Jim Meyering  <meyering@ascend.com>
77985
77986         * m4/isc-posix.m4: New file.
77987
77988 1998-05-10  Jim Meyering  <meyering@ascend.com>
77989
77990         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
77991
77992 1998-05-09  Jim Meyering  <meyering@ascend.com>
77993
77994         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
77995         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
77996         with automake.
77997
77998         * m4/ssize_t.m4: New file.
77999         * m4/mktime.m4: Remove file -- the new automake has this now.
78000
78001 1998-04-26  Jim Meyering  <meyering@ascend.com>
78002
78003         * m4/assert.m4: New file.
78004         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
78005
78006 1998-04-05  Jim Meyering  <meyering@ascend.com>
78007
78008         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
78009         (jm_PREREQ): Use it here.
78010
78011 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
78012
78013         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
78014         in acconfig.h.
78015
78016 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
78017
78018         * m4/prereq.m4: New file.
78019         * m4/error.m4: New file.
78020         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
78021
78022 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
78023
78024         * m4/getline.m4: Don't set am_cv_func_working_getline before the
78025         cache-check for the same variable -- that defeated the purpose of
78026         the test; the test program was never run.  This was a problem only
78027         on systems with losing getline functions -- HP-UX 10.20 is one.
78028         Reported by Bjorn Helgaas.
78029
78030 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
78031
78032         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
78033
78034 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
78035
78036         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
78037
78038         * m4/const.m4: New file.  Use an initializer in this declaration
78039         typedef int charset[2]; const charset x;
78040         Reported by Bob Glickstein.
78041
78042 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
78043
78044         * m4/chown.m4: Fix reversed types on -1 args to chown.
78045         From Kaveh Ghazi.
78046
78047 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
78048
78049         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
78050         Add lseek and memchr.
78051
78052         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
78053         T.E.Dickey <dickey@clark.net> said that some older preprocessors
78054         have a 20-character limit on names.
78055
78056 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
78057
78058         * m4/inttypes_h.m4: New file.
78059         * m4/uintmax_t.m4: New file.
78060         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
78061
78062
78063         -----
78064
78065         Local Variables:
78066         coding: utf-8
78067         End:
78068
78069         Copyright (C) 1997-2011 Free Software Foundation, Inc.
78070
78071         Copying and distribution of this file, with or without
78072         modification, are permitted provided the copyright notice
78073         and this notice are preserved.